vendor: 17,383 bytes, lines 1-33
1(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerPolicy&&(i.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?i.credentials="include":s.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(s){if(s.ep)return;s.ep=!0;const i=n(s);fetch(s.href,i)}})();var Ae=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function vh(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var s=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,s.get?s:{enumerable:!0,get:function(){return t[r]}})}),n}var Nu={exports:{}},Gs={},Pu={exports:{}},A={};/** 2 * @license React 3 * react.production.min.js 4 * 5 * Copyright (c) Facebook, Inc. and its affiliates. 6 * 7 * This source code is licensed under the MIT license found in the 8 * LICENSE file in the root directory of this source tree. 9 */var Ar=Symbol.for("react.element"),yh=Symbol.for("react.portal"),wh=Symbol.for("react.fragment"),_h=Symbol.for("react.strict_mode"),xh=Symbol.for("react.profiler"),kh=Symbol.for("react.provider"),Sh=Symbol.for("react.context"),Eh=Symbol.for("react.forward_ref"),jh=Symbol.for("react.suspense"),Ch=Symbol.for("react.memo"),bh=Symbol.for("react.lazy"),ra=Symbol.iterator;function Th(t){return t===null||typeof t!="object"?null:(t=ra&&t[ra]||t["@@iterator"],typeof t=="function"?t:null)}var Ou={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Ru=Object.assign,Au={};function $n(t,e,n){this.props=t,this.context=e,this.refs=Au,this.updater=n||Ou}$n.prototype.isReactComponent={};$n.prototype.setState=function(t,e){if(typeof t!="object"&&typeof t!="function"&&t!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState")};$n.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function Lu(){}Lu.prototype=$n.prototype;function rl(t,e,n){this.props=t,this.context=e,this.refs=Au,this.updater=n||Ou}var sl=rl.prototype=new Lu;sl.constructor=rl;Ru(sl,$n.prototype);sl.isPureReactComponent=!0;var sa=Array.isArray,Iu=Object.prototype.hasOwnProperty,il={current:null},$u={key:!0,ref:!0,__self:!0,__source:!0};function Uu(t,e,n){var r,s={},i=null,o=null;if(e!=null)for(r in e.ref!==void 0&&(o=e.ref),e.key!==void 0&&(i=""+e.key),e)Iu.call(e,r)&&!$u.hasOwnProperty(r)&&(s[r]=e[r]);var l=arguments.length-2;if(l===1)s.children=n;else if(1<l){for(var a=Array(l),u=0;u<l;u++)a[u]=arguments[u+2];s.children=a}if(t&&t.defaultProps)for(r in l=t.defaultProps,l)s[r]===void 0&&(s[r]=l[r]);return{$$typeof:Ar,type:t,key:i,ref:o,props:s,_owner:il.current}}function Nh(t,e){return{$$typeof:Ar,type:t.type,key:e,ref:t.ref,props:t.props,_owner:t._owner}}function ol(t){return typeof t=="object"&&t!==null&&t.$$typeof===Ar}function Ph(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(n){return e[n]})}var ia=/\/+/g;function wi(t,e){return typeof t=="object"&&t!==null&&t.key!=null?Ph(""+t.key):e.toString(36)}function ds(t,e,n,r,s){var i=typeof t;(i==="undefined"||i==="boolean")&&(t=null);var o=!1;if(t===null)o=!0;else switch(i){case"string":case"number":o=!0;break;case"object":switch(t.$$typeof){case Ar:case yh:o=!0}}if(o)return o=t,s=s(o),t=r===""?"."+wi(o,0):r,sa(s)?(n="",t!=null&&(n=t.replace(ia,"$&/")+"/"),ds(s,e,n,"",function(u){return u})):s!=null&&(ol(s)&&(s=Nh(s,n+(!s.key||o&&o.key===s.key?"":(""+s.key).replace(ia,"$&/")+"/")+t)),e.push(s)),1;if(o=0,r=r===""?".":r+":",sa(t))for(var l=0;l<t.length;l++){i=t[l];var a=r+wi(i,l);o+=ds(i,e,n,a,s)}else if(a=Th(t),typeof a=="function")for(t=a.call(t),l=0;!(i=t.next()).done;)i=i.value,a=r+wi(i,l++),o+=ds(i,e,n,a,s);else if(i==="object")throw e=String(t),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead.");return o}function Hr(t,e,n){if(t==null)return t;var r=[],s=0;return ds(t,r,"","",function(i){return e.call(n,i,s++)}),r}function Oh(t){if(t._status===-1){var e=t._result;e=e(),e.then(function(n){(t._status===0||t._status===-1)&&(t._status=1,t._result=n)},function(n){(t._status===0||t._status===-1)&&(t._status=2,t._result=n)}),t._status===-1&&(t._status=0,t._result=e)}if(t._status===1)return t._result.default;throw t._result}var me={current:null},hs={transition:null},Rh={ReactCurrentDispatcher:me,ReactCurrentBatchConfig:hs,ReactCurrentOwner:il};function Mu(){throw Error("act(...) is not supported in production builds of React.")}A.Children={map:Hr,forEach:function(t,e,n){Hr(t,function(){e.apply(this,arguments)},n)},count:function(t){var e=0;return Hr(t,function(){e++}),e},toArray:function(t){return Hr(t,function(e){return e})||[]},only:function(t){if(!ol(t))throw Error("React.Children.only expected to receive a single React element child.");return t}};A.Component=$n;A.Fragment=wh;A.Profiler=xh;A.PureComponent=rl;A.StrictMode=_h;A.Suspense=jh;A.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Rh;A.act=Mu;A.cloneElement=function(t,e,n){if(t==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+t+".");var r=Ru({},t.props),s=t.key,i=t.ref,o=t._owner;if(e!=null){if(e.ref!==void 0&&(i=e.ref,o=il.current),e.key!==void 0&&(s=""+e.key),t.type&&t.type.defaultProps)var l=t.type.defaultProps;for(a in e)Iu.call(e,a)&&!$u.hasOwnProperty(a)&&(r[a]=e[a]===void 0&&l!==void 0?l[a]:e[a])}var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){l=Array(a);for(var u=0;u<a;u++)l[u]=arguments[u+2];r.children=l}return{$$typeof:Ar,type:t.type,key:s,ref:i,props:r,_owner:o}};A.createContext=function(t){return t={$$typeof:Sh,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},t.Provider={$$typeof:kh,_context:t},t.Consumer=t};A.createElement=Uu;A.createFactory=function(t){var e=Uu.bind(null,t);return e.type=t,e};A.createRef=function(){return{current:null}};A.forwardRef=function(t){return{$$typeof:Eh,render:t}};A.isValidElement=ol;A.lazy=function(t){return{$$typeof:bh,_payload:{_status:-1,_result:t},_init:Oh}};A.memo=function(t,e){return{$$typeof:Ch,type:t,compare:e===void 0?null:e}};A.startTransition=function(t){var e=hs.transition;hs.transition={};try{t()}finally{hs.transition=e}};A.unstable_act=Mu;A.useCallback=function(t,e){return me.current.useCallback(t,e)};A.useContext=function(t){return me.current.useContext(t)};A.useDebugValue=function(){};A.useDeferredValue=function(t){return me.current.useDeferredValue(t)};A.useEffect=function(t,e){return me.current.useEffect(t,e)};A.useId=function(){return me.current.useId()};A.useImperativeHandle=function(t,e,n){return me.current.useImperativeHandle(t,e,n)};A.useInsertionEffect=function(t,e){return me.current.useInsertionEffect(t,e)};A.useLayoutEffect=function(t,e){return me.current.useLayoutEffect(t,e)};A.useMemo=function(t,e){return me.current.useMemo(t,e)};A.useReducer=function(t,e,n){return me.current.useReducer(t,e,n)};A.useRef=function(t){return me.current.useRef(t)};A.useState=function(t){return me.current.useState(t)};A.useSyncExternalStore=function(t,e,n){return me.current.useSyncExternalStore(t,e,n)};A.useTransition=function(){return me.current.useTransition()};A.version="18.3.1";Pu.exports=A;var D=Pu.exports;/** 10 * @license React 11 * react-jsx-runtime.production.min.js 12 * 13 * Copyright (c) Facebook, Inc. and its affiliates. 14 * 15 * This source code is licensed under the MIT license found in the 16 * LICENSE file in the root directory of this source tree. 17 */var Ah=D,Lh=Symbol.for("react.element"),Ih=Symbol.for("react.fragment"),$h=Object.prototype.hasOwnProperty,Uh=Ah.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Mh={key:!0,ref:!0,__self:!0,__source:!0};function Du(t,e,n){var r,s={},i=null,o=null;n!==void 0&&(i=""+n),e.key!==void 0&&(i=""+e.key),e.ref!==void 0&&(o=e.ref);for(r in e)$h.call(e,r)&&!Mh.hasOwnProperty(r)&&(s[r]=e[r]);if(t&&t.defaultProps)for(r in e=t.defaultProps,e)s[r]===void 0&&(s[r]=e[r]);return{$$typeof:Lh,type:t,key:i,ref:o,props:s,_owner:Uh.current}}Gs.Fragment=Ih;Gs.jsx=Du;Gs.jsxs=Du;Nu.exports=Gs;var d=Nu.exports,zu={exports:{}},be={},Fu={exports:{}},Bu={};/** 18 * @license React 19 * scheduler.production.min.js 20 * 21 * Copyright (c) Facebook, Inc. and its affiliates. 22 * 23 * This source code is licensed under the MIT license found in the 24 * LICENSE file in the root directory of this source tree. 25 */(function(t){function e(b,P){var O=b.length;b.push(P);e:for(;0<O;){var G=O-1>>>1,ne=b[G];if(0<s(ne,P))b[G]=P,b[O]=ne,O=G;else break e}}function n(b){return b.length===0?null:b[0]}function r(b){if(b.length===0)return null;var P=b[0],O=b.pop();if(O!==P){b[0]=O;e:for(var G=0,ne=b.length,Br=ne>>>1;G<Br;){var Lt=2*(G+1)-1,yi=b[Lt],It=Lt+1,Wr=b[It];if(0>s(yi,O))It<ne&&0>s(Wr,yi)?(b[G]=Wr,b[It]=O,G=It):(b[G]=yi,b[Lt]=O,G=Lt);else if(It<ne&&0>s(Wr,O))b[G]=Wr,b[It]=O,G=It;else break e}}return P}function s(b,P){var O=b.sortIndex-P.sortIndex;return O!==0?O:b.id-P.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;t.unstable_now=function(){return i.now()}}else{var o=Date,l=o.now();t.unstable_now=function(){return o.now()-l}}var a=[],u=[],c=1,f=null,m=3,v=!1,w=!1,_=!1,j=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,h=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function p(b){for(var P=n(u);P!==null;){if(P.callback===null)r(u);else if(P.startTime<=b)r(u),P.sortIndex=P.expirationTime,e(a,P);else break;P=n(u)}}function y(b){if(_=!1,p(b),!w)if(n(a)!==null)w=!0,gi(S);else{var P=n(u);P!==null&&vi(y,P.startTime-b)}}function S(b,P){w=!1,_&&(_=!1,g(T),T=-1),v=!0;var O=m;try{for(p(P),f=n(a);f!==null&&(!(f.expirationTime>P)||b&&!$e());){var G=f.callback;if(typeof G=="function"){f.callback=null,m=f.priorityLevel;var ne=G(f.expirationTime<=P);P=t.unstable_now(),typeof ne=="function"?f.callback=ne:f===n(a)&&r(a),p(P)}else r(a);f=n(a)}if(f!==null)var Br=!0;else{var Lt=n(u);Lt!==null&&vi(y,Lt.startTime-P),Br=!1}return Br}finally{f=null,m=O,v=!1}}var k=!1,E=null,T=-1,Q=5,L=-1;function $e(){return!(t.unstable_now()-L<Q)}function Fn(){if(E!==null){var b=t.unstable_now();L=b;var P=!0;try{P=E(!0,b)}finally{P?Bn():(k=!1,E=null)}}else k=!1}var Bn;if(typeof h=="function")Bn=function(){h(Fn)};else if(typeof MessageChannel<"u"){var na=new MessageChannel,gh=na.port2;na.port1.onmessage=Fn,Bn=function(){gh.postMessage(null)}}else Bn=function(){j(Fn,0)};function gi(b){E=b,k||(k=!0,Bn())}function vi(b,P){T=j(function(){b(t.unstable_now())},P)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(b){b.callback=null},t.unstable_continueExecution=function(){w||v||(w=!0,gi(S))},t.unstable_forceFrameRate=function(b){0>b||125<b?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Q=0<b?Math.floor(1e3/b):5},t.unstable_getCurrentPriorityLevel=function(){return m},t.unstable_getFirstCallbackNode=function(){return n(a)},t.unstable_next=function(b){switch(m){case 1:case 2:case 3:var P=3;break;default:P=m}var O=m;m=P;try{return b()}finally{m=O}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(b,P){switch(b){case 1:case 2:case 3:case 4:case 5:break;default:b=3}var O=m;m=b;try{return P()}finally{m=O}},t.unstable_scheduleCallback=function(b,P,O){var G=t.unstable_now();switch(typeof O=="object"&&O!==null?(O=O.delay,O=typeof O=="number"&&0<O?G+O:G):O=G,b){case 1:var ne=-1;break;case 2:ne=250;break;case 5:ne=1073741823;break;case 4:ne=1e4;break;default:ne=5e3}return ne=O+ne,b={id:c++,callback:P,priorityLevel:b,startTime:O,expirationTime:ne,sortIndex:-1},O>G?(b.sortIndex=O,e(u,b),n(a)===null&&b===n(u)&&(_?(g(T),T=-1):_=!0,vi(y,O-G))):(b.sortIndex=ne,e(a,b),w||v||(w=!0,gi(S))),b},t.unstable_shouldYield=$e,t.unstable_wrapCallback=function(b){var P=m;return function(){var O=m;m=P;try{return b.apply(this,arguments)}finally{m=O}}}})(Bu);Fu.exports=Bu;var Dh=Fu.exports;/** 26 * @license React 27 * react-dom.production.min.js 28 * 29 * Copyright (c) Facebook, Inc. and its affiliates. 30 * 31 * This source code is licensed under the MIT license found in the 32 * LICENSE file in the root directory of this source tree. 33 */var zh=D,Ce=Dh;function x(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Wu=new Set,mr={};function Xt(t,e){Tn(t,e),Tn(t+"Capture",e)}function Tn(t,e){for(mr[t]=e,t=0;t<e.length;t++)Wu.add(e[t])}var it=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Zi=Object.prototype.hasOwnProperty,Fh=/^[: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]*$/,oa={},la={};function Bh(t){return Zi.call(la,t)?!0:Zi.call(oa,t)?!1:Fh.test(t)?la[t]=!0:(oa[t]=!0,!1)}function Wh(t,e,n,r){if(n!==null&&n.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function Hh(t,e,n,r){if(e===null||typeof e>"u"||Wh(t,e,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!e;case 4:return e===!1;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function ge(t,e,n,r,s,i,o){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=r,this.attributeNamespace=s,this.mustUseProperty=n,this.propertyName=t,this.type=e,this.sanitizeURL=i,this.removeEmptyString=o}var le={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){le[t]=new ge(t,0,!1,t,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var e=t[0];le[e]=new ge(e,1,!1,t[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(t){le[t]=new ge(t,2,!1,t.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){le[t]=new ge(t,2,!1,t,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(t){le[t]=new ge(t,3,!1,t.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(t){le[t]=new ge(t,3,!0,t,null,!1,!1)});["capture","download"].forEach(function(t){le[t]=new ge(t,4,!1,t,null,!1,!1)});["cols","rows","size","span"].forEach(function(t){le[t]=new ge(t,6,!1,t,null,!1,!1)});["rowSpan","start"].forEach(function(t){le[t]=new ge(t,5,!1,t.toLowerCase(),null,!1,!1)});var ll=/[\-:]([a-z])/g;function al(t){return t[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode
33-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(t){var e=t.replace(ll,al);le[e]=new ge(e,1,!1,t,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var e=t.replace(ll,al);le[e]=new ge(e,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(t){var e=t.replace(ll,al);le[e]=new ge(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(t){le[t]=new ge(t,1,!1,t.toLowerCase(),null,!1,!1)});le.xlinkHref=new ge("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(t){le[t]=new ge(t,1,!1,t.toLowerCase(),null,!0,!0)});function ul(t,e,n,r){var s=le.hasOwnProperty(e)?le[e]:null;(s!==null?s.type!==0:r||!(2<e.length)||e[0]!=="o"&&e[0]!=="O"||e[1]!=="n"&&e[1]!=="N")&&(Hh(e,n,s,r)&&(n=null),r||s===null?Bh(e)&&(n===null?t.removeAttribute(e):t.setAttribute(e,""+n)):s.mustUseProperty?t[s.propertyName]=n===null?s.type===3?!1:"":n:(e=s.attributeName,r=s.attributeNamespace,n===null?t.removeAttribute(e):(s=s.type,n=s===3||s===4&&n===!0?"":""+n,r?t.setAttributeNS(r,e,n):t.setAttribute(e,n))))}var ut=zh.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Vr=Symbol.for("react.element"),cn=Symbol.for("react.portal"),dn=Symbol.for("react.fragment"),cl=Symbol.for("react.strict_mode"),eo=Symbol.for("react.profiler"),Hu=Symbol.for("react.provider"),Vu=Symbol.for("react.context"),dl=Symbol.for("react.forward_ref"),to=Symbol.for("react.suspense"),no=Symbol.for("react.suspense_list"),hl=Symbol.for("react.memo"),ft=Symbol.for("react.lazy"),qu=Symbol.for("react.offscreen"),aa=Symbol.iterator;function Wn(t){return t===null||typeof t!="object"?null:(t=aa&&t[aa]||t["@@iterator"],typeof t=="function"?t:null)}var q=Object.assign,_i;function Xn(t){if(_i===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);_i=e&&e[1]||""}return` 34`+_i+t}var xi=!1;function ki(t,e){if(!t||xi)return"";xi=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(e)if(e=function(){throw Error()},Object.defineProperty(e.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(e,[])}catch(u){var r=u}Reflect.construct(t,[],e)}else{try{e.call()}catch(u){r=u}t.call(e.prototype)}else{try{throw Error()}catch(u){r=u}t()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var s=u.stack.split(` 35`),i=r.stack.split(` 36`),o=s.length-1,l=i.length-1;1<=o&&0<=l&&s[o]!==i[l];)l--;for(;1<=o&&0<=l;o--,l--)if(s[o]!==i[l]){if(o!==1||l!==1)do if(o--,l--,0>l||s[o]!==i[l]){var a=` 37`+s[o].replace(" at new "," at ");return t.displayName&&a.includes("<anonymous>")&&(a=a.replace("<anonymous>",t.displayName)),a}while(1<=o&&0<=l);break}}}finally{xi=!1,Error.prepareStackTrace=n}return(t=t?t.displayName||t.name:"")?Xn(t):""}function Vh(t){switch(t.tag){case 5:return Xn(t.type);case 16:return Xn("Lazy");case 13:return Xn("Suspense");case 19:return Xn("SuspenseList");case 0:case 2:case 15:return t=ki(t.type,!1),t;case 11:return t=ki(t.type.render,!1),t;case 1:return t=ki(t.type,!0),t;default:return""}}function ro(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case dn:return"Fragment";case cn:return"Portal";case eo:return"Profiler";case cl:return"StrictMode";case to:return"Suspense";case no:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case Vu:return(t.displayName||"Context")+".Consumer";case Hu:return(t._context.displayName||"Context")+".Provider";case dl:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case hl:return e=t.displayName||null,e!==null?e:ro(t.type)||"Memo";case ft:e=t._payload,t=t._init;try{return ro(t(e))}catch{}}return null}function qh(t){var e=t.type;switch(t.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=e.render,t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ro(e);case 8:return e===cl?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e}return null}function Tt(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Ku(t){var e=t.type;
vendor: 12,241 bytes, line 37
37return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function Kh(t){var e=Ku(t)?"checked":"value",n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),r=""+t[e];if(!t.hasOwnProperty(e)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var s=n.get,i=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return s.call(this)},set:function(o){r=""+o,i.call(this,o)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function qr(t){t._valueTracker||(t._valueTracker=Kh(t))}function Qu(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),r="";return t&&(r=Ku(t)?t.checked?"true":"false":t.value),t=r,t!==n?(e.setValue(t),!0):!1}function Ss(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function so(t,e){var n=e.checked;return q({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??t._wrapperState.initialChecked})}function ua(t,e){var n=e.defaultValue==null?"":e.defaultValue,r=e.checked!=null?e.checked:e.defaultChecked;n=Tt(e.value!=null?e.value:n),t._wrapperState={initialChecked:r,initialValue:n,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function Gu(t,e){e=e.checked,e!=null&&ul(t,"checked",e,!1)}function io(t,e){Gu(t,e);var n=Tt(e.value),r=e.type;if(n!=null)r==="number"?(n===0&&t.value===""||t.value!=n)&&(t.value=""+n):t.value!==""+n&&(t.value=""+n);else if(r==="submit"||r==="reset"){t.removeAttribute("value");return}e.hasOwnProperty("value")?oo(t,e.type,n):e.hasOwnProperty("defaultValue")&&oo(t,e.type,Tt(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(t.defaultChecked=!!e.defaultChecked)}function ca(t,e,n){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var r=e.type;if(!(r!=="submit"&&r!=="reset"||e.value!==void 0&&e.value!==null))return;e=""+t._wrapperState.initialValue,n||e===t.value||(t.value=e),t.defaultValue=e}n=t.name,n!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,n!==""&&(t.name=n)}function oo(t,e,n){(e!=="number"||Ss(t.ownerDocument)!==t)&&(n==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+n&&(t.defaultValue=""+n))}var Zn=Array.isArray;function kn(t,e,n,r){if(t=t.options,e){e={};for(var s=0;s<n.length;s++)e["$"+n[s]]=!0;for(n=0;n<t.length;n++)s=e.hasOwnProperty("$"+t[n].value),t[n].selected!==s&&(t[n].selected=s),s&&r&&(t[n].defaultSelected=!0)}else{for(n=""+Tt(n),e=null,s=0;s<t.length;s++){if(t[s].value===n){t[s].selected=!0,r&&(t[s].defaultSelected=!0);return}e!==null||t[s].disabled||(e=t[s])}e!==null&&(e.selected=!0)}}function lo(t,e){if(e.dangerouslySetInnerHTML!=null)throw Error(x(91));return q({},e,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue})}function da(t,e){var n=e.value;if(n==null){if(n=e.children,e=e.defaultValue,n!=null){if(e!=null)throw Error(x(92));if(Zn(n)){if(1<n.length)throw Error(x(93));n=n[0]}e=n}e==null&&(e=""),n=e}t._wrapperState={initialValue:Tt(n)}}function Ju(t,e){var n=Tt(e.value),r=Tt(e.defaultValue);n!=null&&(n=""+n,n!==t.value&&(t.value=n),e.defaultValue==null&&t.defaultValue!==n&&(t.defaultValue=n)),r!=null&&(t.defaultValue=""+r)}function ha(t){var e=t.textContent;e===t._wrapperState.initialValue&&e!==""&&e!==null&&(t.value=e)}function Yu(t){switch(t){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ao(t,e){return t==null||t==="http://www.w3.org/1999/xhtml"?Yu(e):t==="http://www.w3.org/2000/svg"&&e==="foreignObject"?"http://www.w3.org/1999/xhtml":t}var Kr,Xu=function(t){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(e,n,r,s){MSApp.execUnsafeLocalFunction(function(){return t(e,n,r,s)})}:t}(function(t,e){if(t.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in t)t.innerHTML=e;else{for(Kr=Kr||document.createElement("div"),Kr.innerHTML="<svg>"+e.valueOf().toString()+"</svg>",e=Kr.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}});function gr(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var rr={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},Qh=["Webkit","ms","Moz","O"];Object.keys(rr).forEach(function(t){Qh.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),rr[e]=rr[t]})});function Zu(t,e,n){return e==null||typeof e=="boolean"||e===""?"":n||typeof e!="number"||e===0||rr.hasOwnProperty(t)&&rr[t]?(""+e).trim():e+"px"}function ec(t,e){t=t.style;for(var n in e)if(e.hasOwnProperty(n)){var r=n.indexOf("--")===0,s=Zu(n,e[n],r);n==="float"&&(n="cssFloat"),r?t.setProperty(n,s):t[n]=s}}var Gh=q({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 uo(t,e){if(e){if(Gh[t]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(x(137,t));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(x(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(x(61))}if(e.style!=null&&typeof e.style!="object")throw Error(x(62))}}function co(t,e){if(t.indexOf("-")===-1)return typeof e.is=="string";switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var ho=null;function fl(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var fo=null,Sn=null,En=null;function fa(t){if(t=$r(t)){if(typeof fo!="function")throw Error(x(280));var e=t.stateNode;e&&(e=ei(e),fo(t.stateNode,t.type,e))}}function tc(t){Sn?En?En.push(t):En=[t]:Sn=t}function nc(){if(Sn){var t=Sn,e=En;if(En=Sn=null,fa(t),e)for(t=0;t<e.length;t++)fa(e[t])}}function rc(t,e){return t(e)}function sc(){}var Si=!1;function ic(t,e,n){if(Si)return t(e,n);Si=!0;try{return rc(t,e,n)}finally{Si=!1,(Sn!==null||En!==null)&&(sc(),nc())}}function vr(t,e){var n=t.stateNode;if(n===null)return null;var r=ei(n);if(r===null)return null;n=r[e];e:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(t=t.type,r=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!r;break e;default:t=!1}if(t)return null;if(n&&typeof n!="function")throw Error(x(231,e,typeof n));return n}var po=!1;if(it)try{var Hn={};Object.defineProperty(Hn,"passive",{get:function(){po=!0}}),window.addEventListener("test",Hn,Hn),window.removeEventListener("test",Hn,Hn)}catch{po=!1}function Jh(t,e,n,r,s,i,o,l,a){var u=Array.prototype.slice.call(arguments,3);try{e.apply(n,u)}catch(c){this.onError(c)}}var sr=!1,Es=null,js=!1,mo=null,Yh={onError:function(t){sr=!0,Es=t}};function Xh(t,e,n,r,s,i,o,l,a){sr=!1,Es=null,Jh.apply(Yh,arguments)}function Zh(t,e,n,r,s,i,o,l,a){if(Xh.apply(this,arguments),sr){if(sr){var u=Es;sr=!1,Es=null}else throw Error(x(198));js||(js=!0,mo=u)}}function Zt(t){var e=t,n=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,e.flags&4098&&(n=e.return),t=e.return;while(t)}return e.tag===3?n:null}function oc(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function pa(t){if(Zt(t)!==t)throw Error(x(188))}function ef(t){var e=t.alternate;if(!e){if(e=Zt(t),e===null)throw Error(x(188));return e!==t?null:t}for(var n=t,r=e;;){var s=n.return;if(s===null)break;var i=s.alternate;if(i===null){if(r=s.return,r!==null){n=r;continue}break}if(s.child===i.child){for(i=s.child;i;){if(i===n)return pa(s),t;if(i===r)return pa(s),e;i=i.sibling}throw Error(x(188))}if(n.return!==r.return)n=s,r=i;else{for(var o=!1,l=s.child;l;){if(l===n){o=!0,n=s,r=i;break}if(l===r){o=!0,r=s,n=i;break}l=l.sibling}if(!o){for(l=i.child;l;){if(l===n){o=!0,n=i,r=s;break}if(l===r){o=!0,r=i,n=s;break}l=l.sibling}if(!o)throw Error(x(189))}}if(n.alternate!==r)throw Error(x(190))}if(n.tag!==3)throw Error(x(188));return n.stateNode.current===n?t:e}function lc(t){return t=ef(t),t!==null?ac(t):null}function ac(t){if(t.tag===5||t.tag===6)return t;for(t=t.child;t!==null;){var e=ac(t);if(e!==null)return e;t=t.sibling}return null}var uc=Ce.unstable_scheduleCallback,ma=Ce.unstable_cancelCallback,tf=Ce.unstable_shouldYield,nf=Ce.unstable_requestPaint,J=Ce.unstable_now,rf=Ce.unstable_getCurrentPriorityLevel,pl=Ce.unstable_ImmediatePriority,cc=Ce.unstable_UserBlockingPriority,Cs=Ce.unstable_NormalPriority,sf=Ce.unstable_LowPriority,dc=Ce.unstable_IdlePriority,Js=null,Je=null;function of(t){if(Je&&typeof Je.onCommitFiberRoot=="function")try{Je.onCommitFiberRoot(Js,t,void 0,(t.current.flags&128)===128)}catch{}}var We=Math.clz32?Math.clz32:uf,lf=Math.log,af=Math.LN2;function uf(t){return t>>>=0,t===0?32:31-(lf(t)/af|0)|0}var Qr=64,Gr=4194304;function er(t){switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return t&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function bs(t,e){var n=t.pendingLanes;if(n===0)return 0;var r=0,s=t.suspendedLanes,i=t.pingedLanes,o=n&268435455;if(o!==0){var l=o&~s;l!==0?r=er(l):(i&=o,i!==0&&(r=er(i)))}else o=n&~s,o!==0?r=er(o):i!==0&&(r=er(i));if(r===0)return 0;if(e!==0&&e!==r&&!(e&s)&&(s=r&-r,i=e&-e,s>=i||s===16&&(i&4194240)!==0))return e;if(r&4&&(r|=n&16),e=t.entangledLanes,e!==0)for(t=t.entanglements,e&=r;0<e;)n=31-We(e),s=1<<n,r|=t[n],e&=~s;return r}function cf(t,e){switch(t){case 1:case 2:case 4:return e+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function df(t,e){for(var n=t.suspendedLanes,r=t.pingedLanes,s=t.expirationTimes,i=t.pendingLanes;0<i;){var o=31-We(i),l=1<<o,a=s[o];a===-1?(!(l&n)||l&r)&&(s[o]=cf(l,e)):a<=e&&(t.expiredLanes|=l),i&=~l}}function go(t){return t=t.pendingLanes&-1073741825,t!==0?t:t&1073741824?1073741824:0}function hc(){var t=Qr;return Qr<<=1,!(Qr&4194240)&&(Qr=64),t}function Ei(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function Lr(t,e,n){t.pendingLanes|=e,e!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,e=31-We(e),t[e]=n}function hf(t,e){var n=t.pendingLanes&~e;t.pendingLanes=e,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=e,t.mutableReadLanes&=e,t.entangledLanes&=e,e=t.entanglements;var r=t.eventTimes;for(t=t.expirationTimes;0<n;){var s=31-We(n),i=1<<s;e[s]=0,r[s]=-1,t[s]=-1,n&=~i}}function ml(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var r=31-We(n),s=1<<r;s&e|t[r]&e&&(t[r]|=e),n&=~s}}var U=0;function fc(t){return t&=-t,1<t?4<t?t&268435455?16:536870912:4:1}
vendor: 5,036 bytes, line 37
37var pc,gl,mc,gc,vc,vo=!1,Jr=[],_t=null,xt=null,kt=null,yr=new Map,wr=new Map,mt=[],ff="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 ga(t,e){switch(t){case"focusin":case"focusout":_t=null;break;case"dragenter":case"dragleave":xt=null;break;case"mouseover":case"mouseout":kt=null;break;case"pointerover":case"pointerout":yr.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":wr.delete(e.pointerId)}}function Vn(t,e,n,r,s,i){return t===null||t.nativeEvent!==i?(t={blockedOn:e,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[s]},e!==null&&(e=$r(e),e!==null&&gl(e)),t):(t.eventSystemFlags|=r,e=t.targetContainers,s!==null&&e.indexOf(s)===-1&&e.push(s),t)}function pf(t,e,n,r,s){switch(e){case"focusin":return _t=Vn(_t,t,e,n,r,s),!0;case"dragenter":return xt=Vn(xt,t,e,n,r,s),!0;case"mouseover":return kt=Vn(kt,t,e,n,r,s),!0;case"pointerover":var i=s.pointerId;return yr.set(i,Vn(yr.get(i)||null,t,e,n,r,s)),!0;case"gotpointercapture":return i=s.pointerId,wr.set(i,Vn(wr.get(i)||null,t,e,n,r,s)),!0}return!1}function yc(t){var e=Bt(t.target);if(e!==null){var n=Zt(e);if(n!==null){if(e=n.tag,e===13){if(e=oc(n),e!==null){t.blockedOn=e,vc(t.priority,function(){mc(n)});return}}else if(e===3&&n.stateNode.current.memoizedState.isDehydrated){t.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}t.blockedOn=null}function fs(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=yo(t.domEventName,t.eventSystemFlags,e[0],t.nativeEvent);if(n===null){n=t.nativeEvent;var r=new n.constructor(n.type,n);ho=r,n.target.dispatchEvent(r),ho=null}else return e=$r(n),e!==null&&gl(e),t.blockedOn=n,!1;e.shift()}return!0}function va(t,e,n){fs(t)&&n.delete(e)}function mf(){vo=!1,_t!==null&&fs(_t)&&(_t=null),xt!==null&&fs(xt)&&(xt=null),kt!==null&&fs(kt)&&(kt=null),yr.forEach(va),wr.forEach(va)}function qn(t,e){t.blockedOn===e&&(t.blockedOn=null,vo||(vo=!0,Ce.unstable_scheduleCallback(Ce.unstable_NormalPriority,mf)))}function _r(t){function e(s){return qn(s,t)}if(0<Jr.length){qn(Jr[0],t);for(var n=1;n<Jr.length;n++){var r=Jr[n];r.blockedOn===t&&(r.blockedOn=null)}}for(_t!==null&&qn(_t,t),xt!==null&&qn(xt,t),kt!==null&&qn(kt,t),yr.forEach(e),wr.forEach(e),n=0;n<mt.length;n++)r=mt[n],r.blockedOn===t&&(r.blockedOn=null);for(;0<mt.length&&(n=mt[0],n.blockedOn===null);)yc(n),n.blockedOn===null&&mt.shift()}var jn=ut.ReactCurrentBatchConfig,Ts=!0;function gf(t,e,n,r){var s=U,i=jn.transition;jn.transition=null;try{U=1,vl(t,e,n,r)}finally{U=s,jn.transition=i}}function vf(t,e,n,r){var s=U,i=jn.transition;jn.transition=null;try{U=4,vl(t,e,n,r)}finally{U=s,jn.transition=i}}function vl(t,e,n,r){if(Ts){var s=yo(t,e,n,r);if(s===null)Li(t,e,r,Ns,n),ga(t,r);else if(pf(s,t,e,n,r))r.stopPropagation();else if(ga(t,r),e&4&&-1<ff.indexOf(t)){for(;s!==null;){var i=$r(s);if(i!==null&&pc(i),i=yo(t,e,n,r),i===null&&Li(t,e,r,Ns,n),i===s)break;s=i}s!==null&&r.stopPropagation()}else Li(t,e,r,null,n)}}var Ns=null;function yo(t,e,n,r){if(Ns=null,t=fl(r),t=Bt(t),t!==null)if(e=Zt(t),e===null)t=null;else if(n=e.tag,n===13){if(t=oc(e),t!==null)return t;t=null}else if(n===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null);return Ns=t,null}function wc(t){switch(t){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(rf()){case pl:return 1;case cc:return 4;case Cs:case sf:return 16;case dc:return 536870912;default:return 16}default:return 16}}var yt=null,yl=null,ps=null;function _c(){if(ps)return ps;var t,e=yl,n=e.length,r,s="value"in yt?yt.value:yt.textContent,i=s.length;for(t=0;t<n&&e[t]===s[t];t++);var o=n-t;for(r=1;r<=o&&e[n-r]===s[i-r];r++);return ps=s.slice(t,1<r?1-r:void 0)}function ms(t){var e=t.keyCode;
vendor: 5,619 bytes, line 37
37return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function Yr(){return!0}function ya(){return!1}function Te(t){function e(n,r,s,i,o){this._reactName=n,this._targetInst=s,this.type=r,this.nativeEvent=i,this.target=o,this.currentTarget=null;for(var l in t)t.hasOwnProperty(l)&&(n=t[l],this[l]=n?n(i):i[l]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Yr:ya,this.isPropagationStopped=ya,this}return q(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Yr)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Yr)},persist:function(){},isPersistent:Yr}),e}var Un={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},wl=Te(Un),Ir=q({},Un,{view:0,detail:0}),yf=Te(Ir),ji,Ci,Kn,Ys=q({},Ir,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:_l,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==Kn&&(Kn&&t.type==="mousemove"?(ji=t.screenX-Kn.screenX,Ci=t.screenY-Kn.screenY):Ci=ji=0,Kn=t),ji)},movementY:function(t){return"movementY"in t?t.movementY:Ci}}),wa=Te(Ys),wf=q({},Ys,{dataTransfer:0}),_f=Te(wf),xf=q({},Ir,{relatedTarget:0}),bi=Te(xf),kf=q({},Un,{animationName:0,elapsedTime:0,pseudoElement:0}),Sf=Te(kf),Ef=q({},Un,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),jf=Te(Ef),Cf=q({},Un,{data:0}),_a=Te(Cf),bf={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Tf={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"},Nf={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Pf(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=Nf[t])?!!e[t]:!1}function _l(){return Pf}var Of=q({},Ir,{key:function(t){if(t.key){var e=bf[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=ms(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?Tf[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:_l,charCode:function(t){return t.type==="keypress"?ms(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?ms(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),Rf=Te(Of),Af=q({},Ys,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),xa=Te(Af),Lf=q({},Ir,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:_l}),If=Te(Lf),$f=q({},Un,{propertyName:0,elapsedTime:0,pseudoElement:0}),Uf=Te($f),Mf=q({},Ys,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),Df=Te(Mf),zf=[9,13,27,32],xl=it&&"CompositionEvent"in window,ir=null;it&&"documentMode"in document&&(ir=document.documentMode);var Ff=it&&"TextEvent"in window&&!ir,xc=it&&(!xl||ir&&8<ir&&11>=ir),ka=" ",Sa=!1;function kc(t,e){switch(t){case"keyup":return zf.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Sc(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var hn=!1;function Bf(t,e){switch(t){case"compositionend":return Sc(e);case"keypress":return e.which!==32?null:(Sa=!0,ka);case"textInput":return t=e.data,t===ka&&Sa?null:t;default:return null}}function Wf(t,e){if(hn)return t==="compositionend"||!xl&&kc(t,e)?(t=_c(),ps=yl=yt=null,hn=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return xc&&e.locale!=="ko"?null:e.data;default:return null}}var Hf={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 Ea(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!Hf[t.type]:e==="textarea"}function Ec(t,e,n,r){tc(r),e=Ps(e,"onChange"),0<e.length&&(n=new wl("onChange","change",null,n,r),t.push({event:n,listeners:e}))}var or=null,xr=null;function Vf(t){Ic(t,0)}function Xs(t){var e=mn(t);if(Qu(e))return t}function qf(t,e){if(t==="change")return e}var jc=!1;if(it){var Ti;if(it){var Ni="oninput"in document;if(!Ni){var ja=document.createElement("div");ja.setAttribute("oninput","return;"),Ni=typeof ja.oninput=="function"}
vendor: 5,484 bytes, line 37
37Ti=Ni}else Ti=!1;jc=Ti&&(!document.documentMode||9<document.documentMode)}function Ca(){or&&(or.detachEvent("onpropertychange",Cc),xr=or=null)}function Cc(t){if(t.propertyName==="value"&&Xs(xr)){var e=[];Ec(e,xr,t,fl(t)),ic(Vf,e)}}function Kf(t,e,n){t==="focusin"?(Ca(),or=e,xr=n,or.attachEvent("onpropertychange",Cc)):t==="focusout"&&Ca()}function Qf(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Xs(xr)}function Gf(t,e){if(t==="click")return Xs(e)}function Jf(t,e){if(t==="input"||t==="change")return Xs(e)}function Yf(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var Ve=typeof Object.is=="function"?Object.is:Yf;function kr(t,e){if(Ve(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var s=n[r];if(!Zi.call(e,s)||!Ve(t[s],e[s]))return!1}return!0}function ba(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Ta(t,e){var n=ba(t);t=0;for(var r;n;){if(n.nodeType===3){if(r=t+n.textContent.length,t<=e&&r>=e)return{node:n,offset:e-t};t=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=ba(n)}}function bc(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?bc(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function Tc(){for(var t=window,e=Ss();e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=Ss(t.document)}return e}function kl(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}function Xf(t){var e=Tc(),n=t.focusedElem,r=t.selectionRange;if(e!==n&&n&&n.ownerDocument&&bc(n.ownerDocument.documentElement,n)){if(r!==null&&kl(n)){if(e=r.start,t=r.end,t===void 0&&(t=e),"selectionStart"in n)n.selectionStart=e,n.selectionEnd=Math.min(t,n.value.length);else if(t=(e=n.ownerDocument||document)&&e.defaultView||window,t.getSelection){t=t.getSelection();var s=n.textContent.length,i=Math.min(r.start,s);r=r.end===void 0?i:Math.min(r.end,s),!t.extend&&i>r&&(s=r,r=i,i=s),s=Ta(n,i);var o=Ta(n,r);s&&o&&(t.rangeCount!==1||t.anchorNode!==s.node||t.anchorOffset!==s.offset||t.focusNode!==o.node||t.focusOffset!==o.offset)&&(e=e.createRange(),e.setStart(s.node,s.offset),t.removeAllRanges(),i>r?(t.addRange(e),t.extend(o.node,o.offset)):(e.setEnd(o.node,o.offset),t.addRange(e)))}}for(e=[],t=n;t=t.parentNode;)t.nodeType===1&&e.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<e.length;n++)t=e[n],t.element.scrollLeft=t.left,t.element.scrollTop=t.top}}var Zf=it&&"documentMode"in document&&11>=document.documentMode,fn=null,wo=null,lr=null,_o=!1;function Na(t,e,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;_o||fn==null||fn!==Ss(r)||(r=fn,"selectionStart"in r&&kl(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}),lr&&kr(lr,r)||(lr=r,r=Ps(wo,"onSelect"),0<r.length&&(e=new wl("onSelect","select",null,e,n),t.push({event:e,listeners:r}),e.target=fn)))}function Xr(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var pn={animationend:Xr("Animation","AnimationEnd"),animationiteration:Xr("Animation","AnimationIteration"),animationstart:Xr("Animation","AnimationStart"),transitionend:Xr("Transition","TransitionEnd")},Pi={},Nc={};it&&(Nc=document.createElement("div").style,"AnimationEvent"in window||(delete pn.animationend.animation,delete pn.animationiteration.animation,delete pn.animationstart.animation),"TransitionEvent"in window||delete pn.transitionend.transition);function Zs(t){if(Pi[t])return Pi[t];if(!pn[t])return t;var e=pn[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in Nc)return Pi[t]=e[n];return t}var Pc=Zs("animationend"),Oc=Zs("animationiteration"),Rc=Zs("animationstart"),Ac=Zs("transitionend"),Lc=new Map,Pa="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 Pt(t,e){Lc.set(t,e),Xt(e,[t])}for(var Oi=0;Oi<Pa.length;Oi++){var Ri=Pa[Oi],ep=Ri.toLowerCase(),tp=Ri[0].toUpperCase()+Ri.slice(1);Pt(ep,"on"+tp)}Pt(Pc,"onAnimationEnd");Pt(Oc,"onAnimationIteration");Pt(Rc,"onAnimationStart");Pt("dblclick","onDoubleClick");Pt("focusin","onFocus");Pt("focusout","onBlur");Pt(Ac,"onTransitionEnd");Tn("onMouseEnter",["mouseout","mouseover"]);Tn("onMouseLeave",["mouseout","mouseover"]);Tn("onPointerEnter",["pointerout","pointerover"]);Tn("onPointerLeave",["pointerout","pointerover"]);Xt("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));
vendor: 4,769 bytes, line 37
37Xt("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Xt("onBeforeInput",["compositionend","keypress","textInput","paste"]);Xt("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Xt("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Xt("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var tr="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(" "),np=new Set("cancel close invalid load scroll toggle".split(" ").concat(tr));function Oa(t,e,n){var r=t.type||"unknown-event";t.currentTarget=n,Zh(r,e,void 0,t),t.currentTarget=null}function Ic(t,e){e=(e&4)!==0;for(var n=0;n<t.length;n++){var r=t[n],s=r.event;r=r.listeners;e:{var i=void 0;if(e)for(var o=r.length-1;0<=o;o--){var l=r[o],a=l.instance,u=l.currentTarget;if(l=l.listener,a!==i&&s.isPropagationStopped())break e;Oa(s,l,u),i=a}else for(o=0;o<r.length;o++){if(l=r[o],a=l.instance,u=l.currentTarget,l=l.listener,a!==i&&s.isPropagationStopped())break e;Oa(s,l,u),i=a}}}if(js)throw t=mo,js=!1,mo=null,t}function F(t,e){var n=e[jo];n===void 0&&(n=e[jo]=new Set);var r=t+"__bubble";n.has(r)||($c(e,t,2,!1),n.add(r))}function Ai(t,e,n){var r=0;e&&(r|=4),$c(n,t,r,e)}var Zr="_reactListening"+Math.random().toString(36).slice(2);function Sr(t){if(!t[Zr]){t[Zr]=!0,Wu.forEach(function(n){n!=="selectionchange"&&(np.has(n)||Ai(n,!1,t),Ai(n,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[Zr]||(e[Zr]=!0,Ai("selectionchange",!1,e))}}function $c(t,e,n,r){switch(wc(e)){case 1:var s=gf;break;case 4:s=vf;break;default:s=vl}n=s.bind(null,e,n,t),s=void 0,!po||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(s=!0),r?s!==void 0?t.addEventListener(e,n,{capture:!0,passive:s}):t.addEventListener(e,n,!0):s!==void 0?t.addEventListener(e,n,{passive:s}):t.addEventListener(e,n,!1)}function Li(t,e,n,r,s){var i=r;if(!(e&1)&&!(e&2)&&r!==null)e:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var l=r.stateNode.containerInfo;if(l===s||l.nodeType===8&&l.parentNode===s)break;if(o===4)for(o=r.return;o!==null;){var a=o.tag;if((a===3||a===4)&&(a=o.stateNode.containerInfo,a===s||a.nodeType===8&&a.parentNode===s))return;o=o.return}for(;l!==null;){if(o=Bt(l),o===null)return;if(a=o.tag,a===5||a===6){r=i=o;continue e}l=l.parentNode}}r=r.return}ic(function(){var u=i,c=fl(n),f=[];e:{var m=Lc.get(t);if(m!==void 0){var v=wl,w=t;switch(t){case"keypress":if(ms(n)===0)break e;case"keydown":case"keyup":v=Rf;break;case"focusin":w="focus",v=bi;break;case"focusout":w="blur",v=bi;break;case"beforeblur":case"afterblur":v=bi;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":v=wa;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":v=_f;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":v=If;break;case Pc:case Oc:case Rc:v=Sf;break;case Ac:v=Uf;break;case"scroll":v=yf;break;case"wheel":v=Df;break;case"copy":case"cut":case"paste":v=jf;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":v=xa}var _=(e&4)!==0,j=!_&&t==="scroll",g=_?m!==null?m+"Capture":null:m;_=[];for(var h=u,p;h!==null;){p=h;var y=p.stateNode;if(p.tag===5&&y!==null&&(p=y,g!==null&&(y=vr(h,g),y!=null&&_.push(Er(h,y,p)))),j)break;h=h.return}0<_.length&&(m=new v(m,w,null,n,c),f.push({event:m,listeners:_}))}}if(!(e&7)){e:{if(m=t==="mouseover"||t==="pointerover",v=t==="mouseout"||t==="pointerout",m&&n!==ho&&(w=n.relatedTarget||n.fromElement)&&(Bt(w)||w[ot]))break e;if((v||m)&&(m=c.window===c?c:(m=c.ownerDocument)?m.defaultView||m.parentWindow:window,v?(w=n.relatedTarget||n.toElement,v=u,w=w?Bt(w):null,w!==null&&(j=Zt(w),w!==j||w.tag!==5&&w.tag!==6)&&(w=null)):(v=null,w=u),v!==w)){if(_=wa,y="onMouseLeave",g="onMouseEnter",h="mouse",(t==="pointerout"||t==="pointerover")&&(_=xa,y="onPointerLeave",g="onPointerEnter",h="pointer"),j=v==null?m:mn(v),p=w==null?m:mn(w),m=new _(y,h+"leave",v,n,c),m.target=j,m.relatedTarget=p,y=null,Bt(c)===u&&(_=new _(g,h+"enter",w,n,c),_.target=p,_.relatedTarget=j,y=_),j=y,v&&w)t:{for(_=v,g=w,h=0,p=_;p;p=tn(p))h++;for(p=0,y=g;y;y=tn(y))p++;for(;0<h-p;)_=tn(_),h--;for(;0<p-h;)g=tn(g),p--;for(;h--;){if(_===g||g!==null&&_===g.alternate)break t;_=tn(_),g=tn(g)}_=null}else _=null;v!==null&&Ra(f,m,v,_,!1),w!==null&&j!==null&&Ra(f,j,w,_,!0)}}
vendor: 7,559 bytes, lines 37-38
37e:{if(m=u?mn(u):window,v=m.nodeName&&m.nodeName.toLowerCase(),v==="select"||v==="input"&&m.type==="file")var S=qf;else if(Ea(m))if(jc)S=Jf;else{S=Qf;var k=Kf}else(v=m.nodeName)&&v.toLowerCase()==="input"&&(m.type==="checkbox"||m.type==="radio")&&(S=Gf);if(S&&(S=S(t,u))){Ec(f,S,n,c);break e}k&&k(t,m,u),t==="focusout"&&(k=m._wrapperState)&&k.controlled&&m.type==="number"&&oo(m,"number",m.value)}switch(k=u?mn(u):window,t){case"focusin":(Ea(k)||k.contentEditable==="true")&&(fn=k,wo=u,lr=null);break;case"focusout":lr=wo=fn=null;break;case"mousedown":_o=!0;break;case"contextmenu":case"mouseup":case"dragend":_o=!1,Na(f,n,c);break;case"selectionchange":if(Zf)break;case"keydown":case"keyup":Na(f,n,c)}var E;if(xl)e:{switch(t){case"compositionstart":var T="onCompositionStart";break e;case"compositionend":T="onCompositionEnd";break e;case"compositionupdate":T="onCompositionUpdate";break e}T=void 0}else hn?kc(t,n)&&(T="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(T="onCompositionStart");T&&(xc&&n.locale!=="ko"&&(hn||T!=="onCompositionStart"?T==="onCompositionEnd"&&hn&&(E=_c()):(yt=c,yl="value"in yt?yt.value:yt.textContent,hn=!0)),k=Ps(u,T),0<k.length&&(T=new _a(T,t,null,n,c),f.push({event:T,listeners:k}),E?T.data=E:(E=Sc(n),E!==null&&(T.data=E)))),(E=Ff?Bf(t,n):Wf(t,n))&&(u=Ps(u,"onBeforeInput"),0<u.length&&(c=new _a("onBeforeInput","beforeinput",null,n,c),f.push({event:c,listeners:u}),c.data=E))}Ic(f,e)})}function Er(t,e,n){return{instance:t,listener:e,currentTarget:n}}function Ps(t,e){for(var n=e+"Capture",r=[];t!==null;){var s=t,i=s.stateNode;s.tag===5&&i!==null&&(s=i,i=vr(t,n),i!=null&&r.unshift(Er(t,i,s)),i=vr(t,e),i!=null&&r.push(Er(t,i,s))),t=t.return}return r}function tn(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5);return t||null}function Ra(t,e,n,r,s){for(var i=e._reactName,o=[];n!==null&&n!==r;){var l=n,a=l.alternate,u=l.stateNode;if(a!==null&&a===r)break;l.tag===5&&u!==null&&(l=u,s?(a=vr(n,i),a!=null&&o.unshift(Er(n,a,l))):s||(a=vr(n,i),a!=null&&o.push(Er(n,a,l)))),n=n.return}o.length!==0&&t.push({event:e,listeners:o})}var rp=/\r\n?/g,sp=/\u0000|\uFFFD/g;function Aa(t){return(typeof t=="string"?t:""+t).replace(rp,` 38`).replace(sp,"")}function es(t,e,n){if(e=Aa(e),Aa(t)!==e&&n)throw Error(x(425))}function Os(){}var xo=null,ko=null;function So(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var Eo=typeof setTimeout=="function"?setTimeout:void 0,ip=typeof clearTimeout=="function"?clearTimeout:void 0,La=typeof Promise=="function"?Promise:void 0,op=typeof queueMicrotask=="function"?queueMicrotask:typeof La<"u"?function(t){return La.resolve(null).then(t).catch(lp)}:Eo;function lp(t){setTimeout(function(){throw t})}function Ii(t,e){var n=e,r=0;do{var s=n.nextSibling;if(t.removeChild(n),s&&s.nodeType===8)if(n=s.data,n==="/$"){if(r===0){t.removeChild(s),_r(e);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=s}while(n);_r(e)}function St(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?")break;if(e==="/$")return null}}return t}function Ia(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="$"||n==="$!"||n==="$?"){if(e===0)return t;e--}else n==="/$"&&e++}t=t.previousSibling}return null}var Mn=Math.random().toString(36).slice(2),Ge="__reactFiber$"+Mn,jr="__reactProps$"+Mn,ot="__reactContainer$"+Mn,jo="__reactEvents$"+Mn,ap="__reactListeners$"+Mn,up="__reactHandles$"+Mn;function Bt(t){var e=t[Ge];if(e)return e;for(var n=t.parentNode;n;){if(e=n[ot]||n[Ge]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=Ia(t);t!==null;){if(n=t[Ge])return n;t=Ia(t)}return e}t=n,n=t.parentNode}return null}function $r(t){return t=t[Ge]||t[ot],!t||t.tag!==5&&t.tag!==6&&t.tag!==13&&t.tag!==3?null:t}function mn(t){if(t.tag===5||t.tag===6)return t.stateNode;throw Error(x(33))}function ei(t){return t[jr]||null}var Co=[],gn=-1;function Ot(t){return{current:t}}function B(t){0>gn||(t.current=Co[gn],Co[gn]=null,gn--)}function z(t,e){gn++,Co[gn]=t.current,t.current=e}var Nt={},de=Ot(Nt),_e=Ot(!1),Kt=Nt;function Nn(t,e){var n=t.type.contextTypes;if(!n)return Nt;var r=t.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===e)return r.__reactInternalMemoizedMaskedChildContext;var s={},i;for(i in n)s[i]=e[i];return r&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=s),s}function xe(t){return t=t.childContextTypes,t!=null}function Rs(){B(_e),B(de)}function $a(t,e,n){if(de.current!==Nt)throw Error(x(168));z(de,e),z(_e,n)}function Uc(t,e,n){var r=t.stateNode;if(e=e.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var s in r)if(!(s in e))throw Error(x(108,qh(t)||"Unknown",s));return q({},n,r)}function As(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||Nt,Kt=de.current,z(de,t),z(_e,_e.current),!0}function Ua(t,e,n){var r=t.stateNode;if(!r)throw Error(x(169));n?(t=Uc(t,e,Kt),r.__reactInternalMemoizedMergedChildContext=t,B(_e),B(de),z(de,t)):B(_e),z(_e,n)}var tt=null,ti=!1,$i=!1;function Mc(t){tt===null?tt=[t]:tt.push(t)}function cp(t){ti=!0,Mc(t)}function Rt(){if(!$i&&tt!==null){$i=!0;var t=0,e=U;try{var n=tt;for(U=1;t<n.length;t++){var r=n[t];do r=r(!0);while(r!==null)}tt=null,ti=!1}catch(s){throw tt!==null&&(tt=tt.slice(t+1)),uc(pl,Rt),s}finally{U=e,$i=!1}}return null}var vn=[],yn=0,Ls=null,Is=0,Ne=[],Pe=0,Qt=null,nt=1,rt="";function Mt(t,e){vn[yn++]=Is,vn[yn++]=Ls,Ls=t,Is=e}function Dc(t,e,n){Ne[Pe++]=nt,Ne[Pe++]=rt,Ne[Pe++]=Qt,Qt=t;var r=nt;t=rt;var s=32-We(r)-1;r&=~(1<<s),n+=1;var i=32-We(e)+s;if(30<i){var o=s-s%5;i=(r&(1<<o)-1).toString(32),r>>=o,s-=o,nt=1<<32-We(e)+s|n<<s|r,rt=i+t}else nt=1<<i|n<<s|r,rt=t}function Sl(t){t.return!==null&&(Mt(t,1),Dc(t,1,0))}function El(t){for(;t===Ls;)Ls=vn[--yn],vn[yn]=null,Is=vn[--yn],vn[yn]=null;for(;t===Qt;)Qt=Ne[--Pe],Ne[Pe]=null,rt=Ne[--Pe],Ne[Pe]=null,nt=Ne[--Pe],Ne[Pe]=null}var je=null,Ee=null,W=!1,Be=null;function zc(t,e){var n=Oe(5,null,null,0);n.elementType="DELETED",n.stateNode=e,n.return=t,e=t.deletions,e===null?(t.deletions=[n],t.flags|=16):e.push(n)}function Ma(t,e){switch(t.tag){case 5:var n=t.type;return e=e.nodeType!==1||n.toLowerCase()!==e.nodeName.toLowerCase()?null:e,e!==null?(t.stateNode=e,je=t,Ee=St(e.firstChild),!0):!1;case 6:return e=t.pendingProps===""||e.nodeType!==3?null:e,e!==null?(t.stateNode=e,je=t,Ee=null,!0):!1;case 13:return e=e.nodeType!==8?null:e,e!==null?(n=Qt!==null?{id:nt,overflow:rt}:null,t.memoizedState={dehydrated:e,treeContext:n,retryLane:1073741824},n=Oe(18,null,null,0),n.stateNode=e,n.return=t,t.child=n,je=t,Ee=null,!0):!1;default:return!1}}function bo(t){return(t.mode&1)!==0&&(t.flags&128)===0}function To(t){if(W){var e=Ee;if(e){var n=e;if(!Ma(t,e)){if(bo(t))throw Error(x(418));e=St(n.nextSibling);var r=je;e&&Ma(t,e)?zc(r,n):(t.flags=t.flags&-4097|2,W=!1,je=t)}}else{if(bo(t))throw Error(x(418));t.flags=t.flags&-4097|2,W=!1,je=t}}}function Da(t){for(t=t.return;t!==null&&t.tag!==5&&t.tag!==3&&t.tag!==13;)t=t.return;je=t}function ts(t){if(t!==je)return!1;if(!W)return Da(t),W=!0,!1;var e;if((e=t.tag!==3)&&!(e=t.tag!==5)&&(e=t.type,e=e!=="head"&&e!=="body"&&!So(t.type,t.memoizedProps)),e&&(e=Ee)){if(bo(t))throw Fc(),Error(x(418));for(;e;)zc(t,e),e=St(e.nextSibling)}if(Da(t),t.tag===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(x(317)
vendor: 14,163 bytes, line 38
38);e:{for(t=t.nextSibling,e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="/$"){if(e===0){Ee=St(t.nextSibling);break e}e--}else n!=="$"&&n!=="$!"&&n!=="$?"||e++}t=t.nextSibling}Ee=null}}else Ee=je?St(t.stateNode.nextSibling):null;return!0}function Fc(){for(var t=Ee;t;)t=St(t.nextSibling)}function Pn(){Ee=je=null,W=!1}function jl(t){Be===null?Be=[t]:Be.push(t)}var dp=ut.ReactCurrentBatchConfig;function Qn(t,e,n){if(t=n.ref,t!==null&&typeof t!="function"&&typeof t!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(x(309));var r=n.stateNode}if(!r)throw Error(x(147,t));var s=r,i=""+t;return e!==null&&e.ref!==null&&typeof e.ref=="function"&&e.ref._stringRef===i?e.ref:(e=function(o){var l=s.refs;o===null?delete l[i]:l[i]=o},e._stringRef=i,e)}if(typeof t!="string")throw Error(x(284));if(!n._owner)throw Error(x(290,t))}return t}function ns(t,e){throw t=Object.prototype.toString.call(e),Error(x(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t))}function za(t){var e=t._init;return e(t._payload)}function Bc(t){function e(g,h){if(t){var p=g.deletions;p===null?(g.deletions=[h],g.flags|=16):p.push(h)}}function n(g,h){if(!t)return null;for(;h!==null;)e(g,h),h=h.sibling;return null}function r(g,h){for(g=new Map;h!==null;)h.key!==null?g.set(h.key,h):g.set(h.index,h),h=h.sibling;return g}function s(g,h){return g=bt(g,h),g.index=0,g.sibling=null,g}function i(g,h,p){return g.index=p,t?(p=g.alternate,p!==null?(p=p.index,p<h?(g.flags|=2,h):p):(g.flags|=2,h)):(g.flags|=1048576,h)}function o(g){return t&&g.alternate===null&&(g.flags|=2),g}function l(g,h,p,y){return h===null||h.tag!==6?(h=Wi(p,g.mode,y),h.return=g,h):(h=s(h,p),h.return=g,h)}function a(g,h,p,y){var S=p.type;return S===dn?c(g,h,p.props.children,y,p.key):h!==null&&(h.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===ft&&za(S)===h.type)?(y=s(h,p.props),y.ref=Qn(g,h,p),y.return=g,y):(y=ks(p.type,p.key,p.props,null,g.mode,y),y.ref=Qn(g,h,p),y.return=g,y)}function u(g,h,p,y){return h===null||h.tag!==4||h.stateNode.containerInfo!==p.containerInfo||h.stateNode.implementation!==p.implementation?(h=Hi(p,g.mode,y),h.return=g,h):(h=s(h,p.children||[]),h.return=g,h)}function c(g,h,p,y,S){return h===null||h.tag!==7?(h=qt(p,g.mode,y,S),h.return=g,h):(h=s(h,p),h.return=g,h)}function f(g,h,p){if(typeof h=="string"&&h!==""||typeof h=="number")return h=Wi(""+h,g.mode,p),h.return=g,h;if(typeof h=="object"&&h!==null){switch(h.$$typeof){case Vr:return p=ks(h.type,h.key,h.props,null,g.mode,p),p.ref=Qn(g,null,h),p.return=g,p;case cn:return h=Hi(h,g.mode,p),h.return=g,h;case ft:var y=h._init;return f(g,y(h._payload),p)}if(Zn(h)||Wn(h))return h=qt(h,g.mode,p,null),h.return=g,h;ns(g,h)}return null}function m(g,h,p,y){var S=h!==null?h.key:null;if(typeof p=="string"&&p!==""||typeof p=="number")return S!==null?null:l(g,h,""+p,y);if(typeof p=="object"&&p!==null){switch(p.$$typeof){case Vr:return p.key===S?a(g,h,p,y):null;case cn:return p.key===S?u(g,h,p,y):null;case ft:return S=p._init,m(g,h,S(p._payload),y)}if(Zn(p)||Wn(p))return S!==null?null:c(g,h,p,y,null);ns(g,p)}return null}function v(g,h,p,y,S){if(typeof y=="string"&&y!==""||typeof y=="number")return g=g.get(p)||null,l(h,g,""+y,S);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case Vr:return g=g.get(y.key===null?p:y.key)||null,a(h,g,y,S);case cn:return g=g.get(y.key===null?p:y.key)||null,u(h,g,y,S);case ft:var k=y._init;return v(g,h,p,k(y._payload),S)}if(Zn(y)||Wn(y))return g=g.get(p)||null,c(h,g,y,S,null);ns(h,y)}return null}function w(g,h,p,y){for(var S=null,k=null,E=h,T=h=0,Q=null;E!==null&&T<p.length;T++){E.index>T?(Q=E,E=null):Q=E.sibling;var L=m(g,E,p[T],y);if(L===null){E===null&&(E=Q);break}t&&E&&L.alternate===null&&e(g,E),h=i(L,h,T),k===null?S=L:k.sibling=L,k=L,E=Q}if(T===p.length)return n(g,E),W&&Mt(g,T),S;if(E===null){for(;T<p.length;T++)E=f(g,p[T],y),E!==null&&(h=i(E,h,T),k===null?S=E:k.sibling=E,k=E);return W&&Mt(g,T),S}for(E=r(g,E);T<p.length;T++)Q=v(E,g,T,p[T],y),Q!==null&&(t&&Q.alternate!==null&&E.delete(Q.key===null?T:Q.key),h=i(Q,h,T),k===null?S=Q:k.sibling=Q,k=Q);return t&&E.forEach(function($e){return e(g,$e)}),W&&Mt(g,T),S}function _(g,h,p,y){var S=Wn(p);if(typeof S!="function")throw Error(x(150));if(p=S.call(p),p==null)throw Error(x(151));for(var k=S=null,E=h,T=h=0,Q=null,L=p.next();E!==null&&!L.done;T++,L=p.next()){E.index>T?(Q=E,E=null):Q=E.sibling;var $e=m(g,E,L.value,y);if($e===null){E===null&&(E=Q);break}t&&E&&$e.alternate===null&&e(g,E),h=i($e,h,T),k===null?S=$e:k.sibling=$e,k=$e,E=Q}if(L.done)return n(g,E),W&&Mt(g,T),S;if(E===null){for(;!L.done;T++,L=p.next())L=f(g,L.value,y),L!==null&&(h=i(L,h,T),k===null?S=L:k.sibling=L,k=L);return W&&Mt(g,T),S}for(E=r(g,E);!L.done;T++,L=p.next())L=v(E,g,T,L.value,y),L!==null&&(t&&L.alternate!==null&&E.delete(L.key===null?T:L.key),h=i(L,h,T),k===null?S=L:k.sibling=L,k=L);return t&&E.forEach(function(Fn){return e(g,Fn)}),W&&Mt(g,T),S}function j(g,h,p,y){if(typeof p=="object"&&p!==null&&p.type===dn&&p.key===null&&(p=p.props.children),typeof p=="object"&&p!==null){switch(p.$$typeof){case Vr:e:{for(var S=p.key,k=h;k!==null;){if(k.key===S){if(S=p.type,S===dn){if(k.tag===7){n(g,k.sibling),h=s(k,p.props.children),h.return=g,g=h;break e}}else if(k.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===ft&&za(S)===k.type){n(g,k.sibling),h=s(k,p.props),h.ref=Qn(g,k,p),h.return=g,g=h;break e}n(g,k);break}else e(g,k);k=k.sibling}p.type===dn?(h=qt(p.props.children,g.mode,y,p.key),h.return=g,g=h):(y=ks(p.type,p.key,p.props,null,g.mode,y),y.ref=Qn(g,h,p),y.return=g,g=y)}return o(g);case cn:e:{for(k=p.key;h!==null;){if(h.key===k)if(h.tag===4&&h.stateNode.containerInfo===p.containerInfo&&h.stateNode.implementation===p.implementation){n(g,h.sibling),h=s(h,p.children||[]),h.return=g,g=h;break e}else{n(g,h);break}else e(g,h);h=h.sibling}h=Hi(p,g.mode,y),h.return=g,g=h}return o(g);case ft:return k=p._init,j(g,h,k(p._payload),y)}if(Zn(p))return w(g,h,p,y);if(Wn(p))return _(g,h,p,y);ns(g,p)}return typeof p=="string"&&p!==""||typeof p=="number"?(p=""+p,h!==null&&h.tag===6?(n(g,h.sibling),h=s(h,p),h.return=g,g=h):(n(g,h),h=Wi(p,g.mode,y),h.return=g,g=h),o(g)):n(g,h)}return j}var On=Bc(!0),Wc=Bc(!1),$s=Ot(null),Us=null,wn=null,Cl=null;function bl(){Cl=wn=Us=null}function Tl(t){var e=$s.current;B($s),t._currentValue=e}function No(t,e,n){for(;t!==null;){var r=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,r!==null&&(r.childLanes|=e)):r!==null&&(r.childLanes&e)!==e&&(r.childLanes|=e),t===n)break;t=t.return}}function Cn(t,e){Us=t,Cl=wn=null,t=t.dependencies,t!==null&&t.firstContext!==null&&(t.lanes&e&&(we=!0),t.firstContext=null)}function Le(t){var e=t._currentValue;if(Cl!==t)if(t={context:t,memoizedValue:e,next:null},wn===null){if(Us===null)throw Error(x(308));wn=t,Us.dependencies={lanes:0,firstContext:t}}else wn=wn.next=t;return e}var Wt=null;function Nl(t){Wt===null?Wt=[t]:Wt.push(t)}function Hc(t,e,n,r){var s=e.interleaved;return s===null?(n.next=n,Nl(e)):(n.next=s.next,s.next=n),e.interleaved=n,lt(t,r)}function lt(t,e){t.lanes|=e;var n=t.alternate;for(n!==null&&(n.lanes|=e),n=t,t=t.return;t!==null;)t.childLanes|=e,n=t.alternate,n!==null&&(n.childLanes|=e),n=t,t=t.return;return n.tag===3?n.stateNode:null}var pt=!1;function Pl(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Vc(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,effects:t.effects})}function st(t,e){return{eventTime:t,lane:e,tag:0,payload:null,callback:null,next:null}}function Et(t,e,n){var r=t.updateQueue;if(r===null)return null;if(r=r.shared,I&2){var s=r.pending;return s===null?e.next=e:(e.next=s.next,s.next=e),r.pending=e,lt(t,n)}return s=r.interleaved,s===null?(e.next=e,Nl(r)):(e.next=s.next,s.next=e),r.interleaved=e,lt(t,n)}function gs(t,e,n){if(e=e.updateQueue,e!==null&&(e=e.shared,(n&4194240)!==0)){var r=e.lanes;r&=t.pendingLanes,n|=r,e.lanes=n,ml(t,n)}}function Fa(t,e){var n=t.updateQueue,r=t.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var s=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?s=i=o:i=i.next=o,n=n.next}while(n!==null);i===null?s=i=e:i=i.next=e}else s=i=e;n={baseState:r.baseState,firstBaseUpdate:s,lastBaseUpdate:i,shared:r.shared,effects:r.effects},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}function Ms(t,e,n,r){var s=t.updateQueue;pt=!1;var i=s.firstBaseUpdate,o=s.lastBaseUpdate,l=s.shared.pending;if(l!==null){s.shared.pending=null;var a=l,u=a.next;a.next=null,o===null?i=u:o.next=u,o=a;var c=t.alternate;c!==null&&(c=c.updateQueue,l=c.lastBaseUpdate,l!==o&&(l===null?c.firstBaseUpdate=u:l.next=u,c.lastBaseUpdate=a))}if(i!==null){var f=s.baseState;o=0,c=u=a=null,l=i;do{var m=l.lane,v=l.eventTime;if((r&m)===m){c!==null&&(c=c.next={eventTime:v,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var w=t,_=l;switch(m=e,v=n,_.tag){case 1:if(w=_.payload,typeof w=="function"){f=w.call(v,f,m);break e}f=w;break e;case 3:w.flags=w.flags&-65537|128;case 0:if(w=_.payload,m=typeof w=="function"?w.call(v,f,m):w,m==null)break e;f=q({},f,m);break e;case 2:pt=!0}}l.callback!==null&&l.lane!==0&&(t.flags|=64,m=s.effects,m===null?s.effects=[l]:m.push(l))}else v={eventTime:v,lane:m,tag:l.tag,payload:l.payload,callback:l.callback,next:null},c===null?(u=c=v,a=f):c=c.next=v,o|=m;if(l=l.next,l===null){if(l=s.shared.pending,l===null)break;m=l,l=m.next,m.next=null,s.lastBaseUpdate=m,s.shared.pending=null}}while(!0);if(c===null&&(a=f),s.baseState=a,s.firstBaseUpdate=u,s.lastBaseUpdate=c,e=s.shared.interleaved,e!==null){s=e;do o|=s.lane,s=s.next;while(s!==e)}else i===null&&(s.shared.lanes=0);Jt|=o,t.lanes=o,t.memoizedState=f}}function Ba(t,e,n){if(t=e.effects,e.effects=null,t!==null)for(e=0;e<t.length;e++){var r=t[e],s=r.callback;if(s!==null){if(r.callback=null,r=n,typeof s!="function")throw Error(x(191,s));s.call(r)}}}var Ur={},Ye=Ot(Ur),Cr=Ot(Ur),br=Ot(Ur);function Ht(t){if(t===Ur)throw Error(x(174));return t}function Ol(t,e){switch(z(br,e),z(Cr,t),z(Ye,Ur),t=e.nodeType,t){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:ao(null,"");break;default:t=t===8?e.parentNode:e,e=t.namespaceURI||null,t=t.tagName,e=ao(e,t)}B(Ye),z(Ye,e)}function Rn(){B(Ye),B(Cr),B(br)}function qc(t){Ht(br.current);var e=Ht(Ye.current),n=ao(e,t.type);e!==n&&(z(Cr,t),z(Ye,n))}function Rl(t){Cr.current===t&&(B(Ye),B(Cr))}var H=Ot(0);function Ds(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!==void 0){if(e.flags&128)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var Ui=[];function Al(){for(var t=0;t<Ui.length;t++)Ui[t]._workInProgressVersionPrimary=null;Ui.length=0}var vs=ut.ReactCurrentDispatcher,Mi=ut.ReactCurrentBatchConfig,Gt=0,V=null,ee=null,re=null,zs=!1,ar=!1,Tr=0,hp=0;function ae(){throw Error(x(321))}function Ll(t,e){if(e===null)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!Ve(t[n],e[n]))return!1;return!0}function Il(t,e,n,r,s,i){if(Gt=i,V=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,vs.current=t===null||t.memoizedState===null?gp:vp,t=n(r,s),ar){i=0;do{if(ar=!1,Tr=0,25<=i)throw Error(x(301));i+=1,re=ee=null,e.updateQueue=null,vs.current=yp,t=n(r,s)}while(ar)}if(vs.current=Fs,e=ee!==null&&ee.next!==null,Gt=0,re=ee=V=null,zs=!1,e)throw Error(x(300));return t}function $l(){var t=Tr!==0;return Tr=0,t}function Ke(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return re===null?V.memoizedState=re=t:re=re.next=t,re}function Ie(){if(ee===null){var t=V.alternate;t=t!==null?t.memoizedState:null}else t=ee.next;var e=re===null?V.memoizedState:re.next;if(e!==null)re=e,ee=t;else{if(t===null)throw Error(x(310));ee=t,t={memoizedState:ee.memoizedState,baseState:ee.baseState,baseQueue:ee.baseQueue,queue:ee.queue,next:null},re===null?V.memoizedState=re=t:re=re.next=t}return re}function Nr(t,e){return typeof e=="function"?e(t):e}function Di(t){var e=Ie(),n=e.queue;if(n===null)throw Error(x(311));n.lastRenderedReducer=t;var r=ee,s=r.baseQueue,i=n.pending;if(i!==null){if(s!==null){var o=s.next;s.next=i.next,i.next=o}r.baseQueue=s=i,n.pending=null}if(s!==null){i=s.next,r=r.baseState;var l=o=null,a=null,u=i;do{var c=u.lane;if((Gt&c)===c)a!==null&&(a=a.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:t(r,u.action);else{var f={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};a===null?(l=a=f,o=r):a=a.next=f,V.lanes|=c,Jt|=c}u=u.next}while(u!==null&&u!==i);a===null?o=r:a.next=l,Ve(r,e.memoizedState)||(we=!0),e.memoizedState=r,e.baseState=o,e.baseQueue=a,n.lastRenderedState=r}if(t=n.interleaved,t!==null){s=t;do i=s.lane,V.lanes|=i,Jt|=i,s=s.next;while(s!==t)}else s===null&&(n.lanes=0);return[e.memoizedState,n.dispatch]}function zi(t){var e=Ie(),n=e.queue;if(n===null)throw Error(x(311));n.lastRenderedReducer=t;var r=n.dispatch,s=n.pending,i=e.memoizedState;if(s!==null){n.pending=null;var o=s=s.next;do i=t(i,o.action),o=o.next;while(o!==s);Ve(i,e.memoizedState)||(we=!0),e.memoizedState=i,e.baseQueue===null&&(e.baseState=i),n.lastRenderedState=i}return[i,r]}function Kc(){}function Qc(t,e){var n=V,r=Ie(),s=e(),i=!Ve(r.memoizedState,s);if(i&&(r.memoizedState=s,we=!0),r=r.queue,Ul(Yc.bind(null,n,r,t),[t]),r.getSnapshot!==e||i||re!==null&&re.memoizedState.tag&1){if(n.flags|=2048,Pr(9,Jc.bind(null,n,r,s,e),void 0,null),se===null)throw Error(x(349));Gt&30||Gc(n,e,s)}return s}function Gc(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},e=V.updateQueue,e===null?(e={lastEffect:null,stores:null},V.updateQueue=e,e.stores=[t]):(n=e.stores,n===null?e.stores=[t]:n.push(t))}
vendor: 5,456 bytes, line 38
38function Jc(t,e,n,r){e.value=n,e.getSnapshot=r,Xc(e)&&Zc(t)}function Yc(t,e,n){return n(function(){Xc(e)&&Zc(t)})}function Xc(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!Ve(t,n)}catch{return!0}}function Zc(t){var e=lt(t,1);e!==null&&He(e,t,1,-1)}function Wa(t){var e=Ke();return typeof t=="function"&&(t=t()),e.memoizedState=e.baseState=t,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Nr,lastRenderedState:t},e.queue=t,t=t.dispatch=mp.bind(null,V,t),[e.memoizedState,t]}function Pr(t,e,n,r){return t={tag:t,create:e,destroy:n,deps:r,next:null},e=V.updateQueue,e===null?(e={lastEffect:null,stores:null},V.updateQueue=e,e.lastEffect=t.next=t):(n=e.lastEffect,n===null?e.lastEffect=t.next=t:(r=n.next,n.next=t,t.next=r,e.lastEffect=t)),t}function ed(){return Ie().memoizedState}function ys(t,e,n,r){var s=Ke();V.flags|=t,s.memoizedState=Pr(1|e,n,void 0,r===void 0?null:r)}function ni(t,e,n,r){var s=Ie();r=r===void 0?null:r;var i=void 0;if(ee!==null){var o=ee.memoizedState;if(i=o.destroy,r!==null&&Ll(r,o.deps)){s.memoizedState=Pr(e,n,i,r);return}}V.flags|=t,s.memoizedState=Pr(1|e,n,i,r)}function Ha(t,e){return ys(8390656,8,t,e)}function Ul(t,e){return ni(2048,8,t,e)}function td(t,e){return ni(4,2,t,e)}function nd(t,e){return ni(4,4,t,e)}function rd(t,e){if(typeof e=="function")return t=t(),e(t),function(){e(null)};if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function sd(t,e,n){return n=n!=null?n.concat([t]):null,ni(4,4,rd.bind(null,e,t),n)}function Ml(){}function id(t,e){var n=Ie();e=e===void 0?null:e;var r=n.memoizedState;return r!==null&&e!==null&&Ll(e,r[1])?r[0]:(n.memoizedState=[t,e],t)}function od(t,e){var n=Ie();e=e===void 0?null:e;var r=n.memoizedState;return r!==null&&e!==null&&Ll(e,r[1])?r[0]:(t=t(),n.memoizedState=[t,e],t)}function ld(t,e,n){return Gt&21?(Ve(n,e)||(n=hc(),V.lanes|=n,Jt|=n,t.baseState=!0),e):(t.baseState&&(t.baseState=!1,we=!0),t.memoizedState=n)}function fp(t,e){var n=U;U=n!==0&&4>n?n:4,t(!0);var r=Mi.transition;Mi.transition={};try{t(!1),e()}finally{U=n,Mi.transition=r}}function ad(){return Ie().memoizedState}function pp(t,e,n){var r=Ct(t);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},ud(t))cd(e,n);else if(n=Hc(t,e,n,r),n!==null){var s=pe();He(n,t,r,s),dd(n,e,r)}}function mp(t,e,n){var r=Ct(t),s={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(ud(t))cd(e,s);else{var i=t.alternate;if(t.lanes===0&&(i===null||i.lanes===0)&&(i=e.lastRenderedReducer,i!==null))try{var o=e.lastRenderedState,l=i(o,n);if(s.hasEagerState=!0,s.eagerState=l,Ve(l,o)){var a=e.interleaved;a===null?(s.next=s,Nl(e)):(s.next=a.next,a.next=s),e.interleaved=s;return}}catch{}finally{}n=Hc(t,e,s,r),n!==null&&(s=pe(),He(n,t,r,s),dd(n,e,r))}}function ud(t){var e=t.alternate;return t===V||e!==null&&e===V}function cd(t,e){ar=zs=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function dd(t,e,n){if(n&4194240){var r=e.lanes;r&=t.pendingLanes,n|=r,e.lanes=n,ml(t,n)}}var Fs={readContext:Le,useCallback:ae,useContext:ae,useEffect:ae,useImperativeHandle:ae,useInsertionEffect:ae,useLayoutEffect:ae,useMemo:ae,useReducer:ae,useRef:ae,useState:ae,useDebugValue:ae,useDeferredValue:ae,useTransition:ae,useMutableSource:ae,useSyncExternalStore:ae,useId:ae,unstable_isNewReconciler:!1},gp={readContext:Le,useCallback:function(t,e){return Ke().memoizedState=[t,e===void 0?null:e],t},useContext:Le,useEffect:Ha,useImperativeHandle:function(t,e,n){return n=n!=null?n.concat([t]):null,ys(4194308,4,rd.bind(null,e,t),n)},useLayoutEffect:function(t,e){return ys(4194308,4,t,e)},useInsertionEffect:function(t,e){return ys(4,2,t,e)},useMemo:function(t,e){var n=Ke();return e=e===void 0?null:e,t=t(),n.memoizedState=[t,e],t},useReducer:function(t,e,n){var r=Ke();return e=n!==void 0?n(e):e,r.memoizedState=r.baseState=e,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:e},r.queue=t,t=t.dispatch=pp.bind(null,V,t),[r.memoizedState,t]},useRef:function(t){var e=Ke();return t={current:t},e.memoizedState=t},useState:Wa,useDebugValue:Ml,useDeferredValue:function(t){return Ke().memoizedState=t},useTransition:function(){var t=Wa(!1),e=t[0];return t=fp.bind(null,t[1]),Ke().memoizedState=t,[e,t]},useMutableSource:function(){},useSyncExternalStore:function(t,e,n){var r=V,s=Ke();if(W){if(n===void 0)throw Error(x(407));n=n()}else{if(n=e(),se===null)throw Error(x(349));Gt&30||Gc(r,e,n)}s.memoizedState=n;var i={value:n,getSnapshot:e};return s.queue=i,Ha(Yc.bind(null,r,i,t),[t]),r.flags|=2048,Pr(9,Jc.bind(null,r,i,n,e),void 0,null),n},useId:function(){var t=Ke(),e=se.identifierPrefix;if(W){var n=rt,r=nt;n=(r&~(1<<32-We(r)-1)).toString(32)+n,e=":"+e+"R"+n,n=Tr++,0<n&&(e+="H"+n.toString(32)),e+=":"}else n=hp++,e=":"+e+"r"+n.toString(32)+":";return t.memoizedState=e},unstable_isNewReconciler:!1},vp={readContext:Le,useCallback:id,useContext:Le,useEffect:Ul,useImperativeHandle:sd,useInsertionEffect:td,useLayoutEffect:nd,useMemo:od,useReducer:Di,useRef:ed,useState:function(){return Di(Nr)},useDebugValue:Ml,useDeferredValue:function(t){var e=Ie();return ld(e,ee.memoizedState,t)},useTransition:function(){var t=Di(Nr)[0],e=Ie().memoizedState;return[t,e]},useMutableSource:Kc,useSyncExternalStore:Qc,useId:ad,unstable_isNewReconciler:!1},yp={readContext:Le,useCallback:id,useContext:Le,useEffect:Ul,useImperativeHandle:sd,useInsertionEffect:td,useLayoutEffect:nd,useMemo:od,useReducer:zi,useRef
vendor: 5,962 bytes, lines 38-40
38:ed,useState:function(){return zi(Nr)},useDebugValue:Ml,useDeferredValue:function(t){var e=Ie();return ee===null?e.memoizedState=t:ld(e,ee.memoizedState,t)},useTransition:function(){var t=zi(Nr)[0],e=Ie().memoizedState;return[t,e]},useMutableSource:Kc,useSyncExternalStore:Qc,useId:ad,unstable_isNewReconciler:!1};function De(t,e){if(t&&t.defaultProps){e=q({},e),t=t.defaultProps;for(var n in t)e[n]===void 0&&(e[n]=t[n]);return e}return e}function Po(t,e,n,r){e=t.memoizedState,n=n(r,e),n=n==null?e:q({},e,n),t.memoizedState=n,t.lanes===0&&(t.updateQueue.baseState=n)}var ri={isMounted:function(t){return(t=t._reactInternals)?Zt(t)===t:!1},enqueueSetState:function(t,e,n){t=t._reactInternals;var r=pe(),s=Ct(t),i=st(r,s);i.payload=e,n!=null&&(i.callback=n),e=Et(t,i,s),e!==null&&(He(e,t,s,r),gs(e,t,s))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var r=pe(),s=Ct(t),i=st(r,s);i.tag=1,i.payload=e,n!=null&&(i.callback=n),e=Et(t,i,s),e!==null&&(He(e,t,s,r),gs(e,t,s))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=pe(),r=Ct(t),s=st(n,r);s.tag=2,e!=null&&(s.callback=e),e=Et(t,s,r),e!==null&&(He(e,t,r,n),gs(e,t,r))}};function Va(t,e,n,r,s,i,o){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(r,i,o):e.prototype&&e.prototype.isPureReactComponent?!kr(n,r)||!kr(s,i):!0}function hd(t,e,n){var r=!1,s=Nt,i=e.contextType;return typeof i=="object"&&i!==null?i=Le(i):(s=xe(e)?Kt:de.current,r=e.contextTypes,i=(r=r!=null)?Nn(t,s):Nt),e=new e(n,i),t.memoizedState=e.state!==null&&e.state!==void 0?e.state:null,e.updater=ri,t.stateNode=e,e._reactInternals=t,r&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=s,t.__reactInternalMemoizedMaskedChildContext=i),e}function qa(t,e,n,r){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(n,r),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(n,r),e.state!==t&&ri.enqueueReplaceState(e,e.state,null)}function Oo(t,e,n,r){var s=t.stateNode;s.props=n,s.state=t.memoizedState,s.refs={},Pl(t);var i=e.contextType;typeof i=="object"&&i!==null?s.context=Le(i):(i=xe(e)?Kt:de.current,s.context=Nn(t,i)),s.state=t.memoizedState,i=e.getDerivedStateFromProps,typeof i=="function"&&(Po(t,e,i,n),s.state=t.memoizedState),typeof e.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(e=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),e!==s.state&&ri.enqueueReplaceState(s,s.state,null),Ms(t,n,s,r),s.state=t.memoizedState),typeof s.componentDidMount=="function"&&(t.flags|=4194308)}function An(t,e){try{var n="",r=e;do n+=Vh(r),r=r.return;while(r);var s=n}catch(i){s=` 39Error generating stack: `+i.message+` 40`+i.stack}return{value:t,source:e,stack:s,digest:null}}function Fi(t,e,n){return{value:t,source:null,stack:n??null,digest:e??null}}function Ro(t,e){try{console.error(e.value)}catch(n){setTimeout(function(){throw n})}}var wp=typeof WeakMap=="function"?WeakMap:Map;function fd(t,e,n){n=st(-1,n),n.tag=3,n.payload={element:null};var r=e.value;return n.callback=function(){Ws||(Ws=!0,Bo=r),Ro(t,e)},n}function pd(t,e,n){n=st(-1,n),n.tag=3;var r=t.type.getDerivedStateFromError;if(typeof r=="function"){var s=e.value;n.payload=function(){return r(s)},n.callback=function(){Ro(t,e)}}var i=t.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){Ro(t,e),typeof r!="function"&&(jt===null?jt=new Set([this]):jt.add(this));var o=e.stack;this.componentDidCatch(e.value,{componentStack:o!==null?o:""})}),n}function Ka(t,e,n){var r=t.pingCache;if(r===null){r=t.pingCache=new wp;var s=new Set;r.set(e,s)}else s=r.get(e),s===void 0&&(s=new Set,r.set(e,s));s.has(n)||(s.add(n),t=Ap.bind(null,t,e,n),e.then(t,t))}function Qa(t){do{var e;if((e=t.tag===13)&&(e=t.memoizedState,e=e!==null?e.dehydrated!==null:!0),e)return t;t=t.return}while(t!==null);return null}function Ga(t,e,n,r,s){return t.mode&1?(t.flags|=65536,t.lanes=s,t):(t===e?t.flags|=65536:(t.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(e=st(-1,1),e.tag=2,Et(n,e,1))),n.lanes|=1),t)}var _p=ut.ReactCurrentOwner,we=!1;function fe(t,e,n,r){e.child=t===null?Wc(e,null,n,r):On(e,t.child,n,r)}function Ja(t,e,n,r,s){n=n.render;var i=e.ref;return Cn(e,s),r=Il(t,e,n,r,i,s),n=$l(),t!==null&&!we?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~s,at(t,e,s)):(W&&n&&Sl(e),e.flags|=1,fe(t,e,r,s),e.child)}function Ya(t,e,n,r,s){if(t===null){var i=n.type;return typeof i=="function"&&!ql(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(e.tag=15,e.type=i,md(t,e,i,r,s)):(t=ks(n.type,null,r,e,e.mode,s),t.ref=e.ref,t.return=e,e.child=t)}if(i=t.child,!(t.lanes&s)){var o=i.memoizedProps;if(n=n.compare,n=n!==null?n:kr,n(o,r)&&t.ref===e.ref)return at(t,e,s)}return e.flags|=1,t=bt(i,r),t.ref=e.ref,t.return=e,e.child=t}function md(t,e,n,r,s){if(t!==null){var i=t.memoizedProps;if(kr(i,r)&&t.ref===e.ref)if(we=!1,e.pendingProps=r=i,(t.lanes&s)!==0)t.flags&131072&&(we=!0);else return e.lanes=t.lanes,at(t,e,s)}return Ao(t,e,n,r,s)}function gd(t,e,n){var r=e.pendingProps,s=r.children,i=t!==null?t.memoizedState:null;if(r.mode==="hidden")if(!(e.mode&1))e.memoizedState={baseLanes:0,cachePool:null,transitions:null},z(xn,Se),Se|=n;else{if(!(n&1073741824))return t=i!==null?i.baseLanes|n:n,e.lanes=e.childLanes=1073741824,e.memoizedState={baseLanes:t,cachePool:null,transitions:null},e.updateQueue=null,z(xn,Se),Se|=t,null;e.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,z(xn,Se),Se|=r}else i!==null?(r=i.baseLanes|n,e.memoizedState=null):r=n,z(xn,Se),Se|=r;return fe(t,e,s,n),e.child}function vd(t,e){var n=e.ref;(t===null&&n!==null||t!==null&&t.ref!==n)&&(e.flags|=512,e.flags|=2097152)}
vendor: 5,240 bytes, line 40
40function Ao(t,e,n,r,s){var i=xe(n)?Kt:de.current;return i=Nn(e,i),Cn(e,s),n=Il(t,e,n,r,i,s),r=$l(),t!==null&&!we?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~s,at(t,e,s)):(W&&r&&Sl(e),e.flags|=1,fe(t,e,n,s),e.child)}function Xa(t,e,n,r,s){if(xe(n)){var i=!0;As(e)}else i=!1;if(Cn(e,s),e.stateNode===null)ws(t,e),hd(e,n,r),Oo(e,n,r,s),r=!0;else if(t===null){var o=e.stateNode,l=e.memoizedProps;o.props=l;var a=o.context,u=n.contextType;typeof u=="object"&&u!==null?u=Le(u):(u=xe(n)?Kt:de.current,u=Nn(e,u));var c=n.getDerivedStateFromProps,f=typeof c=="function"||typeof o.getSnapshotBeforeUpdate=="function";f||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==r||a!==u)&&qa(e,o,r,u),pt=!1;var m=e.memoizedState;o.state=m,Ms(e,r,o,s),a=e.memoizedState,l!==r||m!==a||_e.current||pt?(typeof c=="function"&&(Po(e,n,c,r),a=e.memoizedState),(l=pt||Va(e,n,l,r,m,a,u))?(f||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(e.flags|=4194308)):(typeof o.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=r,e.memoizedState=a),o.props=r,o.state=a,o.context=u,r=l):(typeof o.componentDidMount=="function"&&(e.flags|=4194308),r=!1)}else{o=e.stateNode,Vc(t,e),l=e.memoizedProps,u=e.type===e.elementType?l:De(e.type,l),o.props=u,f=e.pendingProps,m=o.context,a=n.contextType,typeof a=="object"&&a!==null?a=Le(a):(a=xe(n)?Kt:de.current,a=Nn(e,a));var v=n.getDerivedStateFromProps;(c=typeof v=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==f||m!==a)&&qa(e,o,r,a),pt=!1,m=e.memoizedState,o.state=m,Ms(e,r,o,s);var w=e.memoizedState;l!==f||m!==w||_e.current||pt?(typeof v=="function"&&(Po(e,n,v,r),w=e.memoizedState),(u=pt||Va(e,n,u,r,m,w,a)||!1)?(c||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,w,a),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,w,a)),typeof o.componentDidUpdate=="function"&&(e.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof o.componentDidUpdate!="function"||l===t.memoizedProps&&m===t.memoizedState||(e.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===t.memoizedProps&&m===t.memoizedState||(e.flags|=1024),e.memoizedProps=r,e.memoizedState=w),o.props=r,o.state=w,o.context=a,r=u):(typeof o.componentDidUpdate!="function"||l===t.memoizedProps&&m===t.memoizedState||(e.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===t.memoizedProps&&m===t.memoizedState||(e.flags|=1024),r=!1)}return Lo(t,e,n,r,i,s)}function Lo(t,e,n,r,s,i){vd(t,e);var o=(e.flags&128)!==0;if(!r&&!o)return s&&Ua(e,n,!1),at(t,e,i);r=e.stateNode,_p.current=e;var l=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return e.flags|=1,t!==null&&o?(e.child=On(e,t.child,null,i),e.child=On(e,null,l,i)):fe(t,e,l,i),e.memoizedState=r.state,s&&Ua(e,n,!0),e.child}function yd(t){var e=t.stateNode;e.pendingContext?$a(t,e.pendingContext,e.pendingContext!==e.context):e.context&&$a(t,e.context,!1),Ol(t,e.containerInfo)}function Za(t,e,n,r,s){return Pn(),jl(s),e.flags|=256,fe(t,e,n,r),e.child}var Io={dehydrated:null,treeContext:null,retryLane:0};function $o(t){return{baseLanes:t,cachePool:null,transitions:null}}function wd(t,e,n){var r=e.pendingProps,s=H.current,i=!1,o=(e.flags&128)!==0,l;if((l=o)||(l=t!==null&&t.memoizedState===null?!1:(s&2)!==0),l?(i=!0,e.flags&=-129):(t===null||t.memoizedState!==null)&&(s|=1),z(H,s&1),t===null)return To(e),t=e.memoizedState,t!==null&&(t=t.dehydrated,t!==null)?(e.mode&1?t.data==="$!"?e.lanes=8:e.lanes=1073741824:e.lanes=1,null):(o=r.children,t=r.fallback,i?(r=e.mode,i=e.child,o={mode:"hidden",children:o},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=o):i=oi(o,r,0,null),t=qt(t,r,n,null),i.return=e,t.return=e,i.sibling=t,e.child=i,e.child.memoizedState=$o(n),e.memoizedState=Io,t):Dl(e,o));if(s=t.memoizedState,s!==null&&(l=s.dehydrated,l!==null))return xp(t,e,o,r,l,s,n);if(i){i=r.fallback,o=e.mode,s=t.child,l=s.sibling;var a={mode:"hidden",children:r.children};return!(o&1)&&e.child!==s?(r=e.child,r.childLanes=0,r.pendingProps=a,e.deletions=null):(r=bt(s,a),r.subtreeFlags=s.subtreeFlags&14680064),l!==null?i=bt(l,i):(i=qt(i,o,n,null),i.flags|=2),i.return=e,r.return=e,r.sibling=i,e.child=r,r=i,i=e.child,o=t.child.memoizedState,o=o===null?$o(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},i.memoizedState=o,i.childLanes=t.childLanes&~n,e.memoizedState=Io,r}return i=t.child,t=i.sibling,r=bt(i,{mode:"visible",children:r.children}),!(e.mode&1)&&(r.lanes=n),r.return=e,r.sibling=null,t!==null&&(n=e.deletions,n===null?(e.deletions=[t],e.flags|=16):n.push(t)),e.child=r,e.memoizedState=null,r}function Dl(t,e){return e=oi({mode:"visible",children:e},t.mode,0,null),e.return=t,t.child=e}function rs(t,e,n,r){return r!==null&&jl(r),On(e,t.child,null,n),t=Dl(e,e.pen
vendor: 8,350 bytes, line 40
40dingProps.children),t.flags|=2,e.memoizedState=null,t}function xp(t,e,n,r,s,i,o){if(n)return e.flags&256?(e.flags&=-257,r=Fi(Error(x(422))),rs(t,e,o,r)):e.memoizedState!==null?(e.child=t.child,e.flags|=128,null):(i=r.fallback,s=e.mode,r=oi({mode:"visible",children:r.children},s,0,null),i=qt(i,s,o,null),i.flags|=2,r.return=e,i.return=e,r.sibling=i,e.child=r,e.mode&1&&On(e,t.child,null,o),e.child.memoizedState=$o(o),e.memoizedState=Io,i);if(!(e.mode&1))return rs(t,e,o,null);if(s.data==="$!"){if(r=s.nextSibling&&s.nextSibling.dataset,r)var l=r.dgst;return r=l,i=Error(x(419)),r=Fi(i,r,void 0),rs(t,e,o,r)}if(l=(o&t.childLanes)!==0,we||l){if(r=se,r!==null){switch(o&-o){case 4:s=2;break;case 16:s=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:s=32;break;case 536870912:s=268435456;break;default:s=0}s=s&(r.suspendedLanes|o)?0:s,s!==0&&s!==i.retryLane&&(i.retryLane=s,lt(t,s),He(r,t,s,-1))}return Vl(),r=Fi(Error(x(421))),rs(t,e,o,r)}return s.data==="$?"?(e.flags|=128,e.child=t.child,e=Lp.bind(null,t),s._reactRetry=e,null):(t=i.treeContext,Ee=St(s.nextSibling),je=e,W=!0,Be=null,t!==null&&(Ne[Pe++]=nt,Ne[Pe++]=rt,Ne[Pe++]=Qt,nt=t.id,rt=t.overflow,Qt=e),e=Dl(e,r.children),e.flags|=4096,e)}function eu(t,e,n){t.lanes|=e;var r=t.alternate;r!==null&&(r.lanes|=e),No(t.return,e,n)}function Bi(t,e,n,r,s){var i=t.memoizedState;i===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:s}:(i.isBackwards=e,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=s)}function _d(t,e,n){var r=e.pendingProps,s=r.revealOrder,i=r.tail;if(fe(t,e,r.children,n),r=H.current,r&2)r=r&1|2,e.flags|=128;else{if(t!==null&&t.flags&128)e:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&eu(t,n,e);else if(t.tag===19)eu(t,n,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}r&=1}if(z(H,r),!(e.mode&1))e.memoizedState=null;else switch(s){case"forwards":for(n=e.child,s=null;n!==null;)t=n.alternate,t!==null&&Ds(t)===null&&(s=n),n=n.sibling;n=s,n===null?(s=e.child,e.child=null):(s=n.sibling,n.sibling=null),Bi(e,!1,s,n,i);break;case"backwards":for(n=null,s=e.child,e.child=null;s!==null;){if(t=s.alternate,t!==null&&Ds(t)===null){e.child=s;break}t=s.sibling,s.sibling=n,n=s,s=t}Bi(e,!0,n,null,i);break;case"together":Bi(e,!1,null,null,void 0);break;default:e.memoizedState=null}return e.child}function ws(t,e){!(e.mode&1)&&t!==null&&(t.alternate=null,e.alternate=null,e.flags|=2)}function at(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),Jt|=e.lanes,!(n&e.childLanes))return null;if(t!==null&&e.child!==t.child)throw Error(x(153));if(e.child!==null){for(t=e.child,n=bt(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=bt(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function kp(t,e,n){switch(e.tag){case 3:yd(e),Pn();break;case 5:qc(e);break;case 1:xe(e.type)&&As(e);break;case 4:Ol(e,e.stateNode.containerInfo);break;case 10:var r=e.type._context,s=e.memoizedProps.value;z($s,r._currentValue),r._currentValue=s;break;case 13:if(r=e.memoizedState,r!==null)return r.dehydrated!==null?(z(H,H.current&1),e.flags|=128,null):n&e.child.childLanes?wd(t,e,n):(z(H,H.current&1),t=at(t,e,n),t!==null?t.sibling:null);z(H,H.current&1);break;case 19:if(r=(n&e.childLanes)!==0,t.flags&128){if(r)return _d(t,e,n);e.flags|=128}if(s=e.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),z(H,H.current),r)break;return null;case 22:case 23:return e.lanes=0,gd(t,e,n)}return at(t,e,n)}var xd,Uo,kd,Sd;xd=function(t,e){for(var n=e.child;n!==null;){if(n.tag===5||n.tag===6)t.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Uo=function(){};kd=function(t,e,n,r){var s=t.memoizedProps;if(s!==r){t=e.stateNode,Ht(Ye.current);var i=null;switch(n){case"input":s=so(t,s),r=so(t,r),i=[];break;case"select":s=q({},s,{value:void 0}),r=q({},r,{value:void 0}),i=[];break;case"textarea":s=lo(t,s),r=lo(t,r),i=[];break;default:typeof s.onClick!="function"&&typeof r.onClick=="function"&&(t.onclick=Os)}uo(n,r);var o;n=null;for(u in s)if(!r.hasOwnProperty(u)&&s.hasOwnProperty(u)&&s[u]!=null)if(u==="style"){var l=s[u];for(o in l)l.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(mr.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in r){var a=r[u];if(l=s!=null?s[u]:void 0,r.hasOwnProperty(u)&&a!==l&&(a!=null||l!=null))if(u==="style")if(l){for(o in l)!l.hasOwnProperty(o)||a&&a.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in a)a.hasOwnProperty(o)&&l[o]!==a[o]&&(n||(n={}),n[o]=a[o])}else n||(i||(i=[]),i.push(u,n)),n=a;else u==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,l=l?l.__html:void 0,a!=null&&l!==a&&(i=i||[]).push(u,a)):u==="children"?typeof a!="string"&&typeof a!="number"||(i=i||[]).push(u,""+a):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(mr.hasOwnProperty(u)?(a!=null&&u==="onScroll"&&F("scroll",t),i||l===a||(i=[])):(i=i||[]).push(u,a))}n&&(i=i||[]).push("style",n);var u=i;(e.updateQueue=u)&&(e.flags|=4)}};Sd=function(t,e,n,r){n!==r&&(e.flags|=4)};function Gn(t,e){if(!W)switch(t.tailMode){case"hidden":e=t.tail;for(var n=null;e!==null;)e.alternate!==null&&(n=e),e=e.sibling;n===null?t.tail=null:n.sibling=null;break;case"collapsed":n=t.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:r.sibling=null}}function ue(t){var e=t.alternate!==null&&t.alternate.child===t.child,n=0,r=0;if(e)for(var s=t.child;s!==null;)n|=s.lanes|s.childLanes,r|=s.subtreeFlags&14680064,r|=s.flags&14680064,s.return=t,s=s.sibling;else for(s=t.child;s!==null;)n|=s.lanes|s.childLanes,r|=s.subtreeFlags,r|=s.flags,s.return=t,s=s.sibling;return t.subtreeFlags|=r,t.childLanes=n,e}function Sp(t,e,n){var r=e.pendingProps;switch(El(e),e.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ue(e),null;case 1:return xe(e.type)&&Rs(),ue(e),null;case 3:return r=e.stateNode,Rn(),B(_e),B(de),Al(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(t===null||t.child===null)&&(ts(e)?e.flags|=4:t===null||t.memoizedState.isDehydrated&&!(e.flags&256)||(e.flags|=1024,Be!==null&&(Vo(Be),Be=null))),Uo(t,e),ue(e),null;case 5:Rl(e);var s=Ht(br.current);if(n=e.type,t!==null&&e.stateNode!=null)kd(t,e,n,r,s),t.ref!==e.ref&&(e.flags|=512,e.flags|=2097152);else{if(!r){if(e.stateNode===null)throw Error(x(166));return ue(e),null}if(t=Ht(Ye.current),ts(e)){r=e.stateNode,n=e.type;var i=e.memoizedProps;switch(r[Ge]=e,r[jr]=i,t=(e.mode&1)!==0,n){case"dialog":F("cancel",r),F("close",r);break;case"iframe":case"object":case"embed":F("load",r);break;case"video":case"audio":for(s=0;s<tr.length;s++)F(tr[s],r);break;case"source":F("error",r);break;case"img":case"image":case"link":F("error",r),F("load",r);break;case"details":F("toggle",r);break;case"input":ua(r,i),F("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},F("invalid",r);break;case"textarea":da(r,i),F("invalid",r)}uo(n,i),s=null;for(var o in i)if(i.hasOwnProperty(o)){var l=i[o];o==="children"?typeof l=="string"?r.textContent!==l&&(i.suppressHydrationWarning!==!0&&es(r.textContent,l,t),s=["children",l]):typeof l=="number"&&r.textContent!==""+l&&(i.suppressHydrationWarning!==!0&&es(r.textContent,l,t),s=["children",""+l]):mr.hasOwnProperty(o)&&l!=null&&o==="onScroll"&&F("scroll",r)}switch(n){case"input":qr(r),ca(r,i,!0);break;case"textarea":qr(r),ha(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=Os)}r=s,e.updateQueue=r,r!==null&&(e.flags|=4)}else{o=s.nodeType===9?s:s.ownerDocument,t==="http://www.w3.org/1999/xhtml"&&(t=Yu(n)),t==="http://www.w3.org/1999/xhtml"?n==="script"?(t=o.createElement("div"),t.innerHTML="<script><\/script>
40",t=t.removeChild(t.firstChild)):typeof r.is=="string"?t=o.createElement(n,{is:r.is}):(t=o.createElement(n),n==="select"&&(o=t,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):t=o.createElementNS(t,n),t[Ge]=e,t[jr]=r,xd(t,e,!1,!1),e.stateNode=t;e:{switch(o=co(n,r),n){case"dialog":F("cancel",t),F("close",t),s=r;break;case"iframe":case"object":case"embed":F("load",t),s=r;break;case"video":case"audio":for(s=0;s<tr.length;s++)F(tr[s],t);s=r;break;case"source":F("error",t),s=r;break;case"img":case"image":case"link":F("error",t),F("load",t),s=r;break;case"details":F("toggle",t),s=r;break;case"input":ua(t,r),s=so(t,r),F("invalid",t);break;case"option":s=r;break;case"select":t._wrapperState={wasMultiple:!!r.multiple},s=q({},r,{value:void 0}),F("invalid",t);break;case"textarea":da(t,r),s=lo(t,r),F("invalid",t);break;default:s=r}uo(n,s),l=s;for(i in l)if(l.hasOwnProperty(i)){var a=l[i];i==="style"?ec(t,a):i==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,a!=null&&Xu(t,a)):i==="children"?typeof a=="string"?(n!=="textarea"||a!=="")&&gr(t,a):typeof a=="number"&&gr(t,""+a):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(mr.hasOwnProperty(i)?a!=null&&i==="onScroll"&&F("scroll",t):a!=null&&ul(t,i,a,o))}switch(n){case"input":qr(t),ca(t,r,!1);break;case"textarea":qr(t),ha(t);break;case"option":r.value!=null&&t.setAttribute("value",""+Tt(r.value));break;case"select":t.multiple=!!r.multiple,i=r.value,i!=null?kn(t,!!r.multiple,i,!1):r.defaultValue!=null&&kn(t,!!r.multiple,r.defaultValue,!0);break;default:typeof s.onClick=="function"&&(t.onclick=Os)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(e.flags|=4)}e.ref!==null&&(e.flags|=512,e.flags|=2097152)}return ue(e),null;case 6:if(t&&e.stateNode!=null)Sd(t,e,t.memoizedProps,r);else{if(typeof r!="string"&&e.stateNode===null)throw Error(x(166));if(n=Ht(br.current),Ht(Ye.current),ts(e)){if(r=e.stateNode,n=e.memoizedProps,r[Ge]=e,(i=r.nodeValue!==n)&&(t=je,t!==null))switch(t.tag){case 3:es(r.nodeValue,n,(t.mode&1)!==0);break;case 5:t.memoizedProps.suppressHydrationWarning!==!0&&es(r.nodeValue,n,(t.mode&1)!==0)}i&&(e.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Ge]=e,e.stateNode=r}return ue(e),null;case 13:if(B(H),r=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(W&&Ee!==null&&e.mode&1&&!(e.flags&128))Fc(),Pn(),e.flags|=98560,i=!1;else if(i=ts(e),r!==null&&r.dehydrated!==null){if(t===null){if(!i)throw Error(x(318));if(i=e.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(x(317));i[Ge]=e}else Pn(),!(e.flags&128)&&(e.memoizedState=null),e.flags|=4;ue(e),i=!1}else Be!==null&&(Vo(Be),Be=null),i=!0;if(!i)return e.flags&65536?e:null}return e.flags&128?(e.lanes=n,e):(r=r!==null,r!==(t!==null&&t.memoizedState!==null)&&r&&(e.child.flags|=8192,e.mode&1&&(t===null||H.current&1?te===0&&(te=3):Vl())),e.updateQueue!==null&&(e.flags|=4),ue(e),null);case 4:return Rn(),Uo(t,e),t===null&&Sr(e.stateNode.containerInfo),ue(e),null;case 10:return Tl(e.type._context),ue(e),null;case 17:return xe(e.type)&&Rs(),ue(e),null;case 19:if(B(H),i=e.memoizedState,i===null)return ue(e),null;if(r=(e.flags&128)!==0,o=i.rendering,o===null)if(r)Gn(i,!1);else{if(te!==0||t!==null&&t.flags&128)for(t=e.child;t!==null;){if(o=Ds(t),o!==null){for(e.flags|=128,Gn(i,!1),r=o.updateQueue,r!==null&&(e.updateQueue=r,e.flags|=4),e.subtreeFlags=0,r=n,n=e.child;n!==null;)i=n,t=r,i.flags&=14680066,o=i.alternate,o===null?(i.childLanes=0,i.lanes=t,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=o.childLanes,i.lanes=o.lanes,i.child=o.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=o.memoizedProps,i.memoizedState=o.memoizedState,i.updateQueue=o.updateQueue,i.type=o.type,t=o.dependencies,i.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),n=n.sibling;return z(H,H.current&1|2),e.child}t=t.sibling}i.tail!==null&&J()>
vendor: 27,506 bytes, line 40
40Ln&&(e.flags|=128,r=!0,Gn(i,!1),e.lanes=4194304)}else{if(!r)if(t=Ds(o),t!==null){if(e.flags|=128,r=!0,n=t.updateQueue,n!==null&&(e.updateQueue=n,e.flags|=4),Gn(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!W)return ue(e),null}else 2*J()-i.renderingStartTime>Ln&&n!==1073741824&&(e.flags|=128,r=!0,Gn(i,!1),e.lanes=4194304);i.isBackwards?(o.sibling=e.child,e.child=o):(n=i.last,n!==null?n.sibling=o:e.child=o,i.last=o)}return i.tail!==null?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=J(),e.sibling=null,n=H.current,z(H,r?n&1|2:n&1),e):(ue(e),null);case 22:case 23:return Hl(),r=e.memoizedState!==null,t!==null&&t.memoizedState!==null!==r&&(e.flags|=8192),r&&e.mode&1?Se&1073741824&&(ue(e),e.subtreeFlags&6&&(e.flags|=8192)):ue(e),null;case 24:return null;case 25:return null}throw Error(x(156,e.tag))}function Ep(t,e){switch(El(e),e.tag){case 1:return xe(e.type)&&Rs(),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return Rn(),B(_e),B(de),Al(),t=e.flags,t&65536&&!(t&128)?(e.flags=t&-65537|128,e):null;case 5:return Rl(e),null;case 13:if(B(H),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(x(340));Pn()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return B(H),null;case 4:return Rn(),null;case 10:return Tl(e.type._context),null;case 22:case 23:return Hl(),null;case 24:return null;default:return null}}var ss=!1,ce=!1,jp=typeof WeakSet=="function"?WeakSet:Set,C=null;function _n(t,e){var n=t.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){K(t,e,r)}else n.current=null}function Mo(t,e,n){try{n()}catch(r){K(t,e,r)}}var tu=!1;function Cp(t,e){if(xo=Ts,t=Tc(),kl(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else e:{n=(n=t.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var s=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var o=0,l=-1,a=-1,u=0,c=0,f=t,m=null;t:for(;;){for(var v;f!==n||s!==0&&f.nodeType!==3||(l=o+s),f!==i||r!==0&&f.nodeType!==3||(a=o+r),f.nodeType===3&&(o+=f.nodeValue.length),(v=f.firstChild)!==null;)m=f,f=v;for(;;){if(f===t)break t;if(m===n&&++u===s&&(l=o),m===i&&++c===r&&(a=o),(v=f.nextSibling)!==null)break;f=m,m=f.parentNode}f=v}n=l===-1||a===-1?null:{start:l,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(ko={focusedElem:t,selectionRange:n},Ts=!1,C=e;C!==null;)if(e=C,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,C=t;else for(;C!==null;){e=C;try{var w=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var _=w.memoizedProps,j=w.memoizedState,g=e.stateNode,h=g.getSnapshotBeforeUpdate(e.elementType===e.type?_:De(e.type,_),j);g.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var p=e.stateNode.containerInfo;p.nodeType===1?p.textContent="":p.nodeType===9&&p.documentElement&&p.removeChild(p.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(x(163))}}catch(y){K(e,e.return,y)}if(t=e.sibling,t!==null){t.return=e.return,C=t;break}C=e.return}return w=tu,tu=!1,w}function ur(t,e,n){var r=e.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var s=r=r.next;do{if((s.tag&t)===t){var i=s.destroy;s.destroy=void 0,i!==void 0&&Mo(e,n,i)}s=s.next}while(s!==r)}}function si(t,e){if(e=e.updateQueue,e=e!==null?e.lastEffect:null,e!==null){var n=e=e.next;do{if((n.tag&t)===t){var r=n.create;n.destroy=r()}n=n.next}while(n!==e)}}function Do(t){var e=t.ref;if(e!==null){var n=t.stateNode;switch(t.tag){case 5:t=n;break;default:t=n}typeof e=="function"?e(t):e.current=t}}function Ed(t){var e=t.alternate;e!==null&&(t.alternate=null,Ed(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&(delete e[Ge],delete e[jr],delete e[jo],delete e[ap],delete e[up])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function jd(t){return t.tag===5||t.tag===3||t.tag===4}function nu(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||jd(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function zo(t,e,n){var r=t.tag;if(r===5||r===6)t=t.stateNode,e?n.nodeType===8?n.parentNode.insertBefore(t,e):n.insertBefore(t,e):(n.nodeType===8?(e=n.parentNode,e.insertBefore(t,n)):(e=n,e.appendChild(t)),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=Os));else if(r!==4&&(t=t.child,t!==null))for(zo(t,e,n),t=t.sibling;t!==null;)zo(t,e,n),t=t.sibling}function Fo(t,e,n){var r=t.tag;if(r===5||r===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(r!==4&&(t=t.child,t!==null))for(Fo(t,e,n),t=t.sibling;t!==null;)Fo(t,e,n),t=t.sibling}var ie=null,ze=!1;function ct(t,e,n){for(n=n.child;n!==null;)Cd(t,e,n),n=n.sibling}function Cd(t,e,n){if(Je&&typeof Je.onCommitFiberUnmount=="function")try{Je.onCommitFiberUnmount(Js,n)}catch{}switch(n.tag){case 5:ce||_n(n,e);case 6:var r=ie,s=ze;ie=null,ct(t,e,n),ie=r,ze=s,ie!==null&&(ze?(t=ie,n=n.stateNode,t.nodeType===8?t.parentNode.removeChild(n):t.removeChild(n)):ie.removeChild(n.stateNode));break;case 18:ie!==null&&(ze?(t=ie,n=n.stateNode,t.nodeType===8?Ii(t.parentNode,n):t.nodeType===1&&Ii(t,n),_r(t)):Ii(ie,n.stateNode));break;case 4:r=ie,s=ze,ie=n.stateNode.containerInfo,ze=!0,ct(t,e,n),ie=r,ze=s;break;case 0:case 11:case 14:case 15:if(!ce&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){s=r=r.next;do{var i=s,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&Mo(n,e,o),s=s.next}while(s!==r)}ct(t,e,n);break;case 1:if(!ce&&(_n(n,e),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){K(n,e,l)}ct(t,e,n);break;case 21:ct(t,e,n);break;case 22:n.mode&1?(ce=(r=ce)||n.memoizedState!==null,ct(t,e,n),ce=r):ct(t,e,n);break;default:ct(t,e,n)}}function ru(t){var e=t.updateQueue;if(e!==null){t.updateQueue=null;var n=t.stateNode;n===null&&(n=t.stateNode=new jp),e.forEach(function(r){var s=Ip.bind(null,t,r);n.has(r)||(n.add(r),r.then(s,s))})}}function Ue(t,e){var n=e.deletions;if(n!==null)for(var r=0;r<n.length;r++){var s=n[r];try{var i=t,o=e,l=o;e:for(;l!==null;){switch(l.tag){case 5:ie=l.stateNode,ze=!1;break e;case 3:ie=l.stateNode.containerInfo,ze=!0;break e;case 4:ie=l.stateNode.containerInfo,ze=!0;break e}l=l.return}if(ie===null)throw Error(x(160));Cd(i,o,s),ie=null,ze=!1;var a=s.alternate;a!==null&&(a.return=null),s.return=null}catch(u){K(s,e,u)}}if(e.subtreeFlags&12854)for(e=e.child;e!==null;)bd(e,t),e=e.sibling}function bd(t,e){var n=t.alternate,r=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:if(Ue(e,t),qe(t),r&4){try{ur(3,t,t.return),si(3,t)}catch(_){K(t,t.return,_)}try{ur(5,t,t.return)}catch(_){K(t,t.return,_)}}break;case 1:Ue(e,t),qe(t),r&512&&n!==null&&_n(n,n.return);break;case 5:if(Ue(e,t),qe(t),r&512&&n!==null&&_n(n,n.return),t.flags&32){var s=t.stateNode;try{gr(s,"")}catch(_){K(t,t.return,_)}}if(r&4&&(s=t.stateNode,s!=null)){var i=t.memoizedProps,o=n!==null?n.memoizedProps:i,l=t.type,a=t.updateQueue;if(t.updateQueue=null,a!==null)try{l==="input"&&i.type==="radio"&&i.name!=null&&Gu(s,i),co(l,o);var u=co(l,i);for(o=0;o<a.length;o+=2){var c=a[o],f=a[o+1];c==="style"?ec(s,f):c==="dangerouslySetInnerHTML"?Xu(s,f):c==="children"?gr(s,f):ul(s,c,f,u)}switch(l){case"input":io(s,i);break;case"textarea":Ju(s,i);break;case"select":var m=s._wrapperState.wasMultiple;s._wrapperState.wasMultiple=!!i.multiple;var v=i.value;v!=null?kn(s,!!i.multiple,v,!1):m!==!!i.multiple&&(i.defaultValue!=null?kn(s,!!i.multiple,i.defaultValue,!0):kn(s,!!i.multiple,i.multiple?[]:"",!1))}s[jr]=i}catch(_){K(t,t.return,_)}}break;case 6:if(Ue(e,t),qe(t),r&4){if(t.stateNode===null)throw Error(x(162));s=t.stateNode,i=t.memoizedProps;try{s.nodeValue=i}catch(_){K(t,t.return,_)}}break;case 3:if(Ue(e,t),qe(t),r&4&&n!==null&&n.memoizedState.isDehydrated)try{_r(e.containerInfo)}catch(_){K(t,t.return,_)}break;case 4:Ue(e,t),qe(t);break;case 13:Ue(e,t),qe(t),s=t.child,s.flags&8192&&(i=s.memoizedState!==null,s.stateNode.isHidden=i,!i||s.alternate!==null&&s.alternate.memoizedState!==null||(Bl=J())),r&4&&ru(t);break;case 22:if(c=n!==null&&n.memoizedState!==null,t.mode&1?(ce=(u=ce)||c,Ue(e,t),ce=u):Ue(e,t),qe(t),r&8192){if(u=t.memoizedState!==null,(t.stateNode.isHidden=u)&&!c&&t.mode&1)for(C=t,c=t.child;c!==null;){for(f=C=c;C!==null;){switch(m=C,v=m.child,m.tag){case 0:case 11:case 14:case 15:ur(4,m,m.return);break;case 1:_n(m,m.return);var w=m.stateNode;if(typeof w.componentWillUnmount=="function"){r=m,n=m.return;try{e=r,w.props=e.memoizedProps,w.state=e.memoizedState,w.componentWillUnmount()}catch(_){K(r,n,_)}}break;case 5:_n(m,m.return);break;case 22:if(m.memoizedState!==null){iu(f);continue}}v!==null?(v.return=m,C=v):iu(f)}c=c.sibling}e:for(c=null,f=t;;){if(f.tag===5){if(c===null){c=f;try{s=f.stateNode,u?(i=s.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(l=f.stateNode,a=f.memoizedProps.style,o=a!=null&&a.hasOwnProperty("display")?a.display:null,l.style.display=Zu("display",o))}catch(_){K(t,t.return,_)}}}else if(f.tag===6){if(c===null)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(_){K(t,t.return,_)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===t)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===t)break e;for(;f.sibling===null;){if(f.return===null||f.return===t)break e;c===f&&(c=null),f=f.return}c===f&&(c=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:Ue(e,t),qe(t),r&4&&ru(t);break;case 21:break;default:Ue(e,t),qe(t)}}function qe(t){var e=t.flags;if(e&2){try{e:{for(var n=t.return;n!==null;){if(jd(n)){var r=n;break e}n=n.return}throw Error(x(160))}switch(r.tag){case 5:var s=r.stateNode;r.flags&32&&(gr(s,""),r.flags&=-33);var i=nu(t);Fo(t,i,s);break;case 3:case 4:var o=r.stateNode.containerInfo,l=nu(t);zo(t,l,o);break;default:throw Error(x(161))}}catch(a){K(t,t.return,a)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function bp(t,e,n){C=t,Td(t)}function Td(t,e,n){for(var r=(t.mode&1)!==0;C!==null;){var s=C,i=s.child;if(s.tag===22&&r){var o=s.memoizedState!==null||ss;if(!o){var l=s.alternate,a=l!==null&&l.memoizedState!==null||ce;l=ss;var u=ce;if(ss=o,(ce=a)&&!u)for(C=s;C!==null;)o=C,a=o.child,o.tag===22&&o.memoizedState!==null?ou(s):a!==null?(a.return=o,C=a):ou(s);for(;i!==null;)C=i,Td(i),i=i.sibling;C=s,ss=l,ce=u}su(t)}else s.subtreeFlags&8772&&i!==null?(i.return=s,C=i):su(t)}}function su(t){for(;C!==null;){var e=C;if(e.flags&8772){var n=e.alternate;try{if(e.flags&8772)switch(e.tag){case 0:case 11:case 15:ce||si(5,e);break;case 1:var r=e.stateNode;if(e.flags&4&&!ce)if(n===null)r.componentDidMount();else{var s=e.elementType===e.type?n.memoizedProps:De(e.type,n.memoizedProps);r.componentDidUpdate(s,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=e.updateQueue;i!==null&&Ba(e,i,r);break;case 3:var o=e.updateQueue;if(o!==null){if(n=null,e.child!==null)switch(e.child.tag){case 5:n=e.child.stateNode;break;case 1:n=e.child.stateNode}Ba(e,o,n)}break;case 5:var l=e.stateNode;if(n===null&&e.flags&4){n=l;var a=e.memoizedProps;switch(e.type){case"button":case"input":case"select":case"textarea":a.autoFocus&&n.focus();break;case"img":a.src&&(n.src=a.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(e.memoizedState===null){var u=e.alternate;if(u!==null){var c=u.memoizedState;if(c!==null){var f=c.dehydrated;f!==null&&_r(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(x(163))}ce||e.flags&512&&Do(e)}catch(m){K(e,e.return,m)}}if(e===t){C=null;break}if(n=e.sibling,n!==null){n.return=e.return,C=n;break}C=e.return}}function iu(t){for(;C!==null;){var e=C;if(e===t){C=null;break}var n=e.sibling;if(n!==null){n.return=e.return,C=n;break}C=e.return}}function ou(t){for(;C!==null;){var e=C;try{switch(e.tag){case 0:case 11:case 15:var n=e.return;try{si(4,e)}catch(a){K(e,n,a)}break;case 1:var r=e.stateNode;if(typeof r.componentDidMount=="function"){var s=e.return;try{r.componentDidMount()}catch(a){K(e,s,a)}}var i=e.return;try{Do(e)}catch(a){K(e,i,a)}break;case 5:var o=e.return;try{Do(e)}catch(a){K(e,o,a)}}}catch(a){K(e,e.return,a)}if(e===t){C=null;break}var l=e.sibling;if(l!==null){l.return=e.return,C=l;break}C=e.return}}var Tp=Math.ceil,Bs=ut.ReactCurrentDispatcher,zl=ut.ReactCurrentOwner,Re=ut.ReactCurrentBatchConfig,I=0,se=null,Y=null,oe=0,Se=0,xn=Ot(0),te=0,Or=null,Jt=0,ii=0,Fl=0,cr=null,ve=null,Bl=0,Ln=1/0,Ze=null,Ws=!1,Bo=null,jt=null,is=!1,wt=null,Hs=0,dr=0,Wo=null,_s=-1,xs=0;function pe(){return I&6?J():_s!==-1?_s:_s=J()}function Ct(t){return t.mode&1?I&2&&oe!==0?oe&-oe:dp.transition!==null?(xs===0&&(xs=hc()),xs):(t=U,t!==0||(t=window.event,t=t===void 0?16:wc(t.type)),t):1}function He(t,e,n,r){if(50<dr)throw dr=0,Wo=null,Error(x(185));Lr(t,n,r),(!(I&2)||t!==se)&&(t===se&&(!(I&2)&&(ii|=n),te===4&>(t,oe)),ke(t,r),n===1&&I===0&&!(e.mode&1)&&(Ln=J()+500,ti&&Rt()))}function ke(t,e){var n=t.callbackNode;df(t,e);var r=bs(t,t===se?oe:0);if(r===0)n!==null&&ma(n),t.callbackNode=null,t.callbackPriority=0;else if(e=r&-r,t.callbackPriority!==e){if(n!=null&&ma(n),e===1)t.tag===0?cp(lu.bind(null,t)):Mc(lu.bind(null,t)),op(function(){!(I&6)&&Rt()}),n=null;else{switch(fc(r)){case 1:n=pl;break;case 4:n=cc;break;case 16:n=Cs;break;case 536870912:n=dc;break;default:n=Cs}n=$d(n,Nd.bind(null,t))}t.callbackPriority=e,t.callbackNode=n}}function Nd(t,e){if(_s=-1,xs=0,I&6)throw Error(x(327));var n=t.callbackNode;if(bn()&&t.callbackNode!==n)return null;var r=bs(t,t===se?oe:0);if(r===0)return null;if(r&30||r&t.expiredLanes||e)e=Vs(t,r);else{e=r;var s=I;I|=2;var i=Od();(se!==t||oe!==e)&&(Ze=null,Ln=J()+500,Vt(t,e));do try{Op();break}catch(l){Pd(t,l)}while(!0);bl(),Bs.current=i,I=s,Y!==null?e=0:(se=null,oe=0,e=te)}if(e!==0){if(e===2&&(s=go(t),s!==0&&(r=s,e=Ho(t,s))),e===1)throw n=Or,Vt(t,0),gt(t,r),ke(t,J()),n;if(e===6)gt(t,r);else{if(s=t.current.alternate,!(r&30)&&!Np(s)&&(e=Vs(t,r),e===2&&(i=go(t),i!==0&&(r=i,e=Ho(t,i))),e===1))throw n=Or,Vt(t,0),gt(t,r),ke(t,J()),n;switch(t.finishedWork=s,t.finishedLanes=r,e){case 0:case 1:throw Error(x(345));case 2:Dt(t,ve,Ze);break;case 3:if(gt(t,r),(r&130023424)===r&&(e=Bl+500-J(),10<e)){if(bs(t,0)!==0)break;if(s=t.suspendedLanes,(s&r)!==r){pe(),t.pingedLanes|=t.suspendedLanes&s;break}t.timeoutHandle=Eo(Dt.bind(null,t,ve,Ze),e);break}Dt(t,ve,Ze);break;case 4:if(gt(t,r),(r&4194240)===r)break;for(e=t.eventTimes,s=-1;0<r;){var o=31-We(r);i=1<<o,o=e[o],o>s&&(s=o),r&=~i}if(r=s,r=J()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Tp(r/1960))-r,10<r){t.timeoutHandle=Eo(Dt.bind(null,t,ve,Ze),r);break}Dt(t,ve,Ze);break;case 5:Dt(t,ve,Ze);break;default:throw Error(x(329))}}}return ke(t,J()),t.callbackNode===n?Nd.bind(null,t):null}function Ho(t,e){var n=cr;return t.current.memoizedState.isDehydrated&&(Vt(t,e).flags|=256),t=Vs(t,e),t!==2&&(e=ve,ve=n,e!==null&&Vo(e)),t}function Vo(t){ve===null?ve=t:ve.push.apply(ve,t)}function Np(t){for(var e=t;;){if(e.flags&16384){var n=e.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var s=n[r],i=s.getSnapshot;s=s.value;try{if(!Ve(i(),s))return!1}catch{return!1}}}if(n=e.child,e.subtreeFlags&16384&&n!==null)n.return=e,e=n;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function gt(t,e){for(e&=~Fl,e&=~ii,t.suspendedLanes|=e,t.pingedLanes&=~e,t=t.expirationTimes;0<e;){var n=31-We(e),r=1<<n;t[n]=-1,e&=~r}}function lu(t){if(I&6)throw Error(x(327));bn();var e=bs(t,0);if(!(e&1))return ke(t,J()),null;var n=Vs(t,e);if(t.tag!==0&&n===2){var r=go(t);r!==0&&(e=r,n=Ho(t,r))}if(n===1)throw n=Or,Vt(t,0),gt(t,e),ke(t,J()),n;if(n===6)throw Error(x(345));return t.finishedWork=t.current.alternate,t.finishedLanes=e,Dt(t,ve,Ze),ke(t,J()),null}function Wl(t,e){var n=I;I|=1;try{return t(e)}finally{I=n,I===0&&(Ln=J()+500,ti&&Rt())}}function Yt(t){wt!==null&&wt.tag===0&&!(I&6)&&bn();var e=I;I|=1;var n=Re.transition,r=U;try{if(Re.transition=null,U=1,t)return t()}finally{U=r,Re.transition=n,I=e,!(I&6)&&Rt()}}function Hl(){Se=xn.current,B(xn)}function Vt(t,e){t.finishedWork=null,t.finishedLanes=0;var n=t.timeoutHandle;if(n!==-1&&(t.timeoutHandle=-1,ip(n)),Y!==null)for(n=Y.return;n!==null;){var r=n;switch(El(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Rs();break;case 3:Rn(),B(_e),B(de),Al();break;case 5:Rl(r);break;case 4:Rn();break;case 13:B(H);break;case 19:B(H);break;case 10:Tl(r.type._context);break;case 22:case 23:Hl()}n=n.return}if(se=t,Y=t=bt(t.current,null),oe=Se=e,te=0,Or=null,Fl=ii=Jt=0,ve=cr=null,Wt!==null){for(e=0;e<Wt.length;e++)if(n=Wt[e],r=n.interleaved,r!==null){n.interleaved=null;var s=r.next,i=n.pending;if(i!==null){var o=i.next;i.next=s,r.next=o}n.pending=r}Wt=null}return t}function Pd(t,e){do{var n=Y;try{if(bl(),vs.current=Fs,zs){for(var r=V.memoizedState;r!==null;){var s=r.queue;s!==null&&(s.pending=null),r=r.next}zs=!1}if(Gt=0,re=ee=V=null,ar=!1,Tr=0,zl.current=null,n===null||n.return===null){te=1,Or=e,Y=null;break}e:{var i=t,o=n.return,l=n,a=e;if(e=oe,l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){var u=a,c=l,f=c.tag;if(!(c.mode&1)&&(f===0||f===11||f===15)){var m=c.alternate;m?(c.updateQueue=m.updateQueue,c.memoizedState=m.memoizedState,c.lanes=m.lanes):(c.updateQueue=null,c.memoizedState=null)}var v=Qa(o);if(v!==null){v.flags&=-257,Ga(v,o,l,i,e),v.mode&1&&Ka(i,u,e),e=v,a=u;var w=e.updateQueue;if(w===null){var _=new Set;_.add(a),e.updateQueue=_}else w.add(a);break e}else{if(!(e&1)){Ka(i,u,e),Vl();break e}a=Error(x(426))}}else if(W&&l.mode&1){var j=Qa(o);if(j!==null){!(j.flags&65536)&&(j.flags|=256),Ga(j,o,l,i,e),jl(An(a,l));break e}}i=a=An(a,l),te!==4&&(te=2),cr===null?cr=[i]:cr.push(i),i=o;do{switch(i.tag){case 3:i.flags|=65536,e&=-e,i.lanes|=e;var g=fd(i,a,e);Fa(i,g);break e;case 1:l=a;var h=i.type,p=i.stateNode;if(!(i.flags&128)&&(typeof h.getDerivedStateFromError=="function"||p!==null&&typeof p.componentDidCatch=="function"&&(jt===null||!jt.has(p)))){i.flags|=65536,e&=-e,i.lanes|=e;var y=pd(i,l,e);Fa(i,y);break e}}i=i.return}while(i!==null)}Ad(n)}catch(S){e=S,Y===n&&n!==null&&(Y=n=n.return);continue}break}while(!0)}function Od(){var t=Bs.current;return Bs.current=Fs,t===null?Fs:t}function Vl(){(te===0||te===3||te===2)&&(te=4),se===null||!(Jt&268435455)&&!(ii&268435455)||gt(se,oe)}function Vs(t,e){var n=I;I|=2;var r=Od();(se!==t||oe!==e)&&(Ze=null,Vt(t,e));do try{Pp();break}catch(s){Pd(t,s)}while(!0);if(bl(),I=n,Bs.current=r,Y!==null)throw Error(x(261));return se=null,oe=0,te}function Pp(){for(;Y!==null;)Rd(Y)}function Op(){for(;Y!==null&&!tf();)Rd(Y)}function Rd(t){var e=Id(t.alternate,t,Se);t.memoizedProps=t.pendingProps,e===null?Ad(t):Y=e,zl.current=null}function Ad(t){var e=t;do{var n=e.alternate;if(t=e.return,e.flags&32768){if(n=Ep(n,e),n!==null){n.flags&=32767,Y=n;return}if(t!==null)t.flags|=32768,t.subtreeFlags=0,t.deletions=null;else{te=6,Y=null;return}}else if(n=Sp(n,e,Se),n!==null){Y=n;return}if(e=e.sibling,e!==null){Y=e;return}Y=e=t}while(e!==null);te===0&&(te=5)}function Dt(t,e,n){var r=U,s=Re.transition;try{Re.transition=null,U=1,Rp(t,e,n,r)}finally{Re.transition=s,U=r}return null}function Rp(t,e,n,r){do bn();while(wt!==null);if(I&6)throw Error(x(327));n=t.finishedWork;var s=t.finishedLanes;if(n===null)return null;if(t.finishedWork=null,t.finishedLanes=0,n===t.current)throw Error(x(177));t.callbackNode=null,t.callbackPriority=0;var i=n.lanes|n.childLanes;if(hf(t,i),t===se&&(Y=se=null,oe=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||is||(is=!0,$d(Cs,function(){return bn(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=Re.transition,Re.transition=null;var o=U;U=1;var l=I;I|=4,zl.current=null,Cp(t,n),bd(n,t),Xf(ko),Ts=!!xo,ko=xo=null,t.current=n,bp(n),nf(),I=l,U=o,Re.transition=i}else t.current=n;if(is&&(is=!1,wt=t,Hs=s),i=t.pendingLanes,i===0&&(jt=null),of(n.stateNode),ke(t,J()),e!==null)for(r=t.onRecoverableError,n=0;n<e.length;n++)s=e[n],r(s.value,{componentStack:s.stack,digest:s.digest});if(Ws)throw Ws=!1,t=Bo,Bo=null,t;return Hs&1&&t.tag!==0&&bn(),i=t.pendingLanes,i&1?t===Wo?dr++:(dr=0,Wo=t):dr=0,Rt(),null}function bn(){if(wt!==null){var t=fc(Hs),e=Re.transition,n=U;try{if(Re.transition=null,U=16>t?16:t,wt===null)var r=!1;else{if(t=wt,wt=null,Hs=0,I&6)throw Error(x(331));var s=I;for(I|=4,C=t.current;C!==null;){var i=C,o=i.child;if(C.flags&16){var l=i.deletions;if(l!==null){for(var a=0;a<l.length;a++){var u=l[a];for(C=u;C!==null;){var c=C;switch(c.tag){case 0:case 11:case 15:ur(8,c,i)}var f=c.child;if(f!==null)f.return=c,C=f;else for(;C!==null;){c=C;var m=c.sibling,v=c.return;if(Ed(c),c===u){C=null;break}if(m!==null){m.return=v,C=m;break}C=v}}}var w=i.alternate;if(w!==null){var _=w.child;if(_!==null){w.child=null;do{var j=_.sibling;_.sibling=null,_=j}while(_!==null)}}C=i}}if(i.subtreeFlags&2064&&o!==null)o.return=i,C=o;else e:for(;C!==null;){if(i=C,i.flags&2048)switch(i.tag){case 0:case 11:case 15:ur(9,i,i.return)}var g=i.sibling;if(g!==null){g.return=i.return,C=g;break e}C=i.return}}var h=t.current;for(C=h;C!==null;){o=C;var p=o.child;if(o.subtreeFlags&2064&&p!==null)p.return=o,C=p;else e:for(o=h;C!==null;){if(l=C,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:si(9,l)}}catch(S){K(l,l.return,S)}if(l===o){C=null;break e}var y=l.sibling;if(y!==null){y.return=l.return,C=y;break e}C=l.return}}if(I=s,Rt(),Je&&typeof Je.onPostCommitFiberRoot=="function")try{Je.onPostCommitFiberRoot(Js,t)}catch{}r=!0}return r}finally{U=n,Re.transition=e}}return!1}function au(t,e,n){e=An(n,e),e=fd(t,e,1),t=Et(t,e,1),e=pe(),t!==null&&(Lr(t,1,e),ke(t,e))}function K(t,e,n){if(t.tag===3)au(t,t,n);else for(;e!==null;){if(e.tag===3){au(e,t,n);break}else if(e.tag===1){var r=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(jt===null||!jt.has(r))){t=An(n,t),t=pd(e,t,1),e=Et(e,t,1),t=pe(),e!==null&&(Lr(e,1,t),ke(e,t));break}}e=e.return}}function Ap(t,e,n){var r=t.pingCache;r!==null&&r.delete(e),e=pe(),t.pingedLanes|=t.suspendedLanes&n,se===t&&(oe&n)===n&&(te===4||te===3&&(oe&130023424)===oe&&500>J()-Bl?Vt(t,0):Fl|=n),ke(t,e)}function Ld(t,e){e===0&&(t.mode&1?(e=Gr,Gr<<=1,!(Gr&130023424)&&(Gr=4194304)):e=1);var n=pe();t=lt(t,e),t!==null&&(Lr(t,e,n),ke(t,n))}function Lp(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),Ld(t,n)}function Ip(t,e){var n=0;switch(t.tag){case 13:var r=t.stateNode,s=t.memoizedState;s!==null&&(n=s.retryLane);break;case 19:r=t.stateNode;break;default:throw Error(x(314))}r!==null&&r.delete(e),Ld(t,n)}var Id;Id=function(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps||_e.current)we=!0;else{if(!(t.lanes&n)&&!(e.flags&128))return we=!1,kp(t,e,n);we=!!(t.flags&131072)}else we=!1,W&&e.flags&1048576&&Dc(e,Is,e.index);switch(e.lanes=0,e.tag){case 2:var r=e.type;ws(t,e),t=e.pendingProps;var s=Nn(e,de.current);Cn(e,n),s=Il(null,e,r,t,s,n);var i=$l();return e.flags|=1,typeof s=="object"&&s!==null&&typeof s.render=="function"&&s.$$typeof===void 0?(e.tag=1,e.memoizedState=null,e.updateQueue=null,xe(r)?(i=!0,As(e)):i=!1,e.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,Pl(e),s.updater=ri,e.stateNode=s,s._reactInternals=e,Oo(e,r,t,n),e=Lo(null,e,r,!0,i,n)):(e.tag=0,W&&i&&Sl(e),fe(null,e,s,n),e=e.child),e;case 16:r=e.elementType;e:{switch(ws(t,e),t=e.pendingProps,s=r._init,r=s(r._payload),e.type=r,s=e.tag=Up(r),t=De(r,t),s){case 0:e=Ao(null,e,r,t,n);break e;case 1:e=Xa(null,e,r,t,n);break e;case 11:e=Ja(null,e,r,t,n);break e;case 14:e=Ya(null,e,r,De(r.type,t),n);break e}throw Error(x(306,r,""))}return e;case 0:return r=e.type,s=e.pendingProps,s=e.elementType===r?s:De(r,s),Ao(t,e,r,s,n);case 1:return r=e.type,s=e.pendingProps,s=e.elementType===r?s:De(r,s),Xa(t,e,r,s,n);case 3:e:{if(yd(e),t===null)throw Error(x(387));r=e.pendingProps,i=e.memoizedState,s=i.element,Vc(t,e),Ms(e,r,null,n);var o=e.memoizedState;if(r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},e.updateQueue.baseState=i,e.memoizedState=i,e.flags&256){s=An(Error(x(423)),e),e=Za(t,e,r,n,s);break e}else if(r!==s){s=An(Error(x(424)),e),e=Za(t,e,r,n,s);break e}else for(Ee=St(e.stateNode.containerInfo.firstChild),je=e,W=!0,Be=null,n=Wc(e,null,r,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Pn(),r===s){e=at(t,e,n);break e}fe(t,e,r,n)}e=e.child}return e;case 5:return qc(e),t===null&&To(e),r=e.type,s=e.pendingProps,i=t!==null?t.memoizedProps:null,o=s.children,So(r,s)?o=null:i!==null&&So(r,i)&&(e.flags|=32),vd(t,e),fe(t,e,o,n),e.child;case 6:return t===null&&To(e),null;case 13:return wd(t,e,n);case 4:return Ol(e,e.stateNode.containerInfo),r=e.pendingProps,t===null?e.child=On(e,null,r,n):fe(t,e,r,n),e.child;case 11:return r=e.type,s=e.pendingProps,s=e.elementType===r?s:De(r,s),Ja(t,e,r,s,n);case 7:return fe(t,e,e.pendingProps,n),e.child;case 8:return fe(t,e,e.pendingProps.children,n),e.child;case 12:return fe(t,e,e.pendingProps.children,n),e.child;case 10:e:{if(r=e.type._context,s=e.pendingProps,i=e.memoizedProps,o=s.value,z($s,r._currentValue),r._currentValue=o,i!==null)if(Ve(i.value,o)){if(i.children===s.children&&!_e.current){e=at(t,e,n);break e}}else for(i=e.child,i!==null&&(i.return=e);i!==null;){var l=i.dependencies;if(l!==null){o=i.child;for(var a=l.firstContext;a!==null;){if(a.context===r){if(i.tag===1){a=st(-1,n&-n),a.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?a.next=a:(a.next=c.next,c.next=a),u.pending=a}}i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),No(i.return,n,e),l.lanes|=n;break}a=a.next}}else if(i.tag===10)o=i.type===e.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(x(341));o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),No(o,n,e),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===e){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}fe(t,e,s.children,n),e=e.child}return e;case 9:return s=e.type,r=e.pendingProps.children,Cn(e,n),s=Le(s),r=r(s),e.flags|=1,fe(t,e,r,n),e.child;case 14:return r=e.type,s=De(r,e.pendingProps),s=De(r.type,s),Ya(t,e,r,s,n);case 15:return md(t,e,e.type,e.pendingProps,n);case 17:return r=e.type,s=e.pendingProps,s=e.elementType===r?s:De(r,s),ws(t,e),e.tag=1,xe(r)?(t=!0,As(e)):t=!1,Cn(e,n),hd(e,r,s),Oo(e,r,s,n),Lo(null,e,r,!0,t,n);case 19:return _d(t,e,n);case 22:return gd(t,e,n)}throw Error(x(156,e.tag))};function $d(t,e){return uc(t,e)}function $p(t,e,n,r){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Oe(t,e,n,r){return new $p(t,e,n,r)}function ql(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Up(t){if(typeof t=="function")return ql(t)?1:0;if(t!=null){if(t=t.$$typeof,t===dl)return 11;if(t===hl)return 14}return 2}function bt(t,e){var n=t.alternate;return n===null?(n=Oe(t.tag,e,t.key,t.mode),n.elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deleti
vendor: 6,818 bytes, line 40
40ons=null),n.flags=t.flags&14680064,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n}function ks(t,e,n,r,s,i){var o=2;if(r=t,typeof t=="function")ql(t)&&(o=1);else if(typeof t=="string")o=5;else e:switch(t){case dn:return qt(n.children,s,i,e);case cl:o=8,s|=8;break;case eo:return t=Oe(12,n,e,s|2),t.elementType=eo,t.lanes=i,t;case to:return t=Oe(13,n,e,s),t.elementType=to,t.lanes=i,t;case no:return t=Oe(19,n,e,s),t.elementType=no,t.lanes=i,t;case qu:return oi(n,s,i,e);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case Hu:o=10;break e;case Vu:o=9;break e;case dl:o=11;break e;case hl:o=14;break e;case ft:o=16,r=null;break e}throw Error(x(130,t==null?t:typeof t,""))}return e=Oe(o,n,e,s),e.elementType=t,e.type=r,e.lanes=i,e}function qt(t,e,n,r){return t=Oe(7,t,r,e),t.lanes=n,t}function oi(t,e,n,r){return t=Oe(22,t,r,e),t.elementType=qu,t.lanes=n,t.stateNode={isHidden:!1},t}function Wi(t,e,n){return t=Oe(6,t,null,e),t.lanes=n,t}function Hi(t,e,n){return e=Oe(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function Mp(t,e,n,r,s){this.tag=e,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Ei(0),this.expirationTimes=Ei(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ei(0),this.identifierPrefix=r,this.onRecoverableError=s,this.mutableSourceEagerHydrationData=null}function Kl(t,e,n,r,s,i,o,l,a){return t=new Mp(t,e,n,l,a),e===1?(e=1,i===!0&&(e|=8)):e=0,i=Oe(3,null,null,e),t.current=i,i.stateNode=t,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Pl(i),t}function Dp(t,e,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:cn,key:r==null?null:""+r,children:t,containerInfo:e,implementation:n}}function Ud(t){if(!t)return Nt;t=t._reactInternals;e:{if(Zt(t)!==t||t.tag!==1)throw Error(x(170));var e=t;do{switch(e.tag){case 3:e=e.stateNode.context;break e;case 1:if(xe(e.type)){e=e.stateNode.__reactInternalMemoizedMergedChildContext;break e}}e=e.return}while(e!==null);throw Error(x(171))}if(t.tag===1){var n=t.type;if(xe(n))return Uc(t,n,e)}return e}function Md(t,e,n,r,s,i,o,l,a){return t=Kl(n,r,!0,t,s,i,o,l,a),t.context=Ud(null),n=t.current,r=pe(),s=Ct(n),i=st(r,s),i.callback=e??null,Et(n,i,s),t.current.lanes=s,Lr(t,s,r),ke(t,r),t}function li(t,e,n,r){var s=e.current,i=pe(),o=Ct(s);return n=Ud(n),e.context===null?e.context=n:e.pendingContext=n,e=st(i,o),e.payload={element:t},r=r===void 0?null:r,r!==null&&(e.callback=r),t=Et(s,e,o),t!==null&&(He(t,s,o,i),gs(t,s,o)),o}function qs(t){if(t=t.current,!t.child)return null;switch(t.child.tag){case 5:return t.child.stateNode;default:return t.child.stateNode}}function uu(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function Ql(t,e){uu(t,e),(t=t.alternate)&&uu(t,e)}function zp(){return null}var Dd=typeof reportError=="function"?reportError:function(t){console.error(t)};function Gl(t){this._internalRoot=t}ai.prototype.render=Gl.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(x(409));li(t,e,null,null)};ai.prototype.unmount=Gl.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;Yt(function(){li(null,t,null,null)}),e[ot]=null}};function ai(t){this._internalRoot=t}ai.prototype.unstable_scheduleHydration=function(t){if(t){var e=gc();t={blockedOn:null,target:t,priority:e};for(var n=0;n<mt.length&&e!==0&&e<mt[n].priority;n++);mt.splice(n,0,t),n===0&&yc(t)}};function Jl(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function ui(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11&&(t.nodeType!==8||t.nodeValue!==" react-mount-point-unstable "))}function cu(){}function Fp(t,e,n,r,s){if(s){if(typeof r=="function"){var i=r;r=function(){var u=qs(o);i.call(u)}}var o=Md(e,r,t,0,null,!1,!1,"",cu);return t._reactRootContainer=o,t[ot]=o.current,Sr(t.nodeType===8?t.parentNode:t),Yt(),o}for(;s=t.lastChild;)t.removeChild(s);if(typeof r=="function"){var l=r;r=function(){var u=qs(a);l.call(u)}}var a=Kl(t,0,!1,null,null,!1,!1,"",cu);return t._reactRootContainer=a,t[ot]=a.current,Sr(t.nodeType===8?t.parentNode:t),Yt(function(){li(e,a,n,r)}),a}function ci(t,e,n,r,s){var i=n._reactRootContainer;if(i){var o=i;if(typeof s=="function"){var l=s;s=function(){var a=qs(o);l.call(a)}}li(e,o,t,s)}else o=Fp(n,e,t,s,r);return qs(o)}pc=function(t){switch(t.tag){case 3:var e=t.stateNode;if(e.current.memoizedState.isDehydrated){var n=er(e.pendingLanes);n!==0&&(ml(e,n|1),ke(e,J()),!(I&6)&&(Ln=J()+500,Rt()))}break;case 13:Yt(function(){var r=lt(t,1);if(r!==null){var s=pe();He(r,t,1,s)}}),Ql(t,1)}};gl=function(t){if(t.tag===13){var e=lt(t,134217728);if(e!==null){var n=pe();He(e,t,134217728,n)}Ql(t,134217728)}};mc=function(t){if(t.tag===13){var e=Ct(t),n=lt(t,e);if(n!==null){var r=pe();He(n,t,e,r)}Ql(t,e)}};gc=function(){return U};vc=function(t,e){var n=U;try{return U=t,e()}finally{U=n}};fo=function(t,e,n){switch(e){case"input":if(io(t,n),e=n.name,n.type==="radio"&&e!=null){for(n=t;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+e)+'][type="radio"]'),e=0;e<n.length;e++){var r=n[e];if(r!==t&&r.form===t.form){var s=ei(r);if(!s)throw Error(x(90));Qu(r),io(r,s)}}}break;case"textarea":Ju(t,n);break;case"select":e=n.value,e!=null&&kn(t,!!n.multiple,e,!1)}};rc=Wl;sc=Yt;var Bp={usingClientEntryPoint:!1,Events:[$r,mn,ei,tc,nc,Wl]},Jn={findFiberByHostInstance:Bt,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Wp={bundleType:Jn.bundleType,version:Jn.version,rendererPackageName:Jn.rendererPackageName,rendererConfig:Jn.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:ut.ReactCurrentDispatcher,findHostInstanceByFiber:function(t){return t=lc(t),t===null?null:t.stateNode},findFiberByHostInstance:Jn.findFiberByHostInstance||zp,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};
vendor: 4,556 bytes, lines 40-65
40if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var os=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!os.isDisabled&&os.supportsFiber)try{Js=os.inject(Wp),Je=os}catch{}}be.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Bp;be.createPortal=function(t,e){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Jl(e))throw Error(x(200));return Dp(t,e,null,n)};be.createRoot=function(t,e){if(!Jl(t))throw Error(x(299));var n=!1,r="",s=Dd;return e!=null&&(e.unstable_strictMode===!0&&(n=!0),e.identifierPrefix!==void 0&&(r=e.identifierPrefix),e.onRecoverableError!==void 0&&(s=e.onRecoverableError)),e=Kl(t,1,!1,null,null,n,!1,r,s),t[ot]=e.current,Sr(t.nodeType===8?t.parentNode:t),new Gl(e)};be.findDOMNode=function(t){if(t==null)return null;if(t.nodeType===1)return t;var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(x(188)):(t=Object.keys(t).join(","),Error(x(268,t)));return t=lc(e),t=t===null?null:t.stateNode,t};be.flushSync=function(t){return Yt(t)};be.hydrate=function(t,e,n){if(!ui(e))throw Error(x(200));return ci(null,t,e,!0,n)};be.hydrateRoot=function(t,e,n){if(!Jl(t))throw Error(x(405));var r=n!=null&&n.hydratedSources||null,s=!1,i="",o=Dd;if(n!=null&&(n.unstable_strictMode===!0&&(s=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),e=Md(e,null,t,1,n??null,s,!1,i,o),t[ot]=e.current,Sr(t),r)for(t=0;t<r.length;t++)n=r[t],s=n._getVersion,s=s(n._source),e.mutableSourceEagerHydrationData==null?e.mutableSourceEagerHydrationData=[n,s]:e.mutableSourceEagerHydrationData.push(n,s);return new ai(e)};be.render=function(t,e,n){if(!ui(e))throw Error(x(200));return ci(null,t,e,!1,n)};be.unmountComponentAtNode=function(t){if(!ui(t))throw Error(x(40));return t._reactRootContainer?(Yt(function(){ci(null,null,t,!1,function(){t._reactRootContainer=null,t[ot]=null})}),!0):!1};be.unstable_batchedUpdates=Wl;be.unstable_renderSubtreeIntoContainer=function(t,e,n,r){if(!ui(n))throw Error(x(200));if(t==null||t._reactInternals===void 0)throw Error(x(38));return ci(t,e,n,!1,r)};be.version="18.3.1-next-f1338f8080-20240426";function zd(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(zd)}catch(t){console.error(t)}}zd(),zu.exports=be;var Hp=zu.exports,Fd,du=Hp;Fd=du.createRoot,du.hydrateRoot;/** 41 * @license lucide-react v0.344.0 - ISC 42 * 43 * This source code is licensed under the ISC license. 44 * See the LICENSE file in the root directory of this source tree. 45 */var Vp={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"};/** 46 * @license lucide-react v0.344.0 - ISC 47 * 48 * This source code is licensed under the ISC license. 49 * See the LICENSE file in the root directory of this source tree. 50 */const qp=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim(),$=(t,e)=>{const n=D.forwardRef(({color:r="currentColor",size:s=24,strokeWidth:i=2,absoluteStrokeWidth:o,className:l="",children:a,...u},c)=>D.createElement("svg",{ref:c,...Vp,width:s,height:s,stroke:r,strokeWidth:o?Number(i)*24/Number(s):i,className:["lucide",`lucide-${qp(t)}`,l].join(" "),...u},[...e.map(([f,m])=>D.createElement(f,m)),...Array.isArray(a)?a:[a]]));return n.displayName=`${t}`,n};/** 51 * @license lucide-react v0.344.0 - ISC 52 * 53 * This source code is licensed under the ISC license. 54 * See the LICENSE file in the root directory of this source tree. 55 */const Kp=$("AlertCircle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/** 56 * @license lucide-react v0.344.0 - ISC 57 * 58 * This source code is licensed under the ISC license. 59 * See the LICENSE file in the root directory of this source tree. 60 */const Qp=$("BookOpen",[["path",{d:"M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z",key:"vv98re"}],["path",{d:"M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z",key:"1cyq3y"}]]);/** 61 * @license lucide-react v0.344.0 - ISC 62 * 63 * This source code is licensed under the ISC license. 64 * See the LICENSE file in the root directory of this source tree. 65 */const Bd=$("Building2",[["path",{d:"M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z",key:"1b4qmf"}],["path",{d:"M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2",key:"i71pzd"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2",key:"10jefs"}],["path",{d:"M10 6h4",key:"1itunk"}],["path",{d:"M10 10h4",key:"tcdvrf"}
65],["path",{d:"M10 14h4",key:"kelpxr"}],["path",{d:"M10 18h4",key:"1ulq68"}]]);/** 66 * @license lucide-react v0.344.0 - ISC 67 * 68 * This source code is licensed under the ISC license. 69 * See the LICENSE file in the root directory of this source tree. 70 */const Wd=$("Calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);/** 71 * @license lucide-react v0.344.0 - ISC 72 * 73 * This source code is licensed under the ISC license. 74 * See the LICENSE file in the root directory of this source tree. 75 */const Gp=$("ChefHat",[["path",{d:"M6 13.87A4 4 0 0 1 7.41 6a5.11 5.11 0 0 1 1.05-1.54 5 5 0 0 1 7.08 0A5.11 5.11 0 0 1 16.59 6 4 4 0 0 1 18 13.87V21H6Z",key:"z3ra2g"}],["line",{x1:"6",x2:"18",y1:"17",y2:"17",key:"12q60k"}]]);/** 76 * @license lucide-react v0.344.0 - ISC 77 * 78 * This source code is licensed under the ISC license. 79 * See the LICENSE file in the root directory of this source tree. 80 */const Jp=$("ClipboardCheck",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"m9 14 2 2 4-4",key:"df797q"}]]);/** 81 * @license lucide-react v0.344.0 - ISC 82 * 83 * This source code is licensed under the ISC license. 84 * See the LICENSE file in the root directory of this source tree. 85 */const Yp=$("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/** 86 * @license lucide-react v0.344.0 - ISC 87 * 88 * This source code is licensed under the ISC license. 89 * See the LICENSE file in the root directory of this source tree. 90 */const Hd=$("Coffee",[["path",{d:"M17 8h1a4 4 0 1 1 0 8h-1",key:"jx4kbh"}],["path",{d:"M3 8h14v9a4 4 0 0 1-4 4H7a4 4 0 0 1-4-4Z",key:"1bxrl0"}],["line",{x1:"6",x2:"6",y1:"2",y2:"4",key:"1cr9l3"}],["line",{x1:"10",x2:"10",y1:"2",y2:"4",key:"170wym"}],["line",{x1:"14",x2:"14",y1:"2",y2:"4",key:"1c5f70"}]]);/** 91 * @license lucide-react v0.344.0 - ISC 92 * 93 * This source code is licensed under the ISC license. 94 * See the LICENSE file in the root directory of this source tree. 95 */const Xp=$("Cookie",[["path",{d:"M12 2a10 10 0 1 0 10 10 4 4 0 0 1-5-5 4 4 0 0 1-5-5",key:"laymnq"}],["path",{d:"M8.5 8.5v.01",key:"ue8clq"}],["path",{d:"M16 15.5v.01",key:"14dtrp"}],["path",{d:"M12 12v.01",key:"u5ubse"}],["path",{d:"M11 17v.01",key:"1hyl5a"}],["path",{d:"M7 14v.01",key:"uct60s"}]]);/** 96 * @license lucide-react v0.344.0 - ISC 97 * 98 * This source code is licensed under the ISC license. 99 * See the LICENSE file in the root directory of this source tree. 100 */const Zp=$("Facebook",[["path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z",key:"1jg4f8"}]]);/** 101 * @license lucide-react v0.344.0 - ISC 102 * 103 * This source code is licensed under the ISC license. 104 * See the LICENSE file in the root directory of this source tree. 105 */const e0=$("Gift",[["rect",{x:"3",y:"8",width:"18",height:"4",rx:"1",key:"bkv52"}],["path",{d:"M12 8v13",key:"1c76mn"}],["path",{d:"M19 12v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-7",key:"6wjy6b"}],["path",{d:"M7.5 8a2.5 2.5 0 0 1 0-5A4.8 8 0 0 1 12 8a4.8 8 0 0 1 4.5-5 2.5 2.5 0 0 1 0 5",key:"1ihvrl"}]]);/** 106 * @license lucide-react v0.344.0 - ISC 107 * 108 * This source code is licensed under the ISC license. 109 * See the LICENSE file in the root directory of this source tree. 110 */const Vd=$("Heart",[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}]]);/** 111 * @license lucide-react v0.344.0 - ISC 112 * 113 * This source code is licensed under the ISC license. 114 * See the LICENSE file in the root directory of this source tree. 115 */const t0=$("Home",[["path",{d:"m3 9 9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"y5dka4"}],["polyline",{points:"9 22 9 12 15 12 15 22",key:"e2us08"}]]);/** 116 * @license lucide-react v0.344.0 - ISC 117 * 118 * This source code is licensed under the ISC license. 119 * See the LICENSE file in the root directory of this source tree. 120 */const n0=$("Instagram",[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5",key:"2e1cvw"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",key:"9exkf1"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5",key:"r4j83e"}]]);/** 121 * @license lucide-react v0.344.0 - ISC 122 * 123 * This source code is licensed under the ISC license. 124 * See the LICENSE file in the root directory of this source tree. 125 */const r0=$("Leaf",[["path",{d:"M11 20A7 7 0 0 1 9.8 6.1C15.5 5 17 4.48 19 2c1 2 2 4.18 2 8 0 5.5-4.78 10-10 10Z",key:"nnexq3"}],["path",{d:"M2 21c0-3 1.85-5.36 5.08-6C9.5 14.52 12 13 13 12",key:"mt58a7"}]]);/** 126 * @license lucide-react v0.344.0 - ISC 127 * 128 * This source code is licensed under the ISC license. 129 * See the LICENSE file in the root directory of this source tree. 130 */const qd=$("Lightbulb",[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]);/** 131 * @license lucide-react v0.344.0 - ISC 132 * 133 * This source code is licensed under the ISC license. 134 * See the LICENSE file in the root directory of this source tree. 135 */const s0=$("Linkedin",[["path",{d:"M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z",key:"c2jq9f"}],["rect",{width:"4",height:"12",x:"2",y:"9",key:"mk3on5"}],["circle",{cx:"4",cy:"4",r:"2",key:"bt5ra8"}]]);/** 136 * @license lucide-react v0.344.0 - ISC 137 * 138 * This source code is licensed under the ISC license. 139 * See the LICENSE file in the root directory of this source tree. 140 */const i0=$("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"}]]);/** 141 * @license lucide-react v0.344.0 - ISC 142 * 143 * This source code is licensed under the ISC license. 144 * See the LICENSE file in the root directory of this source tree. 145 */const o0=$("MapPin",[["path",{d:"M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z",key:"2oe9fu"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]);/** 146 * @license lucide-react v0.344.0 - ISC 147 * 148 * This source code is licensed under the ISC license. 149 * See the LICENSE file in the root directory of this source tree. 150 */const l0=$("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);/** 151 * @license lucide-react v0.344.0 - ISC 152 * 153 * This source code is licensed under the ISC license. 154 * See the LICENSE file in the root directory of this source tree. 155 */const a0=$("Microscope",[["path",{d:"M6 18h8",key:"1borvv"}],["path",{d:"M3 22h18",key:"8prr45"}],["path",{d:"M14 22a7 7 0 1 0 0-14h-1",key:"1jwaiy"}],["path",{d:"M9 14h2",key:"197e7h"}
155],["path",{d:"M9 12a2 2 0 0 1-2-2V6h6v4a2 2 0 0 1-2 2Z",key:"1bmzmy"}],["path",{d:"M12 6V3a1 1 0 0 0-1-1H9a1 1 0 0 0-1 1v3",key:"1drr47"}]]);/** 156 * @license lucide-react v0.344.0 - ISC 157 * 158 * This source code is licensed under the ISC license. 159 * See the LICENSE file in the root directory of this source tree. 160 */const u0=$("Music",[["path",{d:"M9 18V5l12-2v13",key:"1jmyc2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["circle",{cx:"18",cy:"16",r:"3",key:"1hluhg"}]]);/** 161 * @license lucide-react v0.344.0 - ISC 162 * 163 * This source code is licensed under the ISC license. 164 * See the LICENSE file in the root directory of this source tree. 165 */const c0=$("Palette",[["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["path",{d:"M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.926 0 1.648-.746 1.648-1.688 0-.437-.18-.835-.437-1.125-.29-.289-.438-.652-.438-1.125a1.64 1.64 0 0 1 1.668-1.668h1.996c3.051 0 5.555-2.503 5.555-5.554C21.965 6.012 17.461 2 12 2z",key:"12rzf8"}]]);/** 166 * @license lucide-react v0.344.0 - ISC 167 * 168 * This source code is licensed under the ISC license. 169 * See the LICENSE file in the root directory of this source tree. 170 */const d0=$("Phone",[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]]);/** 171 * @license lucide-react v0.344.0 - ISC 172 * 173 * This source code is licensed under the ISC license. 174 * See the LICENSE file in the root directory of this source tree. 175 */const h0=$("Quote",[["path",{d:"M3 21c3 0 7-1 7-8V5c0-1.25-.756-2.017-2-2H4c-1.25 0-2 .75-2 1.972V11c0 1.25.75 2 2 2 1 0 1 0 1 1v1c0 1-1 2-2 2s-1 .008-1 1.031V20c0 1 0 1 1 1z",key:"4rm80e"}],["path",{d:"M15 21c3 0 7-1 7-8V5c0-1.25-.757-2.017-2-2h-4c-1.25 0-2 .75-2 1.972V11c0 1.25.75 2 2 2h.75c0 2.25.25 4-2.75 4v3c0 1 0 1 1 1z",key:"10za9r"}]]);/** 176 * @license lucide-react v0.344.0 - ISC 177 * 178 * This source code is licensed under the ISC license. 179 * See the LICENSE file in the root directory of this source tree. 180 */const f0=$("Shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]]);/** 181 * @license lucide-react v0.344.0 - ISC 182 * 183 * This source code is licensed under the ISC license. 184 * See the LICENSE file in the root directory of this source tree. 185 */const p0=$("Star",[["polygon",{points:"12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2",key:"8f66p6"}]]);/** 186 * @license lucide-react v0.344.0 - ISC 187 * 188 * This source code is licensed under the ISC license. 189 * See the LICENSE file in the root directory of this source tree. 190 */const m0=$("Target",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]]);/** 191 * @license lucide-react v0.344.0 - ISC 192 * 193 * This source code is licensed under the ISC license. 194 * See the LICENSE file in the root directory of this source tree. 195 */const g0=$("Truck",[["path",{d:"M14 18V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v11a1 1 0 0 0 1 1h2",key:"wrbu53"}],["path",{d:"M15 18H9",key:"1lyqi6"}],["path",{d:"M19 18h2a1 1 0 0 0 1-1v-3.65a1 1 0 0 0-.22-.624l-3.48-4.35A1 1 0 0 0 17.52 8H14",key:"lysw3i"}],["circle",{cx:"17",cy:"18",r:"2",key:"332jqn"}],["circle",{cx:"7",cy:"18",r:"2",key:"19iecd"}]]);/** 196 * @license lucide-react v0.344.0 - ISC 197 * 198 * This source code is licensed under the ISC license. 199 * See the LICENSE file in the root directory of this source tree. 200 */const v0=$("Tv",[["rect",{width:"20",height:"15",x:"2",y:"7",rx:"2",ry:"2",key:"10ag99"}],["polyline",{points:"17 2 12 7 7 2",key:"11pgbg"}]]);/** 201 * @license lucide-react v0.344.0 - ISC 202 * 203 * This source code is licensed under the ISC license. 204 * See the LICENSE file in the root directory of this source tree. 205 */const y0=$("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);/** 206 * @license lucide-react v0.344.0 - ISC 207 * 208 * This source code is licensed under the ISC license. 209 * See the LICENSE file in the root directory of this source tree. 210 */const w0=$("Utensils",[["path",{d:"M3 2v7c0 1.1.9 2 2 2h4a2 2 0 0 0 2-2V2",key:"cjf0a3"}],["path",{d:"M7 2v20",key:"1473qp"}
210],["path",{d:"M21 15V2v0a5 5 0 0 0-5 5v6c0 1.1.9 2 2 2h3Zm0 0v7",key:"1ogz0v"}]]);/** 211 * @license lucide-react v0.344.0 - ISC 212 * 213 * This source code is licensed under the ISC license. 214 * See the LICENSE file in the root directory of this source tree. 215 */const _0=$("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function x0(){const[t,e]=D.useState(!1),n=s=>{const i=document.getElementById(s);i==null||i.scrollIntoView({behavior:"smooth"}),e(!1)},r=[{label:"InÃcio",id:"hero"},{label:"Segmentos",id:"segments"},{label:"Produtos",id:"services"},{label:"Depoimentos",id:"testimonials"},{label:"Clientes",id:"clients"},{label:"Sobre",id:"about"},{label:"Contato",id:"contact"}];return d.jsx("header",{className:"fixed top-0 left-0 right-0 bg-white/95 backdrop-blur-sm shadow-md z-50",children:d.jsxs("div",{className:"max-w-7xl mx-auto px-6 lg:px-8",children:[d.jsxs("div",{className:"flex items-center justify-between h-20",children:[d.jsx("div",{className:"flex items-center",children:d.jsx("img",{src:"https://bonaliment.com.br/wp-content/uploads/2025/03/Logo-Bona-2025.svg",alt:"Bonaliment Logo",className:"h-12 w-auto cursor-pointer",onClick:()=>n("hero")})}),d.jsx("nav",{className:"hidden md:flex items-center gap-8",children:r.map(s=>d.jsx("button",{onClick:()=>n(s.id),className:"text-gray-700 hover:text-bona-blue font-semibold transition-colors duration-200",children:s.label},s.id))}),d.jsx("button",{className:"md:hidden text-gray-700 hover:text-bona-blue",onClick:()=>e(!t),children:t?d.jsx(_0,{className:"w-6 h-6"}):d.jsx(l0,{className:"w-6 h-6"})})]}),t&&d.jsx("nav",{className:"md:hidden pb-6 space-y-4",children:r.map(s=>d.jsx("button",{onClick:()=>n(s.id),className:"block w-full text-left text-gray-700 hover:text-bona-blue font-semibold transition-colors duration-200 py-2",children:s.label},s.id))})]})})}function k0(){const t=()=>{var e;(e=document.getElementById("contact"))==null||e.scrollIntoView({behavior:"smooth"})};return d.jsx("section",{id:"hero",className:"bg-gradient-to-br from-blue-50 to-sky-50 py-20 px-6 lg:px-8 pt-32",children:d.jsx("div",{className:"max-w-7xl mx-auto",children:d.jsxs("div",{className:"grid lg:grid-cols-2 gap-12 items-center",children:[d.jsxs("div",{className:"space-y-8",children:[d.jsxs("div",{className:"space-y-4",children:[d.jsx("h1",{className:"text-5xl lg:text-6xl font-bold text-gray-900 leading-tight",children:"Kits Lanches que Valorizam sua Equipe e Transformam Eventos em Experiências"}),d.jsx("p",{className:"text-xl text-gray-600 leading-relaxed",children:"Solução ideal para eventos corporativos, reuniões, treinamentos e pausas estratégicas."})]}),d.jsx("button",{onClick:t,className:"bg-bona-blue hover:bg-bona-blue/90 text-white px-8 py-4 rounded-lg text-lg font-semibold transition-all duration-300 shadow-lg hover:shadow-xl transform hover:-translate-y-1",children:"Solicite Seu Orçamento"}),d.jsxs("div",{className:"grid sm:grid-cols-2 gap-6 pt-4",children:[d.jsxs("div",{className:"flex items-start gap-3",children:[d.jsx(Bd,{className:"w-7 h-7 text-bona-blue flex-shrink-0 mt-0.5"}),d.jsxs("div",{children:[d.jsx("p",{className:"font-semibold text-gray-900",children:"Atendimento Exclusivo B2B"}),d.jsx("p",{className:"text-sm text-gray-600",children:"Soluções feitas só para empresas."})]})]}),d.jsxs("div",{className:"flex items-start gap-3",children:[d.jsx(Gp,{className:"w-7 h-7 text-bona-blue flex-shrink-0 mt-0.5"}),d.jsxs("div",{children:[d.jsx("p",{className:"font-semibold text-gray-900",children:"Produção Artesanal"}),d.jsx("p",{className:"text-sm text-gray-600",children:"Feito por equipe própria e fresca."})]})]}),d.jsxs("div",{className:"flex items-start gap-3",children:[d.jsx(r0,{className:"w-7 h-7 text-bona-blue flex-shrink-0 mt-0.5"}),d.jsxs("div",{children:[d.jsx("p",{className:"font-semibold text-gray-900",children:"Sem Conservantes"}),d.jsx("p",{className:"text-sm text-gray-600",children:"Alimentos naturais e saudáveis."})]})]}),d.jsxs("div",{className:"flex items-start gap-3",children:[d.jsx(g0,{className:"w-7 h-7 text-bona-blue flex-shrink-0 mt-0.5"}),d.jsxs("div",{children:[d.jsx("p",{className:"font-semibold text-gray-900",children:"Entrega Pontual"}),d.jsx("p",{className:"text-sm text-gray-600",children:"LogÃstica rápida, eficiente e rastreável."})]})]})]})]}),d.jsxs("div",{className:"relative",children:[d.jsx("div",{className:"aspect-square bg-gradient-to-br from-bona-blue/20 to-blue-100 rounded-3xl shadow-2xl overflow-hidden",children:d.jsx("img",{src:"https://i.ibb.co/RwbmvxF/Kit-Lanche-Novo.webp",alt:"Kit lanche corporativo profissional",className:"w-full h-full object-cover",loading:"eager"})}),d.jsx("div",{className:"absolute -bottom-6 -left-6 bg-white p-6 rounded-2xl shadow-xl",children:d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx(Wd,{className:"w-8 h-8 text-bona-blue"}),d.jsxs("div",{children:[d.jsx("p",{className:"text-2xl font-bold text-gray-900",children:"40+"}),d.jsx("p",{className:"text-sm text-gray-600",children:"Anos de Experiência"})]})]})})]})]})})})}const S0="modulepreload",E0=function(t){return"/"+t},hu={},Mr=function(e,n,r){let s=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),l=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));s=Promise.allSettled(n.map(a=>{if(a=E0(a),a in hu)return;hu[a]=!0;const u=a.endsWith(".css"),c=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${a}"]${c}`))return;const f=document.createElement("link");if(f.rel=u?"stylesheet":S0,u||(f.as="script"),f.crossOrigin="",f.href=a,l&&f.setAttribute("nonce",l),document.head.appendChild(f),u)return new Promise((m,v)=>{f.addEventListener("load",m),f.addEventListener("error",()=>
215v(new Error(`Unable to preload CSS for ${a}`)))})}))}function i(o){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=o,window.dispatchEvent(l),!l.defaultPrevented)throw o}return s.then(o=>{for(const l of o||[])l.status==="rejected"&&i(l.reason);return e().catch(i)})},j0=t=>{let e;return t?e=t:typeof fetch>"u"?e=(...n)=>Mr(async()=>{const{default:r}=await Promise.resolve().then(()=>Dn);return{default:r}},void 0).then(({default:r})=>r(...n)):e=fetch,(...n)=>e(...n)};class Yl extends Error{constructor(e,n="FunctionsError",r){super(e),this.name=n,this.context=r}}class C0 extends Yl{constructor(e){super("Failed to send a request to the Edge Function","FunctionsFetchError",e)}}class fu extends Yl{constructor(e){super("Relay Error invoking the Edge Function","FunctionsRelayError",e)}}class pu extends Yl{constructor(e){super("Edge Function returned a non-2xx status code","FunctionsHttpError",e)}}var qo;(function(t){t.Any="any",t.ApNortheast1="ap-northeast-1",t.ApNortheast2="ap-northeast-2",t.ApSouth1="ap-south-1",t.ApSoutheast1="ap-southeast-1",t.ApSoutheast2="ap-southeast-2",t.CaCentral1="ca-central-1",t.EuCentral1="eu-central-1",t.EuWest1="eu-west-1",t.EuWest2="eu-west-2",t.EuWest3="eu-west-3",t.SaEast1="sa-east-1",t.UsEast1="us-east-1",t.UsWest1="us-west-1",t.UsWest2="us-west-2"})(qo||(qo={}));var b0=function(t,e,n,r){function s(i){return i instanceof n?i:new n(function(o){o(i)})}return new(n||(n=Promise))(function(i,o){function l(c){try{u(r.next(c))}catch(f){o(f)}}function a(c){try{u(r.throw(c))}catch(f){o(f)}}function u(c){c.done?i(c.value):s(c.value).then(l,a)}u((r=r.apply(t,e||[])).next())})};class T0{constructor(e,{headers:n={},customFetch:r,region:s=qo.Any}={}){this.url=e,this.headers=n,this.region=s,this.fetch=j0(r)}setAuth(e){this.headers.Authorization=`Bearer ${e}`}invoke(e,n={}){var r;return b0(this,void 0,void 0,function*(){try{const{headers:s,method:i,body:o}=n;let l={},{region:a}=n;a||(a=this.region);const u=new URL(`${this.url}/${e}`);a&&a!=="any"&&(l["x-region"]=a,u.searchParams.set("forceFunctionRegion",a));let c;o&&(s&&!Object.prototype.hasOwnProperty.call(s,"Content-Type")||!s)&&(typeof Blob<"u"&&o instanceof Blob||o instanceof ArrayBuffer?(l["Content-Type"]="application/octet-stream",c=o):typeof o=="string"?(l["Content-Type"]="text/plain",c=o):typeof FormData<"u"&&o instanceof FormData?c=o:(l["Content-Type"]="application/json",c=JSON.stringify(o)));const f=yield this.fetch(u.toString(),{method:i||"POST",headers:Object.assign(Object.assign(Object.assign({},l),this.headers),s),body:c}).catch(_=>{throw new C0(_)}),m=f.headers.get("x-relay-error");if(m&&m==="true")throw new fu(f);if(!f.ok)throw new pu(f);let v=((r=f.headers.get("Content-Type"))!==null&&r!==void 0?r:"text/plain").split(";")[0].trim(),w;return v==="application/json"?w=yield f.json():v==="application/octet-stream"?w=yield f.blob():v==="text/event-stream"?w=f:v==="multipart/form-data"?w=yield f.formData():w=yield f.text(),{data:w,error:null,response:f}}catch(s){return{data:null,error:s,response:s instanceof pu||s instanceof fu?s.context:void 0}}})}}var ye={},Xl={},di={},Dr={},hi={},fi={},N0=function(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")},In=N0();const P0=In.fetch,Kd=In.fetch.bind(In),Qd=In.Headers,O0=In.Request,R0=In.Response,Dn=Object.freeze(Object.defineProperty({__proto__:null,Headers:Qd,Request:O0,Response:R0,default:Kd,fetch:P0},Symbol.toStringTag,{value:"Module"})),A0=vh(Dn);var pi={};Object.defineProperty(pi,"__esModule",{value:!0});let L0=class extends Error{constructor(e){super(e.message),this.name="PostgrestError",this.details=e.details,this.hint=e.hint,this.co
215de=e.code}};pi.default=L0;var Gd=Ae&&Ae.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(fi,"__esModule",{value:!0});const I0=Gd(A0),$0=Gd(pi);let U0=class{constructor(e){var n,r;this.shouldThrowOnError=!1,this.method=e.method,this.url=e.url,this.headers=new Headers(e.headers),this.schema=e.schema,this.body=e.body,this.shouldThrowOnError=(n=e.shouldThrowOnError)!==null&&n!==void 0?n:!1,this.signal=e.signal,this.isMaybeSingle=(r=e.isMaybeSingle)!==null&&r!==void 0?r:!1,e.fetch?this.fetch=e.fetch:typeof fetch>"u"?this.fetch=I0.default:this.fetch=fetch}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(e,n){return this.headers=new Headers(this.headers),this.headers.set(e,n),this}then(e,n){this.schema===void 0||(["GET","HEAD"].includes(this.method)?this.headers.set("Accept-Profile",this.schema):this.headers.set("Content-Profile",this.schema)),this.method!=="GET"&&this.method!=="HEAD"&&this.headers.set("Content-Type","application/json");const r=this.fetch;let s=r(this.url.toString(),{method:this.method,headers:this.headers,body:JSON.stringify(this.body),signal:this.signal}).then(async i=>{var o,l,a,u;let c=null,f=null,m=null,v=i.status,w=i.statusText;if(i.ok){if(this.method!=="HEAD"){const h=await i.text();h===""||(this.headers.get("Accept")==="text/csv"||this.headers.get("Accept")&&(!((o=this.headers.get("Accept"))===null||o===void 0)&&o.includes("application/vnd.pgrst.plan+text"))?f=h:f=JSON.parse(h))}const j=(l=this.headers.get("Prefer"))===null||l===void 0?void 0:l.match(/count=(exact|planned|estimated)/),g=(a=i.headers.get("content-range"))===null||a===void 0?void 0:a.split("/");j&&g&&g.length>1&&(m=parseInt(g[1])),this.isMaybeSingle&&this.method==="GET"&&Array.isArray(f)&&(f.length>1?(c={code:"PGRST116",details:`Results contain ${f.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:"JSON object requested, multiple (or no) rows returned"},f=null,m=null,v=406,w="Not Acceptable"):f.length===1?f=f[0]:f=null)}else{const j=await i.text();try{c=JSON.parse(j),Array.isArray(c)&&i.status===404&&(f=[],c=null,v=200,w="OK")}catch{i.status===404&&j===""?(v=204,w="No Content"):c={message:j}}if(c&&this.isMaybeSingle&&(!((u=c==null?void 0:c.details)===null||u===void 0)&&u.includes("0 rows"))&&(c=null,v=200,w="OK"),c&&this.shouldThrowOnError)throw new $0.default(c)}return{error:c,data:f,count:m,status:v,statusText:w}});return this.shouldThrowOnError||(s=s.catch(i=>{var o,l,a;return{error:{message:`${(o=i==null?void 0:i.name)!==null&&o!==void 0?o:"FetchError"}: ${i==null?void 0:i.message}`,details:`${(l=i==null?void 0:i.stack)!==null&&l!==void 0?l:""}`,hint:"",code:`${(a=i==null?void 0:i.code)!==null&&a!==void 0?a:""}`},data:null,count:null,status:0,statusText:""}})),s.then(e,n)}returns(){return this}overrideTypes(){return this}};fi.default=U0;var M0=Ae&&Ae.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(hi,"__esModule",{value:!0});const D0=M0(fi);let z0=class extends D0.default{select(e){let n=!1;const r=(e??"*").split("").map(s=>/\s/.test(s)&&!n?"":(s==='"'&&(n=!n),s)).join("");return this.url.searchParams.set("select",r),this.headers.append("Prefer","return=representation"),this}order(e,{ascending:n=!0,nullsFirst:r,foreignTable:s,referencedTable:i=s}={}){const o=i?`${i}.order`:"order",l=this.url.searchParams.get(o);return this.url.searchParams.set(o,`${l?`${l},`:""}${e}.${n?"asc":"desc"}${r===void 0?"":r?".nullsfirst":".nullslast"}`),this}limit(e,{foreignTable:n,referencedTable:r=n}={}){const s=typeof r>"u"?"limit":`${r}.limit`;return this.url.searchParams.set(s,`${e}`),this}range(e,n,{foreignTable:r,referencedTable:s=r}={}){const i=typeof s>"u"?"offset":`${s}.offset`,o=typeof s>"u"?"limit":`${s}.limit`;return this.url.searchParams.set(i,`${e}`),this.url.searchParams.set(o,`${n-e+1}`),this}abortSignal(e){return this.signal=e,this}single(){return this.headers.set("Accept","application/vnd.pgrst.object+json"),this}maybeSingle(){return this.method==="GET"?this.headers.set("Accept","application/json"):this.headers.set("Accept","application/vnd.pgrst.object+json"),this.isMaybeSingle=!0,this}csv(){return this.headers.set("Accept","text/csv"),this}geojson(){return this.headers.set("Accept","application/geo+json"),this}
215explain({analyze:e=!1,verbose:n=!1,settings:r=!1,buffers:s=!1,wal:i=!1,format:o="text"}={}){var l;const a=[e?"analyze":null,n?"verbose":null,r?"settings":null,s?"buffers":null,i?"wal":null].filter(Boolean).join("|"),u=(l=this.headers.get("Accept"))!==null&&l!==void 0?l:"application/json";return this.headers.set("Accept",`application/vnd.pgrst.plan+${o}; for="${u}"; options=${a};`),o==="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}};hi.default=z0;var F0=Ae&&Ae.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Dr,"__esModule",{value:!0});const B0=F0(hi);let W0=class extends B0.default{eq(e,n){return this.url.searchParams.append(e,`eq.${n}`),this}neq(e,n){return this.url.searchParams.append(e,`neq.${n}`),this}gt(e,n){return this.url.searchParams.append(e,`gt.${n}`),this}gte(e,n){return this.url.searchParams.append(e,`gte.${n}`),this}lt(e,n){return this.url.searchParams.append(e,`lt.${n}`),this}lte(e,n){return this.url.searchParams.append(e,`lte.${n}`),this}like(e,n){return this.url.searchParams.append(e,`like.${n}`),this}likeAllOf(e,n){return this.url.searchParams.append(e,`like(all).{${n.join(",")}}`),this}likeAnyOf(e,n){return this.url.searchParams.append(e,`like(any).{${n.join(",")}}`),this}ilike(e,n){return this.url.searchParams.append(e,`ilike.${n}`),this}ilikeAllOf(e,n){return this.url.searchParams.append(e,`ilike(all).{${n.join(",")}}`),this}ilikeAnyOf(e,n){return this.url.searchParams.append(e,`ilike(any).{${n.join(",")}}`),this}is(e,n){return this.url.searchParams.append(e,`is.${n}`),this}in(e,n){const r=Array.from(new Set(n)).map(s=>typeof s=="string"&&new RegExp("[,()]").test(s)?`"${s}"`:`${s}`).join(",");return this.url.searchParams.append(e,`in.(${r})`),this}contains(e,n){return typeof n=="string"?this.url.searchParams.append(e,`cs.${n}`):Array.isArray(n)?this.url.searchParams.append(e,`cs.{${n.join(",")}}`):this.url.searchParams.append(e,`cs.${JSON.stringify(n)}`),this}containedBy(e,n){return typeof n=="string"?this.url.searchParams.append(e,`cd.${n}`):Array.isArray(n)?this.url.searchParams.append(e,`cd.{${n.join(",")}}`):this.url.searchParams.append(e,`cd.${JSON.stringify(n)}`),this}rangeGt(e,n){return this.url.searchParams.append(e,`sr.${n}`),this}rangeGte(e,n){return this.url.searchParams.append(e,`nxl.${n}`),this}rangeLt(e,n){return this.url.searchParams.append(e,`sl.${n}`),this}rangeLte(e,n){return this.url.searchParams.append(e,`nxr.${n}`),this}rangeAdjacent(e,n){return this.url.searchParams.append(e,`adj.${n}`),this}overlaps(e,n){return typeof n=="string"?this.url.searchParams.append(e,`ov.${n}`):this.url.searchParams.append(e,`ov.{${n.join(",")}}`),this}textSearch(e,n,{config:r,type:s}={}){let i="";s==="plain"?i="pl":s==="phrase"?i="ph":s==="websearch"&&(i="w");const o=r===void 0?"":`(${r})`;return this.url.searchParams.append(e,`${i}fts${o}.${n}`),this}match(e){return Object.entries(e).forEach(([n,r])=>{this.url.searchParams.append(n,`eq.${r}`)}),this}not(e,n,r){return this.url.searchParams.append(e,`not.${n}.${r}`),this}or(e,{foreignTable:n,referencedTable:r=n}={}){const s=r?`${r}.or`:"or";return this.url.searchParams.append(s,`(${e})`),this}filter(e,n,r){return this.url.searchParams.append(e,`${n}.${r}`),this}};Dr.default=W0;var H0=Ae&&Ae.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(di,"__esModule",{value:!0});const Yn=H0(Dr);let V0=class{constructor(e,{headers:n={},schema:r,fetch:s}){this.url=e,this.headers=new Headers(n),this.schema=r,this.fetch=s}select(e,{head:n=!1,count:r}={}){const s=n?"HEAD":"GET";let i=!1;const o=(e??"*").split("").map(l=>/\s/.test(l)&&!i?"":(l==='"'&&(i=!i),l)).join("");return this.url.searchParams.set("select",o),r&&this.headers.append("Prefer",`count=${r}`),new Yn.default({method:s,url:this.url,headers:this.headers,schema:this.schema,fetch:this.fetch})}insert(e,{count:n,defaultToNull:r=!0}={}){var s;const i="POST";if(n&&this.headers.append("Prefer",`count=${n}`),r||this.headers.append("Prefer","missing=default"),Array.isArray(e)){const o=e.reduce((l,a)=>l.concat(Object.keys(a)),[]);if(o.length>0){const l=[...new Set(o)].map(a=>`"${a}"`);this.url.searchParams.set("columns",l.join(","))}}return new Yn.default({method:i,url:this.url,headers:this.headers,schema:this.schema,body:e,fetch:(s=this.fetch)!==null&&s!==void 0?s:fetch})}upsert(e,{onConflict:n,ignoreDuplicates:r=!1,count:s,defaultToNull:i=!0}={}){var o;const l="POST";if(this.headers.append("Prefer",`resolution=${r?"ignore":"merge"}-duplicates`),n!==void 0&&this.url.searchParams.set("on_conflict",n),s&&this.headers.append("Prefer",`count=${s}`),i||this.headers.append("Prefer","missing=default"),Array.isArray(e)){const a=e.reduce((u,c)=>u.concat(Object.keys(c)),[]);if(a.length>
2150){const u=[...new Set(a)].map(c=>`"${c}"`);this.url.searchParams.set("columns",u.join(","))}}return new Yn.default({method:l,url:this.url,headers:this.headers,schema:this.schema,body:e,fetch:(o=this.fetch)!==null&&o!==void 0?o:fetch})}update(e,{count:n}={}){var r;const s="PATCH";return n&&this.headers.append("Prefer",`count=${n}`),new Yn.default({method:s,url:this.url,headers:this.headers,schema:this.schema,body:e,fetch:(r=this.fetch)!==null&&r!==void 0?r:fetch})}delete({count:e}={}){var n;const r="DELETE";return e&&this.headers.append("Prefer",`count=${e}`),new Yn.default({method:r,url:this.url,headers:this.headers,schema:this.schema,fetch:(n=this.fetch)!==null&&n!==void 0?n:fetch})}};di.default=V0;var Jd=Ae&&Ae.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Xl,"__esModule",{value:!0});const q0=Jd(di),K0=Jd(Dr);let Q0=class Yd{constructor(e,{headers:n={},schema:r,fetch:s}={}){this.url=e,this.headers=new Headers(n),this.schemaName=r,this.fetch=s}from(e){const n=new URL(`${this.url}/${e}`);return new q0.default(n,{headers:new Headers(this.headers),schema:this.schemaName,fetch:this.fetch})}schema(e){return new Yd(this.url,{headers:this.headers,schema:e,fetch:this.fetch})}rpc(e,n={},{head:r=!1,get:s=!1,count:i}={}){var o;let l;const a=new URL(`${this.url}/rpc/${e}`);let u;r||s?(l=r?"HEAD":"GET",Object.entries(n).filter(([f,m])=>m!==void 0).map(([f,m])=>[f,Array.isArray(m)?`{${m.join(",")}}`:`${m}`]).forEach(([f,m])=>{a.searchParams.append(f,m)})):(l="POST",u=n);const c=new Headers(this.headers);return i&&c.set("Prefer",`count=${i}`),new K0.default({method:l,url:a,headers:c,schema:this.schemaName,body:u,fetch:(o=this.fetch)!==null&&o!==void 0?o:fetch})}};Xl.default=Q0;var zn=Ae&&Ae.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ye,"__esModule",{value:!0});ye.PostgrestError=ye.PostgrestBuilder=ye.PostgrestTransformBuilder=ye.PostgrestFilterBuilder=ye.PostgrestQueryBuilder=ye.PostgrestClient=void 0;const Xd=zn(Xl);ye.PostgrestClient=Xd.default;const Zd=zn(di);ye.PostgrestQueryBuilder=Zd.default;const eh=zn(Dr);ye.PostgrestFilterBuilder=eh.default;const th=zn(hi);ye.PostgrestTransformBuilder=th.default;const nh=zn(fi);ye.PostgrestBuilder=nh.default;const rh=zn(pi);ye.PostgrestError=rh.default;var G0=ye.default={PostgrestClient:Xd.default,PostgrestQueryBuilder:Zd.default,PostgrestFilterBuilder:eh.default,PostgrestTransformBuilder:th.default,PostgrestBuilder:nh.default,PostgrestError:rh.default};const{PostgrestClient:J0,PostgrestQueryBuilder:nv,PostgrestFilterBuilder:rv,PostgrestTransformBuilder:sv,PostgrestBuilder:iv,PostgrestError:ov}=G0;class Y0{static detectEnvironment(){var e;if(typeof WebSocket<"u")return{type:"native",constructor:WebSocket};if(typeof globalThis<"u"&&typeof globalThis.WebSocket<"u")return{type:"native",constructor:globalThis.WebSocket};if(typeof global<"u"&&typeof global.WebSocket<"u")return{type:"native",constructor:global.WebSocket};if(typeof globalThis<"u"&&typeof globalThis.WebSocketPair<"u"&&typeof globalThis.WebSocket>"u")return{type:"cloudflare",error:"Cloudflare Workers detected. WebSocket clients are not supported in Cloudflare Workers.",workaround:"Use Cloudflare Workers WebSocket API for server-side WebSocket handling, or deploy to a different runtime."};if(typeof globalThis<"u"&&globalThis.EdgeRuntime||typeof navigator<"u"&&(!((e=navigator.userAgent)===null||e===void 0)&&e.includes("Vercel-Edge")))return{type:"unsupported",error:"Edge runtime detected (Vercel Edge/Netlify Edge). WebSockets are not supported in edge functions.",workaround:"Use serverless functions or a different deployment target for WebSocket functionality."};if(typeof process<"u"){const n=process.versions;if(n&&n.node){const r=n.node,s=parseInt(r.replace(/^v/,"").split(".")[0]);return s>=22?typeof globalThis.WebSocket<"u"?{type:"native",constructor:globalThis.WebSocket}:{type:"unsupported",error:`Node.js ${s} detected but native WebSocket not found.`,workaround:"Provide a WebSocket implementation via the transport option."}:{type:"unsupported",error:`Node.js ${s} detected without native WebSocket support.`,workaround:`For Node.js < 22, install "ws" package and provide it via the transport option: 216import ws from "ws" 217new RealtimeClient(url, { transport: ws })`}}}return{type:"unsupported",error:"Unknown JavaScript runtime without WebSocket support.",workaround:"Ensure you're running in a supported environment (browser, Node.js, Deno) or provide a custom WebSocket implementation."}}static getWebSocketConstructor(){const e=this.detectEnvironment();if(e.constructor)return e.constructor;let n=e.error||"WebSocket not supported in this environment.";throw e.workaround&&(n+=` 218 219Suggested solution: ${e.workaround}`),new Error(n)}static createWebSocket(e,n){const r=this.getWebSocketConstructor();return new r(e,n)}static isWebSocketSupported(){try{const e=this.detectEnvironment();return e.type==="native"||e.type==="ws"}catch{return!1}}}const X0="2.15.5",Z0=`realtime-js/${X0}`,em="1.0.0",Ko=1e4,tm=1e3,nm=100;var hr;(function(t){t[t.connecting=0]="connecting",t[t.open=1]="open",t[t.closing=2]="closing",t[t.closed=3]="closed"})(hr||(hr={}));var X;(function(t){t.closed="closed",t.errored="errored",t.joined="joined",t.joining="joining",t.leaving="leaving"})(X||(X={}));var Fe;(function(t){t.close="phx_close",t.error="phx_error",t.join="phx_join",t.reply="phx_reply",t.leave="phx_leave",t.access_token="access_token"})(Fe||(Fe={}));var Qo;(function(t){t.websocket="websocket"})(Qo||(Qo={}));var Ft;(function(t){t.Connecting="connecting",t.Open="open",t.Closing="closing",t.Closed="closed"})(Ft||(Ft={}));class rm{constructor(){this.HEADER_LENGTH=1}decode(e,n){return e.constructor===ArrayBuffer?n(this._binaryDecode(e)):n(typeof e=="string"?JSON.parse(e):{})}_binaryDecode(e){const n=new DataView(e),r=new TextDecoder;return this._decodeBroadcast(e,n,r)}_decodeBroadcast(e,n,r){const s=n.getUint8(1),i=n.getUint8(2);let o=this.HEADER_LENGTH+2;const l=r.decode(e.slice(o,o+s));o=o+s;const a=r.decode(e.slice(o,o+i));o=o+i;const u=JSON.parse(r.decode(e.slice(o,e.byteLength)));return{ref:null,topic:l,event:a,payload:u}}}class sh{constructor(e,n){this.callback=e,this.timerCalc=n,this.timer=void 0,this.tries=0,this.callback=e,this.timerCalc=n}reset(){this.tries=0,clearTimeout(this.timer),this.timer=void 0}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries=this.tries+1,this.callback()},this.timerCalc(this.tries+1))}}var M;(function(t){t.abstime="abstime",t.bool="bool",t.date="date",t.daterange="daterange",t.float4="float4",t.float8="float8",t.int2="int2",t.int4="int4",t.int4range="int4range",t.int8="int8",t.int8range="int8range",t.json="json",t.jsonb="jsonb",t.money="money",t.numeric="numeric",t.oid="oid",t.reltime="reltime",t.text="text",t.time="time",t.timestamp="timestamp",t.timestamptz="timestamptz",t.timetz="timetz",t.t
vendor: 5,715 bytes, line 219
219srange="tsrange",t.tstzrange="tstzrange"})(M||(M={}));const mu=(t,e,n={})=>{var r;const s=(r=n.skipTypes)!==null&&r!==void 0?r:[];return Object.keys(e).reduce((i,o)=>(i[o]=sm(o,t,e,s),i),{})},sm=(t,e,n,r)=>{const s=e.find(l=>l.name===t),i=s==null?void 0:s.type,o=n[t];return i&&!r.includes(i)?ih(i,o):Go(o)},ih=(t,e)=>{if(t.charAt(0)==="_"){const n=t.slice(1,t.length);return am(e,n)}switch(t){case M.bool:return im(e);case M.float4:case M.float8:case M.int2:case M.int4:case M.int8:case M.numeric:case M.oid:return om(e);case M.json:case M.jsonb:return lm(e);case M.timestamp:return um(e);case M.abstime:case M.date:case M.daterange:case M.int4range:case M.int8range:case M.money:case M.reltime:case M.text:case M.time:case M.timestamptz:case M.timetz:case M.tsrange:case M.tstzrange:return Go(e);default:return Go(e)}},Go=t=>t,im=t=>{switch(t){case"t":return!0;case"f":return!1;default:return t}},om=t=>{if(typeof t=="string"){const e=parseFloat(t);if(!Number.isNaN(e))return e}return t},lm=t=>{if(typeof t=="string")try{return JSON.parse(t)}catch(e){return console.log(`JSON parse error: ${e}`),t}return t},am=(t,e)=>{if(typeof t!="string")return t;const n=t.length-1,r=t[n];if(t[0]==="{"&&r==="}"){let i;const o=t.slice(1,n);try{i=JSON.parse("["+o+"]")}catch{i=o?o.split(","):[]}return i.map(l=>ih(e,l))}return t},um=t=>typeof t=="string"?t.replace(" ","T"):t,oh=t=>{let e=t;return e=e.replace(/^ws/i,"http"),e=e.replace(/(\/socket\/websocket|\/socket|\/websocket)\/?$/i,""),e.replace(/\/+$/,"")+"/api/broadcast"};class Vi{constructor(e,n,r={},s=Ko){this.channel=e,this.event=n,this.payload=r,this.timeout=s,this.sent=!1,this.timeoutTimer=void 0,this.ref="",this.receivedResp=null,this.recHooks=[],this.refEvent=null}resend(e){this.timeout=e,this._cancelRefEvent(),this.ref="",this.refEvent=null,this.receivedResp=null,this.sent=!1,this.send()}send(){this._hasReceived("timeout")||(this.startTimeout(),this.sent=!0,this.channel.socket.push({topic:this.channel.topic,event:this.event,payload:this.payload,ref:this.ref,join_ref:this.channel._joinRef()}))}updatePayload(e){this.payload=Object.assign(Object.assign({},this.payload),e)}receive(e,n){var r;return this._hasReceived(e)&&n((r=this.receivedResp)===null||r===void 0?void 0:r.response),this.recHooks.push({status:e,callback:n}),this}startTimeout(){if(this.timeoutTimer)return;this.ref=this.channel.socket._makeRef(),this.refEvent=this.channel._replyEventName(this.ref);const e=n=>{this._cancelRefEvent(),this._cancelTimeout(),this.receivedResp=n,this._matchReceive(n)};this.channel._on(this.refEvent,{},e),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}trigger(e,n){this.refEvent&&this.channel._trigger(this.refEvent,{status:e,response:n})}destroy(){this._cancelRefEvent(),this._cancelTimeout()}_cancelRefEvent(){this.refEvent&&this.channel._off(this.refEvent,{})}_cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=void 0}_matchReceive({status:e,response:n}){this.recHooks.filter(r=>r.status===e).forEach(r=>r.callback(n))}_hasReceived(e){return this.receivedResp&&this.receivedResp.status===e}}var gu;(function(t){t.SYNC="sync",t.JOIN="join",t.LEAVE="leave"})(gu||(gu={}));class fr{constructor(e,n){this.channel=e,this.state={},this.pendingDiffs=[],this.joinRef=null,this.enabled=!1,this.caller={onJoin:()=>{},onLeave:()=>{},onSync:()=>{}};const r=(n==null?void 0:n.events)||{state:"presence_state",diff:"presence_diff"};this.channel._on(r.state,{},s=>{const{onJoin:i,onLeave:o,onSync:l}=this.caller;this.joinRef=this.channel._joinRef(),this.state=fr.syncState(this.state,s,i,o),this.pendingDiffs.forEach(a=>{this.state=fr.syncDiff(this.state,a,i,o)}),this.pendingDiffs=[],l()}),this.channel._on(r.diff,{},s=>{const{onJoin:i,onLeave:o,onSync:l}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(s):(this.state=fr.syncDiff(this.state,s,i,o),l())}),this.onJoin((s,i,o)=>{this.channel._trigger("presence",{event:"join",key:s,currentPresences:i,newPresences:o})}),this.onLeave((s,i,o)=>{this.channel._trigger("presence",{event:"leave",key:s,currentPresences:i,leftPresences:o})}),this.onSync(()=>{this.channel._trigger("presence",{event:"sync"})})}static syncState(e,n,r,s){const i=this.cloneDeep(e),o=this.transformState(n),l={},a={};return this.map(i,(u,c)=>{o[u]||(a[u]=c)}),this.map(o,(u,c)=>{const f=i[u];if(f){const m=c.map(j=>j.presence_ref),v=f.map(j=>j.presence_ref),w=c.filter(j=>v.indexOf(j.presence_ref)<0),_=f.filter(j=>m.indexOf(j.presence_ref)<0);w.length>0&&(l[u]=w),_.length>0&&(a[u]=_)}else l[u]=c}),this.syncDiff(i,{joins:l,leaves:a},r,s)}static syncDiff(e,n,r,s){const{joins:i,leaves:o}={joins:this.transformState(n.joins),leaves:this.transformState(n.leaves)};return r||(r=()=>{}),s||(s=()=>{}),this.map(i,(l,a)=>{var u;const c=(u=e[l])!==null&&u!==void 0?u:[];if(e[l]=this.cloneDeep(a),c.length>0){const f=e[l].map(v=>v.presence_ref),m=c.filter(v=>f.indexOf(v.presence_ref)<0);e[l].unshift(...m)}r(l,c,a)}),this.map(o,(l,a)=>{let u=e[l];if(!u)return;const c=a.map(f=>f.presence_ref);u=u.filter(f=>c.indexOf(f.presence_ref)<0),e[l]=u,s(l,u,a),u.length===0&&delete e[l]}),e}static map(e,n){return Object.getOwnPropertyNames(e).map(r=>n(r,e[r]))}static transformState(e){return e=this.cloneDeep(e),Object.getOwnPropertyNames(e).reduce((n,r)=>{const s=e[r];return"metas"in s?n[r]=s.metas.map(i=>(i.presence_ref=i.phx_ref,delete i.phx_ref,delete i.phx_ref_prev,i)):n[r]=s,n},{})}static cloneDeep(e){return JSON.parse(JSON.stringify(e))}onJoin(e){this.caller.onJoin=e}onLeave(e){this.caller.onLeave=e}onSync(e){this.caller.onSync=e}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel._joinRef()}}var vu;(function(t){t.ALL="*",t.INSERT="INSERT",t.UPDATE="UPDATE",t.DELET
219E="DELETE"})(vu||(vu={}));var pr;(function(t){t.BROADCAST="broadcast",t.PRESENCE="presence",t.POSTGRES_CHANGES="postgres_changes",t.SYSTEM="system"})(pr||(pr={}));var et;(function(t){t.SUBSCRIBED="SUBSCRIBED",t.TIMED_OUT="TIMED_OUT",t.CLOSED="CLOSED",t.CHANNEL_ERROR="CHANNEL_ERROR"})(et||(et={}));class Zl{constructor(e,n={config:{}},r){this.topic=e,this.params=n,this.socket=r,this.bindings={},this.state=X.closed,this.joinedOnce=!1,this.pushBuffer=[],this.subTopic=e.replace(/^realtime:/i,""),this.params.config=Object.assign({broadcast:{ack:!1,self:!1},presence:{key:"",enabled:!1},private:!1},n.config),this.timeout=this.socket.timeout,this.joinPush=new Vi(this,Fe.join,this.params,this.timeout),this.rejoinTimer=new sh(()=>this._rejoinUntilConnected(),this.socket.reconnectAfterMs),this.joinPush.receive("ok",()=>{this.state=X.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(s=>s.send()),this.pushBuffer=[]}),this._onClose(()=>{this.rejoinTimer.reset(),this.socket.log("channel",`close ${this.topic} ${this._joinRef()}`),this.state=X.closed,this.socket._remove(this)}),this._onError(s=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,s),this.state=X.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("timeout",()=>{this._isJoining()&&(this.socket.log("channel",`timeout ${this.topic}`,this.joinPush.timeout),this.state=X.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("error",s=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,s),this.state=X.errored,this.rejoinTimer.scheduleTimeout())}),this._on(Fe.reply,{},(s,i)=>{this._trigger(this._replyEventName(i),s)}),this.presence=new fr(this),this.broadcastEndpointURL=oh(this.socket.endPoint),this.private=this.params.config.private||!1}subscribe(e,n=this.timeout){var r,s,i;if(this.socket.isConnected()||this.socket.connect(),this.state==X.closed){const{config:{broadcast:o,presence:l,private:a}}=this.params,u=(s=(r=this.bindings.postgres_changes)===null||r===void 0?void 0:r.map(v=>v.filter))!==null&&s!==void 0?s:[],c=!!this.bindings[pr.PRESENCE]&&this.bindings[pr.PRESENCE].length>0||((i=this.params.config.presence)===null||i===void 0?void 0:i.enabled)===!0,f={},m={broadcast:o,presence:Object.assign(Object.assign({},l),{enabled:c}),postgres_changes:u,private:a};this.socket.accessTokenValue&&(f.access_token=this.socket.accessTokenValue),this._onError(v=>e==null?void 0:e(et.CHANNEL_ERROR,v)),this._onClose(()=>e==null?void 0:e(et.CLOSED)),this.updateJoinPayload(Object.assign({config:m},f)),this.joinedOnce=!0,this._rejoin(n),this.joinPush.receive("ok",async({postgres_changes:v})=>{var w;if(this.socket.setAuth(),v===void 0){e==null||e(et.SUBSCRIBED);return}else{const _=this.bindings.postgres_changes,j=(w=_==null?void 0:_.length)!==null&&w!==void 0?w:0,g=[];for(let h=0;h<j;h++){const p=_[h],{filter:{event:y,schema:S,table:k,filter:E}}=p,T=v&&v[h];if(T&&T.event===y&&T.schema===S&&T.table===k&&T.filter===E)g.push(Object.assign(Object.assign({},p),{id:T.id}));else{this.unsubscribe(),this.state=X.errored,e==null||e(et.CHANNEL_ERROR,new Error("mismatch between server and client bindings for postgres changes"));return}}this.bindings.postgres_changes=g,e&&e(et.SUBSCRIBED);return}}).receive("error",v=>{this.state=X.errored,e==null||e(et.CHANNEL_ERROR,new Error(JSON.stringify(Object.values(v).join(", ")||"error")))}).receive("timeout",()=>{e==null||e(et.TIMED_OUT)})}return this}presenceState(){return this.presence.state}async track(e,n={}){return await this.send({type:"presence",event:"track",payload:e},n.timeout||this.timeout)}async untrack(e={}){return await this.send({type:"presence",event:"untrack"},e)}on(e,n,r){return this.state===X.joined&&e===pr.PRESENCE&&(this.socket.log("channel",`resubscribe to ${this.topic} due to change in presence callbacks on joined channel`),this.unsubscribe().then(()=>this.subscribe())),this._on(e,n,r)}async send(e,n={}){var r,s;if(!this._canPush()&&e.type==="broadcast"){const{event:i,payload:o}=e,a={method:"POST",headers:{Authorization:this.socket.accessTokenValue?`Bearer ${this.socket.accessTokenValue}`:"",apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"},body:JSON.stringify({messages:[{topic:this.subTopic,event:i,payload:o,private:this.private}]})};try{const u=await this._fetchWithTimeout(this.broadcastEndpointURL,a,(r=n.timeout)!==null&&r!==void 0?r:this.timeout);return await((s=u.body)===null||s===void 0?void 0:s.cancel()),u.ok?"ok":"error"}catch(u){return u.name==="AbortError"?"timed out":"error"}}else return new Promise(i=>{var o,l,a;const u=this._push(e.type,e,n.timeout||this.timeout);e.type==="broadcast"&&!(!((a=(l=(o=this.params)===null||o===void 0?void 0:o.config)===null||l===void 0?void 0:l.broadcast)===null||a===void 0)&&a.ack)&&i("ok"),u.receive("ok",()=>i("ok")),u.receive("error",()=>i("error")),u.receive("timeout",()=>i("timed out"))})}updateJoinPayload(e){this.joinPush.updatePayload(e)}
219unsubscribe(e=this.timeout){this.state=X.leaving;const n=()=>{this.socket.log("channel",`leave ${this.topic}`),this._trigger(Fe.close,"leave",this._joinRef())};this.joinPush.destroy();let r=null;return new Promise(s=>{r=new Vi(this,Fe.leave,{},e),r.receive("ok",()=>{n(),s("ok")}).receive("timeout",()=>{n(),s("timed out")}).receive("error",()=>{s("error")}),r.send(),this._canPush()||r.trigger("ok",{})}).finally(()=>{r==null||r.destroy()})}teardown(){this.pushBuffer.forEach(e=>e.destroy()),this.pushBuffer=[],this.rejoinTimer.reset(),this.joinPush.destroy(),this.state=X.closed,this.bindings={}}async _fetchWithTimeout(e,n,r){const s=new AbortController,i=setTimeout(()=>s.abort(),r),o=await this.socket.fetch(e,Object.assign(Object.assign({},n),{signal:s.signal}));return clearTimeout(i),o}_push(e,n,r=this.timeout){if(!this.joinedOnce)throw`tried to push '${e}' to '${this.topic}' before joining. Use channel.subscribe() before pushing events`;let s=new Vi(this,e,n,r);return this._canPush()?s.send():this._addToPushBuffer(s),s}_addToPushBuffer(e){if(e.startTimeout(),this.pushBuffer.push(e),this.pushBuffer.length>nm){const n=this.pushBuffer.shift();n&&(n.destroy(),this.socket.log("channel",`discarded push due to buffer overflow: ${n.event}`,n.payload))}}_onMessage(e,n,r){return n}_isMember(e){return this.topic===e}_joinRef(){return this.joinPush.ref}_trigger(e,n,r){var s,i;const o=e.toLocaleLowerCase(),{close:l,error:a,leave:u,join:c}=Fe;if(r&&[l,a,u,c].indexOf(o)>=0&&r!==this._joinRef())return;let m=this._onMessage(o,n,r);if(n&&!m)throw"channel onMessage callbacks must return the payload, modified or unmodified";["insert","update","delete"].includes(o)?(s=this.bindings.postgres_changes)===null||s===void 0||s.filter(v=>{var w,_,j;return((w=v.filter)===null||w===void 0?void 0:w.event)==="*"||((j=(_=v.filter)===null||_===void 0?void 0:_.event)===null||j===void 0?void 0:j.toLocaleLowerCase())===o}).map(v=>v.callback(m,r)):(i=this.bindings[o])===null||i===void 0||i.filter(v=>{var w,_,j,g,h,p;if(["broadcast","presence","postgres_changes"].includes(o))if("id"in v){const y=v.id,S=(w=v.filter)===null||w===void 0?void 0:w.event;return y&&((_=n.ids)===null||_===void 0?void 0:_.includes(y))&&(S==="*"||(S==null?void 0:S.toLocaleLowerCase())===((j=n.data)===null||j===void 0?void 0:j.type.toLocaleLowerCase()))}else{const y=(h=(g=v==null?void 0:v.filter)===null||g===void 0?void 0:g.event)===null||h===void 0?void 0:h.toLocaleLowerCase();return y==="*"||y===((p=n==null?void 0:n.event)===null||p===void 0?void 0:p.toLocaleLowerCase())}else return v.type.toLocaleLowerCase()===o}).map(v=>{if(typeof m=="object"&&"ids"in m){const w=m.data,{schema:_,table:j,commit_timestamp:g,type:h,errors:p}=w;m=Object.assign(Object.assign({},{schema:_,table:j,commit_timestamp:g,eventType:h,new:{},old:{},errors:p}),this._getPayloadRecords(w))}v.callback(m,r)})}_isClosed(){return this.state===X.closed}_isJoined(){return this.state===X.joined}_isJoining(){return this.state===X.joining}_isLeaving(){return this.state===X.leaving}_replyEventName(e){return`chan_reply_${e}`}_on(e,n,r){const s=e.toLocaleLowerCase(),i={type:s,filter:n,callback:r};return this.bindings[s]?this.bindings[s].push(i):this.bindings[s]=[i],this}_off(e,n){const r=e.toLocaleLowerCase();return this.bindings[r]&&(this.bindings[r]=this.bindings[r].filter(s=>{var i;return!(((i=s.type)===null||i===void 0?void 0:i.toLocaleLowerCase())===r&&Zl.isEqual(s.filter,n))})),this}static isEqual(e,n){if(Object.keys(e).length!==Object.keys(n).length)return!1;for(const r in e)if(e[r]!==n[r])return!1;return!0}_rejoinUntilConnected(){this.rejoinTimer.scheduleTimeout(),this.socket.isConnected()&&this._rejoin()}_onClose(e){this._on(Fe.close,{},e)}_onError(e){this._on(Fe.error,{},n=>e(n))}_canPush(){return this.socket.isConnected()&&this._isJoined()}_rejoin(e=this.timeout){this._isLeaving()||(this.socket._leaveOpenTopic(this.topic),this.state=X.joining,this.joinPush.resend(e))}_getPayloadRecords(e){const n={new:{},old:{}};return(e.type==="INSERT"||e.type==="UPDATE")&&(n.new=mu(e.columns,e.record)),(e.type==="UPDATE"||e.type==="DELETE")&&(n.old=mu(e.columns,e.old_record)),n}}const qi=()=>{},ls={HEARTBEAT_INTERVAL:25e3,RECONNECT_DELAY:10,HEARTBEAT_TIMEOUT_FALLBACK:100},cm=[1e3,2e3,5e3,1e4],dm=1e4,hm=` 220 addEventListener("message", (e) => { 221 if (e.data.event === "start") { 222 setInterval(() => postMessage({ event: "keepAlive" }), e.data.interval); 223 } 224 });`;class fm{constructor(e,n){var r;if(this.accessTokenValue=null,this.apiKey=null,this.channels=new Array,this.endPoint="",this.httpEndpoint="",this.headers={},this.params={},this.timeout=Ko,this.transport=null,this.heartbeatIntervalMs=ls.HEARTBEAT_INTERVAL,this.heartbeatTimer=void 0,this.pendingHeartbeatRef=null,this.heartbeatCallback=qi,this.ref=0,this.reconnectTimer=null,this.logger=qi,this.conn=null,this.sendBuffer=[],this.serializer
224=new rm,this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.accessToken=null,this._connectionState="disconnected",this._wasManualDisconnect=!1,this._authPromise=null,this._resolveFetch=s=>{let i;return s?i=s:typeof fetch>"u"?i=(...o)=>Mr(async()=>{const{default:l}=await Promise.resolve().then(()=>Dn);return{default:l}},void 0).then(({default:l})=>l(...o)).catch(l=>{throw new Error(`Failed to load @supabase/node-fetch: ${l.message}. This is required for HTTP requests in Node.js environments without native fetch.`)}):i=fetch,(...o)=>i(...o)},!(!((r=n==null?void 0:n.params)===null||r===void 0)&&r.apikey))throw new Error("API key is required to connect to Realtime");this.apiKey=n.params.apikey,this.endPoint=`${e}/${Qo.websocket}`,this.httpEndpoint=oh(e),this._initializeOptions(n),this._setupReconnectionTimer(),this.fetch=this._resolveFetch(n==null?void 0:n.fetch)}connect(){if(!(this.isConnecting()||this.isDisconnecting()||this.conn!==null&&this.isConnected())){if(this._setConnectionState("connecting"),this._setAuthSafely("connect"),this.transport)this.conn=new this.transport(this.endpointURL());else try{this.conn=Y0.createWebSocket(this.endpointURL())}catch(e){this._setConnectionState("disconnected");const n=e.message;throw n.includes("Node.js")?new Error(`${n} 225 226To use Realtime in Node.js, you need to provide a WebSocket implementation: 227 228Option 1: Use Node.js 22+ which has native WebSocket support 229Option 2: Install and provide the "ws" package: 230 231 npm install ws 232 233 import ws from "ws" 234 const client = new RealtimeClient(url, { 235 ...options, 236 transport: ws 237 })`):new Error(`WebSocket not available: ${n}`)}this._setupConnectionHandlers()}}endpointURL(){return this._appendParams(this.endPoint,Object.assign({},this.params,{vsn:em}))}disconnect(e,n){if(!this.isDisconnecting())if(this._setConnectionState("disconnecting",!0),this.conn){const r=setTimeout(()=>{this._setConnectionState("disconnected")},100);this.conn.onclose=()=>{clearTimeout(r),this._setConnectionState("disconnected")},e?this.conn.close(e,n??""):this.conn.close(),this._teardownConnection()}else this._setConnectionState("disconnected")}getChannels(){return this.channels}async removeChannel(e){const n=await e.unsubscribe();return this.channels.length===0&&this.disconnect(),n}async removeAllChannels(){const e=await Promise.all(this.channels.map(n=>n.unsubscribe()));return this.channels=[],this.disconnect(),e}log(e,n,r){this.logger(e,n,r)}connectionState(){switch(this.conn&&this.conn.readyState){case hr.connecting:return Ft.Connecting;case hr.open:return Ft.Open;case hr.closing:return Ft.Closing;default:return Ft.Closed}}isConnected(){return this.connectionState()===Ft.Open}isConnecting(){return this._connectionState==="connecting"}isDisconnecting(){return this._connectionState==="disconnecting"}channel(e,n={config:{}}){const r=`realtime:${e}`,s=this.getChannels().find(i=>i.topic===r);if(s)return s;{const i=new Zl(`realtime:${e}`,n,this);return this.channels.push(i),i}}push(e){const{topic:n,event:r,payload:s,ref:i}=e,o=()=>{this.encode(e,l=>{var a;(a=this.conn)===null||a===void 0||a.send(l)})};this.log("push",`${n} ${r} (${i})`,s),this.isConnected()?o():this.sendBuffer.push(o)}async setAuth(e=null){this._authPromise=this._performAuth(e);try{await this._authPromise}finally{this._authPromise=null}}async sendHeartbeat(){var e;if(!this.isConnected()){try{this.heartbeatCallback("disconnected")}catch(n){this.log("error","error in heartbeat callback",n)}return}if(this.pendingHeartbeatRef){this.pendingHeartbeatRef=null,this.log("transport","heartbeat timeout. Attempting to re-establish connection");try{this.heartbeatCallback("timeout")}catch(n){this.log("error","error in heartbeat callback",n)}this._wasManualDisconnect=!1,(e=this.conn)===null||e===void 0||e.close(tm,"heartbeat timeout"),setTimeout(()=>{var n;this.isConnected()||(n=this.reconnectTimer)===null||n===void 0||n.scheduleTimeout()},ls.HEARTBEAT_TIMEOUT_FALLBACK);return}this.pendingHeartbeatRef=this._makeRef(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef});try{this.heartbeatCallback("sent")}catch(n){this.log("error","error in heartbeat callback",n)}this._setAuthSafely("heartbeat")}onHeartbeat(e){this.heartbeatCallback=e}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>
2370&&(this.sendBuffer.forEach(e=>e()),this.sendBuffer=[])}_makeRef(){let e=this.ref+1;return e===this.ref?this.ref=0:this.ref=e,this.ref.toString()}_leaveOpenTopic(e){let n=this.channels.find(r=>r.topic===e&&(r._isJoined()||r._isJoining()));n&&(this.log("transport",`leaving duplicate topic "${e}"`),n.unsubscribe())}_remove(e){this.channels=this.channels.filter(n=>n.topic!==e.topic)}_onConnMessage(e){this.decode(e.data,n=>{if(n.topic==="phoenix"&&n.event==="phx_reply")try{this.heartbeatCallback(n.payload.status==="ok"?"ok":"error")}catch(u){this.log("error","error in heartbeat callback",u)}n.ref&&n.ref===this.pendingHeartbeatRef&&(this.pendingHeartbeatRef=null);const{topic:r,event:s,payload:i,ref:o}=n,l=o?`(${o})`:"",a=i.status||"";this.log("receive",`${a} ${r} ${s} ${l}`.trim(),i),this.channels.filter(u=>u._isMember(r)).forEach(u=>u._trigger(s,i,o)),this._triggerStateCallbacks("message",n)})}_clearTimer(e){var n;e==="heartbeat"&&this.heartbeatTimer?(clearInterval(this.heartbeatTimer),this.heartbeatTimer=void 0):e==="reconnect"&&((n=this.reconnectTimer)===null||n===void 0||n.reset())}_clearAllTimers(){this._clearTimer("heartbeat"),this._clearTimer("reconnect")}_setupConnectionHandlers(){this.conn&&("binaryType"in this.conn&&(this.conn.binaryType="arraybuffer"),this.conn.onopen=()=>this._onConnOpen(),this.conn.onerror=e=>this._onConnError(e),this.conn.onmessage=e=>this._onConnMessage(e),this.conn.onclose=e=>this._onConnClose(e))}_teardownConnection(){this.conn&&(this.conn.onopen=null,this.conn.onerror=null,this.conn.onmessage=null,this.conn.onclose=null,this.conn=null),this._clearAllTimers(),this.channels.forEach(e=>e.teardown())}_onConnOpen(){this._setConnectionState("connected"),this.log("transport",`connected to ${this.endpointURL()}`),this.flushSendBuffer(),this._clearTimer("reconnect"),this.worker?this.workerRef||this._startWorkerHeartbeat():this._startHeartbeat(),this._triggerStateCallbacks("open")}_startHeartbeat(){this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.heartbeatTimer=setInterval(()=>this.sendHeartbeat(),this.heartbeatIntervalMs)}_startWorkerHeartbeat(){this.workerUrl?this.log("worker",`starting worker for from ${this.workerUrl}`):this.log("worker","starting default worker");const e=this._workerObjectUrl(this.workerUrl);this.workerRef=new Worker(e),this.workerRef.onerror=n=>{this.log("worker","worker error",n.message),this.workerRef.terminate()},this.workerRef.onmessage=n=>{n.data.event==="keepAlive"&&this.sendHeartbeat()},this.workerRef.postMessage({event:"start",interval:this.heartbeatIntervalMs})}_onConnClose(e){var n;this._setConnectionState("disconnected"),this.log("transport","close",e),this._triggerChanError(),this._clearTimer("heartbeat"),this._wasManualDisconnect||(n=this.reconnectTimer)===null||n===void 0||n.scheduleTimeout(),this._triggerStateCallbacks("close",e)}_onConnError(e){this._setConnectionState("disconnected"),this.log("transport",`${e}`),this._triggerChanError(),this._triggerStateCallbacks("error",e)}_triggerChanError(){this.channels.forEach(e=>e._trigger(Fe.error))}_appendParams(e,n){if(Object.keys(n).length===0)return e;const r=e.match(/\?/)?"&":"?",s=new URLSearchParams(n);return`${e}${r}${s}`}_workerObjectUrl(e){let n;if(e)n=e;else{const r=new Blob([hm],{type:"application/javascript"});n=URL.createObjectURL(r)}return n}_setConnectionState(e,n=!1){this._connectionState=e,e==="connecting"?this._wasManualDisconnect=!1:e==="disconnecting"&&(this._wasManualDisconnect=n)}async _performAuth(e=null){let n;e?n=e:this.accessToken?n=await this.accessToken():n=this.accessTokenValue,this.accessTokenValue!=n&&(this.accessTokenValue=n,this.channels.forEach(r=>{const s={access_token:n,version:Z0};n&&r.updateJoinPayload(s),r.joinedOnce&&r._isJoined()&&r._push(Fe.access_token,{access_token:n})}))}async _waitForAuthIfNeeded(){this._authPromise&&await this._authPromise}_setAuthSafely(e="general"){this.setAuth().catch(n=>{this.log("error",`error setting auth in ${e}`,n)})}_triggerStateCallbacks(e,n){try{this.stateChangeCallbacks[e].forEach(r=>{try{r(n)}catch(s){this.log("error",`error in ${e} callback`,s)}})}catch(r){this.log("error",`error triggering ${e} callbacks`,r)}}_setupReconnectionTimer(){this.reconnectTimer=new sh(async()=>{setTimeout(async()=>{await this._waitForAuthIfNeeded(),this.isConnected()||this.connect()},ls.RECONNECT_DELAY)},this.reconnectAfterMs)}_initializeOptions(e){var n,r,s,i,o,l,a,u,c;if(this.transport=(n=e==null?void 0:e.transport)!==null&&n!==void 0?n:null,this.timeout=(r=e==null?void 0:e.timeout)!==null&&r!==void 0?r:Ko,this.heartbeatIntervalMs=(s=e==null?void 0:e.heartbeatIntervalMs)!==null&&s!==void 0?s:ls.HEARTBEAT_INTERVAL,this.worker=(i=e==null?void 0:e.worker)!==null&&i!==void 0?i:!1,this.accessToken=(o=e==null?void 0:e.accessToken)!==null&&o!==void 0?o:null,this.heartbeatCallback=(l=e==null?void 0:e.heartbeatCallback)!==null&&l!==void 0?l:qi,e!=null&&e.params&&(this.params=e.params),e!=null&&e.logger&&(this.logger=e.logger),(e!=null&&e.logLevel||e!=null&&e.log_level)&&(this.logLevel=e.logLevel||e.log_level,this.params=Object.assign(Object.assign({},this.params),{log_level:this.logLevel})),this.reconnectAfterMs=(a=e==null?void 0:e.reconnectAfterMs)!==null&&a!==void 0?a:f=>cm[f-1]||dm,this.encode=(u=e==null?void 0:e.encode)!==null&&u!==void 0?u:(f,m)=>m(JSON.stringify(f)),this.decode=(c=e==null?void 0:e.decode)!==null&&c!==void 0?c:this.serializer.decode.bind(this.serializer),this.worker){if(typeof window<"u"&&!window.Worker)throw new Error("Web Worker is not supported");this.workerUrl=e==null?void 0:e.workerUrl}}}
237class ea extends Error{constructor(e){super(e),this.__isStorageError=!0,this.name="StorageError"}}function Z(t){return typeof t=="object"&&t!==null&&"__isStorageError"in t}class pm extends ea{constructor(e,n,r){super(e),this.name="StorageApiError",this.status=n,this.statusCode=r}toJSON(){return{name:this.name,message:this.message,status:this.status,statusCode:this.statusCode}}}class Jo extends ea{constructor(e,n){super(e),this.name="StorageUnknownError",this.originalError=n}}var mm=function(t,e,n,r){function s(i){return i instanceof n?i:new n(function(o){o(i)})}return new(n||(n=Promise))(function(i,o){function l(c){try{u(r.next(c))}catch(f){o(f)}}function a(c){try{u(r.throw(c))}catch(f){o(f)}}function u(c){c.done?i(c.value):s(c.value).then(l,a)}u((r=r.apply(t,e||[])).next())})};const lh=t=>{let e;return t?e=t:typeof fetch>"u"?e=(...n)=>Mr(async()=>{const{default:r}=await Promise.resolve().then(()=>Dn);return{default:r}},void 0).then(({default:r})=>r(...n)):e=fetch,(...n)=>e(...n)},gm=()=>mm(void 0,void 0,void 0,function*(){return typeof Response>"u"?(yield Mr(()=>Promise.resolve().then(()=>Dn),void 0)).Response:Response}),Yo=t=>{if(Array.isArray(t))return t.map(n=>Yo(n));if(typeof t=="function"||t!==Object(t))return t;const e={};return Object.entries(t).forEach(([n,r])=>{const s=n.replace(/([-_][a-z])/gi,i=>i.toUpperCase().replace(/[-_]/g,""));e[s]=Yo(r)}),e},vm=t=>{if(typeof t!="object"||t===null)return!1;const e=Object.getPrototypeOf(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)};var en=function(t,e,n,r){function s(i){return i instanceof n?i:new n(function(o){o(i)})}return new(n||(n=Promise))(function(i,o){function l(c){try{u(r.next(c))}catch(f){o(f)}}function a(c){try{u(r.throw(c))}catch(f){o(f)}}function u(c){c.done?i(c.value):s(c.value).then(l,a)}u((r=r.apply(t,e||[])).next())})};const Ki=t=>t.msg||t.message||t.error_description||t.error||JSON.stringify(t),ym=(t,e,n)=>en(void 0,void 0,void 0,function*(){const r=yield gm();t instanceof r&&!(n!=null&&n.noResolveJson)?t.json().then(s=>{const i=t.status||500,o=(s==null?void 0:s.statusCode)||i+"";e(new pm(Ki(s),i,o))}).catch(s=>{e(new Jo(Ki(s),s))}):e(new Jo(Ki(t),t))}),wm=(t,e,n,r)=>{const s={method:t,headers:(e==null?void 0:e.headers)||{}};return t==="GET"||!r?s:(vm(r)?(s.headers=Object.assign({"Content-Type":"application/json"},e==null?void 0:e.headers),s.body=JSON.stringify(r)):s.body=r,e!=null&&e.duplex&&(s.duplex=e.duplex),Object.assign(Object.assign({},s),n))};function zr(t,e,n,r,s,i){return en(this,void 0,void 0,function*(){return new Promise((o,l)=>{t(n,wm(e,r,s,i)).then(a=>{if(!a.ok)throw a;return r!=null&&r.noResolveJson?a:a.json()}).then(a=>o(a)).catch(a=>ym(a,l,r))})})}function Ks(t,e,n,r){return en(this,void 0,void 0,function*(){return zr(t,"GET",e,n,r)})}function Qe(t,e,n,r,s){return en(this,void 0,void 0,function*(){return zr(t,"POST",e,r,s,n)})}function Xo(t,e,n,r,s){return en(this,void 0,void 0,function*(){return zr(t,"PUT",e,r,s,n)})}function _m(t,e,n,r){return en(this,void 0,void 0,function*(){return zr(t,"HEAD",e,Object.assign(Object.assign({},n),{noResolveJson:!0}),r)})}function ah(t,e,n,r,s){return en(this,void 0,void 0,function*(){return zr(t,"DELETE",e,r,s,n)})}var he=function(t,e,n,r){function s(i){return i instanceof n?i:new n(function(o){o(i)})}return new(n||(n=Promise))(function(i,o){function l(c){try{u(r.next(c))}catch(f){o(f)}}function a(c){try{u(r.throw(c))}catch(f){o(f)}}function u(c){c.done?i(c.value):s(c.value).then(l,a)}u((r=r.apply(t,e||[])).next())})};const xm={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},yu={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};class km{constructor(e,n={},r,s){this.shouldThrowOnError=!1,this.url=e,this.headers=n,this.bucketId=r,this.fetch=lh(s)}throwOnError(){return this.shouldThrowOnError=!0,this}uploadOrUpdate(e,n,r,s){return he(this,void 0,void 0,function*(){try{let i;const o=Object.assign(Object.assign({},yu),s);let l=Object.assign(Object.assign({},this.headers),e==="POST"&&{"x-upsert":String(o.upsert)});const a=o.metadata;typeof Blob<"u"&&r instanceof Blob?(i=new FormData,i.append("cacheControl",o.cacheControl),a&&i.append("metadata",this.encodeMetadata(a)),i.append("",r)):typeof FormData<"u"&&r instanceof FormData?(i=r,i.append("cacheControl",o.cacheControl),a&&i.append("metadata",this.encodeMetadata(a))):(i=r,l["cache-control"]=`max-age=${o.cacheControl}`,l["content-type"]=o.contentType,a&&(l["x-metadata"]=this.toBase64(this.encodeMetadata(a)))),s!=null&&s.headers&&(l=Object.assign(Object.assign({},l),s.headers));const u=this._removeEmptyFolders(n),c=this._getFinalPath(u),f=yield(e=="PUT"?Xo:Qe)(this.fetch,`${this.url}/object/${c}`,i,Object.assign({headers:l},o!=null&&o.duplex?{duplex:o.duplex}:{}));return{data:{path:u,id:f.Id,fullPath:f.Key},error:null}}catch(i){if(this.shouldThrowOnError)throw i;if(Z(i))return{data:null,error:i};throw i}})}upload(e,n,r){return he(this,void 0,void 0,function*(){return this.uploadOrUpdate("POST",e,n,r)})}uploadToSignedUrl(e,n,r,s){return he(this,void 0,void 0,function*(){const i=this._removeEmptyFolders(e),o=this._getFinalPath(i),l=new URL(this.url+`/object/upload/sign/${o}`);l.searchParams.set("token",n);try{let a;const u=Object.assign({upsert:yu.upsert},s),c=Object.assign(Object.assign({},this.headers),{"x-upsert":String(u.upsert)});typeof Blob<"u"&&r instanceof Blob?(a=new FormData,a.append("cacheControl",u.cacheControl),a.append("",r)):typeof FormData<"u"&&r instanceof FormData?(a=r,a.append("cacheControl",u.cacheControl)):(a=r,c["cac
237he-control"]=`max-age=${u.cacheControl}`,c["content-type"]=u.contentType);const f=yield Xo(this.fetch,l.toString(),a,{headers:c});return{data:{path:i,fullPath:f.Key},error:null}}catch(a){if(this.shouldThrowOnError)throw a;if(Z(a))return{data:null,error:a};throw a}})}createSignedUploadUrl(e,n){return he(this,void 0,void 0,function*(){try{let r=this._getFinalPath(e);const s=Object.assign({},this.headers);n!=null&&n.upsert&&(s["x-upsert"]="true");const i=yield Qe(this.fetch,`${this.url}/object/upload/sign/${r}`,{},{headers:s}),o=new URL(this.url+i.url),l=o.searchParams.get("token");if(!l)throw new ea("No token returned by API");return{data:{signedUrl:o.toString(),path:e,token:l},error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(Z(r))return{data:null,error:r};throw r}})}update(e,n,r){return he(this,void 0,void 0,function*(){return this.uploadOrUpdate("PUT",e,n,r)})}move(e,n,r){return he(this,void 0,void 0,function*(){try{return{data:yield Qe(this.fetch,`${this.url}/object/move`,{bucketId:this.bucketId,sourceKey:e,destinationKey:n,destinationBucket:r==null?void 0:r.destinationBucket},{headers:this.headers}),error:null}}catch(s){if(this.shouldThrowOnError)throw s;if(Z(s))return{data:null,error:s};throw s}})}copy(e,n,r){return he(this,void 0,void 0,function*(){try{return{data:{path:(yield Qe(this.fetch,`${this.url}/object/copy`,{bucketId:this.bucketId,sourceKey:e,destinationKey:n,destinationBucket:r==null?void 0:r.destinationBucket},{headers:this.headers})).Key},error:null}}catch(s){if(this.shouldThrowOnError)throw s;if(Z(s))return{data:null,error:s};throw s}})}createSignedUrl(e,n,r){return he(this,void 0,void 0,function*(){try{let s=this._getFinalPath(e),i=yield Qe(this.fetch,`${this.url}/object/sign/${s}`,Object.assign({expiresIn:n},r!=null&&r.transform?{transform:r.transform}:{}),{headers:this.headers});const o=r!=null&&r.download?`&download=${r.download===!0?"":r.download}`:"";return i={signedUrl:encodeURI(`${this.url}${i.signedURL}${o}`)},{data:i,error:null}}catch(s){if(this.shouldThrowOnError)throw s;if(Z(s))return{data:null,error:s};throw s}})}createSignedUrls(e,n,r){return he(this,void 0,void 0,function*(){try{const s=yield Qe(this.fetch,`${this.url}/object/sign/${this.bucketId}`,{expiresIn:n,paths:e},{headers:this.headers}),i=r!=null&&r.download?`&download=${r.download===!0?"":r.download}`:"";return{data:s.map(o=>Object.assign(Object.assign({},o),{signedUrl:o.signedURL?encodeURI(`${this.url}${o.signedURL}${i}`):null})),error:null}}catch(s){if(this.shouldThrowOnError)throw s;if(Z(s))return{data:null,error:s};throw s}})}download(e,n){return he(this,void 0,void 0,function*(){const s=typeof(n==null?void 0:n.transform)<"u"?"render/image/authenticated":"object",i=this.transformOptsToQueryString((n==null?void 0:n.transform)||{}),o=i?`?${i}`:"";try{const l=this._getFinalPath(e);return{data:yield(yield Ks(this.fetch,`${this.url}/${s}/${l}${o}`,{headers:this.headers,noResolveJson:!0})).blob(),error:null}}catch(l){if(this.shouldThrowOnError)throw l;if(Z(l))return{data:null,error:l};throw l}})}info(e){return he(this,void 0,void 0,function*(){const n=this._getFinalPath(e);try{const r=yield Ks(this.fetch,`${this.url}/object/info/${n}`,{headers:this.headers});return{data:Yo(r),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(Z(r))return{data:null,error:r};throw r}})}exists(e){return he(this,void 0,void 0,function*(){const n=this._getFinalPath(e);try{return yield _m(this.fetch,`${this.url}/object/${n}`,{headers:this.headers}),{data:!0,error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(Z(r)&&r instanceof Jo){const s=r.originalError;if([400,404].includes(s==null?void 0:s.status))return{data:!1,error:r}}throw r}})}getPublicUrl(e,n){const r=this._getFinalPath(e),s=[],i=n!=null&&n.download?`download=${n.download===!0?"":n.download}`:"";i!==""&&s.push(i);const l=typeof(n==null?void 0:n.transform)<"u"?"render/image":"object",a=this.transformOptsToQueryString((n==null?void 0:n.transform)||{});a!==""&&s.push(a);let u=s.join("&");return u!==""&&(u=`?${u}`),{data:{publicUrl:encodeURI(`${this.url}/${l}/public/${r}${u}`)}}}remove(e){return he(this,void 0,void 0,function*(){try{return{data:yield ah(this.fetch,`${this.url}/object/${this.bucketId}`,{prefixes:e},{headers:this.headers}),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(Z(n))return{data:null,error:n};throw n}})}list(e,n,r){return he(this,void 0,void 0,function*(){try{const s=Object.assign(Object.assign(Object.assign({},xm),n),{prefix:e||""});return{data:yield Qe(this.fetch,`${this.url}/object/list/${this.bucketId}`,s,{headers:this.headers},r),error:null}}catch(s){if(this.shouldThrowOnError)throw s;if(Z(s))return{data:null,error:s};throw s}})}listV2(e,n){return he(this,void 0,void 0,function*(){try{const r=Object.assign({},e);return{data:yield Qe(this.fetch,`${this.url}/object/list-v2/${this.bucketId}`,r,{headers:this.headers},n),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(Z(r))return{data:null,error:r};throw r}})}encodeMetadata(e){return JSON.stringify(e)}toBase64(e){return typeof Buffer<"u"?Buffer.from(e).toString("base64"):btoa(e)}_getFinalPath(e){return`${this.bucketId}/${e.replace(/^\/+/,"")}`}_removeEmptyFolders(e){return e.replace(/^\/|\/$/g,"").replace(/\/+/g,"/")}transformOptsToQueryString(e){const n=[];return e.width&&n.push(`width=${e.width}`),e.height&&n.push(`height=${e.height}`),e.resize&&n.push(`resize=${e.resize}`),e.format&&n.push(`format=${e.format}`),e.quality&&n.push(`quality=${e.quality}`),n.join("&")}}const Sm="2.12.1",Em={"X-Client-Info":`storage-js/${Sm}`};var nn=function(t,e,n,r){function s(i){return i instanceof n?i:new n(function(o){o(i)})}
237return new(n||(n=Promise))(function(i,o){function l(c){try{u(r.next(c))}catch(f){o(f)}}function a(c){try{u(r.throw(c))}catch(f){o(f)}}function u(c){c.done?i(c.value):s(c.value).then(l,a)}u((r=r.apply(t,e||[])).next())})};class jm{constructor(e,n={},r,s){this.shouldThrowOnError=!1;const i=new URL(e);s!=null&&s.useNewHostname&&/supabase\.(co|in|red)$/.test(i.hostname)&&!i.hostname.includes("storage.supabase.")&&(i.hostname=i.hostname.replace("supabase.","storage.supabase.")),this.url=i.href,this.headers=Object.assign(Object.assign({},Em),n),this.fetch=lh(r)}throwOnError(){return this.shouldThrowOnError=!0,this}listBuckets(){return nn(this,void 0,void 0,function*(){try{return{data:yield Ks(this.fetch,`${this.url}/bucket`,{headers:this.headers}),error:null}}catch(e){if(this.shouldThrowOnError)throw e;if(Z(e))return{data:null,error:e};throw e}})}getBucket(e){return nn(this,void 0,void 0,function*(){try{return{data:yield Ks(this.fetch,`${this.url}/bucket/${e}`,{headers:this.headers}),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(Z(n))return{data:null,error:n};throw n}})}createBucket(e,n={public:!1}){return nn(this,void 0,void 0,function*(){try{return{data:yield Qe(this.fetch,`${this.url}/bucket`,{id:e,name:e,type:n.type,public:n.public,file_size_limit:n.fileSizeLimit,allowed_mime_types:n.allowedMimeTypes},{headers:this.headers}),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(Z(r))return{data:null,error:r};throw r}})}updateBucket(e,n){return nn(this,void 0,void 0,function*(){try{return{data:yield Xo(this.fetch,`${this.url}/bucket/${e}`,{id:e,name:e,public:n.public,file_size_limit:n.fileSizeLimit,allowed_mime_types:n.allowedMimeTypes},{headers:this.headers}),error:null}}catch(r){if(this.shouldThrowOnError)throw r;if(Z(r))return{data:null,error:r};throw r}})}emptyBucket(e){return nn(this,void 0,void 0,function*(){try{return{data:yield Qe(this.fetch,`${this.url}/bucket/${e}/empty`,{},{headers:this.headers}),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(Z(n))return{data:null,error:n};throw n}})}deleteBucket(e){return nn(this,void 0,void 0,function*(){try{return{data:yield ah(this.fetch,`${this.url}/bucket/${e}`,{},{headers:this.headers}),error:null}}catch(n){if(this.shouldThrowOnError)throw n;if(Z(n))return{data:null,error:n};throw n}})}}class Cm extends jm{constructor(e,n={},r,s){super(e,n,r,s)}from(e){return new km(this.url,this.headers,e,this.fetch)}}const bm="2.57.4";let nr="";typeof Deno<"u"?nr="deno":typeof document<"u"?nr="web":typeof navigator<"u"&&navigator.product==="ReactNative"?nr="react-native":nr="node";const Tm={"X-Client-Info":`supabase-js-${nr}/${bm}`},Nm={headers:Tm},Pm={schema:"public"},Om={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},Rm={};var Am=function(t,e,n,r){function s(i){return i instanceof n?i:new n(function(o){o(i)})}return new(n||(n=Promise))(function(i,o){function l(c){try{u(r.next(c))}catch(f){o(f)}}function a(c){try{u(r.throw(c))}catch(f){o(f)}}function u(c){c.done?i(c.value):s(c.value).then(l,a)}u((r=r.apply(t,e||[])).next())})};const Lm=t=>{let e;return t?e=t:typeof fetch>"u"?e=Kd:e=fetch,(...n)=>e(...n)},Im=()=>typeof Headers>"u"?Qd:Headers,$m=(t,e,n)=>{const r=Lm(n),s=Im();return(i,o)=>Am(void 0,void 0,void 0,function*(){var l;const a=(l=yield e())!==null&&l!==void 0?l:t;let u=new s(o==null?void 0:o.headers);return u.has("apikey")||u.set("apikey",t),u.has("Authorization")||u.set("Authorization",`Bearer ${a}`),r(i,Object.assign(Object.assign({},o),{headers:u}))})};var Um=function(t,e,n,r){function s(i){return i instanceof n?i:new n(function(o){o(i)})}return new(n||(n=Promise))(function(i,o){function l(c){try{u(r.next(c))}catch(f){o(f)}}function a(c){try{u(r.throw(c))}catch(f){o(f)}}function u(c){c.done?i(c.value):s(c.value).then(l,a)}u((r=r.apply(t,e||[])).next())})};function Mm(t){return t.endsWith("/")?t:t+"/"}function Dm(t,e){var n,r;const{db:s,auth:i,realtime:o,global:l}=t,{db:a,auth:u,realtime:c,global:f}=e,m={db:Object.assign(Object.assign({},a),s),auth:Object.assign(Object.assign({},u),i),realtime:Object.assign(Object.assign({},c),o),storage:{},global:Object.assign(Object.assign(Object.assign({},f),l),{headers:Object.assign(Object.assign({},(n=f==null?void 0:f.headers)!==null&&n!==void 0?n:{}),(r=l==null?void 0:l.headers)!==null&&r!==void 0?r:{})}),accessToken:()=>Um(this,void 0,void 0,function*(){return""})};return t.accessToken?m.accessToken=t.accessToken:delete m.accessToken,m}function zm(t){const e=t==null?void 0:t.trim();if(!e)throw new Error("supabaseUrl is required.");
237if(!e.match(/^https?:\/\//i))throw new Error("Invalid supabaseUrl: Must be a valid HTTP or HTTPS URL.");try{return new URL(Mm(e))}catch{throw Error("Invalid supabaseUrl: Provided URL is malformed.")}}const uh="2.71.1",an=30*1e3,Zo=3,Qi=Zo*an,Fm="http://localhost:9999",Bm="supabase.auth.token",Wm={"X-Client-Info":`gotrue-js/${uh}`},el="X-Supabase-Api-Version",ch={"2024-01-01":{timestamp:Date.parse("2024-01-01T00:00:00.0Z"),name:"2024-01-01"}},Hm=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}$|[a-z0-9_-]{2}$)$/i,Vm=10*60*1e3;class ta extends Error{constructor(e,n,r){super(e),this.__isAuthError=!0,this.name="AuthError",this.status=n,this.code=r}}function N(t){return typeof t=="object"&&t!==null&&"__isAuthError"in t}class qm extends ta{constructor(e,n,r){super(e,n,r),this.name="AuthApiError",this.status=n,this.code=r}}function Km(t){return N(t)&&t.name==="AuthApiError"}class dh extends ta{constructor(e,n){super(e),this.name="AuthUnknownError",this.originalError=n}}class At extends ta{constructor(e,n,r,s){super(e,r,s),this.name=n,this.status=r}}class ht extends At{constructor(){super("Auth session missing!","AuthSessionMissingError",400,void 0)}}function Qm(t){return N(t)&&t.name==="AuthSessionMissingError"}class as extends At{constructor(){super("Auth session or user missing","AuthInvalidToken
237ResponseError",500,void 0)}}class us extends At{constructor(e){super(e,"AuthInvalidCredentialsError",400,void 0)}}class cs extends At{constructor(e,n=null){super(e,"AuthImplicitGrantRedirectError",500,void 0),this.details=null,this.details=n}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}function Gm(t){return N(t)&&t.name==="AuthImplicitGrantRedirectError"}class wu extends At{constructor(e,n=null){super(e,"AuthPKCEGrantCodeExchangeError",500,void 0),this.details=null,this.details=n}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}class tl extends At{constructor(e,n){super(e,"AuthRetryableFetchError",n,void 0)}}function Gi(t){return N(t)&&t.name==="AuthRetryableFetchError"}class _u extends At{constructor(e,n,r){super(e,"AuthWeakPasswordError",n,"weak_password"),this.reasons=r}}class nl extends At{constructor(e){super(e,"AuthInvalidJwtError",400,"invalid_jwt")}}const Qs="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),xu=` 238\r=`.split(""),Jm=(()=>{const t=new Array(128);for(let e=0;e<t.length;e+=1)t[e]=-1;for(let e=0;e<xu.length;e+=1)t[xu[e].charCodeAt(0)]=-2;for(let e=0;e<Qs.length;e+=1)t[Qs[e].charCodeAt(0)]=e;return t})();function ku(t,e,n){if(t!==null)for(e.queue=e.queue<<8|t,e.queuedBits+=8;e.queuedBits>=6;){const r=e.queue>>e.queuedBits-6&63;n(Qs[r]),e.queuedBits-=6}else if(e.queuedBits>0)for(e.queue=e.queue<<6-e.queuedBits,e.queuedBits=6;e.queuedBits>=6;){const r=e.queue>>e.queuedBits-6&63;n(Qs[r]),e.queuedBits-=6}}function hh(t,e,n){const r=Jm[t];if(r>-1)for(e.queue=e.queue<<6|r,e.queuedBits+=6;e.queuedBits>=8;)n(e.queue>>e.queuedBits-8&255),e.queuedBits-=8;else{if(r===-2)return;throw new Error(`Invalid Base64-URL character "${String.fromCharCode(t)}"`)}}function Su(t){const e=[],n=o=>{e.push(String.fromCodePoint(o))},r={utf8seq:0,codepoint:0},s={queue:0,queuedBits:0},i=o=>{Zm(o,r,n)};for(let o=0;o<t.length;o+=1)hh(t.charCodeAt(o),s,i);return e.join("")}function Ym(t,e){if(t<=127){e(t);return}else if(t<=2047){e(192|t>>6),e(128|t&63);return}else if(t<=65535){e(224|t>>12),e(128|t>>6&63),e(128|t&63);return}else if(t<=1114111){e(240|t>>18),e(128|t>>12&63),e(128|t>>6&63),e(128|t&63);return}throw new Error(`Unrecognized Unicode codepoint: ${t.toString(16)}`)}function Xm(t,e){for(let n=0;n<t.length;n+=1){let r=t.charCodeAt(n);if(r>55295&&r<=56319){const s=(r-55296)*1024&65535;r=(t.charCodeAt(n+1)-56320&65535|s)+65536,n+=1}Ym(r,e)}}function Zm(t,e,n){if(e.utf8seq===0){if(t<=127){n(t);return}for(let r=1;r<6;r+=1)if(!(t>>7-r&1)){e.utf8seq=r;break}if(e.utf8seq===2)e.codepoint=t&31;else if(e.utf8seq===3)e.codepoint=t&15;else if(e.utf8seq===4)e.codepoint=t&7;else throw new Error("Invalid UTF-8 sequence");e.utf8seq-=1}else if(e.utf8seq>0){if(t<=127)throw new Error("Invalid UTF-8 sequence");e.codepoint=e.codepoint<<6|t&63,e.utf8seq-=1,e.utf8seq===0&&n(e.codepoint)}}function eg(t){const e=[],n={queue:0,queuedBits:0},r=s=>{e.push(s)};for(let s=0;s<t.length;s+=1)hh(t.charCodeAt(s),n,r);return new Uint8Array(e)}function tg(t){const e=[];return Xm(t,n=>e.push(n)),new Uint8Array(e)}function ng(t){const e=[],n={queue:0,queuedBits:0},r=s=>{e.push(s)};return t.forEach(s=>ku(s,n,r)),ku(null,n,r),e.join("")}function rg(t){return Math.round(Date.now()/1e3)+t}function sg(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){const e=Math.random()*16|0;return(t=="x"?e:e&3|8).toString(16)})}const Me=()=>typeof window<"u"&&typeof document<"u",$t={tested:!1,writable:!1},fh=()=>{if(!Me())return!1;try{if(typeof globalThis.localStorage!="object")return!1}catch{return!1}if($t.tested)return $t.writable;const t=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(t,t),globalThis.localStorage.removeItem(t),$t.tested=!0,$t.writable=!0}catch{$t.tested=!0,$t.writable=!1}return $t.writable};function ig(t){const e={},n=new URL(t);if(n.hash&&n.hash[0]==="#")try{new URLSearchParams(n.hash.substring(1)).forEach((s,i)=>{e[i]=s})}catch{}return n.searchParams.forEach((r,s)=>{e[s]=r}),e}const ph=t=>{let e;return t?e=t:typeof fetch>"u"?e=(...n)=>Mr(async()=>{const{default:r}=await Promise.resolve().then(()=>Dn);return{default:r}},void 0).then(({default:r})=>r(...n)):e=fetch,(...n)=>e(...n)},og=t=>typeof t=="object"&&t!==null&&"status"in t&&"ok"in t&&"json"in t&&typeof t.json=="function",un=async(t,e,n)=>{await t.setItem(e,JSON.stringify(n))},Ut=async(t,e)=>{const n=await t.getItem(e);if(!n)return null;try{return JSON.parse(n)}catch{return n}},dt=async(t,e)=>{await t.removeItem(e)};class mi{constructor(){this.promise=new mi.promiseConstructor((e,n)=>{this.resolve=e,this.reject=n})}}mi.promiseConstructor=Promise;function Ji(t){const e=t.split(".");if(e.length!==3)throw new nl("Invalid JWT structure");for(let r=0;r<e.length;r++)if(!Hm.test(e[r]))throw new nl("JWT not in base64url format");return{header:JSON.parse(Su(e[0])),payload:JSON.parse(Su(e[1])),signature:eg(e[2]),raw:{header:e[0],payload:e[1]}}}async function lg(t){return await new Promise(e=>{setTimeout(()=>e(null),t)})}function ag(t,e){return new Promise((r,s)=>{(async()=>{for(let i=0;i<1/0;i++)try{const o=await t(i);if(!e(i,null,o)){r(o);return}}catch(o){if(!e(i,o)){s(o);return}}})()})}function ug(t){return("0"+t.toString(16)).substr(-2)}function cg(){const e=new Uint32Array(56);if(typeof crypto>"u"){const n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",r=n.length;let s="";for(let i=0;i<56;i++)s+=n.charAt(Math.floor(Math.random()*r));return s}return crypto.getRandomValues(e),Array.from(e,ug).join("")}async function dg(t){const n=new TextEncoder().encode(t),r=await crypto.subtle.digest("SHA-256",
238n),s=new Uint8Array(r);return Array.from(s).map(i=>String.fromCharCode(i)).join("")}async function hg(t){if(!(typeof crypto<"u"&&typeof crypto.subtle<"u"&&typeof TextEncoder<"u"))return console.warn("WebCrypto API is not supported. Code challenge method will default to use plain instead of sha256."),t;const n=await dg(t);return btoa(n).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function rn(t,e,n=!1){const r=cg();let s=r;n&&(s+="/PASSWORD_RECOVERY"),await un(t,`${e}-code-verifier`,s);const i=await hg(r);return[i,r===i?"plain":"s256"]}const fg=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;function pg(t){const e=t.headers.get(el);if(!e||!e.match(fg))return null;try{return new Date(`${e}T00:00:00.0Z`)}catch{return null}}function mg(t){if(!t)throw new Error("Missing exp claim");const e=Math.floor(Date.now()/1e3);if(t<=e)throw new Error("JWT has expired")}function gg(t){switch(t){case"RS256":return{name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}};case"ES256":return{name:"ECDSA",namedCurve:"P-256",hash:{name:"SHA-256"}};default:throw new Error("Invalid alg claim")}}const vg=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;function sn(t){if(!vg.test(t))throw new Error("@supabase/auth-js: Expected parameter to be UUID but is not")}function Yi(){const t={};return new Proxy(t,{get:(e,n)=>{if(n==="__isUserNotAvailableProxy")return!0;if(typeof n=="symbol"){const r=n.toString();if(r==="Symbol(Symbol.toPrimitive)"||r==="Symbol(Symbol.toStringTag)"||r==="Symbol(util.inspect.custom)")return}throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Accessing the "${n}" property of the session object is not supported. Please use getUser() instead.`)},set:(e,n)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Setting the "${n}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)},deleteProperty:(e,n)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Deleting the "${n}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)}})}function Eu(t){return JSON.parse(JSON.stringify(t))}var yg=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(t);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(t,r[s])&&(n[r[s]]=t[r[s]]);return n};const zt=t=>t.msg||t.message||t.error_description||t.error||JSON.stringify(t),wg=[502,503,504];async function ju(t){var e;if(!og(t))throw new tl(zt(t),0);if(wg.includes(t.status))throw new tl(zt(t),t.status);let n;try{n=await t.json()}catch(i){throw new dh(zt(i),i)}let r;const s=pg(t);if(s&&s.getTime()>=ch["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 _u(zt(n),t.status,((e=n.weak_password)===null||e===void 0?void 0:e.reasons)||[]);if(r==="session_not_found")throw new ht}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((i,o)=>i&&typeof o=="string",!0))throw new _u(zt(n),t.status,n.weak_password.reasons);throw new qm(zt(n),t.status||500,r)}const _g=(t,e,n,r)=>{const s={method:t,headers:(e==null?void 0:e.headers)||{}};return t==="GET"?s:(s.headers=Object.assign({"Content-Type":"application/json;charset=UTF-8"},e==null?void 0:e.headers),s.body=JSON.stringify(r),Object.assign(Object.assign({},s),n))};async function R(t,e,n,r){var s;const i=Object.assign({},r==null?void 0:r.headers);i[el]||(i[el]=ch["2024-01-01"].name),r!=null&&r.jwt&&(i.Authorization=`Bearer ${r.jwt}`);const o=(s=r==null?void 0:r.query)!==null&&s!==void 0?s:{};r!=null&&r.redirectTo&&(o.redirect_to=r.redirectTo);const l=Object.keys(o).length?"?"+new URLSearchParams(o).toString():"",a=await xg(t,e,n+l,{headers:i,noResolveJson:r==null?void 0:r.noResolveJson},{},r==null?void 0:r.body);return r!=null&&r.xform?r==null?void 0:r.xform(a):{data:Object.assign({},a),error:null}}async function xg(t,e,n,r,s,i){const o=_g(e,r,s,i);let l;try{l=await t(n,Object.assign({},o))}catch(a){throw console.error(a),new tl(zt(a),0)}if(l.ok||await ju(l),r!=null&&r.noResolveJson)return l;try{return await l.json()}catch(a){await ju(a)}}function Xe(t){var e;let n=null;jg(t)&&(n=Object.assign({},t),t.expires_at||(n.expires_at=rg(t.expires_in)));const r=(e=t.user)!==null&&e!==void 0?e:t;return{data:{session:n,user:r},error:null}}function Cu(t){const e=Xe(t);return!e.error&&t.weak_password&&typeof t.weak_password=="object"&&Array.isArray(t.weak_password.reasons)&&t.weak_password.reasons.length&&t.weak_password.message&&typeof t.weak_password.message=="string"&&t.weak_password.reasons.reduce((n,r)=>n&&typeof r=="string",!0)&&(e.data.weak_password=t.weak_password),e}function vt(t){var e;return{data:{user:(e=t.user)!==null&&e!==void 0?e:t},error:null}}function kg(t){return{data:t,error:null}}function Sg(t){const{action_link:e,email_otp:n,hashed_token:r,redirect_to:s,verification_type:i}=t,o=yg(t,["action_link","email_otp","hashed_token","redirect_to","verification_type"]),l={action_link:e,email_otp:n,hashed_token:r,redirect_to:s,verification_type:i},a=Object.assign({},o);return{data:{properties:l,user:a},error:null}}function Eg(t){return t}function jg(t){return t.access_token&&t.refresh_token&&t.expires_in}const Xi=["global","local","others"];var Cg=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(t);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(t,r[s])&&(n[r[s]]=t[r[s]]);return n};class bg{constructor({url:e="",headers:n={},fetch:r}){this.url=e,this.headers=n,this.fetch=ph(r),this.mfa={listFactors:this._listFactors.bind(this),deleteFactor:this._deleteFactor.bind(this)}}async signOut(e,n=Xi[0]){if(Xi.indexOf(n)<0)throw new Error(`@supabase/auth-js: Parameter scope must be one of ${Xi.join(", ")}`);try{return await R(this.fetch,"POST",`${this.url}/logout?scope=${n}`,{headers:this.headers,jwt:e,noResolveJson:!0}),{data:null,error:null}}catch(r){if(N(r))return{data:null,error:r};throw r}}async inviteUserByEmail(e,n={}){try{return await R(this.fetch,"POST",`${this.url}/invite`,{body:{email:e,data:n.data},headers:this.headers,redirectTo:n.redirectTo,xform:vt})}catch(r){if(N(r))return{data:{user:null},error:r};throw r}}async generateLink(e){try{const{options:n}=e,r=Cg(e,["options"]),s=Object.assign(Object.assign({},r),n);return"newEmail"in r&&(s.new_email=r==null?void 0:r.newEmail,delete s.newEmail),await R(this.fetch,"POST",`${this.url}/admin/generate_link`,{body:s,headers:this.headers,xform:Sg,redirectTo:n==null?void 0:n.redirectTo})}catch(n){if(N(n))return{data:{properties:null,user:null},error:n};throw n}}async createUser(e){try{return await R(this.fetch,"POST",`${this.url}/admin/users`,{body:e,headers:this.headers,xform:vt})}catch(n){if(N(n))return{data:{user:null},error:n};throw n}}async listUsers(e){var n,r,s,i,o,l,a;try{const u={nextPage:null,lastPage:0,total:0},c=await R(this.fetch,"GET",`${this.url}/admin/users`,{headers:this.headers,noResolveJson:!0,query:{page:(r=(n=e==null?void 0:e.page)===null||n===void 0?void 0:n.toString())!==null&&r!==void 0?r:"",per_page:(i=(s=e==null?void 0:e.perPage)===null||s===void 0?void 0:s.toString())!==null&&i!==void 0?i:""},xform:Eg});if(c.error)throw c.error;const f=await c.json(),m=(o=c.headers.get("x-total-count"))!==null&&o!==void 0?o:0,v=(a=(l=c.headers.get("link"))===null||l===void 0?void 0:l.split(","))!==null&&a!==void 0?a:[];return v.length>0&&(v.forEach(w=>{const _=parseInt(w.split(";")[0].split("=")[1].substring(0,1)),j=JSON.parse(w.split(";")[1].split("=")[1]);u[`${j}Page`]=_}),u.total=parseInt(m)),{data:Object.assign(Object.assign({},f),u),error:null}}catch(u){if(N(u))return{data:{users:[]},error:u};throw u}}async getUserById(e){sn(e);try{return await R(this.fetch,"GET",`${this.url}/admin/users/${e}`,{headers:this.headers,xform:vt})}catch(n){if(N(n))return{data:{user:null},error:n};throw n}}async updateUserById(e,n){sn(e);try{return await R(this.fetch,"PUT",`${this.url}/admin/users/${e}`,{body:n,headers:this.headers,xform:vt})}catch(r){if(N(r))return{data:{user:null},error:r};throw r}}async deleteUser(e,n=!1){sn(e);
238try{return await R(this.fetch,"DELETE",`${this.url}/admin/users/${e}`,{headers:this.headers,body:{should_soft_delete:n},xform:vt})}catch(r){if(N(r))return{data:{user:null},error:r};throw r}}async _listFactors(e){sn(e.userId);try{const{data:n,error:r}=await R(this.fetch,"GET",`${this.url}/admin/users/${e.userId}/factors`,{headers:this.headers,xform:s=>({data:{factors:s},error:null})});return{data:n,error:r}}catch(n){if(N(n))return{data:null,error:n};throw n}}async _deleteFactor(e){sn(e.userId),sn(e.id);try{return{data:await R(this.fetch,"DELETE",`${this.url}/admin/users/${e.userId}/factors/${e.id}`,{headers:this.headers}),error:null}}catch(n){if(N(n))return{data:null,error:n};throw n}}}function bu(t={}){return{getItem:e=>t[e]||null,setItem:(e,n)=>{t[e]=n},removeItem:e=>{delete t[e]}}}function Tg(){if(typeof globalThis!="object")try{Object.defineProperty(Object.prototype,"__magic__",{get:function(){return this},configurable:!0}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__}catch{typeof self<"u"&&(self.globalThis=self)}}const on={debug:!!(globalThis&&fh()&&globalThis.localStorage&&globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug")==="true")};class mh extends Error{constructor(e){super(e),this.isAcquireTimeout=!0}}class Ng extends mh{}async function Pg(t,e,n){on.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquire lock",t,e);const r=new globalThis.AbortController;return e>0&&setTimeout(()=>{r.abort(),on.debug&&console.log("@supabase/gotrue-js: navigatorLock acquire timed out",t)},e),await Promise.resolve().then(()=>globalThis.navigator.locks.request(t,e===0?{mode:"exclusive",ifAvailable:!0}:{mode:"exclusive",signal:r.signal},async s=>{if(s){on.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquired",t,s.name);try{return await n()}finally{on.debug&&console.log("@supabase/gotrue-js: navigatorLock: released",t,s.name)}}else{if(e===0)throw on.debug&&console.log("@supabase/gotrue-js: navigatorLock: not immediately available",t),new Ng(`Acquiring an exclusive Navigator LockManager lock "${t}" immediately failed`);if(on.debug)try{const i=await globalThis.navigator.locks.query();console.log("@supabase/gotrue-js: Navigator LockManager state",JSON.stringify(i,null," "))}catch(i){console.warn("@supabase/gotrue-js: Error when querying Navigator LockManager state",i)}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()}}))}Tg();const Og={url:Fm,storageKey:Bm,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:Wm,flowType:"implicit",debug:!1,hasCustomAuthorizationHeader:!1};async function Tu(t,e,n){return await n()}const ln={};class Rr{constructor(e){var n,r;this.userStorage=null,this.memoryStorage=null,this.stateChangeEmitters=new Map,this.autoRefreshTicker=null,this.visibilityChangedCallback=null,this.refreshingDeferred=null,this.initializePromise=null,this.detectSessionInUrl=!0,this.hasCustomAuthorizationHeader=!1,this.suppressGetSessionWarning=!1,this.lockAcquired=!1,this.pendingInLock=[],this.broadcastChannel=null,this.logger=console.log,this.instanceID=Rr.nextInstanceID,Rr.nextInstanceID+=1,this.instanceID>0&&Me()&&console.warn("Multiple GoTrueClient instances detected in the same browser context. It is not an error, but this should be avoided as it may produce undefined behavior when used concurrently under the same storage key.");const s=Object.assign(Object.assign({},Og),e);if(this.logDebugMessages=!!s.debug,typeof s.debug=="function"&&(this.logger=s.debug),this.persistSession=s.persistSession,this.storageKey=s.storageKey,this.autoRefreshToken=s.autoRefreshToken,this.admin=new bg({url:s.url,headers:s.headers,fetch:s.fetch}),this.url=s.url,this.headers=s.headers,this.fetch=ph(s.fetch),this.lock=s.lock||Tu,this.detectSessionInUrl=s.detectSessionInUrl,this.flowType=s.flowType,this.hasCustomAuthorizationHeader=s.hasCustomAuthorizationHeader,s.lock?this.lock=s.lock:Me()&&(!((n=globalThis==null?void 0:globalThis.navigator)===null||n===void 0)&&n.locks)?this.lock=Pg:this.lock=Tu,this.jwks||(this.jwks={keys:[]},this.jwks_cached_at=Number.MIN_SAFE_INTEGER),this.mfa={verify:this._verify.bind(this),enroll:this._enroll.bind(this),unenroll:this._unenroll.bind(this),challenge:this._challenge.bind(this),listFactors:this._listFactors.bind(this),challengeAndVerify:this._challengeAndVerify.bind(this),getAuthenticatorAssuranceLevel:this._getAuthenticatorAssuranceLevel.bind(this)},this.persistSession?(s.storage?this.storage=s.storage:fh()?this.storage=globalThis.localStorage:(this.memoryStorage={},this.storage=bu(this.memoryStorage)),s.userStorage&&(this.userStorage=s.userStorage)):(this.memoryStorage={},this.storage=bu(this.memoryStorage)),Me()&&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)}(r=this.broadcastChannel)===null||r===void 0||r.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()}get jwks(){var e,n;return(n=(e=ln[this.storageKey])===null||e===void 0?void 0:e.jwks)!==null&&n!==void 0?n:{keys:[]}}set jwks(e){ln[this.storageKey]=Object.assign(Object.assign({},ln[this.storageKey]),{jwks:e})}get jwks_cached_at(){var e,n;return(n=(e=ln[this.storageKey])===null||e===void 0?void 0:e.cachedAt)!==null&&n!==void 0?n:Number.MIN_SAFE_INTEGER}set jwks_cached_at(e){ln[this.storageKey]=Object.assign(Object.assign({},ln[this.storageKey]),{cachedAt:e})}_debug(...e){return this.logDebugMessages&&this.logger(`GoTrueClient@${this.instanceID} (${uh}) ${new Date().toISOString()}`,...e),this}async initialize(){return this.initializePromise?await this.initializePromise:(this.initializePromise=(async()=>await this._acquireLock(-1,async()=>await this._initialize()))(),await this.initializePromise)}async _initialize(){var e;try{const n=ig(window.location.href);let r="none";if(this._isImplicitGrantCallback(n)?r="implicit":await this._isPKCECallback(n)&&(r="pkce"),Me()&&this.detectSessionInUrl&&r!=="none"){const{data:s,error:i}=await this._getSessionFromURL(n,r);if(i){if(this._debug("#_initialize()","error detecting session from URL",i),Gm(i)){const a=(e=i.details)===null||e===void 0?void 0:e.code;if(a==="identity_already_exists"||a==="identity_not_found"||a==="single_identity_not_deletable")return{error:i}}return await this._removeSession(),{error:i}}const{session:o,redirectType:l}=s;return this._debug("#_initialize()","detected session in URL",o,"redirect type",l),await this._saveSession(o),setTimeout(async()=>{l==="recovery"?await this._notifyAllSubscribers("PASSWORD_RECOVERY",o):await this._notifyAllSubscribers("SIGNED_IN",o)},0),{error:null}}return await this._recoverAndRefresh(),{error:null}}catch(n){return N(n)?{error:n}:{error:new dh("Unexpected error during initialization",n)}}finally{await this._handleVisibilityChange(),this._debug("#_initialize()","end")}}async signInAnonymously(e){var n,r,s;try{const i=await R(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{data:(r=(n=e==null?void 0:e.options)===null||n===void 0?void 0:n.data)!==null&&r!==void 0?r:{},gotrue_meta_security:{captcha_token:(s=e==null?void 0:e.options)===null||s===void 0?void 0:s.captchaToken}},xform:Xe}),{data:o,error:l}=i;if(l||!o)return{data:{user:null,session:null},error:l};const a=o.session,u=o.user;return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",a)),{data:{user:u,session:a},error:null}}catch(i){if(N(i))return{data:{user:null,session:null},error:i};throw i}}async signUp(e){var n,r,s;try{let i;if("email"in e){const{email:c,password:f,options:m}=e;let v=null,w=null;this.flowType==="pkce"&&([v,w]=await rn(this.storage,this.storageKey)),i=await R(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,redirectTo:m==null?void 0:m.emailRedirectTo,body:{email:c,password:f,data:(n=m==null?void 0:m.data)!==null&&n!==void 0?n:{},gotrue_meta_security:{captcha_token:m==null?void 0:m.captchaToken},code_challenge:v,code_challenge_method:w},xform:Xe})}else if("phone"in e){const{phone:c,password:f,options:m}=e;i=await R(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{phone:c,password:f,data:(r=m==null?void 0:m.data)!==null&&r!==void 0?r:{},channel:(s=m==null?void 0:m.channel)!==null&&s!==void 0?s:"sms",gotrue_meta_security:{captcha_token:m==null?void 0:m.captchaToken}},xform:Xe})}else throw new us("You must provide either an email or phone number and a password");const{data:o,error:l}=i;if(l||!o)return{data:{user:null,session:null},error:l};const a=o.session,u=o.user;return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",a)),{data:{user:u,session:a},error:null}}catch(i){if(N(i))return{data:{user:null,session:null},error:i};throw i}}async signInWithPassword(e){try{let n;if("email"in e){const{email:i,password:o,options:l}=e;n=await R(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{email:i,password:o,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken}},xform:Cu})}else if("phone"in e){const{phone:i,password:o,options:l}=e;n=await R(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{phone:i,password:o,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken}},xform:Cu})}else throw new us("You must provide either an email or phone number and a password");const{data:r,error:s}=n;return s?{data:{user:null,session:null},error:s}:!r||!r.session||!r.user?{data:{user:null,session:null},error:new as}:(r.session&&(await this._saveSession(r.session),await this._notifyAllSubscribers("SIGNED_IN",r.session)),{data:Object.assign({user:r.user,session:r.session},r.weak_password?{weakPassword:r.weak_password}:null),error:s})}catch(n){if(N(n))return{data:{user:null,session:null},error:n};throw n}}async signInWithOAuth(e){var n,r,s,i;return await this._handleProviderSignIn(e.provider,{redirectTo:(n=e.options)===null||n===void 0?void 0:n.redirectTo,scopes:(r=e.options)===null||r===void 0?void 0:r.scopes,queryParams:(s=e.options)===null||s===void 0?void 0:s.queryParams,skipBrowserRedirect:(i=e.options)===null||i===void 0?void 0:i.skipBrowserRedirect})}async exchangeCodeForSession(e){return await this.initializePromise,this._acquireLock(-1,async()=>this._exchangeCodeForSession(e))}async signInWithWeb3(e){const{chain:n}=e;if(n==="solana")return await this.signInWithSolana(e);throw new Error(`@supabase/auth-js: Unsupported chain "${n}"`)}async signInWithSolana(e){var n,r,s,i,o,l,a,u,c,f,m,v;let w,_;if("message"in e)w=e.message,_=e.signature;else{const{chain:j,wallet:g,statement:h,options:p}=e;let y;if(Me())if(typeof g=="object")y=g;
238else{const k=window;if("solana"in k&&typeof k.solana=="object"&&("signIn"in k.solana&&typeof k.solana.signIn=="function"||"signMessage"in k.solana&&typeof k.solana.signMessage=="function"))y=k.solana;else throw new Error("@supabase/auth-js: No compatible Solana wallet interface on the window object (window.solana) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'solana', wallet: resolvedUserWallet }) instead.")}else{if(typeof g!="object"||!(p!=null&&p.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");y=g}const S=new URL((n=p==null?void 0:p.url)!==null&&n!==void 0?n:window.location.href);if("signIn"in y&&y.signIn){const k=await y.signIn(Object.assign(Object.assign(Object.assign({issuedAt:new Date().toISOString()},p==null?void 0:p.signInWithSolana),{version:"1",domain:S.host,uri:S.href}),h?{statement:h}:null));let E;if(Array.isArray(k)&&k[0]&&typeof k[0]=="object")E=k[0];else if(k&&typeof k=="object"&&"signedMessage"in k&&"signature"in k)E=k;else throw new Error("@supabase/auth-js: Wallet method signIn() returned unrecognized value");if("signedMessage"in E&&"signature"in E&&(typeof E.signedMessage=="string"||E.signedMessage instanceof Uint8Array)&&E.signature instanceof Uint8Array)w=typeof E.signedMessage=="string"?E.signedMessage:new TextDecoder().decode(E.signedMessage),_=E.signature;else throw new Error("@supabase/auth-js: Wallet method signIn() API returned object without signedMessage and signature fields")}else{if(!("signMessage"in y)||typeof y.signMessage!="function"||!("publicKey"in y)||typeof y!="object"||!y.publicKey||!("toBase58"in y.publicKey)||typeof y.publicKey.toBase58!="function")throw new Error("@supabase/auth-js: Wallet does not have a compatible signMessage() and publicKey.toBase58() API");w=[`${S.host} wants you to sign in with your Solana account:`,y.publicKey.toBase58(),...h?["",h,""]:[""],"Version: 1",`URI: ${S.href}`,`Issued At: ${(s=(r=p==null?void 0:p.signInWithSolana)===null||r===void 0?void 0:r.issuedAt)!==null&&s!==void 0?s:new Date().toISOString()}`,...!((i=p==null?void 0:p.signInWithSolana)===null||i===void 0)&&i.notBefore?[`Not Before: ${p.signInWithSolana.notBefore}`]:[],...!((o=p==null?void 0:p.signInWithSolana)===null||o===void 0)&&o.expirationTime?[`Expiration Time: ${p.signInWithSolana.expirationTime}`]:[],...!((l=p==null?void 0:p.signInWithSolana)===null||l===void 0)&&l.chainId?[`Chain ID: ${p.signInWithSolana.chainId}`]:[],...!((a=p==null?void 0:p.signInWithSolana)===null||a===void 0)&&a.nonce?[`Nonce: ${p.signInWithSolana.nonce}`]:[],...!((u=p==null?void 0:p.signInWithSolana)===null||u===void 0)&&u.requestId?[`Request ID: ${p.signInWithSolana.requestId}`]:[],...!((f=(c=p==null?void 0:p.signInWithSolana)===null||c===void 0?void 0:c.resources)===null||f===void 0)&&f.length?["Resources",...p.signInWithSolana.resources.map(E=>`- ${E}`)]:[]].join(` 239`);const k=await y.signMessage(new TextEncoder().encode(w),"utf8");if(!k||!(k instanceof Uint8Array))throw new Error("@supabase/auth-js: Wallet signMessage() API returned an recognized value");_=k}}try{const{data:j,error:g}=await R(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"solana",message:w,signature:ng(_)},!((m=e.options)===null||m===void 0)&&m.captchaToken?{gotrue_meta_security:{captcha_token:(v=e.options)===null||v===void 0?void 0:v.captchaToken}}:null),xform:Xe});if(g)throw g;return!j||!j.session||!j.user?{data:{user:null,session:null},error:new as}:(j.session&&(await this._saveSession(j.session),await this._notifyAllSubscribers("SIGNED_IN",j.session)),{data:Object.assign({},j),error:g})}catch(j){if(N(j))return{data:{user:null,session:null},error:j};throw j}}async _exchangeCodeForSession(e){const n=await Ut(this.storage,`${this.storageKey}-code-verifier`),[r,s]=(n??"").split("/");try{const{data:i,error:o}=await R(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:e,code_verifier:r},xform:Xe});if(await dt(this.storage,`${this.storageKey}-code-verifier`),o)throw o;return!i||!i.session||!i.user?{data:{user:null,session:null,redirectType:null},error:new as}:(i.session&&(await this._saveSession(i.session),await this._notifyAllSubscribers("SIGNED_IN",i.session)),{data:Object.assign(Object.assign({},i),{redirectType:s??null}),error:o})}catch(i){if(N(i))return{data:{user:null,session:null,redirectType:null},error:i};throw i}}async signInWithIdToken(e){try{const{options:n,provider:r,token:s,access_token:i,nonce:o}=e,l=await R(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:r,id_token:s,access_token:i,nonce:o,gotrue_meta_security:{captcha_token:n==null?void 0:n.captchaToken}},xform:Xe}),{data:a,error:u}=l;return u?{data:{user:null,session:null},error:u}:!a||!a.session||!a.user?{data:{user:null,session:null},error:new as}:(a.session&&(await this._saveSession(a.session),await this._notifyAllSubscribers("SIGNED_IN",a.session)),{data:a,error:u})}catch(n){if(N(n))return{data:{user:null,session:null},error:n};throw n}}async signInWithOtp(e){var n,r,s,i,o;try{if("email"in e){const{email:l,options:a}=e;let u=null,c=null;this.flowType==="pkce"&&([u,c]=await rn(this.storage,this.storageKey));const{error:f}=await R(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{email:l,data:(n=a==null?void 0:a.data)!==null&&n!==void 0?n:{},create_user:(r=a==null?void 0:a.shouldCreateUser)!==null&&r!==void 0?r:!0,gotrue_meta_security:{captcha_token:a==null?void 0:a.captchaToken},code_challenge:u,code_challenge_method:c},redirectTo:a==null?void 0:a.emailRedirectTo});return{data:{user:null,session:null},error:f}}if("phone"in e){const{phone:l,options:a}=e,{data:u,error:c}=await R(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{phone:l,data:(s=a==null?void 0:a.data)!==null&&s!==void 0?s:{},create_user:(i=a==null?void 0:a.shouldCreateUser)!==null&&i!==void 0?i:!0,gotrue_meta_security:{captcha_token:a==null?void 0:a.captchaToken},channel:(o=a==null?void 0:a.channel)!==null&&o!==void 0?o:"sms"}});return{data:{user:null,session:null,messageId:u==null?void 0:u.message_id},error:c}}throw new us("You must provide either an email or phone number.")}catch(l){if(N(l))return{data:{user:null,session:null},error:l};throw l}}async verifyOtp(e){var n,r;try{let s,i;"options"in e&&(s=(n=e.options)===null||n===void 0?void 0:n.redirectTo,i=(r=e.options)===null||r===void 0?void 0:r.captchaToken);const{data:o,error:l}=await R(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},e),{gotrue_meta_security:{captcha_token:i}}),redirectTo:s,xform:Xe});if(l)throw l;if(!o)throw new Error("An error occurred on token verification.");const a=o.session,u=o.user;return a!=null&&a.access_token&&(await this._saveSession(a),await this._notifyAllSubscribers(e.type=="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",a)),{data:{user:u,session:a},error:null}}catch(s){if(N(s))return{data:{user:null,session:null},error:s};throw s}}async signInWithSSO(e){var n,r,s;try{let i=null,o=null;return this.flowType==="pkce"&&([i,o]=await rn(this.storage,this.storageKey)),await R(this.fetch,"POST",`${this.url}/sso`,{body:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},"providerId"in e?{provider_id:e.providerId}:null),"domain"in e?{domain:e.domain}:null),{redirect_to:(r=(n=e.options)===null||n===void 0?void 0:n.redirectTo)!==null&&r!==void 0?r:void 0}),!((s=e==null?void 0:e.options)===null||s===void 0)&&s.captchaToken?{gotrue_meta_security:{captcha_token:e.options.captchaToken}}:null),{skip_http_redirect:!0,code_challenge:i,code_challenge_method:o}),headers:this.headers,xform:kg})}catch(i){if(N(i))return{data:null,error:i};throw i}}async reauthenticate(){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._reauthenticate())}async _reauthenticate(){try{return await this._useSession(async e=>{const{data:{session:n},error:r}=e;if(r)throw r;if(!n)throw new ht;const{error:s}=await R(this.fetch,"GET",`${this.url}/reauthenticate`,{headers:this.headers,jwt:n.access_token});return{data:{user:null,session:null},error:s}})}catch(e){if(N(e))return{data:{user:null,session:null},error:e};throw e}}async resend(e){try{const n=`${this.url}/resend`;if("email"in e){const{email:r,type:s,options:i}=e,{error:o}=await R(this.fetch,"POST",n,{headers:this.headers,body:{email:r,type:s,gotrue_meta_security:{captcha_token:i==null?void 0:i.captchaToken}},redirectTo:i==null?void 0:i.emailRedirectTo});return{data:{user:null,session:null},error:o}}else if("phone"in e){const{phone:r,type:s,options:i}=e,{data:o,error:l}=await R(this.fetch,"POST",n,{headers:this.headers,body:{phone:r,type:s,gotrue_meta_security:{captcha_token:i==null?void 0:i.captchaToken}}});return{data:{user:null,session:null,messageId:o==null?void 0:o.message_id},error:l}}throw new us("You must provide either an email or phone number and a type")}catch(n){if(N(n))return{data:{user:null,session:null},error:n};throw n}}async getSession(){return await this.initializePromise,await this._acquireLock(-1,async()=>this._useSession(async n=>n))}async _acquireLock(e,n){this._debug("#_acquireLock","begin",e);try{if(this.lockAcquired){const r=this.pendingInLock.length?this.pendingInLock[this.pendingInLock.length-1]:Promise.resolve(),s=(async()=>(await r,await n()))();return this.pendingInLock.push((async()=>{try{await s}catch{}})()),s}return await this.lock(`lock:${this.storageKey}`,e,async()=>{this._debug("#_acquireLock","lock acquired for storage key",this.storageKey);try{this.lockAcquired=!0;const r=n();for(this.pendingInLock.push((async()=>{try{await r}catch{}})()),await r;this.pendingInLock.length;){const s=[...this.pendingInLock];await Promise.all(s),this.pendingInLock.splice(0,s.length)}return await r}finally{this._debug("#_acquireLock","lock released for storage key",this.storageKey),this.lockAcquired=!1}})}finally{this._debug("#_acquireLock","end")}}async _useSession(e){this._debug("#_useSession","begin");try{const n=await this.__loadSession();return await e(n)}finally{this._debug("#_useSession","end")}}async __loadSession(){this._debug("#__loadSession()","begin"),this.lockAcquired||this._debug("#__loadSession()","used outside of an acquired lock!",new Error().stack);try{let e=null;const n=await Ut(this.storage,this.storageKey);if(this._debug("#getSession()","session from storage",n),n!==null&&(this._isValidSession(n)?e=n:(this._debug("#getSession()","session from storage is not val
239id"),await this._removeSession())),!e)return{data:{session:null},error:null};const r=e.expires_at?e.expires_at*1e3-Date.now()<Qi:!1;if(this._debug("#__loadSession()",`session has${r?"":" not"} expired`,"expires_at",e.expires_at),!r){if(this.userStorage){const o=await Ut(this.userStorage,this.storageKey+"-user");o!=null&&o.user?e.user=o.user:e.user=Yi()}if(this.storage.isServer&&e.user){let o=this.suppressGetSessionWarning;e=new Proxy(e,{get:(a,u,c)=>(!o&&u==="user"&&(console.warn("Using the user object as returned from supabase.auth.getSession() or from some supabase.auth.onAuthStateChange() events could be insecure! This value comes directly from the storage medium (usually cookies on the server) and may not be authentic. Use supabase.auth.getUser() instead which authenticates the data by contacting the Supabase Auth server."),o=!0,this.suppressGetSessionWarning=!0),Reflect.get(a,u,c))})}return{data:{session:e},error:null}}const{session:s,error:i}=await this._callRefreshToken(e.refresh_token);return i?{data:{session:null},error:i}:{data:{session:s},error:null}}finally{this._debug("#__loadSession()","end")}}async getUser(e){return e?await this._getUser(e):(await this.initializePromise,await this._acquireLock(-1,async()=>await this._getUser()))}async _getUser(e){try{return e?await R(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:e,xform:vt}):await this._useSession(async n=>{var r,s,i;const{data:o,error:l}=n;if(l)throw l;return!(!((r=o.session)===null||r===void 0)&&r.access_token)&&!this.hasCustomAuthorizationHeader?{data:{user:null},error:new ht}:await R(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:(i=(s=o.session)===null||s===void 0?void 0:s.access_token)!==null&&i!==void 0?i:void 0,xform:vt})})}catch(n){if(N(n))return Qm(n)&&(await this._removeSession(),await dt(this.storage,`${this.storageKey}-code-verifier`)),{data:{user:null},error:n};throw n}}async updateUser(e,n={}){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._updateUser(e,n))}async _updateUser(e,n={}){try{return await this._useSession(async r=>{const{data:s,error:i}=r;if(i)throw i;if(!s.session)throw new ht;const o=s.session;let l=null,a=null;this.flowType==="pkce"&&e.email!=null&&([l,a]=await rn(this.storage,this.storageKey));const{data:u,error:c}=await R(this.fetch,"PUT",`${this.url}/user`,{headers:this.headers,redirectTo:n==null?void 0:n.emailRedirectTo,body:Object.assign(Object.assign({},e),{code_challenge:l,code_challenge_method:a}),jwt:o.access_token,xform:vt});if(c)throw c;return o.user=u.user,await this._saveSession(o),await this._notifyAllSubscribers("USER_UPDATED",o),{data:{user:o.user},error:null}})}catch(r){if(N(r))return{data:{user:null},error:r};throw r}}async setSession(e){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._setSession(e))}async _setSession(e){try{if(!e.access_token||!e.refresh_token)throw new ht;const n=Date.now()/1e3;let r=n,s=!0,i=null;const{payload:o}=Ji(e.access_token);if(o.exp&&(r=o.exp,s=r<=n),s){const{session:l,error:a}=await this._callRefreshToken(e.refresh_token);if(a)return{data:{user:null,session:null},error:a};if(!l)return{data:{user:null,session:null},error:null};i=l}else{const{data:l,error:a}=await this._getUser(e.access_token);if(a)throw a;i={access_token:e.access_token,refresh_token:e.refresh_token,user:l.user,token_type:"bearer",expires_in:r-n,expires_at:r},await this._saveSession(i),await this._notifyAllSubscribers("SIGNED_IN",i)}return{data:{user:i.user,session:i},error:null}}catch(n){if(N(n))return{data:{session:null,user:null},error:n};throw n}}async refreshSession(e){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._refreshSession(e))}async _refreshSession(e){try{return await this._useSession(async n=>{var r;if(!e){const{data:o,error:l}=n;if(l)throw l;e=(r=o.session)!==null&&r!==void 0?r:void 0}if(!(e!=null&&e.refresh_token))throw new ht;const{session:s,error:i}=await this._callRefreshToken(e.refresh_token);return i?{data:{user:null,session:null},error:i}:s?{data:{user:s.user,session:s},error:null}:{data:{user:null,session:null},error:null}})}catch(n){if(N(n))return{data:{user:null,session:null},error:n};throw n}}async _getSessionFromURL(e,n){try{if(!Me())throw new cs("No browser detected.");
239if(e.error||e.error_description||e.error_code)throw new cs(e.error_description||"Error in URL with unspecified error_description",{error:e.error||"unspecified_error",code:e.error_code||"unspecified_code"});switch(n){case"implicit":if(this.flowType==="pkce")throw new wu("Not a valid PKCE flow url.");break;case"pkce":if(this.flowType==="implicit")throw new cs("Not a valid implicit grant flow url.");break;default:}if(n==="pkce"){if(this._debug("#_initialize()","begin","is PKCE flow",!0),!e.code)throw new wu("No code detected.");const{data:h,error:p}=await this._exchangeCodeForSession(e.code);if(p)throw p;const y=new URL(window.location.href);return y.searchParams.delete("code"),window.history.replaceState(window.history.state,"",y.toString()),{data:{session:h.session,redirectType:null},error:null}}const{provider_token:r,provider_refresh_token:s,access_token:i,refresh_token:o,expires_in:l,expires_at:a,token_type:u}=e;if(!i||!l||!o||!u)throw new cs("No session defined in URL");const c=Math.round(Date.now()/1e3),f=parseInt(l);let m=c+f;a&&(m=parseInt(a));const v=m-c;v*1e3<=an&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${v}s, should have been closer to ${f}s`);const w=m-f;c-w>=120?console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale",w,m,c):c-w<0&&console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clock for skew",w,m,c);const{data:_,error:j}=await this._getUser(i);if(j)throw j;const g={provider_token:r,provider_refresh_token:s,access_token:i,expires_in:f,expires_at:m,refresh_token:o,token_type:u,user:_.user};return window.location.hash="",this._debug("#_getSessionFromURL()","clearing window.location.hash"),{data:{session:g,redirectType:e.type},error:null}}catch(r){if(N(r))return{data:{session:null,redirectType:null},error:r};throw r}}_isImplicitGrantCallback(e){return!!(e.access_token||e.error_description)}async _isPKCECallback(e){const n=await Ut(this.storage,`${this.storageKey}-code-verifier`);return!!(e.code&&n)}async signOut(e={scope:"global"}){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._signOut(e))}async _signOut({scope:e}={scope:"global"}){return await this._useSession(async n=>{var r;const{data:s,error:i}=n;if(i)return{error:i};const o=(r=s.session)===null||r===void 0?void 0:r.access_token;if(o){const{error:l}=await this.admin.signOut(o,e);if(l&&!(Km(l)&&(l.status===404||l.status===401||l.status===403)))return{error:l}}return e!=="others"&&(await this._removeSession(),await dt(this.storage,`${this.storageKey}-code-verifier`)),{error:null}})}onAuthStateChange(e){const n=sg(),r={id:n,callback:e,unsubscribe:()=>{this._debug("#unsubscribe()","state change callback with id removed",n),this.stateChangeEmitters.delete(n)}};return this._debug("#onAuthStateChange()","registered callback with id",n),this.stateChangeEmitters.set(n,r),(async()=>(await this.initializePromise,await this._acquireLock(-1,async()=>{this._emitInitialSession(n)})))(),{data:{subscription:r}}}async _emitInitialSession(e){return await this._useSession(async n=>{var r,s;try{const{data:{session:i},error:o}=n;if(o)throw o;await((r=this.stateChangeEmitters.get(e))===null||r===void 0?void 0:r.callback("INITIAL_SESSION",i)),this._debug("INITIAL_SESSION","callback id",e,"session",i)}catch(i){await((s=this.stateChangeEmitters.get(e))===null||s===void 0?void 0:s.callback("INITIAL_SESSION",null)),this._debug("INITIAL_SESSION","callback id",e,"error",i),console.error(i)}})}async resetPasswordForEmail(e,n={}){let r=null,s=null;this.flowType==="pkce"&&([r,s]=await rn(this.storage,this.storageKey,!0));try{return await R(this.fetch,"POST",`${this.url}/recover`,{body:{email:e,code_challenge:r,code_challenge_method:s,gotrue_meta_security:{captcha_token:n.captchaToken}},headers:this.headers,redirectTo:n.redirectTo})}catch(i){if(N(i))return{data:null,error:i};throw i}}async getUserIdentities(){var e;try{const{data:n,error:r}=await this.getUser();if(r)throw r;return{data:{identities:(e=n.user.identities)!==null&&e!==void 0?e:[]},error:null}}catch(n){if(N(n))return{data:null,error:n};throw n}}async linkIdentity(e){var n;try{const{data:r,error:s}=await this._useSession(async i=>{var o,l,a,u,c;const{data:f,error:m}=i;if(m)throw m;const v=await this._getUrlForProvider(`${this.url}/user/identities/authorize`,e.provider,{redirectTo:(o=e.options)===null||o===void 0?void 0:o.redirectTo,scopes:(l=e.options)===null||l===void 0?void 0:l.scopes,queryParams:(a=e.options)===null||a===void 0?void 0:a.queryParams,skipBrowserRedirect:!0});return await R(this.fetch,"GET",v,{headers:this.headers,jwt:(c=(u=f.session)===null||u===void 0?void 0:u.access_token)!==null&&c!==void 0?c:void 0})});if(s)throw s;return Me()&&!(!((n=e.options)===null||n===void 0)&&n.skipBrowserRedirect)&&window.location.assign(r==null?void 0:r.url),{data:{provider:e.provider,url:r==null?void 0:r.url},error:null}}catch(r){if(N(r))return{data:{provider:e.provider,url:null},error:r};throw r}}async unlinkIdentity(e){try{return await this._useSession(async n=>{var r,s;const{data:i,error:o}=n;
239if(o)throw o;return await R(this.fetch,"DELETE",`${this.url}/user/identities/${e.identity_id}`,{headers:this.headers,jwt:(s=(r=i.session)===null||r===void 0?void 0:r.access_token)!==null&&s!==void 0?s:void 0})})}catch(n){if(N(n))return{data:null,error:n};throw n}}async _refreshAccessToken(e){const n=`#_refreshAccessToken(${e.substring(0,5)}...)`;this._debug(n,"begin");try{const r=Date.now();return await ag(async s=>(s>0&&await lg(200*Math.pow(2,s-1)),this._debug(n,"refreshing attempt",s),await R(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:e},headers:this.headers,xform:Xe})),(s,i)=>{const o=200*Math.pow(2,s);return i&&Gi(i)&&Date.now()+o-r<an})}catch(r){if(this._debug(n,"error",r),N(r))return{data:{session:null,user:null},error:r};throw r}finally{this._debug(n,"end")}}_isValidSession(e){return typeof e=="object"&&e!==null&&"access_token"in e&&"refresh_token"in e&&"expires_at"in e}async _handleProviderSignIn(e,n){const r=await this._getUrlForProvider(`${this.url}/authorize`,e,{redirectTo:n.redirectTo,scopes:n.scopes,queryParams:n.queryParams});return this._debug("#_handleProviderSignIn()","provider",e,"options",n,"url",r),Me()&&!n.skipBrowserRedirect&&window.location.assign(r),{data:{provider:e,url:r},error:null}}async _recoverAndRefresh(){var e,n;const r="#_recoverAndRefresh()";this._debug(r,"begin");try{const s=await Ut(this.storage,this.storageKey);if(s&&this.userStorage){let o=await Ut(this.userStorage,this.storageKey+"-user");!this.storage.isServer&&Object.is(this.storage,this.userStorage)&&!o&&(o={user:s.user},await un(this.userStorage,this.storageKey+"-user",o)),s.user=(e=o==null?void 0:o.user)!==null&&e!==void 0?e:Yi()}else if(s&&!s.user&&!s.user){const o=await Ut(this.storage,this.storageKey+"-user");o&&(o!=null&&o.user)?(s.user=o.user,await dt(this.storage,this.storageKey+"-user"),await un(this.storage,this.storageKey,s)):s.user=Yi()}if(this._debug(r,"session from storage",s),!this._isValidSession(s)){this._debug(r,"session is not valid"),s!==null&&await this._removeSession();return}const i=((n=s.expires_at)!==null&&n!==void 0?n:1/0)*1e3-Date.now()<Qi;if(this._debug(r,`session has${i?"":" not"} expired with margin of ${Qi}
239s`),i){if(this.autoRefreshToken&&s.refresh_token){const{error:o}=await this._callRefreshToken(s.refresh_token);o&&(console.error(o),Gi(o)||(this._debug(r,"refresh failed with a non-retryable error, removing the session",o),await this._removeSession()))}}else if(s.user&&s.user.__isUserNotAvailableProxy===!0)try{const{data:o,error:l}=await this._getUser(s.access_token);!l&&(o!=null&&o.user)?(s.user=o.user,await this._saveSession(s),await this._notifyAllSubscribers("SIGNED_IN",s)):this._debug(r,"could not get user data, skipping SIGNED_IN notification")}catch(o){console.error("Error getting user data:",o),this._debug(r,"error getting user data, skipping SIGNED_IN notification",o)}else await this._notifyAllSubscribers("SIGNED_IN",s)}catch(s){this._debug(r,"error",s),console.error(s);return}finally{this._debug(r,"end")}}async _callRefreshToken(e){var n,r;if(!e)throw new ht;if(this.refreshingDeferred)return this.refreshingDeferred.promise;const s=`#_callRefreshToken(${e.substring(0,5)}...)`;this._debug(s,"begin");try{this.refreshingDeferred=new mi;const{data:i,error:o}=await this._refreshAccessToken(e);if(o)throw o;if(!i.session)throw new ht;await this._saveSession(i.session),await this._notifyAllSubscribers("TOKEN_REFRESHED",i.session);const l={session:i.session,error:null};return this.refreshingDeferred.resolve(l),l}catch(i){if(this._debug(s,"error",i),N(i)){const o={session:null,error:i};return Gi(i)||await this._removeSession(),(n=this.refreshingDeferred)===null||n===void 0||n.resolve(o),o}throw(r=this.refreshingDeferred)===null||r===void 0||r.reject(i),i}finally{this.refreshingDeferred=null,this._debug(s,"end")}}async _notifyAllSubscribers(e,n,r=!0){const s=`#_notifyAllSubscribers(${e})`;this._debug(s,"begin",n,`broadcast = ${r}`);try{this.broadcastChannel&&r&&this.broadcastChannel.postMessage({event:e,session:n});const i=[],o=Array.from(this.stateChangeEmitters.values()).map(async l=>{try{await l.callback(e,n)}catch(a){i.push(a)}});if(await Promise.all(o),i.length>0){for(let l=0;l<i.length;l+=1)console.error(i[l]);throw i[0]}}finally{this._debug(s,"end")}}async _saveSession(e){this._debug("#_saveSession()",e),this.suppressGetSessionWarning=!0;const n=Object.assign({},e),r=n.user&&n.user.__isUserNotAvailableProxy===!0;if(this.userStorage){!r&&n.user&&await un(this.userStorage,this.storageKey+"-user",{user:n.user});const s=Object.assign({},n);delete s.user;const i=Eu(s);await un(this.storage,this.storageKey,i)}else{const s=Eu(n);await un(this.storage,this.storageKey,s)}}async _removeSession(){this._debug("#_removeSession()"),await dt(this.storage,this.storageKey),await dt(this.storage,this.storageKey+"-code-verifier"),await dt(this.storage,this.storageKey+"-user"),this.userStorage&&await dt(this.userStorage,this.storageKey+"-user"),await this._notifyAllSubscribers("SIGNED_OUT",null)}_removeVisibilityChangedCallback(){this._debug("#_removeVisibilityChangedCallback()");const e=this.visibilityChangedCallback;this.visibilityChangedCallback=null;try{e&&Me()&&(window!=null&&window.removeEventListener)&&window.removeEventListener("visibilitychange",e)}catch(n){console.error("removing visibilitychange callback failed",n)}}async _startAutoRefresh(){await this._stopAutoRefresh(),this._debug("#_startAutoRefresh()");const e=setInterval(()=>this._autoRefreshTokenTick(),an);this.autoRefreshTicker=e,e&&typeof e=="object"&&typeof e.unref=="function"?e.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(e),setTimeout(async()=>{await this.initializePromise,await this._autoRefreshTokenTick()},0)}async _stopAutoRefresh(){this._debug("#_stopAutoRefresh()");const e=this.autoRefreshTicker;this.autoRefreshTicker=null,e&&clearInterval(e)}async startAutoRefresh(){this._removeVisibilityChangedCallback(),await this._startAutoRefresh()}async stopAutoRefresh(){this._removeVisibilityChangedCallback(),await this._stopAutoRefresh()}async _autoRefreshTokenTick(){this._debug("#_autoRefreshTokenTick()","begin");try{await this._acquireLock(0,async()=>{try{const e=Date.now();try{return await this._useSession(async n=>{const{data:{session:r}}=n;if(!r||!r.refresh_token||!r.expires_at){this._debug("#_autoRefreshTokenTick()","no session");return}const s=Math.floor((r.expires_at*1e3-e)/an);this._debug("#_autoRefreshTokenTick()",`access token expires in ${s} ticks, a tick lasts ${an}ms, refresh threshold is ${Zo} ticks`),s<=Zo&&await this._callRefreshToken(r.refresh_token)})}catch(n){console.error("Auto refresh tick failed with error. This is likely a transient error.",n)}}finally{this._debug("#_autoRefreshTokenTick()","end")}})}catch(e){if(e.isAcquireTimeout||e instanceof mh)this._debug("auto refresh token tick lock not available");else throw e}}async _handleVisibilityChange(){if(this._debug("#_handleVisibilityChange()"),!Me()||!(window!=null&&window.addEventListener))return this.autoRefreshToken&&this.startAutoRefresh(),!1;try{this.visibilityChangedCallback=async()=>await this._onVisibilityChanged(!1),window==null||window.addEventListener("visibilitychange",this.visibilityChangedCallback),await this._onVisibilityChanged(!0)}catch(e){console.error("_handleVisibilityChange",e)}}async _onVisibilityChanged(e){const n=`#_onVisibilityChanged(${e})`;this._debug(n,"visibilityState",document.visibilityState),document.visibilityState==="visible"?(this.autoRefreshToken&&this._startAutoRefresh(),e||(
239await this.initializePromise,await this._acquireLock(-1,async()=>{if(document.visibilityState!=="visible"){this._debug(n,"acquired the lock to recover the session, but the browser visibilityState is no longer visible, aborting");return}await this._recoverAndRefresh()}))):document.visibilityState==="hidden"&&this.autoRefreshToken&&this._stopAutoRefresh()}async _getUrlForProvider(e,n,r){const s=[`provider=${encodeURIComponent(n)}`];if(r!=null&&r.redirectTo&&s.push(`redirect_to=${encodeURIComponent(r.redirectTo)}`),r!=null&&r.scopes&&s.push(`scopes=${encodeURIComponent(r.scopes)}`),this.flowType==="pkce"){const[i,o]=await rn(this.storage,this.storageKey),l=new URLSearchParams({code_challenge:`${encodeURIComponent(i)}`,code_challenge_method:`${encodeURIComponent(o)}`});s.push(l.toString())}if(r!=null&&r.queryParams){const i=new URLSearchParams(r.queryParams);s.push(i.toString())}return r!=null&&r.skipBrowserRedirect&&s.push(`skip_http_redirect=${r.skipBrowserRedirect}`),`${e}?${s.join("&")}`}async _unenroll(e){try{return await this._useSession(async n=>{var r;const{data:s,error:i}=n;return i?{data:null,error:i}:await R(this.fetch,"DELETE",`${this.url}/factors/${e.factorId}`,{headers:this.headers,jwt:(r=s==null?void 0:s.session)===null||r===void 0?void 0:r.access_token})})}catch(n){if(N(n))return{data:null,error:n};throw n}}async _enroll(e){try{return await this._useSession(async n=>{var r,s;const{data:i,error:o}=n;if(o)return{data:null,error:o};const l=Object.assign({friendly_name:e.friendlyName,factor_type:e.factorType},e.factorType==="phone"?{phone:e.phone}:{issuer:e.issuer}),{data:a,error:u}=await R(this.fetch,"POST",`${this.url}/factors`,{body:l,headers:this.headers,jwt:(r=i==null?void 0:i.session)===null||r===void 0?void 0:r.access_token});return u?{data:null,error:u}:(e.factorType==="totp"&&(!((s=a==null?void 0:a.totp)===null||s===void 0)&&s.qr_code)&&(a.totp.qr_code=`data:image/svg+xml;utf-8,${a.totp.qr_code}`),{data:a,error:null})})}catch(n){if(N(n))return{data:null,error:n};throw n}}async _verify(e){return this._acquireLock(-1,async()=>{try{return await this._useSession(async n=>{var r;const{data:s,error:i}=n;if(i)return{data:null,error:i};const{data:o,error:l}=await R(this.fetch,"POST",`${this.url}/factors/${e.factorId}/verify`,{body:{code:e.code,challenge_id:e.challengeId},headers:this.headers,jwt:(r=s==null?void 0:s.session)===null||r===void 0?void 0:r.access_token});return l?{data:null,error:l}:(await this._saveSession(Object.assign({expires_at:Math.round(Date.now()/1e3)+o.expires_in},o)),await this._notifyAllSubscribers("MFA_CHALLENGE_VERIFIED",o),{data:o,error:l})})}catch(n){if(N(n))return{data:null,error:n};throw n}})}async _challenge(e){return this._acquireLock(-1,async()=>{try{return await this._useSession(async n=>{var r;const{data:s,error:i}=n;return i?{data:null,error:i}:await R(this.fetch,"POST",`${this.url}/factors/${e.factorId}/challenge`,{body:{channel:e.channel},headers:this.headers,jwt:(r=s==null?void 0:s.session)===null||r===void 0?void 0:r.access_token})})}catch(n){if(N(n))return{data:null,error:n};throw n}})}async _challengeAndVerify(e){const{data:n,error:r}=await this._challenge({factorId:e.factorId});return r?{data:null,error:r}:await this._verify({factorId:e.factorId,challengeId:n.id,code:e.code})}async _listFactors(){const{data:{user:e},error:n}=await this.getUser();if(n)return{data:null,error:n};const r=(e==null?void 0:e.factors)||[],s=r.filter(o=>o.factor_type==="totp"&&o.status==="verified"),i=r.filter(o=>o.factor_type==="phone"&&o.status==="verified");return{data:{all:r,totp:s,phone:i},error:null}}async _getAuthenticatorAssuranceLevel(){return this._acquireLock(-1,async()=>await this._useSession(async e=>{var n,r;const{data:{session:s},error:i}=e;if(i)return{data:null,error:i};if(!s)return{data:{currentLevel:null,nextLevel:null,currentAuthenticationMethods:[]},error:null};const{payload:o}=Ji(s.access_token);let l=null;o.aal&&(l=o.aal);let a=l;((r=(n=s.user.factors)===null||n===void 0?void 0:n.filter(f=>f.status==="verified"))!==null&&r!==void 0?r:[]).length>0&&(a="aal2");const c=o.amr||[];return{data:{currentLevel:l,nextLevel:a,currentAuthenticationMethods:c},error:null}}))}async fetchJwk(e,n={keys:[]}){let r=n.keys.find(l=>l.kid===e);if(r)return r;const s=Date.now();if(r=this.jwks.keys.find(l=>l.kid===e),r&&this.jwks_cached_at+Vm>s)return r;const{data:i,error:o}=await R(this.fetch,"GET",`${this.url}/.well-known/jwks.json`,{headers:this.headers});if(o)throw o;return!i.keys||i.keys.length===0||(this.jwks=i,this.jwks_cached_at=s,r=i.keys.find(l=>l.kid===e),!r)?null:r}async getClaims(e,n={}){try{let r=e;if(!r){const{data:v,error:w}
239=await this.getSession();if(w||!v.session)return{data:null,error:w};r=v.session.access_token}const{header:s,payload:i,signature:o,raw:{header:l,payload:a}}=Ji(r);n!=null&&n.allowExpired||mg(i.exp);const u=!s.alg||s.alg.startsWith("HS")||!s.kid||!("crypto"in globalThis&&"subtle"in globalThis.crypto)?null:await this.fetchJwk(s.kid,n!=null&&n.keys?{keys:n.keys}:n==null?void 0:n.jwks);if(!u){const{error:v}=await this.getUser(r);if(v)throw v;return{data:{claims:i,header:s,signature:o},error:null}}const c=gg(s.alg),f=await crypto.subtle.importKey("jwk",u,c,!0,["verify"]);if(!await crypto.subtle.verify(c,f,o,tg(`${l}.${a}`)))throw new nl("Invalid JWT signature");return{data:{claims:i,header:s,signature:o},error:null}}catch(r){if(N(r))return{data:null,error:r};throw r}}}Rr.nextInstanceID=0;const Rg=Rr;class Ag extends Rg{constructor(e){super(e)}}var Lg=function(t,e,n,r){function s(i){return i instanceof n?i:new n(function(o){o(i)})}return new(n||(n=Promise))(function(i,o){function l(c){try{u(r.next(c))}catch(f){o(f)}}function a(c){try{u(r.throw(c))}catch(f){o(f)}}function u(c){c.done?i(c.value):s(c.value).then(l,a)}u((r=r.apply(t,e||[])).next())})};class Ig{constructor(e,n,r){var s,i,o;this.supabaseUrl=e,this.supabaseKey=n;const l=zm(e);if(!n)throw new Error("supabaseKey is required.");this.realtimeUrl=new URL("realtime/v1",l),this.realtimeUrl.protocol=this.realtimeUrl.protocol.replace("http","ws"),this.authUrl=new URL("auth/v1",l),this.storageUrl=new URL("storage/v1",l),this.functionsUrl=new URL("functions/v1",l);const a=`sb-${l.hostname.split(".")[0]}-auth-token`,u={db:Pm,realtime:Rm,auth:Object.assign(Object.assign({},Om),{storageKey:a}),global:Nm},c=Dm(r??{},u);this.storageKey=(s=c.auth.storageKey)!==null&&s!==void 0?s:"",this.headers=(i=c.global.headers)!==null&&i!==void 0?i:{},c.accessToken?(this.accessToken=c.accessToken,this.auth=new Proxy({},{get:(f,m)=>{throw new Error(`@supabase/supabase-js: Supabase Client is configured with the accessToken option, accessing supabase.auth.${String(m)} is not possible`)}})):this.auth=this._initSupabaseAuthClient((o=c.auth)!==null&&o!==void 0?o:{},this.headers,c.global.fetch),this.fetch=$m(n,this._getAccessToken.bind(this),c.global.fetch),this.realtime=this._initRealtimeClient(Object.assign({headers:this.headers,accessToken:this._getAccessToken.bind(this)},c.realtime)),this.rest=new J0(new URL("rest/v1",l).href,{headers:this.headers,schema:c.db.schema,fetch:this.fetch}),this.storage=new Cm(this.storageUrl.href,this.headers,this.fetch,r==null?void 0:r.storage),c.accessToken||this._listenForAuthEvents()}get functions(){return new T0(this.functionsUrl.href,{headers:this.headers,customFetch:this.fetch})}from(e){return this.rest.from(e)}schema(e){return this.rest.schema(e)}rpc(e,n={},r={}){return this.rest.rpc(e,n,r)}channel(e,n={config:{}}){return this.realtime.channel(e,n)}getChannels(){return this.realtime.getChannels()}removeChannel(e){return this.realtime.removeChannel(e)}removeAllChannels(){return this.realtime.removeAllChannels()}_getAccessToken(){var e,n;return Lg(this,void 0,void 0,function*(){if(this.accessToken)return yield this.accessToken();const{data:r}=yield this.auth.getSession();return(n=(e=r.session)===null||e===void 0?void 0:e.access_token)!==null&&n!==void 0?n:this.supabaseKey})}_initSupabaseAuthClient({autoRefreshToken:e,persistSession:n,detectSessionInUrl:r,storage:s,userStorage:i,storageKey:o,flowType:l,lock:a,debug:u},c,f){const m={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new Ag({url:this.authUrl.href,headers:Object.assign(Object.assign({},m),c),storageKey:o,autoRefreshToken:e,persistSession:n,detectSessionInUrl:r,storage:s,userStorage:i,flowType:l,lock:a,debug:u,fetch:f,hasCustomAuthorizationHeader:Object.keys(this.headers).some(v=>v.toLowerCase()==="authorization")})}_initRealtimeClient(e){return new fm(this.realtimeUrl.href,Object.assign(Object.assign({},e),{params:Object.assign({apikey:this.supabaseKey},e==null?void 0:e.params)}))}_listenForAuthEvents(){return this.auth.onAuthStateChange((n,r)=>{this._handleTokenChanged(n,"CLIENT",r==null?void 0:r.access_token)})}_handleTokenChanged(e,n,r){(e==="TOKEN_REFRESHED"||e==="SIGNED_IN")&&this.changedAccessToken!==r?this.changedAccessToken=r:e==="SIGNED_OUT"&&(this.realtime.setAuth(),n=="STORAGE"&&this.auth.signOut(),this.changedAccessToken=void 0)}}const $g=(t,e,n)=>new Ig(t,e,n);function Ug(){if(typeof window<"u"||typeof process>"u")return!1;const t=process.version;if(t==null)return!1;const e=t.match(/^v(\d+)\./);return e?parseInt(e[1],10)<=18:!1}Ug()&&console.warn("â ï¸ Node.js 18 and below are deprecated and will no longer be supported in future versions of @supabase/supabase-js. Please upgrade to N
239ode.js 20 or later. For more information, visit: https://github.com/orgs/supabase/discussions/37217");const Mg="https://yjookrgpblxegtdwhlln.supabase.co",Dg="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Inlqb29rcmdwYmx4ZWd0ZHdobGxuIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NjA3MzM2MzUsImV4cCI6MjA3NjMwOTYzNX0.cJh2K6ZDzKwy7LxkA_I_ok1zglHlYWyYdUlzkpPtCus",Fr=$g(Mg,Dg),zg={Lightbulb:qd,Tv:v0,Home:t0,Heart:Vd,Palette:c0,Microscope:a0,Shield:f0,Music:u0,BookOpen:Qp};function Fg(){const[t,e]=D.useState([]),[n,r]=D.useState(!0);return D.useEffect(()=>{async function s(){const{data:i,error:o}=await Fr.from("segments").select("*").order("order_index",{ascending:!0});o?console.error("Error fetching segments:",o):i&&e(i),r(!1)}s()},[]),n?d.jsx("section",{id:"segments",className:"py-20 bg-gradient-to-b from-white to-amber-50",children:d.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:d.jsx("div",{className:"text-center",children:d.jsx("p",{className:"text-xl text-gray-600",children:"Carregando..."})})})}):d.jsx("section",{id:"segments",className:"py-20 bg-gradient-to-b from-white to-amber-50",children:d.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[d.jsxs("div",{className:"text-center mb-16",children:[d.jsx("h2",{className:"text-4xl font-bold text-gray-900 mb-4",children:"Segmentos que Atendemos"}),d.jsx("p",{className:"text-xl text-gray-600 max-w-3xl mx-auto",children:"Entregamos kit lanches personalizados de verdade, ajustados à s demandas e preferências de cada setor. Tudo com qualidade, sabor e foco na satisfação da sua equipe."})]}),d.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8",children:t.map(s=>{const i=zg[s.icon_name]||qd;return d.jsxs("div",{className:"group bg-white rounded-2xl overflow-hidden shadow-md hover:shadow-2xl transition-all duration-300 transform hover:-translate-y-2",children:[d.jsxs("div",{className:"relative h-48 overflow-hidden",children:[d.jsx("img",{src:s.image_url,alt:s.title,className:"w-full h-full object-cover transition-transform duration-500 group-hover:scale-110"}),d.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/60 to-transparent"}),d.jsx("div",{className:"absolute bottom-4 left-4 bg-amber-500 p-3 rounded-full",children:d.jsx(i,{className:"w-6 h-6 text-white"})})]}),d.jsxs("div",{className:"p-6",children:[d.jsx("h3",{className:"text-xl font-bold text-gray-900 mb-3 group-hover:text-amber-600 transition-colors",children:s.title}),d.jsx("p",{className:"text-gray-600 leading-relaxed",children:s.description})]})]},s.id)})})]})})}function Bg(){const t=()=>{var e;(e=document.getElementById("contact"))==null||e.scrollIntoView({behavior:"smooth"})};return d.jsx("section",{id:"about",className:"py-20 px-6 lg:px-8 bg-white",children:d.jsx("div",{className:"max-w-7xl mx-auto",children:d.jsxs("div",{className:"grid lg:grid-cols-2 gap-12 items-center",children:[d.jsxs("div",{className:"space-y-6",children:[d.jsx("h2",{className:"text-4xl font-bold text-gray-900",children:"Sobre a Bonaliment"}),d.jsxs("div",{className:"space-y-4 text-gray-700 leading-relaxed text-lg",children:[d.jsx("p",{children:"Com mais de 40 anos no mercado, a Bona é especialista em transformar alimentação corporativa em momentos memoráveis. Atendemos empresas que valorizam praticidade, sabor e excelência, com soluções 100% personalizadas para cada necessidade."}),d.jsx("p",{children:"Nossos kits, lanches, sobremesas e eventos são pensados nos mÃnimos detalhes: desde a produção artesanal com acompanhamento nutricional, até a entrega com logÃstica impecável."}),d.jsx("p",{children:"De um coffee break ágil a grandes eventos corporativos, somos o parceiro que cuida de tudo, com qualidade, pontualidade e sofisticação. Você não precisa se preocupar com nada, a Bona cuida de tudo por você."})]}),d.jsxs("div",{className:"grid grid-cols-3 gap-4 pt-4",children:[d.jsxs("div",{className:"bg-bona-green/10 p-6 rounded-xl text-center",children:[d.jsx(Wd,{className:"w-8 h-8 text-bona-green mx-auto mb-2"}),d.jsx("p",{className:"text-2xl font-bold text-gray-900",children:"+40"}),d.jsx("p",{className:"text-sm text-gray-600",children:"Anos de Mercado"})]}),d.jsxs("div",{className:"bg-bona-orange/10 p-6 rounded-xl text-center",children:[d.jsx(Bd,{className:"w-8 h-8 text-bona-orange mx-auto mb-2"}),d.jsx("p",{className:"text-2xl font-bold text-gray-900",children:"+5000"}),d.jsx("p",{className:"text-sm text-gray-600",children:"Empresas Atendidas"})]}),d.jsxs("div",{className:"bg-bona-green/10 p-6 rounded-xl text-center",children:[d.jsx(m0,{className:"w-8 h-8 text-bona-green mx-auto mb-2"}),d.jsx("p",{className:"text-2xl font-bold text-gray-900",children:"100%"}),d.jsx("p",{className:"text-sm text-gray-600",children:"Foco B2B"})]})]}),d.jsx("button",{onClick:t,className:"bg-bona-orange hover:bg-bona-orange/90 text-white px-8 py-4 rounded-lg text-lg font-semibold transition-all duration-300 shadow-lg hover:shadow-xl transform hover:-translate-y-1",children:"Faça Seu Orçamento"})]}),d.jsx("div",{className:"relative",children:d.jsx("div",{className:"aspect-[4/3] bg-gradient-to-br from-bona-green/10 to-emerald-50 rounded-3xl shadow-2xl overflow-hidden",children:d.jsx("img",{src:"https://bonaliment.com.br/wp-content/uploads/2024/12/Sobre-a-bona-1.jpg",alt:"Equipe Bonaliment preparando kits lanche",className:"w-full h-full object-cover"})})})]})})})}const Wg={Coffee:Hd,Utensils:w0,Cookie:Xp,Gift:e0,Users:y0,ClipboardCheck:Jp};
239function Hg(){const[t,e]=D.useState([]),[n,r]=D.useState(!0);return D.useEffect(()=>{async function s(){const{data:i,error:o}=await Fr.from("services").select("*").order("order_index",{ascending:!0});o?console.error("Error fetching services:",o):i&&e(i),r(!1)}s()},[]),n?d.jsx("section",{id:"services",className:"py-20 px-6 lg:px-8 bg-gradient-to-br from-slate-50 to-gray-50",children:d.jsx("div",{className:"max-w-7xl mx-auto",children:d.jsx("div",{className:"text-center",children:d.jsx("p",{className:"text-xl text-gray-600",children:"Carregando..."})})})}):d.jsx("section",{id:"services",className:"py-20 px-6 lg:px-8 bg-gradient-to-br from-slate-50 to-gray-50",children:d.jsxs("div",{className:"max-w-7xl mx-auto",children:[d.jsxs("div",{className:"text-center mb-16",children:[d.jsx("h2",{className:"text-4xl font-bold text-gray-900 mb-4",children:"Nossos Produtos"}),d.jsx("p",{className:"text-xl text-gray-600 max-w-2xl mx-auto",children:"Do café da manhã ao lanche da tarde: opções frescas e deliciosas para cada momento do dia"})]}),d.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-8",children:t.map(s=>{const i=Wg[s.icon_name]||Hd;return d.jsx("div",{className:"bg-white rounded-2xl shadow-lg overflow-hidden hover:shadow-2xl transition-all duration-300 transform hover:-translate-y-2 group",children:d.jsx("div",{className:"p-6",children:d.jsxs("div",{className:"flex items-start gap-4",children:[d.jsx("div",{className:"bg-bona-green/10 p-3 rounded-xl group-hover:bg-bona-green transition-colors duration-300",children:d.jsx(i,{className:"w-6 h-6 text-bona-green group-hover:text-white transition-colors duration-300"})}),d.jsxs("div",{className:"flex-1",children:[d.jsx("h3",{className:"text-lg font-bold text-gray-900 mb-2",children:s.title}),d.jsx("p",{className:"text-gray-600 leading-relaxed text-sm",children:s.description})]})]})})},s.id)})}),d.jsx("div",{className:"mt-12 text-center",children:d.jsx("a",{href:"#contato",style:{display:"inline-block",padding:"14px 28px",backgroundColor:"#003087",color:"#fff",fontWeight:600,fontSize:"16px",textDecoration:"none",borderRadius:"8px",boxShadow:"0px 2px 6px rgba(0,0,0,0.1)",fontFamily:"Arial, sans-serif"},children:"Quero esse cardápio para minha empresa"})})]})})}function Vg(){const[t,e]=D.useState([]),[n,r]=D.useState(!0);return D.useEffect(()=>{async function s(){const{data:i,error:o}=await Fr.from("testimonials").select("*").order("order_index",{ascending:!0});o?console.error("Error fetching testimonials:",o):i&&e(i),r(!1)}s()},[]),n?d.jsx("section",{id:"testimonials",className:"py-20 px-6 lg:px-8 bg-white",children:d.jsx("div",{className:"max-w-7xl mx-auto",children:d.jsx("div",{className:"text-center",children:d.jsx("p",{className:"text-xl text-gray-600",children:"Carregando..."})})})}):d.jsx("section",{id:"testimonials",className:"py-20 px-6 lg:px-8 bg-white",children:d.jsxs("div",{className:"max-w-7xl mx-auto",children:[d.jsxs("div",{className:"text-center mb-16",children:[d.jsx("h2",{className:"text-4xl font-bold text-gray-900 mb-4",children:"O Que Nossos Clientes Dizem"}),d.jsx("p",{className:"text-xl text-gray-600 max-w-2xl mx-auto",children:"A satisfação de nossos clientes é nossa maior recompensa"})]}),d.jsx("div",{className:"grid md:grid-cols-3 gap-8",children:t.map(s=>d.jsxs("div",{className:"bg-gradient-to-br from-bona-green/5 to-emerald-50 rounded-2xl p-8 shadow-lg hover:shadow-xl transition-shadow duration-300 relative",children:[d.jsx(h0,{className:"absolute top-6 right-6 w-12 h-12 text-bona-green/20"}),d.jsxs("div",{className:"flex items-center gap-4 mb-6 relative z-10",children:[d.jsx("img",{src:s.avatar_url,alt:s.name,className:"w-16 h-16 rounded-full object-cover border-4 border-white shadow-md"}),d.jsxs("div",{children:[d.jsx("h3",{className:"font-bold text-gray-900",children:s.name}),d.jsx("p",{className:"text-sm text-gray-600",children:s.role}),d.jsx("p",{className:"text-sm text-gray-500",children:s.company})]})]}),d.jsx("div",{className:"flex gap-1 mb-4",children:[...Array(5)].map((i,o)=>d.jsx(p0,{className:"w-5 h-5 fill-yellow-400 text-yellow-400"},o))}),d.jsxs("p",{className:"text-gray-700 leading-relaxed italic",children:['"',s.content,'"']})]},s.id))})]})})}function qg(){const t=D.useRef(null),[e,n]=D.useState(!1),[r,s]=D.useState(0),[i,o]=D.useState(0),[l,a]=D.useState([]),[u,c]=D.useState(!0);D.useEffect(()=>{async function h(){const{data:p,error:y}=await Fr.from("clients").select("*").order("order_index",{ascending:!0});y?console.error("Error fetching clients:",y):p&&a(p),c(!1)}h()},[]),D.useEffect(()=>{const h=t.current;if(!h)return;const y=setInterval(()=>{h&&!e&&(h.scrollLeft+=1,h.scrollLeft>=h.scrollWidth/2&&(h.scrollLeft=0))},30);return()=>clearInterval(y)},[e]);const f=h=>{t.current&&(n(!0),s(h.pageX-t.current.offsetLeft),o(t.current.scrollLeft))},m=h=>{if(!e||!t.current)return;h.preventDefault();const y=(h.pageX-t.current.offsetLeft-r)*2;t.current.scrollLeft=i-y},v=()=>{n(!1)},w=()=>{n(!1)},_=h=>{t.current&&(n(!0),s(h.touches[0].pageX-t.current.offsetLeft),o(t.current.scrollLeft))},j=h=>{if(!e||!t.current)return;const y=(h.touches[0].pageX-t.current.offsetLeft-r)*2;t.current.scrollLeft=i-y},g=()=>{n(!1)};return u?d.jsx("section",{id:"clients",className:"py-20 bg-white overflow-hidden",children:d.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:d.jsx("div",{className:"text-center",children:d.jsx("p",{className:"text-xl text-gray-600",children:"Carregando..."})})})}):d.jsxs("section",{id:"clients",className:"py-20 bg-white overflow-hidden",children:[d.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[d.jsxs("div",{className:"text-center mb-16",children:[d.jsx("h2",{className:"text-4xl font-bold text-gray-900 mb-4",children:"Empresas que Confiam na Bonaliment"}),d.jsx("p",{className:"text-xl text-gray-600 max-w-3xl mx-auto",children:"Empresas que confiaram na Bonaliment e viram seus eventos e equipes transformados com nossas soluções."})]}),d.jsx("div",{className:"relative",children:d.jsx("div",{ref:t,className:`flex overflow-x-auto scrollbar-hide ${e?"curs
239or-grabbing":"cursor-grab"}`,onMouseDown:f,onMouseMove:m,onMouseUp:v,onMouseLeave:w,onTouchStart:_,onTouchMove:j,onTouchEnd:g,style:{scrollBehavior:e?"auto":"smooth"},children:d.jsx("div",{className:"flex gap-16 px-8 py-8",children:[...l,...l,...l].map((h,p)=>d.jsx("div",{className:"flex-shrink-0 select-none",draggable:!1,children:d.jsx("img",{src:h.logo_url,alt:h.name,className:"h-20 w-auto object-contain pointer-events-none",draggable:!1})},`${h.id}-${p}`))})})})]}),d.jsx("style",{children:` 240 .scrollbar-hide::-webkit-scrollbar { 241 display: none; 242 } 243 244 .scrollbar-hide { 245 -ms-overflow-style: none; 246 scrollbar-width: none; 247 } 248 `})]})}function Kg(){const t="5511993350167";D.useEffect(()=>{const n="formulario-lp-kit-lanche-20603ccd5b97e3997e22",r=document.getElementById(n);if(r&&r.children.length>0)return;if(document.querySelector('script[src*="rdstation-forms"]')){window.RDStationForms&&new window.RDStationForms(n,"UA-126381986-1").createForm(),e();return}const i=document.createElement("script");return i.src="https://d335luupugsy2.cloudfront.net/js/rdstation-forms/stable/rdstation-forms.min.js",i.onload=()=>{window.RDStationForms&&(new window.RDStationForms(n,"UA-126381986-1").createForm(),e())},document.body.appendChild(i),()=>{const o=document.querySelector('script[src*="rdstation-forms"]');o&&o.parentNode&&o.parentNode.removeChild(o)}},[]);const e=()=>{setTimeout(()=>{const n=document.querySelector("#formulario-lp-kit-lanche-20603ccd5b97e3997e22 form");n&&n.addEventListener("submit",r=>{setTimeout(()=>{const s=n.querySelector('input[name="name"]');n.querySelector('input[name="email"]'),n.querySelector('input[name="mobile_phone"]');const i=n.querySelector('input[name="company"]'),o=(s==null?void 0:s.value)||"",l=(i==null?void 0:i.value)||"sua empresa",a=`Olá! Meu nome é ${o}, da empresa ${l}. Acabei de preencher o formulário no site e gostaria de solicitar um orçamento.`,u=`https://wa.me/${t}?text=${encodeURIComponent(a)}`;window.open(u,"_blank")},1e3)})},2e3)};return d.jsx("section",{id:"contact",className:"py-20 px-6 lg:px-8 bg-gradient-to-br from-slate-50 to-gray-50",children:d.jsxs("div",{className:"max-w-7xl mx-auto",children:[d.jsxs("div",{className:"text-center mb-16",children:[d.jsx("h2",{className:"text-4xl font-bold text-gray-900 mb-4",children:"Solicite Seu Orçamento"}),d.jsx("p",{className:"text-xl text-gray-600 max-w-2xl mx-auto",children:"Preencha o formulário e entraremos em contato via WhatsApp"})]}),d.jsxs("div",{className:"grid lg:grid-cols-2 gap-12",children:[d.jsxs("div",{className:"bg-white rounded-2xl p-8 shadow-lg",children:[d.jsx("h3",{className:"text-2xl font-bold text-gray-900 mb-6",children:"Informações de Contato"}),d.jsxs("div",{className:"space-y-6",children:[d.jsxs("div",{className:"flex items-start gap-4",children:[d.jsx("div",{className:"bg-bona-green/10 p-3 rounded-xl",children:d.jsx(o0,{className:"w-6 h-6 text-bona-green"})}),d.jsxs("div",{children:[d.jsx("h4",{className:"font-semibold text-gray-900 mb-1",children:"Endereço"}),d.jsxs("p",{className:"text-gray-600",children:["Rua Oliveira Lima, 509 - Cambuci",d.jsx("br",{}),"São Paulo, SP - CEP 01541-010"]})]})]}),d.jsxs("div",{className:"flex items-start gap-4",children:[d.jsx("div",{className:"bg-bona-green/10 p-3 rounded-xl",children:d.jsx(d0,{className:"w-6 h-6 text-bona-green"})}),d.jsxs("div",{children:[d.jsx("h4",{className:"font-semibold text-gray-900 mb-1",children:"Telefone"}),d.jsx("p",{className:"text-gray-600",children:"(11) 2066-8600"})]})]}),d.jsxs("div",{className:"flex items-start gap-4",children:[d.jsx("div",{className:"bg-bona-green/10 p-3 rounded-xl",children:d.jsx(i0,{className:"w-6 h-6 text-bona-green"})}),d.jsxs("div",{children:[d.jsx("h4",{className:"font-semibold text-gray-900 mb-1",children:"E-mail"}),d.jsx("p",{className:"text-gray-600",children:"[email protected]"})]})]}),d.jsxs("div",{className:"flex items-start gap-4",children:[d.jsx("div",{className:"bg-bona-green/10 p-3 rounded-xl",children:d.jsx(Yp,{className:"w-6 h-6 text-bona-green"})}),d.jsxs("div",{children:[d.jsx("h4",{className:"font-semibold text-gray-900 mb-1",children:"Horário de Atendimento"}),d.jsx("p",{className:"text-gray-600",children:"Segunda a Sexta: 8h à s 18h"})]})]})]})]}),d.jsx("div",{className:"bg-white rounded-2xl p-8 shadow-lg",children:d.jsx("div",{role:"main",id:"formulario-lp-kit-lanche-20603ccd5b97e3997e22"})})]})]})})}function Qg(){const t=e=>{const n=document.getElementById(e);n==null||n.scrollIntoView({behavior:"smooth"})};return d.jsx("footer",{className:"bg-bona-dark text-white py-12 px-6 lg:px-8",children:d.jsxs("div",{className:"max-w-7xl mx-auto",children:[d.jsxs("div",{className:"grid md:grid-cols-4 gap-8 mb-8",children:[d.jsxs("div",{className:"col-span-2",children:[d.jsx("h3",{className:"text-2xl font-bold mb-4",children:"Bonaliment"}),d.jsx("p",{className:"text-gray-300 leading-relaxed mb-4",children:"Especialistas em kits lanche corporativos, oferecendo soluções de alimentação de qualidade para empresas que valorizam seus colaboradores."}),d.jsxs("div",{className:"flex gap-4",children:[d.jsx("a",{href:"https://www.facebook.com/bonalimentalimentacao/",target:"_blank",rel:"noopener noreferrer",className:"bg-slate-800 hover:bg-bona-orange p-3 rounded-full transition-colors duration-300","aria-label":"Facebook",children:d.jsx(Zp,{className:"w-5 h-5"})}),d.jsx("a",{href:"https://www.instagram.com/bonaliment_alimentacao/",target:"_blank",rel:"noopener noreferrer",className:"bg-slate-800 hover:bg-bona-orange p-3 rounded-full transition-colors duration-300","aria-label":"Instagram",children:d.jsx(n0,{className:"w-5 h-5"})}),d.jsx("a",{href:"https://br.linkedin.com/company/bonaliment-ltda",target:"_blank",rel:"noopener noreferrer",className:"bg-slate-800 hover:bg-bona-orange p-3 rounded-full transition-colors duration-300","aria-label":"LinkedIn",children:d.jsx(s0,{className:"w-5 h-5"})})]})]}),d.jsxs("div",{children:[d.jsx("h4",{className:"font-bold text-lg mb-4",children:"Links Rápidos"}),d.jsxs("ul",{className:"space-y-2",children:[d.jsx("li",{children:d.jsx("button",{onClick:()=>t("about"),className:"text-gray-300 hover:text-bona-orange transition-colors",children:"Sobre Nós"})}),d.jsx("li",{children:d.jsx("button",{onClick:()=>t("services"),className:"text-gray-300 hover:text-bona-orange transition-colors",children:"Nossos Serviços"})}),d.jsx("li",{children:d.jsx("button",{onClick:()=>t("testimonials"),className:"text-gray-300 hover:text-bona-orange transition-colors",children:"Depoimentos"})}),d.jsx("li",{children:d.jsx("button",{onClick:()=>t("contact"),className:"text-gray-300 hover:text-bona-orange transition-colors",children:"Contato"})})]})]}),d.jsxs("div",{children:[d.jsx("h4",{className:"font-bold text-lg mb-4",children:"Legal"}),d.jsxs("ul",{className:"space-y-2",children:[d.jsx("li",{children:d.jsx("a",{href:"#",className:"text-gray-300 hover:text-bona-green transition-colors",children:"PolÃtica de Privacidade"})}),d.jsx("li",{children:d.jsx("a",{href:"#",className:"text-gray-300 hover:text-bona-green transition-colors",children:"Termos de Serviço"})}),d.jsx("li",{children:d.jsx("a",{href:"#",className:"text-gray-300 hover:text-bona-green transition-colors",children:"PolÃtica de Cookies"})})]})]})]}),d.jsxs("div",{className:"border-t border-bona-blue pt-8 flex flex-col md:flex-row justify-between items-center gap-4",children:[d.jsxs("p",{className:"text-gray-400 text-sm",children:["© ",new Date().getFullYear()," Bonaliment. Todos os direitos reservados."]}),d.jsxs("p",{className:"text-gray-400 text-sm flex items-center gap-2",children:["Feito com ",d.jsx(Vd,{className:"w-4 h-4 fill-bona-orange text-bona-orange"})," para energizar sua equipe"]})]})]})})}
248function Gg(){const[t,e]=D.useState(!1),n="5511993350167",r=async o=>{try{await Fr.from("whatsapp_clicks").insert([{confirmed:o,user_agent:navigator.userAgent}])}catch(l){console.error("Error tracking click:",l)}},s=()=>{e(!0),r(!1)},i=()=>{r(!0);const l=`https://wa.me/${n}?text=${encodeURIComponent("Olá! Gostaria de solicitar um orçamento para minha empresa.")}`;window.open(l,"_blank"),e(!1)};return d.jsxs(d.Fragment,{children:[d.jsxs("div",{className:"fixed bottom-6 right-6 z-50",children:[d.jsx("div",{className:"absolute inset-0 bg-green-500 rounded-full animate-ping opacity-75"}),d.jsx("button",{onClick:s,className:"relative bg-green-500 hover:bg-green-600 text-white p-4 rounded-full shadow-2xl transition-all duration-300 hover:scale-110","aria-label":"Abrir WhatsApp",children:d.jsx("svg",{viewBox:"0 0 24 24",className:"w-7 h-7 fill-current",xmlns:"http://www.w3.org/2000/svg",children:d.jsx("path",{d:"M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413Z"})})})]}),t&&d.jsx("div",{className:"fixed inset-0 bg-black/50 flex items-center justify-center z-50 p-4",children:d.jsx("div",{className:"bg-white rounded-2xl shadow-2xl max-w-md w-full",children:d.jsxs("div",{className:"p-8 text-center",children:[d.jsx("div",{className:"inline-flex items-center justify-center w-16 h-16 bg-amber-100 rounded-full mb-4",children:d.jsx(Kp,{className:"w-8 h-8 text-amber-600"})}),d.jsx("h3",{className:"text-2xl font-bold text-gray-800 mb-3",children:"Atenção"}),d.jsxs("p",{className:"text-gray-600 mb-6 leading-relaxed",children:["Vendemos ",d.jsx("strong",{children:"exclusivamente para empresas"}),". Não realizamos entregas para pessoas fÃsicas."]}),d.jsxs("div",{className:"flex gap-3",children:[d.jsx("button",{onClick:()=>e(!1),className:"flex-1 px-6 py-3 border-2 border-gray-300 text-gray-700 rounded-lg font-semibold hover:bg-gray-50 transition-colors",children:"Cancelar"}),d.jsx("button",{onClick:i,className:"flex-1 px-6 py-3 bg-green-500 hover:bg-green-600 text-white rounded-lg font-semibold transition-colors shadow-lg",children:"Entendi, Continuar"})]})]})})})]})}function Jg(){return d.jsxs("div",{className:"min-h-screen bg-white",children:[d.jsx(x0,{}),d.jsx(k0,{}),d.jsx(Fg,{}),d.jsx(qg,{}),d.jsx(Hg,{}),d.jsx(Vg,{}),d.jsx(Bg,{}),d.jsx(Kg,{}),d.jsx(Qg,{}),d.jsx(Gg,{})]})}Fd(document.getElementById("root")).render(d.jsx(D.StrictMode,{children:d.jsx(Jg,{})}));
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.