PageSourceSearch

https://brcohn.com/assets/index-DoAPvt1e.js

js brcohn.com collected 2026-10-03 21:52:22 UTC 940,095 bytes, 3,108 lines download raw bytes

vendor: 4,400 bytes, lines 1-2
1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/wine-club-6s2oOnEP.js","assets/Footer-CI__KV1c.js","assets/winery-adair-BQ7iXmy0.js","assets/star-B6v4u2Ut.js","assets/weddings-X99tsYMb.js","assets/utils-DDt1maD9.js","assets/index-DNMQVSoK.js","assets/arrow-right-Bz2JnDBN.js","assets/visit-fdo2iCFK.js","assets/happy-hour-new.webp.asset-BkA-RKHc.js","assets/phone-1kVtmqyW.js","assets/grape-DkmmIt6H.js","assets/unsubscribe-D7RYs0SX.js","assets/private-events-Dpa7A1OK.js","assets/private-events-hero.jpg.asset-Dne0x3PX.js","assets/private-event-request-thank-you-CGf4G-wB.js","assets/private-event-request-DDKgMiW6.js","assets/privacy-qcX9efuE.js","assets/events-BJHsK6D8.js","assets/events-DYWu_dGg.js","assets/donations-DhL0KHPD.js","assets/corporate-venues-wine-country-rdIkAMfu.js","assets/accessibility-BQ1f7nLZ.js","assets/index-DHG97qQz.js","assets/blog.index-ByJKMRPb.js","assets/blog._slug-B6aX7LMj.js","assets/blog._slug-CtmwEgVx.js","assets/contact.index-Cw0-woD5.js","assets/contact-vineyard-DsS0JxJS.js","assets/contact.thank-you-BQCq4eEL.js"])))=>i.map(i=>d[i]);
2function Ak(t,e){for(var a=0;a<e.length;a++){const s=e[a];if(typeof s!="string"&&!Array.isArray(s)){for(const o in s)if(o!=="default"&&!(o in t)){const c=Object.getOwnPropertyDescriptor(s,o);c&&Object.defineProperty(t,o,c.get?c:{enumerable:!0,get:()=>s[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}function Ck(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Yh={exports:{}},jr={};var vy;function Ek(){if(vy)return jr;vy=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function a(s,o,c){var u=null;if(c!==void 0&&(u=""+c),o.key!==void 0&&(u=""+o.key),"key"in o){c={};for(var d in o)d!=="key"&&(c[d]=o[d])}else c=o;return o=c.ref,{$$typeof:t,type:s,key:u,ref:o!==void 0?o:null,props:c}}return jr.Fragment=e,jr.jsx=a,jr.jsxs=a,jr}var wy;function xk(){return wy||(wy=1,Yh.exports=Ek()),Yh.exports}var K=xk(),Qh={exports:{}},he={};var by;function Ok(){if(by)return he;by=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),u=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),m=Symbol.for("react.activity"),w=Symbol.iterator;function b(O){return O===null||typeof O!="object"?null:(O=w&&O[w]||O["@@iterator"],typeof O=="function"?O:null)}var S={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},A=Object.assign,_={};function C(O,H,J){this.props=O,this.context=H,this.refs=_,this.updater=J||S}C.prototype.isReactComponent={},C.prototype.setState=function(O,H){if(typeof O!="object"&&typeof O!="function"&&O!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,O,H,"setState")},C.prototype.forceUpdate=function(O){this.updater.enqueueForceUpdate(this,O,"forceUpdate")};function B(){}B.prototype=C.prototype;function j(O,H,J){this.props=O,this.context=H,this.refs=_,this.updater=J||S}var D=j.prototype=new B;D.constructor=j,A(D,C.prototype),D.isPureReactComponent=!0;var F=Array.isArray;function V(){}var I={H:null,A:null,T:null,S:null},W=Object.prototype.hasOwnProperty;function Q(O,H,J){var X=J.ref;return{$$typeof:t,type:O,key:H,ref:X!==void 0?X:null,props:J}}function se(O,H){return Q(O.type,H,O.props)}function ne(O){return typeof O=="object"&&O!==null&&O.$$typeof===t}function ve(O){var H={"=":"=0",":":"=2"};return"$"+O.replace(/[=:]/g,function(J){return H[J]})}var xe=/\/+/g;function Ye(O,H){return typeof O=="object"&&O!==null&&O.key!=null?ve(""+O.key):H.toString(36)}function qe(O){switch(O.status){case"fulfilled":return O.value;case"rejected":throw O.reason;default:switch(typeof O.status=="string"?O.then(V,V):(O.status="pending",O.then(function(H){O.status==="pending"&&(O.status="fulfilled",O.value=H)},function(H){O.status==="pending"&&(O.status="rejected",O.reason=H)})),O.status){case"fulfilled":return O.value;case"rejected":throw O.reason}}throw O}function U(O,H,J,X,re){var pe=typeof O;(pe==="undefined"||pe==="boolean")&&(O=null);var ke=!1;
vendor: 8,838 bytes, line 2
2if(O===null)ke=!0;else switch(pe){case"bigint":case"string":case"number":ke=!0;break;case"object":switch(O.$$typeof){case t:case e:ke=!0;break;case y:return ke=O._init,U(ke(O._payload),H,J,X,re)}}if(ke)return re=re(O),ke=X===""?"."+Ye(O,0):X,F(re)?(J="",ke!=null&&(J=ke.replace(xe,"$&/")+"/"),U(re,H,J,"",function(jn){return jn})):re!=null&&(ne(re)&&(re=se(re,J+(re.key==null||O&&O.key===re.key?"":(""+re.key).replace(xe,"$&/")+"/")+ke)),H.push(re)),1;ke=0;var Qe=X===""?".":X+":";if(F(O))for(var Le=0;Le<O.length;Le++)X=O[Le],pe=Qe+Ye(X,Le),ke+=U(X,H,J,pe,re);else if(Le=b(O),typeof Le=="function")for(O=Le.call(O),Le=0;!(X=O.next()).done;)X=X.value,pe=Qe+Ye(X,Le++),ke+=U(X,H,J,pe,re);else if(pe==="object"){if(typeof O.then=="function")return U(qe(O),H,J,X,re);throw H=String(O),Error("Objects are not valid as a React child (found: "+(H==="[object Object]"?"object with keys {"+Object.keys(O).join(", ")+"}":H)+"). If you meant to render a collection of children, use an array instead.")}return ke}function Y(O,H,J){if(O==null)return O;var X=[],re=0;return U(O,X,"","",function(pe){return H.call(J,pe,re++)}),X}function le(O){if(O._status===-1){var H=O._result;H=H(),H.then(function(J){(O._status===0||O._status===-1)&&(O._status=1,O._result=J)},function(J){(O._status===0||O._status===-1)&&(O._status=2,O._result=J)}),O._status===-1&&(O._status=0,O._result=H)}if(O._status===1)return O._result.default;throw O._result}var Ae=typeof reportError=="function"?reportError:function(O){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var H=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof O=="object"&&O!==null&&typeof O.message=="string"?String(O.message):String(O),error:O});if(!window.dispatchEvent(H))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",O);return}console.error(O)},Ee={map:Y,forEach:function(O,H,J){Y(O,function(){H.apply(this,arguments)},J)},count:function(O){var H=0;return Y(O,function(){H++}),H},toArray:function(O){return Y(O,function(H){return H})||[]},only:function(O){if(!ne(O))throw Error("React.Children.only expected to receive a single React element child.");return O}};return he.Activity=m,he.Children=Ee,he.Component=C,he.Fragment=a,he.Profiler=o,he.PureComponent=j,he.StrictMode=s,he.Suspense=p,he.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=I,he.__COMPILER_RUNTIME={__proto__:null,c:function(O){return I.H.useMemoCache(O)}},he.cache=function(O){return function(){return O.apply(null,arguments)}},he.cacheSignal=function(){return null},he.cloneElement=function(O,H,J){if(O==null)throw Error("The argument must be a React element, but you passed "+O+".");var X=A({},O.props),re=O.key;if(H!=null)for(pe in H.key!==void 0&&(re=""+H.key),H)!W.call(H,pe)||pe==="key"||pe==="__self"||pe==="__source"||pe==="ref"&&H.ref===void 0||(X[pe]=H[pe]);var pe=arguments.length-2;if(pe===1)X.children=J;else if(1<pe){for(var ke=Array(pe),Qe=0;Qe<pe;Qe++)ke[Qe]=arguments[Qe+2];X.children=ke}return Q(O.type,re,X)},he.createContext=function(O){return O={$$typeof:u,_currentValue:O,_currentValue2:O,_threadCount:0,Provider:null,Consumer:null},O.Provider=O,O.Consumer={$$typeof:c,_context:O},O},he.createElement=function(O,H,J){var X,re={},pe=null;if(H!=null)for(X in H.key!==void 0&&(pe=""+H.key),H)W.call(H,X)&&X!=="key"&&X!=="__self"&&X!=="__source"&&(re[X]=H[X]);var ke=arguments.length-2;if(ke===1)re.children=J;else if(1<ke){for(var Qe=Array(ke),Le=0;Le<ke;Le++)Qe[Le]=arguments[Le+2];re.children=Qe}if(O&&O.defaultProps)for(X in ke=O.defaultProps,ke)re[X]===void 0&&(re[X]=ke[X]);return Q(O,pe,re)},he.createRef=function(){return{current:null}},he.forwardRef=function(O){return{$$typeof:d,render:O}},he.isValidElement=ne,he.lazy=function(O){return{$$typeof:y,_payload:{_status:-1,_result:O},_init:le}},he.memo=function(O,H){return{$$typeof:g,type:O,compare:H===void 0?null:H}},he.startTransition=function(O){var H=I.T,J={};I.T=J;try{var X=O(),re=I.S;re!==null&&re(J,X),typeof X=="object"&&X!==null&&typeof X.then=="function"&&X.then(V,Ae)}catch(pe){Ae(pe)}finally{H!==null&&J.types!==null&&(H.types=J.types),I.T=H}},he.unstable_useCacheRefresh=function(){return I.H.useCacheRefresh()},he.use=function(O){return I.H.use(O)},he.useActionState=function(O,H,J){return I.H.useActionState(O,H,J)},he.useCallback=function(O,H){return I.H.useCallback(O,H)},he.useContext=function(O){return I.H.useContext(O)},he.useDebugValue=function(){},he.useDeferredValue=function(O,H){return I.H.useDeferredValue(O,H)},he.useEffect=function(O,H){return I.H.useEffect(O,H)},he.useEffectEvent=function(O){return I.H.useEffectEvent(O)},he.useId=function(){return I.H.useId()},he.useImperativeHandle=function(O,H,J){return I.H.useImperativeHandle(O,H,J)},he.useInsertionEffect=function(O,H){return I.H.useInsertionEffect(O,H)},he.useLayoutEffect=function(O,H){return I.H.useLayoutEffect(O,H)},he.useMemo=function(O,H){return I.H.useMemo(O,H)},he.useOptimistic=function(O,H){return I.H.useOptimistic(O,H)},he.useReducer=function(O,H,J){return I.H.useReducer(O,H,J)},he.useRef=function(O){return I.H.useRef(O)},he.useState=function(O){return I.H.useState(O)},he.useSyncExternalStore=function(O,H,J){return I.H.useSyncExternalStore(O,H,J)},he.useTransition=function(){return I.H.useTransition()},he.version="19.2.5",he}var Sy;function ho(){return Sy||(Sy=1,Qh.exports=Ok()),Qh.exports}var ie=ho();const Ms=Ck(ie),S4=Ak({__proto__:null,default:Ms},[ie]);var Jh={exports:{}},Mr={},Zh={exports:{}},Xh={};var ky;function Bk(){return ky||(ky=1,(function(t){function e(U,Y){var le=U.length;U.push(Y);e:for(;0<le;){var Ae=le-1>>>1,Ee=U[Ae];if(0<o(Ee,Y))U[Ae]=Y,U[le]=Ee,le=Ae;else break e}}function a(U){return U.length===0?null:U[0]}function s(U){if(U.length===0)return null;var Y=U[0],le=U.pop();if(le!==Y){U[0]=le;e:for(var Ae=0,Ee=U.length,O=Ee>>>1;Ae<O;){var H=2*(Ae+1)-1,J=U[H],X=H+1,re=U[X];if(0>o(J,le))X<Ee&&0>o(re,J)?(U[Ae]=re,U[X]=le,Ae=X):(U[Ae]=J,U[H]=le,Ae=H);else if(X<Ee&&0>o(re,le))U[Ae]=re,U[X]=le,Ae=X;else break e}}return Y}function o(U,Y){var le=U.sortIndex-Y.sortIndex;return le!==0?le:U.id-Y.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;t.unstable_now=function(){return c.now()}}else{var u=Date,d=u.now();t.unstable_now=function(){return u.now()-d}}var p=[],g=[],y=1,m=null,w=3,b=!1,S=!1,A=!1,_=!1,C=typeof setTimeout=="function"?setTimeout:null,B=typeof clearTimeout=="function"?clearTimeout:null,j=typeof setImmediate<"u"?setImmediate:null;function D(U){for(var Y=a(g);Y!==null;){if(Y.callback===null)s(g);else if(Y.startTime<=U)s(g),Y.sortIndex=Y.expirationTime,e(p,Y);else break;Y=a(g)}}function F(U){if(A=!1,D(U),!S)if(a(p)!==null)S=!0,V||(V=!0,ve());else{var Y=a(g);Y!==null&&qe(F,Y.startTime-U)}}var V=!1,I=-1,W=5,Q=-1;function se(){return _?!0:!(t.unstable_now()-Q<W)}function ne(){if(_=!1,V){var U=t.unstable_now();Q=U;var Y=!0;try{e:{S=!1,A&&(A=!1,B(I),I=-1),b=!0;var le=w;try{t:{for(D(U),m=a(p);m!==null&&!(m.expirationTime>U&&se());){var Ae=m.callback;if(typeof Ae=="function"){m.callback=null,w=m.priorityLevel;var Ee=Ae(m.expirationTime<=U);if(U=t.unstable_now(),typeof Ee=="function"){m.callback=Ee,D(U),Y=!0;break t}m===a(p)&&s(p),D(U)}else s(p);m=a(p)}if(m!==null)Y=!0;else{var O=a(g);O!==null&&qe(F,O.startTime-U),Y=!1}}break e}finally{m=null,w=le,b=!1}Y=void 0}}finally{Y?ve():V=!1}}}var ve;if(typeof j=="function")ve=function(){j(ne)};else if(typeof MessageChannel<"u"){var xe=new MessageChannel,Ye=xe.port2;xe.port1.onmessage=ne,ve=function(){Ye.postMessage(null)}}else ve=function(){C(ne,0)};function qe(U,Y){I=C(function(){U(t.unstable_now())},Y)}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(U){U.callback=null},t.unstable_forceFrameRate=function(U){0>U||125<U?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):W=0<U?Math.floor(1e3/U):5},t.unstable_getCurrentPriorityLevel=function(){return w},t.unstable_next=function(U){switch(w){case 1:case 2:case 3:var Y=3;break;default:Y=w}var le=w;w=Y;try{return U()}finally{w=le}},t.unstable_requestPaint=function(){_=!0},t.unstable_runWithPriority=function(U,Y){switch(U){case 1:case 2:case 3:case 4:case 5:break;default:U=3}var le=w;w=U;try{return Y()}finally{w=le}},t.unstable_scheduleCallback=function(U,Y,le){var Ae=t.unstable_now();switch(typeof le=="object"&&le!==null?(le=le.delay,le=typeof le=="number"&&0<le?Ae+le:Ae):le=Ae,U){case 1:var Ee=-1;break;case 2:Ee=250;break;case 5:Ee=1073741823;break;case 4:Ee=1e4;break;default:Ee=5e3}return Ee=le+Ee,U={id:y++,callback:Y,priorityLevel:U,startTime:le,expirationTime:Ee,sortIndex:-1},le>
vendor: 8,411 bytes, lines 2-4
2Ae?(U.sortIndex=le,e(g,U),a(p)===null&&U===a(g)&&(A?(B(I),I=-1):A=!0,qe(F,le-Ae))):(U.sortIndex=Ee,e(p,U),S||b||(S=!0,V||(V=!0,ve()))),U},t.unstable_shouldYield=se,t.unstable_wrapCallback=function(U){var Y=w;return function(){var le=w;w=Y;try{return U.apply(this,arguments)}finally{w=le}}}})(Xh)),Xh}var _y;function jk(){return _y||(_y=1,Zh.exports=Bk()),Zh.exports}var ed={exports:{}},Rt={};var Ty;function Mk(){if(Ty)return Rt;Ty=1;var t=ho();function e(p){var g="https://react.dev/errors/"+p;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)g+="&args[]="+encodeURIComponent(arguments[y])}return"Minified React error #"+p+"; visit "+g+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(){}var s={d:{f:a,r:function(){throw Error(e(522))},D:a,C:a,L:a,m:a,X:a,S:a,M:a},p:0,findDOMNode:null},o=Symbol.for("react.portal");function c(p,g,y){var m=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:m==null?null:""+m,children:p,containerInfo:g,implementation:y}}var u=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(p,g){if(p==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return Rt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,Rt.createPortal=function(p,g){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error(e(299));return c(p,g,null,y)},Rt.flushSync=function(p){var g=u.T,y=s.p;try{if(u.T=null,s.p=2,p)return p()}finally{u.T=g,s.p=y,s.d.f()}},Rt.preconnect=function(p,g){typeof p=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,s.d.C(p,g))},Rt.prefetchDNS=function(p){typeof p=="string"&&s.d.D(p)},Rt.preinit=function(p,g){if(typeof p=="string"&&g&&typeof g.as=="string"){var y=g.as,m=d(y,g.crossOrigin),w=typeof g.integrity=="string"?g.integrity:void 0,b=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;y==="style"?s.d.S(p,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:m,integrity:w,fetchPriority:b}):y==="script"&&s.d.X(p,{crossOrigin:m,integrity:w,fetchPriority:b,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},Rt.preinitModule=function(p,g){if(typeof p=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var y=d(g.as,g.crossOrigin);s.d.M(p,{crossOrigin:y,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0})}}else g==null&&s.d.M(p)},Rt.preload=function(p,g){if(typeof p=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var y=g.as,m=d(y,g.crossOrigin);s.d.L(p,y,{crossOrigin:m,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,type:typeof g.type=="string"?g.type:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0,referrerPolicy:typeof g.referrerPolicy=="string"?g.referrerPolicy:void 0,imageSrcSet:typeof g.imageSrcSet=="string"?g.imageSrcSet:void 0,imageSizes:typeof g.imageSizes=="string"?g.imageSizes:void 0,media:typeof g.media=="string"?g.media:void 0})}},Rt.preloadModule=function(p,g){if(typeof p=="string")if(g){var y=d(g.as,g.crossOrigin);s.d.m(p,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:y,integrity:typeof g.integrity=="string"?g.integrity:void 0})}else s.d.m(p)},Rt.requestFormReset=function(p){s.d.r(p)},Rt.unstable_batchedUpdates=function(p,g){return p(g)},Rt.useFormState=function(p,g,y){return u.H.useFormState(p,g,y)},Rt.useFormStatus=function(){return u.H.useHostTransitionStatus()},Rt.version="19.2.5",Rt}var Ry;function dw(){if(Ry)return ed.exports;Ry=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),ed.exports=Mk(),ed.exports}var Ay;function Dk(){if(Ay)return Mr;Ay=1;var t=jk(),e=ho(),a=dw();function s(n){var i="https://react.dev/errors/"+n;if(1<arguments.length){i+="?args[]="+encodeURIComponent(arguments[1]);for(var r=2;r<arguments.length;r++)i+="&args[]="+encodeURIComponent(arguments[r])}return"Minified React error #"+n+"; visit "+i+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11)}function c(n){var i=n,r=n;if(n.alternate)for(;i.return;)i=i.return;else{n=i;do i=n,(i.flags&4098)!==0&&(r=i.return),n=i.return;while(n)}return i.tag===3?r:null}function u(n){if(n.tag===13){var i=n.memoizedState;if(i===null&&(n=n.alternate,n!==null&&(i=n.memoizedState)),i!==null)return i.dehydrated}return null}function d(n){if(n.tag===31){var i=n.memoizedState;if(i===null&&(n=n.alternate,n!==null&&(i=n.memoizedState)),i!==null)return i.dehydrated}return null}function p(n){if(c(n)!==n)throw Error(s(188))}function g(n){var i=n.alternate;if(!i){if(i=c(n),i===null)throw Error(s(188));return i!==n?null:n}for(var r=n,l=i;;){var h=r.return;if(h===null)break;var f=h.alternate;if(f===null){if(l=h.return,l!==null){r=l;continue}break}if(h.child===f.child){for(f=h.child;f;){if(f===r)return p(h),n;if(f===l)return p(h),i;f=f.sibling}throw Error(s(188))}if(r.return!==l.return)r=h,l=f;else{for(var v=!1,k=h.child;k;){if(k===r){v=!0,r=h,l=f;break}if(k===l){v=!0,l=h,r=f;break}k=k.sibling}if(!v){for(k=f.child;k;){if(k===r){v=!0,r=f,l=h;break}if(k===l){v=!0,l=f,r=h;break}k=k.sibling}if(!v)throw Error(s(189))}}if(r.alternate!==l)throw Error(s(190))}if(r.tag!==3)throw Error(s(188));return r.stateNode.current===r?n:i}function y(n){var i=n.tag;if(i===5||i===26||i===27||i===6)return n;for(n=n.child;n!==null;){if(i=y(n),i!==null)return i;n=n.sibling}return null}var m=Object.assign,w=Symbol.for("react.element"),b=Symbol.for("react.transitional.element"),S=Symbol.for("react.portal"),A=Symbol.for("react.fragment"),_=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),B=Symbol.for("react.consumer"),j=Symbol.for("react.context"),D=Symbol.for("react.forward_ref"),F=Symbol.for("react.suspense"),V=Symbol.for("react.suspense_list"),I=Symbol.for("react.memo"),W=Symbol.for("react.lazy"),Q=Symbol.for("react.activity"),se=Symbol.for("react.memo_cache_sentinel"),ne=Symbol.iterator;function ve(n){return n===null||typeof n!="object"?null:(n=ne&&n[ne]||n["@@iterator"],typeof n=="function"?n:null)}var xe=Symbol.for("react.client.reference");function Ye(n){if(n==null)return null;if(typeof n=="function")return n.$$typeof===xe?null:n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case A:return"Fragment";case C:return"Profiler";case _:return"StrictMode";case F:return"Suspense";case V:return"SuspenseList";case Q:return"Activity"}if(typeof n=="object")switch(n.$$typeof){case S:return"Portal";case j:return n.displayName||"Context";case B:return(n._context.displayName||"Context")+".Consumer";case D:var i=n.render;return n=n.displayName,n||(n=i.displayName||i.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case I:return i=n.displayName||null,i!==null?i:Ye(n.type)||"Memo";case W:i=n._payload,n=n._init;try{return Ye(n(i))}catch{}}return null}var qe=Array.isArray,U=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Y=a.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,le={pending:!1,data:null,method:null,action:null},Ae=[],Ee=-1;function O(n){return{current:n}}function H(n){0>Ee||(n.current=Ae[Ee],Ae[Ee]=null,Ee--)}function J(n,i){Ee++,Ae[Ee]=n.current,n.current=i}var X=O(null),re=O(null),pe=O(null),ke=O(null);function Qe(n,i){switch(J(pe,i),J(re,n),J(X,null),i.nodeType){case 9:case 11:n=(n=i.documentElement)&&(n=n.namespaceURI)?qm(n):0;break;default:if(n=i.tagName,i=i.namespaceURI)i=qm(i),n=$m(i,n);else switch(n){case"svg":n=1;break;case"math":n=2;break;default:n=0}}H(X),J(X,n)}function Le(){H(X),H(re),H(pe)}function jn(n){n.memoizedState!==null&&J(ke,n);var i=X.current,r=$m(i,n.type);i!==r&&(J(re,n),J(X,r))}function Mn(n){re.current===n&&(H(X),H(re)),ke.current===n&&(H(ke),Er._currentValue=le)}var la,zs;function bn(n){if(la===void 0)try{throw Error()}catch(r){var i=r.stack.trim().match(/\n( *(at )?)/);la=i&&i[1]||"",zs=-1<r.stack.indexOf(`
3    at`)?" (<anonymous>)":-1<r.stack.indexOf("@")?"@unknown:0:0":""}return`
4`+la+n+zs}var Ns=!1;
vendor: 11,336 bytes, lines 4-9
4function Oi(n,i){if(!n||Ns)return"";Ns=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(i){var G=function(){throw Error()};if(Object.defineProperty(G.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(G,[])}catch(N){var z=N}Reflect.construct(n,[],G)}else{try{G.call()}catch(N){z=N}n.call(G.prototype)}}else{try{throw Error()}catch(N){z=N}(G=n())&&typeof G.catch=="function"&&G.catch(function(){})}}catch(N){if(N&&z&&typeof N.stack=="string")return[N.stack,z.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var h=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");h&&h.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var f=l.DetermineComponentFrameRoot(),v=f[0],k=f[1];if(v&&k){var E=v.split(`
5`),L=k.split(`
6`);for(h=l=0;l<E.length&&!E[l].includes("DetermineComponentFrameRoot");)l++;for(;h<L.length&&!L[h].includes("DetermineComponentFrameRoot");)h++;if(l===E.length||h===L.length)for(l=E.length-1,h=L.length-1;1<=l&&0<=h&&E[l]!==L[h];)h--;for(;1<=l&&0<=h;l--,h--)if(E[l]!==L[h]){if(l!==1||h!==1)do if(l--,h--,0>h||E[l]!==L[h]){var q=`
7`+E[l].replace(" at new "," at ");return n.displayName&&q.includes("<anonymous>")&&(q=q.replace("<anonymous>",n.displayName)),q}while(1<=l&&0<=h);break}}}finally{Ns=!1,Error.prepareStackTrace=r}return(r=n?n.displayName||n.name:"")?bn(r):""}function yo(n,i){switch(n.tag){case 26:case 27:case 5:return bn(n.type);case 16:return bn("Lazy");case 13:return n.child!==i&&i!==null?bn("Suspense Fallback"):bn("Suspense");case 19:return bn("SuspenseList");case 0:case 15:return Oi(n.type,!1);case 11:return Oi(n.type.render,!1);case 1:return Oi(n.type,!0);case 31:return bn("Activity");default:return""}}function Dn(n){try{var i="",r=null;do i+=yo(n,r),r=n,n=n.return;while(n);return i}catch(l){return`
8Error generating stack: `+l.message+`
9`+l.stack}}var Ka=Object.prototype.hasOwnProperty,cn=t.unstable_scheduleCallback,Us=t.unstable_cancelCallback,vo=t.unstable_shouldYield,Lc=t.unstable_requestPaint,Tt=t.unstable_now,Ue=t.unstable_getCurrentPriorityLevel,yt=t.unstable_ImmediatePriority,Sn=t.unstable_UserBlockingPriority,Bi=t.unstable_NormalPriority,o0=t.unstable_LowPriority,Sf=t.unstable_IdlePriority,l0=t.log,c0=t.unstable_setDisableYieldValue,Is=null,qt=null;function ca(n){if(typeof l0=="function"&&c0(n),qt&&typeof qt.setStrictMode=="function")try{qt.setStrictMode(Is,n)}catch{}}var $t=Math.clz32?Math.clz32:d0,u0=Math.log,h0=Math.LN2;function d0(n){return n>>>=0,n===0?32:31-(u0(n)/h0|0)|0}var wo=256,bo=262144,So=4194304;function Ya(n){var i=n&42;if(i!==0)return i;switch(n&-n){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return n&261888;case 262144:case 524288:case 1048576:case 2097152:return n&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return n&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return n}}function ko(n,i,r){var l=n.pendingLanes;if(l===0)return 0;var h=0,f=n.suspendedLanes,v=n.pingedLanes;n=n.warmLanes;var k=l&134217727;return k!==0?(l=k&~f,l!==0?h=Ya(l):(v&=k,v!==0?h=Ya(v):r||(r=k&~n,r!==0&&(h=Ya(r))))):(k=l&~f,k!==0?h=Ya(k):v!==0?h=Ya(v):r||(r=l&~n,r!==0&&(h=Ya(r)))),h===0?0:i!==0&&i!==h&&(i&f)===0&&(f=h&-h,r=i&-i,f>=r||f===32&&(r&4194048)!==0)?i:h}function qs(n,i){return(n.pendingLanes&~(n.suspendedLanes&~n.pingedLanes)&i)===0}function f0(n,i){switch(n){case 1:case 2:case 4:case 8:case 64:return i+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return i+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function kf(){var n=So;return So<<=1,(So&62914560)===0&&(So=4194304),n}function zc(n){for(var i=[],r=0;31>r;r++)i.push(n);return i}function $s(n,i){n.pendingLanes|=i,i!==268435456&&(n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0)}function p0(n,i,r,l,h,f){var v=n.pendingLanes;n.pendingLanes=r,n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0,n.expiredLanes&=r,n.entangledLanes&=r,n.errorRecoveryDisabledLanes&=r,n.shellSuspendCounter=0;var k=n.entanglements,E=n.expirationTimes,L=n.hiddenUpdates;for(r=v&~r;0<r;){var q=31-$t(r),G=1<<q;k[q]=0,E[q]=-1;var z=L[q];if(z!==null)for(L[q]=null,q=0;q<z.length;q++){var N=z[q];N!==null&&(N.lane&=-536870913)}r&=~G}l!==0&&_f(n,l,0),f!==0&&h===0&&n.tag!==0&&(n.suspendedLanes|=f&~(v&~i))}function _f(n,i,r){n.pendingLanes|=i,n.suspendedLanes&=~i;var l=31-$t(i);n.entangledLanes|=i,n.entanglements[l]=n.entanglements[l]|1073741824|r&261930}function Tf(n,i){var r=n.entangledLanes|=i;for(n=n.entanglements;r;){var l=31-$t(r),h=1<<l;h&i|n[l]&i&&(n[l]|=i),r&=~h}}function Rf(n,i){var r=i&-i;return r=(r&42)!==0?1:Nc(r),(r&(n.suspendedLanes|i))!==0?0:r}function Nc(n){switch(n){case 2:n=1;break;case 8:n=4;break;case 32:n=16;break;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:n=128;break;case 268435456:n=134217728;break;default:n=0}return n}function Uc(n){return n&=-n,2<n?8<n?(n&134217727)!==0?32:268435456:8:2}function Af(){var n=Y.p;return n!==0?n:(n=window.event,n===void 0?32:hy(n.type))}function Cf(n,i){var r=Y.p;try{return Y.p=n,i()}finally{Y.p=r}}var ua=Math.random().toString(36).slice(2),vt="__reactFiber$"+ua,Ot="__reactProps$"+ua,ji="__reactContainer$"+ua,Ic="__reactEvents$"+ua,g0="__reactListeners$"+ua,m0="__reactHandles$"+ua,Ef="__reactResources$"+ua,Vs="__reactMarker$"+ua;function qc(n){delete n[vt],delete n[Ot],delete n[Ic],delete n[g0],delete n[m0]}function Mi(n){var i=n[vt];if(i)return i;for(var r=n.parentNode;r;){if(i=r[ji]||r[vt]){if(r=i.alternate,i.child!==null||r!==null&&r.child!==null)for(n=Ym(n);n!==null;){if(r=n[vt])return r;n=Ym(n)}return i}n=r,r=n.parentNode}return null}function Di(n){if(n=n[vt]||n[ji]){var i=n.tag;if(i===5||i===6||i===13||i===31||i===26||i===27||i===3)return n}return null}function Hs(n){var i=n.tag;if(i===5||i===26||i===27||i===6)return n.stateNode;throw Error(s(33))}function Pi(n){var i=n[Ef];return i||(i=n[Ef]={hoistableStyles:new Map,hoistableScripts:new Map}),i}function ht(n){n[Vs]=!0}var xf=new Set,Of={};function Qa(n,i){Li(n,i),Li(n+"Capture",i)}function Li(n,i){for(Of[n]=i,n=0;n<i.length;n++)xf.add(i[n])}var y0=RegExp("^[: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]*$"),Bf={},jf={};function v0(n){return Ka.call(jf,n)?!0:Ka.call(Bf,n)?!1:y0.test(n)?jf[n]=!0:(Bf[n]=!0,!1)}function _o(n,i,r){if(v0(i))if(r===null)n.removeAttribute(i);else{switch(typeof r){case"undefined":case"function":case"symbol":n.removeAttribute(i);return;case"boolean":var l=i.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){n.removeAttribute(i);return}}n.setAttribute(i,""+r)}}function To(n,i,r){if(r===null)n.removeAttribute(i);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(i);return}n.setAttribute(i,""+r)}}function Pn(n,i,r,l){if(l===null)n.removeAttribute(r);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(r);return}n.setAttributeNS(i,r,""+l)}}function Jt(n){switch(typeof n){case"bigint":case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function Mf(n){var i=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function w0(n,i,r){var l=Object.getOwnPropertyDescriptor(n.constructor.prototype,i);if(!n.hasOwnProperty(i)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var h=l.get,f=l.set;return Object.defineProperty(n,i,{configurable:!0,get:function(){return h.call(this)},set:function(v){r=""+v,f.call(this,v)}}),Object.defineProperty(n,i,{enumerable:l.enumerable}),{getValue:function(){return r},setValue:function(v){r=""+v},stopTracking:function(){n._valueTracker=null,delete n[i]}}}}function $c(n){if(!n._valueTracker){var i=Mf(n)?"checked":"value";n._valueTracker=w0(n,i,""+n[i])}}function Df(n){if(!n)return!1;var i=n._valueTracker;if(!i)return!0;var r=i.getValue(),l="";return n&&(l=Mf(n)?n.checked?"true":"false":n.value),n=l,n!==r?(i.setValue(n),!0):!1}function Ro(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}var b0=/[\n"\\]/g;function Zt(n){return n.replace(b0,function(i){return"\\"+i.charCodeAt(0).toString(16)+" "})}function Vc(n,i,r,l,h,f,v,k){n.name="",v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?n.type=v:n.removeAttribute("type"),i!=null?v==="number"?(i===0&&n.value===""||n.value!=i)&&(n.value=""+Jt(i)):n.value!==""+Jt(i)&&(n.value=""+Jt(i)):v!=="submit"&&v!=="reset"||n.removeAttribute("value"),i!=null?Hc(n,v,Jt(i)):r!=null?Hc(n,v,Jt(r)):l!=null&&n.removeAttribute("value"),h==null&&f!=null&&(n.defaultChecked=!!f),h!=null&&(n.checked=h&&typeof h!="function"&&typeof h!="symbol"),k!=null&&typeof k!="function"&&typeof k!="symbol"&&typeof k!="boolean"?n.name=""+Jt(k):n.removeAttribute("name")}function Pf(n,i,r,l,h,f,v,k){if(f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(n.type=f),i!=null||r!=null){if(!(f!=="submit"&&f!=="reset"||i!=null)){$c(n);return}r=r!=null?""+Jt(r):"",i=i!=null?""+Jt(i):r,k||i===n.value||(n.value=i),n.defaultValue=i}l=l??h,l=typeof l!="function"&&typeof l!="symbol"&&!!l,n.checked=k?n.checked:!!l,n.defaultChecked=!!l,v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"&&(n.name=v),$c(n)}function Hc(n,i,r){i==="number"&&Ro(n.ownerDocument)===n||n.defaultValue===""+r||(n.defaultValue=""+r)}function zi(n,i,r,l){if(n=n.options,i){i={};for(var h=0;h<r.length;h++)i["$"+r[h]]=!0;for(r=0;r<n.length;r++)h=i.hasOwnProperty("$"+n[r].value),n[r].selected!==h&&(n[r].selected=h),h&&l&&(n[r].defaultSelected=!0)}else{for(r=""+Jt(r),i=null,h=0;h<n.length;h++){if(n[h].value===r){n[h].selected=!0,l&&(n[h].defaultSelected=!0);return}i!==null||n[h].disabled||(i=n[h])}i!==null&&(i.selected=!0)}}function Lf(n,i,r){if(i!=null&&(i=""+Jt(i),i!==n.value&&(n.value=i),r==null)){n.defaultValue!==i&&(n.defaultValue=i);return}n.defaultValue=r!=null?""+Jt(r):""}function zf(n,i,r,l){if(i==null){if(l!=null){if(r!=null)throw Error(s(92));if(qe(l)){if(1<l.length)throw Error(s(93));l=l[0]}r=l}r==null&&(r=""),i=r}r=Jt(i),n.defaultValue=r,l=n.textContent,l===r&&l!==""&&l!==null&&(n.value=l),$c(n)}
vendor: 4,182 bytes, line 9
9function Ni(n,i){if(i){var r=n.firstChild;if(r&&r===n.lastChild&&r.nodeType===3){r.nodeValue=i;return}}n.textContent=i}var S0=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Nf(n,i,r){var l=i.indexOf("--")===0;r==null||typeof r=="boolean"||r===""?l?n.setProperty(i,""):i==="float"?n.cssFloat="":n[i]="":l?n.setProperty(i,r):typeof r!="number"||r===0||S0.has(i)?i==="float"?n.cssFloat=r:n[i]=(""+r).trim():n[i]=r+"px"}function Uf(n,i,r){if(i!=null&&typeof i!="object")throw Error(s(62));if(n=n.style,r!=null){for(var l in r)!r.hasOwnProperty(l)||i!=null&&i.hasOwnProperty(l)||(l.indexOf("--")===0?n.setProperty(l,""):l==="float"?n.cssFloat="":n[l]="");for(var h in i)l=i[h],i.hasOwnProperty(h)&&r[h]!==l&&Nf(n,h,l)}else for(var f in i)i.hasOwnProperty(f)&&Nf(n,f,i[f])}function Gc(n){if(n.indexOf("-")===-1)return!1;switch(n){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var k0=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode
9-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),_0=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Ao(n){return _0.test(""+n)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":n}function Ln(){}var Wc=null;function Fc(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var Ui=null,Ii=null;function If(n){var i=Di(n);if(i&&(n=i.stateNode)){var r=n[Ot]||null;e:switch(n=i.stateNode,i.type){case"input":if(Vc(n,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name),i=r.name,r.type==="radio"&&i!=null){for(r=n;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll('input[name="'+Zt(""+i)+'"][type="radio"]'),i=0;i<r.length;i++){var l=r[i];if(l!==n&&l.form===n.form){var h=l[Ot]||null;if(!h)throw Error(s(90));Vc(l,h.value,h.defaultValue,h.defaultValue,h.checked,h.defaultChecked,h.type,h.name)}}for(i=0;i<r.length;i++)l=r[i],l.form===n.form&&Df(l)}break e;case"textarea":Lf(n,r.value,r.defaultValue);break e;case"select":i=r.value,i!=null&&zi(n,!!r.multiple,i,!1)}}}var Kc=!1;function qf(n,i,r){if(Kc)return n(i,r);Kc=!0;try{var l=n(i);return l}finally{if(Kc=!1,(Ui!==null||Ii!==null)&&(fl(),Ui&&(i=Ui,n=Ii,Ii=Ui=null,If(i),n)))for(i=0;i<n.length;i++)If(n[i])}}function Gs(n,i){var r=n.stateNode;if(r===null)return null;var l=r[Ot]||null;if(l===null)return null;r=l[i];e:switch(i){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(n=n.type,l=!(n==="button"||n==="input"||n==="select"||n==="textarea")),n=!l;break e;default:n=!1}if(n)return null;if(r&&typeof r!="function")throw Error(s(231,i,typeof r));return r}var zn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Yc=!1;if(zn)try{var Ws={};Object.defineProperty(Ws,"passive",{get:function(){Yc=!0}}),window.addEventListener("test",Ws,Ws),window.removeEventListener("test",Ws,Ws)}catch{Yc=!1}var ha=null,Qc=null,Co=null;function $f(){if(Co)return Co;var n,i=Qc,r=i.length,l,h="value"in ha?ha.value:ha.textContent,f=h.length;for(n=0;n<r&&i[n]===h[n];n++);var v=r-n;for(l=1;l<=v&&i[r-l]===h[f-l];l++);return Co=h.slice(n,1<l?1-l:void 0)}function Eo(n){var i=n.keyCode;return"charCode"in n?(n=n.charCode,n===0&&i===13&&(n=13)):n=i,n===10&&(n=13),32<=n||n===13?n:0}function xo(){return!0}function Vf(){return!1}function Bt(n){function i(r,l,h,f,v){this._reactName=r,this._targetInst=h,this.type=l,this.nativeEvent=f,this.target=v,this.currentTarget=null;for(var k in n)n.hasOwnProperty(k)&&(r=n[k],this[k]=r?r(f):f[k]);return this.isDefaultPrevented=(f.defaultPrevented!=null?f.defaultPrevented:f.returnValue===!1)?xo:Vf,this.isPropagationStopped=Vf,this}return m(i.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=xo)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=xo)},persist:function(){},isPersistent:xo}),i}var Ja={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(n){return n.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Oo=Bt(Ja),Fs=m({},Ja,{view:0,detail:0}),T0=Bt(Fs),Jc,Zc,Ks,Bo=m({},Fs,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:eu,button:0,buttons:0,relatedTarget:function(n){return n.relatedTarget===void 0?n.fromElement===n.srcElement?n.toElement:n.fromElement:n.relatedTarget},movementX:function(n){return"movementX"in n?n.movementX:(n!==Ks&&(Ks&&n.type==="mousemove"?(Jc=n.screenX-Ks.screenX,Zc=n.screenY-Ks.screenY):Zc=Jc=0,Ks=n),Jc)},movementY:function(n){return"movementY"in n?n.movementY:Zc}}),Hf=Bt(Bo),R0=m({},Bo,{dataTransfer:0}),A0=Bt(R0),C0=m({},Fs,{relatedTarget:0}),Xc=Bt(C0),E0=m({},Ja,{animationName:0,elapsedTime:0,pseudoElement:0}),x0=Bt(E0),O0=m({},Ja,{clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}}),B0=Bt(O0),j0=m({},Ja,{data:0}),Gf=Bt(j0),M0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},D0={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"},P0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function L0(n){var i=this.nativeEvent;return i.getModifierState?i.getModifierState(n):(n=P0[n])?!!i[n]:!1}function eu(){return L0}var z0=m({},Fs,{key:function(n){if(n.key){var i=M0[n.key]||n.key;if(i!=="Unidentified")return i}
vendor: 1,837 bytes, line 9
9return n.type==="keypress"?(n=Eo(n),n===13?"Enter":String.fromCharCode(n)):n.type==="keydown"||n.type==="keyup"?D0[n.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:eu,charCode:function(n){return n.type==="keypress"?Eo(n):0},keyCode:function(n){return n.type==="keydown"||n.type==="keyup"?n.keyCode:0},which:function(n){return n.type==="keypress"?Eo(n):n.type==="keydown"||n.type==="keyup"?n.keyCode:0}}),N0=Bt(z0),U0=m({},Bo,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Wf=Bt(U0),I0=m({},Fs,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:eu}),q0=Bt(I0),$0=m({},Ja,{propertyName:0,elapsedTime:0,pseudoElement:0}),V0=Bt($0),H0=m({},Bo,{deltaX:function(n){return"deltaX"in n?n.deltaX:"wheelDeltaX"in n?-n.wheelDeltaX:0},deltaY:function(n){return"deltaY"in n?n.deltaY:"wheelDeltaY"in n?-n.wheelDeltaY:"wheelDelta"in n?-n.wheelDelta:0},deltaZ:0,deltaMode:0}),G0=Bt(H0),W0=m({},Ja,{newState:0,oldState:0}),F0=Bt(W0),K0=[9,13,27,32],tu=zn&&"CompositionEvent"in window,Ys=null;zn&&"documentMode"in document&&(Ys=document.documentMode);var Y0=zn&&"TextEvent"in window&&!Ys,Ff=zn&&(!tu||Ys&&8<Ys&&11>=Ys),Kf=" ",Yf=!1;function Qf(n,i){switch(n){case"keyup":return K0.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Jf(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var qi=!1;function Q0(n,i){switch(n){case"compositionend":return Jf(i);case"keypress":return i.which!==32?null:(Yf=!0,Kf);case"textInput":return n=i.data,n===Kf&&Yf?null:n;default:return null}}function J0(n,i){if(qi)return n==="compositionend"||!tu&&Qf(n,i)?(n=$f(),Co=Qc=
vendor: 5,938 bytes, line 9
9ha=null,qi=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(i.ctrlKey||i.altKey||i.metaKey)||i.ctrlKey&&i.altKey){if(i.char&&1<i.char.length)return i.char;if(i.which)return String.fromCharCode(i.which)}return null;case"compositionend":return Ff&&i.locale!=="ko"?null:i.data;default:return null}}var Z0={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 Zf(n){var i=n&&n.nodeName&&n.nodeName.toLowerCase();return i==="input"?!!Z0[n.type]:i==="textarea"}function Xf(n,i,r,l){Ui?Ii?Ii.push(l):Ii=[l]:Ui=l,i=bl(i,"onChange"),0<i.length&&(r=new Oo("onChange","change",null,r,l),n.push({event:r,listeners:i}))}var Qs=null,Js=null;function X0(n){Pm(n,0)}function jo(n){var i=Hs(n);if(Df(i))return n}function ep(n,i){if(n==="change")return i}var tp=!1;if(zn){var nu;if(zn){var au="oninput"in document;if(!au){var np=document.createElement("div");np.setAttribute("oninput","return;"),au=typeof np.oninput=="function"}nu=au}else nu=!1;tp=nu&&(!document.documentMode||9<document.documentMode)}function ap(){Qs&&(Qs.detachEvent("onpropertychange",ip),Js=Qs=null)}function ip(n){if(n.propertyName==="value"&&jo(Js)){var i=[];Xf(i,Js,n,Fc(n)),qf(X0,i)}}function eS(n,i,r){n==="focusin"?(ap(),Qs=i,Js=r,Qs.attachEvent("onpropertychange",ip)):n==="focusout"&&ap()}function tS(n){if(n==="selectionchange"||n==="keyup"||n==="keydown")return jo(Js)}function nS(n,i){if(n==="click")return jo(i)}function aS(n,i){if(n==="input"||n==="change")return jo(i)}function iS(n,i){return n===i&&(n!==0||1/n===1/i)||n!==n&&i!==i}var Vt=typeof Object.is=="function"?Object.is:iS;function Zs(n,i){if(Vt(n,i))return!0;if(typeof n!="object"||n===null||typeof i!="object"||i===null)return!1;var r=Object.keys(n),l=Object.keys(i);if(r.length!==l.length)return!1;for(l=0;l<r.length;l++){var h=r[l];if(!Ka.call(i,h)||!Vt(n[h],i[h]))return!1}return!0}function sp(n){for(;n&&n.firstChild;)n=n.firstChild;return n}function rp(n,i){var r=sp(n);n=0;for(var l;r;){if(r.nodeType===3){if(l=n+r.textContent.length,n<=i&&l>=i)return{node:r,offset:i-n};n=l}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=sp(r)}}function op(n,i){return n&&i?n===i?!0:n&&n.nodeType===3?!1:i&&i.nodeType===3?op(n,i.parentNode):"contains"in n?n.contains(i):n.compareDocumentPosition?!!(n.compareDocumentPosition(i)&16):!1:!1}function lp(n){n=n!=null&&n.ownerDocument!=null&&n.ownerDocument.defaultView!=null?n.ownerDocument.defaultView:window;for(var i=Ro(n.document);i instanceof n.HTMLIFrameElement;){try{var r=typeof i.contentWindow.location.href=="string"}catch{r=!1}if(r)n=i.contentWindow;else break;i=Ro(n.document)}return i}function iu(n){var i=n&&n.nodeName&&n.nodeName.toLowerCase();return i&&(i==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||i==="textarea"||n.contentEditable==="true")}var sS=zn&&"documentMode"in document&&11>=document.documentMode,$i=null,su=null,Xs=null,ru=!1;function cp(n,i,r){var l=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;ru||$i==null||$i!==Ro(l)||(l=$i,"selectionStart"in l&&iu(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),Xs&&Zs(Xs,l)||(Xs=l,l=bl(su,"onSelect"),0<l.length&&(i=new Oo("onSelect","select",null,i,r),n.push({event:i,listeners:l}),i.target=$i)))}function Za(n,i){var r={};return r[n.toLowerCase()]=i.toLowerCase(),r["Webkit"+n]="webkit"+i,r["Moz"+n]="moz"+i,r}var Vi={animationend:Za("Animation","AnimationEnd"),animationiteration:Za("Animation","AnimationIteration"),animationstart:Za("Animation","AnimationStart"),transitionrun:Za("Transition","TransitionRun"),transitionstart:Za("Transition","TransitionStart"),transitioncancel:Za("Transition","TransitionCancel"),transitionend:Za("Transition","TransitionEnd")},ou={},up={};zn&&(up=document.createElement("div").style,"AnimationEvent"in window||(delete Vi.animationend.animation,delete Vi.animationiteration.animation,delete Vi.animationstart.animation),"TransitionEvent"in window||delete Vi.transitionend.transition);function Xa(n){if(ou[n])return ou[n];if(!Vi[n])return n;var i=Vi[n],r;for(r in i)if(i.hasOwnProperty(r)&&r in up)return ou[n]=i[r];return n}var hp=Xa("animationend"),dp=Xa("animationiteration"),fp=Xa("animationstart"),rS=Xa("transitionrun"),oS=Xa("transitionstart"),lS=Xa("transitioncancel"),pp=Xa("transitionend"),gp=new Map,lu="abort auxClick beforeToggle 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(" ");lu.push("scrollEnd");function un(n,i){gp.set(n,i),Qa(i,[n])}var Mo=typeof reportError=="function"?reportError:function(n){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var i=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof n=="object"&&n!==null&&typeof n.message=="string"?String(n.message):String(n),error:n});if(!window.dispatchEvent(i))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",n);return}console.error(n)},Xt=[],Hi=0,cu=0;function Do(){for(var n=Hi,i=cu=Hi=0;i<n;){var r=Xt[i];Xt[i++]=null;var l=Xt[i];Xt[i++]=null;var h=Xt[i];Xt[i++]=null;var f=Xt[i];if(Xt[i++]=null,l!==null&&h!==null){var v=l.pending;
vendor: 13,078 bytes, line 9
9v===null?h.next=h:(h.next=v.next,v.next=h),l.pending=h}f!==0&&mp(r,h,f)}}function Po(n,i,r,l){Xt[Hi++]=n,Xt[Hi++]=i,Xt[Hi++]=r,Xt[Hi++]=l,cu|=l,n.lanes|=l,n=n.alternate,n!==null&&(n.lanes|=l)}function uu(n,i,r,l){return Po(n,i,r,l),Lo(n)}function ei(n,i){return Po(n,null,null,i),Lo(n)}function mp(n,i,r){n.lanes|=r;var l=n.alternate;l!==null&&(l.lanes|=r);for(var h=!1,f=n.return;f!==null;)f.childLanes|=r,l=f.alternate,l!==null&&(l.childLanes|=r),f.tag===22&&(n=f.stateNode,n===null||n._visibility&1||(h=!0)),n=f,f=f.return;return n.tag===3?(f=n.stateNode,h&&i!==null&&(h=31-$t(r),n=f.hiddenUpdates,l=n[h],l===null?n[h]=[i]:l.push(i),i.lane=r|536870912),f):null}function Lo(n){if(50<Sr)throw Sr=0,wh=null,Error(s(185));for(var i=n.return;i!==null;)n=i,i=n.return;return n.tag===3?n.stateNode:null}var Gi={};function cS(n,i,r,l){this.tag=n,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=i,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ht(n,i,r,l){return new cS(n,i,r,l)}function hu(n){return n=n.prototype,!(!n||!n.isReactComponent)}function Nn(n,i){var r=n.alternate;return r===null?(r=Ht(n.tag,i,n.key,n.mode),r.elementType=n.elementType,r.type=n.type,r.stateNode=n.stateNode,r.alternate=n,n.alternate=r):(r.pendingProps=i,r.type=n.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=n.flags&65011712,r.childLanes=n.childLanes,r.lanes=n.lanes,r.child=n.child,r.memoizedProps=n.memoizedProps,r.memoizedState=n.memoizedState,r.updateQueue=n.updateQueue,i=n.dependencies,r.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext},r.sibling=n.sibling,r.index=n.index,r.ref=n.ref,r.refCleanup=n.refCleanup,r}function yp(n,i){n.flags&=65011714;var r=n.alternate;return r===null?(n.childLanes=0,n.lanes=i,n.child=null,n.subtreeFlags=0,n.memoizedProps=null,n.memoizedState=null,n.updateQueue=null,n.dependencies=null,n.stateNode=null):(n.childLanes=r.childLanes,n.lanes=r.lanes,n.child=r.child,n.subtreeFlags=0,n.deletions=null,n.memoizedProps=r.memoizedProps,n.memoizedState=r.memoizedState,n.updateQueue=r.updateQueue,n.type=r.type,i=r.dependencies,n.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext}),n}function zo(n,i,r,l,h,f){var v=0;if(l=n,typeof n=="function")hu(n)&&(v=1);else if(typeof n=="string")v=pk(n,r,X.current)?26:n==="html"||n==="head"||n==="body"?27:5;else e:switch(n){case Q:return n=Ht(31,r,i,h),n.elementType=Q,n.lanes=f,n;case A:return ti(r.children,h,f,i);case _:v=8,h|=24;break;case C:return n=Ht(12,r,i,h|2),n.elementType=C,n.lanes=f,n;case F:return n=Ht(13,r,i,h),n.elementType=F,n.lanes=f,n;case V:return n=Ht(19,r,i,h),n.elementType=V,n.lanes=f,n;default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case j:v=10;break e;case B:v=9;break e;case D:v=11;break e;case I:v=14;break e;case W:v=16,l=null;break e}v=29,r=Error(s(130,n===null?"null":typeof n,"")),l=null}return i=Ht(v,r,i,h),i.elementType=n,i.type=l,i.lanes=f,i}function ti(n,i,r,l){return n=Ht(7,n,l,i),n.lanes=r,n}function du(n,i,r){return n=Ht(6,n,null,i),n.lanes=r,n}function vp(n){var i=Ht(18,null,null,0);return i.stateNode=n,i}function fu(n,i,r){return i=Ht(4,n.children!==null?n.children:[],n.key,i),i.lanes=r,i.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},i}var wp=new WeakMap;function en(n,i){if(typeof n=="object"&&n!==null){var r=wp.get(n);return r!==void 0?r:(i={value:n,source:i,stack:Dn(i)},wp.set(n,i),i)}return{value:n,source:i,stack:Dn(i)}}var Wi=[],Fi=0,No=null,er=0,tn=[],nn=0,da=null,kn=1,_n="";function Un(n,i){Wi[Fi++]=er,Wi[Fi++]=No,No=n,er=i}function bp(n,i,r){tn[nn++]=kn,tn[nn++]=_n,tn[nn++]=da,da=n;var l=kn;n=_n;var h=32-$t(l)-1;l&=~(1<<h),r+=1;var f=32-$t(i)+h;if(30<f){var v=h-h%5;f=(l&(1<<v)-1).toString(32),l>>=v,h-=v,kn=1<<32-$t(i)+h|r<<h|l,_n=f+n}else kn=1<<f|r<<h|l,_n=n}function pu(n){n.return!==null&&(Un(n,1),bp(n,1,0))}function gu(n){for(;n===No;)No=Wi[--Fi],Wi[Fi]=null,er=Wi[--Fi],Wi[Fi]=null;for(;n===da;)da=tn[--nn],tn[nn]=null,_n=tn[--nn],tn[nn]=null,kn=tn[--nn],tn[nn]=null}function Sp(n,i){tn[nn++]=kn,tn[nn++]=_n,tn[nn++]=da,kn=i.id,_n=i.overflow,da=n}var wt=null,$e=null,Se=!1,fa=null,an=!1,mu=Error(s(519));function pa(n){var i=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw tr(en(i,n)),mu}function kp(n){var i=n.stateNode,r=n.type,l=n.memoizedProps;switch(i[vt]=n,i[Ot]=l,r){case"dialog":me("cancel",i),me("close",i);break;case"iframe":case"object":case"embed":me("load",i);break;case"video":case"audio":for(r=0;r<_r.length;r++)me(_r[r],i);break;case"source":me("error",i);break;case"img":case"image":case"link":me("error",i),me("load",i);break;case"details":me("toggle",i);break;case"input":me("invalid",i),Pf(i,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":me("invalid",i);break;case"textarea":me("invalid",i),zf(i,l.value,l.defaultValue,l.children)}r=l.children,typeof r!="string"&&typeof r!="number"&&typeof r!="bigint"||i.textContent===""+r||l.suppressHydrationWarning===!0||Um(i.textContent,r)?(l.popover!=null&&(me("beforetoggle",i),me("toggle",i)),l.onScroll!=null&&me("scroll",i),l.onScrollEnd!=null&&me("scrollend",i),l.onClick!=null&&(i.onclick=Ln),i=!0):i=!1,i||pa(n,!0)}function _p(n){for(wt=n.return;wt;)switch(wt.tag){case 5:case 31:case 13:an=!1;return;case 27:case 3:an=!0;return;default:wt=wt.return}}function Ki(n){if(n!==wt)return!1;if(!Se)return _p(n),Se=!0,!1;var i=n.tag,r;if((r=i!==3&&i!==27)&&((r=i===5)&&(r=n.type,r=!(r!=="form"&&r!=="button")||Dh(n.type,n.memoizedProps)),r=!r),r&&$e&&pa(n),_p(n),i===13){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(s(317));$e=Km(n)}else if(i===31){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(s(317));$e=Km(n)}else i===27?(i=$e,Ea(n.type)?(n=Uh,Uh=null,$e=n):$e=i):$e=wt?rn(n.stateNode.nextSibling):null;return!0}function ni(){$e=wt=null,Se=!1}function yu(){var n=fa;return n!==null&&(Pt===null?Pt=n:Pt.push.apply(Pt,n),fa=null),n}function tr(n){fa===null?fa=[n]:fa.push(n)}var vu=O(null),ai=null,In=null;function ga(n,i,r){J(vu,i._currentValue),i._currentValue=r}function qn(n){n._currentValue=vu.current,H(vu)}function wu(n,i,r){for(;n!==null;){var l=n.alternate;if((n.childLanes&i)!==i?(n.childLanes|=i,l!==null&&(l.childLanes|=i)):l!==null&&(l.childLanes&i)!==i&&(l.childLanes|=i),n===r)break;n=n.return}}function bu(n,i,r,l){var h=n.child;for(h!==null&&(h.return=n);h!==null;){var f=h.dependencies;if(f!==null){var v=h.child;f=f.firstContext;e:for(;f!==null;){var k=f;f=h;for(var E=0;E<i.length;E++)if(k.context===i[E]){f.lanes|=r,k=f.alternate,k!==null&&(k.lanes|=r),wu(f.return,r,n),l||(v=null);break e}f=k.next}}else if(h.tag===18){if(v=h.return,v===null)throw Error(s(341));v.lanes|=r,f=v.alternate,f!==null&&(f.lanes|=r),wu(v,r,n),v=null}else v=h.child;if(v!==null)v.return=h;else for(v=h;v!==null;){if(v===n){v=null;break}if(h=v.sibling,h!==null){h.return=v.return,v=h;break}v=v.return}h=v}}function Yi(n,i,r,l){n=null;for(var h=i,f=!1;h!==null;){if(!f){if((h.flags&524288)!==0)f=!0;else if((h.flags&262144)!==0)break}if(h.tag===10){var v=h.alternate;if(v===null)throw Error(s(387));if(v=v.memoizedProps,v!==null){var k=h.type;Vt(h.pendingProps.value,v.value)||(n!==null?n.push(k):n=[k])}}else if(h===ke.current){if(v=h.alternate,v===null)throw Error(s(387));v.memoizedState.memoizedState!==h.memoizedState.memoizedState&&(n!==null?n.push(Er):n=[Er])}h=h.return}n!==null&&bu(i,n,r,l),i.flags|=262144}function Uo(n){for(n=n.firstContext;n!==null;){if(!Vt(n.context._currentValue,n.memoizedValue))return!0;n=n.next}return!1}function ii(n){ai=n,In=null,n=n.dependencies,n!==null&&(n.firstContext=null)}function bt(n){return Tp(ai,n)}function Io(n,i){return ai===null&&ii(n),Tp(n,i)}function Tp(n,i){var r=i._currentValue;if(i={context:i,memoizedValue:r,next:null},In===null){if(n===null)throw Error(s(308));In=i,n.dependencies={lanes:0,firstContext:i},n.flags|=524288}else In=In.next=i;return r}var uS=typeof AbortController<"u"?AbortController:function(){var n=[],i=this.signal={aborted:!1,addEventListener:function(r,l){n.push(l)}};this.abort=function(){i.aborted=!0,n.forEach(function(r){return r()})}},hS=t.unstable_scheduleCallback,dS=t.unstable_NormalPriority,Xe={$$typeof:j,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Su(){return{controller:new uS,data:new Map,refCount:0}}function nr(n){n.refCount--,n.refCount===0&&hS(dS,function(){n.controller.abort()})}var ar=null,ku=0,Qi=0,Ji=null;function fS(n,i){if(ar===null){var r=ar=[];ku=0,Qi=Rh(),Ji={status:"pending",value:void 0,then:function(l){r.push(l)}}}return ku++,i.then(Rp,Rp),i}function Rp(){if(--ku===0&&ar!==null){Ji!==null&&(Ji.status="fulfilled");var n=ar;ar=null,Qi=0,Ji=null;for(var i=0;i<n.length;i++)(0,n[i])()}}function pS(n,i){var r=[],l={status:"pending",value:null,reason:null,then:function(h){r.push(h)}};return n.then(function(){l.status="fulfilled",l.value=i;for(var h=0;h<r.length;h++)(0,r[h])(i)},function(h){for(l.status="rejected",l.reason=h,h=0;h<r.length;h++)(0,r[h])(void 0)}),l}var Ap=U.S;U.S=function(n,i){cm=Tt(),typeof i=="object"&&i!==null&&typeof i.then=="function"&&fS(n,i),Ap!==null&&Ap(n,i)};var si=O(null);function _u(){var n=si.current;return n!==null?n:ze.pooledCache}function qo(n,i){i===null?J(si,si.current):J(si,i.pool)}function Cp(){var n=_u();return n===null?null:{parent:Xe._currentValue,pool:n}}var Zi=Error(s(460)),Tu=Error(s(474)),$o=Error(s(542)),Vo={then:function(){}};function Ep(n){return n=n.status,n==="fulfilled"||n==="rejected"}function xp(n,i,r){switch(r=n[r],r===void 0?n.push(i):r!==i&&(i.then(Ln,Ln),i=r),i.status){case"fulfilled":return i.value;case"rejected":throw n=i.reason,Bp(n),n;default:if(typeof i.status=="string")i.then(Ln,Ln);else{if(n=ze,n!==null&&100<n.shellSuspendCounter)throw Error(s(482));n=i,n.status="pending",n.then(function(l){if(i.status==="pending"){var h=i;h.status="fulfilled",h.value=l}},function(l){if(i.status==="pending"){var h=i;h.status="rejected",h.reason=l}})}switch(i.status){case"fulfilled":return i.value;case"rejected":throw n=i.reason,Bp(n),n}throw oi=i,Zi}}function ri(n){try{var i=n._init;return i(n._payload)}catch(r){throw r!==null&&typeof r=="object"&&typeof r.then=="function"?(oi=r,Zi):r}}var oi=null;function Op(){if(oi===null)throw Error(s(459));var n=oi;return oi=null,n}function Bp(n){if(n===Zi||n===$o)throw Error(s(483))}var Xi=null,ir=0;function Ho(n){var i=ir;return ir+=1,Xi===null&&(Xi=[]),xp(Xi,n,i)}function sr(n,i){i=i.props.ref,n.ref=i!==void 0?i:null}function Go(n,i){throw i.$$typeof===w?Error(s(525)):(n=Object.prototype.toString.call(i),Error(s(31,n==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":n)))}function jp(n){function i(M,x){if(n){var P=M.deletions;P===null?(M.deletions=[x],M.flags|=16):P.push(x)}}function r(M,x){if(!n)return null;for(;x!==null;)i(M,x),x=x.sibling;return null}function l(M){for(var x=new Map;M!==null;)M.key!==null?x.set(M.key,M):x.set(M.index,M),M=M.sibling;return x}function h(M,x){return M=Nn(M,x),M.index=0,M.sibling=null,M}function f(M,x,P){return M.index=P,n?(P=M.alternate,P!==null?(P=P.index,P<x?(M.flags|=67108866,x):P):(M.flags|=67108866,x)):(M.flags|=1048576,x)}function v(M){return n&&M.alternate===null&&(M.flags|=67108866),M}function k(M,x,P,$){return x===null||x.tag!==6?(x=du(P,M.mode,$),x.return=M,x):(x=h(x,P),x.return=M,x)}function E(M,x,P,$){var oe=P.type;return oe===A?q(M,x,P.props.children,$,P.key):x!==null&&(x.elementType===oe||typeof oe=="object"&&oe!==null&&oe.$$typeof===W&&ri(oe)===x.type)?(x=h(x,P.props),sr(x,P),x.return=M,x):(x=zo(P.type,P.key,P.props,null,M.mode,$),sr(x,P),x.return=M,x)}function L(M,x,P,$){return x===null||x.tag!==4||x.stateNode.containerInfo!==P.containerInfo||x.stateNode.implementation!==P.implementation?(x=fu(P,M.mode,$),x.return=M,x):(x=h(x,P.children||[]),x.return=M,x)}function q(M,x,P,$,oe){return x===null||x.tag!==7?(x=ti(P,M.mode,$,oe),x.return=M,x):(x=h(x,P),x.return=M,x)}function G(M,x,P){if(typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint")return x=du(""+x,M.mode,P),x.return=M,x;if(typeof x=="object"&&x!==null){switch(x.$$typeof){case b:return P=zo(x.type,x.key,x.props,null,M.mode,P),sr(P,x),P.return=M,P;case S:return x=fu(x,M.mode,P),x.return=M,x;case W:return x=ri(x),G(M,x,P)}if(qe(x)||ve(x))return x=ti(x,M.mode,P,null),x.return=M,x;if(typeof x.then=="function")return G(M,Ho(x),P);if(x.$$typeof===j)return G(M,Io(M,x),P);Go(M,x)}return null}function z(M,x,P,$){var oe=x!==null?x.key:null;if(typeof P=="string"&&P!==""||typeof P=="number"||typeof P=="bigint")return oe!==null?null:k(M,x,""+P,$);if(typeof P=="object"&&P!==null){switch(P.$$typeof){case b:return P.key===oe?E(M,x,P,$):null;case S:return P.key===oe?L(M,x,P,$):null;case W:return P=ri(P),z(M,x,P,$)}if(qe(P)||ve(P))return oe!==null?null:q(M,x,P,$,null);
vendor: 4,758 bytes, line 9
9if(typeof P.then=="function")return z(M,x,Ho(P),$);if(P.$$typeof===j)return z(M,x,Io(M,P),$);Go(M,P)}return null}function N(M,x,P,$,oe){if(typeof $=="string"&&$!==""||typeof $=="number"||typeof $=="bigint")return M=M.get(P)||null,k(x,M,""+$,oe);if(typeof $=="object"&&$!==null){switch($.$$typeof){case b:return M=M.get($.key===null?P:$.key)||null,E(x,M,$,oe);case S:return M=M.get($.key===null?P:$.key)||null,L(x,M,$,oe);case W:return $=ri($),N(M,x,P,$,oe)}if(qe($)||ve($))return M=M.get(P)||null,q(x,M,$,oe,null);if(typeof $.then=="function")return N(M,x,P,Ho($),oe);if($.$$typeof===j)return N(M,x,P,Io(x,$),oe);Go(x,$)}return null}function ee(M,x,P,$){for(var oe=null,_e=null,ae=x,fe=x=0,be=null;ae!==null&&fe<P.length;fe++){ae.index>fe?(be=ae,ae=null):be=ae.sibling;var Te=z(M,ae,P[fe],$);if(Te===null){ae===null&&(ae=be);break}n&&ae&&Te.alternate===null&&i(M,ae),x=f(Te,x,fe),_e===null?oe=Te:_e.sibling=Te,_e=Te,ae=be}if(fe===P.length)return r(M,ae),Se&&Un(M,fe),oe;if(ae===null){for(;fe<P.length;fe++)ae=G(M,P[fe],$),ae!==null&&(x=f(ae,x,fe),_e===null?oe=ae:_e.sibling=ae,_e=ae);return Se&&Un(M,fe),oe}for(ae=l(ae);fe<P.length;fe++)be=N(ae,M,fe,P[fe],$),be!==null&&(n&&be.alternate!==null&&ae.delete(be.key===null?fe:be.key),x=f(be,x,fe),_e===null?oe=be:_e.sibling=be,_e=be);return n&&ae.forEach(function(Ma){return i(M,Ma)}),Se&&Un(M,fe),oe}function ue(M,x,P,$){if(P==null)throw Error(s(151));for(var oe=null,_e=null,ae=x,fe=x=0,be=null,Te=P.next();ae!==null&&!Te.done;fe++,Te=P.next()){ae.index>fe?(be=ae,ae=null):be=ae.sibling;var Ma=z(M,ae,Te.value,$);if(Ma===null){ae===null&&(ae=be);break}n&&ae&&Ma.alternate===null&&i(M,ae),x=f(Ma,x,fe),_e===null?oe=Ma:_e.sibling=Ma,_e=Ma,ae=be}if(Te.done)return r(M,ae),Se&&Un(M,fe),oe;if(ae===null){for(;!Te.done;fe++,Te=P.next())Te=G(M,Te.value,$),Te!==null&&(x=f(Te,x,fe),_e===null?oe=Te:_e.sibling=Te,_e=Te);return Se&&Un(M,fe),oe}for(ae=l(ae);!Te.done;fe++,Te=P.next())Te=N(ae,M,fe,Te.value,$),Te!==null&&(n&&Te.alternate!==null&&ae.delete(Te.key===null?fe:Te.key),x=f(Te,x,fe),_e===null?oe=Te:_e.sibling=Te,_e=Te);return n&&ae.forEach(function(Rk){return i(M,Rk)}),Se&&Un(M,fe),oe}function De(M,x,P,$){if(typeof P=="object"&&P!==null&&P.type===A&&P.key===null&&(P=P.props.children),typeof P=="object"&&P!==null){switch(P.$$typeof){case b:e:{for(var oe=P.key;x!==null;){if(x.key===oe){if(oe=P.type,oe===A){if(x.tag===7){r(M,x.sibling),$=h(x,P.props.children),$.return=M,M=$;break e}}else if(x.elementType===oe||typeof oe=="object"&&oe!==null&&oe.$$typeof===W&&ri(oe)===x.type){r(M,x.sibling),$=h(x,P.props),sr($,P),$.return=M,M=$;break e}r(M,x);break}else i(M,x);x=x.sibling}P.type===A?($=ti(P.props.children,M.mode,$,P.key),$.return=M,M=$):($=zo(P.type,P.key,P.props,null,M.mode,$),sr($,P),$.return=M,M=$)}return v(M);case S:e:{for(oe=P.key;x!==null;){if(x.key===oe)if(x.tag===4&&x.stateNode.containerInfo===P.containerInfo&&x.stateNode.implementation===P.implementation){r(M,x.sibling),$=h(x,P.children||[]),$.return=M,M=$;break e}else{r(M,x);break}else i(M,x);x=x.sibling}$=fu(P,M.mode,$),$.return=M,M=$}return v(M);case W:return P=ri(P),De(M,x,P,$)}if(qe(P))return ee(M,x,P,$);if(ve(P)){if(oe=ve(P),typeof oe!="function")throw Error(s(150));return P=oe.call(P),ue(M,x,P,$)}if(typeof P.then=="function")return De(M,x,Ho(P),$);if(P.$$typeof===j)return De(M,x,Io(M,P),$);Go(M,P)}return typeof P=="string"&&P!==""||typeof P=="number"||typeof P=="bigint"?(P=""+P,x!==null&&x.tag===6?(r(M,x.sibling),$=h(x,P),$.return=M,M=$):(r(M,x),$=du(P,M.mode,$),$.return=M,M=$),v(M)):r(M,x)}return function(M,x,P,$){try{ir=0;var oe=De(M,x,P,$);return Xi=null,oe}catch(ae){if(ae===Zi||ae===$o)throw ae;var _e=Ht(29,ae,null,M.mode);return _e.lanes=$,_e.return=M,_e}}}var li=jp(!0),Mp=jp(!1),ma=!1;function Ru(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Au(n,i){n=n.updateQueue,i.updateQueue===n&&(i.updateQueue={baseState:n.baseState,firstBaseUpdate:n.firstBaseUpdate,lastBaseUpdate:n.lastBaseUpdate,shared:n.shared,callbacks:null})}function ya(n){return{lane:n,tag:0,payload:null,callback:null,next:null}}function va(n,i,r){var l=n.updateQueue;if(l===null)return null;if(l=l.shared,(Ce&2)!==0){var h=l.pending;return h===null?i.next=i:(i.next=h.next,h.next=i),l.pending=i,i=Lo(n),mp(n,null,r),i}return Po(n,l,i,r),Lo(n)}function rr(n,i,r){if(i=i.updateQueue,i!==null&&(i=i.shared,(r&4194048)!==0)){var l=i.lanes;l&=n.pendingLanes,r|=l,i.lanes=r,Tf(n,r)}}function Cu(n,i){var r=n.updateQueue,l=n.alternate;if(l!==null&&(l=l.updateQueue,r===l)){var h=null,f=null;if(r=r.firstBaseUpdate,r!==null){do{var v={lane:r.lane,tag:r.tag,payload:r.payload,callback:null,next:null};f===null?h=f=v:f=f.next=v,r=r.next}
vendor: 7,035 bytes, line 9
9while(r!==null);f===null?h=f=i:f=f.next=i}else h=f=i;r={baseState:l.baseState,firstBaseUpdate:h,lastBaseUpdate:f,shared:l.shared,callbacks:l.callbacks},n.updateQueue=r;return}n=r.lastBaseUpdate,n===null?r.firstBaseUpdate=i:n.next=i,r.lastBaseUpdate=i}var Eu=!1;function or(){if(Eu){var n=Ji;if(n!==null)throw n}}function lr(n,i,r,l){Eu=!1;var h=n.updateQueue;ma=!1;var f=h.firstBaseUpdate,v=h.lastBaseUpdate,k=h.shared.pending;if(k!==null){h.shared.pending=null;var E=k,L=E.next;E.next=null,v===null?f=L:v.next=L,v=E;var q=n.alternate;q!==null&&(q=q.updateQueue,k=q.lastBaseUpdate,k!==v&&(k===null?q.firstBaseUpdate=L:k.next=L,q.lastBaseUpdate=E))}if(f!==null){var G=h.baseState;v=0,q=L=E=null,k=f;do{var z=k.lane&-536870913,N=z!==k.lane;if(N?(we&z)===z:(l&z)===z){z!==0&&z===Qi&&(Eu=!0),q!==null&&(q=q.next={lane:0,tag:k.tag,payload:k.payload,callback:null,next:null});e:{var ee=n,ue=k;z=i;var De=r;switch(ue.tag){case 1:if(ee=ue.payload,typeof ee=="function"){G=ee.call(De,G,z);break e}G=ee;break e;case 3:ee.flags=ee.flags&-65537|128;case 0:if(ee=ue.payload,z=typeof ee=="function"?ee.call(De,G,z):ee,z==null)break e;G=m({},G,z);break e;case 2:ma=!0}}z=k.callback,z!==null&&(n.flags|=64,N&&(n.flags|=8192),N=h.callbacks,N===null?h.callbacks=[z]:N.push(z))}else N={lane:z,tag:k.tag,payload:k.payload,callback:k.callback,next:null},q===null?(L=q=N,E=G):q=q.next=N,v|=z;if(k=k.next,k===null){if(k=h.shared.pending,k===null)break;N=k,k=N.next,N.next=null,h.lastBaseUpdate=N,h.shared.pending=null}}while(!0);q===null&&(E=G),h.baseState=E,h.firstBaseUpdate=L,h.lastBaseUpdate=q,f===null&&(h.shared.lanes=0),_a|=v,n.lanes=v,n.memoizedState=G}}function Dp(n,i){if(typeof n!="function")throw Error(s(191,n));n.call(i)}function Pp(n,i){var r=n.callbacks;if(r!==null)for(n.callbacks=null,n=0;n<r.length;n++)Dp(r[n],i)}var es=O(null),Wo=O(0);function Lp(n,i){n=Qn,J(Wo,n),J(es,i),Qn=n|i.baseLanes}function xu(){J(Wo,Qn),J(es,es.current)}function Ou(){Qn=Wo.current,H(es),H(Wo)}var Gt=O(null),sn=null;function wa(n){var i=n.alternate;J(Je,Je.current&1),J(Gt,n),sn===null&&(i===null||es.current!==null||i.memoizedState!==null)&&(sn=n)}function Bu(n){J(Je,Je.current),J(Gt,n),sn===null&&(sn=n)}function zp(n){n.tag===22?(J(Je,Je.current),J(Gt,n),sn===null&&(sn=n)):ba()}function ba(){J(Je,Je.current),J(Gt,Gt.current)}function Wt(n){H(Gt),sn===n&&(sn=null),H(Je)}var Je=O(0);function Fo(n){for(var i=n;i!==null;){if(i.tag===13){var r=i.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||zh(r)||Nh(r)))return i}else if(i.tag===19&&(i.memoizedProps.revealOrder==="forwards"||i.memoizedProps.revealOrder==="backwards"||i.memoizedProps.revealOrder==="unstable_legacy-backwards"||i.memoizedProps.revealOrder==="together")){if((i.flags&128)!==0)return i}else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===n)break;for(;i.sibling===null;){if(i.return===null||i.return===n)return null;i=i.return}i.sibling.return=i.return,i=i.sibling}return null}var $n=0,de=null,je=null,et=null,Ko=!1,ts=!1,ci=!1,Yo=0,cr=0,ns=null,gS=0;function We(){throw Error(s(321))}function ju(n,i){if(i===null)return!1;for(var r=0;r<i.length&&r<n.length;r++)if(!Vt(n[r],i[r]))return!1;return!0}function Mu(n,i,r,l,h,f){return $n=f,de=i,i.memoizedState=null,i.updateQueue=null,i.lanes=0,U.H=n===null||n.memoizedState===null?bg:Ku,ci=!1,f=r(l,h),ci=!1,ts&&(f=Up(i,r,l,h)),Np(n),f}function Np(n){U.H=dr;var i=je!==null&&je.next!==null;if($n=0,et=je=de=null,Ko=!1,cr=0,ns=null,i)throw Error(s(300));n===null||tt||(n=n.dependencies,n!==null&&Uo(n)&&(tt=!0))}function Up(n,i,r,l){de=n;var h=0;do{if(ts&&(ns=null),cr=0,ts=!1,25<=h)throw Error(s(301));if(h+=1,et=je=null,n.updateQueue!=null){var f=n.updateQueue;f.lastEffect=null,f.events=null,f.stores=null,f.memoCache!=null&&(f.memoCache.index=0)}U.H=Sg,f=i(r,l)}while(ts);return f}function mS(){var n=U.H,i=n.useState()[0];return i=typeof i.then=="function"?ur(i):i,n=n.useState()[0],(je!==null?je.memoizedState:null)!==n&&(de.flags|=1024),i}function Du(){var n=Yo!==0;return Yo=0,n}function Pu(n,i,r){i.updateQueue=n.updateQueue,i.flags&=-2053,n.lanes&=~r}function Lu(n){if(Ko){for(n=n.memoizedState;n!==null;){var i=n.queue;i!==null&&(i.pending=null),n=n.next}Ko=!1}$n=0,et=je=de=null,ts=!1,cr=Yo=0,ns=null}function Et(){var n={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return et===null?de.memoizedState=et=n:et=et.next=n,et}function Ze(){if(je===null){var n=de.alternate;n=n!==null?n.memoizedState:null}else n=je.next;var i=et===null?de.memoizedState:et.next;if(i!==null)et=i,je=n;else{if(n===null)throw de.alternate===null?Error(s(467)):Error(s(310));je=n,n={memoizedState:je.memoizedState,baseState:je.baseState,baseQueue:je.baseQueue,queue:je.queue,next:null},et===null?de.memoizedState=et=n:et=et.next=n}return et}function Qo(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ur(n){var i=cr;return cr+=1,ns===null&&(ns=[]),n=xp(ns,n,i),i=de,(et===null?i.memoizedState:et.next)===null&&(i=i.alternate,U.H=i===null||i.memoizedState===null?bg:Ku),n}function Jo(n){if(n!==null&&typeof n=="object"){if(typeof n.then=="function")return ur(n);if(n.$$typeof===j)return bt(n)}throw Error(s(438,String(n)))}function zu(n){var i=null,r=de.updateQueue;if(r!==null&&(i=r.memoCache),i==null){var l=de.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(i={data:l.data.map(function(h){return h.slice()}),index:0})))}if(i==null&&(i={data:[],index:0}),r===null&&(r=Qo(),de.updateQueue=r),r.memoCache=i,r=i.data[i.index],r===void 0)for(r=i.data[i.index]=Array(n),l=0;l<n;l++)r[l]=se;return i.index++,r}function Vn(n,i){return typeof i=="function"?i(n):i}function Zo(n){var i=Ze();return Nu(i,je,n)}function Nu(n,i,r){var l=n.queue;if(l===null)throw Error(s(311));l.lastRenderedReducer=r;var h=n.baseQueue,f=l.pending;if(f!==null){if(h!==null){var v=h.next;h.next=f.next,f.next=v}i.baseQueue=h=f,l.pending=null}if(f=n.baseState,h===null)n.memoizedState=f;else{i=h.next;var k=v=null,E=null,L=i,q=!1;do{var G=L.lane&-536870913;if(G!==L.lane?(we&G)===G:($n&G)===G){var z=L.revertLane;if(z===0)E!==null&&(E=E.next={lane:0,revertLane:0,gesture:null,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null}),G===Qi&&(q=!0);else if(($n&z)===z){L=L.next,z===Qi&&(q=!0);continue}else G={lane:0,revertLane:L.revertLane,gesture:null,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null},E===null?(k=E=G,v=f):E=E.next=G,de.lanes|=z,_a|=z;G=L.action,ci&&r(f,G),f=L.hasEagerState?L.eagerState:r(f,G)}else z={lane:G,revertLane:L.revertLane,gesture:L.gesture,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null},E===null?(k=E=z,v=f):E=E.next=z,de.lanes|=G,_a|=G;L=L.next}while(L!==null&&L!==i);if(E===null?v=f:E.next=k,!Vt(f,n.memoizedState)&&(tt=!0,q&&(r=Ji,r!==null)))throw r;n.memoizedState=f,n.baseState=v,n.baseQueue=E,l.lastRenderedState=f}return h===null&&(l.lanes=0),[n.memoizedState,l.dispatch]}function Uu(n){var i=Ze(),r=i.queue;if(r===null)throw Error(s(311));r.lastRenderedReducer=n;
vendor: 2,524 bytes, line 9
9var l=r.dispatch,h=r.pending,f=i.memoizedState;if(h!==null){r.pending=null;var v=h=h.next;do f=n(f,v.action),v=v.next;while(v!==h);Vt(f,i.memoizedState)||(tt=!0),i.memoizedState=f,i.baseQueue===null&&(i.baseState=f),r.lastRenderedState=f}return[f,l]}function Ip(n,i,r){var l=de,h=Ze(),f=Se;if(f){if(r===void 0)throw Error(s(407));r=r()}else r=i();var v=!Vt((je||h).memoizedState,r);if(v&&(h.memoizedState=r,tt=!0),h=h.queue,$u(Vp.bind(null,l,h,n),[n]),h.getSnapshot!==i||v||et!==null&&et.memoizedState.tag&1){if(l.flags|=2048,as(9,{destroy:void 0},$p.bind(null,l,h,r,i),null),ze===null)throw Error(s(349));f||($n&127)!==0||qp(l,i,r)}return r}function qp(n,i,r){n.flags|=16384,n={getSnapshot:i,value:r},i=de.updateQueue,i===null?(i=Qo(),de.updateQueue=i,i.stores=[n]):(r=i.stores,r===null?i.stores=[n]:r.push(n))}function $p(n,i,r,l){i.value=r,i.getSnapshot=l,Hp(i)&&Gp(n)}function Vp(n,i,r){return r(function(){Hp(i)&&Gp(n)})}function Hp(n){var i=n.getSnapshot;n=n.value;try{var r=i();return!Vt(n,r)}catch{return!0}}function Gp(n){var i=ei(n,2);i!==null&&Lt(i,n,2)}function Iu(n){var i=Et();if(typeof n=="function"){var r=n;if(n=r(),ci){ca(!0);try{r()}finally{ca(!1)}}}return i.memoizedState=i.baseState=n,i.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Vn,lastRenderedState:n},i}function Wp(n,i,r,l){return n.baseState=r,Nu(n,je,typeof l=="function"?l:Vn)}function yS(n,i,r,l,h){if(tl(n))throw Error(s(485));if(n=i.action,n!==null){var f={payload:h,action:n,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(v){f.listeners.push(v)}};U.T!==null?r(!0):f.isTransition=!1,l(f),r=i.pending,r===null?(f.next=i.pending=f,Fp(i,f)):(f.next=r.next,i.pending=r.next=f)}}function Fp(n,i){var r=i.action,l=i.payload,h=n.state;if(i.isTransition){var f=U.T,v={};U.T=v;try{var k=r(h,l),E=U.S;E!==null&&E(v,k),Kp(n,i,k)}catch(L){qu(n,i,L)}finally{f!==null&&v.types!==null&&(f.types=v.types),U.T=f}}else try{f=r(h,l),Kp(n,i,f)}catch(L){qu(n,i,L)}}function Kp(n,i,r){r!==null&&typeof r=="object"&&typeof r.then=="function"?r.then(function(l){Yp(n,i,l)},function(l){return qu(n,i,l)}):Yp(n,i,r)}function Yp(n,i,r){i.status="fulfilled",i.value=r,Qp(i),n.state=r,i=n.pending,i!==null&&(r=i.next,r===i?n.pending=null:(r=r.next,i.next=r,Fp(n,r)))}function qu(n,i,r){var l=n.pending;if(n.pending=null,l!==null){l=l.next;do i.status="rejected",i.reason=r,Qp(i),i=i.next;while(i!==l)}n.action=null}function Qp(n){n=n.listeners;for(var i=0;i<n.length;i++)(0,n[i])()}function Jp(n,i){return i}
vendor: 5,048 bytes, line 9
9function Zp(n,i){if(Se){var r=ze.formState;if(r!==null){e:{var l=de;if(Se){if($e){t:{for(var h=$e,f=an;h.nodeType!==8;){if(!f){h=null;break t}if(h=rn(h.nextSibling),h===null){h=null;break t}}f=h.data,h=f==="F!"||f==="F"?h:null}if(h){$e=rn(h.nextSibling),l=h.data==="F!";break e}}pa(l)}l=!1}l&&(i=r[0])}}return r=Et(),r.memoizedState=r.baseState=i,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Jp,lastRenderedState:i},r.queue=l,r=yg.bind(null,de,l),l.dispatch=r,l=Iu(!1),f=Fu.bind(null,de,!1,l.queue),l=Et(),h={state:i,dispatch:null,action:n,pending:null},l.queue=h,r=yS.bind(null,de,h,f,r),h.dispatch=r,l.memoizedState=n,[i,r,!1]}function Xp(n){var i=Ze();return eg(i,je,n)}function eg(n,i,r){if(i=Nu(n,i,Jp)[0],n=Zo(Vn)[0],typeof i=="object"&&i!==null&&typeof i.then=="function")try{var l=ur(i)}catch(v){throw v===Zi?$o:v}else l=i;i=Ze();var h=i.queue,f=h.dispatch;return r!==i.memoizedState&&(de.flags|=2048,as(9,{destroy:void 0},vS.bind(null,h,r),null)),[l,f,n]}function vS(n,i){n.action=i}function tg(n){var i=Ze(),r=je;if(r!==null)return eg(i,r,n);Ze(),i=i.memoizedState,r=Ze();var l=r.queue.dispatch;return r.memoizedState=n,[i,l,!1]}function as(n,i,r,l){return n={tag:n,create:r,deps:l,inst:i,next:null},i=de.updateQueue,i===null&&(i=Qo(),de.updateQueue=i),r=i.lastEffect,r===null?i.lastEffect=n.next=n:(l=r.next,r.next=n,n.next=l,i.lastEffect=n),n}function ng(){return Ze().memoizedState}function Xo(n,i,r,l){var h=Et();de.flags|=n,h.memoizedState=as(1|i,{destroy:void 0},r,l===void 0?null:l)}function el(n,i,r,l){var h=Ze();l=l===void 0?null:l;var f=h.memoizedState.inst;je!==null&&l!==null&&ju(l,je.memoizedState.deps)?h.memoizedState=as(i,f,r,l):(de.flags|=n,h.memoizedState=as(1|i,f,r,l))}function ag(n,i){Xo(8390656,8,n,i)}function $u(n,i){el(2048,8,n,i)}function wS(n){de.flags|=4;var i=de.updateQueue;if(i===null)i=Qo(),de.updateQueue=i,i.events=[n];else{var r=i.events;r===null?i.events=[n]:r.push(n)}}function ig(n){var i=Ze().memoizedState;return wS({ref:i,nextImpl:n}),function(){if((Ce&2)!==0)throw Error(s(440));return i.impl.apply(void 0,arguments)}}function sg(n,i){return el(4,2,n,i)}function rg(n,i){return el(4,4,n,i)}function og(n,i){if(typeof i=="function"){n=n();var r=i(n);return function(){typeof r=="function"?r():i(null)}}if(i!=null)return n=n(),i.current=n,function(){i.current=null}}function lg(n,i,r){r=r!=null?r.concat([n]):null,el(4,4,og.bind(null,i,n),r)}function Vu(){}function cg(n,i){var r=Ze();i=i===void 0?null:i;var l=r.memoizedState;return i!==null&&ju(i,l[1])?l[0]:(r.memoizedState=[n,i],n)}function ug(n,i){var r=Ze();i=i===void 0?null:i;var l=r.memoizedState;if(i!==null&&ju(i,l[1]))return l[0];if(l=n(),ci){ca(!0);try{n()}finally{ca(!1)}}return r.memoizedState=[l,i],l}function Hu(n,i,r){return r===void 0||($n&1073741824)!==0&&(we&261930)===0?n.memoizedState=i:(n.memoizedState=r,n=hm(),de.lanes|=n,_a|=n,r)}function hg(n,i,r,l){return Vt(r,i)?r:es.current!==null?(n=Hu(n,r,l),Vt(n,i)||(tt=!0),n):($n&42)===0||($n&1073741824)!==0&&(we&261930)===0?(tt=!0,n.memoizedState=r):(n=hm(),de.lanes|=n,_a|=n,i)}function dg(n,i,r,l,h){var f=Y.p;Y.p=f!==0&&8>f?f:8;var v=U.T,k={};U.T=k,Fu(n,!1,i,r);try{var E=h(),L=U.S;if(L!==null&&L(k,E),E!==null&&typeof E=="object"&&typeof E.then=="function"){var q=pS(E,l);hr(n,i,q,Yt(n))}else hr(n,i,l,Yt(n))}catch(G){hr(n,i,{then:function(){},status:"rejected",reason:G},Yt())}finally{Y.p=f,v!==null&&k.types!==null&&(v.types=k.types),U.T=v}}function bS(){}function Gu(n,i,r,l){if(n.tag!==5)throw Error(s(476));var h=fg(n).queue;dg(n,h,i,le,r===null?bS:function(){return pg(n),r(l)})}function fg(n){var i=n.memoizedState;if(i!==null)return i;i={memoizedState:le,baseState:le,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Vn,lastRenderedState:le},next:null};var r={};return i.next={memoizedState:r,baseState:r,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Vn,lastRenderedState:r},next:null},n.memoizedState=i,n=n.alternate,n!==null&&(n.memoizedState=i),i}function pg(n){var i=fg(n);i.next===null&&(i=n.alternate.memoizedState),hr(n,i.next.queue,{},Yt())}function Wu(){return bt(Er)}function gg(){return Ze().memoizedState}function mg(){return Ze().memoizedState}function SS(n){for(var i=n.return;i!==null;){switch(i.tag){case 24:case 3:var r=Yt();n=ya(r);var l=va(i,n,r);l!==null&&(Lt(l,i,r),rr(l,i,r)),i={cache:Su()},n.payload=i;return}i=i.return}}function kS(n,i,r){var l=Yt();r={lane:l,revertLane:0,gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},tl(n)?vg(i,r):(r=uu(n,i,r,l),r!==null&&(Lt(r,n,l),wg(r,i,l)))}function yg(n,i,r){var l=Yt();hr(n,i,r,l)}function hr(n,i,r,l){var h={lane:l,revertLane:0,gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null};if(tl(n))vg(i,h);else{var f=n.alternate;if(n.lanes===0&&(f===null||f.lanes===0)&&(f=i.lastRenderedReducer,f!==null))try{var v=i.lastRenderedState,k=f(v,r);if(h.hasEagerState=!0,h.eagerState=k,Vt(k,v))return Po(n,i,h,0),ze===null&&Do(),!1}catch{}if(r=uu(n,i,h,l),r!==null)return Lt(r,n,l),wg(r,i,l),!0}return!1}
vendor: 9,304 bytes, line 9
9function Fu(n,i,r,l){if(l={lane:2,revertLane:Rh(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},tl(n)){if(i)throw Error(s(479))}else i=uu(n,r,l,2),i!==null&&Lt(i,n,2)}function tl(n){var i=n.alternate;return n===de||i!==null&&i===de}function vg(n,i){ts=Ko=!0;var r=n.pending;r===null?i.next=i:(i.next=r.next,r.next=i),n.pending=i}function wg(n,i,r){if((r&4194048)!==0){var l=i.lanes;l&=n.pendingLanes,r|=l,i.lanes=r,Tf(n,r)}}var dr={readContext:bt,use:Jo,useCallback:We,useContext:We,useEffect:We,useImperativeHandle:We,useLayoutEffect:We,useInsertionEffect:We,useMemo:We,useReducer:We,useRef:We,useState:We,useDebugValue:We,useDeferredValue:We,useTransition:We,useSyncExternalStore:We,useId:We,useHostTransitionStatus:We,useFormState:We,useActionState:We,useOptimistic:We,useMemoCache:We,useCacheRefresh:We};dr.useEffectEvent=We;var bg={readContext:bt,use:Jo,useCallback:function(n,i){return Et().memoizedState=[n,i===void 0?null:i],n},useContext:bt,useEffect:ag,useImperativeHandle:function(n,i,r){r=r!=null?r.concat([n]):null,Xo(4194308,4,og.bind(null,i,n),r)},useLayoutEffect:function(n,i){return Xo(4194308,4,n,i)},useInsertionEffect:function(n,i){Xo(4,2,n,i)},useMemo:function(n,i){var r=Et();i=i===void 0?null:i;var l=n();if(ci){ca(!0);try{n()}finally{ca(!1)}}return r.memoizedState=[l,i],l},useReducer:function(n,i,r){var l=Et();if(r!==void 0){var h=r(i);if(ci){ca(!0);try{r(i)}finally{ca(!1)}}}else h=i;return l.memoizedState=l.baseState=h,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:h},l.queue=n,n=n.dispatch=kS.bind(null,de,n),[l.memoizedState,n]},useRef:function(n){var i=Et();return n={current:n},i.memoizedState=n},useState:function(n){n=Iu(n);var i=n.queue,r=yg.bind(null,de,i);return i.dispatch=r,[n.memoizedState,r]},useDebugValue:Vu,useDeferredValue:function(n,i){var r=Et();return Hu(r,n,i)},useTransition:function(){var n=Iu(!1);return n=dg.bind(null,de,n.queue,!0,!1),Et().memoizedState=n,[!1,n]},useSyncExternalStore:function(n,i,r){var l=de,h=Et();if(Se){if(r===void 0)throw Error(s(407));r=r()}else{if(r=i(),ze===null)throw Error(s(349));(we&127)!==0||qp(l,i,r)}h.memoizedState=r;var f={value:r,getSnapshot:i};return h.queue=f,ag(Vp.bind(null,l,f,n),[n]),l.flags|=2048,as(9,{destroy:void 0},$p.bind(null,l,f,r,i),null),r},useId:function(){var n=Et(),i=ze.identifierPrefix;if(Se){var r=_n,l=kn;r=(l&~(1<<32-$t(l)-1)).toString(32)+r,i="_"+i+"R_"+r,r=Yo++,0<r&&(i+="H"+r.toString(32)),i+="_"}else r=gS++,i="_"+i+"r_"+r.toString(32)+"_";return n.memoizedState=i},useHostTransitionStatus:Wu,useFormState:Zp,useActionState:Zp,useOptimistic:function(n){var i=Et();i.memoizedState=i.baseState=n;var r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return i.queue=r,i=Fu.bind(null,de,!0,r),r.dispatch=i,[n,i]},useMemoCache:zu,useCacheRefresh:function(){return Et().memoizedState=SS.bind(null,de)},useEffectEvent:function(n){var i=Et(),r={impl:n};return i.memoizedState=r,function(){if((Ce&2)!==0)throw Error(s(440));return r.impl.apply(void 0,arguments)}}},Ku={readContext:bt,use:Jo,useCallback:cg,useContext:bt,useEffect:$u,useImperativeHandle:lg,useInsertionEffect:sg,useLayoutEffect:rg,useMemo:ug,useReducer:Zo,useRef:ng,useState:function(){return Zo(Vn)},useDebugValue:Vu,useDeferredValue:function(n,i){var r=Ze();return hg(r,je.memoizedState,n,i)},useTransition:function(){var n=Zo(Vn)[0],i=Ze().memoizedState;return[typeof n=="boolean"?n:ur(n),i]},useSyncExternalStore:Ip,useId:gg,useHostTransitionStatus:Wu,useFormState:Xp,useActionState:Xp,useOptimistic:function(n,i){var r=Ze();return Wp(r,je,n,i)},useMemoCache:zu,useCacheRefresh:mg};Ku.useEffectEvent=ig;var Sg={readContext:bt,use:Jo,useCallback:cg,useContext:bt,useEffect:$u,useImperativeHandle:lg,useInsertionEffect:sg,useLayoutEffect:rg,useMemo:ug,useReducer:Uu,useRef:ng,useState:function(){return Uu(Vn)},useDebugValue:Vu,useDeferredValue:function(n,i){var r=Ze();return je===null?Hu(r,n,i):hg(r,je.memoizedState,n,i)},useTransition:function(){var n=Uu(Vn)[0],i=Ze().memoizedState;return[typeof n=="boolean"?n:ur(n),i]},useSyncExternalStore:Ip,useId:gg,useHostTransitionStatus:Wu,useFormState:tg,useActionState:tg,useOptimistic:function(n,i){var r=Ze();return je!==null?Wp(r,je,n,i):(r.baseState=n,[n,r.queue.dispatch])},useMemoCache:zu,useCacheRefresh:mg};Sg.useEffectEvent=ig;function Yu(n,i,r,l){i=n.memoizedState,r=r(l,i),r=r==null?i:m({},i,r),n.memoizedState=r,n.lanes===0&&(n.updateQueue.baseState=r)}var Qu={enqueueSetState:function(n,i,r){n=n._reactInternals;var l=Yt(),h=ya(l);h.payload=i,r!=null&&(h.callback=r),i=va(n,h,l),i!==null&&(Lt(i,n,l),rr(i,n,l))},enqueueReplaceState:function(n,i,r){n=n._reactInternals;var l=Yt(),h=ya(l);h.tag=1,h.payload=i,r!=null&&(h.callback=r),i=va(n,h,l),i!==null&&(Lt(i,n,l),rr(i,n,l))},enqueueForceUpdate:function(n,i){n=n._reactInternals;var r=Yt(),l=ya(r);l.tag=2,i!=null&&(l.callback=i),i=va(n,l,r),i!==null&&(Lt(i,n,r),rr(i,n,r))}};function kg(n,i,r,l,h,f,v){return n=n.stateNode,typeof n.shouldComponentUpdate=="function"?n.shouldComponentUpdate(l,f,v):i.prototype&&i.prototype.isPureReactComponent?!Zs(r,l)||!Zs(h,f):!0}function _g(n,i,r,l){n=i.state,typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps(r,l),typeof i.UNSAFE_componentWillReceiveProps=="function"&&i.UNSAFE_componentWillReceiveProps(r,l),i.state!==n&&Qu.enqueueReplaceState(i,i.state,null)}function ui(n,i){var r=i;if("ref"in i){r={};for(var l in i)l!=="ref"&&(r[l]=i[l])}if(n=n.defaultProps){r===i&&(r=m({},r));for(var h in n)r[h]===void 0&&(r[h]=n[h])}return r}function Tg(n){Mo(n)}function Rg(n){console.error(n)}function Ag(n){Mo(n)}function nl(n,i){try{var r=n.onUncaughtError;r(i.value,{componentStack:i.stack})}catch(l){setTimeout(function(){throw l})}}function Cg(n,i,r){try{var l=n.onCaughtError;l(r.value,{componentStack:r.stack,errorBoundary:i.tag===1?i.stateNode:null})}catch(h){setTimeout(function(){throw h})}}function Ju(n,i,r){return r=ya(r),r.tag=3,r.payload={element:null},r.callback=function(){nl(n,i)},r}function Eg(n){return n=ya(n),n.tag=3,n}function xg(n,i,r,l){var h=r.type.getDerivedStateFromError;if(typeof h=="function"){var f=l.value;n.payload=function(){return h(f)},n.callback=function(){Cg(i,r,l)}}var v=r.stateNode;v!==null&&typeof v.componentDidCatch=="function"&&(n.callback=function(){Cg(i,r,l),typeof h!="function"&&(Ta===null?Ta=new Set([this]):Ta.add(this));var k=l.stack;this.componentDidCatch(l.value,{componentStack:k!==null?k:""})})}function _S(n,i,r,l,h){if(r.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(i=r.alternate,i!==null&&Yi(i,r,h,!0),r=Gt.current,r!==null){switch(r.tag){case 31:case 13:return sn===null?pl():r.alternate===null&&Fe===0&&(Fe=3),r.flags&=-257,r.flags|=65536,r.lanes=h,l===Vo?r.flags|=16384:(i=r.updateQueue,i===null?r.updateQueue=new Set([l]):i.add(l),kh(n,l,h)),!1;case 22:return r.flags|=65536,l===Vo?r.flags|=16384:(i=r.updateQueue,i===null?(i={transitions:null,markerInstances:null,retryQueue:new Set([l])},r.updateQueue=i):(r=i.retryQueue,r===null?i.retryQueue=new Set([l]):r.add(l)),kh(n,l,h)),!1}throw Error(s(435,r.tag))}return kh(n,l,h),pl(),!1}if(Se)return i=Gt.current,i!==null?((i.flags&65536)===0&&(i.flags|=256),i.flags|=65536,i.lanes=h,l!==mu&&(n=Error(s(422),{cause:l}),tr(en(n,r)))):(l!==mu&&(i=Error(s(423),{cause:l}),tr(en(i,r))),n=n.current.alternate,n.flags|=65536,h&=-h,n.lanes|=h,l=en(l,r),h=Ju(n.stateNode,l,h),Cu(n,h),Fe!==4&&(Fe=2)),!1;var f=Error(s(520),{cause:l});if(f=en(f,r),br===null?br=[f]:br.push(f),Fe!==4&&(Fe=2),i===null)return!0;l=en(l,r),r=i;do{switch(r.tag){case 3:return r.flags|=65536,n=h&-h,r.lanes|=n,n=Ju(r.stateNode,l,n),Cu(r,n),!1;case 1:if(i=r.type,f=r.stateNode,(r.flags&128)===0&&(typeof i.getDerivedStateFromError=="function"||f!==null&&typeof f.componentDidCatch=="function"&&(Ta===null||!Ta.has(f))))return r.flags|=65536,h&=-h,r.lanes|=h,h=Eg(h),xg(h,n,r,l),Cu(r,h),!1}r=r.return}while(r!==null);return!1}var Zu=Error(s(461)),tt=!1;function St(n,i,r,l){i.child=n===null?Mp(i,null,r,l):li(i,n.child,r,l)}function Og(n,i,r,l,h){r=r.render;var f=i.ref;if("ref"in l){var v={};for(var k in l)k!=="ref"&&(v[k]=l[k])}else v=l;return ii(i),l=Mu(n,i,r,v,f,h),k=Du(),n!==null&&!tt?(Pu(n,i,h),Hn(n,i,h)):(Se&&k&&pu(i),i.flags|=1,St(n,i,l,h),i.child)}function Bg(n,i,r,l,h){if(n===null){var f=r.type;return typeof f=="function"&&!hu(f)&&f.defaultProps===void 0&&r.compare===null?(i.tag=15,i.type=f,jg(n,i,f,l,h)):(n=zo(r.type,null,l,i,i.mode,h),n.ref=i.ref,n.return=i,i.child=n)}if(f=n.child,!rh(n,h)){var v=f.memoizedProps;if(r=r.compare,r=r!==null?r:Zs,r(v,l)&&n.ref===i.ref)return Hn(n,i,h)}return i.flags|=1,n=Nn(f,l),n.ref=i.ref,n.return=i,i.child=n}function jg(n,i,r,l,h){if(n!==null){var f=n.memoizedProps;if(Zs(f,l)&&n.ref===i.ref)if(tt=!1,i.pendingProps=l=f,rh(n,h))(n.flags&131072)!==0&&(tt=!0);else return i.lanes=n.lanes,Hn(n,i,h)}return Xu(n,i,r,l,h)}function Mg(n,i,r,l){var h=l.children,f=n!==null?n.memoizedState:null;if(n===null&&i.stateNode===null&&(i.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((i.flags&128)!==0){if(f=f!==null?f.baseLanes|r:r,n!==null){for(l=i.child=n.child,h=0;l!==null;)h=h|l.lanes|l.childLanes,l=l.sibling;l=h&~f}else l=0,i.child=null;return Dg(n,i,f,r,l)}
vendor: 1,750 bytes, line 9
9if((r&536870912)!==0)i.memoizedState={baseLanes:0,cachePool:null},n!==null&&qo(i,f!==null?f.cachePool:null),f!==null?Lp(i,f):xu(),zp(i);else return l=i.lanes=536870912,Dg(n,i,f!==null?f.baseLanes|r:r,r,l)}else f!==null?(qo(i,f.cachePool),Lp(i,f),ba(),i.memoizedState=null):(n!==null&&qo(i,null),xu(),ba());return St(n,i,h,r),i.child}function fr(n,i){return n!==null&&n.tag===22||i.stateNode!==null||(i.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.sibling}function Dg(n,i,r,l,h){var f=_u();return f=f===null?null:{parent:Xe._currentValue,pool:f},i.memoizedState={baseLanes:r,cachePool:f},n!==null&&qo(i,null),xu(),zp(i),n!==null&&Yi(n,i,l,!0),i.childLanes=h,null}function al(n,i){return i=sl({mode:i.mode,children:i.children},n.mode),i.ref=n.ref,n.child=i,i.return=n,i}function Pg(n,i,r){return li(i,n.child,null,r),n=al(i,i.pendingProps),n.flags|=2,Wt(i),i.memoizedState=null,n}function TS(n,i,r){var l=i.pendingProps,h=(i.flags&128)!==0;if(i.flags&=-129,n===null){if(Se){if(l.mode==="hidden")return n=al(i,l),i.lanes=536870912,fr(null,n);if(Bu(i),(n=$e)?(n=Fm(n,an),n=n!==null&&n.data==="&"?n:null,n!==null&&(i.memoizedState={dehydrated:n,treeContext:da!==null?{id:kn,overflow:_n}:null,retryLane:536870912,hydrationErrors:null},r=vp(n),r.return=i,i.child=r,wt=i,$e=null)):n=null,n===null)throw pa(i);return i.lanes=536870912,null}return al(i,l)}var f=n.memoizedState;if(f!==null){var v=f.dehydrated;if(Bu(i),h)if(i.flags&256)i.flags&=-257,i=Pg(n,i,r);else if(i.memoizedState!==null)i.child=n.child,i.flags|=128,i=null;else throw Error(s(558));else if(tt||Yi(n,i,r,!1),h=(r&n.childLanes)!==0,tt||h){if(l=ze,l!==null&&(v=Rf(l,r),v!==0&&v!==f.retryLane))throw f.retryLane=v,ei(n,v),Lt(l,n,v),Zu;pl(),i=Pg(n,i,r)}
vendor: 4,539 bytes, line 9
9else n=f.treeContext,$e=rn(v.nextSibling),wt=i,Se=!0,fa=null,an=!1,n!==null&&Sp(i,n),i=al(i,l),i.flags|=4096;return i}return n=Nn(n.child,{mode:l.mode,children:l.children}),n.ref=i.ref,i.child=n,n.return=i,n}function il(n,i){var r=i.ref;if(r===null)n!==null&&n.ref!==null&&(i.flags|=4194816);else{if(typeof r!="function"&&typeof r!="object")throw Error(s(284));(n===null||n.ref!==r)&&(i.flags|=4194816)}}function Xu(n,i,r,l,h){return ii(i),r=Mu(n,i,r,l,void 0,h),l=Du(),n!==null&&!tt?(Pu(n,i,h),Hn(n,i,h)):(Se&&l&&pu(i),i.flags|=1,St(n,i,r,h),i.child)}function Lg(n,i,r,l,h,f){return ii(i),i.updateQueue=null,r=Up(i,l,r,h),Np(n),l=Du(),n!==null&&!tt?(Pu(n,i,f),Hn(n,i,f)):(Se&&l&&pu(i),i.flags|=1,St(n,i,r,f),i.child)}function zg(n,i,r,l,h){if(ii(i),i.stateNode===null){var f=Gi,v=r.contextType;typeof v=="object"&&v!==null&&(f=bt(v)),f=new r(l,f),i.memoizedState=f.state!==null&&f.state!==void 0?f.state:null,f.updater=Qu,i.stateNode=f,f._reactInternals=i,f=i.stateNode,f.props=l,f.state=i.memoizedState,f.refs={},Ru(i),v=r.contextType,f.context=typeof v=="object"&&v!==null?bt(v):Gi,f.state=i.memoizedState,v=r.getDerivedStateFromProps,typeof v=="function"&&(Yu(i,r,v,l),f.state=i.memoizedState),typeof r.getDerivedStateFromProps=="function"||typeof f.getSnapshotBeforeUpdate=="function"||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(v=f.state,typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount(),v!==f.state&&Qu.enqueueReplaceState(f,f.state,null),lr(i,l,f,h),or(),f.state=i.memoizedState),typeof f.componentDidMount=="function"&&(i.flags|=4194308),l=!0}else if(n===null){f=i.stateNode;var k=i.memoizedProps,E=ui(r,k);f.props=E;var L=f.context,q=r.contextType;v=Gi,typeof q=="object"&&q!==null&&(v=bt(q));var G=r.getDerivedStateFromProps;q=typeof G=="function"||typeof f.getSnapshotBeforeUpdate=="function",k=i.pendingProps!==k,q||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(k||L!==v)&&_g(i,f,l,v),ma=!1;var z=i.memoizedState;f.state=z,lr(i,l,f,h),or(),L=i.memoizedState,k||z!==L||ma?(typeof G=="function"&&(Yu(i,r,G,l),L=i.memoizedState),(E=ma||kg(i,r,E,l,z,L,v))?(q||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount()),typeof f.componentDidMount=="function"&&(i.flags|=4194308)):(typeof f.componentDidMount=="function"&&(i.flags|=4194308),i.memoizedProps=l,i.memoizedState=L),f.props=l,f.state=L,f.context=v,l=E):(typeof f.componentDidMount=="function"&&(i.flags|=4194308),l=!1)}else{f=i.stateNode,Au(n,i),v=i.memoizedProps,q=ui(r,v),f.props=q,G=i.pendingProps,z=f.context,L=r.contextType,E=Gi,typeof L=="object"&&L!==null&&(E=bt(L)),k=r.getDerivedStateFromProps,(L=typeof k=="function"||typeof f.getSnapshotBeforeUpdate=="function")||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(v!==G||z!==E)&&_g(i,f,l,E),ma=!1,z=i.memoizedState,f.state=z,lr(i,l,f,h),or();var N=i.memoizedState;v!==G||z!==N||ma||n!==null&&n.dependencies!==null&&Uo(n.dependencies)?(typeof k=="function"&&(Yu(i,r,k,l),N=i.memoizedState),(q=ma||kg(i,r,q,l,z,N,E)||n!==null&&n.dependencies!==null&&Uo(n.dependencies))?(L||typeof f.UNSAFE_componentWillUpdate!="function"&&typeof f.componentWillUpdate!="function"||(typeof f.componentWillUpdate=="function"&&f.componentWillUpdate(l,N,E),typeof f.UNSAFE_componentWillUpdate=="function"&&f.UNSAFE_componentWillUpdate(l,N,E)),typeof f.componentDidUpdate=="function"&&(i.flags|=4),typeof f.getSnapshotBeforeUpdate=="function"&&(i.flags|=1024)):(typeof f.componentDidUpdate!="function"||v===n.memoizedProps&&z===n.memoizedState||(i.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||v===n.memoizedProps&&z===n.memoizedState||(i.flags|=1024),i.memoizedProps=l,i.memoizedState=N),f.props=l,f.state=N,f.context=E,l=q):(typeof f.componentDidUpdate!="function"||v===n.memoizedProps&&z===n.memoizedState||(i.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||v===n.memoizedProps&&z===n.memoizedState||(i.flags|=1024),l=!1)}return f=l,il(n,i),l=(i.flags&128)!==0,f||l?(f=i.stateNode,r=l&&typeof r.getDerivedStateFromError!="function"?null:f.render(),i.flags|=1,n!==null&&l?(i.child=li(i,n.child,null,h),i.child=li(i,null,r,h)):St(n,i,r,h),i.memoizedState=f.state,n=i.child):n=Hn(n,i,h),n}
vendor: 1,716 bytes, line 9
9function Ng(n,i,r,l){return ni(),i.flags|=256,St(n,i,r,l),i.child}var eh={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function th(n){return{baseLanes:n,cachePool:Cp()}}function nh(n,i,r){return n=n!==null?n.childLanes&~r:0,i&&(n|=Kt),n}function Ug(n,i,r){var l=i.pendingProps,h=!1,f=(i.flags&128)!==0,v;if((v=f)||(v=n!==null&&n.memoizedState===null?!1:(Je.current&2)!==0),v&&(h=!0,i.flags&=-129),v=(i.flags&32)!==0,i.flags&=-33,n===null){if(Se){if(h?wa(i):ba(),(n=$e)?(n=Fm(n,an),n=n!==null&&n.data!=="&"?n:null,n!==null&&(i.memoizedState={dehydrated:n,treeContext:da!==null?{id:kn,overflow:_n}:null,retryLane:536870912,hydrationErrors:null},r=vp(n),r.return=i,i.child=r,wt=i,$e=null)):n=null,n===null)throw pa(i);return Nh(n)?i.lanes=32:i.lanes=536870912,null}var k=l.children;return l=l.fallback,h?(ba(),h=i.mode,k=sl({mode:"hidden",children:k},h),l=ti(l,h,r,null),k.return=i,l.return=i,k.sibling=l,i.child=k,l=i.child,l.memoizedState=th(r),l.childLanes=nh(n,v,r),i.memoizedState=eh,fr(null,l)):(wa(i),ah(i,k))}var E=n.memoizedState;if(E!==null&&(k=E.dehydrated,k!==null)){if(f)i.flags&256?(wa(i),i.flags&=-257,i=ih(n,i,r)):i.memoizedState!==null?(ba(),i.child=n.child,i.flags|=128,i=null):(ba(),k=l.fallback,h=i.mode,l=sl({mode:"visible",children:l.children},h),k=ti(k,h,r,null),k.flags|=2,l.return=i,k.return=i,l.sibling=k,i.child=l,li(i,n.child,null,r),l=i.child,l.memoizedState=th(r),l.childLanes=nh(n,v,r),i.memoizedState=eh,i=fr(null,l));else if(wa(i),Nh(k)){if(v=k.nextSibling&&k.nextSibling.dataset,v)var L=v.dgst;v=L,l=Error(s(419)),l.stack="",l.digest=v,tr({value:l,source:null,stack:null}),i=ih(n,i,r)}else if(tt||Yi(n,i,r,!1),v=(r&n.childLanes)!==0,tt||v){if(v=ze,v!==null&&(l=Rf
vendor: 6,355 bytes, line 9
9(v,r),l!==0&&l!==E.retryLane))throw E.retryLane=l,ei(n,l),Lt(v,n,l),Zu;zh(k)||pl(),i=ih(n,i,r)}else zh(k)?(i.flags|=192,i.child=n.child,i=null):(n=E.treeContext,$e=rn(k.nextSibling),wt=i,Se=!0,fa=null,an=!1,n!==null&&Sp(i,n),i=ah(i,l.children),i.flags|=4096);return i}return h?(ba(),k=l.fallback,h=i.mode,E=n.child,L=E.sibling,l=Nn(E,{mode:"hidden",children:l.children}),l.subtreeFlags=E.subtreeFlags&65011712,L!==null?k=Nn(L,k):(k=ti(k,h,r,null),k.flags|=2),k.return=i,l.return=i,l.sibling=k,i.child=l,fr(null,l),l=i.child,k=n.child.memoizedState,k===null?k=th(r):(h=k.cachePool,h!==null?(E=Xe._currentValue,h=h.parent!==E?{parent:E,pool:E}:h):h=Cp(),k={baseLanes:k.baseLanes|r,cachePool:h}),l.memoizedState=k,l.childLanes=nh(n,v,r),i.memoizedState=eh,fr(n.child,l)):(wa(i),r=n.child,n=r.sibling,r=Nn(r,{mode:"visible",children:l.children}),r.return=i,r.sibling=null,n!==null&&(v=i.deletions,v===null?(i.deletions=[n],i.flags|=16):v.push(n)),i.child=r,i.memoizedState=null,r)}function ah(n,i){return i=sl({mode:"visible",children:i},n.mode),i.return=n,n.child=i}function sl(n,i){return n=Ht(22,n,null,i),n.lanes=0,n}function ih(n,i,r){return li(i,n.child,null,r),n=ah(i,i.pendingProps.children),n.flags|=2,i.memoizedState=null,n}function Ig(n,i,r){n.lanes|=i;var l=n.alternate;l!==null&&(l.lanes|=i),wu(n.return,i,r)}function sh(n,i,r,l,h,f){var v=n.memoizedState;v===null?n.memoizedState={isBackwards:i,rendering:null,renderingStartTime:0,last:l,tail:r,tailMode:h,treeForkCount:f}:(v.isBackwards=i,v.rendering=null,v.renderingStartTime=0,v.last=l,v.tail=r,v.tailMode=h,v.treeForkCount=f)}function qg(n,i,r){var l=i.pendingProps,h=l.revealOrder,f=l.tail;l=l.children;var v=Je.current,k=(v&2)!==0;if(k?(v=v&1|2,i.flags|=128):v&=1,J(Je,v),St(n,i,l,r),l=Se?er:0,!k&&n!==null&&(n.flags&128)!==0)e:for(n=i.child;n!==null;){if(n.tag===13)n.memoizedState!==null&&Ig(n,r,i);else if(n.tag===19)Ig(n,r,i);else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===i)break e;for(;n.sibling===null;){if(n.return===null||n.return===i)break e;n=n.return}n.sibling.return=n.return,n=n.sibling}switch(h){case"forwards":for(r=i.child,h=null;r!==null;)n=r.alternate,n!==null&&Fo(n)===null&&(h=r),r=r.sibling;r=h,r===null?(h=i.child,i.child=null):(h=r.sibling,r.sibling=null),sh(i,!1,h,r,f,l);break;case"backwards":case"unstable_legacy-backwards":for(r=null,h=i.child,i.child=null;h!==null;){if(n=h.alternate,n!==null&&Fo(n)===null){i.child=h;break}n=h.sibling,h.sibling=r,r=h,h=n}sh(i,!0,r,null,f,l);break;case"together":sh(i,!1,null,null,void 0,l);break;default:i.memoizedState=null}return i.child}function Hn(n,i,r){if(n!==null&&(i.dependencies=n.dependencies),_a|=i.lanes,(r&i.childLanes)===0)if(n!==null){if(Yi(n,i,r,!1),(r&i.childLanes)===0)return null}else return null;if(n!==null&&i.child!==n.child)throw Error(s(153));if(i.child!==null){for(n=i.child,r=Nn(n,n.pendingProps),i.child=r,r.return=i;n.sibling!==null;)n=n.sibling,r=r.sibling=Nn(n,n.pendingProps),r.return=i;r.sibling=null}return i.child}function rh(n,i){return(n.lanes&i)!==0?!0:(n=n.dependencies,!!(n!==null&&Uo(n)))}function RS(n,i,r){switch(i.tag){case 3:Qe(i,i.stateNode.containerInfo),ga(i,Xe,n.memoizedState.cache),ni();break;case 27:case 5:jn(i);break;case 4:Qe(i,i.stateNode.containerInfo);break;case 10:ga(i,i.type,i.memoizedProps.value);break;case 31:if(i.memoizedState!==null)return i.flags|=128,Bu(i),null;break;case 13:var l=i.memoizedState;if(l!==null)return l.dehydrated!==null?(wa(i),i.flags|=128,null):(r&i.child.childLanes)!==0?Ug(n,i,r):(wa(i),n=Hn(n,i,r),n!==null?n.sibling:null);wa(i);break;case 19:var h=(n.flags&128)!==0;if(l=(r&i.childLanes)!==0,l||(Yi(n,i,r,!1),l=(r&i.childLanes)!==0),h){if(l)return qg(n,i,r);i.flags|=128}if(h=i.memoizedState,h!==null&&(h.rendering=null,h.tail=null,h.lastEffect=null),J(Je,Je.current),l)break;return null;case 22:return i.lanes=0,Mg(n,i,r,i.pendingProps);case 24:ga(i,Xe,n.memoizedState.cache)}return Hn(n,i,r)}function $g(n,i,r){if(n!==null)if(n.memoizedProps!==i.pendingProps)tt=!0;else{if(!rh(n,r)&&(i.flags&128)===0)return tt=!1,RS(n,i,r);tt=(n.flags&131072)!==0}else tt=!1,Se&&(i.flags&1048576)!==0&&bp(i,er,i.index);switch(i.lanes=0,i.tag){case 16:e:{var l=i.pendingProps;if(n=ri(i.elementType),i.type=n,typeof n=="function")hu(n)?(l=ui(n,l),i.tag=1,i=zg(null,i,n,l,r)):(i.tag=0,i=Xu(null,i,n,l,r));else{if(n!=null){var h=n.$$typeof;if(h===D){i.tag=11,i=Og(null,i,n,l,r);break e}else if(h===I){i.tag=14,i=Bg(null,i,n,l,r);break e}}throw i=Ye(n)||n,Error(s(306,i,""))}}return i;case 0:return Xu(n,i,i.type,i.pendingProps,r);case 1:return l=i.type,h=ui(l,i.pendingProps),zg(n,i,l,h,r);case 3:e:{if(Qe(i,i.stateNode.containerInfo),n===null)throw Error(s(387));l=i.pendingProps;var f=i.memoizedState;h=f.element,Au(n,i),lr(i,l,null,r);var v=i.memoizedState;if(l=v.cache,ga(i,Xe,l),l!==f.cache&&bu(i,[Xe],r,!0),or(),l=v.element,f.isDehydrated)if(f={element:l,isDehydrated:!1,cache:v.cache},i.updateQueue.baseState=f,i.memoizedState=f,i.flags&256){i=Ng(n,i,l,r);break e}else if(l!==h){h=en(Error(s(424)),i),tr(h),i=Ng(n,i,l,r);break e}else for(n=i.stateNode.containerInfo,n.nodeType===9?n=n.body:n=n.nodeName==="HTML"?n.ownerDocument.body:n,$e=rn(n.firstChild),wt=i,Se=!0,fa=null,an=!0,r=Mp(i,null,l,r),i.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(ni(),l===h){i=Hn(n,i,r);break e}St(n,i,l,r)}i=i.child}return i;case 26:return il(n,i),n===null?(r=Xm(i.type,null,i.pendingProps,null))?i.memoizedState=r:Se||(r=i.type,n=i.pendingProps,l=Sl(pe.current).createElement(r),l[vt]=i,l[Ot]=n,kt(l,r,n),ht(l),i.stateNode=l):i.memoizedState=Xm(i.type,n.memoizedProps,i.pendingProps,n.memoizedState),null;case 27:return jn(i),n===null&&Se&&(l=i.stateNode=Qm(i.type,i.pendingProps,pe.current),wt=i,an=!0,h=$e,Ea(i.type)?(Uh=h,$e=rn(l.firstChild)):$e=h),St(n,i,i.pendingProps.children,r),il(n,i),n===null&&(i.flags|=4194304),i.child;case 5:return n===null&&Se&&((h=l=$e)&&(l=tk(l,i.type,i.pendingProps,an),l!==null?(i.stateNode=l,wt=i,$e=rn(l.firstChild),an=!1,h=!0):h=!1),h||pa(i)),jn(i),h=i.type,f=i.pendingProps,v=n!==null?n.memoizedProps:null,l=f.children,Dh(h,f)?l=null:v!==null&&Dh(h,v)&&(i.flags|=32),i.memoizedState!==null&&(h=Mu(n,i,mS,null,null,r),Er._currentValue=h),il(n,i),St(n,i,l,r),i.child;case 6:return n===null&&Se&&((n=r=$e)&&(r=nk(r,i.pendingProps,an),r!==null?(i.stateNode=r,wt=i,$e=null,n=!0):n=!1),n||pa(i)),null;
vendor: 4,018 bytes, line 9
9case 13:return Ug(n,i,r);case 4:return Qe(i,i.stateNode.containerInfo),l=i.pendingProps,n===null?i.child=li(i,null,l,r):St(n,i,l,r),i.child;case 11:return Og(n,i,i.type,i.pendingProps,r);case 7:return St(n,i,i.pendingProps,r),i.child;case 8:return St(n,i,i.pendingProps.children,r),i.child;case 12:return St(n,i,i.pendingProps.children,r),i.child;case 10:return l=i.pendingProps,ga(i,i.type,l.value),St(n,i,l.children,r),i.child;case 9:return h=i.type._context,l=i.pendingProps.children,ii(i),h=bt(h),l=l(h),i.flags|=1,St(n,i,l,r),i.child;case 14:return Bg(n,i,i.type,i.pendingProps,r);case 15:return jg(n,i,i.type,i.pendingProps,r);case 19:return qg(n,i,r);case 31:return TS(n,i,r);case 22:return Mg(n,i,r,i.pendingProps);case 24:return ii(i),l=bt(Xe),n===null?(h=_u(),h===null&&(h=ze,f=Su(),h.pooledCache=f,f.refCount++,f!==null&&(h.pooledCacheLanes|=r),h=f),i.memoizedState={parent:l,cache:h},Ru(i),ga(i,Xe,h)):((n.lanes&r)!==0&&(Au(n,i),lr(i,null,null,r),or()),h=n.memoizedState,f=i.memoizedState,h.parent!==l?(h={parent:l,cache:l},i.memoizedState=h,i.lanes===0&&(i.memoizedState=i.updateQueue.baseState=h),ga(i,Xe,l)):(l=f.cache,ga(i,Xe,l),l!==h.cache&&bu(i,[Xe],r,!0))),St(n,i,i.pendingProps.children,r),i.child;case 29:throw i.pendingProps}throw Error(s(156,i.tag))}function Gn(n){n.flags|=4}function oh(n,i,r,l,h){if((i=(n.mode&32)!==0)&&(i=!1),i){if(n.flags|=16777216,(h&335544128)===h)if(n.stateNode.complete)n.flags|=8192;else if(gm())n.flags|=8192;else throw oi=Vo,Tu}else n.flags&=-16777217}function Vg(n,i){if(i.type!=="stylesheet"||(i.state.loading&4)!==0)n.flags&=-16777217;else if(n.flags|=16777216,!iy(i))if(gm())n.flags|=8192;else throw oi=Vo,Tu}function rl(n,i){i!==null&&(n.flags|=4),n.flags&16384&&(i=n.tag!==22?kf():536870912,n.lanes|=i,os|=i)}function pr(n,i){if(!Se)switch(n.tailMode){case"hidden":i=n.tail;for(var r=null;i!==null;)i.alternate!==null&&(r=i),i=i.sibling;r===null?n.tail=null:r.sibling=null;break;case"collapsed":r=n.tail;for(var l=null;r!==null;)r.alternate!==null&&(l=r),r=r.sibling;l===null?i||n.tail===null?n.tail=null:n.tail.sibling=null:l.sibling=null}}function Ve(n){var i=n.alternate!==null&&n.alternate.child===n.child,r=0,l=0;if(i)for(var h=n.child;h!==null;)r|=h.lanes|h.childLanes,l|=h.subtreeFlags&65011712,l|=h.flags&65011712,h.return=n,h=h.sibling;else for(h=n.child;h!==null;)r|=h.lanes|h.childLanes,l|=h.subtreeFlags,l|=h.flags,h.return=n,h=h.sibling;return n.subtreeFlags|=l,n.childLanes=r,i}function AS(n,i,r){var l=i.pendingProps;switch(gu(i),i.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ve(i),null;case 1:return Ve(i),null;case 3:return r=i.stateNode,l=null,n!==null&&(l=n.memoizedState.cache),i.memoizedState.cache!==l&&(i.flags|=2048),qn(Xe),Le(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(n===null||n.child===null)&&(Ki(i)?Gn(i):n===null||n.memoizedState.isDehydrated&&(i.flags&256)===0||(i.flags|=1024,yu())),Ve(i),null;case 26:var h=i.type,f=i.memoizedState;return n===null?(Gn(i),f!==null?(Ve(i),Vg(i,f)):(Ve(i),oh(i,h,null,l,r))):f?f!==n.memoizedState?(Gn(i),Ve(i),Vg(i,f)):(Ve(i),i.flags&=-16777217):(n=n.memoizedProps,n!==l&&Gn(i),Ve(i),oh(i,h,n,l,r)),null;case 27:if(Mn(i),r=pe.current,h=i.type,n!==null&&i.stateNode!=null)n.memoizedProps!==l&&Gn(i);else{if(!l){if(i.stateNode===null)throw Error(s(166));return Ve(i),null}n=X.current,Ki(i)?kp(i):(n=Qm(h,l,r),i.stateNode=n,Gn(i))}return Ve(i),null;case 5:if(Mn(i),h=i.type,n!==null&&i.stateNode!=null)n.memoizedProps!==l&&Gn(i);else{if(!l){if(i.stateNode===null)throw Error(s(166));return Ve(i),null}if(f=X.current,Ki(i))kp(i);else{var v=Sl(pe.current);switch(f){case 1:f=v.createElementNS("http://www.w3.org/2000/svg",h);break;case 2:f=v.createElementNS("http://www.w3.org/1998/Math/MathML",h);break;default:switch(h){case"svg":f=v.createElementNS("http://www.w3.org/2000/svg",h);break;case"math":f=v.createElementNS("http://www.w3.org/1998/Math/MathML",h);break;case"script":f=v.createElement("div"),f.innerHTML="<script><\/script>
9",f=f.removeChild(f.firstChild);break;case"select":f=typeof l.is=="string"?v.createElement("select",{is:l.is}):v.createElement("select"),l.multiple?f.multiple=!0:l.size&&(f.size=l.size);break;default:f=typeof l.is=="string"?v.createElement(h,{is:l.is}):v.createElement(h)}}f[vt]=i,f[Ot]=l;e:for(v=i.child;v!==null;){if(v.tag===5||v.tag===6)f.appendChild(v.stateNode);else if(v.tag!==4&&v.tag!==27&&v.child!==null){v.child.return=v,v=v.child;continue}if(v===i)break e;for(;v.sibling===null;){if(v.return===null||v.return===i)break e;v=v.return}v.sibling.return=v.return,v=v.sibling}i.stateNode=f;e:switch(kt(f,h,l),h){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&Gn(i)}}return Ve(i),oh(i,i.type,n===null?null:n.memoizedProps,i.pendingProps,r),null;case 6:if(n&&i.stateNode!=null)n.memoizedProps!==l&&Gn(i);else{if(typeof l!="string"&&i.stateNode===null)throw Error(s(166));if(n=pe.current,Ki(i)){if(n=i.stateNode,r=i.memoizedProps,l=null,h=wt,h!==null)switch(h.tag){case 27:case 5:l=h.memoizedProps}n[vt]=i,n=!!(n.nodeValue===r||l!==null&&l.suppressHydrationWarning===!0||Um(n.nodeValue,r)),n||pa(i,!0)}else n=Sl(n).createTextNode(l),n[vt]=i,i.stateNode=n}return Ve(i),null;case 31:if(r=i.memoizedState,n===null||n.memoizedState!==null){if(l=Ki(i),r!==null){if(n===null){if(!l)throw Error(s(318));if(n=i.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(s(557));n[vt]=i}else ni(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;Ve(i),n=!1}else r=yu(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=r),n=!0;if(!n)return i.flags&256?(Wt(i),i):(Wt(i),null);if((i.flags&128)!==0)throw Error(s(558))}return Ve(i),null;case 13:if(l=i.memoizedState,n===null||n.memoizedState!==null&&n.memoizedState.dehydrated!==null){if(h=Ki(i),l!==null&&l.dehydrated!==null){if(n===null){if(!h)throw Error(s(318));if(h=i.memoizedState,h=h!==null?h.dehydrated:null,!h)throw Error(s(317));h[vt]=i}else ni(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;Ve(i),h=!1}else h=yu(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=h),h=!0;if(!h)return i.flags&256?(Wt(i),i):(Wt(i),null)}return Wt(i),(i.flags&128)!==0?(i.lanes=r,i):(r=l!==null,n=n!==null&&n.memoizedState!==null,r&&(l=i.child,h=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(h=l.alternate.memoizedState.cachePool.pool),f=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(f=l.memoizedState.cachePool.pool),f!==h&&(l.flags|=2048)),r!==n&&r&&(i.child.flags|=8192),rl(i,i.updateQueue),Ve(i),null);case 4:return Le(),n===null&&xh(i.stateNode.containerInfo),Ve(i),null;case 10:return qn(i.type),Ve(i),null;case 19:if(H(Je),l=i.memoizedState,l===null)return Ve(i),null;if(h=(i.flags&128)!==0,f=l.rendering,f===null)if(h)pr(l,!1);else{if(Fe!==0||n!==null&&(n.flags&128)!==0)for(n=i.child;n!==null;){if(f=Fo(n),f!==null){for(i.flags|=128,pr(l,!1),n=f.updateQueue,i.updateQueue=n,rl(i,n),i.subtreeFlags=0,n=r,r=i.child;r!==null;)yp(r,n),r=r.sibling;return J(Je,Je.current&1|2),Se&&Un(i,l.treeForkCount),i.child}n=n.sibling}l.tail!==null&&Tt()>hl&&(i.flags|=128,h=!0,pr(l,!1),i.lanes=4194304)}else{if(!h)if(n=Fo(f),n!==null){if(i.flags|=128,h=!0,n=n.updateQueue,i.updateQueue=n,rl(i,n),pr(l,!0),l.tail===null&&l.tailMode==="hidden"&&!f.alternate&&!Se)return Ve(i),null}else 2*Tt()-l.renderingStartTime>hl&&r!==536870912&&(i.flags|=128,h=!0,pr(l,!1),i.lanes=4194304);l.isBackwards?(f.sibling=i.child,i.child=f):(n=l.last,n!==null?n.sibling=f:i.child=f,l.last=f)}return l.tail!==null?(n=l.tail,l.rendering=n,l.tail=n.sibling,l.renderingStartTime=Tt(),n.sibling=null,r=Je.current,J(Je,h?r&1|2:r&1),Se&&Un(i,l.treeForkCount),n):(Ve(i),null);case 22:case 23:return Wt(i),Ou(),l=i.memoizedState!==null,n!==null?n.memoizedState!==null!==l&&(i.flags|=8192):l&&(i.flags|=8192),l?(r&536870912)!==0&&(i.flags&128)===0&&(Ve(i),i.subtreeFlags&6&&(i.flags|=8192)):Ve(i),r=i.updateQueue,r!==null&&rl(i,r.retryQueue),r=null,n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(r=n.memoizedState.cachePool.pool),l=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(l=i.memoizedState.cachePool.pool),l!==r&&(i.flags|=2048),n!==null&&H(si),null;case 24:return r=null,n!==null&&(r=n.memoizedState.cache),i.memoizedState.cache!==r&&(i.flags|=2048),qn(Xe),Ve(i),null;case 25:return null;case 30:return null}throw Error(s(156,i.tag))}function CS(n,i){switch(gu(i),i.tag){case 1:return n=i.flags,n&65536?(i.flags=n&-65537|128,i):null;case 3:return qn(Xe),Le(),n=i.flags,(n&65536)!==0&&(n&128)===0?(i.flags=n&-65537|128,i):null;case 26:case 27:case 5:return Mn(i),null;case 31:if(i.memoizedState!==null){if(Wt(i),i.alternate===null)throw Error(s(340));ni()}return n=i.flags,n&65536?(i.flags=n&-65537|128,i):null;case 13:if(Wt(i),n=i.memoizedState,n!==null&&n.dehydrated!==null){if(i.alternate===null)throw Error(s(340));ni()}return n=i.flags,n&65536?(i.flags=n&-65537|128,i):null;case 19:return H(Je),null;case 4:return Le(),null;case 10:return qn(i.type),null;case 22:case 23:return Wt(i),Ou(),n!==null&&H(si),n=i.flags,n&65536?(i.flags=n&-65537|128,i):null;case 24:return qn(Xe),null;case 25:return null;default:return null}}function Hg(n,i){switch(gu(i),i.tag){case 3:qn(Xe),Le();break;case 26:case 27:case 5:Mn(i);break;case 4:Le();break;case 31:i.memoizedState!==null&&Wt(i);break;case 13:Wt(i);break;case 19:H(Je);break;case 10:qn(i.type);break;case 22:case 23:Wt(i),Ou(),n!==null&&H(si);break;case 24:qn(Xe)}}function gr(n,i){try{var r=i.updateQueue,l=r!==null?r.lastEffect:null;if(l!==null){var h=l.next;r=h;do{if((r.tag&n)===n){l=void 0;var f=r.create,v=r.inst;l=f(),v.destroy=l}r=r.next}
vendor: 19,330 bytes, line 9
9while(r!==h)}}catch(k){Be(i,i.return,k)}}function Sa(n,i,r){try{var l=i.updateQueue,h=l!==null?l.lastEffect:null;if(h!==null){var f=h.next;l=f;do{if((l.tag&n)===n){var v=l.inst,k=v.destroy;if(k!==void 0){v.destroy=void 0,h=i;var E=r,L=k;try{L()}catch(q){Be(h,E,q)}}}l=l.next}while(l!==f)}}catch(q){Be(i,i.return,q)}}function Gg(n){var i=n.updateQueue;if(i!==null){var r=n.stateNode;try{Pp(i,r)}catch(l){Be(n,n.return,l)}}}function Wg(n,i,r){r.props=ui(n.type,n.memoizedProps),r.state=n.memoizedState;try{r.componentWillUnmount()}catch(l){Be(n,i,l)}}function mr(n,i){try{var r=n.ref;if(r!==null){switch(n.tag){case 26:case 27:case 5:var l=n.stateNode;break;case 30:l=n.stateNode;break;default:l=n.stateNode}typeof r=="function"?n.refCleanup=r(l):r.current=l}}catch(h){Be(n,i,h)}}function Tn(n,i){var r=n.ref,l=n.refCleanup;if(r!==null)if(typeof l=="function")try{l()}catch(h){Be(n,i,h)}finally{n.refCleanup=null,n=n.alternate,n!=null&&(n.refCleanup=null)}else if(typeof r=="function")try{r(null)}catch(h){Be(n,i,h)}else r.current=null}function Fg(n){var i=n.type,r=n.memoizedProps,l=n.stateNode;try{e:switch(i){case"button":case"input":case"select":case"textarea":r.autoFocus&&l.focus();break e;case"img":r.src?l.src=r.src:r.srcSet&&(l.srcset=r.srcSet)}}catch(h){Be(n,n.return,h)}}function lh(n,i,r){try{var l=n.stateNode;YS(l,n.type,r,i),l[Ot]=i}catch(h){Be(n,n.return,h)}}function Kg(n){return n.tag===5||n.tag===3||n.tag===26||n.tag===27&&Ea(n.type)||n.tag===4}function ch(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||Kg(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.tag===27&&Ea(n.type)||n.flags&2||n.child===null||n.tag===4)continue e;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function uh(n,i,r){var l=n.tag;if(l===5||l===6)n=n.stateNode,i?(r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r).insertBefore(n,i):(i=r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r,i.appendChild(n),r=r._reactRootContainer,r!=null||i.onclick!==null||(i.onclick=Ln));else if(l!==4&&(l===27&&Ea(n.type)&&(r=n.stateNode,i=null),n=n.child,n!==null))for(uh(n,i,r),n=n.sibling;n!==null;)uh(n,i,r),n=n.sibling}function ol(n,i,r){var l=n.tag;if(l===5||l===6)n=n.stateNode,i?r.insertBefore(n,i):r.appendChild(n);else if(l!==4&&(l===27&&Ea(n.type)&&(r=n.stateNode),n=n.child,n!==null))for(ol(n,i,r),n=n.sibling;n!==null;)ol(n,i,r),n=n.sibling}function Yg(n){var i=n.stateNode,r=n.memoizedProps;try{for(var l=n.type,h=i.attributes;h.length;)i.removeAttributeNode(h[0]);kt(i,l,r),i[vt]=n,i[Ot]=r}catch(f){Be(n,n.return,f)}}var Wn=!1,nt=!1,hh=!1,Qg=typeof WeakSet=="function"?WeakSet:Set,dt=null;function ES(n,i){if(n=n.containerInfo,jh=El,n=lp(n),iu(n)){if("selectionStart"in n)var r={start:n.selectionStart,end:n.selectionEnd};else e:{r=(r=n.ownerDocument)&&r.defaultView||window;var l=r.getSelection&&r.getSelection();if(l&&l.rangeCount!==0){r=l.anchorNode;var h=l.anchorOffset,f=l.focusNode;l=l.focusOffset;try{r.nodeType,f.nodeType}catch{r=null;break e}var v=0,k=-1,E=-1,L=0,q=0,G=n,z=null;t:for(;;){for(var N;G!==r||h!==0&&G.nodeType!==3||(k=v+h),G!==f||l!==0&&G.nodeType!==3||(E=v+l),G.nodeType===3&&(v+=G.nodeValue.length),(N=G.firstChild)!==null;)z=G,G=N;for(;;){if(G===n)break t;if(z===r&&++L===h&&(k=v),z===f&&++q===l&&(E=v),(N=G.nextSibling)!==null)break;G=z,z=G.parentNode}G=N}r=k===-1||E===-1?null:{start:k,end:E}}else r=null}r=r||{start:0,end:0}}else r=null;for(Mh={focusedElem:n,selectionRange:r},El=!1,dt=i;dt!==null;)if(i=dt,n=i.child,(i.subtreeFlags&1028)!==0&&n!==null)n.return=i,dt=n;else for(;dt!==null;){switch(i=dt,f=i.alternate,n=i.flags,i.tag){case 0:if((n&4)!==0&&(n=i.updateQueue,n=n!==null?n.events:null,n!==null))for(r=0;r<n.length;r++)h=n[r],h.ref.impl=h.nextImpl;break;case 11:case 15:break;case 1:if((n&1024)!==0&&f!==null){n=void 0,r=i,h=f.memoizedProps,f=f.memoizedState,l=r.stateNode;try{var ee=ui(r.type,h);n=l.getSnapshotBeforeUpdate(ee,f),l.__reactInternalSnapshotBeforeUpdate=n}catch(ue){Be(r,r.return,ue)}}break;case 3:if((n&1024)!==0){if(n=i.stateNode.containerInfo,r=n.nodeType,r===9)Lh(n);else if(r===1)switch(n.nodeName){case"HEAD":case"HTML":case"BODY":Lh(n);break;default:n.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((n&1024)!==0)throw Error(s(163))}if(n=i.sibling,n!==null){n.return=i.return,dt=n;break}dt=i.return}}function Jg(n,i,r){var l=r.flags;switch(r.tag){case 0:case 11:case 15:Kn(n,r),l&4&&gr(5,r);break;case 1:if(Kn(n,r),l&4)if(n=r.stateNode,i===null)try{n.componentDidMount()}catch(v){Be(r,r.return,v)}else{var h=ui(r.type,i.memoizedProps);i=i.memoizedState;try{n.componentDidUpdate(h,i,n.__reactInternalSnapshotBeforeUpdate)}catch(v){Be(r,r.return,v)}}l&64&&Gg(r),l&512&&mr(r,r.return);break;case 3:if(Kn(n,r),l&64&&(n=r.updateQueue,n!==null)){if(i=null,r.child!==null)switch(r.child.tag){case 27:case 5:i=r.child.stateNode;break;case 1:i=r.child.stateNode}try{Pp(n,i)}catch(v){Be(r,r.return,v)}}break;case 27:i===null&&l&4&&Yg(r);case 26:case 5:Kn(n,r),i===null&&l&4&&Fg(r),l&512&&mr(r,r.return);break;case 12:Kn(n,r);break;case 31:Kn(n,r),l&4&&em(n,r);break;case 13:Kn(n,r),l&4&&tm(n,r),l&64&&(n=r.memoizedState,n!==null&&(n=n.dehydrated,n!==null&&(r=zS.bind(null,r),ak(n,r))));break;case 22:if(l=r.memoizedState!==null||Wn,!l){i=i!==null&&i.memoizedState!==null||nt,h=Wn;var f=nt;Wn=l,(nt=i)&&!f?Yn(n,r,(r.subtreeFlags&8772)!==0):Kn(n,r),Wn=h,nt=f}break;case 30:break;default:Kn(n,r)}}function Zg(n){var i=n.alternate;i!==null&&(n.alternate=null,Zg(i)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(i=n.stateNode,i!==null&&qc(i)),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}var He=null,jt=!1;function Fn(n,i,r){for(r=r.child;r!==null;)Xg(n,i,r),r=r.sibling}function Xg(n,i,r){if(qt&&typeof qt.onCommitFiberUnmount=="function")try{qt.onCommitFiberUnmount(Is,r)}catch{}switch(r.tag){case 26:nt||Tn(r,i),Fn(n,i,r),r.memoizedState?r.memoizedState.count--:r.stateNode&&(r=r.stateNode,r.parentNode.removeChild(r));break;case 27:nt||Tn(r,i);var l=He,h=jt;Ea(r.type)&&(He=r.stateNode,jt=!1),Fn(n,i,r),Rr(r.stateNode),He=l,jt=h;break;case 5:nt||Tn(r,i);case 6:if(l=He,h=jt,He=null,Fn(n,i,r),He=l,jt=h,He!==null)if(jt)try{(He.nodeType===9?He.body:He.nodeName==="HTML"?He.ownerDocument.body:He).removeChild(r.stateNode)}catch(f){Be(r,i,f)}else try{He.removeChild(r.stateNode)}catch(f){Be(r,i,f)}break;case 18:He!==null&&(jt?(n=He,Gm(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,r.stateNode),gs(n)):Gm(He,r.stateNode));break;case 4:l=He,h=jt,He=r.stateNode.containerInfo,jt=!0,Fn(n,i,r),He=l,jt=h;break;case 0:case 11:case 14:case 15:Sa(2,r,i),nt||Sa(4,r,i),Fn(n,i,r);break;case 1:nt||(Tn(r,i),l=r.stateNode,typeof l.componentWillUnmount=="function"&&Wg(r,i,l)),Fn(n,i,r);break;case 21:Fn(n,i,r);break;case 22:nt=(l=nt)||r.memoizedState!==null,Fn(n,i,r),nt=l;break;default:Fn(n,i,r)}}function em(n,i){if(i.memoizedState===null&&(n=i.alternate,n!==null&&(n=n.memoizedState,n!==null))){n=n.dehydrated;try{gs(n)}catch(r){Be(i,i.return,r)}}}function tm(n,i){if(i.memoizedState===null&&(n=i.alternate,n!==null&&(n=n.memoizedState,n!==null&&(n=n.dehydrated,n!==null))))try{gs(n)}catch(r){Be(i,i.return,r)}}function xS(n){switch(n.tag){case 31:case 13:case 19:var i=n.stateNode;return i===null&&(i=n.stateNode=new Qg),i;case 22:return n=n.stateNode,i=n._retryCache,i===null&&(i=n._retryCache=new Qg),i;default:throw Error(s(435,n.tag))}}function ll(n,i){var r=xS(n);i.forEach(function(l){if(!r.has(l)){r.add(l);var h=NS.bind(null,n,l);l.then(h,h)}})}function Mt(n,i){var r=i.deletions;if(r!==null)for(var l=0;l<r.length;l++){var h=r[l],f=n,v=i,k=v;e:for(;k!==null;){switch(k.tag){case 27:if(Ea(k.type)){He=k.stateNode,jt=!1;break e}break;case 5:He=k.stateNode,jt=!1;break e;case 3:case 4:He=k.stateNode.containerInfo,jt=!0;break e}k=k.return}if(He===null)throw Error(s(160));Xg(f,v,h),He=null,jt=!1,f=h.alternate,f!==null&&(f.return=null),h.return=null}if(i.subtreeFlags&13886)for(i=i.child;i!==null;)nm(i,n),i=i.sibling}var hn=null;function nm(n,i){var r=n.alternate,l=n.flags;switch(n.tag){case 0:case 11:case 14:case 15:Mt(i,n),Dt(n),l&4&&(Sa(3,n,n.return),gr(3,n),Sa(5,n,n.return));break;case 1:Mt(i,n),Dt(n),l&512&&(nt||r===null||Tn(r,r.return)),l&64&&Wn&&(n=n.updateQueue,n!==null&&(l=n.callbacks,l!==null&&(r=n.shared.hiddenCallbacks,n.shared.hiddenCallbacks=r===null?l:r.concat(l))));break;case 26:var h=hn;if(Mt(i,n),Dt(n),l&512&&(nt||r===null||Tn(r,r.return)),l&4){var f=r!==null?r.memoizedState:null;if(l=n.memoizedState,r===null)if(l===null)if(n.stateNode===null){e:{l=n.type,r=n.memoizedProps,h=h.ownerDocument||h;t:switch(l){case"title":f=h.getElementsByTagName("title")[0],(!f||f[Vs]||f[vt]||f.namespaceURI==="http://www.w3.org/2000/svg"||f.hasAttribute("itemprop"))&&(f=h.createElement(l),h.head.insertBefore(f,h.querySelector("head > title"))),kt(f,l,r),f[vt]=n,ht(f),l=f;break e;case"link":var v=ny("link","href",h).get(l+(r.href||""));if(v){for(var k=0;k<v.length;k++)if(f=v[k],f.getAttribute("href")===(r.href==null||r.href===""?null:r.href)&&f.getAttribute("rel")===(r.rel==null?null:r.rel)&&f.getAttribute("title")===(r.title==null?null:r.title)&&f.getAttribute("crossorigin")===(r.crossOrigin==null?null:r.crossOrigin)){v.splice(k,1);break t}}f=h.createElement(l),kt(f,l,r),h.head.appendChild(f);break;case"meta":if(v=ny("meta","content",h).get(l+(r.content||""))){for(k=0;k<v.length;k++)if(f=v[k],f.getAttribute("content")===(r.content==null?null:""+r.content)&&f.getAttribute("name")===(r.name==null?null:r.name)&&f.getAttribute("property")===(r.property==null?null:r.property)&&f.getAttribute("http-equiv")===(r.httpEquiv==null?null:r.httpEquiv)&&f.getAttribute("charset")===(r.charSet==null?null:r.charSet)){v.splice(k,1);break t}}f=h.createElement(l),kt(f,l,r),h.head.appendChild(f);break;default:throw Error(s(468,l))}f[vt]=n,ht(f),l=f}n.stateNode=l}else ay(h,n.type,n.stateNode);else n.stateNode=ty(h,l,n.memoizedProps);else f!==l?(f===null?r.stateNode!==null&&(r=r.stateNode,r.parentNode.removeChild(r)):f.count--,l===null?ay(h,n.type,n.stateNode):ty(h,l,n.memoizedProps)):l===null&&n.stateNode!==null&&lh(n,n.memoizedProps,r.memoizedProps)}break;case 27:Mt(i,n),Dt(n),l&512&&(nt||r===null||Tn(r,r.return)),r!==null&&l&4&&lh(n,n.memoizedProps,r.memoizedProps);break;case 5:if(Mt(i,n),Dt(n),l&512&&(nt||r===null||Tn(r,r.return)),n.flags&32){h=n.stateNode;try{Ni(h,"")}catch(ee){Be(n,n.return,ee)}}l&4&&n.stateNode!=null&&(h=n.memoizedProps,lh(n,h,r!==null?r.memoizedProps:h)),l&1024&&(hh=!0);break;case 6:if(Mt(i,n),Dt(n),l&4){if(n.stateNode===null)throw Error(s(162));l=n.memoizedProps,r=n.stateNode;try{r.nodeValue=l}catch(ee){Be(n,n.return,ee)}}break;case 3:if(Tl=null,h=hn,hn=kl(i.containerInfo),Mt(i,n),hn=h,Dt(n),l&4&&r!==null&&r.memoizedState.isDehydrated)try{gs(i.containerInfo)}catch(ee){Be(n,n.return,ee)}hh&&(hh=!1,am(n));break;case 4:l=hn,hn=kl(n.stateNode.containerInfo),Mt(i,n),Dt(n),hn=l;break;case 12:Mt(i,n),Dt(n);break;case 31:Mt(i,n),Dt(n),l&4&&(l=n.updateQueue,l!==null&&(n.updateQueue=null,ll(n,l)));break;case 13:Mt(i,n),Dt(n),n.child.flags&8192&&n.memoizedState!==null!=(r!==null&&r.memoizedState!==null)&&(ul=Tt()),l&4&&(l=n.updateQueue,l!==null&&(n.updateQueue=null,ll(n,l)));break;case 22:h=n.memoizedState!==null;var E=r!==null&&r.memoizedState!==null,L=Wn,q=nt;if(Wn=L||h,nt=q||E,Mt(i,n),nt=q,Wn=L,Dt(n),l&8192)e:for(i=n.stateNode,i._visibility=h?i._visibility&-2:i._visibility|1,h&&(r===null||E||Wn||nt||hi(n)),r=null,i=n;;){if(i.tag===5||i.tag===26){if(r===null){E=r=i;try{if(f=E.stateNode,h)v=f.style,typeof v.setProperty=="function"?v.setProperty("display","none","important"):v.display="none";else{k=E.stateNode;var G=E.memoizedProps.style,z=G!=null&&G.hasOwnProperty("display")?G.display:null;k.style.display=z==null||typeof z=="boolean"?"":(""+z).trim()}}catch(ee){Be(E,E.return,ee)}}}else if(i.tag===6){if(r===null){E=i;try{E.stateNode.nodeValue=h?"":E.memoizedProps}catch(ee){Be(E,E.return,ee)}}}else if(i.tag===18){if(r===null){E=i;try{var N=E.stateNode;h?Wm(N,!0):Wm(E.stateNode,!1)}catch(ee){Be(E,E.return,ee)}}}else if((i.tag!==22&&i.tag!==23||i.memoizedState===null||i===n)&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===n)break e;for(;i.sibling===null;){if(i.return===null||i.return===n)break e;r===i&&(r=null),i=i.return}r===i&&(r=null),i.sibling.return=i.return,i=i.sibling}l&4&&(l=n.updateQueue,l!==null&&(r=l.retryQueue,r!==null&&(l.retryQueue=null,ll(n,r))));break;case 19:Mt(i,n),Dt(n),l&4&&(l=n.updateQueue,l!==null&&(n.updateQueue=null,ll(n,l)));break;case 30:break;case 21:break;default:Mt(i,n),Dt(n)}}function Dt(n){var i=n.flags;if(i&2){try{for(var r,l=n.return;l!==null;){if(Kg(l)){r=l;break}l=l.return}if(r==null)throw Error(s(160));switch(r.tag){case 27:var h=r.stateNode,f=ch(n);ol(n,f,h);break;case 5:var v=r.stateNode;r.flags&32&&(Ni(v,""),r.flags&=-33);var k=ch(n);ol(n,k,v);break;case 3:case 4:var E=r.stateNode.containerInfo,L=ch(n);uh(n,L,E);break;default:throw Error(s(161))}}catch(q){Be(n,n.return,q)}n.flags&=-3}i&4096&&(n.flags&=-4097)}function am(n){if(n.subtreeFlags&1024)for(n=n.child;n!==null;){var i=n;am(i),i.tag===5&&i.flags&1024&&i.stateNode.reset(),n=n.sibling}}function Kn(n,i){if(i.subtreeFlags&8772)for(i=i.child;i!==null;)Jg(n,i.alternate,i),i=i.sibling}function hi(n){for(n=n.child;n!==null;){var i=n;switch(i.tag){case 0:case 11:case 14:case 15:Sa(4,i,i.return),hi(i);break;case 1:Tn(i,i.return);var r=i.stateNode;typeof r.componentWillUnmount=="function"&&Wg(i,i.return,r),hi(i);break;case 27:Rr(i.stateNode);case 26:case 5:Tn(i,i.return),hi(i);break;case 22:i.memoizedState===null&&hi(i);break;case 30:hi(i);break;default:hi(i)}n=n.sibling}}function Yn(n,i,r){for(r=r&&(i.subtreeFlags&8772)!==0,i=i.child;i!==null;){var l=i.alternate,h=n,f=i,v=f.flags;switch(f.tag){case 0:case 11:case 15:Yn(h,f,r),gr(4,f);break;case 1:if(Yn(h,f,r),l=f,h=l.stateNode,typeof h.componentDidMount=="function")try{h.componentDidMount()}catch(L){Be(l,l.return,L)}if(l=f,h=l.updateQueue,h!==null){var k=l.stateNode;try{var E=h.shared.hiddenCallbacks;if(E!==null)for(h.shared.hiddenCallbacks=null,h=0;h<E.length;h++)Dp(E[h],k)}catch(L){Be(l,l.return,L)}}r&&v&64&&Gg(f),mr(f,f.return);break;case 27:Yg(f);case 26:case 5:Yn(h,f,r),r&&l===null&&v&4&&Fg(f),mr(f,f.return);break;case 12:Yn(h,f,r);break;case 31:Yn(h,f,r),r&&v&4&&em(h,f);break;case 13:Yn(h,f,r),r&&v&4&&tm(h,f);break;case 22:f.memoizedState===null&&Yn(h,f,r),mr(f,f.return);break;case 30:break;default:Yn(h,f,r)}i=i.sibling}}function dh(n,i){var r=null;n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(r=n.memoizedState.cachePool.pool),n=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(n=i.memoizedState.cachePool.pool),n!==r&&(n!=null&&n.refCount++,r!=null&&nr(r))}function fh(n,i){n=null,i.alternate!==null&&(n=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==n&&(i.refCount++,n!=null&&nr(n))}function dn(n,i,r,l){if(i.subtreeFlags&10256)for(i=i.child;i!==null;)im(n,i,r,l),i=i.sibling}function im(n,i,r,l){var h=i.flags;switch(i.tag){case 0:case 11:case 15:dn(n,i,r,l),h&2048&&gr(9,i);break;case 1:dn(n,i,r,l);break;case 3:dn(n,i,r,l),h&2048&&(n=null,i.alternate!==null&&(n=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==n&&(i.refCount++,n!=null&&nr(n)));break;case 12:if(h&2048){dn(n,i,r,l),n=i.stateNode;try{var f=i.memoizedProps,v=f.id,k=f.onPostCommit;typeof k=="function"&&k(v,i.alternate===null?"mount":"update",n.passiveEffectDuration,-0)}catch(E){Be(i,i.return,E)}}else dn(n,i,r,l);break;case 31:dn(n,i,r,l);break;case 13:dn(n,i,r,l);break;case 23:break;case 22:f=i.stateNode,v=i.alternate,i.memoizedState!==null?f._visibility&2?dn(n,i,r,l):yr(n,i):f._visibility&2?dn(n,i,r,l):(f._visibility|=2,is(n,i,r,l,(i.subtreeFlags&10256)!==0||!1)),h&2048&&dh(v,i);break;case 24:dn(n,i,r,l),h&2048&&fh(i.alternate,i);break;default:dn(n,i,r,l)}}function is(n,i,r,l,h){for(h=h&&((i.subtreeFlags&10256)!==0||!1),i=i.child;i!==null;){var f=n,v=i,k=r,E=l,L=v.flags;switch(v.tag){case 0:case 11:case 15:is(f,v,k,E,h),gr(8,v);break;case 23:break;case 22:var q=v.stateNode;v.memoizedState!==null?q._visibility&2?is(f,v,k,E,h):yr(f,v):(q._visibility|=2,is(f,v,k,E,h)),h&&L&2048&&dh(v.alternate,v);break;case 24:is(f,v,k,E,h),h&&L&2048&&fh(v.alternate,v);break;default:is(f,v,k,E,h)}i=i.sibling}}function yr(n,i){if(i.subtreeFlags&10256)for(i=i.child;i!==null;){var r=n,l=i,h=l.flags;switch(l.tag){case 22:yr(r,l),h&2048&&dh(l.alternate,l);break;case 24:yr(r,l),h&2048&&fh(l.alternate,l);break;default:yr(r,l)}i=i.sibling}}var vr=8192;function ss(n,i,r){if(n.subtreeFlags&vr)for(n=n.child;n!==null;)sm(n,i,r),n=n.sibling}function sm(n,i,r){switch(n.tag){case 26:ss(n,i,r),n.flags&vr&&n.memoizedState!==null&&gk(r,hn,n.memoizedState,n.memoizedProps);break;case 5:ss(n,i,r);break;case 3:case 4:var l=hn;hn=kl(n.stateNode.containerInfo),ss(n,i,r),hn=l;break;case 22:n.memoizedState===null&&(l=n.alternate,l!==null&&l.memoizedState!==null?(l=vr,vr=16777216,ss(n,i,r),vr=l):ss(n,i,r));break;default:ss(n,i,r)}}function rm(n){var i=n.alternate;if(i!==null&&(n=i.child,n!==null)){i.child=null;do i=n.sibling,n.sibling=null,n=i;while(n!==null)}}function wr(n){var i=n.deletions;if((n.flags&16)!==0){if(i!==null)for(var r=0;r<i.length;r++){var l=i[r];dt=l,lm(l,n)}rm(n)}if(n.subtreeFlags&10256)for(n=n.child;n!==null;)om(n),n=n.sibling}function om(n){switch(n.tag){case 0:case 11:case 15:wr(n),n.flags&2048&&Sa(9,n,n.return);break;case 3:wr(n);break;case 12:wr(n);break;case 22:var i=n.stateNode;n.memoizedState!==null&&i._visibility&2&&(n.return===null||n.return.tag!==13)?(i._visibility&=-3,cl(n)):wr(n);break;default:wr(n)}}function cl(n){var i=n.deletions;if((n.flags&16)!==0){if(i!==null)for(var r=0;r<i.length;r++){var l=i[r];dt=l,lm(l,n)}rm(n)}for(n=n.child;n!==null;){switch(i=n,i.tag){case 0:case 11:case 15:Sa(8,i,i.return),cl(i);break;case 22:r=i.stateNode,r._visibility&2&&(r._visibility&=-3,cl(i));break;default:cl(i)}n=n.sibling}}function lm(n,i){for(;dt!==null;){var r=dt;switch(r.tag){case 0:case 11:case 15:Sa(8,r,i);break;case 23:case 22:if(r.memoizedState!==null&&r.memoizedState.cachePool!==null){var l=r.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:nr(r.memoizedState.cache)}if(l=r.child,l!==null)l.return=r,dt=l;else e:for(r=n;dt!==null;){l=dt;var h=l.sibling,f=l.return;if(Zg(l),l===r){dt=null;break e}if(h!==null){h.return=f,dt=h;break e}dt=f}}}var OS={getCacheForType:function(n){var i=bt(Xe),r=i.data.get(n);return r===void 0&&(r=n(),i.data.set(n,r)),r},cacheSignal:function(){return bt(Xe).controller.signal}},BS=typeof WeakMap=="function"?WeakMap:Map,Ce=0,ze=null,ge=null,we=0,Oe=0,Ft=null,ka=!1,rs=!1,ph=!1,Qn=0,Fe=0,_a=0,di=0,gh=0,Kt=0,os=0,br=null,Pt=null,mh=!1,ul=0,cm=0,hl=1/0,dl=null,Ta=null,rt=0,Ra=null,ls=null,Jn=0,yh=0,vh=null,um=null,Sr=0,wh=null;function Yt(){return(Ce&2)!==0&&we!==0?we&-we:U.T!==null?Rh():Af()}function hm(){if(Kt===0)if((we&536870912)===0||Se){var n=bo;bo<<=1,(bo&3932160)===0&&(bo=262144),Kt=n}else Kt=536870912;return n=Gt.current,n!==null&&(n.flags|=32),Kt}function Lt(n,i,r){(n===ze&&(Oe===2||Oe===9)||n.cancelPendingCommit!==null)&&(cs(n,0),Aa(n,we,Kt,!1)),$s(n,r),((Ce&2)===0||n!==ze)&&(n===ze&&((Ce&2)===0&&(
vendor: 14,198 bytes, line 9
9di|=r),Fe===4&&Aa(n,we,Kt,!1)),Rn(n))}function dm(n,i,r){if((Ce&6)!==0)throw Error(s(327));var l=!r&&(i&127)===0&&(i&n.expiredLanes)===0||qs(n,i),h=l?DS(n,i):Sh(n,i,!0),f=l;do{if(h===0){rs&&!l&&Aa(n,i,0,!1);break}else{if(r=n.current.alternate,f&&!jS(r)){h=Sh(n,i,!1),f=!1;continue}if(h===2){if(f=i,n.errorRecoveryDisabledLanes&f)var v=0;else v=n.pendingLanes&-536870913,v=v!==0?v:v&536870912?536870912:0;if(v!==0){i=v;e:{var k=n;h=br;var E=k.current.memoizedState.isDehydrated;if(E&&(cs(k,v).flags|=256),v=Sh(k,v,!1),v!==2){if(ph&&!E){k.errorRecoveryDisabledLanes|=f,di|=f,h=4;break e}f=Pt,Pt=h,f!==null&&(Pt===null?Pt=f:Pt.push.apply(Pt,f))}h=v}if(f=!1,h!==2)continue}}if(h===1){cs(n,0),Aa(n,i,0,!0);break}e:{switch(l=n,f=h,f){case 0:case 1:throw Error(s(345));case 4:if((i&4194048)!==i)break;case 6:Aa(l,i,Kt,!ka);break e;case 2:Pt=null;break;case 3:case 5:break;default:throw Error(s(329))}if((i&62914560)===i&&(h=ul+300-Tt(),10<h)){if(Aa(l,i,Kt,!ka),ko(l,0,!0)!==0)break e;Jn=i,l.timeoutHandle=Vm(fm.bind(null,l,r,Pt,dl,mh,i,Kt,di,os,ka,f,"Throttled",-0,0),h);break e}fm(l,r,Pt,dl,mh,i,Kt,di,os,ka,f,null,-0,0)}}break}while(!0);Rn(n)}function fm(n,i,r,l,h,f,v,k,E,L,q,G,z,N){if(n.timeoutHandle=-1,G=i.subtreeFlags,G&8192||(G&16785408)===16785408){G={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Ln},sm(i,f,G);var ee=(f&62914560)===f?ul-Tt():(f&4194048)===f?cm-Tt():0;if(ee=mk(G,ee),ee!==null){Jn=f,n.cancelPendingCommit=ee(Sm.bind(null,n,i,f,r,l,h,v,k,E,q,G,null,z,N)),Aa(n,f,v,!L);return}}Sm(n,i,f,r,l,h,v,k,E)}function jS(n){for(var i=n;;){var r=i.tag;if((r===0||r===11||r===15)&&i.flags&16384&&(r=i.updateQueue,r!==null&&(r=r.stores,r!==null)))for(var l=0;l<r.length;l++){var h=r[l],f=h.getSnapshot;h=h.value;try{if(!Vt(f(),h))return!1}catch{return!1}}if(r=i.child,i.subtreeFlags&16384&&r!==null)r.return=i,i=r;else{if(i===n)break;for(;i.sibling===null;){if(i.return===null||i.return===n)return!0;i=i.return}i.sibling.return=i.return,i=i.sibling}}return!0}function Aa(n,i,r,l){i&=~gh,i&=~di,n.suspendedLanes|=i,n.pingedLanes&=~i,l&&(n.warmLanes|=i),l=n.expirationTimes;for(var h=i;0<h;){var f=31-$t(h),v=1<<f;l[f]=-1,h&=~v}r!==0&&_f(n,r,i)}function fl(){return(Ce&6)===0?(kr(0),!1):!0}function bh(){if(ge!==null){if(Oe===0)var n=ge.return;else n=ge,In=ai=null,Lu(n),Xi=null,ir=0,n=ge;for(;n!==null;)Hg(n.alternate,n),n=n.return;ge=null}}function cs(n,i){var r=n.timeoutHandle;r!==-1&&(n.timeoutHandle=-1,ZS(r)),r=n.cancelPendingCommit,r!==null&&(n.cancelPendingCommit=null,r()),Jn=0,bh(),ze=n,ge=r=Nn(n.current,null),we=i,Oe=0,Ft=null,ka=!1,rs=qs(n,i),ph=!1,os=Kt=gh=di=_a=Fe=0,Pt=br=null,mh=!1,(i&8)!==0&&(i|=i&32);var l=n.entangledLanes;if(l!==0)for(n=n.entanglements,l&=i;0<l;){var h=31-$t(l),f=1<<h;i|=n[h],l&=~f}return Qn=i,Do(),r}function pm(n,i){de=null,U.H=dr,i===Zi||i===$o?(i=Op(),Oe=3):i===Tu?(i=Op(),Oe=4):Oe=i===Zu?8:i!==null&&typeof i=="object"&&typeof i.then=="function"?6:1,Ft=i,ge===null&&(Fe=1,nl(n,en(i,n.current)))}function gm(){var n=Gt.current;return n===null?!0:(we&4194048)===we?sn===null:(we&62914560)===we||(we&536870912)!==0?n===sn:!1}function mm(){var n=U.H;return U.H=dr,n===null?dr:n}function ym(){var n=U.A;return U.A=OS,n}function pl(){Fe=4,ka||(we&4194048)!==we&&Gt.current!==null||(rs=!0),(_a&134217727)===0&&(di&134217727)===0||ze===null||Aa(ze,we,Kt,!1)}function Sh(n,i,r){var l=Ce;Ce|=2;var h=mm(),f=ym();(ze!==n||we!==i)&&(dl=null,cs(n,i)),i=!1;var v=Fe;e:do try{if(Oe!==0&&ge!==null){var k=ge,E=Ft;switch(Oe){case 8:bh(),v=6;break e;case 3:case 2:case 9:case 6:Gt.current===null&&(i=!0);var L=Oe;if(Oe=0,Ft=null,us(n,k,E,L),r&&rs){v=0;break e}break;default:L=Oe,Oe=0,Ft=null,us(n,k,E,L)}}MS(),v=Fe;break}catch(q){pm(n,q)}while(!0);return i&&n.shellSuspendCounter++,In=ai=null,Ce=l,U.H=h,U.A=f,ge===null&&(ze=null,we=0,Do()),v}function MS(){for(;ge!==null;)vm(ge)}function DS(n,i){var r=Ce;Ce|=2;var l=mm(),h=ym();ze!==n||we!==i?(dl=null,hl=Tt()+500,cs(n,i)):rs=qs(n,i);e:do try{if(Oe!==0&&ge!==null){i=ge;var f=Ft;t:switch(Oe){case 1:Oe=0,Ft=null,us(n,i,f,1);break;case 2:case 9:if(Ep(f)){Oe=0,Ft=null,wm(i);break}i=function(){Oe!==2&&Oe!==9||ze!==n||(Oe=7),Rn(n)},f.then(i,i);break e;case 3:Oe=7;break e;case 4:Oe=5;break e;case 7:Ep(f)?(Oe=0,Ft=null,wm(i)):(Oe=0,Ft=null,us(n,i,f,7));break;case 5:var v=null;switch(ge.tag){case 26:v=ge.memoizedState;case 5:case 27:var k=ge;if(v?iy(v):k.stateNode.complete){Oe=0,Ft=null;var E=k.sibling;if(E!==null)ge=E;else{var L=k.return;L!==null?(ge=L,gl(L)):ge=null}break t}}Oe=0,Ft=null,us(n,i,f,5);break;case 6:Oe=0,Ft=null,us(n,i,f,6);break;case 8:bh(),Fe=6;break e;default:throw Error(s(462))}}PS();break}catch(q){pm(n,q)}while(!0);return In=ai=null,U.H=l,U.A=h,Ce=r,ge!==null?0:(ze=null,we=0,Do(),Fe)}function PS(){for(;ge!==null&&!vo();)vm(ge)}function vm(n){var i=$g(n.alternate,n,Qn);n.memoizedProps=n.pendingProps,i===null?gl(n):ge=i}function wm(n){var i=n,r=i.alternate;switch(i.tag){case 15:case 0:i=Lg(r,i,i.pendingProps,i.type,void 0,we);break;case 11:i=Lg(r,i,i.pendingProps,i.type.render,i.ref,we);break;case 5:Lu(i);default:Hg(r,i),i=ge=yp(i,Qn),i=$g(r,i,Qn)}n.memoizedProps=n.pendingProps,i===null?gl(n):ge=i}function us(n,i,r,l){In=ai=null,Lu(i),Xi=null,ir=0;var h=i.return;try{if(_S(n,h,i,r,we)){Fe=1,nl(n,en(r,n.current)),ge=null;return}}catch(f){if(h!==null)throw ge=h,f;Fe=1,nl(n,en(r,n.current)),ge=null;return}i.flags&32768?(Se||l===1?n=!0:rs||(we&536870912)!==0?n=!1:(ka=n=!0,(l===2||l===9||l===3||l===6)&&(l=Gt.current,l!==null&&l.tag===13&&(l.flags|=16384))),bm(i,n)):gl(i)}function gl(n){var i=n;do{if((i.flags&32768)!==0){bm(i,ka);return}n=i.return;var r=AS(i.alternate,i,Qn);if(r!==null){ge=r;return}if(i=i.sibling,i!==null){ge=i;return}ge=i=n}while(i!==null);Fe===0&&(Fe=5)}function bm(n,i){do{var r=CS(n.alternate,n);if(r!==null){r.flags&=32767,ge=r;return}if(r=n.return,r!==null&&(r.flags|=32768,r.subtreeFlags=0,r.deletions=null),!i&&(n=n.sibling,n!==null)){ge=n;return}ge=n=r}while(n!==null);Fe=6,ge=null}function Sm(n,i,r,l,h,f,v,k,E){n.cancelPendingCommit=null;do ml();while(rt!==0);if((Ce&6)!==0)throw Error(s(327));if(i!==null){if(i===n.current)throw Error(s(177));if(f=i.lanes|i.childLanes,f|=cu,p0(n,r,f,v,k,E),n===ze&&(ge=ze=null,we=0),ls=i,Ra=n,Jn=r,yh=f,vh=h,um=l,(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?(n.callbackNode=null,n.callbackPriority=0,US(Bi,function(){return Am(),null})):(n.callbackNode=null,n.callbackPriority=0),l=(i.flags&13878)!==0,(i.subtreeFlags&13878)!==0||l){l=U.T,U.T=null,h=Y.p,Y.p=2,v=Ce,Ce|=4;try{ES(n,i,r)}finally{Ce=v,Y.p=h,U.T=l}}rt=1,km(),_m(),Tm()}}function km(){if(rt===1){rt=0;var n=Ra,i=ls,r=(i.flags&13878)!==0;if((i.subtreeFlags&13878)!==0||r){r=U.T,U.T=null;var l=Y.p;Y.p=2;var h=Ce;Ce|=4;try{nm(i,n);var f=Mh,v=lp(n.containerInfo),k=f.focusedElem,E=f.selectionRange;if(v!==k&&k&&k.ownerDocument&&op(k.ownerDocument.documentElement,k)){if(E!==null&&iu(k)){var L=E.start,q=E.end;if(q===void 0&&(q=L),"selectionStart"in k)k.selectionStart=L,k.selectionEnd=Math.min(q,k.value.length);else{var G=k.ownerDocument||document,z=G&&G.defaultView||window;if(z.getSelection){var N=z.getSelection(),ee=k.textContent.length,ue=Math.min(E.start,ee),De=E.end===void 0?ue:Math.min(E.end,ee);!N.extend&&ue>De&&(v=De,De=ue,ue=v);var M=rp(k,ue),x=rp(k,De);if(M&&x&&(N.rangeCount!==1||N.anchorNode!==M.node||N.anchorOffset!==M.offset||N.focusNode!==x.node||N.focusOffset!==x.offset)){var P=G.createRange();P.setStart(M.node,M.offset),N.removeAllRanges(),ue>De?(N.addRange(P),N.extend(x.node,x.offset)):(P.setEnd(x.node,x.offset),N.addRange(P))}}}}for(G=[],N=k;N=N.parentNode;)N.nodeType===1&&G.push({element:N,left:N.scrollLeft,top:N.scrollTop});for(typeof k.focus=="function"&&k.focus(),k=0;k<G.length;k++){var $=G[k];$.element.scrollLeft=$.left,$.element.scrollTop=$.top}}El=!!jh,Mh=jh=null}finally{Ce=h,Y.p=l,U.T=r}}n.current=i,rt=2}}function _m(){if(rt===2){rt=0;var n=Ra,i=ls,r=(i.flags&8772)!==0;if((i.subtreeFlags&8772)!==0||r){r=U.T,U.T=null;var l=Y.p;Y.p=2;var h=Ce;Ce|=4;try{Jg(n,i.alternate,i)}finally{Ce=h,Y.p=l,U.T=r}}rt=3}}function Tm(){if(rt===4||rt===3){rt=0,Lc();var n=Ra,i=ls,r=Jn,l=um;(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?rt=5:(rt=0,ls=Ra=null,Rm(n,n.pendingLanes));var h=n.pendingLanes;if(h===0&&(Ta=null),Uc(r),i=i.stateNode,qt&&typeof qt.onCommitFiberRoot=="function")try{qt.onCommitFiberRoot(Is,i,void 0,(i.current.flags&128)===128)}catch{}if(l!==null){i=U.T,h=Y.p,Y.p=2,U.T=null;try{for(var f=n.onRecoverableError,v=0;v<l.length;v++){var k=l[v];f(k.value,{componentStack:k.stack})}}finally{U.T=i,Y.p=h}}(Jn&3)!==0&&ml(),Rn(n),h=n.pendingLanes,(r&261930)!==0&&(h&42)!==0?n===wh?Sr++:(Sr=0,wh=n):Sr=0,kr(0)}}function Rm(n,i){(n.pooledCacheLanes&=i)===0&&(i=n.pooledCache,i!=null&&(n.pooledCache=null,nr(i)))}function ml(){return km(),_m(),Tm(),Am()}function Am(){if(rt!==5)return!1;var n=Ra,i=yh;yh=0;var r=Uc(Jn),l=U.T,h=Y.p;try{Y.p=32>r?32:r,U.T=null,r=vh,vh=null;var f=Ra,v=Jn;if(rt=0,ls=Ra=null,Jn=0,(Ce&6)!==0)throw Error(s(331));var k=Ce;if(Ce|=4,om(f.current),im(f,f.current,v,r),Ce=k,kr(0,!1),qt&&typeof qt.onPostCommitFiberRoot=="function")try{qt.onPostCommitFiberRoot(Is,f)}catch{}return!0}finally{Y.p=h,U.T=l,Rm(n,i)}}function Cm(n,i,r){i=en(r,i),i=Ju(n.stateNode,i,2),n=va(n,i,2),n!==null&&($s(n,2),Rn(n))}function Be(n,i,r){if(n.tag===3)Cm(n,n,r);else for(;i!==null;){if(i.tag===3){Cm(i,n,r);break}else if(i.tag===1){var l=i.stateNode;if(typeof i.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Ta===null||!Ta.has(l))){n=en(r,n),r=Eg(2),l=va(i,r,2),l!==null&&(xg(r,l,i,n),$s(l,2),Rn(l));break}}i=i.return}}function kh(n,i,r){var l=n.pingCache;if(l===null){l=n.pingCache=new BS;var h=new Set;l.set(i,h)}else h=l.get(i),h===void 0&&(h=new Set,l.set(i,h));h.has(r)||(ph=!0,h.add(r),n=LS.bind(null,n,i,r),i.then(n,n))}function LS(n,i,r){var l=n.pingCache;l!==null&&l.delete(i),n.pingedLanes|=n.suspendedLanes&r,n.warmLanes&=~r,ze===n&&(we&r)===r&&(Fe===4||Fe===3&&(we&62914560)===we&&300>Tt()-ul?(Ce&2)===0&&cs(n,0):gh|=r,os===we&&(os=0)),Rn(n)}function Em(n,i){i===0&&(i=kf()),n=ei(n,i),n!==null&&($s(n,i),Rn(n))}function zS(n){var i=n.memoizedState,r=0;i!==null&&(r=i.retryLane),Em(n,r)}function NS(n,i){var r=0;switch(n.tag){case 31:case 13:var l=n.stateNode,h=n.memoizedState;h!==null&&(r=h.retryLane);break;case 19:l=n.stateNode;break;case 22:l=n.stateNode._retryCache;break;default:throw Error(s(314))}l!==null&&l.delete(i),Em(n,r)}function US(n,i){return cn(n,i)}var yl=null,hs=null,_h=!1,vl=!1,Th=!1,Ca=0;function Rn(n){n!==hs&&n.next===null&&(hs===null?yl=hs=n:hs=hs.next=n),vl=!0,_h||(_h=!0,qS())}function kr(n,i){if(!Th&&vl){Th=!0;do for(var r=!1,l=yl;l!==null;){if(n!==0){var h=l.pendingLanes;if(h===0)var f=0;else{var v=l.suspendedLanes,k=l.pingedLanes;f=(1<<31-$t(42|n)+1)-1,f&=h&~(v&~k),f=f&201326741?f&201326741|1:f?f|2:0}f!==0&&(r=!0,jm(l,f))}else f=we,f=ko(l,l===ze?f:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(f&3)===0||qs(l,f)||(r=!0,jm(l,f));l=l.next}while(r);Th=!1}}function IS(){xm()}function xm(){vl=_h=!1;var n=0;Ca!==0&&JS()&&(n=Ca);for(var i=Tt(),r=null,l=yl;l!==null;){var h=l.next,f=Om(l,i);f===0?(l.next=null,r===null?yl=h:r.next=h,h===null&&(hs=r)):(r=l,(n!==0||(f&3)!==0)&&(vl=!0)),l=h}rt!==0&&rt!==5||kr(n),Ca!==0&&(Ca=0)}function Om(n,i){for(var r=n.suspendedLanes,l=n.pingedLanes,h=n.expirationTimes,f=n.pendingLanes&-62914561;0<f;){var v=31-$t(f),k=1<<v,E=h[v];E===-1?((k&r)===0||(k&l)!==0)&&(h[v]=f0(k,i)):E<=i&&(n.expiredLanes|=k),f&=~k}if(i=ze,r=we,r=ko(n,n===i?r:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),l=n.callbackNode,r===0||n===i&&(Oe===2||Oe===9)||n.cancelPendingCommit!==null)return l!==null&&l!==null&&Us(l),n.callbackNode=null,n.callbackPriority=0;if((r&3)===0||qs(n,r)){if(i=r&-r,i===n.callbackPriority)return i;switch(l!==null&&Us(l),Uc(r)){case 2:case 8:r=Sn;break;case 32:r=Bi;break;case 268435456:r=Sf;break;default:r=Bi}return l=Bm.bind(null,n),r=cn(r,l),n.callbackPriority=i,n.callbackNode=r,i}return l!==null&&l!==null&&Us(l),n.callbackPriority=2,n.callbackNode=null,2}function Bm(n,i){if(rt!==0&&rt!==5)return n.callbackNode=null,n.callbackPriority=0,null;var r=n.callbackNode;if(ml()&&n.callbackNode!==r)return null;var l=we;return l=ko(n,n===ze?l:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),l===0?null:(dm(n,l,i),Om(n,Tt()),n.callbackNode!=null&&n.callbackNode===r?Bm.bind(null,n):null)}function jm(n,i){if(ml())return null;dm(n,i,!0)}function qS(){XS(function(){(Ce&6)!==0?cn(yt,IS):xm()})}function Rh(){if(Ca===0){var n=Qi;n===0&&(n=wo,wo<<=1,(wo&261888)===0&&(wo=256)),Ca=n}return Ca}function Mm(n){return n==null||typeof n=="symbol"||typeof n=="boolean"?null:typeof n=="function"?n:Ao(""+n)}function Dm(n,i){var r=i.ownerDocument.createElement("input");return r.name=i.name,r.value=i.value,n.id&&r.setAttribute("form",n.id),i.parentNode.insertBefore(r,i),n=new FormData(n),r.parentNode.removeChild(r),n}function $S(n,i,r,l,h){if(i==="submit"&&r&&r.stateNode===h){var f=Mm((h[Ot]||null).action),v=l.submitter;v&&(i=(i=v[Ot]||null)?Mm(i.formAction):v.getAttribute("formAction"),i!==null&&(f=i,v=null));var k=new Oo("action","action",null,l,h);n.push({event:k,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(Ca!==0){var E=v?Dm(h,v):new FormData(h);Gu(r,{pending:!0,data:E,method:h.method,action:f},null,E)}}else typeof f=="function"&&(k.preventDefault(),E=v?Dm(h,v):new FormData(h),Gu(r,{pending:!0,data:E,method:h.method,action:f},f,E))},currentTarget:h}]})}}for(var Ah=0;Ah<lu.length;Ah++){var Ch=lu[Ah],VS=Ch.toLowerCase(),HS=Ch[0].toUpperCase()+Ch.slice(1);un(VS,"on"+HS)}un(hp,"onAnimationEnd"),un(dp,"onAnimationIteration"),un(fp,"onAnimationStart"),un("dblclick","onDoubleClick"),un("focusin","onFocus"),un("focusout","onBlur"),un(rS,"onTransitionRun"),un(oS,"onTransitionStart"),un(lS,"onTransitionCancel"),un(pp,"onTransitionEnd"),Li("onMouseEnter",["mouseout","mouseover"]),Li("onMouseLeave",["mouseout","mouseover"]),Li("onPointerEnter",["pointerout","pointerover"]),Li("onPointerLeave",["pointerout","pointerover"]),Qa("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Qa("onSelect","focusout contextmenu dragend focu
9sin keydown keyup mousedown mouseup selectionchange".split(" ")),Qa("onBeforeInput",["compositionend","keypress","textInput","paste"]),Qa("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Qa("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Qa("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var _r="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(" "),GS=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(_r));function Pm(n,i){i=(i&4)!==0;for(var r=0;r<n.length;r++){var l=n[r],h=l.event;l=l.listeners;e:{var f=void 0;if(i)for(var v=l.length-1;0<=v;v--){var k=l[v],E=k.instance,L=k.currentTarget;if(k=k.listener,E!==f&&h.isPropagationStopped())break e;f=k,h.currentTarget=L;try{f(h)}catch(q){Mo(q)}h.currentTarget=null,f=E}else for(v=0;v<l.length;v++){if(k=l[v],E=k.instance,L=k.currentTarget,k=k.listener,E!==f&&h.isPropagationStopped())break e;f=k,h.currentTarget=L;try{f(h)}catch(q){Mo(q)}h.currentTarget=null,f=E}}}}function me(n,i){var r=i[Ic];r===void 0&&(r=i[Ic]=new Set);var l=n+"__bubble";r.has(l)||(Lm(i,n,2,!1),r.add(l))}function Eh(n,i,r){var l=0;i&&(l|=4),Lm(r,n,l,i)}var wl="_reactListening"+Math.random().toString(36).slice(2);function xh(n){if(!n[wl]){n[wl]=!0,xf.forEach(function(r){r!=="selectionchange"&&(GS.has(r)||Eh(r,!1,n),Eh(r,!0,n))});var i=n.nodeType===9?n:n.ownerDocument;i===null||i[wl]||(i[wl]=!0,Eh("selectionchange",!1,i))}}function Lm(n,i,r,l){switch(hy(i)){case 2:var h=wk;break;case 8:h=bk;break;default:h=Hh}r=h.bind(null,i,r,n),h=void 0,!Yc||i!=="touchstart"&&i!=="touchmove"&&i!=="wheel"||(h=!0),l?h!==void 0?n.addEventListener(i,r,{capture:!0,passive:h}):n.addEventListener(i,r,!0):h!==void 0?n.addEventListener(i,r,{passive:h}):n.addEventListener(i,r,!1)}function Oh(n,i,r,l,h){var f=l;if((i&1)===0&&(i&2)===0&&l!==null)e:for(;;){if(l===null)return;var v=l.tag;if(v===3||v===4){var k=l.stateNode.containerInfo;if(k===h)break;if(v===4)for(v=l.return;v!==null;){var E=v.tag;if((E===3||E===4)&&v.stateNode.containerInfo===h)return;v=v.return}for(;k!==null;){if(v=Mi(k),v===null)return;if(E=v.tag,E===5||E===6||E===26||E===27){l=f=v;continue e}k=k.parentNode}}l=l.return}qf(function(){var L=f,q=Fc(r),G=[];e:{var z=gp.get(n);if(z!==void 0){var N=Oo,ee=n;switch(n){case"keypress":if(Eo(r)===0)break e;case"keydown":case"keyup":N=N0;break;case"focusin":ee="focus",N=Xc;break;case"focusout":ee="blur",N=Xc;break;case"beforeblur":case"afterblur":N=Xc;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":N=Hf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":N=A0;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":N=q0;break;case hp:case dp:case fp:N=x0;break;case pp:N=V0;break;case"scroll":case"scrollend":N=T0;break;case"wheel":N=G0;break;case"copy":case"cut":case"paste":N=B0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":N=Wf;break;case"toggle":case"beforetoggle":N=F0}var ue=(i&4)!==0,De=!ue&&(n==="scroll"||n==="scrollend"),M=ue?z!==null?z+"Capture":null:z;ue=[];for(var x=L,P;x!==null;){var $=x;if(P=$.stateNode,$=$.tag,$!==5&&$!==26&&$!==27||P===null||M===null||($=Gs(x,M),$!=null&&ue.push(Tr(x,$,P))),De)break;x=x.return}0<ue.length&&(z=new N(z,ee,null,r,q),G.push({event:z,listeners:ue}))}}if((i&7)===0){e:{if(z=n==="mouseover"||n==="pointerover",N=n==="mouseout"||n==="pointerout",z&&r!==Wc&&(ee=r.relatedTarget||r.fromElement)&&(Mi(ee)||ee[ji]))break e;if((N||z)&&(z=q.window===q?q:(z=q.ownerDocument)?z.defaultView||z.parentWindow:window,N?(ee=r.relatedTarget||r.toElement,N=L,ee=ee?Mi(ee):null,ee!==null&&(De=c(ee),ue=ee.tag,ee!==De||ue!==5&&ue!==27&&ue!==6)&&(ee=null)):(N=null,ee=L),N!==ee)){if(ue=Hf,$="onMouseLeave",M="onMouseEnter",x="mouse",(n==="pointerout"||n==="pointerover")&&(ue=Wf,$="onPointerLeave",M="onPointerEnter",x="pointer"),De=N==null?z:Hs(N),P=ee==null?z:Hs(ee),z=new ue($,x+"leave",N,r,q),z.target=De,z.relatedTarget=P,$=null,Mi(q)===L&&(ue=new ue(M,x+"enter",ee,r,q),ue.target=P,ue.relatedTarget=De,$=ue),De=$,N&&ee)t:{for(ue=WS,M=N,x=ee,P=0,$=M;$;$=ue($))P++;$=0;for(var oe=x;oe;oe=ue(oe))$++;for(;0<P-$;
vendor: 5,391 bytes, lines 9-10
9)M=ue(M),P--;for(;0<$-P;)x=ue(x),$--;for(;P--;){if(M===x||x!==null&&M===x.alternate){ue=M;break t}M=ue(M),x=ue(x)}ue=null}else ue=null;N!==null&&zm(G,z,N,ue,!1),ee!==null&&De!==null&&zm(G,De,ee,ue,!0)}}e:{if(z=L?Hs(L):window,N=z.nodeName&&z.nodeName.toLowerCase(),N==="select"||N==="input"&&z.type==="file")var _e=ep;else if(Zf(z))if(tp)_e=aS;else{_e=tS;var ae=eS}else N=z.nodeName,!N||N.toLowerCase()!=="input"||z.type!=="checkbox"&&z.type!=="radio"?L&&Gc(L.elementType)&&(_e=ep):_e=nS;if(_e&&(_e=_e(n,L))){Xf(G,_e,r,q);break e}ae&&ae(n,z,L),n==="focusout"&&L&&z.type==="number"&&L.memoizedProps.value!=null&&Hc(z,"number",z.value)}switch(ae=L?Hs(L):window,n){case"focusin":(Zf(ae)||ae.contentEditable==="true")&&($i=ae,su=L,Xs=null);break;case"focusout":Xs=su=$i=null;break;case"mousedown":ru=!0;break;case"contextmenu":case"mouseup":case"dragend":ru=!1,cp(G,r,q);break;case"selectionchange":if(sS)break;case"keydown":case"keyup":cp(G,r,q)}var fe;if(tu)e:{switch(n){case"compositionstart":var be="onCompositionStart";break e;case"compositionend":be="onCompositionEnd";break e;case"compositionupdate":be="onCompositionUpdate";break e}be=void 0}else qi?Qf(n,r)&&(be="onCompositionEnd"):n==="keydown"&&r.keyCode===229&&(be="onCompositionStart");be&&(Ff&&r.locale!=="ko"&&(qi||be!=="onCompositionStart"?be==="onCompositionEnd"&&qi&&(fe=$f()):(ha=q,Qc="value"in ha?ha.value:ha.textContent,qi=!0)),ae=bl(L,be),0<ae.length&&(be=new Gf(be,n,null,r,q),G.push({event:be,listeners:ae}),fe?be.data=fe:(fe=Jf(r),fe!==null&&(be.data=fe)))),(fe=Y0?Q0(n,r):J0(n,r))&&(be=bl(L,"onBeforeInput"),0<be.length&&(ae=new Gf("onBeforeInput","beforeinput",null,r,q),G.push({event:ae,listeners:be}),ae.data=fe)),$S(G,n,L,r,q)}Pm(G,i)})}function Tr(n,i,r){return{instance:n,listener:i,currentTarget:r}}function bl(n,i){for(var r=i+"Capture",l=[];n!==null;){var h=n,f=h.stateNode;if(h=h.tag,h!==5&&h!==26&&h!==27||f===null||(h=Gs(n,r),h!=null&&l.unshift(Tr(n,h,f)),h=Gs(n,i),h!=null&&l.push(Tr(n,h,f))),n.tag===3)return l;n=n.return}return[]}function WS(n){if(n===null)return null;do n=n.return;while(n&&n.tag!==5&&n.tag!==27);return n||null}function zm(n,i,r,l,h){for(var f=i._reactName,v=[];r!==null&&r!==l;){var k=r,E=k.alternate,L=k.stateNode;if(k=k.tag,E!==null&&E===l)break;k!==5&&k!==26&&k!==27||L===null||(E=L,h?(L=Gs(r,f),L!=null&&v.unshift(Tr(r,L,E))):h||(L=Gs(r,f),L!=null&&v.push(Tr(r,L,E)))),r=r.return}v.length!==0&&n.push({event:i,listeners:v})}var FS=/\r\n?/g,KS=/\u0000|\uFFFD/g;function Nm(n){return(typeof n=="string"?n:""+n).replace(FS,`
10`).replace(KS,"")}function Um(n,i){return i=Nm(i),Nm(n)===i}function Me(n,i,r,l,h,f){switch(r){case"children":typeof l=="string"?i==="body"||i==="textarea"&&l===""||Ni(n,l):(typeof l=="number"||typeof l=="bigint")&&i!=="body"&&Ni(n,""+l);break;case"className":To(n,"class",l);break;case"tabIndex":To(n,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":To(n,r,l);break;case"style":Uf(n,l,f);break;case"data":if(i!=="object"){To(n,"data",l);break}case"src":case"href":if(l===""&&(i!=="a"||r!=="href")){n.removeAttribute(r);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){n.removeAttribute(r);break}l=Ao(""+l),n.setAttribute(r,l);break;case"action":case"formAction":if(typeof l=="function"){n.setAttribute(r,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof f=="function"&&(r==="formAction"?(i!=="input"&&Me(n,i,"name",h.name,h,null),Me(n,i,"formEncType",h.formEncType,h,null),Me(n,i,"formMethod",h.formMethod,h,null),Me(n,i,"formTarget",h.formTarget,h,null)):(Me(n,i,"encType",h.encType,h,null),Me(n,i,"method",h.method,h,null),Me(n,i,"target",h.target,h,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){n.removeAttribute(r);break}l=Ao(""+l),n.setAttribute(r,l);break;case"onClick":l!=null&&(n.onclick=Ln);break;case"onScroll":l!=null&&me("scroll",n);break;case"onScrollEnd":l!=null&&me("scrollend",n);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(s(61));if(r=l.__html,r!=null){if(h.children!=null)throw Error(s(60));n.innerHTML=r}}break;case"multiple":n.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":n.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){n.removeAttribute("xlink:href");break}r=Ao(""+l),n.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",r);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?n.setAttribute(r,""+l):n.removeAttribute(r);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInl
10ine":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?n.setAttribute(r,""):n.removeAttribute(r);break;case"capture":case"download":l===!0?n.setAttribute(r,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?n.setAttribute(r,l):n.removeAttribute(r);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?n.setAttribute(r,l):n.removeAttribute(r);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?n.removeAttribute(r):n.setAttribute(r,l);break;case"popover":me("beforetoggle",n),me("toggle",n),_o(n,"popover",l);break;case"xlinkActuate":Pn(n,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":Pn(n,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":Pn(n,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":Pn(n,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":Pn(n,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":Pn(n,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":Pn(n,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":Pn(n,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":Pn(n,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":_o(n,"is",l);break;case"innerText":case"textContent":break;default:(!(2<r.length)||r[0]!=="o"&&r[0]!=="O"||r[1]!=="n"&&r[1]!=="N")&&(r=k0.get(r)||r,_o(n,r,l))}}function Bh(n,i,r,l,h,f){switch(r){case"style":Uf(n,l,f);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(s(61));if(r=l.__html,r!=null){if(h.children!=null)throw Error(s(60));n.innerHTML=r}}break;case"children":typeof l=="string"?Ni(n,l):(typeof l=="number"||typeof l=="bigint")&&Ni(n,""+l);break;case"onScroll":l!=null&&me("scroll",n);break;case"onScrollEnd":l!=null&&me("scrollend",n);break;case"onClick":l!=null&&(n.onclick=Ln);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Of.hasOwnProperty(r))e:{if(r[0]==="o"&&r[1]==="n"&&(h=r.endsWith("Capture"),i=r.slice(2,h?r.length-7:void 0),f=n[Ot]||null,f=f!=null?f[r]:null,typeof f=="function"&&n.removeEventListener(i,f,h),typeof l=="function")){typeof f!="function"&&f!==null&&(r in n?n[r]=null:n.hasAttribute(r)&&n.removeAttribute(r)),n.addEventListener(i,l,h);break e}r in n?n[r]=l:l===!0?n.setAttribute(r,""):_o(n,r,l)}}}function kt(n,i,r){switch(i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":me("error",n),me("load",n);var l=!1,h=!1,f;for(f in r)if(r.hasOwnProperty(f)){var v=r[f];if(v!=null)switch(f){case"src":l=!0;break;case"srcSet":h=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,i));default:Me(n,i,f,v,r,null)}}h&&Me(n,i,"srcSet",r.srcSet,r,null),l&&Me(n,i,"src",r.src,r,null);return;case"input":me("invalid",n);var k=f=v=h=null,E=null,L=null;for(l in r)if(r.hasOwnProperty(l)){var q=r[l];if(q!=null)switch(l){case"name":h=q;break;case"type":v=q;break;case"checked":E=q;break;case"defaultChecked":L=q;break;case"value":f=q;break;case"defaultValue":k=q;break;case"children":case"dangerouslySetInnerHTML":if(q!=null)throw Error(s(137,i));break;default:Me(n,i,l,q,r,null)}}Pf(n,f,k,E,L,v,h,!1);return;case"select":me("invalid",n),l=v=f=null;for(h in r)if(r.hasOwnProperty(h)&&(k=r[h],k!=null))switch(h){case"value":f=k;break;case"defaultValue":v=k;break;case"multiple":l=k;default:Me(n,i,h,k,r,null)}i=f,r=v,n.multiple=!!l,i!=null?zi(n,!!l,i,!1):r!=null&&zi(n,!!l,r,!0);return;case"textarea":me("invalid",n),f=h=l=null;for(v in r)if(r.hasOwnProperty(v)&&(k=r[v],k!=null))switch(v){case"value":l=k;break;case"defaultValue":h=k;break;case"children":f=k;break;case"dangerouslySetInnerHTML":if(k!=null)throw Error(s(91));break;default:Me(n,i,v,k,r,null)}zf(n,l,h,f);return;case"option":for(E in r)r.hasOwnProperty(E)&&(l=r[E],l!=null)&&(E==="selected"?n.selected=l&&typeof l!="function"&&typeof l!="symbol":Me(n,i,E,l,r,null));return;case"dialog":me("beforetoggle",n),me("toggle",n),me("cancel",n),me("close",n);break;case"iframe":case"object":me("load",n);break;case"video":case"audio":for(l=0;l<_r.length;l++)me(_r[l],n);break;case"image":me("error",n),me("load",n);break;case"details":me("toggle",n);break;case"embed":case"source":case"link":me("error",n),me("load",n);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(L in r)if(r.hasOwnProperty(L)&&(l=r[L],l!=null))switch(L){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,i));default:Me(n,i,L,l,r,null)}return;default:if(Gc(i)){for(q in r)r.hasOwnProperty(q)&&(l=r[q],l!==void 0&&Bh(n,i,q,l,r,void 0));return}}for(k in r)r.hasOwnProperty(k)&&(l=r[k],l!=null&&Me(n,i,k,l,r,null))}function YS(n,i,r,l){switch(i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var h=null,f=null,v=null,k=null,E=null,L=null,q=null;for(N in r){var G=r[N];if(r.hasOwnProperty(N)&&G!=null)switch(N){case"checked":break;case"value":break;case"defaultValue":E=G;default:l.hasOwnProperty(N)||Me(n,i,N,null,l,G)}}for(var z in l){var N=l[z];if(G=r[z],l.hasOwnProperty(z)&&(N!=null||G!=null))switch(z){case"type":f=N;break;case"name":h=N;break;case"checked":L=N;break;case"defaultChecked":q=N;break;case"value":v=N;break;case"defaultValue":k=N;break;case"children":case"dangerouslySetInnerHTML":if(N!=null)throw Error(s(137,i));break;default:N!==G&&Me(n,i,z,N,l,G)}}Vc(n,v,k,E,L,q,f,h);return;case"select":N=v=k=z=null;for(f in r)if(E=r[f],r.hasOwnProperty(f)&&E!=null)switch(f){case"value":break;case"multiple":N=E;default:l.hasOwnProperty(f)||Me(n,i,f,null,l,E)}for(h in l)if(f=l[h],E=r[h],l.hasOwnProperty(h)&&(f!=null||E!=null))switch(h){case"value":z=f;break;case"defaultValue":k=f;break;case"multiple":v=f;default:f!==E&&Me(n,i,h,f,l,E)}i=k,r=v,l=N,z!=null?zi(n,!!r,z,!1):!!l!=!!r&&(i!=null?zi(n,!!r,i,!0):zi(n,!!r,r?[]:"",!1));return;case"textarea":N=z=null;for(k in r)if(h=r[k],r.hasOwnProperty(k)&&h!=null&&!l.hasOwnProperty(k))switch(k){case"value":break;case"children":break;default:Me(n,i,k,null,l,h)}for(v in l)if(h=l[v],f=r[v],l.hasOwnProperty(v)&&(h!=null||f!=null))switch(v){case"value":z=h;break;case"defaultValue":N=h;break;case"children":break;case"dangerouslySetInnerHTML":if(h!=null)throw Error(s(91));break;default:h!==f&&Me(n,i,v,h,l,f)}Lf(n,z,N);return;case"option":for(var ee in r)z=r[ee],r.hasOwnProperty(ee)&&z!=null&&!l.hasOwnProperty(ee)&&(ee==="selected"?n.selected=!1:Me(n,i,ee,null,l,z));for(E in l)z=l[E],N=r[E],l.hasOwnProperty(E)&&z!==N&&(z!=null||N!=null)&&(E==="selected"?n.selected=z&&typeof z!="function"&&typeof z!="symbol":Me(n,i,E,z,l,N));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var ue in r)z=r[ue],r.hasOwnProperty(ue)&&z!=null&&!l.hasOwnProperty(ue)&&Me(n,i,ue,null,l,z);for(L in l)if(z=l[L],N=r[L],l.hasOwnProperty(L)&&z!==N&&(z!=null||N!=null))switch(L){case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(s(137,i));break;default:Me(n,i,L,z,l,N)}return;default:if(Gc(i)){for(var De in r)z=r[De],r.hasOwnProperty(De)&&z!==void 0&&!l.hasOwnProperty(De)&&Bh(n,i,De,void 0,l,z);for(q in l)z=l[q],N=r[q],!l.hasOwnProperty(q)||z===N||z===void 0&&N===void 0||Bh(n,i,q,z,l,N
vendor: 10,307 bytes, line 10
10);return}}for(var M in r)z=r[M],r.hasOwnProperty(M)&&z!=null&&!l.hasOwnProperty(M)&&Me(n,i,M,null,l,z);for(G in l)z=l[G],N=r[G],!l.hasOwnProperty(G)||z===N||z==null&&N==null||Me(n,i,G,z,l,N)}function Im(n){switch(n){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function QS(){if(typeof performance.getEntriesByType=="function"){for(var n=0,i=0,r=performance.getEntriesByType("resource"),l=0;l<r.length;l++){var h=r[l],f=h.transferSize,v=h.initiatorType,k=h.duration;if(f&&k&&Im(v)){for(v=0,k=h.responseEnd,l+=1;l<r.length;l++){var E=r[l],L=E.startTime;if(L>k)break;var q=E.transferSize,G=E.initiatorType;q&&Im(G)&&(E=E.responseEnd,v+=q*(E<k?1:(k-L)/(E-L)))}if(--l,i+=8*(f+v)/(h.duration/1e3),n++,10<n)break}}if(0<n)return i/n/1e6}return navigator.connection&&(n=navigator.connection.downlink,typeof n=="number")?n:5}var jh=null,Mh=null;function Sl(n){return n.nodeType===9?n:n.ownerDocument}function qm(n){switch(n){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function $m(n,i){if(n===0)switch(i){case"svg":return 1;case"math":return 2;default:return 0}return n===1&&i==="foreignObject"?0:n}function Dh(n,i){return n==="textarea"||n==="noscript"||typeof i.children=="string"||typeof i.children=="number"||typeof i.children=="bigint"||typeof i.dangerouslySetInnerHTML=="object"&&i.dangerouslySetInnerHTML!==null&&i.dangerouslySetInnerHTML.__html!=null}var Ph=null;function JS(){var n=window.event;return n&&n.type==="popstate"?n===Ph?!1:(Ph=n,!0):(Ph=null,!1)}var Vm=typeof setTimeout=="function"?setTimeout:void 0,ZS=typeof clearTimeout=="function"?clearTimeout:void 0,Hm=typeof Promise=="function"?Promise:void 0,XS=typeof queueMicrotask=="function"?queueMicrotask:typeof Hm<"u"?function(n){return Hm.resolve(null).then(n).catch(ek)}:Vm;function ek(n){setTimeout(function(){throw n})}function Ea(n){return n==="head"}function Gm(n,i){var r=i,l=0;do{var h=r.nextSibling;if(n.removeChild(r),h&&h.nodeType===8)if(r=h.data,r==="/$"||r==="/&"){if(l===0){n.removeChild(h),gs(i);return}l--}else if(r==="$"||r==="$?"||r==="$~"||r==="$!"||r==="&")l++;else if(r==="html")Rr(n.ownerDocument.documentElement);else if(r==="head"){r=n.ownerDocument.head,Rr(r);for(var f=r.firstChild;f;){var v=f.nextSibling,k=f.nodeName;f[Vs]||k==="SCRIPT"||k==="STYLE"||k==="LINK"&&f.rel.toLowerCase()==="stylesheet"||r.removeChild(f),f=v}}else r==="body"&&Rr(n.ownerDocument.body);r=h}while(r);gs(i)}function Wm(n,i){var r=n;n=0;do{var l=r.nextSibling;if(r.nodeType===1?i?(r._stashedDisplay=r.style.display,r.style.display="none"):(r.style.display=r._stashedDisplay||"",r.getAttribute("style")===""&&r.removeAttribute("style")):r.nodeType===3&&(i?(r._stashedText=r.nodeValue,r.nodeValue=""):r.nodeValue=r._stashedText||""),l&&l.nodeType===8)if(r=l.data,r==="/$"){if(n===0)break;n--}else r!=="$"&&r!=="$?"&&r!=="$~"&&r!=="$!"||n++;r=l}while(r)}function Lh(n){var i=n.firstChild;for(i&&i.nodeType===10&&(i=i.nextSibling);i;){var r=i;switch(i=i.nextSibling,r.nodeName){case"HTML":case"HEAD":case"BODY":Lh(r),qc(r);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(r.rel.toLowerCase()==="stylesheet")continue}n.removeChild(r)}}function tk(n,i,r,l){for(;n.nodeType===1;){var h=r;if(n.nodeName.toLowerCase()!==i.toLowerCase()){if(!l&&(n.nodeName!=="INPUT"||n.type!=="hidden"))break}else if(l){if(!n[Vs])switch(i){case"meta":if(!n.hasAttribute("itemprop"))break;return n;case"link":if(f=n.getAttribute("rel"),f==="stylesheet"&&n.hasAttribute("data-precedence"))break;if(f!==h.rel||n.getAttribute("href")!==(h.href==null||h.href===""?null:h.href)||n.getAttribute("crossorigin")!==(h.crossOrigin==null?null:h.crossOrigin)||n.getAttribute("title")!==(h.title==null?null:h.title))break;return n;case"style":if(n.hasAttribute("data-precedence"))break;return n;case"script":if(f=n.getAttribute("src"),(f!==(h.src==null?null:h.src)||n.getAttribute("type")!==(h.type==null?null:h.type)||n.getAttribute("crossorigin")!==(h.crossOrigin==null?null:h.crossOrigin))&&f&&n.hasAttribute("async")&&!n.hasAttribute("itemprop"))break;return n;default:return n}}else if(i==="input"&&n.type==="hidden"){var f=h.name==null?null:""+h.name;if(h.type==="hidden"&&n.getAttribute("name")===f)return n}else return n;if(n=rn(n.nextSibling),n===null)break}return null}function nk(n,i,r){if(i==="")return null;for(;n.nodeType!==3;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!r||(n=rn(n.nextSibling),n===null))return null;return n}function Fm(n,i){for(;n.nodeType!==8;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!i||(n=rn(n.nextSibling),n===null))return null;return n}function zh(n){return n.data==="$?"||n.data==="$~"}function Nh(n){return n.data==="$!"||n.data==="$?"&&n.ownerDocument.readyState!=="loading"}function ak(n,i){var r=n.ownerDocument;if(n.data==="$~")n._reactRetry=i;else if(n.data!=="$?"||r.readyState!=="loading")i();else{var l=function(){i(),r.removeEventListener("DOMContentLoaded",l)};r.addEventListener("DOMContentLoaded",l),n._reactRetry=l}}function rn(n){for(;n!=null;n=n.nextSibling){var i=n.nodeType;if(i===1||i===3)break;if(i===8){if(i=n.data,i==="$"||i==="$!"||i==="$?"||i==="$~"||i==="&"||i==="F!"||i==="F")break;if(i==="/$"||i==="/&")return null}}return n}var Uh=null;function Km(n){n=n.nextSibling;for(var i=0;n;){if(n.nodeType===8){var r=n.data;if(r==="/$"||r==="/&"){if(i===0)return rn(n.nextSibling);i--}else r!=="$"&&r!=="$!"&&r!=="$?"&&r!=="$~"&&r!=="&"||i++}n=n.nextSibling}return null}function Ym(n){n=n.previousSibling;for(var i=0;n;){if(n.nodeType===8){var r=n.data;if(r==="$"||r==="$!"||r==="$?"||r==="$~"||r==="&"){if(i===0)return n;i--}else r!=="/$"&&r!=="/&"||i++}n=n.previousSibling}return null}function Qm(n,i,r){switch(i=Sl(r),n){case"html":if(n=i.documentElement,!n)throw Error(s(452));return n;case"head":if(n=i.head,!n)throw Error(s(453));return n;case"body":if(n=i.body,!n)throw Error(s(454));return n;default:throw Error(s(451))}}function Rr(n){for(var i=n.attributes;i.length;)n.removeAttributeNode(i[0]);qc(n)}var on=new Map,Jm=new Set;function kl(n){return typeof n.getRootNode=="function"?n.getRootNode():n.nodeType===9?n:n.ownerDocument}var Zn=Y.d;Y.d={f:ik,r:sk,D:rk,C:ok,L:lk,m:ck,X:hk,S:uk,M:dk};function ik(){var n=Zn.f(),i=fl();return n||i}function sk(n){var i=Di(n);i!==null&&i.tag===5&&i.type==="form"?pg(i):Zn.r(n)}var ds=typeof document>"u"?null:document;function Zm(n,i,r){var l=ds;if(l&&typeof i=="string"&&i){var h=Zt(i);h='link[rel="'+n+'"][href="'+h+'"]',typeof r=="string"&&(h+='[crossorigin="'+r+'"]'),Jm.has(h)||(Jm.add(h),n={rel:n,crossOrigin:r,href:i},l.querySelector(h)===null&&(i=l.createElement("link"),kt(i,"link",n),ht(i),l.head.appendChild(i)))}}function rk(n){Zn.D(n),Zm("dns-prefetch",n,null)}function ok(n,i){Zn.C(n,i),Zm("preconnect",n,i)}function lk(n,i,r){Zn.L(n,i,r);var l=ds;if(l&&n&&i){var h='link[rel="preload"][as="'+Zt(i)+'"]';i==="image"&&r&&r.imageSrcSet?(h+='[imagesrcset="'+Zt(r.imageSrcSet)+'"]',typeof r.imageSizes=="string"&&(h+='[imagesizes="'+Zt(r.imageSizes)+'"]')):h+='[href="'+Zt(n)+'"]';var f=h;switch(i){case"style":f=fs(n);break;case"script":f=ps(n)}on.has(f)||(n=m({rel:"preload",href:i==="image"&&r&&r.imageSrcSet?void 0:n,as:i},r),on.set(f,n),l.querySelector(h)!==null||i==="style"&&l.querySelector(Ar(f))||i==="script"&&l.querySelector(Cr(f))||(i=l.createElement("link"),kt(i,"link",n),ht(i),l.head.appendChild(i)))}}function ck(n,i){Zn.m(n,i);var r=ds;if(r&&n){var l=i&&typeof i.as=="string"?i.as:"script",h='link[rel="modulepreload"][as="'+Zt(l)+'"][href="'+Zt(n)+'"]',f=h;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":f=ps(n)}if(!on.has(f)&&(n=m({rel:"modulepreload",href:n},i),on.set(f,n),r.querySelector(h)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(r.querySelector(Cr(f)))return}l=r.createElement("link"),kt(l,"link",n),ht(l),r.head.appendChild(l)}}}function uk(n,i,r){Zn.S(n,i,r);var l=ds;if(l&&n){var h=Pi(l).hoistableStyles,f=fs(n);i=i||"default";var v=h.get(f);if(!v){var k={loading:0,preload:null};if(v=l.querySelector(Ar(f)))k.loading=5;else{n=m({rel:"stylesheet",href:n,"data-precedence":i},r),(r=on.get(f))&&Ih(n,r);var E=v=l.createElement("link");ht(E),kt(E,"link",n),E._p=new Promise(function(L,q){E.onload=L,E.onerror=q}),E.addEventListener("load",function(){k.loading|=1}),E.addEventListener("error",function(){k.loading|=2}),k.loading|=4,_l(v,i,l)}v={type:"stylesheet",instance:v,count:1,state:k},h.set(f,v)}}}function hk(n,i){Zn.X(n,i);var r=ds;if(r&&n){var l=Pi(r).hoistableScripts,h=ps(n),f=l.get(h);f||(f=r.querySelector(Cr(h)),f||(n=m({src:n,async:!0},i),(i=on.get(h))&&qh(n,i),f=r.createElement("script"),ht(f),kt(f,"link",n),r.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},l.set(h,f))}}function dk(n,i){Zn.M(n,i);var r=ds;if(r&&n){var l=Pi(r).hoistableScripts,h=ps(n),f=l.get(h);f||(f=r.querySelector(Cr(h)),f||(n=m({src:n,async:!0,type:"module"},i),(i=on.get(h))&&qh(n,i),f=r.createElement("script"),ht(f),kt(f,"link",n),r.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},l.set(h,f))}}function Xm(n,i,r,l){var h=(h=pe.current)?kl(h):null;if(!h)throw Error(s(446));switch(n){case"meta":case"title":return null;case"style":return typeof r.precedence=="string"&&typeof r.href=="string"?(i=fs(r.href),r=Pi(h).hoistableStyles,l=r.get(i),l||(l={type:"style",instance:null,count:0,state:null},r.set(i,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(r.rel==="stylesheet"&&typeof r.href=="string"&&typeof r.precedence=="string"){n=fs(r.href);var f=Pi(h).hoistableStyles,v=f.get(n);if(v||(h=h.ownerDocument||h,v={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},f.set(n,v),(f=h.querySelector(Ar(n)))&&!f._p&&(v.instance=f,v.state.loading=5),on.has(n)||(r={rel:"preload",as:"style",href:r.href,crossOrigin:r.crossOrigin,integrity:r.integrity,media:r.media,hrefLang:r.hrefLang,referrerPolicy:r.referrerPolicy},on.set(n,r),f||fk(h,n,r,v.state))),i&&l===null)throw Error(s(528,""));return v}if(i&&l!==null)throw Error(s(529,""));return null;case"script":return i=r.async,r=r.src,typeof r=="string"&&i&&typeof i!="function"&&typeof i!="symbol"?
vendor: 5,251 bytes, line 10
10(i=ps(r),r=Pi(h).hoistableScripts,l=r.get(i),l||(l={type:"script",instance:null,count:0,state:null},r.set(i,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,n))}}function fs(n){return'href="'+Zt(n)+'"'}function Ar(n){return'link[rel="stylesheet"]['+n+"]"}function ey(n){return m({},n,{"data-precedence":n.precedence,precedence:null})}function fk(n,i,r,l){n.querySelector('link[rel="preload"][as="style"]['+i+"]")?l.loading=1:(i=n.createElement("link"),l.preload=i,i.addEventListener("load",function(){return l.loading|=1}),i.addEventListener("error",function(){return l.loading|=2}),kt(i,"link",r),ht(i),n.head.appendChild(i))}function ps(n){return'[src="'+Zt(n)+'"]'}function Cr(n){return"script[async]"+n}function ty(n,i,r){if(i.count++,i.instance===null)switch(i.type){case"style":var l=n.querySelector('style[data-href~="'+Zt(r.href)+'"]');if(l)return i.instance=l,ht(l),l;var h=m({},r,{"data-href":r.href,"data-precedence":r.precedence,href:null,precedence:null});return l=(n.ownerDocument||n).createElement("style"),ht(l),kt(l,"style",h),_l(l,r.precedence,n),i.instance=l;case"stylesheet":h=fs(r.href);var f=n.querySelector(Ar(h));if(f)return i.state.loading|=4,i.instance=f,ht(f),f;l=ey(r),(h=on.get(h))&&Ih(l,h),f=(n.ownerDocument||n).createElement("link"),ht(f);var v=f;return v._p=new Promise(function(k,E){v.onload=k,v.onerror=E}),kt(f,"link",l),i.state.loading|=4,_l(f,r.precedence,n),i.instance=f;case"script":return f=ps(r.src),(h=n.querySelector(Cr(f)))?(i.instance=h,ht(h),h):(l=r,(h=on.get(f))&&(l=m({},r),qh(l,h)),n=n.ownerDocument||n,h=n.createElement("script"),ht(h),kt(h,"link",l),n.head.appendChild(h),i.instance=h);case"void":return null;default:throw Error(s(443,i.type))}else i.type==="stylesheet"&&(i.state.loading&4)===0&&(l=i.instance,i.state.loading|=4,_l(l,r.precedence,n));return i.instance}function _l(n,i,r){for(var l=r.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),h=l.length?l[l.length-1]:null,f=h,v=0;v<l.length;v++){var k=l[v];if(k.dataset.precedence===i)f=k;else if(f!==h)break}f?f.parentNode.insertBefore(n,f.nextSibling):(i=r.nodeType===9?r.head:r,i.insertBefore(n,i.firstChild))}function Ih(n,i){n.crossOrigin==null&&(n.crossOrigin=i.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=i.referrerPolicy),n.title==null&&(n.title=i.title)}function qh(n,i){n.crossOrigin==null&&(n.crossOrigin=i.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=i.referrerPolicy),n.integrity==null&&(n.integrity=i.integrity)}var Tl=null;function ny(n,i,r){if(Tl===null){var l=new Map,h=Tl=new Map;h.set(r,l)}else h=Tl,l=h.get(r),l||(l=new Map,h.set(r,l));if(l.has(n))return l;for(l.set(n,null),r=r.getElementsByTagName(n),h=0;h<r.length;h++){var f=r[h];if(!(f[Vs]||f[vt]||n==="link"&&f.getAttribute("rel")==="stylesheet")&&f.namespaceURI!=="http://www.w3.org/2000/svg"){var v=f.getAttribute(i)||"";v=n+v;var k=l.get(v);k?k.push(f):l.set(v,[f])}}return l}function ay(n,i,r){n=n.ownerDocument||n,n.head.insertBefore(r,i==="title"?n.querySelector("head > title"):null)}function pk(n,i,r){if(r===1||i.itemProp!=null)return!1;switch(n){case"meta":case"title":return!0;case"style":if(typeof i.precedence!="string"||typeof i.href!="string"||i.href==="")break;return!0;case"link":if(typeof i.rel!="string"||typeof i.href!="string"||i.href===""||i.onLoad||i.onError)break;return i.rel==="stylesheet"?(n=i.disabled,typeof i.precedence=="string"&&n==null):!0;case"script":if(i.async&&typeof i.async!="function"&&typeof i.async!="symbol"&&!i.onLoad&&!i.onError&&i.src&&typeof i.src=="string")return!0}return!1}function iy(n){return!(n.type==="stylesheet"&&(n.state.loading&3)===0)}function gk(n,i,r,l){if(r.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(r.state.loading&4)===0){if(r.instance===null){var h=fs(l.href),f=i.querySelector(Ar(h));if(f){i=f._p,i!==null&&typeof i=="object"&&typeof i.then=="function"&&(n.count++,n=Rl.bind(n),i.then(n,n)),r.state.loading|=4,r.instance=f,ht(f);return}f=i.ownerDocument||i,l=ey(l),(h=on.get(h))&&Ih(l,h),f=f.createElement("link"),ht(f);var v=f;v._p=new Promise(function(k,E){v.onload=k,v.onerror=E}),kt(f,"link",l),r.instance=f}n.stylesheets===null&&(n.stylesheets=new Map),n.stylesheets.set(r,i),(i=r.state.preload)&&(r.state.loading&3)===0&&(n.count++,r=Rl.bind(n),i.addEventListener("load",r),i.addEventListener("error",r))}}var $h=0;function mk(n,i){return n.stylesheets&&n.count===0&&Cl(n,n.stylesheets),0<n.count||0<n.imgCount?function(r){var l=setTimeout(function(){if(n.stylesheets&&Cl(n,n.stylesheets),n.unsuspend){var f=n.unsuspend;n.unsuspend=null,f()}},6e4+i);0<n.imgBytes&&$h===0&&($h=62500*QS());var h=setTimeout(function(){if(n.waitingForImages=!1,n.count===0&&(n.stylesheets&&Cl(n,n.stylesheets),n.unsuspend)){var f=n.unsuspend;n.unsuspend=null,f()}},(n.imgBytes>$h?50:800)+i);return n.unsuspend=r,function(){n.unsuspend=null,clearTimeout(l),clearTimeout(h)}}:null}function Rl(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Cl(this,this.stylesheets);else if(this.unsuspend){var n=this.unsuspend;this.unsuspend=null,n()}}}var Al=null;function Cl(n,i){n.stylesheets=null,n.unsuspend!==null&&(n.count++,Al=new Map,i.forEac
vendor: 10,011 bytes, line 10
10h(yk,n),Al=null,Rl.call(n))}function yk(n,i){if(!(i.state.loading&4)){var r=Al.get(n);if(r)var l=r.get(null);else{r=new Map,Al.set(n,r);for(var h=n.querySelectorAll("link[data-precedence],style[data-precedence]"),f=0;f<h.length;f++){var v=h[f];(v.nodeName==="LINK"||v.getAttribute("media")!=="not all")&&(r.set(v.dataset.precedence,v),l=v)}l&&r.set(null,l)}h=i.instance,v=h.getAttribute("data-precedence"),f=r.get(v)||l,f===l&&r.set(null,h),r.set(v,h),this.count++,l=Rl.bind(this),h.addEventListener("load",l),h.addEventListener("error",l),f?f.parentNode.insertBefore(h,f.nextSibling):(n=n.nodeType===9?n.head:n,n.insertBefore(h,n.firstChild)),i.state.loading|=4}}var Er={$$typeof:j,Provider:null,Consumer:null,_currentValue:le,_currentValue2:le,_threadCount:0};function vk(n,i,r,l,h,f,v,k,E){this.tag=1,this.containerInfo=n,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=zc(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zc(0),this.hiddenUpdates=zc(null),this.identifierPrefix=l,this.onUncaughtError=h,this.onCaughtError=f,this.onRecoverableError=v,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=E,this.incompleteTransitions=new Map}function sy(n,i,r,l,h,f,v,k,E,L,q,G){return n=new vk(n,i,r,v,E,L,q,G,k),i=1,f===!0&&(i|=24),f=Ht(3,null,null,i),n.current=f,f.stateNode=n,i=Su(),i.refCount++,n.pooledCache=i,i.refCount++,f.memoizedState={element:l,isDehydrated:r,cache:i},Ru(f),n}function ry(n){return n?(n=Gi,n):Gi}function oy(n,i,r,l,h,f){h=ry(h),l.context===null?l.context=h:l.pendingContext=h,l=ya(i),l.payload={element:r},f=f===void 0?null:f,f!==null&&(l.callback=f),r=va(n,l,i),r!==null&&(Lt(r,n,i),rr(r,n,i))}function ly(n,i){if(n=n.memoizedState,n!==null&&n.dehydrated!==null){var r=n.retryLane;n.retryLane=r!==0&&r<i?r:i}}function Vh(n,i){ly(n,i),(n=n.alternate)&&ly(n,i)}function cy(n){if(n.tag===13||n.tag===31){var i=ei(n,67108864);i!==null&&Lt(i,n,67108864),Vh(n,67108864)}}function uy(n){if(n.tag===13||n.tag===31){var i=Yt();i=Nc(i);var r=ei(n,i);r!==null&&Lt(r,n,i),Vh(n,i)}}var El=!0;function wk(n,i,r,l){var h=U.T;U.T=null;var f=Y.p;try{Y.p=2,Hh(n,i,r,l)}finally{Y.p=f,U.T=h}}function bk(n,i,r,l){var h=U.T;U.T=null;var f=Y.p;try{Y.p=8,Hh(n,i,r,l)}finally{Y.p=f,U.T=h}}function Hh(n,i,r,l){if(El){var h=Gh(l);if(h===null)Oh(n,i,l,xl,r),dy(n,l);else if(kk(h,n,i,r,l))l.stopPropagation();else if(dy(n,l),i&4&&-1<Sk.indexOf(n)){for(;h!==null;){var f=Di(h);if(f!==null)switch(f.tag){case 3:if(f=f.stateNode,f.current.memoizedState.isDehydrated){var v=Ya(f.pendingLanes);if(v!==0){var k=f;for(k.pendingLanes|=2,k.entangledLanes|=2;v;){var E=1<<31-$t(v);k.entanglements[1]|=E,v&=~E}Rn(f),(Ce&6)===0&&(hl=Tt()+500,kr(0))}}break;case 31:case 13:k=ei(f,2),k!==null&&Lt(k,f,2),fl(),Vh(f,2)}if(f=Gh(l),f===null&&Oh(n,i,l,xl,r),f===h)break;h=f}h!==null&&l.stopPropagation()}else Oh(n,i,l,null,r)}}function Gh(n){return n=Fc(n),Wh(n)}var xl=null;function Wh(n){if(xl=null,n=Mi(n),n!==null){var i=c(n);if(i===null)n=null;else{var r=i.tag;if(r===13){if(n=u(i),n!==null)return n;n=null}else if(r===31){if(n=d(i),n!==null)return n;n=null}else if(r===3){if(i.stateNode.current.memoizedState.isDehydrated)return i.tag===3?i.stateNode.containerInfo:null;n=null}else i!==n&&(n=null)}}return xl=n,null}function hy(n){switch(n){case"beforetoggle":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"toggle":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 2;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"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Ue()){case yt:return 2;case Sn:return 8;case Bi:case o0:return 32;case Sf:return 268435456;default:return 32}default:return 32}}var Fh=!1,xa=null,Oa=null,Ba=null,xr=new Map,Or=new Map,ja=[],Sk="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".split(" ");function dy(n,i){switch(n){case"focusin":case"focusout":xa=null;break;case"dragenter":case"dragleave":Oa=null;break;case"mouseover":case"mouseout":Ba=null;break;case"pointerover":case"pointerout":xr.delete(i.pointerId);break;case"gotpointercapture":case"lostpointercapture":Or.delete(i.pointerId)}}function Br(n,i,r,l,h,f){return n===null||n.nativeEvent!==f?(n={blockedOn:i,domEventName:r,eventSystemFlags:l,nativeEvent:f,targetContainers:[h]},i!==null&&(i=Di(i),i!==null&&cy(i)),n):(n.eventSystemFlags|=l,i=n.targetContainers,h!==null&&i.indexOf(h)===-1&&i.push(h),n)}function kk(n,i,r,l,h){switch(i){case"focusin":return xa=Br(xa,n,i,r,l,h),!0;case"dragenter":return Oa=Br(Oa,n,i,r,l,h),!0;case"mouseover":return Ba=Br(Ba,n,i,r,l,h),!0;case"pointerover":var f=h.pointerId;return xr.set(f,Br(xr.get(f)||null,n,i,r,l,h)),!0;case"gotpointercapture":return f=h.pointerId,Or.set(f,Br(Or.get(f)||null,n,i,r,l,h)),!0}return!1}function fy(n){var i=Mi(n.target);if(i!==null){var r=c(i);if(r!==null){if(i=r.tag,i===13){if(i=u(r),i!==null){n.blockedOn=i,Cf(n.priority,function(){uy(r)});return}}else if(i===31){if(i=d(r),i!==null){n.blockedOn=i,Cf(n.priority,function(){uy(r)});return}}else if(i===3&&r.stateNode.current.memoizedState.isDehydrated){n.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}n.blockedOn=null}function Ol(n){if(n.blockedOn!==null)return!1;for(var i=n.targetContainers;0<i.length;){var r=Gh(n.nativeEvent);if(r===null){r=n.nativeEvent;var l=new r.constructor(r.type,r);Wc=l,r.target.dispatchEvent(l),Wc=null}else return i=Di(r),i!==null&&cy(i),n.blockedOn=r,!1;i.shift()}return!0}function py(n,i,r){Ol(n)&&r.delete(i)}function _k(){Fh=!1,xa!==null&&Ol(xa)&&(xa=null),Oa!==null&&Ol(Oa)&&(Oa=null),Ba!==null&&Ol(Ba)&&(Ba=null),xr.forEach(py),Or.forEach(py)}function Bl(n,i){n.blockedOn===i&&(n.blockedOn=null,Fh||(Fh=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,_k)))}var jl=null;function gy(n){jl!==n&&(jl=n,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){jl===n&&(jl=null);for(var i=0;i<n.length;i+=3){var r=n[i],l=n[i+1],h=n[i+2];if(typeof l!="function"){if(Wh(l||r)===null)continue;break}var f=Di(r);f!==null&&(n.splice(i,3),i-=3,Gu(f,{pending:!0,data:h,method:r.method,action:l},l,h))}}))}function gs(n){function i(E){return Bl(E,n)}xa!==null&&Bl(xa,n),Oa!==null&&Bl(Oa,n),Ba!==null&&Bl(Ba,n),xr.forEach(i),Or.forEach(i);for(var r=0;r<ja.length;r++){var l=ja[r];l.blockedOn===n&&(l.blockedOn=null)}for(;0<ja.length&&(r=ja[0],r.blockedOn===null);)fy(r),r.blockedOn===null&&ja.shift();if(r=(n.ownerDocument||n).$$reactFormReplay,r!=null)for(l=0;l<r.length;l+=3){var h=r[l],f=r[l+1],v=h[Ot]||null;if(typeof f=="function")v||gy(r);else if(v){var k=null;if(f&&f.hasAttribute("formAction")){if(h=f,v=f[Ot]||null)k=v.formAction;else if(Wh(h)!==null)continue}else k=v.action;typeof k=="function"?r[l+1]=k:(r.splice(l,3),l-=3),gy(r)}}}function my(){function n(f){f.canIntercept&&f.info==="react-transition"&&f.intercept({handler:function(){return new Promise(function(v){return h=v})},focusReset:"manual",scroll:"manual"})}function i(){h!==null&&(h(),h=null),l||setTimeout(r,20)}function r(){if(!l&&!navigation.transition){var f=navigation.currentEntry;f&&f.url!=null&&navigation.navigate(f.url,{state:f.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,h=null;return navigation.addEventListener("navigate",n),navigation.addEventListener("navigatesuccess",i),navigation.addEventListener("navigateerror",i),setTimeout(r,100),function(){l=!0,navigation.removeEventListener("navigate",n),navigation.removeEventListener("navigatesuccess",i),navigation.removeEventListener("navigateerror",i),h!==null&&(h(),h=null)}}}function Kh(n){this._internalRoot=n}Ml.prototype.render=Kh.prototype.render=function(n){var i=this._internalRoot;if(i===null)throw Error(s(409));var r=i.current,l=Yt();oy(r,l,n,i,null,null)},Ml.prototype.unmount=Kh.prototype.unmount=function(){var n=this._internalRoot;if(n!==null){this._internalRoot=null;var i=n.containerInfo;oy(n.current,2,null,n,null,null),fl(),i[ji]=null}};function Ml(n){this._internalRoot=n}Ml.prototype.unstable_scheduleHydration=function(n){if(n){var i=Af();n={blockedOn:null,target:n,priority:i};for(var r=0;r<ja.length&&i!==0&&i<ja[r].priority;r++);ja.splice(r,0,n),r===0&&fy(n)}};var yy=e.version;if(yy!=="19.2.5")throw Error(s(527,yy,"19.2.5"));Y.findDOMNode=function(n){var i=n._reactInternals;if(i===void 0)throw typeof n.render=="function"?Error(s(188)):(n=Object.keys(n).join(","),Error(s(268,n)));return n=g(i),n=n!==null?y(n):null,n=n===null?null:n.stateNode,n};var Tk={bundleType:0,version:"19.2.5",rendererPackageName:"react-dom",currentDispatcherRef:U,reconcilerVersion:"19.2.5"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Dl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Dl.isDisabled&&Dl.supportsFiber)try{Is=Dl.inject(Tk),qt=Dl}catch{}}
10return Mr.createRoot=function(n,i){if(!o(n))throw Error(s(299));var r=!1,l="",h=Tg,f=Rg,v=Ag;return i!=null&&(i.unstable_strictMode===!0&&(r=!0),i.identifierPrefix!==void 0&&(l=i.identifierPrefix),i.onUncaughtError!==void 0&&(h=i.onUncaughtError),i.onCaughtError!==void 0&&(f=i.onCaughtError),i.onRecoverableError!==void 0&&(v=i.onRecoverableError)),i=sy(n,1,!1,null,null,r,l,null,h,f,v,my),n[ji]=i.current,xh(n),new Kh(i)},Mr.hydrateRoot=function(n,i,r){if(!o(n))throw Error(s(299));var l=!1,h="",f=Tg,v=Rg,k=Ag,E=null;return r!=null&&(r.unstable_strictMode===!0&&(l=!0),r.identifierPrefix!==void 0&&(h=r.identifierPrefix),r.onUncaughtError!==void 0&&(f=r.onUncaughtError),r.onCaughtError!==void 0&&(v=r.onCaughtError),r.onRecoverableError!==void 0&&(k=r.onRecoverableError),r.formState!==void 0&&(E=r.formState)),i=sy(n,1,!0,i,r??null,l,h,E,f,v,k,my),i.context=ry(null),r=i.current,l=Yt(),l=Nc(l),h=ya(l),h.callback=null,va(r,h,l),r=l,i.current.lanes=r,$s(i,r),Rn(i),n[ji]=i.current,xh(n),new Ml(i)},Mr.version="19.2.5",Mr}var Cy;function Pk(){if(Cy)return Jh.exports;Cy=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),Jh.exports=Dk(),Jh.exports}var Lk=Pk(),zk="__TSS_CONTEXT",Td=Symbol.for("TSS_SERVER_FUNCTION"),k4=Symbol.for("TSS_SERVER_FUNCTION_FACTORY"),Nk="application/x-tss-framed",Xn={JSON:0,CHUNK:1,END:2,ERROR:3},Uk=/;\s*v=(\d+)/;function Ik(t){const e=t.match(Uk);return e?parseInt(e[1],10):void 0}function qk(t){const e=Ik(t);if(e!==void 0&&e!==1)throw new Error(`Incompatible framed protocol version: server=${e}, client=1. Please ensure client and server are using compatible versions.`)}var fw=()=>window.__TSS_START_OPTIONS__,pw=!1;function Qr(t){return t[t.length-1]}function $k(t){return typeof t=="function"}function Ua(t,e){return $k(t)?t(e):t}var Vk=Object.prototype.hasOwnProperty,Ey=Object.prototype.propertyIsEnumerable,Hk=()=>Object.create(null),fi=(t,e)=>vi(t,e,Hk);function vi(t,e,a=()=>({}),s=0){if(t===e)return t;if(s>500)return e;const o=e,c=By(t)&&By(o);if(!c&&!(Ds(t)&&Ds(o)))return o;const u=c?t:xy(t);if(!u)return o;const d=c?o:xy(o);if(!d)return o;const p=u.length,g=d.length,y=c?new Array(g):a();let m=0;for(let w=0;w<g;w++){const b=c?w:d[w],S=t[b],A=o[b];if(S===A){y[b]=S,(c?w<p:Vk.call(t,b))&&m++;continue}if(S===null||A===null||typeof S!="object"||typeof A!="object"){y[b]=A;continue}const _=vi(S,A,a,s+1);y[b]=_,_===S&&m++}return p===g&&m===p?t:y}function xy(t){const e=Object.getOwnPropertyNames(t);for(const o of e)if(!Ey.call(t,o))return!1;const a=Object.getOwnPropertySymbols(t);if(a.length===0)return e;const s=e;for(const o of a){if(!Ey.call(t,o))return!1;s.push(o)}return s}function Ds(t){if(!Oy(t))return!1;const e=t.constructor;if(typeof e>"u")return!0;const a=e.prototype;return!(!Oy(a)||!a.hasOwnProperty("isPrototypeOf"))}function Oy(t){return Object.prototype.toString.call(t)==="[object Object]"}function By(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function Nt(t,e,a){if(t===e)return!0;if(typeof t!=typeof e)return!1;if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return!1;for(let s=0,o=t.length;s<o;s++)if(!Nt(t[s],e[s],a))return!1;return!0}if(Ds(t)&&Ds(e)){const s=a?.ignoreUndefined??!0;if(a?.partial){for(const u in e)if((!s||e[u]!==void 0)&&!Nt(t[u],e[u],a))return!1;return!0}let o=0;if(!s)o=Object.keys(t).length;else for(const u in t)t[u]!==void 0&&o++;let c=0;for(const u in e)if((!s||e[u]!==void 0)&&(c++,c>o||!Nt(t[u],e[u],a)))return!1;return o===c}return!1}function Ri(t){let e,a;const s=new Promise((o,c)=>{e=o,a=c});return s.status="pending",s.resolve=o=>{s.status="resolved",s.value=o,e(o),t?.(o)},s.reject=o=>{s.status="rejected",a(o)},s}function Gk(t){return typeof t?.message!="string"?!1:t.message.startsWith("Failed to fetch dynamically imported module")||t.message.startsWith("error loading dynamically imported module")||t.message.startsWith("Importing a module script failed")}function Jr(t){return!!(t&&typeof t=="object"&&typeof t.then=="function")}function Wk(t){return t.replace(/[\x00-\x1f\x7f]/g,"")}function jy(t){let e;try{e=decodeURI(t)}catch{e=t.replaceAll(/%[0-9A-F]{2}/gi,a=>{try{return decodeURI(a)}catch{return a}})}return Wk(e)}var Fk=["http:","https:","mailto:","tel:"];function nc(t,e){if(!t)return!1;try{const a=new URL(t);return!e.has(a.protocol)}catch{return!1}}var Kk={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},Yk=/[&><\u2028\u2029]/g;function Qk(t){return t.replace(Yk,e=>Kk[e])}function Dr(t){if(!t)return{path:t,handledProtocolRelativeURL:!1};if(!/[%\\\x00-\x1f\x7f]/.test(t)&&!t.startsWith("//"))return{path:t,handledProtocolRelativeURL:!1};const e=/%25|%5C/gi;let a=0,s="",o;for(;(o=e.exec(t))!==null;)s+=jy(t.slice(a,o.index))+o[0],a=e.lastIndex;s=s+jy(a?t.slice(a):t);let c=!1;return s.startsWith("//")&&(c=!0,s="/"+s.replace(/^\/+/,"")),{path:s,handledProtocolRelativeURL:c}}function Jk(t){return/\s|[^\u0000-\u007F]/.test(t)?t.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):t}function Zk(t,e){if(t===e)return!0;
10if(t.length!==e.length)return!1;for(let a=0;a<t.length;a++)if(t[a]!==e[a])return!1;return!0}function It(){throw new Error("Invariant failed")}function Zr(t){const e=new Map;let a,s;const o=c=>{c.next&&(c.prev?(c.prev.next=c.next,c.next.prev=c.prev,c.next=void 0,s&&(s.next=c,c.prev=s)):(c.next.prev=void 0,a=c.next,c.next=void 0,s&&(c.prev=s,s.next=c)),s=c)};return{get(c){const u=e.get(c);if(u)return o(u),u.value},set(c,u){if(e.size>=t&&a){const p=a;e.delete(p.key),p.next&&(a=p.next,p.next.prev=void 0),p===s&&(s=void 0)}const d=e.get(c);if(d)d.value=u,o(d);else{const p={key:c,value:u,prev:s};s&&(s.next=p),s=p,a||(a=p),e.set(c,p)}},clear(){e.clear(),a=void 0,s=void 0}}}var Ia=4,gw=5;function Xk(t){const e=t.indexOf("{");if(e===-1)return null;const a=t.indexOf("}",e);return a===-1||e+1>=t.length?null:[e,a]}function Qd(t,e,a=new Uint16Array(6)){const s=t.indexOf("/",e),o=s===-1?t.length:s,c=t.substring(e,o);if(!c||!c.includes("$"))return a[0]=0,a[1]=e,a[2]=e,a[3]=o,a[4]=o,a[5]=o,a;if(c==="$"){const d=t.length;return a[0]=2,a[1]=e,a[2]=e,a[3]=d,a[4]=d,a[5]=d,a}if(c.charCodeAt(0)===36)return a[0]=1,a[1]=e,a[2]=e+1,a[3]=o,a[4]=o,a[5]=o,a;const u=Xk(c);if(u){const[d,p]=u,g=c.charCodeAt(d+1);if(g===45){if(d+2<c.length&&c.charCodeAt(d+2)===36){const y=d+3,m=p;if(y<m)return a[0]=3,a[1]=e+d,a[2]=e+y,a[3]=e+m,a[4]=e+p+1,a[5]=o,a}}else if(g===36){const y=d+1,m=d+2;return m===p?(a[0]=2,a[1]=e+d,a[2]=e+y,a[3]=e+m,a[4]=e+p+1,a[5]=t.length,a):(a[0]=1,a[1]=e+d,a[2]=e+m,a[3]=e+p,a[4]=e+p+1,a[5]=o,a)}}return a[0]=0,a[1]=e,a[2]=e,a[3]=o,a[4]=o,a[5]=o,a}function kc(t,e,a,s,o,c,u){u?.(a);let d=s;{const p=a.fullPath??a.from,g=p.length,y=a.options?.caseSensitive??t,m=!!(a.options?.params?.parse&&a.options?.skipRouteOnParseError?.params);for(;d<g;){const b=Qd(p,d,e);let S;const A=d,_=b[5];switch(d=_+1,c++,b[0]){case 0:{const C=p.substring(b[2],b[3]);if(y){const B=o.static?.get(C);if(B)S=B;else{o.static??=new Map;const j=wi(a.fullPath??a.from);j.parent=o,j.depth=c,S=j,o.static.set(C,j)}}else{const B=C.toLowerCase(),j=o.staticInsensitive?.get(B);if(j)S=j;else{o.staticInsensitive??=new Map;const D=wi(a.fullPath??a.from);D.parent=o,D.depth=c,S=D,o.staticInsensitive.set(B,D)}}break}case 1:{const C=p.substring(A,b[1]),B=p.substring(b[4],_),j=y&&!!(C||B),D=C?j?C:C.toLowerCase():void 0,F=B?j?B:B.toLowerCase():void 0,V=!m&&o.dynamic?.find(I=>!I.skipOnParamError&&I.caseSensitive===j&&I.prefix===D&&I.suffix===F);if(V)S=V;else{const I=nd(1,a.fullPath??a.from,j,D,F);S=I,I.depth=c,I.parent=o,o.dynamic??=[],o.dynamic.push(I)}break}case 3:{const C=p.substring(A,b[1]),B=p.substring(b[4],_),j=y&&!!(C||B),D=C?j?C:C.toLowerCase():void 0,F=B?j?B:B.toLowerCase():void 0,V=!m&&o.optional?.find(I=>!I.skipOnParamError&&I.caseSensitive===j&&I.prefix===D&&I.suffix===F);if(V)S=V;else{const I=nd(3,a.fullPath??a.from,j,D,F);S=I,I.parent=o,I.depth=c,o.optional??=[],o.optional.push(I)}break}case 2:{const C=p.substring(A,b[1]),B=p.substring(b[4],_),j=y&&!!(C||B),D=C?j?C:C.toLowerCase():void 0,F=B?j?B:B.toLowerCase():void 0,V=nd(2,a.fullPath??a.from,j,D,F);S=V,V.parent=o,V.depth=c,o.wildcard??=[],o.wildcard.push(V)}}o=S}if(m&&a.children&&!a.isRoot&&a.id&&a.id.charCodeAt(a.id.lastIndexOf("/")+1)===95){const b=wi(a.fullPath??a.from);b.kind=gw,b.parent=o,c++,b.depth=c,o.pathless??=[],o.pathless.push(b),o=b}const w=(a.path||!a.children)&&!a.isRoot;if(w&&p.endsWith("/")){const b=wi(a.fullPath??a.from);b.kind=Ia,b.parent=o,c++,b.depth=c,o.index=b,o=b}o.parse=a.options?.params?.parse??null,o.skipOnParamError=m,o.parsingPriority=a.options?.skipRouteOnParseError?.priority??0,w&&!o.route&&(o.route=a,o.fullPath=a.fullPath??a.from)}if(a.children)for(const p of a.children)kc(t,e,p,d,o,c,u)}function td(t,e){if(t.skipOnParamError&&!e.skipOnParamError)return-1;if(!t.skipOnParamError&&e.skipOnParamError)return 1;if(t.skipOnParamError&&e.skipOnParamError&&(t.parsingPriority||e.parsingPriority))return e.parsingPriority-t.parsingPriority;if(t.prefix&&e.prefix&&t.prefix!==e.prefix){if(t.prefix.startsWith(e.prefix))return-1;if(e.prefix.startsWith(t.prefix))return 1}if(t.suffix&&e.suffix&&t.suffix!==e.suffix){if(t.suffix.endsWith(e.suffix))return-1;if(e.suffix.endsWith(t.suffix))return 1}return t.prefix&&!e.prefix?-1:!t.prefix&&e.prefix?1:t.suffix&&!e.suffix?-1:!t.suffix&&e.suffix?1:t.caseSensitive&&!e.caseSensitive?-1:!t.caseSensitive&&e.caseSensitive?1:0}function Pa(t){if(t.pathless)for(const e of t.pathless)Pa(e);if(t.static)for(const e of t.static.values())Pa(e);if(t.staticInsensitive)for(const e of t.staticInsensitive.values())Pa(e);if(t.dynamic?.length){t.dynamic.sort(td);for(const e of t.dynamic)Pa(e)}if(t.optional?.length){t.optional.sort(td);for(const e of t.optional)Pa(e)}if(t.wildcard?.length){t.wildcard.sort(td);for(const e of t.wildcard)Pa(e)}}function wi(t){return{kind:0,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:t,parent:null,parse:null,skipOnParamError:!1,parsingPriority:0}}
10function nd(t,e,a,s,o){return{kind:t,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:e,parent:null,parse:null,skipOnParamError:!1,parsingPriority:0,caseSensitive:a,prefix:s,suffix:o}}function e_(t,e){const a=wi("/"),s=new Uint16Array(6);for(const o of t)kc(!1,s,o,1,a,0);Pa(a),e.masksTree=a,e.flatCache=Zr(1e3)}function t_(t,e){t||="/";const a=e.flatCache.get(t);if(a)return a;const s=Jd(t,e.masksTree);return e.flatCache.set(t,s),s}function n_(t,e,a,s,o){t||="/",s||="/";const c=e?`case\0${t}`:t;let u=o.singleCache.get(c);return u||(u=wi("/"),kc(e,new Uint16Array(6),{from:t},1,u,0),o.singleCache.set(c,u)),Jd(s,u,a)}function a_(t,e,a=!1){const s=a?t:`nofuzz\0${t}`,o=e.matchCache.get(s);if(o!==void 0)return o;t||="/";let c;try{c=Jd(t,e.segmentTree,a)}catch(u){if(u instanceof URIError)c=null;else throw u}return c&&(c.branch=r_(c.route)),e.matchCache.set(s,c),c}function i_(t){return t==="/"?t:t.replace(/\/{1,}$/,"")}function s_(t,e=!1,a){const s=wi(t.fullPath),o=new Uint16Array(6),c={},u={};let d=0;return kc(e,o,t,1,s,0,p=>{if(a?.(p,d),p.id in c&&It(),c[p.id]=p,d!==0&&p.path){const g=i_(p.fullPath);(!u[g]||p.fullPath.endsWith("/"))&&(u[g]=p)}d++}),Pa(s),{processedTree:{segmentTree:s,singleCache:Zr(1e3),matchCache:Zr(1e3),flatCache:null,masksTree:null},routesById:c,routesByPath:u}}function Jd(t,e,a=!1){const s=t.split("/"),o=l_(t,s,e,a);if(!o)return null;const[c]=mw(t,s,o);return{route:o.node.route,rawParams:c,parsedParams:o.parsedParams}}function mw(t,e,a){const s=o_(a.node);let o=null;const c=Object.create(null);let u=a.extract?.part??0,d=a.extract?.node??0,p=a.extract?.path??0,g=a.extract?.segment??0;for(;d<s.length;u++,d++,p++,g++){const y=s[d];if(y.kind===Ia)break;if(y.kind===gw){g--,u--,p--;continue}const m=e[u],w=p;if(m&&(p+=m.length),y.kind===1){o??=a.node.fullPath.split("/");const b=o[g],S=y.prefix?.length??0;if(b.charCodeAt(S)===123){const A=y.suffix?.length??0,_=b.substring(S+2,b.length-A-1),C=m.substring(S,m.length-A);c[_]=decodeURIComponent(C)}else{const A=b.substring(1);c[A]=decodeURIComponent(m)}}else if(y.kind===3){if(a.skipped&1<<d){u--,p=w-1;continue}o??=a.node.fullPath.split("/");const b=o[g],S=y.prefix?.length??0,A=y.suffix?.length??0,_=b.substring(S+3,b.length-A-1),C=y.suffix||y.prefix?m.substring(S,m.length-A):m;C&&(c[_]=decodeURIComponent(C))}else if(y.kind===2){const b=y,S=t.substring(w+(b.prefix?.length??0),t.length-(b.suffix?.length??0)),A=decodeURIComponent(S);c["*"]=A,c._splat=A;break}}return a.rawParams&&Object.assign(c,a.rawParams),[c,{part:u,node:d,path:p,segment:g}]}function r_(t){const e=[t];for(;t.parentRoute;)t=t.parentRoute,e.push(t);return e.reverse(),e}function o_(t){const e=Array(t.depth+1);do e[t.depth]=t,t=t.parent;while(t);return e}function l_(t,e,a,s){if(t==="/"&&a.index)return{node:a.index,skipped:0};const o=!Qr(e),c=o&&t!=="/",u=e.length-(o?1:0),d=[{node:a,index:1,skipped:0,depth:1,statics:0,dynamics:0,optionals:0}];let p=null,g=null;for(;d.length;){const y=d.pop(),{node:m,index:w,skipped:b,depth:S,statics:A,dynamics:_,optionals:C}=y;let{extract:B,rawParams:j,parsedParams:D}=y;if(m.kind===2&&m.route&&!Ll(g,y))continue;if(m.skipOnParamError){if(!My(t,e,y))continue;j=y.rawParams,B=y.extract,D=y.parsedParams}s&&m.route&&m.kind!==Ia&&Ll(p,y)&&(p=y);const F=w===u;if(F&&(m.route&&(!c||m.kind===Ia||m.kind===2)&&Ll(g,y)&&(g=y),!m.optional&&!m.wildcard&&!m.index&&!m.pathless))continue;const V=F?void 0:e[w];let I;if(F&&m.index){const W={node:m.index,index:w,skipped:b,depth:S+1,statics:A,dynamics:_,optionals:C,extract:B,rawParams:j,parsedParams:D};let Q=!0;if(m.index.skipOnParamError&&(My(t,e,W)||(Q=!1)),Q){if(!_&&!C&&!b&&c_(A,u))return W;Ll(g,W)&&(g=W)}}if(m.wildcard)for(let W=m.wildcard.length-1;W>=0;W--){const Q=m.wildcard[W],{prefix:se,suffix:ne}=Q;if(!(se&&(F||!(Q.caseSensitive?V:I??=V.toLowerCase()).startsWith(se)))){if(ne){if(F)continue;const ve=e.slice(w).join("/").slice(-ne.length);if((Q.caseSensitive?ve:ve.toLowerCase())!==ne)continue}d.push({node:Q,index:u,skipped:b,depth:S+1,statics:A,dynamics:_,optionals:C,extract:B,rawParams:j,parsedParams:D})}}if(m.optional){const W=b|1<<S,Q=S+1;for(let se=m.optional.length-1;se>=0;se--){const ne=m.optional[se];d.push({node:ne,index:w,skipped:W,depth:Q,statics:A,dynamics:_,optionals:C,extract:B,rawParams:j,parsedParams:D})}if(!F)for(let se=m.optional.length-1;se>=0;se--){const ne=m.optional[se],{prefix:ve,suffix:xe}=ne;if(ve||xe){const Ye=ne.caseSensitive?V:I??=V.toLowerCase();if(ve&&!Ye.startsWith(ve)||xe&&!Ye.endsWith(xe))continue}d.push({node:ne,index:w+1,skipped:b,depth:Q,statics:A,dynamics:_,optionals:C+Pl(u,w),extract:B,rawParams:j,parsedParams:D})}}if(!F&&m.dynamic&&V)for(let W=m.dynamic.length-1;W>=0;W--){const Q=m.dynamic[W],{prefix:se,suffix:ne}=Q;if(se||ne){const ve=Q.caseSensitive?V:I??=V.toLowerCase();if(se&&!ve.startsWith(se)||ne&&!ve.endsWith(ne))continue}d.push({node:Q,index:w+1,skipped:b,depth:S+1,statics:A,dynamics:_+Pl(u,w),optionals:C,extract:B,rawParams:j,parsedParams:D})}if(!F&&m.staticInsensitive){const W=m.staticInsensitive.get(I??=V.toLowerCase());W&&d.push({node:W,index:w+1,skipped:b,depth:S+1,statics:A+Pl(u,w),dynamics:_,optionals:C,extract:B,rawParams:j,parsedParams:D})}if(!F&&m.static){const W=m.static.get(V);W&&d.push({node:W,index:w+1,skipped:b,depth:S+1,statics:A+Pl(u,w),dynamics:_,optionals:C,extract:B,rawParams:j,parsedParams:D})}if(m.pathless){const W=S+1;for(let Q=m.pathless.length-1;Q>=0;Q--){const se=m.pathless[Q];d.push({node:se,index:w,skipped:b,depth:W,statics:A,dynamics:_,optionals:C,extract:B,rawParams:j,parsedParams:D})}}}if(g)return g;if(s&&p){let y=p.index;for(let w=0;w<p.index;w++)y+=e[w].length;const m=y===t.length?"/":t.slice(y);return p.rawParams??=Object.create(null),p.rawParams["**"]=decodeURIComponent(m),p}return null}function Pl(t,e){return 2**(t-e-1)}function c_(t,e){return t===2**(e-1)-1}function My(t,e,a){try{const[s,o]=mw(t,e,a);a.rawParams=s,a.extract=o;const c=a.node.parse(s);return a.parsedParams=Object.assign(Object.create(null),a.parsedParams,c),!0}catch{return null}}function Ll(t,e){return t?e.statics>t.statics||e.statics===t.statics&&(e.dynamics>t.dynamics||e.dynamics===t.dynamics&&(e.optionals>t.optionals||e.optionals===t.optionals&&((e.node.kind===Ia)>(t.node.kind===Ia)||e.node.kind===Ia==(t.node.kind===Ia)&&e.depth>t.depth))):!0}function Ql(t){return Zd(t.filter(e=>e!==void 0).join("/"))}function Zd(t){return t.replace(/\/{2,}/g,"/")}function yw(t){return t==="/"?t:t.replace(/^\/{1,}/,"")}function $a(t){const e=t.length;return e>1&&t[e-1]==="/"?t.replace(/\/{1,}$/,""):t}function vw(t){return $a(yw(t))}function ac(t,e){return t?.endsWith("/")&&t!=="/"&&t!==`${e}/`?t.slice(0,-1):t}function u_(t,e,a){return ac(t,a)===ac(e,a)}function h_({base:t,to:e,trailingSlash:a="never",cache:s}){const o=e.startsWith("/"),c=!o&&e===".";let u;if(s){u=o?e:c?t:t+"\0"+e;const m=s.get(u);if(m)return m}let d;if(c)d=t.split("/");else if(o)d=e.split("/");else{for(d=t.split("/");d.length>1&&Qr(d)==="";)d.pop();const m=e.split("/");for(let w=0,b=m.length;w<b;
10w++){const S=m[w];S===""?w?w===b-1&&d.push(S):d=[S]:S===".."?d.pop():S==="."||d.push(S)}}d.length>1&&(Qr(d)===""?a==="never"&&d.pop():a==="always"&&d.push(""));let p,g="";for(let m=0;m<d.length;m++){m>0&&(g+="/");const w=d[m];if(!w)continue;p=Qd(w,0,p);const b=p[0];if(b===0){g+=w;continue}const S=p[5],A=w.substring(0,p[1]),_=w.substring(p[4],S),C=w.substring(p[2],p[3]);b===1?g+=A||_?`${A}{$${C}}${_}`:`$${C}`:b===2?g+=A||_?`${A}{$}${_}`:"$":g+=`${A}{-$${C}}${_}`}g=Zd(g);const y=g||"/";return u&&s&&s.set(u,y),y}function d_(t){const e=new Map(t.map(o=>[encodeURIComponent(o),o])),a=Array.from(e.keys()).map(o=>o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|"),s=new RegExp(a,"g");return o=>o.replace(s,c=>e.get(c)??c)}function ad(t,e,a){const s=e[t];return typeof s!="string"?s:t==="_splat"?/^[a-zA-Z0-9\-._~!/]*$/.test(s)?s:s.split("/").map(o=>Py(o,a)).join("/"):Py(s,a)}function Dy({path:t,params:e,decoder:a,...s}){let o=!1;const c=Object.create(null);if(!t||t==="/")return{interpolatedPath:"/",usedParams:c,isMissingParams:o};if(!t.includes("$"))return{interpolatedPath:t,usedParams:c,isMissingParams:o};const u=t.length;let d=0,p,g="";for(;d<u;){const y=d;p=Qd(t,y,p);const m=p[5];if(d=m+1,y===m)continue;const w=p[0];if(w===0){g+="/"+t.substring(y,m);continue}if(w===2){const b=e._splat;c._splat=b,c["*"]=b;const S=t.substring(y,p[1]),A=t.substring(p[4],m);if(!b){o=!0,(S||A)&&(g+="/"+S+A);continue}const _=ad("_splat",e,a);g+="/"+S+_+A;continue}if(w===1){const b=t.substring(p[2],p[3]);!o&&!(b in e)&&(o=!0),c[b]=e[b];const S=t.substring(y,p[1]),A=t.substring(p[4],m),_=ad(b,e,a)??"undefined";g+="/"+S+_+A;continue}if(w===3){const b=t.substring(p[2],p[3]),S=e[b];if(S==null)continue;c[b]=S;const A=t.substring(y,p[1]),_=t.substring(p[4],m),C=ad(b,e,a)??"";g+="/"+A+C+_;continue}}return t.endsWith("/")&&(g+="/"),{usedParams:c,interpolatedPath:g||"/",isMissingParams:o}}function Py(t,e){const a=encodeURIComponent(t);return e?.(a)??a}function f_(t={}){if(t.isNotFound=!0,t.throw)throw t;return t}function pt(t){return t?.isNotFound===!0}function p_(){try{return typeof window<"u"&&typeof window.sessionStorage=="object"?window.sessionStorage:void 0}catch{return}}var g_="tsr-scroll-restoration-v1_3";function m_(){const t=p_();if(!t)return null;let e={};try{const s=JSON.parse(t.getItem("tsr-scroll-restoration-v1_3")||"{}");Ds(s)&&(e=s)}catch{}return{get state(){return e},set:s=>{e=Ua(s,e)||e},persist:()=>{try{t.setItem(g_,JSON.stringify(e))}catch{}}}}var Ly=m_(),y_=t=>t.state.__TSR_key||t.href;function v_(t){const e=[];let a;for(;a=t.parentNode;)e.push(`${t.tagName}:nth-child(${Array.prototype.indexOf.call(a.children,t)+1})`),t=a;return`${e.reverse().join(" > ")}`.toLowerCase()}var zl=!1,Pr="window",zy="data-scroll-restoration-id";function w_(t,e){if(!Ly)return;const a=Ly;if((t.options.scrollRestoration??!1)&&(t.isScrollRestoring=!0),t.isScrollRestorationSetup||!a)return;t.isScrollRestorationSetup=!0,zl=!1;const s=t.options.getScrollRestorationKey||y_,o=new Map;window.history.scrollRestoration="manual";const c=d=>{if(!(zl||!t.isScrollRestoring))if(d.target===document||d.target===window)o.set(Pr,{scrollX:window.scrollX||0,scrollY:window.scrollY||0});else{const p=d.target;o.set(p,{scrollX:p.scrollLeft||0,scrollY:p.scrollTop||0})}},u=d=>{if(!t.isScrollRestoring||!d||o.size===0||!a)return;const p=a.state[d]||={};for(const[g,y]of o){let m;if(g===Pr)m=Pr;else if(g.isConnected){const w=g.getAttribute(zy);m=w?`[${zy}="${w}"]`:v_(g)}m&&(p[m]=y)}};document.addEventListener("scroll",c,!0),t.subscribe("onBeforeLoad",d=>{u(d.fromLocation?s(d.fromLocation):void 0),o.clear()}),window.addEventListener("pagehide",()=>{u(s(t.stores.resolvedLocation.get()??t.stores.location.get())),a.persist()}),t.subscribe("onRendered",d=>{const p=s(d.toLocation),g=t.options.scrollRestorationBehavior,y=t.options.scrollToTopSelectors;if(o.clear(),!t.resetNextScroll){t.resetNextScroll=!0;return}if(!(typeof t.options.scrollRestoration=="function"&&!t.options.scrollRestoration({location:t.latestLocation}))){zl=!0;try{const m=t.isScrollRestoring?a.state[p]:void 0;let w=!1;if(m)for(const b in m){const S=m[b];if(!Ds(S))continue;const{scrollX:A,scrollY:_}=S;if(!(!Number.isFinite(A)||!Number.isFinite(_))){if(b===Pr)window.scrollTo({top:_,left:A,behavior:g}),w=!0;else if(b){let C;try{C=document.querySelector(b)}catch{continue}C&&(C.scrollLeft=A,C.scrollTop=_,w=!0)}}}if(!w){const b=t.history.location.hash.slice(1);if(b){const S=window.history.state?.__hashScrollIntoViewOptions??!0;if(S){const A=document.getElementById(b);A&&A.scrollIntoView(S)}}else{const S={top:0,left:0,behavior:g};if(window.scrollTo(S),y)for(const A of y){if(A===Pr)continue;const _=typeof A=="function"?A():document.querySelector(A);_&&_.scrollTo(S)}}}}finally{zl=!1}t.isScrollRestoring&&a.set(m=>(m[p]||={},m))}})}function ww(t,e=String){const a=new URLSearchParams;for(const s in t){const o=t[s];o!==void 0&&a.set(s,e(o))}return a.toString()}function id(t){return t?t==="false"?!1:t==="true"?!0:+t*0===0&&+t+""===t?+t:t:""}function b_(t){const e=new URLSearchParams(t),a=Object.create(null);for(const[s,o]of e.entries()){const c=a[s];c==null?a[s]=id(o):Array.isArray(c)?c.push(id(o)):a[s]=[c,id(o)]}return a}var S_=__(JSON.parse),k_=T_(JSON.stringify,JSON.parse);function __(t){return e=>{e[0]==="?"&&(e=e.substring(1));const a=b_(e);for(const s in a){const o=a[s];
10if(typeof o=="string")try{a[s]=t(o)}catch{}}return a}}function T_(t,e){const a=typeof e=="function";function s(o){if(typeof o=="object"&&o!==null)try{return t(o)}catch{}else if(a&&typeof o=="string")try{return e(o),t(o)}catch{}return o}return o=>{const c=ww(o,s);return c?`?${c}`:""}}var _i="__root__";function Xd(t){if(t.statusCode=t.statusCode||t.code||307,!t._builtLocation&&!t.reloadDocument&&typeof t.href=="string")try{new URL(t.href),t.reloadDocument=!0}catch{}const e=new Headers(t.headers);t.href&&e.get("Location")===null&&e.set("Location",t.href);const a=new Response(null,{status:t.statusCode,headers:e});if(a.options=t,t.throw)throw a;return a}function Ut(t){return t instanceof Response&&!!t.options}function R_(t){if(t!==null&&typeof t=="object"&&t.isSerializedRedirect)return Xd(t)}function A_(t){return{input:({url:e})=>{for(const a of t)e=Rd(a,e);return e},output:({url:e})=>{for(let a=t.length-1;a>=0;a--)e=bw(t[a],e);return e}}}function C_(t){const e=vw(t.basepath),a=`/${e}`,s=`${a}/`,o=t.caseSensitive?a:a.toLowerCase(),c=t.caseSensitive?s:s.toLowerCase();return{input:({url:u})=>{const d=t.caseSensitive?u.pathname:u.pathname.toLowerCase();return d===o?u.pathname="/":d.startsWith(c)&&(u.pathname=u.pathname.slice(a.length)),u},output:({url:u})=>(u.pathname=Ql(["/",e,u.pathname]),u)}}function Rd(t,e){const a=t?.input?.({url:e});if(a){if(typeof a=="string")return new URL(a);if(a instanceof URL)return a}return e}function bw(t,e){const a=t?.output?.({url:e});if(a){if(typeof a=="string")return new URL(a);if(a instanceof URL)return a}return e}function E_(t,e){const{createMutableStore:a,createReadonlyStore:s,batch:o,init:c}=e,u=new Map,d=new Map,p=new Map,g=a(t.status),y=a(t.loadedAt),m=a(t.isLoading),w=a(t.isTransitioning),b=a(t.location),S=a(t.resolvedLocation),A=a(t.statusCode),_=a(t.redirect),C=a([]),B=a([]),j=a([]),D=s(()=>sd(u,C.get())),F=s(()=>sd(d,B.get())),V=s(()=>sd(p,j.get())),I=s(()=>C.get()[0]),W=s(()=>C.get().some(Y=>u.get(Y)?.get().status==="pending")),Q=s(()=>({locationHref:b.get().href,resolvedLocationHref:S.get()?.href,status:g.get()})),se=s(()=>({status:g.get(),loadedAt:y.get(),isLoading:m.get(),isTransitioning:w.get(),matches:D.get(),location:b.get(),resolvedLocation:S.get(),statusCode:A.get(),redirect:_.get()})),ne=Zr(64);function ve(Y){let le=ne.get(Y);return le||(le=s(()=>{const Ae=C.get();for(const Ee of Ae){const O=u.get(Ee);if(O&&O.routeId===Y)return O.get()}}),ne.set(Y,le)),le}const xe={status:g,loadedAt:y,isLoading:m,isTransitioning:w,location:b,resolvedLocation:S,statusCode:A,redirect:_,matchesId:C,pendingIds:B,cachedIds:j,matches:D,pendingMatches:F,cachedMatches:V,firstId:I,hasPending:W,matchRouteDeps:Q,matchStores:u,pendingMatchStores:d,cachedMatchStores:p,__store:se,getRouteMatchStore:ve,setMatches:Ye,setPending:qe,setCached:U};Ye(t.matches),c?.(xe);function Ye(Y){rd(Y,u,C,a,o)}function qe(Y){rd(Y,d,B,a,o)}function U(Y){rd(Y,p,j,a,o)}return xe}function sd(t,e){const a=[];for(const s of e){const o=t.get(s);o&&a.push(o.get())}return a}function rd(t,e,a,s,o){const c=t.map(d=>d.id),u=new Set(c);o(()=>{for(const d of e.keys())u.has(d)||e.delete(d);for(const d of t){const p=e.get(d.id);if(!p){const g=s(d);g.routeId=d.routeId,e.set(d.id,g);continue}p.routeId=d.routeId,p.get()!==d&&p.set(d)}Zk(a.get(),c)||a.set(c)})}var Ad=t=>{if(!t.rendered)return t.rendered=!0,t.onReady?.()},x_=t=>t.stores.matchesId.get().some(e=>t.stores.matchStores.get(e)?.get()._forcePending),_c=(t,e)=>!!(t.preload&&!t.router.stores.matchStores.has(e)),Ti=(t,e,a=!0)=>{const s={...t.router.options.context??{}},o=a?e:e-1;for(let c=0;c<=o;c++){const u=t.matches[c];if(!u)continue;const d=t.router.getMatch(u.id);d&&Object.assign(s,d.__routeContext,d.__beforeLoadContext)}return s},Ny=(t,e)=>{if(!t.matches.length)return;const a=e.routeId,s=t.matches.findIndex(u=>u.routeId===t.router.routeTree.id),o=s>=0?s:0;let c=a?t.matches.findIndex(u=>u.routeId===a):t.firstBadMatchIndex??t.matches.length-1;c<0&&(c=o);for(let u=c;u>=0;u--){const d=t.matches[u];if(t.router.looseRoutesById[d.routeId].options.notFoundComponent)return u}return a?c:o},qa=(t,e,a)=>{if(!(!Ut(a)&&!pt(a)))throw Ut(a)&&a.redirectHandled&&!a.options.reloadDocument||(e&&(e._nonReactive.beforeLoadPromise?.resolve(),e._nonReactive.loaderPromise?.resolve(),e._nonReactive.beforeLoadPromise=void 0,e._nonReactive.loaderPromise=void 0,e._nonReactive.error=a,t.updateMatch(e.id,s=>({...s,status:Ut(a)?"redirected":pt(a)?"notFound":s.status==="pending"?"success":s.status,context:Ti(t,e.index),isFetching:!1,error:a})),pt(a)&&!a.routeId&&(a.routeId=e.routeId),e._nonReactive.loadPromise?.resolve()),Ut(a)&&(t.rendered=!0,a.options._fromLocation=t.location,a.redirectHandled=!0,a=t.router.resolveRedirect(a))),a},Sw=(t,e)=>{const a=t.router.getMatch(e);return!!(!a||a._nonReactive.dehydrated)},Uy=(t,e,a)=>{const s=Ti(t,a);t.updateMatch(e,o=>({...o,context:s}))},Lr=(t,e,a,s)=>{const{id:o,routeId:c}=t.matches[e],u=t.router.looseRoutesById[c];if(a instanceof Promise)throw a;a.routerCode=s,t.firstBadMatchIndex??=e,qa(t,t.router.getMatch(o),a);try{u.options.onError?.(a)}catch(d){a=d,qa(t,t.router.getMatch(o),a)}t.updateMatch(o,d=>(d._nonReactive.beforeLoadPromise?.resolve(),d._nonReactive.beforeLoadPromise=void 0,d._nonReactive.loadPromise?.resolve(),{...d,error:a,status:"error",isFetching:!1,updatedAt:Date.now(),abortController:new AbortController}
10)),!t.preload&&!Ut(a)&&!pt(a)&&(t.serialError??=a)},kw=(t,e,a,s)=>{if(s._nonReactive.pendingTimeout!==void 0)return;const o=a.options.pendingMs??t.router.options.defaultPendingMs;if(t.onReady&&!_c(t,e)&&(a.options.loader||a.options.beforeLoad||Tw(a))&&typeof o=="number"&&o!==1/0&&(a.options.pendingComponent??t.router.options?.defaultPendingComponent)){const c=setTimeout(()=>{Ad(t)},o);s._nonReactive.pendingTimeout=c}},O_=(t,e,a)=>{const s=t.router.getMatch(e);if(!s._nonReactive.beforeLoadPromise&&!s._nonReactive.loaderPromise)return;kw(t,e,a,s);const o=()=>{const c=t.router.getMatch(e);c.preload&&(c.status==="redirected"||c.status==="notFound")&&qa(t,c,c.error)};return s._nonReactive.beforeLoadPromise?s._nonReactive.beforeLoadPromise.then(o):o()},B_=(t,e,a,s)=>{const o=t.router.getMatch(e);let c=o._nonReactive.loadPromise;o._nonReactive.loadPromise=Ri(()=>{c?.resolve(),c=void 0});const{paramsError:u,searchError:d}=o;u&&Lr(t,a,u,"PARSE_PARAMS"),d&&Lr(t,a,d,"VALIDATE_SEARCH"),kw(t,e,s,o);const p=new AbortController;let g=!1;const y=()=>{g||(g=!0,t.updateMatch(e,D=>({...D,isFetching:"beforeLoad",fetchCount:D.fetchCount+1,abortController:p})))},m=()=>{o._nonReactive.beforeLoadPromise?.resolve(),o._nonReactive.beforeLoadPromise=void 0,t.updateMatch(e,D=>({...D,isFetching:!1}))};if(!s.options.beforeLoad){t.router.batch(()=>{y(),m()});return}o._nonReactive.beforeLoadPromise=Ri();const w={...Ti(t,a,!1),...o.__routeContext},{search:b,params:S,cause:A}=o,_=_c(t,e),C={search:b,abortController:p,params:S,preload:_,context:w,location:t.location,navigate:D=>t.router.navigate({...D,_fromLocation:t.location}),buildLocation:t.router.buildLocation,cause:_?"preload":A,matches:t.matches,routeId:s.id,...t.router.options.additionalContext},B=D=>{if(D===void 0){t.router.batch(()=>{y(),m()});return}(Ut(D)||pt(D))&&(y(),Lr(t,a,D,"BEFORE_LOAD")),t.router.batch(()=>{y(),t.updateMatch(e,F=>({...F,__beforeLoadContext:D})),m()})};let j;try{if(j=s.options.beforeLoad(C),Jr(j))return y(),j.catch(D=>{Lr(t,a,D,"BEFORE_LOAD")}).then(B)}catch(D){y(),Lr(t,a,D,"BEFORE_LOAD")}B(j)},j_=(t,e)=>{const{id:a,routeId:s}=t.matches[e],o=t.router.looseRoutesById[s],c=()=>d(),u=()=>B_(t,a,e,o),d=()=>{if(Sw(t,a))return;const p=O_(t,a,o);return Jr(p)?p.then(u):u()};return c()},M_=(t,e,a)=>{const s=t.router.getMatch(e);if(!s||!a.options.head&&!a.options.scripts&&!a.options.headers)return;const o={ssr:t.router.options.ssr,matches:t.matches,match:s,params:s.params,loaderData:s.loaderData};return Promise.all([a.options.head?.(o),a.options.scripts?.(o),a.options.headers?.(o)]).then(([c,u,d])=>({meta:c?.meta,links:c?.links,headScripts:c?.scripts,headers:d,scripts:u,styles:c?.styles}))},_w=(t,e,a,s,o)=>{const c=e[s-1],{params:u,loaderDeps:d,abortController:p,cause:g}=t.router.getMatch(a),y=Ti(t,s),m=_c(t,a);return{params:u,deps:d,preload:!!m,parentMatchPromise:c,abortController:p,context:y,location:t.location,navigate:w=>t.router.navigate({...w,_fromLocation:t.location}),cause:m?"preload":g,route:o,...t.router.options.additionalContext}},Iy=async(t,e,a,s,o)=>{try{const c=t.router.getMatch(a);try{(!(pw??t.router.isServer)||c.ssr===!0)&&Xr(o);const u=o.options.loader,d=typeof u=="function"?u:u?.handler,p=d?.(_w(t,e,a,s,o)),g=!!d&&Jr(p);if((g||o._lazyPromise||o._componentsPromise||o.options.head||o.options.scripts||o.options.headers||c._nonReactive.minPendingPromise)&&t.updateMatch(a,m=>({...m,isFetching:"loader"})),d){const m=g?await p:p;qa(t,t.router.getMatch(a),m),m!==void 0&&t.updateMatch(a,w=>({...w,loaderData:m}))}o._lazyPromise&&await o._lazyPromise;const y=c._nonReactive.minPendingPromise;y&&await y,o._componentsPromise&&await o._componentsPromise,t.updateMatch(a,m=>({...m,error:void 0,context:Ti(t,s),status:"success",isFetching:!1,updatedAt:Date.now()}))}catch(u){let d=u;if(d?.name==="AbortError"){if(c.abortController.signal.aborted){c._nonReactive.loaderPromise?.resolve(),c._nonReactive.loaderPromise=void 0;return}t.updateMatch(a,g=>({...g,status:g.status==="pending"?"success":g.status,isFetching:!1,context:Ti(t,s)}));return}const p=c._nonReactive.minPendingPromise;p&&await p,pt(u)&&await o.options.notFoundComponent?.preload?.(),qa(t,t.router.getMatch(a),u);try{o.options.onError?.(u)}catch(g){d=g,qa(t,t.router.getMatch(a),g)}!Ut(d)&&!pt(d)&&await Xr(o,["errorComponent"]),t.updateMatch(a,g=>
10({...g,error:d,context:Ti(t,s),status:"error",isFetching:!1}))}}catch(c){const u=t.router.getMatch(a);u&&(u._nonReactive.loaderPromise=void 0),qa(t,u,c)}},D_=async(t,e,a)=>{async function s(b,S,A,_,C){const B=Date.now()-S.updatedAt,j=b?C.options.preloadStaleTime??t.router.options.defaultPreloadStaleTime??3e4:C.options.staleTime??t.router.options.defaultStaleTime??0,D=C.options.shouldReload,F=typeof D=="function"?D(_w(t,e,o,a,C)):D,{status:V,invalid:I}=_,W=B>=j&&(!!t.forceStaleReload||_.cause==="enter"||A!==void 0&&A!==_.id);u=V==="success"&&(I||(F??W)),b&&C.options.preload===!1||(u&&!t.sync&&y?(d=!0,(async()=>{try{await Iy(t,e,o,a,C);const Q=t.router.getMatch(o);Q._nonReactive.loaderPromise?.resolve(),Q._nonReactive.loadPromise?.resolve(),Q._nonReactive.loaderPromise=void 0,Q._nonReactive.loadPromise=void 0}catch(Q){Ut(Q)&&await t.router.navigate(Q.options)}})()):V!=="success"||u?await Iy(t,e,o,a,C):Uy(t,o,a))}const{id:o,routeId:c}=t.matches[a];let u=!1,d=!1;const p=t.router.looseRoutesById[c],g=p.options.loader,y=((typeof g=="function"?void 0:g?.staleReloadMode)??t.router.options.defaultStaleReloadMode)!=="blocking";if(Sw(t,o)){if(!t.router.getMatch(o))return t.matches[a];Uy(t,o,a)}else{const b=t.router.getMatch(o),S=t.router.stores.matchesId.get()[a],A=(S&&t.router.stores.matchStores.get(S)||null)?.routeId===c?S:t.router.stores.matches.get().find(C=>C.routeId===c)?.id,_=_c(t,o);if(b._nonReactive.loaderPromise){if(b.status==="success"&&!t.sync&&!b.preload&&y)return b;await b._nonReactive.loaderPromise;const C=t.router.getMatch(o),B=C._nonReactive.error||C.error;B&&qa(t,C,B),C.status==="pending"&&await s(_,b,A,C,p)}else{const C=_&&!t.router.stores.matchStores.has(o),B=t.router.getMatch(o);B._nonReactive.loaderPromise=Ri(),C!==B.preload&&t.updateMatch(o,j=>({...j,preload:C})),await s(_,b,A,B,p)}}const m=t.router.getMatch(o);d||(m._nonReactive.loaderPromise?.resolve(),m._nonReactive.loadPromise?.resolve(),m._nonReactive.loadPromise=void 0),clearTimeout(m._nonReactive.pendingTimeout),m._nonReactive.pendingTimeout=void 0,d||(m._nonReactive.loaderPromise=void 0),m._nonReactive.dehydrated=void 0;const w=d?m.isFetching:!1;return w!==m.isFetching||m.invalid!==!1?(t.updateMatch(o,b=>({...b,isFetching:w,invalid:!1})),t.router.getMatch(o)):m};async function qy(t){const e=t,a=[];x_(e.router)&&Ad(e);let s;for(let w=0;w<e.matches.length;w++){try{const b=j_(e,w);Jr(b)&&await b}catch(b){if(Ut(b))throw b;if(pt(b))s=b;else if(!e.preload)throw b;break}if(e.serialError||e.firstBadMatchIndex!=null)break}const o=e.firstBadMatchIndex??e.matches.length,c=s&&!e.preload?Ny(e,s):void 0,u=s&&e.preload?0:c!==void 0?Math.min(c+1,o):o;let d,p;for(let w=0;w<u;w++)a.push(D_(e,a,w));try{await Promise.all(a)}catch{const w=await Promise.allSettled(a);for(const b of w){if(b.status!=="rejected")continue;const S=b.reason;if(Ut(S))throw S;pt(S)?d??=S:p??=S}if(p!==void 0)throw p}const g=d??(s&&!e.preload?s:void 0);let y=e.firstBadMatchIndex!==void 0?e.firstBadMatchIndex:e.matches.length-1;if(!g&&s&&e.preload)return e.matches;if(g){const w=Ny(e,g);w===void 0&&It();const b=e.matches[w],S=e.router.looseRoutesById[b.routeId],A=e.router.options?.defaultNotFoundComponent;!S.options.notFoundComponent&&A&&(S.options.notFoundComponent=A),g.routeId=b.routeId;const _=b.routeId===e.router.routeTree.id;e.updateMatch(b.id,C=>({...C,..._?{status:"success",globalNotFound:!0,error:void 0}:{status:"notFound",error:g},isFetching:!1})),y=w,await Xr(S,["notFoundComponent"])}else if(!e.preload){const w=e.matches[0];w.globalNotFound||e.router.getMatch(w.id)?.globalNotFound&&e.updateMatch(w.id,b=>({...b,globalNotFound:!1,error:void 0}))}if(e.serialError&&e.firstBadMatchIndex!==void 0){const w=e.router.looseRoutesById[e.matches[e.firstBadMatchIndex].routeId];await Xr(w,["errorComponent"])}for(let w=0;w<=y;w++){const{id:b,routeId:S}=e.matches[w],A=e.router.looseRoutesById[S];try{const _=M_(e,b,A);if(_){const C=await _;e.updateMatch(b,B=>({...B,...C}))}}catch(_){console.error(`Error executing head for route ${S}:`,_)}}const m=Ad(e);if(Jr(m)&&await m,g)throw g;if(e.serialError&&!e.preload&&!e.onReady)throw e.serialError;return e.matches}function $y(t,e){const a=e.map(s=>
10t.options[s]?.preload?.()).filter(Boolean);if(a.length!==0)return Promise.all(a)}function Xr(t,e=Jl){!t._lazyLoaded&&t._lazyPromise===void 0&&(t.lazyFn?t._lazyPromise=t.lazyFn().then(s=>{const{id:o,...c}=s.options;Object.assign(t.options,c),t._lazyLoaded=!0,t._lazyPromise=void 0}):t._lazyLoaded=!0);const a=()=>t._componentsLoaded?void 0:e===Jl?(()=>{if(t._componentsPromise===void 0){const s=$y(t,Jl);s?t._componentsPromise=s.then(()=>{t._componentsLoaded=!0,t._componentsPromise=void 0}):t._componentsLoaded=!0}return t._componentsPromise})():$y(t,e);return t._lazyPromise?t._lazyPromise.then(a):a()}function Tw(t){for(const e of Jl)if(t.options[e]?.preload)return!0;return!1}var Jl=["component","errorComponent","pendingComponent","notFoundComponent"],Va="__TSR_index",Vy="popstate",Hy="beforeunload";function P_(t){let e=t.getLocation();const a=new Set,s=u=>{e=t.getLocation(),a.forEach(d=>d({location:e,action:u}))},o=u=>{t.notifyOnIndexChange??!0?s(u):e=t.getLocation()},c=async({task:u,navigateOpts:d,...p})=>{if(d?.ignoreBlocker??!1){u();return}const g=t.getBlockers?.()??[],y=p.type==="PUSH"||p.type==="REPLACE";if(typeof document<"u"&&g.length&&y)for(const m of g){const w=ic(p.path,p.state);if(await m.blockerFn({currentLocation:e,nextLocation:w,action:p.type})){t.onBlocked?.();return}}u()};return{get location(){return e},get length(){return t.getLength()},subscribers:a,subscribe:u=>(a.add(u),()=>{a.delete(u)}),push:(u,d,p)=>{const g=e.state[Va];d=Gy(g+1,d),c({task:()=>{t.pushState(u,d),s({type:"PUSH"})},navigateOpts:p,type:"PUSH",path:u,state:d})},replace:(u,d,p)=>{const g=e.state[Va];d=Gy(g,d),c({task:()=>{t.replaceState(u,d),s({type:"REPLACE"})},navigateOpts:p,type:"REPLACE",path:u,state:d})},go:(u,d)=>{c({task:()=>{t.go(u),o({type:"GO",index:u})},navigateOpts:d,type:"GO"})},back:u=>{c({task:()=>{t.back(u?.ignoreBlocker??!1),o({type:"BACK"})},navigateOpts:u,type:"BACK"})},forward:u=>{c({task:()=>{t.forward(u?.ignoreBlocker??!1),o({type:"FORWARD"})},navigateOpts:u,type:"FORWARD"})},canGoBack:()=>e.state[Va]!==0,createHref:u=>t.createHref(u),block:u=>{if(!t.setBlockers)return()=>{};const d=t.getBlockers?.()??[];return t.setBlockers([...d,u]),()=>{const p=t.getBlockers?.()??[];t.setBlockers?.(p.filter(g=>g!==u))}},flush:()=>t.flush?.(),destroy:()=>t.destroy?.(),notify:s}}function Gy(t,e){e||(e={});const a=ef();return{...e,key:a,__TSR_key:a,[Va]:t}}function L_(t){const e=typeof document<"u"?window:void 0,a=e.history.pushState,s=e.history.replaceState;let o=[];const c=()=>o,u=W=>o=W,d=(W=>W),p=(()=>ic(`${e.location.pathname}${e.location.search}${e.location.hash}`,e.history.state));if(!e.history.state?.__TSR_key&&!e.history.state?.key){const W=ef();e.history.replaceState({[Va]:0,key:W,__TSR_key:W},"")}let g=p(),y,m=!1,w=!1,b=!1,S=!1;const A=()=>g;let _,C;const B=()=>{_&&(I._ignoreSubscribers=!0,(_.isPush?e.history.pushState:e.history.replaceState)(_.state,"",_.href),I._ignoreSubscribers=!1,_=void 0,C=void 0,y=void 0)},j=(W,Q,se)=>{const ne=d(Q);C||(y=g),g=ic(Q,se),_={href:ne,state:se,isPush:_?.isPush||W==="push"},C||(C=Promise.resolve().then(()=>B()))},D=W=>{g=p(),I.notify({type:W})},F=async()=>{if(w){w=!1;return}const W=p(),Q=W.state[Va]-g.state[Va],se=Q===1,ne=Q===-1,ve=!se&&!ne||m;m=!1;const xe=ve?"GO":ne?"BACK":"FORWARD",Ye=ve?{type:"GO",index:Q}:{type:ne?"BACK":"FORWARD"};if(b)b=!1;else{const qe=c();if(typeof document<"u"&&qe.length){for(const U of qe)if(await U.blockerFn({currentLocation:g,nextLocation:W,action:xe})){w=!0,e.history.go(1),I.notify(Ye);return}}}g=p(),I.notify(Ye)},V=W=>{if(S){S=!1;return}let Q=!1;const se=c();if(typeof document<"u"&&se.length)for(const ne of se){const ve=ne.enableBeforeUnload??!0;if(ve===!0){Q=!0;break}if(typeof ve=="function"&&ve()===!0){Q=!0;break}}if(Q)return W.preventDefault(),W.returnValue=""},I=P_({getLocation:A,getLength:()=>e.history.length,pushState:(W,Q)=>j("push",W,Q),replaceState:(W,Q)=>j("replace",W,Q),back:W=>(W&&(b=!0),S=!0,e.history.back()),forward:W=>{W&&(b=!0),S=!0,e.history.forward()},go:W=>{m=!0,e.history.go(W)},createHref:W=>d(W),flush:B,destroy:()=>{e.history.pushState=a,e.history.replaceState=s,e.removeEventListener(Hy,V,{capture:!0}),e.removeEventListener(Vy,F)},onBlocked:()=>{y&&g!==y&&(g=y)},getBlockers:c,setBlockers:u,notifyOnIndexChange:!1});return e.addEventListener(Hy,V,{capture:!0}),e.addEventListener(Vy,F),e.history.pushState=function(...W){const Q=a.apply(e.history,W);return I._ignoreSubscribers||D("PUSH"),Q},e.history.replaceState=function(...W){const Q=s.apply(e.history,W);return I._ignoreSubscribers||D("REPLACE"),Q},I}function z_(t){let e=t.replace(/[\x00-\x1f\x7f]/g,"");return e.startsWith("//")&&(e="/"+e.replace(/^\/+/,"")),e}function ic(t,e){const a=z_(t),s=a.indexOf("#"),o=a.indexOf("?"),c=ef();return{href:a,pathname:a.substring(0,s>0?o>0?Math.min(s,o):s:o>0?o:a.length),hash:s>-1?a.substring(s):"",search:o>-1?a.slice(o,s===-1?void 0:s):"",state:e||{[Va]:0,key:c,__TSR_key:c}}}function ef(){return(Math.random()+1).toString(36).substring(7)}function N_(t){return t instanceof Error?{name:t.name,message:t.message}:{data:t}}function xs(t,e){const a=e,s=t;return{fromLocation:a,toLocation:s,pathChanged:a?.pathname!==s.pathname,hrefChanged:a?.href!==s.href,hashChanged:a?.hash!==s.hash}}var U_=class{constructor(t,e){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this.resetNextScroll=!0,this.shouldViewTransition=void 0,this.isViewTransitionTypesSupported=void 0,this.subscribers=new Set,this.isScrollRestoring=!1,this.isScrollRestorationSetup=!1,this.startTransition=a=>a(),this.update=a=>{const s=this.options,o=this.basepath??s?.basepath??"/",c=this.basepath===void 0,u=s?.rewrite;if(this.options={...s,...a},this.isServer=this.options.isServer??typeof document>"u",this.protocolAllowlist=new Set(this.options.protocolAllowlist),this.options.pathParamsAllowedCharacters&&(this.pathParamsDecoder=d_(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=L_()
10),this.origin=this.options.origin,this.origin||(window?.origin&&window.origin!=="null"?this.origin=window.origin:this.origin="http://localhost"),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree){this.routeTree=this.options.routeTree;let y;this.resolvePathCache=Zr(1e3),y=this.buildRouteTree(),this.setRoutes(y)}if(!this.stores&&this.latestLocation){const y=this.getStoreConfig(this);this.batch=y.batch,this.stores=E_(q_(this.latestLocation),y),w_(this)}let d=!1;const p=this.options.basepath??"/",g=this.options.rewrite;if(c||o!==p||u!==g){this.basepath=p;const y=[],m=vw(p);m&&m!=="/"&&y.push(C_({basepath:p})),g&&y.push(g),this.rewrite=y.length===0?void 0:y.length===1?y[0]:A_(y),this.history&&this.updateLatestLocation(),d=!0}d&&this.stores&&this.stores.location.set(this.latestLocation),typeof window<"u"&&"CSS"in window&&typeof window.CSS?.supports=="function"&&(this.isViewTransitionTypesSupported=window.CSS.supports("selector(:active-view-transition-type(a)"))},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{const a=s_(this.routeTree,this.options.caseSensitive,(s,o)=>{s.init({originalIndex:o})});return this.options.routeMasks&&e_(this.options.routeMasks,a.processedTree),a},this.subscribe=(a,s)=>{const o={eventType:a,fn:s};return this.subscribers.add(o),()=>{this.subscribers.delete(o)}},this.emit=a=>{this.subscribers.forEach(s=>{s.eventType===a.type&&s.fn(a)})},this.parseLocation=(a,s)=>{const o=({pathname:p,search:g,hash:y,href:m,state:w})=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(p)){const C=this.options.parseSearch(g),B=this.options.stringifySearch(C);return{href:p+B+y,publicHref:p+B+y,pathname:Dr(p).path,external:!1,searchStr:B,search:fi(s?.search,C),hash:Dr(y.slice(1)).path,state:vi(s?.state,w)}}const b=new URL(m,this.origin),S=Rd(this.rewrite,b),A=this.options.parseSearch(S.search),_=this.options.stringifySearch(A);return S.search=_,{href:S.href.replace(S.origin,""),publicHref:m,pathname:Dr(S.pathname).path,external:!!this.rewrite&&S.origin!==this.origin,searchStr:_,search:fi(s?.search,A),hash:Dr(S.hash.slice(1)).path,state:vi(s?.state,w)}},c=o(a),{__tempLocation:u,__tempKey:d}=c.state;if(u&&(!d||d===this.tempLocationKey)){const p=o(u);return p.state.key=c.state.key,p.state.__TSR_key=c.state.__TSR_key,delete p.state.__tempLocation,{...p,maskedLocation:c}}return c},this.resolvePathWithBase=(a,s)=>h_({base:a,to:Zd(s),trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(a,s,o)=>typeof a=="string"?this.matchRoutesInternal({pathname:a,search:s},o):this.matchRoutesInternal(a,s),this.getMatchedRoutes=a=>$_({pathname:a,routesById:this.routesById,processedTree:this.processedTree}),this.cancelMatch=a=>{const s=this.getMatch(a);s&&(s.abortController.abort(),clearTimeout(s._nonReactive.pendingTimeout),s._nonReactive.pendingTimeout=void 0)},this.cancelMatches=()=>{this.stores.pendingIds.get().forEach(a=>{this.cancelMatch(a)}),this.stores.matchesId.get().forEach(a=>{if(this.stores.pendingMatchStores.has(a))return;const s=this.stores.matchStores.get(a)?.get();s&&(s.status==="pending"||s.isFetching==="loader")&&this.cancelMatch(a)})},this.buildLocation=a=>{const s=(c={})=>{const u=c._fromLocation||this.pendingBuiltLocation||this.latestLocation,d=this.matchRoutesLightweight(u);c.from;const p=c.unsafeRelative==="path"?u.pathname:c.from??d.fullPath,g=this.resolvePathWithBase(p,"."),y=d.search,m=Object.assign(Object.create(null),d.params),w=c.to?this.resolvePathWithBase(g,`${c.to}`):this.resolvePathWithBase(g,"."),b=c.params===!1||c.params===null?Object.create(null):(c.params??!0)===!0?m:Object.assign(m,Ua(c.params,m)),S=this.getMatchedRoutes(w);let A=S.matchedRoutes;if((!S.foundRoute||S.foundRoute.path!=="/"&&S.routeParams["**"])&&this.options.notFoundRoute&&(A=[...A,this.options.notFoundRoute]),Object.keys(b).length>0)for(const se of A){const ne=se.options.params?.stringify??se.options.stringifyParams;if(ne)try{Object.assign(b,ne(b))}catch{}}const _=a.leaveParams?w:Dr(Dy({path:w,params:b,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath).path;let C=y;if(a._includeValidateSearch&&this.options.search?.strict){const se={};A.forEach(ne=>{if(ne.options.validateSearch)try{Object.assign(se,Zl(ne.options.validateSearch,{...se,...C}))}catch{}}),C=se}C=V_({search:C,dest:c,destRoutes:A,_includeValidateSearch:a._includeValidateSearch}),C=fi(y,C);const B=this.options.stringifySearch(C),j=c.hash===!0?u.hash:c.hash?Ua(c.hash,u.hash):void 0,D=j?`#${j}`:"";let F=c.state===!0?u.state:c.state?Ua(c.state,u.state):{};F=vi(u.state,F);const V=`${_}${B}${D}`;let I,W,Q=!1;if(this.rewrite){const se=new URL(V,this.origin),ne=bw(this.rewrite,
10se);I=se.href.replace(se.origin,""),ne.origin!==this.origin?(W=ne.href,Q=!0):W=ne.pathname+ne.search+ne.hash}else I=Jk(V),W=I;return{publicHref:W,href:I,pathname:_,search:C,searchStr:B,state:F,hash:j??"",external:Q,unmaskOnReload:c.unmaskOnReload}},o=(c={},u)=>{const d=s(c);let p=u?s(u):void 0;if(!p){const g=Object.create(null);if(this.options.routeMasks){const y=t_(d.pathname,this.processedTree);if(y){Object.assign(g,y.rawParams);const{from:m,params:w,...b}=y.route,S=w===!1||w===null?Object.create(null):(w??!0)===!0?g:Object.assign(g,Ua(w,g));u={from:a.from,...b,params:S},p=s(u)}}}return p&&(d.maskedLocation=p),d};return a.mask?o(a,{from:a.from,...a.mask}):o(a)},this.commitLocation=async({viewTransition:a,ignoreBlocker:s,...o})=>{const c=()=>{const p=["key","__TSR_key","__TSR_index","__hashScrollIntoViewOptions"];p.forEach(y=>{o.state[y]=this.latestLocation.state[y]});const g=Nt(o.state,this.latestLocation.state);return p.forEach(y=>{delete o.state[y]}),g},u=$a(this.latestLocation.href)===$a(o.href);let d=this.commitLocationPromise;if(this.commitLocationPromise=Ri(()=>{d?.resolve(),d=void 0}),u&&c())this.load();else{let{maskedLocation:p,hashScrollIntoView:g,...y}=o;p&&(y={...p,state:{...p.state,__tempKey:void 0,__tempLocation:{...y,search:y.searchStr,state:{...y.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(y.unmaskOnReload??this.options.unmaskOnReload??!1)&&(y.state.__tempKey=this.tempLocationKey)),y.state.__hashScrollIntoViewOptions=g??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=a,this.history[o.replace?"replace":"push"](y.publicHref,y.state,{ignoreBlocker:s})}return this.resetNextScroll=o.resetScroll??!0,this.history.subscribers.size||this.load(),this.commitLocationPromise},this.buildAndCommitLocation=({replace:a,resetScroll:s,hashScrollIntoView:o,viewTransition:c,ignoreBlocker:u,href:d,...p}={})=>{if(d){const m=this.history.location.state.__TSR_index,w=ic(d,{__TSR_index:a?m:m+1}),b=new URL(w.pathname,this.origin);p.to=Rd(this.rewrite,b).pathname,p.search=this.options.parseSearch(w.search),p.hash=w.hash.slice(1)}const g=this.buildLocation({...p,_includeValidateSearch:!0});this.pendingBuiltLocation=g;const y=this.commitLocation({...g,viewTransition:c,replace:a,resetScroll:s,hashScrollIntoView:o,ignoreBlocker:u});return Promise.resolve().then(()=>{this.pendingBuiltLocation===g&&(this.pendingBuiltLocation=void 0)}),y},this.navigate=async({to:a,reloadDocument:s,href:o,publicHref:c,...u})=>{let d=!1;if(o)try{new URL(`${o}`),d=!0}catch{}if(d&&!s&&(s=!0),s){if(a!==void 0||!o){const g=this.buildLocation({to:a,...u});o=o??g.publicHref,c=c??g.publicHref}const p=!d&&c?c:o;if(nc(p,this.protocolAllowlist))return Promise.resolve();if(!u.ignoreBlocker){const g=this.history.getBlockers?.()??[];for(const y of g)if(y?.blockerFn&&await y.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:"PUSH"}))return Promise.resolve()}return u.replace?window.location.replace(p):window.location.href=p,Promise.resolve()}return this.buildAndCommitLocation({...u,href:o,to:a,_isNavigate:!0})},this.beforeLoad=()=>{this.cancelMatches(),this.updateLatestLocation();const a=this.matchRoutes(this.latestLocation),s=this.stores.cachedMatches.get().filter(o=>!a.some(c=>c.id===o.id));this.batch(()=>{this.stores.status.set("pending"),this.stores.statusCode.set(200),this.stores.isLoading.set(!0),this.stores.location.set(this.latestLocation),this.stores.setPending(a),this.stores.setCached(s)})},this.load=async a=>{let s,o,c;const u=this.stores.resolvedLocation.get()??this.stores.location.get();for(c=new Promise(p=>{this.startTransition(async()=>{try{this.beforeLoad();const g=this.latestLocation,y=xs(g,this.stores.resolvedLocation.get());this.stores.redirect.get()||this.emit({type:"onBeforeNavigate",...y}),this.emit({type:"onBeforeLoad",...y}),await qy({router:this,sync:a?.sync,forceStaleReload:u.href===g.href,matches:this.stores.pendingMatches.get(),location:g,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{let m=null,w=null,b=null,S=null;this.batch(()=>
10{const A=this.stores.pendingMatches.get(),_=A.length,C=this.stores.matches.get();m=_?C.filter(D=>!this.stores.pendingMatchStores.has(D.id)):null;const B=new Set;for(const D of this.stores.pendingMatchStores.values())D.routeId&&B.add(D.routeId);const j=new Set;for(const D of this.stores.matchStores.values())D.routeId&&j.add(D.routeId);w=_?C.filter(D=>!B.has(D.routeId)):null,b=_?A.filter(D=>!j.has(D.routeId)):null,S=_?A.filter(D=>j.has(D.routeId)):C,this.stores.isLoading.set(!1),this.stores.loadedAt.set(Date.now()),_&&(this.stores.setMatches(A),this.stores.setPending([]),this.stores.setCached([...this.stores.cachedMatches.get(),...m.filter(D=>D.status!=="error"&&D.status!=="notFound"&&D.status!=="redirected")]),this.clearExpiredCache())});for(const[A,_]of[[w,"onLeave"],[b,"onEnter"],[S,"onStay"]])if(A)for(const C of A)this.looseRoutesById[C.routeId].options[_]?.(C)})})}})}catch(g){Ut(g)?(s=g,this.navigate({...s.options,replace:!0,ignoreBlocker:!0})):pt(g)&&(o=g);const y=s?s.status:o?404:this.stores.matches.get().some(m=>m.status==="error")?500:200;this.batch(()=>{this.stores.statusCode.set(y),this.stores.redirect.set(s)})}this.latestLoadPromise===c&&(this.commitLocationPromise?.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),p()})}),this.latestLoadPromise=c,await c;this.latestLoadPromise&&c!==this.latestLoadPromise;)await this.latestLoadPromise;let d;this.hasNotFoundMatch()?d=404:this.stores.matches.get().some(p=>p.status==="error")&&(d=500),d!==void 0&&this.stores.statusCode.set(d)},this.startViewTransition=a=>{const s=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,s&&typeof document<"u"&&"startViewTransition"in document&&typeof document.startViewTransition=="function"){let o;if(typeof s=="object"&&this.isViewTransitionTypesSupported){const c=this.latestLocation,u=this.stores.resolvedLocation.get(),d=typeof s.types=="function"?s.types(xs(c,u)):s.types;if(d===!1){a();return}o={update:a,types:d}}else o=a;document.startViewTransition(o)}else a()},this.updateMatch=(a,s)=>{this.startTransition(()=>{const o=this.stores.pendingMatchStores.get(a);if(o){o.set(s);return}const c=this.stores.matchStores.get(a);if(c){c.set(s);return}const u=this.stores.cachedMatchStores.get(a);if(u){const d=s(u.get());d.status==="redirected"?this.stores.cachedMatchStores.delete(a)&&this.stores.cachedIds.set(p=>p.filter(g=>g!==a)):u.set(d)}})},this.getMatch=a=>this.stores.cachedMatchStores.get(a)?.get()??this.stores.pendingMatchStores.get(a)?.get()??this.stores.matchStores.get(a)?.get(),this.invalidate=a=>{const s=o=>a?.filter?.(o)??!0?{...o,invalid:!0,...a?.forcePending||o.status==="error"||o.status==="notFound"?{status:"pending",error:void 0}:void 0}:o;return this.batch(()=>{this.stores.setMatches(this.stores.matches.get().map(s)),this.stores.setCached(this.stores.cachedMatches.get().map(s)),this.stores.setPending(this.stores.pendingMatches.get().map(s))}),this.shouldViewTransition=!1,this.load({sync:a?.sync})},this.getParsedLocationHref=a=>a.publicHref||"/",this.resolveRedirect=a=>{const s=a.headers.get("Location");if(!a.options.href||a.options._builtLocation){const o=a.options._builtLocation??this.buildLocation(a.options),c=this.getParsedLocationHref(o);a.options.href=c,a.headers.set("Location",c)}else if(s)try{const o=new URL(s);if(this.origin&&o.origin===this.origin){const c=o.pathname+o.search+o.hash;a.options.href=c,a.headers.set("Location",c)}}catch{}if(a.options.href&&!a.options._builtLocation&&nc(a.options.href,this.protocolAllowlist))throw new Error("Redirect blocked: unsafe protocol");return a.headers.get("Location")||a.headers.set("Location",a.options.href),a},this.clearCache=a=>{const s=a?.filter;s!==void 0?this.stores.setCached(this.stores.cachedMatches.get().filter(o=>!s(o))):this.stores.setCached([])},this.clearExpiredCache=()=>{const a=Date.now(),s=o=>{const c=this.looseRoutesById[o.routeId];if(!c.options.loader)return!0;const u=(o.preload?c.options.preloadGcTime??this.options.defaultPreloadGcTime:c.options.gcTime??this.options.defaultGcTime)??300*1e3;return o.status==="error"?!0:a-o.updatedAt>=u};this.clearCache({filter:s})},this.loadRouteChunk=Xr,this.preloadRoute=async a=>{const s=a._builtLocation??this.buildLocation(a);let o=this.matchRoutes(s,{throwOnError:!0,preload:!0,dest:a});const c=new Set([...this.stores.matchesId.get(),...this.stores.pe
10ndingIds.get()]),u=new Set([...c,...this.stores.cachedIds.get()]),d=o.filter(p=>!u.has(p.id));if(d.length){const p=this.stores.cachedMatches.get();this.stores.setCached([...p,...d])}try{return o=await qy({router:this,matches:o,location:s,preload:!0,updateMatch:(p,g)=>{c.has(p)?o=o.map(y=>y.id===p?g(y):y):this.updateMatch(p,g)}}),o}catch(p){if(Ut(p))return p.options.reloadDocument?void 0:await this.preloadRoute({...p.options,_fromLocation:s});pt(p)||console.error(p);return}},this.matchRoute=(a,s)=>{const o={...a,to:a.to?this.resolvePathWithBase(a.from||"",a.to):void 0,params:a.params||{},leaveParams:!0},c=this.buildLocation(o);if(s?.pending&&this.stores.status.get()!=="pending")return!1;const u=(s?.pending===void 0?!this.stores.isLoading.get():s.pending)?this.latestLocation:this.stores.resolvedLocation.get()||this.stores.location.get(),d=n_(c.pathname,s?.caseSensitive??!1,s?.fuzzy??!1,u.pathname,this.processedTree);return!d||a.params&&!Nt(d.rawParams,a.params,{partial:!0})?!1:s?.includeSearch??!0?Nt(u.search,c.search,{partial:!0})?d.rawParams:!1:d.rawParams},this.hasNotFoundMatch=()=>this.stores.matches.get().some(a=>a.status==="notFound"||a.globalNotFound),this.getStoreConfig=e,this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...t,caseSensitive:t.caseSensitive??!1,notFoundMode:t.notFoundMode??"fuzzy",stringifySearch:t.stringifySearch??k_,parseSearch:t.parseSearch??S_,protocolAllowlist:t.protocolAllowlist??Fk}),typeof document<"u"&&(self.__TSR_ROUTER__=this)}isShell(){return!!this.options.isShell}isPrerendering(){return!!this.options.isPrerendering}get state(){return this.stores.__store.get()}setRoutes({routesById:t,routesByPath:e,processedTree:a}){this.routesById=t,this.routesByPath=e,this.processedTree=a;const s=this.options.notFoundRoute;s&&(s.init({originalIndex:99999999999}),this.routesById[s.id]=s)}get looseRoutesById(){return this.routesById}getParentContext(t){return t?.id?t.context??this.options.context??void 0:this.options.context??void 0}matchRoutesInternal(t,e){const a=this.getMatchedRoutes(t.pathname),{foundRoute:s,routeParams:o,parsedParams:c}=a;let{matchedRoutes:u}=a,d=!1;(s?s.path!=="/"&&o["**"]:$a(t.pathname))&&(this.options.notFoundRoute?u=[...u,this.options.notFoundRoute]:d=!0);const p=d?G_(this.options.notFoundMode,u):void 0,g=new Array(u.length),y=new Map;for(const m of this.stores.matchStores.values())m.routeId&&y.set(m.routeId,m.get());for(let m=0;m<u.length;m++){const w=u[m],b=g[m-1];let S,A,_;{const xe=b?.search??t.search,Ye=b?._strictSearch??void 0;try{const qe=Zl(w.options.validateSearch,{...xe})??void 0;S={...xe,...qe},A={...Ye,...qe},_=void 0}catch(qe){let U=qe;if(qe instanceof sc||(U=new sc(qe.message,{cause:qe})),e?.throwOnError)throw U;S=xe,A={},_=U}}const C=w.options.loaderDeps?.({search:S})??"",B=C?JSON.stringify(C):"",{interpolatedPath:j,usedParams:D}=Dy({path:w.fullPath,params:o,decoder:this.pathParamsDecoder,server:this.isServer}),F=w.id+j+B,V=this.getMatch(F),I=y.get(w.id),W=V?._strictParams??D;let Q;if(!V)try{Wy(w,D,c,W)}catch(xe){if(pt(xe)||Ut(xe)?Q=xe:Q=new I_(xe.message,{cause:xe}),e?.throwOnError)throw Q}Object.assign(o,W);const se=I?"stay":"enter";let ne;if(V)ne={...V,cause:se,params:I?.params??o,_strictParams:W,search:fi(I?I.search:V.search,S),_strictSearch:A};else{const xe=w.options.loader||w.options.beforeLoad||w.lazyFn||Tw(w)?"pending":"success";ne={id:F,ssr:w.options.ssr,index:m,routeId:w.id,params:I?.params??o,_strictParams:W,pathname:j,updatedAt:Date.now(),search:I?fi(I.search,S):S,_strictSearch:A,searchError:void 0,status:xe,isFetching:!1,error:void 0,paramsError:Q,__routeC
10ontext:void 0,_nonReactive:{loadPromise:Ri()},__beforeLoadContext:void 0,context:{},abortController:new AbortController,fetchCount:0,cause:se,loaderDeps:I?vi(I.loaderDeps,C):C,invalid:!1,preload:!1,links:void 0,scripts:void 0,headScripts:void 0,meta:void 0,staticData:w.options.staticData||{},fullPath:w.fullPath}}e?.preload||(ne.globalNotFound=p===w.id),ne.searchError=_;const ve=this.getParentContext(b);ne.context={...ve,...ne.__routeContext,...ne.__beforeLoadContext},g[m]=ne}for(let m=0;m<g.length;m++){const w=g[m],b=this.looseRoutesById[w.routeId],S=this.getMatch(w.id),A=y.get(w.routeId);if(w.params=A?fi(A.params,o):o,!S){const _=g[m-1],C=this.getParentContext(_);if(b.options.context){const B={deps:w.loaderDeps,params:w.params,context:C??{},location:t,navigate:j=>this.navigate({...j,_fromLocation:t}),buildLocation:this.buildLocation,cause:w.cause,abortController:w.abortController,preload:!!w.preload,matches:g,routeId:b.id};w.__routeContext=b.options.context(B)??void 0}w.context={...C,...w.__routeContext,...w.__beforeLoadContext}}}return g}matchRoutesLightweight(t){const{matchedRoutes:e,routeParams:a,parsedParams:s}=this.getMatchedRoutes(t.pathname),o=Qr(e),c={...t.search};for(const y of e)try{Object.assign(c,Zl(y.options.validateSearch,c))}catch{}const u=Qr(this.stores.matchesId.get()),d=u&&this.stores.matchStores.get(u)?.get(),p=d&&d.routeId===o.id&&d.pathname===t.pathname;let g;if(p)g=d.params;else{const y=Object.assign(Object.create(null),a);for(const m of e)try{Wy(m,a,s??{},y)}catch{}g=y}return{matchedRoutes:e,fullPath:o.fullPath,search:c,params:g}}},sc=class extends Error{},I_=class extends Error{};function q_(t){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:"idle",resolvedLocation:void 0,location:t,matches:[],statusCode:200}}function Zl(t,e){if(t==null)return{};if("~standard"in t){const a=t["~standard"].validate(e);if(a instanceof Promise)throw new sc("Async validation not supported");if(a.issues)throw new sc(JSON.stringify(a.issues,void 0,2),{cause:a});return a.value}return"parse"in t?t.parse(e):typeof t=="function"?t(e):{}}function $_({pathname:t,routesById:e,processedTree:a}){const s=Object.create(null),o=$a(t);let c,u;const d=a_(o,a,!0);return d&&(c=d.route,Object.assign(s,d.rawParams),u=Object.assign(Object.create(null),d.parsedParams)),{matchedRoutes:d?.branch||[e.__root__],routeParams:s,foundRoute:c,parsedParams:u}}function V_({search:t,dest:e,destRoutes:a,_includeValidateSearch:s}){return H_(a)(t,e,s??!1)}function H_(t){const e={dest:null,_includeValidateSearch:!1,middlewares:[]};for(const o of t){if("search"in o.options)o.options.search?.middlewares&&e.middlewares.push(...o.options.search.middlewares);else if(o.options.preSearchFilters||o.options.postSearchFilters){const c=({search:u,next:d})=>{let p=u;"preSearchFilters"in o.options&&o.options.preSearchFilters&&(p=o.options.preSearchFilters.reduce((y,m)=>m(y),u));const g=d(p);return"postSearchFilters"in o.options&&o.options.postSearchFilters?o.options.postSearchFilters.reduce((y,m)=>m(y),g):g};e.middlewares.push(c)}if(o.options.validateSearch){const c=({search:u,next:d})=>{const p=d(u);if(!e._includeValidateSearch)return p;try{return{...p,...Zl(o.options.validateSearch,p)??void 0}}catch{return p}};e.middlewares.push(c)}}const a=({search:o})=>{const c=e.dest;return c.search?c.search===!0?o:Ua(c.search,o):{}};e.middlewares.push(a);const s=(o,c,u)=>{if(o>=u.length)return c;const d=u[o];return d({search:c,next:g=>s(o+1,g,u)})};return function(c,u,d){return e.dest=u,e._includeValidateSearch=d,s(0,c,e.middlewares)}}function G_(t,e){if(t!=="root")for(let a=e.length-1;a>=0;a--){const s=e[a];if(s.children)return s.id}return _i}function Wy(t,e,a,s){const o=t.options.params?.parse??t.options.parseParams;if(o)if(t.options.skipRouteOnParseError)for(const c in e)c in a&&(s[c]=a[c]);else{const c=o(s);Object.assign(s,c)}}var xn=Symbol.for("TSR_DEFERRED_PROMISE");function W_(t,e){const a=t;return a[xn]||(a[xn]={status:"pending"},a.then(s=>{a[xn].status="success",a[xn].data=s}).catch(s=>{a[xn].status="error",a[xn].error={data:N_(s),__isServerError:!0}})),a}var F_="Error preloading route! ☝️";function Fy(t,e){if(t)return typeof t=="string"?t:t[e]}function K_(t){return typeof t=="string"?{href:t,crossOrigin:void 0}:t}function Y_(t){if(t.tag!=="link")return;const e=t.attrs?.rel,a=t.attrs?.href;
10if(typeof a=="string"&&(typeof e=="string"?e.split(/\s+/):[]).includes("stylesheet"))return a}function Q_(t,e){const a=Y_(e);return!!a&&t?.inlineCss?.styles[a]!==void 0}var Rw=class{get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}constructor(t){if(this.init=e=>{this.originalIndex=e.originalIndex;const a=this.options,s=!a?.path&&!a?.id;this.parentRoute=this.options.getParentRoute?.(),s?this._path=_i:this.parentRoute||It();let o=s?_i:a?.path;o&&o!=="/"&&(o=yw(o));const c=a?.id||o;let u=s?_i:Ql([this.parentRoute.id==="__root__"?"":this.parentRoute.id,c]);o==="__root__"&&(o="/"),u!=="__root__"&&(u=Ql(["/",u]));const d=u==="__root__"?"/":Ql([this.parentRoute.fullPath,o]);this._path=o,this._id=u,this._fullPath=d,this._to=$a(d)},this.addChildren=e=>this._addFileChildren(e),this._addFileChildren=e=>(Array.isArray(e)&&(this.children=e),typeof e=="object"&&e!==null&&(this.children=Object.values(e)),this),this._addFileTypes=()=>this,this.updateLoader=e=>(Object.assign(this.options,e),this),this.update=e=>(Object.assign(this.options,e),this),this.lazy=e=>(this.lazyFn=e,this),this.redirect=e=>Xd({from:this.fullPath,...e}),this.options=t||{},this.isRoot=!t?.getParentRoute,t?.id&&t?.path)throw new Error("Route cannot have both an 'id' and a 'path' option.")}},J_=class extends Rw{constructor(t){super(t)}};function Z_(t){if(typeof document<"u"&&document.querySelector){const e=t.stores.location.get(),a=e.state.__hashScrollIntoViewOptions??!0;if(a&&e.hash!==""){const s=document.getElementById(e.hash);s&&s.scrollIntoView(a)}}}var X_=(t=>(t[t.AggregateError=1]="AggregateError",t[t.ArrowFunction=2]="ArrowFunction",t[t.ErrorPrototypeStack=4]="ErrorPrototypeStack",t[t.ObjectAssign=8]="ObjectAssign",t[t.BigIntTypedArray=16]="BigIntTypedArray",t[t.RegExp=32]="RegExp",t))(X_||{}),ia=Symbol.asyncIterator,Aw=Symbol.hasInstance,Os=Symbol.isConcatSpreadable,sa=Symbol.iterator,Cw=Symbol.match,Ew=Symbol.matchAll,xw=Symbol.replace,Ow=Symbol.search,Bw=Symbol.species,jw=Symbol.split,Mw=Symbol.toPrimitive,Bs=Symbol.toStringTag,Dw=Symbol.unscopables,Pw={[ia]:0,[Aw]:1,[Os]:2,[sa]:3,[Cw]:4,[Ew]:5,[xw]:6,[Ow]:7,[Bw]:8,[jw]:9,[Mw]:10,[Bs]:11,[Dw]:12},eT={0:ia,1:Aw,2:Os,3:sa,4:Cw,5:Ew,6:xw,7:Ow,8:Bw,9:jw,10:Mw,11:Bs,12:Dw},R=void 0,tT={2:!0,3:!1,1:R,0:null,4:-0,5:Number.POSITIVE_INFINITY,6:Number.NEGATIVE_INFINITY,7:Number.NaN},nT={0:"Error",1:"EvalError",2:"RangeError",3:"ReferenceError",4:"SyntaxError",5:"TypeError",6:"URIError"},aT={0:Error,1:EvalError,2:RangeError,3:ReferenceError,4:SyntaxError,5:TypeError,6:URIError};function Re(t,e,a,s,o,c,u,d,p,g,y,m){return{t,i:e,s:a,c:s,m:o,p:c,e:u,a:d,f:p,b:g,o:y,l:m}}function Ha(t){return Re(2,R,t,R,R,R,R,R,R,R,R,R)}var Lw=Ha(2),zw=Ha(3),iT=Ha(1),sT=Ha(0),rT=Ha(4),oT=Ha(5),lT=Ha(6),cT=Ha(7);function uT(t){switch(t){case'"':return'\\"';case"\\":return"\\\\";case`
11`:return"\\n";case"\r":return"\\r";case"\b":return"\\b";case"	":return"\\t";case"\f":return"\\f";case"<":return"\\x3C";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:return R}}function Ga(t){let e="",a=0,s;for(let o=0,c=t.length;o<c;o++)s=uT(t[o]),s&&(e+=t.slice(a,o)+s,a=o+1);return a===0?e=t:e+=t.slice(a),e}function hT(t){switch(t){case"\\\\":return"\\";case'\\"':return'"';case"\\n":return`
12`;case"\\r":return"\r";case"\\b":return"\b";case"\\t":return"	";case"\\f":return"\f";case"\\x3C":return"<";case"\\u2028":return"\u2028";case"\\u2029":return"\u2029";default:return t}}function Wa(t){return t.replace(/(\\\\|\\"|\\n|\\r|\\b|\\t|\\f|\\u2028|\\u2029|\\x3C)/g,hT)}var Nl="__SEROVAL_REFS__",Nw=new Map,As=new Map;function Uw(t){return Nw.has(t)}function dT(t){return As.has(t)}function fT(t){if(Uw(t))return Nw.get(t);throw new HT(t)}function pT(t){if(dT(t))return As.get(t);throw new GT(t)}typeof globalThis<"u"?Object.defineProperty(globalThis,Nl,{value:As,configurable:!0,writable:!1,enumerable:!1}):typeof window<"u"?Object.defineProperty(window,Nl,{value:As,configurable:!0,writable:!1,enumerable:!1}):typeof self<"u"?Object.defineProperty(self,Nl,{value:As,configurable:!0,writable:!1,enumerable:!1}):typeof global<"u"&&Object.defineProperty(global,Nl,{value:As,configurable:!0,writable:!1,enumerable:!1});function tf(t){return t instanceof EvalError?1:t instanceof RangeError?2:t instanceof ReferenceError?3:t instanceof SyntaxError?4:t instanceof TypeError?5:t instanceof URIError?6:0}function gT(t){let e=nT[tf(t)];return t.name!==e?{name:t.name}:t.constructor.name!==e?{name:t.constructor.name}:{}}function Iw(t,e){let a=gT(t),s=Object.getOwnPropertyNames(t);for(let o=0,c=s.length,u;o<c;o++)u=s[o],u!=="name"&&u!=="message"&&(u==="stack"?e&4&&(a=a||{},a[u]=t[u]):(a=a||{},a[u]=t[u]));return a}function qw(t){return Object.isFrozen(t)?3:Object.isSealed(t)?2:Object.isExtensible(t)?0:1}function mT(t){switch(t){case Number.POSITIVE_INFINITY:return oT;case Number.NEGATIVE_INFINITY:return lT}return t!==t?cT:Object.is(t,-0)?rT:Re(0,R,t,R,R,R,R,R,R,R,R,R)}function $w(t){return Re(1,R,Ga(t),R,R,R,R,R,R,R,R,R)}function yT(t){return Re(3,R,""+t,R,R,R,R,R,R,R,R,R)}function vT(t){return Re(4,t,R,R,R,R,R,R,R,R,R,R)}function wT(t,e){let a=e.valueOf();return Re(5,t,a!==a?"":e.toISOString(),R,R,R,R,R,R,R,R,R)}function bT(t,e){return Re(6,t,R,Ga(e.source),e.flags,R,R,R,R,R,R,R)}function ST(t,e){return Re(17,t,Pw[e],R,R,R,R,R,R,R,R,R)}function kT(t,e){return Re(18,t,Ga(fT(e)),R,R,R,R,R,R,R,R,R)}function _T(t,e,a){return Re(25,t,a,Ga(e),R,R,R,R,R,R,R,R)}function TT(t,e,a){return Re(9,t,R,R,R,R,R,a,R,R,qw(e),R)}function RT(t,e){return Re(21,t,R,R,R,R,R,R,e,R,R,R)}function AT(t,e,a){return Re(15,t,R,e.constructor.name,R,R,R,R,a,e.byteOffset,R,e.length)}function CT(t,e,a){return Re(16,t,R,e.constructor.name,R,R,R,R,a,e.byteOffset,R,e.byteLength)}function ET(t,e,a){return Re(20,t,R,R,R,R,R,R,a,e.byteOffset,R,e.byteLength)}function xT(t,e,a){return Re(13,t,tf(e),R,Ga(e.message),a,R,R,R,R,R,R)}function OT(t,e,a){return Re(14,t,tf(e),R,Ga(e.message),a,R,R,R,R,R,R)}function BT(t,e){return Re(7,t,R,R,R,R,R,e,R,R,R,R)}function jT(t,e){return Re(28,R,R,R,R,R,R,[t,e],R,R,R,R)}function MT(t,e){return Re(30,R,R,R,R,R,R,[t,e],R,R,R,R)}function DT(t,e,a){return Re(31,t,R,R,R,R,R,a,e,R,R,R)}function PT(t,e){return Re(32,t,R,R,R,R,R,R,e,R,R,R)}function LT(t,e){return Re(33,t,R,R,R,R,R,R,e,R,R,R)}function zT(t,e){return Re(34,t,R,R,R,R,R,R,e,R,R,R)}function NT(t,e,a,s){return Re(35,t,a,R,R,R,R,e,R,R,R,s)}
12var UT={parsing:1,serialization:2,deserialization:3};function IT(t){return`Seroval Error (step: ${UT[t]})`}var qT=(t,e)=>IT(t),Vw=class extends Error{constructor(e,a){super(qT(e)),this.cause=a}},Ky=class extends Vw{constructor(e){super("parsing",e)}},$T=class extends Vw{constructor(e){super("deserialization",e)}};function ra(t){return`Seroval Error (specific: ${t})`}var Tc=class extends Error{constructor(e){super(ra(1)),this.value=e}},Hw=class extends Error{constructor(e){super(ra(2))}},VT=class extends Error{constructor(e){super(ra(3))}},fo=class extends Error{constructor(e){super(ra(4))}},HT=class extends Error{constructor(t){super(ra(5)),this.value=t}},GT=class extends Error{constructor(e){super(ra(6))}},WT=class extends Error{constructor(e){super(ra(7))}},Fa=class extends Error{constructor(t){super(ra(8))}},FT=class extends Error{constructor(e){super(ra(9))}},KT=class{constructor(e,a){this.value=e,this.replacement=a}},Rc=()=>{let t={p:0,s:0,f:0};return t.p=new Promise((e,a)=>{t.s=e,t.f=a}),t},YT=(t,e)=>{t.s(e),t.p.s=1,t.p.v=e},QT=(t,e)=>{t.f(e),t.p.s=2,t.p.v=e};Rc.toString();YT.toString();QT.toString();var JT=()=>{let t=[],e=[],a=!0,s=!1,o=0,c=(p,g,y)=>{for(y=0;y<o;y++)e[y]&&e[y][g](p)},u=(p,g,y,m)=>{for(g=0,y=t.length;g<y;g++)m=t[g],!a&&g===y-1?p[s?"return":"throw"](m):p.next(m)},d=(p,g)=>(a&&(g=o++,e[g]=p),u(p),()=>{a&&(e[g]=e[o],e[o--]=void 0)});return{__SEROVAL_STREAM__:!0,on:p=>d(p),next:p=>{a&&(t.push(p),c(p,"next"))},throw:p=>{a&&(t.push(p),c(p,"throw"),a=!1,s=!1,e.length=0)},return:p=>{a&&(t.push(p),c(p,"return"),a=!1,s=!0,e.length=0)}}},ZT=t=>e=>()=>{let a=0,s={[t]:()=>s,next:()=>{if(a>e.d)return{done:!0,value:void 0};let o=a++,c=e.v[o];if(o===e.t)throw c;return{done:o===e.d,value:c}}};return s},XT=(t,e)=>a=>()=>{let s=0,o=-1,c=!1,u=[],d=[],p=(y=0,m=d.length)=>{for(;y<m;y++)d[y].s({done:!0,value:void 0})};a.on({next:y=>{let m=d.shift();m&&m.s({done:!1,value:y}),u.push(y)},throw:y=>{let m=d.shift();m&&m.f(y),p(),o=u.length,c=!0,u.push(y)},return:y=>{let m=d.shift();m&&m.s({done:!0,value:y}),p(),o=u.length,u.push(y)}});let g={[t]:()=>g,next:()=>{if(o===-1){let w=s++;if(w>=u.length){let b=e();return d.push(b),b.p}return{done:!1,value:u[w]}}if(s>o)return{done:!0,value:void 0};let y=s++,m=u[y];if(y!==o)return{done:!1,value:m};if(c)throw m;return{done:!0,value:m}}};return g},Gw=t=>{let e=atob(t),a=e.length,s=new Uint8Array(a);for(let o=0;o<a;o++)s[o]=e.charCodeAt(o);return s.buffer};Gw.toString();function eR(t){return"__SEROVAL_SEQUENCE__"in t}function Ww(t,e,a){return{__SEROVAL_SEQUENCE__:!0,v:t,t:e,d:a}}function tR(t){let e=[],a=-1,s=-1,o=t[sa]();for(;;)try{let c=o.next();if(e.push(c.value),c.done){s=e.length-1;break}}catch(c){a=e.length,e.push(c)}return Ww(e,a,s)}var nR=ZT(sa);function aR(t){return nR(t)}var iR={},sR={},rR={0:{},1:{},2:{},3:{},4:{},5:{}};function Ac(t){return"__SEROVAL_STREAM__"in t}function Ci(){return JT()}function oR(t){let e=Ci(),a=t[ia]();async function s(){try{let o=await a.next();o.done?e.return(o.value):(e.next(o.value),await s())}catch(o){e.throw(o)}}return s().catch(()=>{}),e}var lR=XT(ia,Rc);function cR(t){return lR(t)}async function uR(t){try{return[1,await t]}catch(e){return[0,e]}}function hR(t,e){return{plugins:e.plugins,mode:t,marked:new Set,features:63^(e.disabledFeatures||0),refs:e.refs||new Map,depthLimit:e.depthLimit||1e3}}function Xl(t,e){t.marked.add(e)}function dR(t,e){let a=t.refs.size;return t.refs.set(e,a),a}function Cc(t,e){let a=t.refs.get(e);return a!=null?(Xl(t,a),{type:1,value:vT(a)}):{type:0,value:dR(t,e)}}function nf(t,e){let a=Cc(t,e);return a.type===1?a:Uw(e)?{type:2,value:kT(a.value,e)}:a}function bi(t,e){let a=nf(t,e);if(a.type!==0)return a.value;if(e in Pw)return ST(a.value,e);throw new Tc(e)}function Ec(t,e){let a=Cc(t,rR[e]);return a.type===1?a.value:Re(26,a.value,e,R,R,R,R,R,R,R,R,R)}function fR(t){let e=Cc(t,iR);return e.type===1?e.value:Re(27,e.value,R,R,R,R,R,R,bi(t,sa),R,R,R)}function pR(t){let e=Cc(t,sR);return e.type===1?e.value:Re(29,e.value,R,R,R,R,R,[Ec(t,1),bi(t,ia)],R,R,R,R)}function gR(t,e,a,s){return Re(a?11:10,t,R,R,R,s,R,R,R,R,qw(e),R)}function mR(t,e,a,s){return Re(8,e,R,R,R,R,{k:a,v:s},R,Ec(t,0),R,R,R)}function yR(t,e,a){let s=new Uint8Array(a),o="";for(let c=0,u=s.length;c<u;c++)o+=String.fromCharCode(s[c]);return Re(19,e,Ga(btoa(o)),R,R,R,R,R,Ec(t,5),R,R,R)}function vR(t,e){return{base:hR(t,e),child:void 0}}var wR=class{constructor(t,e){this._p=t,this.depth=e}parse(t){return ot(this._p,this.depth,t)}};async function bR(t,e,a){let s=[];for(let o=0,c=a.length;o<c;o++)o in a?s[o]=await ot(t,e,a[o]):s[o]=0;return s}async function SR(t,e,a,s){return TT(a,s,await bR(t,e,s))}async function af(t,e,a){let s=Object.entries(a),o=[],c=[];for(let u=0,d=s.length;u<d;u++)o.push(Ga(s[u][0])),c.push(await ot(t,e,s[u][1]));return sa in a&&(o.push(bi(t.base,sa)),c.push(jT(fR(t.base),await ot(t,e,tR(a))))),ia in a&&(o.push(bi(t.base,ia)),c.push(MT(pR(t.base),await ot(t,e,oR(a))))),Bs in a&&(o.push(bi(t.base,Bs)),c.push($w(a[Bs]))),Os in a&&(o.push(bi(t.base,Os)),c.push(a[Os]?Lw:zw)),{k:o,v:c}}async function od(t,e,a,s,o){return gR(a,s,o,await af(t,e,s))}async function kR(t,e,a,s){return RT(a,await ot(t,e,s.valueOf()))}async function _R(t,e,a,s){return AT(a,s,await ot(t,e,s.buffer))}async function TR(t,e,a,s){return CT(a,s,await ot(t,e,s.buffer))}async function RR(t,e,a,s){return ET(a,s,await ot(t,e,s.buffer))}async function Yy(t,e,a,s){let o=Iw(s,t.base.features);return xT(a,s,o?await af(t,e,o):R)}async function AR(t,e,a,s){let o=Iw(s,t.base.features);
12return OT(a,s,o?await af(t,e,o):R)}async function CR(t,e,a,s){let o=[],c=[];for(let[u,d]of s.entries())o.push(await ot(t,e,u)),c.push(await ot(t,e,d));return mR(t.base,a,o,c)}async function ER(t,e,a,s){let o=[];for(let c of s.keys())o.push(await ot(t,e,c));return BT(a,o)}async function Fw(t,e,a,s){let o=t.base.plugins;if(o)for(let c=0,u=o.length;c<u;c++){let d=o[c];if(d.parse.async&&d.test(s))return _T(a,d.tag,await d.parse.async(s,new wR(t,e),{id:a}))}return R}async function xR(t,e,a,s){let[o,c]=await uR(s);return Re(12,a,o,R,R,R,R,R,await ot(t,e,c),R,R,R)}function OR(t,e,a,s,o){let c=[],u=a.on({next:d=>{Xl(this.base,e),ot(this,t,d).then(p=>{c.push(PT(e,p))},p=>{o(p),u()})},throw:d=>{Xl(this.base,e),ot(this,t,d).then(p=>{c.push(LT(e,p)),s(c),u()},p=>{o(p),u()})},return:d=>{Xl(this.base,e),ot(this,t,d).then(p=>{c.push(zT(e,p)),s(c),u()},p=>{o(p),u()})}})}async function BR(t,e,a,s){return DT(a,Ec(t.base,4),await new Promise(OR.bind(t,e,a,s)))}async function jR(t,e,a,s){let o=[];for(let c=0,u=s.v.length;c<u;c++)o[c]=await ot(t,e,s.v[c]);return NT(a,o,s.t,s.d)}async function MR(t,e,a,s){if(Array.isArray(s))return SR(t,e,a,s);if(Ac(s))return BR(t,e,a,s);if(eR(s))return jR(t,e,a,s);let o=s.constructor;if(o===KT)return ot(t,e,s.replacement);let c=await Fw(t,e,a,s);if(c)return c;switch(o){case Object:return od(t,e,a,s,!1);case R:return od(t,e,a,s,!0);case Date:return wT(a,s);case Error:case EvalError:case RangeError:case ReferenceError:case SyntaxError:case TypeError:case URIError:return Yy(t,e,a,s);case Number:case Boolean:case String:case BigInt:return kR(t,e,a,s);case ArrayBuffer:return yR(t.base,a,s);case Int8Array:case Int16Array:case Int32Array:case Uint8Array:case Uint16Array:case Uint32Array:case Uint8ClampedArray:case Float32Array:case Float64Array:return _R(t,e,a,s);case DataView:return RR(t,e,a,s);case Map:return CR(t,e,a,s);case Set:return ER(t,e,a,s)}if(o===Promise||s instanceof Promise)return xR(t,e,a,s);let u=t.base.features;if(u&32&&o===RegExp)return bT(a,s);if(u&16)switch(o){case BigInt64Array:case BigUint64Array:return TR(t,e,a,s)}if(u&1&&typeof AggregateError<"u"&&(o===AggregateError||s instanceof AggregateError))return AR(t,e,a,s);if(s instanceof Error)return Yy(t,e,a,s);if(sa in s||ia in s)return od(t,e,a,s,!!o);throw new Tc(s)}async function DR(t,e,a){let s=nf(t.base,a);if(s.type!==0)return s.value;let o=await Fw(t,e,s.value,a);if(o)return o;throw new Tc(a)}async function ot(t,e,a){switch(typeof a){case"boolean":return a?Lw:zw;case"undefined":return iT;case"string":return $w(a);case"number":return mT(a);case"bigint":return yT(a);case"object":{if(a){let s=nf(t.base,a);return s.type===0?await MR(t,e+1,s.value,a):s.value}return sT}case"symbol":return bi(t.base,a);case"function":return DR(t,e,a);default:throw new Tc(a)}}async function PR(t,e){try{return await ot(t,0,e)}catch(a){throw a instanceof Ky?a:new Ky(a)}}var LR=(t=>(t[t.Vanilla=1]="Vanilla",t[t.Cross=2]="Cross",t))(LR||{});function Kw(t,e){for(let a=0,s=e.length;a<s;a++){let o=e[a];t.has(o)||(t.add(o),o.extends&&Kw(t,o.extends))}}function Yw(t){if(t){let e=new Set;return Kw(e,t),[...e]}}function zR(t){switch(t){case"Int8Array":return Int8Array;case"Int16Array":return Int16Array;case"Int32Array":return Int32Array;case"Uint8Array":return Uint8Array;case"Uint16Array":return Uint16Array;case"Uint32Array":return Uint32Array;case"Uint8ClampedArray":return Uint8ClampedArray;case"Float32Array":return Float32Array;case"Float64Array":return Float64Array;case"BigInt64Array":return BigInt64Array;case"BigUint64Array":return BigUint64Array;default:throw new WT(t)}}var NR=1e6,UR=1e4,IR=2e4;function Qw(t,e){switch(e){case 3:return Object.freeze(t);case 1:return Object.preventExtensions(t);case 2:return Object.seal(t);default:return t}}var qR=1e3;function $R(t,e){var a;return{mode:t,plugins:e.plugins,refs:e.refs||new Map,features:(a=e.features)!=null?a:63^(e.disabledFeatures||0),depthLimit:e.depthLimit||qR}}function VR(t){return{mode:2,base:$R(2,t),child:R}}var HR=class{constructor(t,e){this._p=t,this.depth=e}deserialize(t){return Ne(this._p,this.depth,t)}};function Jw(t,e){if(e<0||!Number.isFinite(e)||!Number.isInteger(e))throw new Fa({t:4,i:e});if(t.refs.has(e))throw new Error("Conflicted ref id: "+e)}function GR(t,e,a){return Jw(t.base,e),t.state.marked.has(e)&&t.base.refs.set(e,a),a}function WR(t,e,a){return Jw(t.base,e),t.base.refs.set(e,a),a}function lt(t,e,a){return t.mode===1?GR(t,e,a):WR(t,e,a)}function Cd(t,e,a){if(Object.hasOwn(e,a))return e[a];throw new Fa(t)}function FR(t,e){return lt(t,e.i,pT(Wa(e.s)))}function KR(t,e,a){let s=a.a,o=s.length,c=lt(t,a.i,new Array(o));for(let u=0,d;u<o;u++)d=s[u],d&&(c[u]=Ne(t,e,d));return Qw(c,a.o),c}function YR(t){switch(t){case"constructor":case"__proto__":case"prototype":case"__defineGetter__":case"__defineSetter__":case"__lookupGetter__":case"__lookupSetter__":return!1;default:return!0}}function QR(t){switch(t){case ia:case Os:case Bs:case sa:return!0;default:return!1}}function Qy(t,e,a){YR(e)?t[e]=a:Object.defineProperty(t,e,{value:a,configurable:!0,enumerable:!0,writable:!0})}function JR(t,e,a,s,o){if(typeof s=="string")Qy(a,Wa(s),Ne(t,e,o));else{let c=Ne(t,e,s);switch(typeof c){case"string":Qy(a,c,Ne(t,e,o));break;case"symbol":QR(c)&&(a[c]=Ne(t,e,o));break;default:throw new Fa(s)}}}function Zw(t,e,a,s){let o=a.k;if(o.length>0)for(let c=0,u=a.v,d=o.length;c<d;c++)JR(t,e,s,o[c],u[c]);return s}function ZR(t,e,a){let s=lt(t,a.i,a.t===10?{}:Object.create(null));return Zw(t,e,a.p,s),Qw(s,a.o),s}function XR(t,e){return lt(t,e.i,new Date(e.s))}function eA(t,e){if(t.base.features&32){let a=Wa(e.c);if(a.length>IR)throw new Fa(e);return lt(t,e.i,new RegExp(a,e.m))}throw new Hw(e)}function tA(t,e,a){let s=lt(t,a.i,new Set);for(let o=0,c=a.a,u=c.length;o<u;o++)s.add(Ne(t,e,c[o]));return s}function nA(t,e,a){let s=lt(t,a.i,new Map);for(let o=0,c=a.e.k,u=a.e.v,d=c.length;o<d;o++)s.set(Ne(t,e,c[o]),Ne(t,e,u[o]));return s}function aA(t,e){if(e.s.length>NR)throw new Fa(e);return lt(t,e.i,Gw(Wa(e.s)))}function iA(t,e,a){var s;let o=zR(a.c),c=Ne(t,e,a.f),u=(s=a.b)!=null?s:0;if(u<0||u>c.byteLength)throw new Fa(a);return lt(t,a.i,new o(c,u,a.l))}function sA(t,e,a){var s;let o=Ne(t,e,a.f),c=(s=a.b)!=null?s:0;if(c<0||c>o.byteLength)throw new Fa(a);return lt(t,a.i,new DataView(o,c,a.l))}function Xw(t,e,a,s){if(a.p){let o=Zw(t,e,a.p,{});Object.defineProperties(s,Object.getOwnPropertyDescriptors(o))}return s}function rA(t,e,a){let s=lt(t,a.i,new AggregateError([],Wa(a.m)));return Xw(t,e,a,s)}function oA(t,e,a){let s=Cd(a,aT,a.s),o=lt(t,a.i,new s(Wa(a.m)));return Xw(t,e,a,o)}function lA(t,e,a){let s=Rc(),o=lt(t,a.i,s.p),c=Ne(t,e,a.f);return a.s?s.s(c):s.f(c),o}function cA(t,e,a){return lt(t,a.i,Object(Ne(t,e,a.f)))}function uA(t,e,a){let s=t.base.plugins;if(s){let o=Wa(a.c);for(let c=0,u=s.length;c<u;c++){let d=s[c];if(d.tag===o)return lt(t,a.i,d.deserialize(a.s,new HR(t,e),{id:a.i}))}}throw new VT(a.c)}function hA(t,e){return lt(t,e.i,lt(t,e.s,Rc()).p)}function dA(t,e,a){let s=t.base.refs.get(a.i);if(s)return s.s(Ne(t,e,a.a[1])),R;throw new fo("Promise")}function fA(t,e,a){let s=t.base.refs.get(a.i);if(s)return s.f(Ne(t,e,a.a[1])),R;throw new fo("Promise")}function pA(t,e,a){Ne(t,e,a.a[0]);let s=Ne(t,e,a.a[1]);return aR(s)}function gA(t,e,a){Ne(t,e,a.a[0]);let s=Ne(t,e,a.a[1]);return cR(s)}function mA(t,e,a){let s=lt(t,a.i,Ci()),o=a.a,c=o.length;if(c)for(let u=0;u<c;u++)Ne(t,e,o[u]);return s}function yA(t,e,a){let s=t.base.refs.get(a.i);if(s&&Ac(s))return s.next(Ne(t,e,a.f)),R;throw new fo("Stream")}function vA(t,e,a){let s=t.base.refs.get(a.i);if(s&&Ac(s))return s.throw(Ne(t,e,a.f)),R;throw new fo("Stream")}function wA(t,e,a){let s=t.base.refs.get(a.i);if(s&&Ac(s))return s.return(Ne(t,e,a.f)),R;throw new fo("Stream")}function bA(t,e,a){return Ne(t,e,a.f),R}function SA(t,e,a){return Ne(t,e,a.a[1]),R}function kA(t,e,a){let s=lt(t,a.i,Ww([],a.s,a.l));for(let o=0,c=a.a.length;o<c;o++)s.v[o]=Ne(t,e,a.a[o]);return s}function Ne(t,e,a){if(e>t.base.depthLimit)throw new FT(t.base.depthLimit);switch(e+=1,a.t){case 2:return Cd(a,tT,a.s);case 0:return Number(a.s);case 1:return Wa(String(a.s));case 3:if(String(a.s).length>UR)throw new Fa(a);return BigInt(a.s);case 4:return t.base.refs.get(a.i);case 18:return FR(t,a);case 9:return KR(t,e,a);case 10:case 11:return ZR(t,e,a);case 5:return XR(t,a);case 6:return eA(t,a);case 7:return tA(t,e,a);case 8:return nA(t,e,a);case 19:return aA(t,a);case 16:case 15:return iA(t,e,a);case 20:return sA(t,e,a);case 14:return rA(t,e,a);case 13:return oA(t,e,a);case 12:return lA(t,e,a);case 17:return Cd(a,eT,a.s);case 21:return cA(t,e,a);case 25:return uA(t,e,a);case 22:return hA(t,a);case 23:return dA(t,e,a);case 24:return fA(t,e,a);case 28:return pA(t,e,a);case 30:return gA(t,e,a);case 31:return mA(t,e,a);case 32:return yA(t,e,a);case 33:return vA(t,e,a);case 34:return wA(t,e,a);case 27:return bA(t,e,a);case 29:return SA(t,e,a);case 35:return kA(t,e,a);default:throw new Hw(a)}}function _A(t,e){try{return Ne(t,0,e)}catch(a){throw new $T(a)}}var TA=()=>T;TA.toString();function Jy(t,e){let a=Yw(e.plugins),s=VR({plugins:a,refs:e.refs,features:e.features,disabledFeatures:e.disabledFeatures,depthLimit:e.depthLimit});return _A(s,t)}async function RA(t,e={}){let a=Yw(e.plugins),s=vR(1,{plugins:a,disabledFeatures:e.disabledFeatures});return{t:await PR(s,t),f:s.base.features,m:Array.from(s.base.marked)}}function AA(t){return{tag:"$TSR/t/"+t.key,test:t.test,parse:{sync(e,a,s){return{v:a.parse(t.toSerializable(e))}},async async(e,a,s){return{v:await a.parse(t.toSerializable(e))}},stream(e,a,s){return{v:a.parse(t.toSerializable(e))}}},serialize:void 0,deserialize(e,a,s){return t.fromSerializable(a.deserialize(e.v))}}}var CA=class{constructor(t,e){this.stream=t,this.hint=e?.hint??"binary"}},rc=globalThis.Buffer,eb=!!rc&&typeof rc.from=="function";function tb(t){if(t.length===0)return"";if(eb)return rc.from(t).toString("base64");const e=32768,a=[];for(let s=0;s<t.length;s+=e){const o=t.subarray(s,s+e);a.push(String.fromCharCode.apply(null,o))}return btoa(a.join(""))}function nb(t){if(t.length===0)return new Uint8Array(0);if(eb){const s=rc.from(t,"base64");return new Uint8Array(s.buffer,s.byteOffset,s.byteLength)}const e=atob(t),a=new Uint8Array(e.length);for(let s=0;s<e.length;s++)a[s]=e.charCodeAt(s);return a}var zr=Object.create(null),Nr=Object.create(null),EA=t=>new ReadableStream({start(e){t.on({next(a){try{e.enqueue(nb(a))}catch{}},throw(a){e.error(a)},return(){try{e.close()}catch{}}})}}),xA=new TextEncoder,OA=t=>
12new ReadableStream({start(e){t.on({next(a){try{typeof a=="string"?e.enqueue(xA.encode(a)):e.enqueue(nb(a.$b64))}catch{}},throw(a){e.error(a)},return(){try{e.close()}catch{}}})}}),BA="(s=>new ReadableStream({start(c){s.on({next(b){try{const d=atob(b),a=new Uint8Array(d.length);for(let i=0;i<d.length;i++)a[i]=d.charCodeAt(i);c.enqueue(a)}catch(_){}},throw(e){c.error(e)},return(){try{c.close()}catch(_){}}})}}))",jA="(s=>{const e=new TextEncoder();return new ReadableStream({start(c){s.on({next(v){try{if(typeof v==='string'){c.enqueue(e.encode(v))}else{const d=atob(v.$b64),a=new Uint8Array(d.length);for(let i=0;i<d.length;i++)a[i]=d.charCodeAt(i);c.enqueue(a)}}catch(_){}},throw(x){c.error(x)},return(){try{c.close()}catch(_){}}})}})})";function Zy(t){const e=Ci(),a=t.getReader();return(async()=>{try{for(;;){const{done:s,value:o}=await a.read();if(s){e.return(void 0);break}e.next(tb(o))}}catch(s){e.throw(s)}finally{a.releaseLock()}})(),e}function Xy(t){const e=Ci(),a=t.getReader(),s=new TextDecoder("utf-8",{fatal:!0});return(async()=>{try{for(;;){const{done:o,value:c}=await a.read();if(o){try{const u=s.decode();u.length>0&&e.next(u)}catch{}e.return(void 0);break}try{const u=s.decode(c,{stream:!0});u.length>0&&e.next(u)}catch{e.next({$b64:tb(c)})}}}catch(o){e.throw(o)}finally{a.releaseLock()}})(),e}var MA={tag:"tss/RawStream",extends:[{tag:"tss/RawStreamFactory",test(t){return t===zr},parse:{sync(t,e,a){return{}},async async(t,e,a){return{}},stream(t,e,a){return{}}},serialize(t,e,a){return BA},deserialize(t,e,a){return zr}},{tag:"tss/RawStreamFactoryText",test(t){return t===Nr},parse:{sync(t,e,a){return{}},async async(t,e,a){return{}},stream(t,e,a){return{}}},serialize(t,e,a){return jA},deserialize(t,e,a){return Nr}}],test(t){return t instanceof CA},parse:{sync(t,e,a){const s=t.hint==="text"?Nr:zr;return{hint:e.parse(t.hint),factory:e.parse(s),stream:e.parse(Ci())}},async async(t,e,a){const s=t.hint==="text"?Nr:zr,o=t.hint==="text"?Xy(t.stream):Zy(t.stream);return{hint:await e.parse(t.hint),factory:await e.parse(s),stream:await e.parse(o)}},stream(t,e,a){const s=t.hint==="text"?Nr:zr,o=t.hint==="text"?Xy(t.stream):Zy(t.stream);return{hint:e.parse(t.hint),factory:e.parse(s),stream:e.parse(o)}}},serialize(t,e,a){return"("+e.serialize(t.factory)+")("+e.serialize(t.stream)+")"},deserialize(t,e,a){const s=e.deserialize(t.stream);return e.deserialize(t.hint)==="text"?OA(s):EA(s)}};function DA(t){return{tag:"tss/RawStream",test:()=>!1,parse:{},serialize(){throw new Error("RawStreamDeserializePlugin.serialize should not be called. Client only deserializes.")},deserialize(e,a,s){return t(typeof a?.deserialize=="function"?a.deserialize(e.streamId):e.streamId)}}}var PA={tag:"$TSR/Error",test(t){return t instanceof Error},parse:{sync(t,e){return{message:e.parse(t.message)}},async async(t,e){return{message:await e.parse(t.message)}},stream(t,e){return{message:e.parse(t.message)}}},serialize(t,e){return"new Error("+e.serialize(t.message)+")"},deserialize(t,e){return new Error(e.deserialize(t.message))}},La={},ab=t=>new ReadableStream({start:e=>{t.on({next:a=>{try{e.enqueue(a)}catch{}},throw:a=>{e.error(a)},return:()=>{try{e.close()}catch{}}})}}),LA={tag:"seroval-plugins/web/ReadableStreamFactory",test(t){return t===La},parse:{sync(){return La},async async(){return await Promise.resolve(La)},stream(){return La}},serialize(){return ab.toString()},deserialize(){return La}};function ev(t){let e=Ci(),a=t.getReader();async function s(){try{let o=await a.read();o.done?e.return(o.value):(e.next(o.value),await s())}catch(o){e.throw(o)}}return s().catch(()=>{}),e}var zA={tag:"seroval/plugins/web/ReadableStream",extends:[LA],test(t){return typeof ReadableStream>"u"?!1:t instanceof ReadableStream},parse:{sync(t,e){return{factory:e.parse(La),stream:e.parse(Ci())}},async async(t,e){return{factory:await e.parse(La),stream:await e.parse(ev(t))}},stream(t,e){return{factory:e.parse(La),stream:e.parse(ev(t))}}},serialize(t,e){return"("+e.serialize(t.factory)+")("+e.serialize(t.stream)+")"},deserialize(t,e){let a=e.deserialize(t.stream);return ab(a)}},NA=zA,UA=[PA,MA,NA];function IA(){return[...fw()?.serializationAdapters?.map(AA)??[],...UA]}var tv=new TextDecoder,qA=new Uint8Array(0),nv=16*1024*1024,av=32*1024*1024,iv=1024,sv=1e5;function $A(t){const e=new Map,a=new Map,s=new Set;let o=!1,c=null,u=0,d;const p=new ReadableStream({start(m){d=m},cancel(){o=!0;try{c?.cancel()}catch{}e.forEach(m=>{try{m.error(new Error("Framed response cancelled"))}catch{}}),e.clear(),a.clear(),s.clear()}});function g(m){const w=a.get(m);
12if(w)return w;if(s.has(m))return new ReadableStream({start(S){S.close()}});if(a.size>=iv)throw new Error(`Too many raw streams in framed response (max ${iv})`);const b=new ReadableStream({start(S){e.set(m,S)},cancel(){s.add(m),e.delete(m),a.delete(m)}});return a.set(m,b),b}function y(m){return g(m),e.get(m)}return(async()=>{const m=t.getReader();c=m;const w=[];let b=0;function S(){if(b<9)return null;const _=w[0];if(_.length>=9)return{type:_[0],streamId:(_[1]<<24|_[2]<<16|_[3]<<8|_[4])>>>0,length:(_[5]<<24|_[6]<<16|_[7]<<8|_[8])>>>0};const C=new Uint8Array(9);let B=0,j=9;for(let D=0;D<w.length&&j>0;D++){const F=w[D],V=Math.min(F.length,j);C.set(F.subarray(0,V),B),B+=V,j-=V}return{type:C[0],streamId:(C[1]<<24|C[2]<<16|C[3]<<8|C[4])>>>0,length:(C[5]<<24|C[6]<<16|C[7]<<8|C[8])>>>0}}function A(_){if(_===0)return qA;const C=new Uint8Array(_);let B=0,j=_;for(;j>0&&w.length>0;){const D=w[0];if(!D)break;const F=Math.min(D.length,j);C.set(D.subarray(0,F),B),B+=F,j-=F,F===D.length?w.shift():w[0]=D.subarray(F)}return b-=_,C}try{for(;;){const{done:_,value:C}=await m.read();if(o||_)break;if(C){if(b+C.length>av)throw new Error(`Framed response buffer exceeded ${av} bytes`);for(w.push(C),b+=C.length;;){const B=S();if(!B)break;const{type:j,streamId:D,length:F}=B;if(j!==Xn.JSON&&j!==Xn.CHUNK&&j!==Xn.END&&j!==Xn.ERROR)throw new Error(`Unknown frame type: ${j}`);if(j===Xn.JSON){if(D!==0)throw new Error("Invalid JSON frame streamId (expected 0)")}else if(D===0)throw new Error("Invalid raw frame streamId (expected non-zero)");if(F>nv)throw new Error(`Frame payload too large: ${F} bytes (max ${nv})`);const V=9+F;if(b<V)break;if(++u>sv)throw new Error(`Too many frames in framed response (max ${sv})`);A(9);const I=A(F);switch(j){case Xn.JSON:try{d.enqueue(tv.decode(I))}catch{}break;case Xn.CHUNK:{const W=y(D);W&&W.enqueue(I);break}case Xn.END:{const W=y(D);if(s.add(D),W){try{W.close()}catch{}e.delete(D)}break}case Xn.ERROR:{const W=y(D);if(s.add(D),W){const Q=tv.decode(I);W.error(new Error(Q)),e.delete(D)}break}}}}}if(b!==0)throw new Error("Incomplete frame at end of framed response");try{d.close()}catch{}e.forEach(_=>{try{_.close()}catch{}}),e.clear()}catch(_){try{d.error(_)}catch{}e.forEach(C=>{try{C.error(_)}catch{}}),e.clear()}finally{try{m.releaseLock()}catch{}c=null}})(),{getOrCreateStream:g,jsonChunks:p}}var eo=null;async function Ed(t){t.length>0&&await Promise.allSettled(t)}var VA=Object.prototype.hasOwnProperty;function ib(t){for(const e in t)if(VA.call(t,e))return!0;return!1}async function HA(t,e,a){eo||(eo=IA());const s=e[0],o=s.fetch??a,c=s.data instanceof FormData?"formData":"payload",u=s.headers?new Headers(s.headers):new Headers;if(u.set("x-tsr-serverFn","true"),c==="payload"&&u.set("accept",`${Nk}, application/x-ndjson, application/json`),s.method==="GET"){if(c==="formData")throw new Error("FormData is not supported with GET requests");const p=await sb(s);if(p!==void 0){const g=ww({payload:p});t.includes("?")?t+=`&${g}`:t+=`?${g}`}}let d;if(s.method==="POST"){const p=await GA(s);p?.contentType&&u.set("content-type",p.contentType),d=p?.body}return await WA(async()=>o(t,{method:s.method,headers:u,signal:s.signal,body:d}))}async function sb(t){let e=!1;const a={};if(t.data!==void 0&&(e=!0,a.data=t.data),t.context&&ib(t.context)&&(e=!0,a.context=t.context),e)return rb(a)}async function rb(t){return JSON.stringify(await Promise.resolve(RA(t,{plugins:eo})))}async function GA(t){if(t.data instanceof FormData){let a;return t.context&&ib(t.context)&&(a=await rb(t.context)),a!==void 0&&t.data.set(zk,a),{body:t.data}}const e=await sb(t);if(e)return{body:e,contentType:"application/json"}}async function WA(t){let e;try{e=await t()}catch(s){if(s instanceof Response)e=s;else throw console.log(s),s}if(e.headers.get("x-tss-raw")==="true")return e;const a=e.headers.get("content-type");if(a||It(),e.headers.get("x-tss-serialized")){let s;if(a.includes("application/x-tss-framed")){if(qk(a),!e.body)throw new Error("No response body for framed response");const{getOrCreateStream:o,jsonChunks:c}=$A(e.body),u=[DA(o),...eo||[]],d=new Map;s=await FA({jsonStream:c,onMessage:p=>
12Jy(p,{refs:d,plugins:u}),onError(p,g){console.error(p,g)}})}else if(a.includes("application/json")){const o=await e.json(),c=[];s=Jy(o,{plugins:eo}),await Ed(c)}if(s||It(),s instanceof Error)throw s;return s}if(a.includes("application/json")){const s=await e.json(),o=R_(s);if(o)throw o;if(pt(s))throw s;return s}if(!e.ok)throw new Error(await e.text());return e}async function FA({jsonStream:t,onMessage:e,onError:a}){const s=t.getReader(),{value:o,done:c}=await s.read();if(c||!o)throw new Error("Stream ended before first object");const u=JSON.parse(o);let d=!1;const p=(async()=>{try{for(;;){const{value:m,done:w}=await s.read();if(w)break;if(m)try{const b=[];try{e(JSON.parse(m))}finally{}await Ed(b)}catch(b){a?.(`Invalid JSON: ${m}`,b)}}}catch(m){d||a?.("Stream processing error:",m)}})();let g;const y=[];try{g=e(u)}catch(m){throw d=!0,s.cancel().catch(()=>{}),m}return await Ed(y),Promise.resolve(g).catch(()=>{d=!0,s.cancel().catch(()=>{})}),p.finally(()=>{try{s.releaseLock()}catch{}}),g}function KA(t){const e="/_serverFn/"+t;return Object.assign((...o)=>{const c=fw()?.serverFns?.fetch;return HA(e,o,c??fetch)},{url:e,serverFnMeta:{id:t},[Td]:!0})}var YA={key:"$TSS/serverfn",test:t=>typeof t!="function"||!(Td in t)?!1:!!t[Td],toSerializable:({serverFnMeta:t})=>({functionId:t.id}),fromSerializable:({functionId:t})=>KA(t)};function rv(t){return t.replaceAll("\0","/").replaceAll("�","/")}function QA(t,e){t.id=e.i,t.__beforeLoadContext=e.b,t.loaderData=e.l,t.status=e.s,t.ssr=e.ssr,t.updatedAt=e.u,t.error=e.e,e.g!==void 0&&(t.globalNotFound=e.g)}async function JA(t){window.$_TSR||It();const e=t.options.serializationAdapters;if(e?.length){const _=new Map;e.forEach(C=>{_.set(C.key,C.fromSerializable)}),window.$_TSR.t=_,window.$_TSR.buffer.forEach(C=>C())}window.$_TSR.initialized=!0,window.$_TSR.router||It();const a=window.$_TSR.router;a.matches.forEach(_=>{_.i=rv(_.i)}),a.lastMatchId&&(a.lastMatchId=rv(a.lastMatchId));const{manifest:s,dehydratedData:o,lastMatchId:c}=a;t.ssr={manifest:s};const u=document.querySelector('meta[property="csp-nonce"]')?.content;t.options.ssr={nonce:u};const d=t.matchRoutes(t.stores.location.get()),p=Promise.all(d.map(_=>t.loadRouteChunk(t.looseRoutesById[_.routeId])));function g(_){const C=t.looseRoutesById[_.routeId].options.pendingMinMs??t.options.defaultPendingMinMs;if(C){const B=Ri();_._nonReactive.minPendingPromise=B,_._forcePending=!0,setTimeout(()=>{B.resolve(),t.updateMatch(_.id,j=>(j._nonReactive.minPendingPromise=void 0,{...j,_forcePending:void 0}))},C)}}function y(_){const C=t.looseRoutesById[_.routeId];C&&(C.options.ssr=_.ssr)}let m;d.forEach(_=>{const C=a.matches.find(B=>B.i===_.id);if(!C){_._nonReactive.dehydrated=!1,_.ssr=!1,y(_);return}QA(_,C),y(_),_._nonReactive.dehydrated=_.ssr!==!1,(_.ssr==="data-only"||_.ssr===!1)&&m===void 0&&(m=_.index,g(_))}),t.stores.setMatches(d),await t.options.hydrate?.(o);const w=t.stores.matches.get(),b=t.stores.location.get();await Promise.all(w.map(async _=>{try{const C=t.looseRoutesById[_.routeId],B=w[_.index-1]?.context??t.options.context;if(C.options.context){const V={deps:_.loaderDeps,params:_.params,context:B??{},location:b,navigate:I=>t.navigate({...I,_fromLocation:b}),buildLocation:t.buildLocation,cause:_.cause,abortController:_.abortController,preload:!1,matches:d,routeId:C.id};_.__routeContext=C.options.context(V)??void 0}_.context={...B,..._.__routeContext,..._.__beforeLoadContext};const j={ssr:t.options.ssr,matches:w,match:_,params:_.params,loaderData:_.loaderData},D=await C.options.head?.(j),F=await C.options.scripts?.(j);_.meta=D?.meta,_.links=D?.links,_.headScripts=D?.scripts,_.styles=D?.styles,_.scripts=F}catch(C){if(pt(C))_.error={isNotFound:!0},console.error(`NotFound error during hydration for routeId: ${_.routeId}`,C);else throw _.error=C,console.error(`Error during hydration for route ${_.routeId}:`,C),C}}));const S=d[d.length-1].id!==c;if(!d.some(_=>_.ssr===!1)&&!S)return d.forEach(_=>{_._nonReactive.dehydrated=void 0}),t.stores.resolvedLocation.set(t.stores.location.get()),p;const A=Promise.resolve().then(()=>t.load()).catch(_=>{console.error("Error during router hydration:",_)});if(S){const _=d[1];_||It(),g(_),_._displayPending=!0,_._nonReactive.displayPendingPromise=A,A.then(()=>{t.batch(()=>{t.stores.status.get()==="pending"&&(t.stores.status.set("idle"),t.stores.resolvedLocation.set(t.stores.location.get())),t.updateMatch(_.id,C=>({...C,_displayPending:void 0,displayPendingPromise:void 0}))})})}return p}var oc=ie.use,$r=typeof window<"u"?ie.useLayoutEffect:ie.useEffect;function ld(t){const e=ie.useRef({value:t,prev:null}),a=e.current.value;return t!==a&&(e.current={value:t,prev:a}),e.current.prev}function ZA(t,e,a={},s={}){ie.useEffect(()=>{if(!t.current||s.disabled||typeof IntersectionObserver!="function")return;const o=new IntersectionObserver(([c])=>{e(c)},a);return o.observe(t.current),()=>{o.disconnect()}},[e,a,s.disabled,t])}function XA(t){const e=ie.useRef(null);return ie.useImperativeHandle(t,()=>e.current,[]),e}function eC({promise:t}){if(oc)return oc(t);const e=W_(t);if(e[xn].status==="pending")throw e;if(e[xn].status==="error")throw e[xn].error;return e[xn].data}function tC(t){const e=K.jsx(nC,{...t});
12return t.fallback?K.jsx(ie.Suspense,{fallback:t.fallback,children:e}):e}function nC(t){const e=eC(t);return t.children(e)}function sf(t){const e=t.errorComponent??rf;return K.jsx(aC,{getResetKey:t.getResetKey,onCatch:t.onCatch,children:({error:a,reset:s})=>a?ie.createElement(e,{error:a,reset:s}):t.children})}var aC=class extends ie.Component{constructor(...t){super(...t),this.state={error:null}}static getDerivedStateFromProps(t,e){const a=t.getResetKey();return e.error&&e.resetKey!==a?{resetKey:a,error:null}:{resetKey:a}}static getDerivedStateFromError(t){return{error:t}}reset(){this.setState({error:null})}componentDidCatch(t,e){this.props.onCatch&&this.props.onCatch(t,e)}render(){return this.props.children({error:this.state.error,reset:()=>{this.reset()}})}};function rf({error:t}){const[e,a]=ie.useState(!1);return K.jsxs("div",{style:{padding:".5rem",maxWidth:"100%"},children:[K.jsxs("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[K.jsx("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),K.jsx("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:()=>a(s=>!s),children:e?"Hide Error":"Show Error"})]}),K.jsx("div",{style:{height:".25rem"}}),e?K.jsx("div",{children:K.jsx("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:t.message?K.jsx("code",{children:t.message}):null})}):null]})}function iC({children:t,fallback:e=null}){return of()?K.jsx(Ms.Fragment,{children:t}):K.jsx(Ms.Fragment,{children:e})}function of(){return Ms.useSyncExternalStore(sC,()=>!0,()=>!1)}function sC(){return()=>{}}var ob=ie.createContext(null);function _t(t){return ie.useContext(ob)}var xc=ie.createContext(void 0),rC=ie.createContext(void 0),Ge=(t=>(t[t.None=0]="None",t[t.Mutable=1]="Mutable",t[t.Watching=2]="Watching",t[t.RecursedCheck=4]="RecursedCheck",t[t.Recursed=8]="Recursed",t[t.Dirty=16]="Dirty",t[t.Pending=32]="Pending",t))(Ge||{});function oC({update:t,notify:e,unwatched:a}){return{link:s,unlink:o,propagate:c,checkDirty:u,shallowPropagate:d};function s(g,y,m){const w=y.depsTail;if(w!==void 0&&w.dep===g)return;const b=w!==void 0?w.nextDep:y.deps;if(b!==void 0&&b.dep===g){b.version=m,y.depsTail=b;return}const S=g.subsTail;if(S!==void 0&&S.version===m&&S.sub===y)return;const A=y.depsTail=g.subsTail={version:m,dep:g,sub:y,prevDep:w,nextDep:b,prevSub:S,nextSub:void 0};b!==void 0&&(b.prevDep=A),w!==void 0?w.nextDep=A:y.deps=A,S!==void 0?S.nextSub=A:g.subs=A}function o(g,y=g.sub){const m=g.dep,w=g.prevDep,b=g.nextDep,S=g.nextSub,A=g.prevSub;return b!==void 0?b.prevDep=w:y.depsTail=w,w!==void 0?w.nextDep=b:y.deps=b,S!==void 0?S.prevSub=A:m.subsTail=A,A!==void 0?A.nextSub=S:(m.subs=S)===void 0&&a(m),b}function c(g){let y=g.nextSub,m;e:do{const w=g.sub;let b=w.flags;if(b&60?b&12?b&4?!(b&48)&&p(g,w)?(w.flags=b|40,b&=1):b=0:w.flags=b&-9|32:b=0:w.flags=b|32,b&2&&e(w),b&1){const S=w.subs;if(S!==void 0){const A=(g=S).nextSub;A!==void 0&&(m={value:y,prev:m},y=A);continue}}if((g=y)!==void 0){y=g.nextSub;continue}for(;m!==void 0;)if(g=m.value,m=m.prev,g!==void 0){y=g.nextSub;continue e}break}while(!0)}function u(g,y){let m,w=0,b=!1;e:do{const S=g.dep,A=S.flags;if(y.flags&16)b=!0;else if((A&17)===17){if(t(S)){const _=S.subs;_.nextSub!==void 0&&d(_),b=!0}}else if((A&33)===33){(g.nextSub!==void 0||g.prevSub!==void 0)&&(m={value:g,prev:m}),g=S.deps,y=S,++w;continue}if(!b){const _=g.nextDep;if(_!==void 0){g=_;continue}}for(;w--;){const _=y.subs,C=_.nextSub!==void 0;if(C?(g=m.value,m=m.prev):g=_,b){if(t(y)){C&&d(_),y=g.sub;continue}b=!1}else y.flags&=-33;y=g.sub;const B=g.nextDep;if(B!==void 0){g=B;continue e}}return b}while(!0)}function d(g){do{const y=g.sub,m=y.flags;(m&48)===32&&(y.flags=m|16,(m&6)===2&&e(y))}while((g=g.nextSub)!==void 0)}function p(g,y){let m=y.depsTail;for(;m!==void 0;){if(m===g)return!0;m=m.prevDep}return!1}}function lC(t,e,a){const s=typeof t=="object",o=s?t:void 0;return{next:(s?t.next:t)?.bind(o),error:(s?t.error:e)?.bind(o),c
12omplete:(s?t.complete:a)?.bind(o)}}const xd=[];let ec=0;const{link:ov,unlink:cC,propagate:uC,checkDirty:lb,shallowPropagate:lv}=oC({update(t){return t._update()},notify(t){xd[Od++]=t,t.flags&=~Ge.Watching},unwatched(t){t.depsTail!==void 0&&(t.depsTail=void 0,t.flags=Ge.Mutable|Ge.Dirty,lc(t))}});let Ul=0,Od=0,Cn,Bd=0;function cb(t){try{++Bd,t()}finally{--Bd||ub()}}function lc(t){const e=t.depsTail;let a=e!==void 0?e.nextDep:t.deps;for(;a!==void 0;)a=cC(a,t)}function ub(){if(!(Bd>0)){for(;Ul<Od;){const t=xd[Ul];xd[Ul++]=void 0,t.notify()}Ul=0,Od=0}}function cv(t,e){const a=typeof t=="function",s=t,o={_snapshot:a?void 0:t,subs:void 0,subsTail:void 0,deps:void 0,depsTail:void 0,flags:a?Ge.None:Ge.Mutable,get(){return Cn!==void 0&&ov(o,Cn,ec),o._snapshot},subscribe(c){const u=lC(c),d={current:!1},p=hC(()=>{o.get(),d.current?u.next?.(o._snapshot):d.current=!0});return{unsubscribe:()=>{p.stop()}}},_update(c){const u=Cn,d=e?.compare??Object.is;if(a)Cn=o,++ec,o.depsTail=void 0;else if(c===void 0)return!1;a&&(o.flags=Ge.Mutable|Ge.RecursedCheck);try{const p=o._snapshot,g=typeof c=="function"?c(p):c===void 0&&a?s(p):c;return p===void 0||!d(p,g)?(o._snapshot=g,!0):!1}finally{Cn=u,a&&(o.flags&=~Ge.RecursedCheck),lc(o)}}};return a?(o.flags=Ge.Mutable|Ge.Dirty,o.get=function(){const c=o.flags;if(c&Ge.Dirty||c&Ge.Pending&&lb(o.deps,o)){if(o._update()){const u=o.subs;u!==void 0&&lv(u)}}else c&Ge.Pending&&(o.flags=c&~Ge.Pending);return Cn!==void 0&&ov(o,Cn,ec),o._snapshot}):o.set=function(c){if(o._update(c)){const u=o.subs;u!==void 0&&(uC(u),lv(u),ub())}},o}function hC(t){const e=()=>{const s=Cn;Cn=a,++ec,a.depsTail=void 0,a.flags=Ge.Watching|Ge.RecursedCheck;try{return t()}finally{Cn=s,a.flags&=~Ge.RecursedCheck,lc(a)}},a={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:Ge.Watching|Ge.RecursedCheck,notify(){const s=this.flags;s&Ge.Dirty||s&Ge.Pending&&lb(this.deps,this)?e():this.flags=Ge.Watching},stop(){this.flags=Ge.None,this.depsTail=void 0,lc(this)}};return e(),a}var cd={exports:{}},ud={},hd={exports:{}},dd={};var uv;function dC(){if(uv)return dd;uv=1;var t=ho();function e(m,w){return m===w&&(m!==0||1/m===1/w)||m!==m&&w!==w}var a=typeof Object.is=="function"?Object.is:e,s=t.useState,o=t.useEffect,c=t.useLayoutEffect,u=t.useDebugValue;function d(m,w){var b=w(),S=s({inst:{value:b,getSnapshot:w}}),A=S[0].inst,_=S[1];return c(function(){A.value=b,A.getSnapshot=w,p(A)&&_({inst:A})},[m,b,w]),o(function(){return p(A)&&_({inst:A}),m(function(){p(A)&&_({inst:A})})},[m]),u(b),b}function p(m){var w=m.getSnapshot;m=m.value;try{var b=w();return!a(m,b)}catch{return!0}}function g(m,w){return w()}var y=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?g:d;return dd.useSyncExternalStore=t.useSyncExternalStore!==void 0?t.useSyncExternalStore:y,dd}var hv;function fC(){return hv||(hv=1,hd.exports=dC()),hd.exports}var dv;function pC(){if(dv)return ud;dv=1;var t=ho(),e=fC();function a(g,y){return g===y&&(g!==0||1/g===1/y)||g!==g&&y!==y}var s=typeof Object.is=="function"?Object.is:a,o=e.useSyncExternalStore,c=t.useRef,u=t.useEffect,d=t.useMemo,p=t.useDebugValue;return ud.useSyncExternalStoreWithSelector=function(g,y,m,w,b){var S=c(null);if(S.current===null){var A={hasValue:!1,value:null};S.current=A}else A=S.current;S=d(function(){function C(V){if(!B){if(B=!0,j=V,V=w(V),b!==void 0&&A.hasValue){var I=A.value;if(b(I,V))return D=I}return D=V}if(I=D,s(j,V))return I;var W=w(V);return b!==void 0&&b(I,W)?(j=V,I):(j=V,D=W)}var B=!1,j,D,F=m===void 0?null:m;return[function(){return C(y())},F===null?void 0:function(){return C(F())}]},[y,m,w,b]);var _=o(g,S[0],S[1]);return u(function(){A.hasValue=!0,A.value=_},[_]),p(_),_},ud}var fv;function gC(){return fv||(fv=1,cd.exports=pC()),cd.exports}var mC=gC();function yC(t,e){return t===e}function st(t,e,a=yC){const s=ie.useCallback(u=>{if(!t)return()=>{};const{unsubscribe:d}=t.subscribe(u);return d},[t]),o=ie.useCallback(()=>t?.get(),[t]);return mC.useSyncExternalStoreWithSelector(s,o,o,e,a)}var vC={get:()=>{},subscribe:()=>({unsubscribe:()=>{}})};function Ei(t){const e=_t(),a=ie.useContext(t.from?rC:xc),s=t.from??a,o=s?t.from?e.stores.getRouteMatchStore(s):e.stores.matchStores.get(s):void 0,c=ie.useRef(void 0);return st(o??vC,u=>{if((t.shouldThrow??!0)&&!u&&It(),u===void 0)return;const d=t.select?t.select(u):u;if(t.structuralSharing??e.options.defaultStructuralSharing){const p=vi(c.current,d);return c.current=p,p}return d})}function hb(t){return Ei({from:t.from,strict:t.strict,structuralSharing:t.structuralSharing,select:e=>t.select?t.select(e.loaderData):e.loaderData})}function db(t){const{select:e,...a}=t;return Ei({...a,select:s=>e?e(s.loaderDeps):s.loaderDeps})}function fb(t){return Ei({from:t.from,shouldThrow:t.shouldThrow,structuralSharing:t.structuralSharing,strict:t.strict,select:e=>{const a=t.strict===!1?e.params:e._strictParams;return t.select?t.select(a):a}})}function pb(t){return Ei({from:t.from,strict:t.strict,shouldThrow:t.shouldThrow,structuralSharing:t.structuralSharing,select:e=>t.select?t.select(e.search):e.search})}function gb(t){const e=_t();return ie.useCallback(a=>e.navigate({...a,from:a.from??t?.from}),[t?.from,e])}function mb(t){return Ei({...t,select:e=>t.select?t.select(e.context):e.context})}var wC=dw();function bC(t,e){const a=_t(),s=XA(e),{activeProps:o,inactiveProps:c,activeOptions:u,to:d,preload:p,preloadDelay:g,preloadIntentProximity:y,hashScrollIntoView:m,replace:w,startTransition:b,resetScroll:S,viewTransition:A,children:_,target:C,disabled:B,style:j,className:D,onClick:F,onBlur:V,onFocus:I,onMouseEnter:W,onMouseLeave:Q,onTouchStart:se,ignoreBlocker:ne,params:ve,search:xe,hash:Ye,state:qe,mask:U,reloadDocument:Y,unsafeRelative:le,from:Ae,_fromLocation:Ee,...O}=t,H=of(),J=ie.useMemo(()=>t,[a,t.from,t._fromLocation,t.hash,t.to,t.search,t.params,t.state,t.mask,t.unsafeRelative]),X=st(
12a.stores.location,Ue=>Ue,(Ue,yt)=>Ue.href===yt.href),re=ie.useMemo(()=>{const Ue={_fromLocation:X,...J};return a.buildLocation(Ue)},[a,X,J]),pe=re.maskedLocation?re.maskedLocation.publicHref:re.publicHref,ke=re.maskedLocation?re.maskedLocation.external:re.external,Qe=ie.useMemo(()=>AC(pe,ke,a.history,B),[B,ke,pe,a.history]),Le=ie.useMemo(()=>{if(Qe?.external)return nc(Qe.href,a.protocolAllowlist)?void 0:Qe.href;if(!CC(d)&&!(typeof d!="string"||d.indexOf(":")===-1))try{return new URL(d),nc(d,a.protocolAllowlist)?void 0:d}catch{}},[d,Qe,a.protocolAllowlist]),jn=ie.useMemo(()=>{if(Le)return!1;if(u?.exact){if(!u_(X.pathname,re.pathname,a.basepath))return!1}else{const Ue=ac(X.pathname,a.basepath),yt=ac(re.pathname,a.basepath);if(!(Ue.startsWith(yt)&&(Ue.length===yt.length||Ue[yt.length]==="/")))return!1}return(u?.includeSearch??!0)&&!Nt(X.search,re.search,{partial:!u?.exact,ignoreUndefined:!u?.explicitUndefined})?!1:u?.includeHash?H&&X.hash===re.hash:!0},[u?.exact,u?.explicitUndefined,u?.includeHash,u?.includeSearch,X,Le,H,re.hash,re.pathname,re.search,a.basepath]),Mn=jn?Ua(o,{})??SC:fd,la=jn?fd:Ua(c,{})??fd,zs=[D,Mn.className,la.className].filter(Boolean).join(" "),bn=(j||Mn.style||la.style)&&{...j,...Mn.style,...la.style},[Ns,Oi]=ie.useState(!1),yo=ie.useRef(!1),Dn=t.reloadDocument||Le?!1:p??a.options.defaultPreload,Ka=g??a.options.defaultPreloadDelay??0,cn=ie.useCallback(()=>{a.preloadRoute({...J,_builtLocation:re}).catch(Ue=>{console.warn(Ue),console.warn(F_)})},[a,J,re]);ZA(s,ie.useCallback(Ue=>{Ue?.isIntersecting&&cn()},[cn]),RC,{disabled:!!B||Dn!=="viewport"}),ie.useEffect(()=>{yo.current||!B&&Dn==="render"&&(cn(),yo.current=!0)},[B,cn,Dn]);const Us=Ue=>{const yt=Ue.currentTarget.getAttribute("target"),Sn=C!==void 0?C:yt;if(!B&&!EC(Ue)&&!Ue.defaultPrevented&&(!Sn||Sn==="_self")&&Ue.button===0){Ue.preventDefault(),wC.flushSync(()=>{Oi(!0)});const Bi=a.subscribe("onResolved",()=>{Bi(),Oi(!1)});a.navigate({...J,replace:w,resetScroll:S,hashScrollIntoView:m,startTransition:b,viewTransition:A,ignoreBlocker:ne})}};if(Le)return{...O,ref:s,href:Le,..._&&{children:_},...C&&{target:C},...B&&{disabled:B},...j&&{style:j},...D&&{className:D},...F&&{onClick:F},...V&&{onBlur:V},...I&&{onFocus:I},...W&&{onMouseEnter:W},...Q&&{onMouseLeave:Q},...se&&{onTouchStart:se}};const vo=Ue=>{if(B||Dn!=="intent")return;if(!Ka){cn();return}const yt=Ue.currentTarget;if(Ur.has(yt))return;const Sn=setTimeout(()=>{Ur.delete(yt),cn()},Ka);Ur.set(yt,Sn)},Lc=Ue=>{B||Dn!=="intent"||cn()},Tt=Ue=>{if(B||!Dn||!Ka)return;const yt=Ue.currentTarget,Sn=Ur.get(yt);Sn&&(clearTimeout(Sn),Ur.delete(yt))};return{...O,...Mn,...la,href:Qe?.href,ref:s,onClick:ms([F,Us]),onBlur:ms([V,Tt]),onFocus:ms([I,vo]),onMouseEnter:ms([W,vo]),onMouseLeave:ms([Q,Tt]),onTouchStart:ms([se,Lc]),disabled:!!B,target:C,...bn&&{style:bn},...zs&&{className:zs},...B&&kC,...jn&&_C,...H&&Ns&&TC}}var fd={},SC={className:"active"},kC={role:"link","aria-disabled":!0},_C={"data-status":"active","aria-current":"page"},TC={"data-transitioning":"transitioning"},Ur=new WeakMap,RC={rootMargin:"100px"},ms=t=>e=>{for(const a of t)if(a){if(e.defaultPrevented)return;a(e)}};function AC(t,e,a,s){if(!s)return e?{href:t,external:!0}:{href:a.createHref(t)||"/",external:!1}}function CC(t){if(typeof t!="string")return!1;const e=t.charCodeAt(0);return e===47?t.charCodeAt(1)!==47:e===46}var lf=ie.forwardRef((t,e)=>{const{_asChild:a,...s}=t,{type:o,...c}=bC(s,e),u=typeof s.children=="function"?s.children({isActive:c["data-status"]==="active"}):s.children;if(!a){const{disabled:d,...p}=c;return ie.createElement("a",p,u)}return ie.createElement(a,c,u)});function EC(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}var xC=class extends Rw{constructor(e){super(e),this.useMatch=a=>Ei({select:a?.select,from:this.id,structuralSharing:a?.structuralSharing}),this.useRouteContext=a=>mb({...a,from:this.id}),this.useSearch=a=>pb({select:a?.select,structuralSharing:a?.structuralSharing,from:this.id}),this.useParams=a=>fb({select:a?.select,structuralSharing:a?.structuralSharing,from:this.id}),this.useLoaderDeps=a=>db({...a,from:this.id}),this.useLoaderData=a=>hb({...a,from:this.id}),this.useNavigate=()=>gb({from:this.fullPath}),this.Link=Ms.forwardRef((a,s)=>K.jsx(lf,{ref:s,from:this.fullPath,...a}))}};function OC(t){return new xC(t)}function BC(){return t=>MC(t)}var jC=class extends J_{constructor(t){super(t),this.useMatch=e=>Ei({select:e?.select,from:this.id,structuralSharing:e?.structuralSharing}),this.useRouteContext=e=>mb({...e,from:this.id}),this.useSearch=e=>pb({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useParams=e=>fb({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useLoaderDeps=e=>db({...e,from:this.id}),this.useLoaderData=e=>hb({...e,from:this.id}),this.useNavigate=()=>gb({from:this.fullPath}),this.Link=Ms.forwardRef((e,a)=>K.jsx(lf,{ref:a,from:this.fullPath,...e}))}};function MC(t){return new jC(t)}function gt(t){return new DC(t,{silent:!0}).createRoute}var DC=class{constructor(t,e){this.path=t,this.createRoute=a=>{const s=OC(a);return s.isRoot=!1,s},this.silent=e?.silent}};function ct(t,e){let a,s,o,c;const u=()=>(a||(a=t().then(p=>{a=void 0,s=p[e??"default"]}).catch(p=>{if(o=p,Gk(o)&&o instanceof Error&&typeof window<"u"&&typeof sessionStorage<"u"){const g=`tanstack_router_reload:${o.message}`;sessionStorage.getItem(g)||(sessionStorage.setItem(g,"1"),c=!0)}})),a),d=function(g){if(c)throw window.location.reload(),new Promise(()=>{});if(o)throw o;if(!s)if(oc)oc(u());else throw u();return ie.createElement(s,g)};return d.preload=u,d}function PC(t){const e=_t(),a=`not-found-${st(e.stores.location,s=>s.pathname)}-${st(e.stores.status,s=>s)}`;return K.jsx(sf,{getResetKey:()=>a,onCatch:(s,o)=>
12{if(pt(s))t.onCatch?.(s,o);else throw s},errorComponent:({error:s})=>{if(pt(s))return t.fallback?.(s);throw s},children:t.children})}function LC(){return K.jsx("p",{children:"Not Found"})}function ks(t){return K.jsx(K.Fragment,{children:t.children})}function yb(t,e,a){return e.options.notFoundComponent?K.jsx(e.options.notFoundComponent,{...a}):t.options.defaultNotFoundComponent?K.jsx(t.options.defaultNotFoundComponent,{...a}):K.jsx(LC,{})}function zC(t){return null}function NC(){return zC(_t()),null}var vb=ie.memo(function({matchId:e}){const a=_t(),s=a.stores.matchStores.get(e);s||It();const o=st(a.stores.loadedAt,u=>u),c=st(s,u=>u);return K.jsx(UC,{router:a,matchId:e,resetKey:o,matchState:ie.useMemo(()=>{const u=c.routeId,d=a.routesById[u].parentRoute?.id;return{routeId:u,ssr:c.ssr,_displayPending:c._displayPending,parentRouteId:d}},[c._displayPending,c.routeId,c.ssr,a.routesById])})});function UC({router:t,matchId:e,resetKey:a,matchState:s}){const o=t.routesById[s.routeId],c=o.options.pendingComponent??t.options.defaultPendingComponent,u=c?K.jsx(c,{}):null,d=o.options.errorComponent??t.options.defaultErrorComponent,p=o.options.onCatch??t.options.defaultOnCatch,g=o.isRoot?o.options.notFoundComponent??t.options.notFoundRoute?.options.component:o.options.notFoundComponent,y=s.ssr===!1||s.ssr==="data-only",m=(!o.isRoot||o.options.wrapInSuspense||y)&&(o.options.wrapInSuspense??c??(o.options.errorComponent?.preload||y))?ie.Suspense:ks,w=d?sf:ks,b=g?PC:ks;return K.jsxs(o.isRoot?o.options.shellComponent??ks:ks,{children:[K.jsx(xc.Provider,{value:e,children:K.jsx(m,{fallback:u,children:K.jsx(w,{getResetKey:()=>a,errorComponent:d||rf,onCatch:(S,A)=>{if(pt(S))throw S.routeId??=s.routeId,S;p?.(S,A)},children:K.jsx(b,{fallback:S=>{if(S.routeId??=s.routeId,!g||S.routeId&&S.routeId!==s.routeId||!S.routeId&&
12!o.isRoot)throw S;return ie.createElement(g,S)},children:y||s._displayPending?K.jsx(iC,{fallback:u,children:K.jsx(pv,{matchId:e})}):K.jsx(pv,{matchId:e})})})})}),s.parentRouteId===_i?K.jsxs(K.Fragment,{children:[K.jsx(IC,{resetKey:a}),t.options.scrollRestoration&&pw?K.jsx(NC,{}):null]}):null]})}function IC({resetKey:t}){const e=_t(),a=ie.useRef(void 0);return $r(()=>{const s=e.latestLocation.href;(a.current===void 0||a.current!==s)&&(e.emit({type:"onRendered",...xs(e.stores.location.get(),e.stores.resolvedLocation.get())}),a.current=s)},[e.latestLocation.state.__TSR_key,t,e]),null}var pv=ie.memo(function({matchId:e}){const a=_t(),s=(y,m)=>a.getMatch(y.id)?._nonReactive[m]??y._nonReactive[m],o=a.stores.matchStores.get(e);o||It();const c=st(o,y=>y),u=c.routeId,d=a.routesById[u],p=ie.useMemo(()=>{const y=(a.routesById[u].options.remountDeps??a.options.defaultRemountDeps)?.({routeId:u,loaderDeps:c.loaderDeps,params:c._strictParams,search:c._strictSearch});return y?JSON.stringify(y):void 0},[u,c.loaderDeps,c._strictParams,c._strictSearch,a.options.defaultRemountDeps,a.routesById]),g=ie.useMemo(()=>{const y=d.options.component??a.options.defaultComponent;return y?K.jsx(y,{},p):K.jsx(wb,{})},[p,d.options.component,a.options.defaultComponent]);if(c._displayPending)throw s(c,"displayPendingPromise");if(c._forcePending)throw s(c,"minPendingPromise");if(c.status==="pending"){const y=d.options.pendingMinMs??a.options.defaultPendingMinMs;if(y){const m=a.getMatch(c.id);if(m&&!m._nonReactive.minPendingPromise){const w=Ri();m._nonReactive.minPendingPromise=w,setTimeout(()=>{w.resolve(),m._nonReactive.minPendingPromise=void 0},y)}}throw s(c,"loadPromise")}if(c.status==="notFound")return pt(c.error)||It(),yb(a,d,c.error);if(c.status==="redirected")throw Ut(c.error)||It(),s(c,"loadPromise");if(c.status==="error")throw c.error;return g}),wb=ie.memo(function(){const e=_t(),a=ie.useContext(xc);let s,o=!1,c;{const g=a?e.stores.matchStores.get(a):void 0;[s,o]=st(g,y=>[y?.routeId,y?.globalNotFound??!1]),c=st(e.stores.matchesId,y=>y[y.findIndex(m=>m===a)+1])}const u=s?e.routesById[s]:void 0,d=e.options.defaultPendingComponent?K.jsx(e.options.defaultPendingComponent,{}):null;if(o)return u||It(),yb(e,u,void 0);if(!c)return null;const p=K.jsx(vb,{matchId:c});return s===_i?K.jsx(ie.Suspense,{fallback:d,children:p}):p});function qC(){const t=_t(),e=ie.useRef({router:t,mounted:!1}),[a,s]=ie.useState(!1),o=st(t.stores.isLoading,m=>m),c=st(t.stores.hasPending,m=>m),u=ld(o),d=o||a||c,p=ld(d),g=o||c,y=ld(g);return t.startTransition=m=>{s(!0),ie.startTransition(()=>{m(),s(!1)})},ie.useEffect(()=>{const m=t.history.subscribe(t.load),w=t.buildLocation({to:t.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return $a(t.latestLocation.publicHref)!==$a(w.publicHref)&&t.commitLocation({...w,replace:!0}),()=>{m()}},[t,t.history]),$r(()=>{if(typeof window<"u"&&t.ssr||e.current.router===t&&e.current.mounted)return;e.current={router:t,mounted:!0},(async()=>{try{await t.load()}catch(w){console.error(w)}})()},[t]),$r(()=>{u&&!o&&t.emit({type:"onLoad",...xs(t.stores.location.get(),t.stores.resolvedLocation.get())})},[u,t,o]),$r(()=>{y&&!g&&t.emit({type:"onBeforeRouteMount",...xs(t.stores.location.get(),t.stores.resolvedLocation.get())})},[g,y,t]),$r(()=>{if(p&&!d){const m=xs(t.stores.location.get(),t.stores.resolvedLocation.get());t.emit({type:"onResolved",...m}),cb(()=>{t.stores.status.set("idle"),t.stores.resolvedLocation.set(t.stores.location.get())}),m.hrefChanged&&Z_(t)}},[d,p,t]),null}function $C(){const t=_t(),e=t.routesById[_i].options.pendingComponent??t.options.defaultPendingComponent,a=e?K.jsx(e,{}):null,s=K.jsxs(typeof document<"u"&&t.ssr?ks:ie.Suspense,{fallback:a,children:[K.jsx(qC,{}),K.jsx(VC,{})]});return t.options.InnerWrap?K.jsx(t.options.InnerWrap,{children:s}):s}function VC(){const t=_t(),e=st(t.stores.firstId,o=>o),a=st(t.stores.loadedAt,o=>o),s=e?K.jsx(vb,{matchId:e}):null;return K.jsx(xc.Provider,{value:e,children:t.options.disableGlobalCatchBoundary?s:K.jsx(sf,{getResetKey:()=>a,errorComponent:rf,onCatch:void 0,children:s})})}var HC=t=>({createMutableStore:cv,createReadonlyStore:cv,batch:cb}),GC=t=>new WC(t),WC=class extends U_{constructor(t){super(t,HC)}};function FC({router:t,children:e,...a}){Object.keys(a).length>0&&t.update({...t.options,...a,context:{...t.options.context,...a.context}});const s=K.jsx(ob.Provider,{value:t,children:e});return t.options.Wrap?K.jsx(t.options.Wrap,{children:s}):s}function KC({router:t,...e}){return K.jsx(FC,{router:t,...e,children:K.jsx($C,{})})}function bb(t){const{attrs:e,children:a,nonce:s}=t;switch(t.tag){case"title":return K.jsx("title",{...e,suppressHydrationWarning:!0,children:a});case"meta":return K.jsx("meta",{...e,suppressHydrationWarning:!0});case"link":return K.jsx("link",{...e,precedence:e?.precedence??(e?.rel==="stylesheet"?"default":void 0),nonce:s,suppressHydrationWarning:!0});case"style":return t.inlineCss,K.jsx("style",{...e,dangerouslySetInnerHTML:{__html:a},nonce:s});case"script":return K.jsx(YC,{attrs:e,children:a});default:return null}}function YC({attrs:t,children:e}){_t();const a=of(),s=typeof t?.type=="string"&&t.type!==""&&t.type!=="text/javascript"&&t.type!=="module";if(ie.useEffect(()=>{if(!s){if(t?.src){const o=(()=>{try{const u=document.baseURI||window.location.href;return new URL(t.src,u).href}catch{return t.src}})();if(Array.from(document.querySelectorAll("script[src]")).find(u=>u.src===o))return;const c=document.createElement("script");for(const[u,d]of Object.entries(t))u!=="suppressHydrationWarning"&&d!==void 0&&d!==!1&&c.setAttribute(u,typeof d=="boolean"?"":String(d));return document.head.appendChild(c),()=>{c.parentNode&&c.parentNode.removeChild(c)}}if(typeof e=="string"){const o=typeof t?.type=="string"?t.type:"text/javascript",c=typeof t?.nonce=="string"?t.nonce:void 0;if(Array.from(document.querySelectorAll("script:not([src])")).find(d=>{if(!(d instanceof HTMLScriptElement))return!1;const p=d.getAttribute("type")??"text/javascript",g=d.getAttribute("nonce")??void 0;return d.textContent===e&&p===o&&g===c}))return;const u=document.createElement("script");
12if(u.textContent=e,t)for(const[d,p]of Object.entries(t))d!=="suppressHydrationWarning"&&p!==void 0&&p!==!1&&u.setAttribute(d,typeof p=="boolean"?"":String(p));return document.head.appendChild(u),()=>{u.parentNode&&u.parentNode.removeChild(u)}}}},[t,e,s]),s&&typeof e=="string")return K.jsx("script",{...t,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:e}});if(!a){if(t?.src)return K.jsx("script",{...t,suppressHydrationWarning:!0});if(typeof e=="string")return K.jsx("script",{...t,dangerouslySetInnerHTML:{__html:e},suppressHydrationWarning:!0})}return null}var QC=t=>{const e=_t(),a=e.options.ssr?.nonce,s=st(e.stores.matches,g=>g.map(y=>y.meta).filter(Boolean),Nt),o=ie.useMemo(()=>{const g=[],y={};let m;for(let w=s.length-1;w>=0;w--){const b=s[w];for(let S=b.length-1;S>=0;S--){const A=b[S];if(A)if(A.title)m||(m={tag:"title",children:A.title});else if("script:ld+json"in A)try{const _=JSON.stringify(A["script:ld+json"]);g.push({tag:"script",attrs:{type:"application/ld+json"},children:Qk(_)})}catch{}else{const _=A.name??A.property;if(_){if(y[_])continue;y[_]=!0}g.push({tag:"meta",attrs:{...A,nonce:a}})}}}return m&&g.push(m),a&&g.push({tag:"meta",attrs:{property:"csp-nonce",content:a}}),g.reverse(),g},[s,a]),c=st(e.stores.matches,g=>{const y=g.map(b=>b.links).filter(Boolean).flat(1).map(b=>({tag:"link",attrs:{...b,nonce:a}})),m=e.ssr?.manifest,w=g.map(b=>m?.routes[b.routeId]?.assets??[]).filter(Boolean).flat(1).flatMap(b=>b.tag==="link"?Q_(m,b)?[]:[{tag:"link",attrs:{...b.attrs,crossOrigin:Fy(t,"stylesheet")??b.attrs?.crossOrigin,suppressHydrationWarning:!0,nonce:a}}]:b.tag==="style"?[{tag:"style",attrs:{...b.attrs,nonce:a},children:b.children,...b.inlineCss?{inlineCss:!0}:{}}]:[]);return[...y,...w]},Nt),u=st(e.stores.matches,g=>{const y=[];return g.map(m=>e.looseRoutesById[m.routeId]).forEach(m=>e.ssr?.manifest?.routes[m.id]?.preloads?.filter(Boolean).forEach(w=>{const b=K_(w);y.push({tag:"link",attrs:{rel:"modulepreload",href:b.href,crossOrigin:Fy(t,"modulepreload")??b.crossOrigin,nonce:a}})})),y},Nt),d=st(e.stores.matches,g=>g.map(y=>y.styles).flat(1).filter(Boolean).map(({children:y,...m})=>({tag:"style",attrs:{...m,nonce:a},children:y})),Nt),p=st(e.stores.matches,g=>g.map(y=>y.headScripts).flat(1).filter(Boolean).map(({children:y,...m})=>({tag:"script",attrs:{...m,nonce:a},children:y})),Nt);return JC([...o,...u,...c,...d,...p],g=>JSON.stringify(g))};function JC(t,e){const a=new Set;return t.filter(s=>{const o=e(s);return a.has(o)?!1:(a.add(o),!0)})}function ZC(t){const e=QC(t.assetCrossOrigin),a=_t().options.ssr?.nonce;return K.jsx(K.Fragment,{children:e.map(s=>ie.createElement(bb,{...s,key:`tsr-meta-${JSON.stringify(s)}`,nonce:a}))})}var XC=()=>{const t=_t(),e=t.options.ssr?.nonce,a=c=>{const u=[],d=t.ssr?.manifest;return d?(c.map(p=>t.looseRoutesById[p.routeId]).forEach(p=>d.routes[p.id]?.assets?.filter(g=>g.tag==="script").forEach(g=>{u.push({tag:"script",attrs:{...g.attrs,nonce:e},children:g.children})})),u):[]},s=c=>c.map(u=>u.scripts).flat(1).filter(Boolean).map(({children:u,...d})=>({tag:"script",attrs:{...d,suppressHydrationWarning:!0,nonce:e},children:u})),o=st(t.stores.matches,a,Nt);return eE(t,st(t.stores.matches,s,Nt),o)};function eE(t,e,a){let s;t.serverSsr&&(s=t.serverSsr.takeBufferedScripts());const o=[...e,...a];return s&&o.unshift(s),K.jsx(K.Fragment,{children:o.map((c,u)=>ie.createElement(bb,{...c,key:`tsr-scripts-${c.tag}-${u}`}))})}var Si=(t,e)=>{const a={type:"request",...e||t};return{options:a,middleware:s=>Si({},Object.assign(a,{middleware:s})),inputValidator:s=>Si({},Object.assign(a,{inputValidator:s})),client:s=>Si({},Object.assign(a,{client:s})),server:s=>Si({},Object.assign(a,{server:s}))}};function Sb(t,e){for(let a=0,s=e.length;a<s;a++){const o=e[a];t.has(o)||(t.add(o),o.extends&&Sb(t,o.extends))}}var tE=t=>({getOptions:async()=>{const e=await t();if(e.serializationAdapters){const a=new Set;Sb(a,e.serializationAdapters),e.serializationAdapters=Array.from(a)}return e},createMiddleware:Si});function Oc(t,e){var a={};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&e.indexOf(s)<0&&(a[s]=t[s]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,s=Object.getOwnPropertySymbols(t);o<s.length;o++)e.indexOf(s[o])<0&&Object.prototype.propertyIsEnumerable.call(t,s[o])&&(a[s[o]]=t[s[o]]);return a}function nE(t,e,a,s){function o(c){return c instanceof a?c:new a(function(u){u(c)})}return new(a||(a=Promise))(function(c,u){function d(y){try{g(s.next(y))}catch(m){u(m)}}function p(y){try{g(s.throw(y))}catch(m){u(m)}}function g(y){y.done?c(y.value):o(y.value).then(d,p)}g((s=s.apply(t,e||[])).next())})}const aE=t=>t?(...e)=>t(...e):(...e)=>fetch(...e);
12class cf extends Error{constructor(e,a="FunctionsError",s){super(e),this.name=a,this.context=s}toJSON(){return{name:this.name,message:this.message,context:this.context}}}class iE extends cf{constructor(e){super("Failed to send a request to the Edge Function","FunctionsFetchError",e)}}class gv extends cf{constructor(e){super("Relay Error invoking the Edge Function","FunctionsRelayError",e)}}class mv extends cf{constructor(e){super("Edge Function returned a non-2xx status code","FunctionsHttpError",e)}}var jd;(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"})(jd||(jd={}));class sE{constructor(e,{headers:a={},customFetch:s,region:o=jd.Any}={}){this.url=e,this.headers=a,this.region=o,this.fetch=aE(s)}setAuth(e){this.headers.Authorization=`Bearer ${e}`}invoke(e){return nE(this,arguments,void 0,function*(a,s={}){var o;let c,u;try{const{headers:d,method:p,body:g,signal:y,timeout:m}=s;let w={},{region:b}=s;b||(b=this.region);const S=new URL(`${this.url}/${a}`);b&&b!=="any"&&(w["x-region"]=b,S.searchParams.set("forceFunctionRegion",b));let A;const _=!!d&&Object.keys(d).some(V=>V.toLowerCase()==="content-type");g&&!_?typeof Blob<"u"&&g instanceof Blob||g instanceof ArrayBuffer?(w["Content-Type"]="application/octet-stream",A=g):typeof g=="string"?(w["Content-Type"]="text/plain",A=g):typeof FormData<"u"&&g instanceof FormData?A=g:(w["Content-Type"]="application/json",A=JSON.stringify(g)):g&&typeof g!="string"&&!(typeof Blob<"u"&&g instanceof Blob)&&!(g instanceof ArrayBuffer)&&!(typeof FormData<"u"&&g instanceof FormData)?A=JSON.stringify(g):A=g;let C=y;m&&(u=new AbortController,c=setTimeout(()=>u.abort(),m),y?(C=u.signal,y.addEventListener("abort",()=>u.abort())):C=u.signal);const B=yield this.fetch(S.toString(),{method:p||"POST",headers:Object.assign(Object.assign(Object.assign({},w),this.headers),d),body:A,signal:C}).catch(V=>{throw new iE(V)}),j=B.headers.get("x-relay-error");if(j&&j==="true")throw new gv(B);if(!B.ok)throw new mv(B);let D=((o=B.headers.get("Content-Type"))!==null&&o!==void 0?o:"text/plain").split(";")[0].trim(),F;return D==="application/json"?F=yield B.json():D==="application/octet-stream"||D==="application/pdf"?F=yield B.blob():D==="text/event-stream"?F=B:D==="multipart/form-data"?F=yield B.formData():F=yield B.text(),{data:F,error:null,response:B}}catch(d){return{data:null,error:d,response:d instanceof mv||d instanceof gv?d.context:void 0}}finally{c&&clearTimeout(c)}})}}const kb=3,yv=t=>Math.min(1e3*2**t,3e4),rE=[520,503],_b=["GET","HEAD","OPTIONS"];var vv=class extends Error{constructor(t){super(t.message),this.name="PostgrestError",this.details=t.details,this.hint=t.hint,this.co
12de=t.code}toJSON(){return{name:this.name,message:this.message,details:this.details,hint:this.hint,code:this.code}}};function wv(t,e){return new Promise(a=>{if(e?.aborted){a();return}const s=setTimeout(()=>{e?.removeEventListener("abort",o),a()},t);function o(){clearTimeout(s),a()}e?.addEventListener("abort",o)})}function oE(t,e,a,s){return!(!s||a>=kb||!_b.includes(t)||!rE.includes(e))}var lE=class{constructor(t){var e,a,s,o,c;this.shouldThrowOnError=!1,this.retryEnabled=!0,this.method=t.method,this.url=t.url,this.headers=new Headers(t.headers),this.schema=t.schema,this.body=t.body,this.shouldThrowOnError=(e=t.shouldThrowOnError)!==null&&e!==void 0?e:!1,this.signal=t.signal,this.isMaybeSingle=(a=t.isMaybeSingle)!==null&&a!==void 0?a:!1,this.shouldStripNulls=(s=t.shouldStripNulls)!==null&&s!==void 0?s:!1,this.urlLengthLimit=(o=t.urlLengthLimit)!==null&&o!==void 0?o:8e3,this.retryEnabled=(c=t.retry)!==null&&c!==void 0?c:!0,t.fetch?this.fetch=t.fetch:this.fetch=fetch}throwOnError(){return this.shouldThrowOnError=!0,this}stripNulls(){if(this.headers.get("Accept")==="text/csv")throw new Error("stripNulls() cannot be used with csv()");return this.shouldStripNulls=!0,this}setHeader(t,e){return this.headers=new Headers(this.headers),this.headers.set(t,e),this}retry(t){return this.retryEnabled=t,this}then(t,e){var a=this;if(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"),this.shouldStripNulls){const u=this.headers.get("Accept");u==="application/vnd.pgrst.object+json"?this.headers.set("Accept","application/vnd.pgrst.object+json;nulls=stripped"):(!u||u==="application/json")&&this.headers.set("Accept","application/vnd.pgrst.array+json;nulls=stripped")}const s=this.fetch;let c=(async()=>{let u=0;for(;;){const g={};a.headers.forEach((m,w)=>{g[w]=m}),u>0&&(g["X-Retry-Count"]=String(u));let y;try{y=await s(a.url.toString(),{method:a.method,headers:g,body:JSON.stringify(a.body,(m,w)=>typeof w=="bigint"?w.toString():w),signal:a.signal})}catch(m){if(m?.name==="AbortError"||m?.code==="ABORT_ERR"||!_b.includes(a.method))throw m;if(a.retryEnabled&&u<kb){const w=yv(u);u++,await wv(w,a.signal);continue}throw m}if(oE(a.method,y.status,u,a.retryEnabled)){var d,p;const m=(d=(p=y.headers)===null||p===void 0?void 0:p.get("Retry-After"))!==null&&d!==void 0?d:null,w=m!==null?Math.max(0,parseInt(m,10)||0)*1e3:yv(u);await y.text(),u++,await wv(w,a.signal);continue}return await a.processResponse(y)}})();return this.shouldThrowOnError||(c=c.catch(u=>{var d;let p="",g="",y="";const m=u?.cause;if(m){var w,b,S,A;const B=(w=m?.message)!==null&&w!==void 0?w:"",j=(b=m?.code)!==null&&b!==void 0?b:"";p=`${(S=u?.name)!==null&&S!==void 0?S:"FetchError"}: ${u?.message}`,p+=`
13
14Caused by: ${(A=m?.name)!==null&&A!==void 0?A:"Error"}: ${B}`,j&&(p+=` (${j})`),m?.stack&&(p+=`
15${m.stack}`)}else{var _;p=(_=u?.stack)!==null&&_!==void 0?_:""}const C=this.url.toString().length;return u?.name==="AbortError"||u?.code==="ABORT_ERR"?(y="",g="Request was aborted (timeout or manual cancellation)",C>this.urlLengthLimit&&(g+=`. Note: Your request URL is ${C} characters, which may exceed server limits. If selecting many fields, consider using views. If filtering with large arrays (e.g., .in('id', [many IDs])), consider using an RPC function to pass values server-side.`)):(m?.name==="HeadersOverflowError"||m?.code==="UND_ERR_HEADERS_OVERFLOW")&&(y="",g="HTTP headers exceeded server limits (typically 16KB)",C>this.urlLengthLimit&&(g+=`. Your request URL is ${C} characters. If selecting many fields, consider using views. If filtering with large arrays (e.g., .in('id', [200+ IDs])), consider using an RPC function instead.`)),{success:!1,error:{message:`${(d=u?.name)!==null&&d!==void 0?d:"FetchError"}: ${u?.message}`,details:p,hint:g,code:y},data:null,count:null,status:0,statusText:""}})),c.then(t,e)}async processResponse(t){var e=this;let a=null,s=null,o=null,c=t.status,u=t.statusText;if(t.ok){var d,p;if(e.method!=="HEAD"){var g;const w=await t.text();if(w!=="")if(e.headers.get("Accept")==="text/csv")s=w;else if(e.headers.get("Accept")&&(!((g=e.headers.get("Accept"))===null||g===void 0)&&g.includes("application/vnd.pgrst.plan+text")))s=w;else try{s=JSON.parse(w)}catch{if(a={message:w},s=null,e.shouldThrowOnError)throw new vv({message:w,details:"",hint:"",code:""})}}const y=(d=e.headers.get("Prefer"))===null||d===void 0?void 0:d.match(/count=(exact|planned|estimated)/),m=(p=t.headers.get("content-range"))===null||p===void 0?void 0:p.split("/");y&&m&&m.length>1&&(o=parseInt(m[1])),e.isMaybeSingle&&Array.isArray(s)&&(s.length>1?(a={code:"PGRST116",details:`Results contain ${s.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:"JSON object requested, multiple (or no) rows returned"},s=null,o=null,c=406,u="Not Acceptable"):s.length===1?s=s[0]:s=null)}else{const y=await t.text();try{a=JSON.parse(y),Array.isArray(a)&&t.status===404&&(s=[],a=null,c=200,u="OK")}catch{t.status===404&&y===""?(c=204,u="No Content"):a={message:y}}if(a&&e.shouldThrowOnError)throw new vv(a)}return{success:a===null,error:a,data:s,count:o,status:c,statusText:u}}returns(){return this}overrideTypes(){return this}},cE=class extends lE{throwOnError(){return super.throwOnError()}select(t){let e=!1;const a=(t??"*").split("").map(s=>/\s/.test(s)&&!e?"":(s==='"'&&(e=!e),s)).join("");return this.url.searchParams.set("select",a),this.headers.append("Prefer","return=representation"),this}order(t,{ascending:e=!0,nullsFirst:a,foreignTable:s,referencedTable:o=s}={}){const c=o?`${o}.order`:"order",u=this.url.searchParams.get(c);return this.url.searchParams.set(c,`${u?`${u},`:""}${t}.${e?"asc":"desc"}${a===void 0?"":a?".nullsfirst":".nullslast"}`),this}limit(t,{foreignTable:e,referencedTable:a=e}={}){const s=typeof a>"u"?"limit":`${a}.limit`;return this.url.searchParams.set(s,`${t}`),this}range(t,e,{foreignTable:a,referencedTable:s=a}={}){const o=typeof s>"u"?"offset":`${s}.offset`,c=typeof s>"u"?"limit":`${s}.limit`;return this.url.searchParams.set(o,`${t}`),this.url.searchParams.set(c,`${e-t+1}`),this}abortSignal(t){return this.signal=t,this}single(){return this.headers.set("Accept","application/vnd.pgrst.object+json"),this}maybeSingle(){return this.isMaybeSingle=!0,this}csv(){return this.headers.set("Accept","text/csv"),this}geojson(){return this.headers.set("Accept","application/geo+json"),this}
15explain({analyze:t=!1,verbose:e=!1,settings:a=!1,buffers:s=!1,wal:o=!1,format:c="text"}={}){var u;const d=[t?"analyze":null,e?"verbose":null,a?"settings":null,s?"buffers":null,o?"wal":null].filter(Boolean).join("|"),p=(u=this.headers.get("Accept"))!==null&&u!==void 0?u:"application/json";return this.headers.set("Accept",`application/vnd.pgrst.plan+${c}; for="${p}"; options=${d};`),c==="json"?this:this}rollback(){return this.headers.append("Prefer","tx=rollback"),this}returns(){return this}maxAffected(t){return this.headers.append("Prefer","handling=strict"),this.headers.append("Prefer",`max-affected=${t}`),this}};const bv=new RegExp("[,()]");var _s=class extends cE{throwOnError(){return super.throwOnError()}eq(t,e){return this.url.searchParams.append(t,`eq.${e}`),this}neq(t,e){return this.url.searchParams.append(t,`neq.${e}`),this}gt(t,e){return this.url.searchParams.append(t,`gt.${e}`),this}gte(t,e){return this.url.searchParams.append(t,`gte.${e}`),this}lt(t,e){return this.url.searchParams.append(t,`lt.${e}`),this}lte(t,e){return this.url.searchParams.append(t,`lte.${e}`),this}like(t,e){return this.url.searchParams.append(t,`like.${e}`),this}likeAllOf(t,e){return this.url.searchParams.append(t,`like(all).{${e.join(",")}}`),this}likeAnyOf(t,e){return this.url.searchParams.append(t,`like(any).{${e.join(",")}}`),this}ilike(t,e){return this.url.searchParams.append(t,`ilike.${e}`),this}ilikeAllOf(t,e){return this.url.searchParams.append(t,`ilike(all).{${e.join(",")}}`),this}ilikeAnyOf(t,e){return this.url.searchParams.append(t,`ilike(any).{${e.join(",")}}`),this}regexMatch(t,e){return this.url.searchParams.append(t,`match.${e}`),this}regexIMatch(t,e){return this.url.searchParams.append(t,`imatch.${e}`),this}is(t,e){return this.url.searchParams.append(t,`is.${e}`),this}isDistinct(t,e){return this.url.searchParams.append(t,`isdistinct.${e}`),this}in(t,e){const a=Array.from(new Set(e)).map(s=>typeof s=="string"&&bv.test(s)?`"${s}"`:`${s}`).join(",");return this.url.searchParams.append(t,`in.(${a})`),this}notIn(t,e){const a=Array.from(new Set(e)).map(s=>typeof s=="string"&&bv.test(s)?`"${s}"`:`${s}`).join(",");return this.url.searchParams.append(t,`not.in.(${a})`),this}contains(t,e){return typeof e=="string"?this.url.searchParams.append(t,`cs.${e}`):Array.isArray(e)?this.url.searchParams.append(t,`cs.{${e.join(",")}}`):this.url.searchParams.append(t,`cs.${JSON.stringify(e)}`),this}containedBy(t,e){return typeof e=="string"?this.url.searchParams.append(t,`cd.${e}`):Array.isArray(e)?this.url.searchParams.append(t,`cd.{${e.join(",")}}`):this.url.searchParams.append(t,`cd.${JSON.stringify(e)}`),this}rangeGt(t,e){return this.url.searchParams.append(t,`sr.${e}`),this}rangeGte(t,e){return this.url.searchParams.append(t,`nxl.${e}`),this}rangeLt(t,e){return this.url.searchParams.append(t,`sl.${e}`),this}rangeLte(t,e){return this.url.searchParams.append(t,`nxr.${e}`),this}rangeAdjacent(t,e){return this.url.searchParams.append(t,`adj.${e}`),this}overlaps(t,e){return typeof e=="string"?this.url.searchParams.append(t,`ov.${e}`):this.url.searchParams.append(t,`ov.{${e.join(",")}}`),this}textSearch(t,e,{config:a,type:s}={}){let o="";s==="plain"?o="pl":s==="phrase"?o="ph":s==="websearch"&&(o="w");const c=a===void 0?"":`(${a})`;return this.url.searchParams.append(t,`${o}fts${c}.${e}`),this}match(t){return Object.entries(t).filter(([e,a])=>a!==void 0).forEach(([e,a])=>{this.url.searchParams.append(e,`eq.${a}`)}),this}not(t,e,a){return this.url.searchParams.append(t,`not.${e}.${a}`),this}or(t,{foreignTable:e,referencedTable:a=e}={}){const s=a?`${a}.or`:"or";return this.url.searchParams.append(s,`(${t})`),this}filter(t,e,a){return this.url.searchParams.append(t,`${e}.${a}`),this}},uE=class{constructor(t,{headers:e={},schema:a,fetch:s,urlLengthLimit:o=8e3,retry:c}){this.url=t,this.headers=new Headers(e),this.schema=a,this.fetch=s,this.urlLengthLimit=o,this.retry=c}cloneRequestState(){return{url:new URL(this.url.toString()),headers:new Headers(this.headers)}}select(t,e){const{head:a=!1,count:s}=e??{},o=a?"HEAD":"GET";let c=!1;const u=(t??"*").split("").map(g=>/\s/.test(g)&&!c?"":(g==='"'&&(c=!c),g)).join(""),{url:d,headers:p}=this.cloneRequestState();return d.searchParams.set("select",u),s&&p.append("Prefer",`count=${s}`),new _s({method:o,url:d,headers:p,schema:this.schema,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}insert(t,{count:e,defaultToNull:a=!0}={}){var s;const o="POST",{url:c,headers:u}=this.cloneRequestState();if(e&&u.append("Prefer",`count=${e}`),a||u.append("Prefer","missing=default"),Array.isArray(t)){const d=t.reduce((p,g)=>p.concat(Object.keys(g)),[]);if(d.length>0){const p=[...new Set(d)].map(g=>`"${g}"`);c.searchParams.set("columns",p.join(","))}}return new _s({method:o,url:c,headers:u,schema:this.schema,body:t,fetch:(s=this.fetch)!==null&&s!==void 0?s:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}upsert(t,{onConflict:e,ignoreDuplicates:a=!1,count:s,defaultToNull:o=!0}={}){var c;const u="POST",{url:d,headers:p}=this.cloneRequestState();if(p.append("Prefer",`resolution=${a?"ignore":"merge"}-duplicates`),e!==void 0&&d.searchParams.set("on_conflict",e),s&&p.append("Prefer",`count=${s}`),o||p.append("Prefer","missing=default"),Array.isArray(t)){const g=t.reduce((y,m)=>y.concat(Object.keys(m)),[]);if(g.length>0){const y=[...new Set(g)].map(m=>`"${m}"`);d.searchParams.set("columns",y.join(","))}}return new _s({method:u,url:d,headers:p,schema:this.schema,body:t,fetch:(c=this.fetch)!==null&&c!==void 0?c:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}update(t,{count:e}={}){var a;const s="PATCH",{url:o,headers:c}=this.cloneRequestState();return e&&c.append("Prefer",`count=${e}`),new _s({method:s,url:o,headers:c,schema:this.schema,body:t,fetch:(a=this.fetch)!==null&&a!==void 0?a:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}delete({count:t}={}){var e;const a="DELETE",{url:s,headers:o}=this.cloneRequestState();return t&&o.append("Prefer",`count=${t}`),new _s({method:a,url:s,headers:o,schema:this.schema,fetch:(e=this.fetch)!==null&&e!==void 0?e:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}};function to(t){"@babel/helpers - typeof";return to=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},to(t)}function hE(t,e){if(to(t)!="object"||!t)return t;var a=t[Symbol.toPrimitive];if(a!==void 0){var s=a.call(t,e);if(to(s)!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function dE(t){var e=hE(t,"string");return to(e)=="symbol"?e:e+""}function fE(t,e,a){return(e=dE(e))in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}function Sv(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),a.push.apply(a,s)}return a}function Il(t){for(var e=1;e<arguments.length;e++){var a=arguments[e]!=null?arguments[e]:{};
15e%2?Sv(Object(a),!0).forEach(function(s){fE(t,s,a[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):Sv(Object(a)).forEach(function(s){Object.defineProperty(t,s,Object.getOwnPropertyDescriptor(a,s))})}return t}var pE=class Tb{constructor(e,{headers:a={},schema:s,fetch:o,timeout:c,urlLengthLimit:u=8e3,retry:d}={}){this.url=e,this.headers=new Headers(a),this.schemaName=s,this.urlLengthLimit=u;const p=o??globalThis.fetch;c!==void 0&&c>0?this.fetch=(g,y)=>{const m=new AbortController,w=setTimeout(()=>m.abort(),c),b=y?.signal;if(b){if(b.aborted)return clearTimeout(w),p(g,y);const S=()=>{clearTimeout(w),m.abort()};return b.addEventListener("abort",S,{once:!0}),p(g,Il(Il({},y),{},{signal:m.signal})).finally(()=>{clearTimeout(w),b.removeEventListener("abort",S)})}return p(g,Il(Il({},y),{},{signal:m.signal})).finally(()=>clearTimeout(w))}:this.fetch=p,this.retry=d}from(e){if(!e||typeof e!="string"||e.trim()==="")throw new Error("Invalid relation name: relation must be a non-empty string.");return new uE(new URL(`${this.url}/${e}`),{headers:new Headers(this.headers),schema:this.schemaName,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}schema(e){return new Tb(this.url,{headers:this.headers,schema:e,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}rpc(e,a={},{head:s=!1,get:o=!1,count:c}={}){var u;let d;const p=new URL(`${this.url}/rpc/${e}`);let g;const y=b=>b!==null&&typeof b=="object"&&(!Array.isArray(b)||b.some(y)),m=s&&Object.values(a).some(y);m?(d="POST",g=a):s||o?(d=s?"HEAD":"GET",Object.entries(a).filter(([b,S])=>S!==void 0).map(([b,S])=>[b,Array.isArray(S)?`{${S.join(",")}}`:`${S}`]).forEach(([b,S])=>{p.searchParams.append(b,S)})):(d="POST",g=a);const w=new Headers(this.headers);return m?w.set("Prefer",c?`count=${c},return=minimal`:"return=minimal"):c&&w.set("Prefer",`count=${c}`),new _s({method:d,url:p,headers:w,schema:this.schemaName,body:g,fetch:(u=this.fetch)!==null&&u!==void 0?u:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}};class gE{constructor(){}static detectEnvironment(){var e;if(typeof WebSocket<"u")return{type:"native",wsConstructor:WebSocket};const a=globalThis;if(typeof globalThis<"u"&&typeof a.WebSocket<"u")return{type:"native",wsConstructor:a.WebSocket};const s=typeof global<"u"?global:void 0;if(s&&typeof s.WebSocket<"u")return{type:"native",wsConstructor:s.WebSocket};if(typeof globalThis<"u"&&typeof a.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"&&a.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."};const o=globalThis.process;if(o){const c=o.versions;if(c&&c.node)return{type:"unsupported",error:"Node.js detected but native WebSocket not found.",workaround:"Ensure you are running Node.js 22+ or provide a WebSocket implementation via the transport option."}}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.wsConstructor)return e.wsConstructor;let a=e.error||"WebSocket not supported in this environment.";throw e.workaround&&(a+=`
16
17Suggested solution: ${e.workaround}`),new Error(a)}static isWebSocketSupported(){try{return this.detectEnvironment().type==="native"}catch{return!1}}}const mE="2.110.3",yE=`realtime-js/${mE}`,vE="1.0.0",Rb="2.0.0",wE=Rb,bE=1e4,SE=100,za={closed:"closed",errored:"errored",joined:"joined",joining:"joining",leaving:"leaving"},Ab={close:"phx_close",error:"phx_error",join:"phx_join",leave:"phx_leave",access_token:"access_token"},Md={connecting:"connecting",closing:"closing",closed:"closed"};class kE{constructor(e){this.HEADER_LENGTH=1,this.USER_BROADCAST_PUSH_META_LENGTH=6,this.KINDS={userBroadcastPush:3,userBroadcast:4},this.BINARY_ENCODING=0,this.JSON_ENCODING=1,this.BROADCAST_EVENT="broadcast",this.allowedMetadataKeys=[],this.allowedMetadataKeys=e??[]}encode(e,a){if(e.event===this.BROADCAST_EVENT&&!(e.payload instanceof ArrayBuffer)&&typeof e.payload.event=="string")return a(this._binaryEncodeUserBroadcastPush(e));let s=[e.join_ref,e.ref,e.topic,e.event,e.payload];return a(JSON.stringify(s))}_binaryEncodeUserBroadcastPush(e){var a;return this._isArrayBuffer((a=e.payload)===null||a===void 0?void 0:a.payload)?this._encodeBinaryUserBroadcastPush(e):this._encodeJsonUserBroadcastPush(e)}_encodeBinaryUserBroadcastPush(e){var a,s;const o=(s=(a=e.payload)===null||a===void 0?void 0:a.payload)!==null&&s!==void 0?s:new ArrayBuffer(0);return this._encodeUserBroadcastPush(e,this.BINARY_ENCODING,o)}_encodeJsonUserBroadcastPush(e){var a,s;const o=(s=(a=e.payload)===null||a===void 0?void 0:a.payload)!==null&&s!==void 0?s:{},u=new TextEncoder().encode(JSON.stringify(o)).buffer;return this._encodeUserBroadcastPush(e,this.JSON_ENCODING,u)}_encodeUserBroadcastPush(e,a,s){var o,c;const u=e.topic,d=(o=e.ref)!==null&&o!==void 0?o:"",p=(c=e.join_ref)!==null&&c!==void 0?c:"",g=e.payload.event,y=this.allowedMetadataKeys?this._pick(e.payload,this.allowedMetadataKeys):{},m=Object.keys(y).length===0?"":JSON.stringify(y);if(p.length>255)throw new Error(`joinRef length ${p.length} exceeds maximum of 255`);if(d.length>255)throw new Error(`ref length ${d.length} exceeds maximum of 255`);if(u.length>255)throw new Error(`topic length ${u.length} exceeds maximum of 255`);if(g.length>255)throw new Error(`userEvent length ${g.length} exceeds maximum of 255`);if(m.length>255)throw new Error(`metadata length ${m.length} exceeds maximum of 255`);const w=this.USER_BROADCAST_PUSH_META_LENGTH+p.length+d.length+u.length+g.length+m.length,b=new ArrayBuffer(this.HEADER_LENGTH+w);let S=new DataView(b),A=0;S.setUint8(A++,this.KINDS.userBroadcastPush),S.setUint8(A++,p.length),S.setUint8(A++,d.length),S.setUint8(A++,u.length),S.setUint8(A++,g.length),S.setUint8(A++,m.length),S.setUint8(A++,a),Array.from(p,C=>
17S.setUint8(A++,C.charCodeAt(0))),Array.from(d,C=>S.setUint8(A++,C.charCodeAt(0))),Array.from(u,C=>S.setUint8(A++,C.charCodeAt(0))),Array.from(g,C=>S.setUint8(A++,C.charCodeAt(0))),Array.from(m,C=>S.setUint8(A++,C.charCodeAt(0)));var _=new Uint8Array(b.byteLength+s.byteLength);return _.set(new Uint8Array(b),0),_.set(new Uint8Array(s),b.byteLength),_.buffer}decode(e,a){if(this._isArrayBuffer(e)){let s=this._binaryDecode(e);return a(s)}if(typeof e=="string"){const s=JSON.parse(e),[o,c,u,d,p]=s;return a({join_ref:o,ref:c,topic:u,event:d,payload:p})}return a({})}_binaryDecode(e){const a=new DataView(e),s=a.getUint8(0),o=new TextDecoder;if(s===this.KINDS.userBroadcast)return this._decodeUserBroadcast(e,a,o)}_decodeUserBroadcast(e,a,s){const o=a.getUint8(1),c=a.getUint8(2),u=a.getUint8(3),d=a.getUint8(4);let p=this.HEADER_LENGTH+4;const g=s.decode(e.slice(p,p+o));p=p+o;const y=s.decode(e.slice(p,p+c));p=p+c;const m=s.decode(e.slice(p,p+u));p=p+u;const w=e.slice(p,e.byteLength),b=d===this.JSON_ENCODING?JSON.parse(s.decode(w)):w,S={type:this.BROADCAST_EVENT,event:y,payload:b};return u>0&&(S.meta=JSON.parse(m)),{join_ref:null,ref:null,topic:g,event:this.BROADCAST_EVENT,payload:S}}_isArrayBuffer(e){var a;return e instanceof ArrayBuffer||((a=e?.constructor)===null||a===void 0?void 0:a.name)==="ArrayBuffer"}_pick(e,a){return!e||typeof e!="object"?{}:Object.fromEntries(Object.entries(e).filter(([s])=>a.includes(s)))}}var Ie;(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.tsrange="tsrange",t.tstzrange="tstzrange"})(Ie||(Ie={}));const kv=(t,e,a={})=>{var s;const o=(s=a.skipTypes)!==null&&s!==void 0?s:[];return e?Object.keys(e).reduce((c,u)=>(c[u]=_E(u,t,e,o),c),{}):{}},_E=(t,e,a,s)=>{const o=e.find(d=>d.name===t),c=o?.type,u=a[t];return c&&!s.includes(c)?Cb(c,u):Dd(u)},Cb=(t,e)=>{if(t.charAt(0)==="_"){const a=t.slice(1,t.length);return CE(e,a)}switch(t){case Ie.bool:return TE(e);case Ie.float4:case Ie.float8:case Ie.int2:case Ie.int4:case Ie.int8:case Ie.numeric:case Ie.oid:return RE(e);case Ie.json:case Ie.jsonb:return AE(e);case Ie.timestamp:return EE(e);case Ie.abstime:case Ie.date:case Ie.daterange:case Ie.int4range:case Ie.int8range:case Ie.money:case Ie.reltime:case Ie.text:case Ie.time:case Ie.timestamptz:case Ie.timetz:case Ie.tsrange:case Ie.tstzrange:return Dd(e);default:return Dd(e)}},Dd=t=>t,TE=t=>{switch(t){case"t":return!0;case"f":return!1;default:return t}},RE=t=>{if(typeof t=="string"){const e=parseFloat(t);if(!Number.isNaN(e))return e}return t},AE=t=>{if(typeof t=="string")try{return JSON.parse(t)}catch{return t}return t},CE=(t,e)=>{if(typeof t!="string")return t;const a=t.length-1,s=t[a];if(t[0]==="{"&&s==="}"){let c;const u=t.slice(1,a);try{c=JSON.parse("["+u+"]")}catch{c=u?u.split(","):[]}return c.map(d=>Cb(e,d))}return t},EE=t=>typeof t=="string"?t.replace(" ","T"):t,Eb=t=>{const e=new URL(t);return e.protocol=e.protocol.replace(/^ws/i,"http"),e.pathname=e.pathname.replace(/\/+$/,"").replace(/\/socket\/websocket$/i,"").replace(/\/socket$/i,"").replace(/\/websocket$/i,""),e.pathname===""||e.pathname==="/"?e.pathname="/api/broadcast":e.pathname=e.pathname+"/api/broadcast",e.href};var Fr=t=>typeof t=="function"?t:function(){return t},xE=typeof self<"u"?self:null,Ts=typeof window<"u"?window:null,En=xE||Ts||globalThis,OE="2.0.0",BE=1e4,jE=1e3,On={connecting:0,open:1,closing:2,closed:3},zt={closed:"closed",errored:"errored",joined:"joined",joining:"joining",leaving:"leaving"},ta={close:"phx_close",error:"phx_error",join:"phx_join",reply:"phx_reply",leave:"phx_leave"},Pd={longpoll:"longpoll",websocket:"websocket"},ME={complete:4},Ld="base64url.bearer.phx.",ql=class{constructor(t,e,a,s){this.channel=t,this.event=e,this.payload=a||function(){return{}},this.receivedResp=null,this.timeout=s,this.timeoutTimer=null,this.recHo
vendor: 7,129 bytes, line 17
17oks=[],this.sent=!1,this.ref=void 0}resend(t){this.timeout=t,this.reset(),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()}))}receive(t,e){return this.hasReceived(t)&&e(this.receivedResp.response),this.recHooks.push({status:t,callback:e}),this}reset(){this.cancelRefEvent(),this.ref=null,this.refEvent=null,this.receivedResp=null,this.sent=!1}destroy(){this.cancelRefEvent(),this.cancelTimeout()}matchReceive({status:t,response:e,_ref:a}){this.recHooks.filter(s=>s.status===t).forEach(s=>s.callback(e))}cancelRefEvent(){this.refEvent&&this.channel.off(this.refEvent)}cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=null}startTimeout(){this.timeoutTimer&&this.cancelTimeout(),this.ref=this.channel.socket.makeRef(),this.refEvent=this.channel.replyEventName(this.ref),this.channel.on(this.refEvent,t=>{this.cancelRefEvent(),this.cancelTimeout(),this.receivedResp=t,this.matchReceive(t)}),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}hasReceived(t){return this.receivedResp&&this.receivedResp.status===t}trigger(t,e){this.channel.trigger(this.refEvent,{status:t,response:e})}},xb=class{constructor(t,e){this.callback=t,this.timerCalc=e,this.timer=void 0,this.tries=0}reset(){this.tries=0,clearTimeout(this.timer)}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries=this.tries+1,this.callback()},this.timerCalc(this.tries+1))}},DE=class{constructor(t,e,a){this.state=zt.closed,this.topic=t,this.params=Fr(e||{}),this.socket=a,this.bindings=[],this.bindingRef=0,this.timeout=this.socket.timeout,this.joinedOnce=!1,this.joinPush=new ql(this,ta.join,this.params,this.timeout),this.pushBuffer=[],this.stateChangeRefs=[],this.rejoinTimer=new xb(()=>{this.socket.isConnected()&&this.rejoin()},this.socket.rejoinAfterMs),this.stateChangeRefs.push(this.socket.onError(()=>this.rejoinTimer.reset())),this.stateChangeRefs.push(this.socket.onOpen(()=>{this.rejoinTimer.reset(),this.isErrored()&&this.rejoin()})),this.joinPush.receive("ok",()=>{this.state=zt.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(s=>s.send()),this.pushBuffer=[]}),this.joinPush.receive("error",s=>{this.state=zt.errored,this.socket.hasLogger()&&this.socket.log("channel",`error ${this.topic}`,s),this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.onClose(()=>{this.rejoinTimer.reset(),this.socket.hasLogger()&&this.socket.log("channel",`close ${this.topic}`),this.state=zt.closed,this.socket.remove(this)}),this.onError(s=>{this.socket.hasLogger()&&this.socket.log("channel",`error ${this.topic}`,s),this.isJoining()&&this.joinPush.reset(),this.state=zt.errored,this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.joinPush.receive("timeout",()=>{this.socket.hasLogger()&&this.socket.log("channel",`timeout ${this.topic}`,this.joinPush.timeout),new ql(this,ta.leave,Fr({}),this.timeout).send(),this.state=zt.errored,this.joinPush.reset(),this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.on(ta.reply,(s,o)=>{this.trigger(this.replyEventName(o),s)})}join(t=this.timeout){if(this.joinedOnce)throw new Error("tried to join multiple times. 'join' can only be called a single time per channel instance");return this.timeout=t,this.joinedOnce=!0,this.rejoin(),this.joinPush}teardown(){this.pushBuffer.forEach(t=>t.destroy()),this.pushBuffer=[],this.rejoinTimer.reset(),this.joinPush.destroy(),this.state=zt.closed,this.bindings=[]}onClose(t){this.on(ta.close,t)}onError(t){return this.on(ta.error,e=>t(e))}on(t,e){let a=this.bindingRef++;return this.bindings.push({event:t,ref:a,callback:e}),a}off(t,e){this.bindings=this.bindings.filter(a=>!(a.event===t&&(typeof e>"u"||e===a.ref)))}canPush(){return this.socket.isConnected()&&this.isJoined()}push(t,e,a=this.timeout){if(e=e||{},!this.joinedOnce)throw new Error(`tried to push '${t}' to '${this.topic}' before joining. Use channel.join() before pushing events`);let s=new ql(this,t,function(){return e},a);return this.canPush()?s.send():(s.startTimeout(),this.pushBuffer.push(s)),s}leave(t=this.timeout){this.rejoinTimer.reset(),this.joinPush.cancelTimeout(),this.state=zt.leaving;let e=()=>{this.socket.hasLogger()&&this.socket.log("channel",`leave ${this.topic}`),this.trigger(ta.close,"leave")},a=new ql(this,ta.leave,Fr({}),t);return a.receive("ok",()=>e()).receive("timeout",()=>e()),a.send(),this.canPush()||a.trigger("ok",{}),a}onMessage(t,e,a){return e}filterBindings(t,e,a){return!0}isMember(t,e,a,s){return this.topic!==t?!1:s&&s!==this.joinRef()?(this.socket.hasLogger()&&this.socket.log("channel","dropping outdated message",{topic:t,event:e,payload:a,joinRef:s}),!1):!0}joinRef(){return this.joinPush.ref}rejoin(t=this.timeout){this.isLeaving()||(this.socket.leaveOpenTopic(this.topic),this.state=zt.joining,this.joinPush.resend(t))}trigger(t,e,a,s){let o=this.onMessage(t,e,a,s);if(e&&!o)throw new Error("channel onMessage callbacks must return the payload, modified or unmodified");let c=this.bindings.filter(u=>u.event===t&&this.filterBindings(u,e,a));for(let u=0;u<c.length;u++)c[u].callback(o,a,s||this.joinRef())}replyEventName(t){return`chan_reply_${t}`}isClosed(){return this.state===zt.closed}isErrored(){return this.state===zt.errored}isJoined(){return this.state===zt.joined}isJoining(){return this.state===zt.joining}isLeaving(){return this.state===zt.leaving}},cc=class{static request(t,e,a,s,o,c,u){if(En.XDomainRequest){let d=new En.XDomainRequest;return this.xdomainRequest(d,t,e,s,o,c,u)}else if(En.XMLHttpRequest){let d=new En.XMLHttpRequest;return this.xhrRequest(d,t,e,a,s,o,c,u)}else{if(En.fetch&&En.AbortController)return this.fetchRequest(t,e,a,s,o,c,u);throw new Error("No suitable XMLHttpRequest implementation found")}}static fetchRequest(t,e,a,s,o,c,u){let d={method:t,headers:a,body:s},p=null;return o&&(p=new AbortController,setTimeout(()=>p.abort(),o),d.signal=p.signal),En.fetch(e,d).then(g=>g.text()).then(g=>this.parseJSON(g)).then(g=>u&&u(g)).catch(g=>{g.name==="AbortError"&&c?c():u&&u(null)}),p}static xdomainRequest(t,e,a,s,o,c,u){return t.timeout=o,t.open(e,a),t.onload=()=>{let d=this.parseJSON(t.responseText);u&&u(d)},c&&(t.ontimeout=c),t.onprogress=()=>{},t.send(s),t}static xhrRequest(t,e,a,s,o,c,u,d){t.open(e,a,!0),t.timeout=c;for(let[p,g]of Object.entries(s))t.setRequestHeader(p,g);return t.onerror=()=>d&&d(null),t.onreadystatechange=()=>{if(t.readyState===ME.complete&&d){let p=this.parseJSON(t.responseText);d(p)}},u&&(t.ontimeout=u),t.send(o),t}static parseJSON(t){if(!t||t==="")return null;try{return JSON.parse(t)}catch{return console&&console.log("failed to parse JSON response",t),null}}static serialize(t,e){let a=[];for(var s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let o=e?`${e}[${s}]`:s,c=t[s];typeof c=="object"?a.push(this.serialize(c,o)):a.push(encodeURIComponent(o)+"="+encodeURIComponent(c))}return a.join("&")}static appendParams(t,e){if(Object.keys(e).length===0)return t;let a=t.match(/\?/)?"&":"?";return`${t}${a}
17${this.serialize(e)}`}},PE=t=>{let e="",a=new Uint8Array(t),s=a.byteLength;for(let o=0;o<s;o++)e+=String.fromCharCode(a[o]);return btoa(e)},ys=class{constructor(t,e){e&&e.length===2&&e[1].startsWith(Ld)&&(this.authToken=atob(e[1].slice(Ld.length))),this.endPoint=null,this.token=null,this.skipHeartbeat=!0,this.reqs=new Set,this.awaitingBatchAck=!1,this.currentBatch=null,this.currentBatchTimer=null,this.batchBuffer=[],this.onopen=function(){},this.onerror=function(){},this.onmessage=function(){},this.onclose=function(){},this.pollEndpoint=this.normalizeEndpoint(t),this.readyState=On.connecting,setTimeout(()=>this.poll(),0)}normalizeEndpoint(t){return t.replace("ws://","http://").replace("wss://","https://").replace(new RegExp("(.*)/"+Pd.websocket),"$1/"+Pd.longpoll)}endpointURL(){return cc.appendParams(this.pollEndpoint,{token:this.token})}closeAndRetry(t,e,a){this.close(t,e,a),this.readyState=On.connecting}ontimeout(){this.onerror("timeout"),this.closeAndRetry(1005,"timeout",!1)}isActive(){return this.readyState===On.open||this.readyState===On.connecting}poll(){const t={Accept:"application/json"};this.authToken&&(t["X-Phoenix-AuthToken"]=this.authToken),this.ajax("GET",t,null,()=>this.ontimeout(),e=>{if(e){var{status:a,token:s,messages:o}=e;if(a===410&&this.token!==null){this.onerror(410),this.closeAndRetry(3410,"session_gone",!1);return}this.token=s}else a=0;switch(a){case 200:o.forEach(c=>{setTimeout(()=>this.onmessage({data:c}),0)}),this.poll();break;case 204:this.poll();break;case 410:this.readyState=On.open,this.onopen({}),this.poll();break;
17case 403:this.onerror(403),this.close(1008,"forbidden",!1);break;case 0:case 500:this.onerror(500),this.closeAndRetry(1011,"internal server error",500);break;default:throw new Error(`unhandled poll status ${a}`)}})}send(t){typeof t!="string"&&(t=PE(t)),this.currentBatch?this.currentBatch.push(t):this.awaitingBatchAck?this.batchBuffer.push(t):(this.currentBatch=[t],this.currentBatchTimer=setTimeout(()=>{this.batchSend(this.currentBatch),this.currentBatch=null},0))}batchSend(t){this.awaitingBatchAck=!0,this.ajax("POST",{"Content-Type":"application/x-ndjson"},t.join(`
18`),()=>this.onerror("timeout"),e=>{this.awaitingBatchAck=!1,!e||e.status!==200?(this.onerror(e&&e.status),this.closeAndRetry(1011,"internal server error",!1)):this.batchBuffer.length>0&&(this.batchSend(this.batchBuffer),this.batchBuffer=[])})}close(t,e,a){for(let o of this.reqs)o.abort();this.readyState=On.closed;let s=Object.assign({code:1e3,reason:void 0,wasClean:!0},{code:t,reason:e,wasClean:a});this.batchBuffer=[],clearTimeout(this.currentBatchTimer),this.currentBatchTimer=null,typeof CloseEvent<"u"?this.onclose(new CloseEvent("close",s)):this.onclose(s)}ajax(t,e,a,s,o){let c,u=()=>{this.reqs.delete(c),s()};c=cc.request(t,this.endpointURL(),e,a,this.timeout,u,d=>{this.reqs.delete(c),this.isActive()&&o(d)}),this.reqs.add(c)}},LE=class Vr{constructor(e,a={}){let s=a.events||{state:"presence_state",diff:"presence_diff"};this.state={},this.pendingDiffs=[],this.channel=e,this.joinRef=null,this.caller={onJoin:function(){},onLeave:function(){},onSync:function(){}},this.channel.on(s.state,o=>{let{onJoin:c,onLeave:u,onSync:d}=this.caller;this.joinRef=this.channel.joinRef(),this.state=Vr.syncState(this.state,o,c,u),this.pendingDiffs.forEach(p=>{this.state=Vr.syncDiff(this.state,p,c,u)}),this.pendingDiffs=[],d()}),this.channel.on(s.diff,o=>{let{onJoin:c,onLeave:u,onSync:d}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(o):(this.state=Vr.syncDiff(this.state,o,c,u),d())})}onJoin(e){this.caller.onJoin=e}onLeave(e){this.caller.onLeave=e}onSync(e){this.caller.onSync=e}list(e){return Vr.list(this.state,e)}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel.joinRef()}static syncState(e,a,s,o){let c=this.clone(e),u={},d={};return this.map(c,(p,g)=>{a[p]||(d[p]=g)}),this.map(a,(p,g)=>{let y=c[p];if(y){let m=g.metas.map(A=>A.phx_ref),w=y.metas.map(A=>A.phx_ref),b=g.metas.filter(A=>w.indexOf(A.phx_ref)<0),S=y.metas.filter(A=>m.indexOf(A.phx_ref)<0);b.length>0&&(u[p]=g,u[p].metas=b),S.length>0&&(d[p]=this.clone(y),d[p].metas=S)}else u[p]=g}),this.syncDiff(c,{joins:u,leaves:d},s,o)}static syncDiff(e,a,s,o){let{joins:c,leaves:u}=this.clone(a);return s||(s=function(){}),o||(o=function(){}),this.map(c,(d,p)=>{let g=e[d];if(e[d]=this.clone(p),g){let y=e[d].metas.map(w=>w.phx_ref),m=g.metas.filter(w=>y.indexOf(w.phx_ref)<0);e[d].metas.unshift(...m)}s(d,g,p)}),this.map(u,(d,p)=>{let g=e[d];if(!g)return;let y=p.metas.map(m=>m.phx_ref);g.metas=g.metas.filter(m=>y.indexOf(m.phx_ref)<0),o(d,g,p),g.metas.length===0&&delete e[d]}),e}static list(e,a){return a||(a=function(s,o){return o}),this.map(e,(s,o)=>a(s,o))}static map(e,a){return Object.getOwnPropertyNames(e).map(s=>a(s,e[s]))}static clone(e){return JSON.parse(JSON.stringify(e))}},$l={HEADER_LENGTH:1,META_LENGTH:4,KINDS:{push:0,reply:1,broadcast:2},encode(t,e){if(t.payload.constructor===ArrayBuffer)return e(this.binaryEncode(t));{let a=[t.join_ref,t.ref,t.topic,t.event,t.payload];return e(JSON.stringify(a))}},decode(t,e){if(t.constructor===ArrayBuffer)return e(this.binaryDecode(t));{let[a,s,o,c,u]=JSON.parse(t);return e({join_ref:a,ref:s,topic:o,event:c,payload:u})}},binaryEncode(t){let{join_ref:e,ref:a,event:s,topic:o,payload:c}=t,u=this.META_LENGTH+e.length+a.length+o.length+s.length,d=new ArrayBuffer(this.HEADER_LENGTH+u),p=new DataView(d),g=0;p.setUint8(g++,this.KINDS.push),p.setUint8(g++,e.length),p.setUint8(g++,a.length),p.setUint8(g++,o.length),p.setUint8(g++,s.length),Array.from(e,m=>p.setUint8(g++,m.charCodeAt(0))),Array.from(a,m=>p.setUint8(g++,m.charCodeAt(0))),Array.from(o,m=>p.setUint8(g++,m.charCodeAt(0))),Array.from(s,m=>p.setUint8(g++,m.charCodeAt(0)));var y=new Uint8Array(d.byteLength+c.byteLength);return y.set(new Uint8Array(d),0),y.set(new Uint8Array(c),d.byteLength),y.buffer},binaryDecode(t){let e=new DataView(t),a=e.getUint8(0),s=new TextDecoder;switch(a){case this.KINDS.push:return this.decodePush(t,e,s);case this.KINDS.reply:return this.decodeReply(t,e,s);case this.KINDS.broadcast:return this.decodeBroadcast(t,e,s)}},decodePush(t,e,a){let s=e.getUint8(1),o=e.getUint8(2),c=e.getUint8(3),u=this.HEADER_LENGTH+this.META_LENGTH-1,d=a.decode(t.slice(u,u+s));u=u+s;let p=a.decode(t.slice(u,u+o));u=u+o;let g=a.decode(t.slice(u,u+c));u=u+c;let y=t.slice(u,t.byteLength);return{join_ref:d,ref:null,topic:p,event:g,payload:y}},decodeReply(t,e,a){let s=e.getUint8(1),o=e.getUint8(2),c=e.getUint8(3),u=e.getUint8(4),d=this.HEADER_LENGTH+this.META_LENGTH,p=a.decode(t.slice(d,d+s));d=d+s;let g=a.decode(t.slice(d,d+o));d=d+o;let y=a.decode(t.slice(d,d+c));d=d+c;let m=a.decode(t.slice(d,d+u));d=d+u;let w=t.slice(d,t.byteLength),b={status:m,response:w};return{join_ref:p,ref:g,topic:y,event:ta.reply,payload:b}},decodeBroadcast(t,e,a){let s=e.getUint8(1),o=e.getUint8(2),c=this.HEADER_LENGTH+2,u=a.decode(t.slice(c,c+s));c=c+s;
18let d=a.decode(t.slice(c,c+o));c=c+o;let p=t.slice(c,t.byteLength);return{join_ref:null,ref:null,topic:u,event:d,payload:p}}},zE=class{constructor(t,e={}){this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.channels=[],this.sendBuffer=[],this.ref=0,this.fallbackRef=null,this.timeout=e.timeout||BE,this.transport=e.transport||En.WebSocket||ys,this.conn=void 0,this.primaryPassedHealthCheck=!1,this.longPollFallbackMs=e.longPollFallbackMs,this.fallbackTimer=null;let a=null;try{a=En&&En.sessionStorage}catch{}this.sessionStore=e.sessionStorage||a,this.establishedConnections=0,this.defaultEncoder=$l.encode.bind($l),this.defaultDecoder=$l.decode.bind($l),this.closeWasClean=!0,this.disconnecting=!1,this.binaryType=e.binaryType||"arraybuffer",this.connectClock=1,this.pageHidden=!1,this.encode=void 0,this.decode=void 0,this.transport!==ys?(this.encode=e.encode||this.defaultEncoder,this.decode=e.decode||this.defaultDecoder):(this.encode=this.defaultEncoder,this.decode=this.defaultDecoder);let s=null;Ts&&Ts.addEventListener&&(Ts.addEventListener("pagehide",o=>{this.conn&&(this.disconnect(),s=this.connectClock)}),Ts.addEventListener("pageshow",o=>{s===this.connectClock&&(s=null,this.connect())}),Ts.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"?this.pageHidden=!0:(this.pageHidden=!1,!this.isConnected()&&!this.closeWasClean&&this.teardown(()=>this.connect()))})),this.heartbeatIntervalMs=e.heartbeatIntervalMs||3e4,this.autoSendHeartbeat=e.autoSendHeartbeat??!0,this.heartbeatCallback=e.heartbeatCallback??(()=>{}),this.rejoinAfterMs=o=>e.rejoinAfterMs?e.rejoinAfterMs(o):[1e3,2e3,5e3][o-1]||1e4,this.reconnectAfterMs=o=>e.reconnectAfterMs?e.reconnectAfterMs(o):[10,50,100,150,200,250,500,1e3,2e3][o-1]||5e3,this.logger=e.logger||null,!this.logger&&e.debug&&(this.logger=(o,c,u)=>{console.log(`${o}: ${c}`,u)}),this.longpollerTimeout=e.longpollerTimeout||2e4,this.params=Fr(e.params||{}),this.endPoint=`${t}/${Pd.websocket}`,this.vsn=e.vsn||OE,this.heartbeatTimeoutTimer=null,this.heartbeatTimer=null,this.heartbeatSentAt=null,this.pendingHeartbeatRef=null,this.reconnectTimer=new xb(()=>{if(this.pageHidden){this.log("Not reconnecting as page is hidden!"),this.teardown();return}this.teardown(async()=>{e.beforeReconnect&&await e.beforeReconnect(),this.connect()})},this.reconnectAfterMs),this.authToken=e.authToken}getLongPollTransport(){return ys}replaceTransport(t){this.connectClock++,this.closeWasClean=!0,clearTimeout(this.fallbackTimer),this.reconnectTimer.reset(),this.conn&&(this.conn.close(),this.conn=null),this.transport=t}protocol(){return location.protocol.match(/^https/)?"wss":"ws"}endPointURL(){let t=cc.appendParams(cc.appendParams(this.endPoint,this.params()),{vsn:this.vsn});return t.charAt(0)!=="/"?t:t.charAt(1)==="/"?`${this.protocol()}:${t}`:`${this.protocol()}://${location.host}${t}`}disconnect(t,e,a){this.connectClock++,this.disconnecting=!0,this.closeWasClean=!0,clearTimeout(this.fallbackTimer),this.reconnectTimer.reset(),this.teardown(()=>{this.disconnecting=!1,t&&t()},e,a)}connect(t){t&&(console&&console.log("passing params to connect is deprecated. Instead pass :params to the Socket constructor"),this.params=Fr(t)),!(this.conn&&!this.disconnecting)&&(this.longPollFallbackMs&&this.transport!==ys?this.connectWithF
vendor: 4,353 bytes, line 18
18allback(ys,this.longPollFallbackMs):this.transportConnect())}log(t,e,a){this.logger&&this.logger(t,e,a)}hasLogger(){return this.logger!==null}onOpen(t){let e=this.makeRef();return this.stateChangeCallbacks.open.push([e,t]),e}onClose(t){let e=this.makeRef();return this.stateChangeCallbacks.close.push([e,t]),e}onError(t){let e=this.makeRef();return this.stateChangeCallbacks.error.push([e,t]),e}onMessage(t){let e=this.makeRef();return this.stateChangeCallbacks.message.push([e,t]),e}onHeartbeat(t){this.heartbeatCallback=t}ping(t){if(!this.isConnected())return!1;let e=this.makeRef(),a=Date.now();this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:e});let s=this.onMessage(o=>{o.ref===e&&(this.off([s]),t(Date.now()-a))});return!0}transportName(t){return t===ys?"LongPoll":t.name}transportConnect(){this.connectClock++,this.closeWasClean=!1;let t;this.authToken&&(t=["phoenix",`${Ld}${btoa(this.authToken).replace(/=/g,"")}`]),this.conn=new this.transport(this.endPointURL(),t),this.conn.binaryType=this.binaryType,this.conn.timeout=this.longpollerTimeout,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)}getSession(t){return this.sessionStore&&this.sessionStore.getItem(t)}storeSession(t,e){this.sessionStore&&this.sessionStore.setItem(t,e)}connectWithFallback(t,e=2500){clearTimeout(this.fallbackTimer);let a=!1,s=!0,o,c,u=this.transportName(t),d=p=>{this.log("transport",`falling back to ${u}...`,p),this.off([o,c]),s=!1,this.replaceTransport(t),this.transportConnect()};if(this.getSession(`phx:fallback:${u}`))return d("memorized");this.fallbackTimer=setTimeout(d,e),c=this.onError(p=>{this.log("transport","error",p),s&&!a&&(clearTimeout(this.fallbackTimer),d(p))}),this.fallbackRef&&this.off([this.fallbackRef]),this.fallbackRef=this.onOpen(()=>{if(a=!0,!s){let p=this.transportName(t);return this.primaryPassedHealthCheck||this.storeSession(`phx:fallback:${p}`,"true"),this.log("transport",`established ${p} fallback`)}clearTimeout(this.fallbackTimer),this.fallbackTimer=setTimeout(d,e),this.ping(p=>{this.log("transport","connected to primary after",p),this.primaryPassedHealthCheck=!0,clearTimeout(this.fallbackTimer)})}),this.transportConnect()}clearHeartbeats(){clearTimeout(this.heartbeatTimer),clearTimeout(this.heartbeatTimeoutTimer)}onConnOpen(){this.hasLogger()&&this.log("transport",`connected to ${this.endPointURL()}`),this.closeWasClean=!1,this.disconnecting=!1,this.establishedConnections++,this.flushSendBuffer(),this.reconnectTimer.reset(),this.autoSendHeartbeat&&this.resetHeartbeat(),this.triggerStateCallbacks("open")}heartbeatTimeout(){if(this.pendingHeartbeatRef){this.pendingHeartbeatRef=null,this.heartbeatSentAt=null,this.hasLogger()&&this.log("transport","heartbeat timeout. Attempting to re-establish connection");try{this.heartbeatCallback("timeout")}catch(t){this.log("error","error in heartbeat callback",t)}this.triggerChanError(new Error("heartbeat timeout")),this.closeWasClean=!1,this.teardown(()=>this.reconnectTimer.scheduleTimeout(),jE,"heartbeat timeout")}}resetHeartbeat(){this.conn&&this.conn.skipHeartbeat||(this.pendingHeartbeatRef=null,this.clearHeartbeats(),this.heartbeatTimer=setTimeout(()=>this.sendHeartbeat(),this.heartbeatIntervalMs))}teardown(t,e,a){if(!this.conn)return t&&t();const s=this.conn;this.waitForBufferDone(s,()=>{e?s.close(e,a||""):s.close(),this.waitForSocketClosed(s,()=>{this.conn===s&&(this.conn.onopen=function(){},this.conn.onerror=function(){},this.conn.onmessage=function(){},this.conn.onclose=function(){},this.conn=null),t&&t()})})}waitForBufferDone(t,e,a=1){if(a===5||!t.bufferedAmount){e();return}setTimeout(()=>{this.waitForBufferDone(t,e,a+1)},150*a)}waitForSocketClosed(t,e,a=1){if(a===5||t.readyState===On.closed){e();return}setTimeout(()=>{this.waitForSocketClosed(t,e,a+1)},150*a)}onConnClose(t){this.conn&&(this.conn.onclose=()=>{}),this.hasLogger()&&this.log("transport","close",t),this.triggerChanError(t),this.clearHeartbeats(),this.closeWasClean||this.reconnectTimer.scheduleTimeout(),this.triggerStateCallbacks("close",t)}onConnError(t){this.hasLogger()&&this.log("transport","error",t);let e=this.transport,a=this.establishedConnections;this.triggerStateCallbacks("error",t,e,a),(e===this.transport||a>0)&&this.triggerChanError(t)}
18triggerChanError(t){this.channels.forEach(e=>{e.isErrored()||e.isLeaving()||e.isClosed()||e.trigger(ta.error,t)})}connectionState(){switch(this.conn&&this.conn.readyState){case On.connecting:return"connecting";case On.open:return"open";case On.closing:return"closing";default:return"closed"}}isConnected(){return this.connectionState()==="open"}remove(t){this.off(t.stateChangeRefs),this.channels=this.channels.filter(e=>e!==t)}off(t){for(let e in this.stateChangeCallbacks)this.stateChangeCallbacks[e]=this.stateChangeCallbacks[e].filter(([a])=>t.indexOf(a)===-1)}channel(t,e={}){let a=new DE(t,e,this);return this.channels.push(a),a}push(t){if(this.hasLogger()){let{topic:e,event:a,payload:s,ref:o,join_ref:c}=t;this.log("push",`${e} ${a} (${c}, ${o})`,s)}this.isConnected()?this.encode(t,e=>this.conn.send(e)):this.sendBuffer.push(()=>this.encode(t,e=>this.conn.send(e)))}makeRef(){let t=this.ref+1;return t===this.ref?this.ref=0:this.ref=t,this.ref.toString()}sendHeartbeat(){if(!this.isConnected()){try{this.heartbeatCallback("disconnected")}catch(t){this.log("error","error in heartbeat callback",t)}return}if(this.pendingHeartbeatRef){this.heartbeatTimeout();return}this.pendingHeartbeatRef=this.makeRef(),this.heartbeatSentAt=Date.now(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef});try{this.heartbeatCallback("sent")}catch(t){this.log("error","error in heartbeat callback",t)}this.heartbeatTimeoutTimer=setTimeout(()=>this.heartbeatTimeout(),this.heartbeatIntervalMs)}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(t=>t()),this.sendBuffer=[])}onConnMessage(t){this.decode(t.data,e=>{let{topic:a,event:s,payload:o,ref:c,join_ref:u}=e;if(c&&c===this.pendingHeartbeatRef){const d=this.heartbeatSentAt?Date.now()-this.heartbeatSentAt:void 0;this.clearHeartbeats();try{this.heartbeatCallback(o.status==="ok"?"ok":"error",d)}catch(p){this.log("error","error in heartbeat callback",p)}this.pendingHeartbeatRef=null,this.heartbeatSentAt=null,this.autoSendHeartbeat&&(this.heartbeatTimer=setTimeout(()=>this.sendHeartbeat(),this.heartbeatIntervalMs))}this.hasLogger()&&this.log("receive",`${o.status||""} ${a} ${s} ${c&&"("+c+")"||""}`.trim(),o);for(let d=0;d<this.channels.length;d++){const p=this.channels[d];p.isMember(a,s,o,u)&&p.trigger(s,o,c,u)}this.triggerStateCallbacks("message",e)})}triggerStateCallbacks(t,...e){try{this.stateChangeCallbacks[t].forEach(([a,s])=>{try{s(...e)}catch(o){this.log("error",`error in ${t} callback`,o)}})}catch(a){this.log("error",`error triggering ${t} callbacks`,a)}}leaveOpenTopic(t){let e=this.channels.find(a=>a.topic===t&&(a.isJoined()||a.isJoining()));e&&(this.hasLogger()&&this.log("transport",`leaving duplicate topic "${t}"`),e.leave())}};class Kr{constructor(e,a){const s=UE(a);this.presence=new LE(e.getChannel(),s),this.presence.onJoin((o,c,u)=>{const d=Kr.onJoinPayload(o,c,u);e.getChannel().trigger("presence",d)}),this.presence.onLeave((o,c,u)=>{const d=Kr.onLeavePayload(o,c,u);e.getChannel().trigger("presence",d)}),this.presence.onSync(()=>{e.getChannel().trigger("presence",{event:"sync"})})}get state(){return Kr.transformState(this.presence.state)}static transformState(e){return e=NE(e),Object.getOwnPropertyNames(e).reduce((a,s)=>{const o=e[s];return a[s]=tc(o),a},{})}static onJoinPayload(e,a,s){const o=_v(a),c=tc(s);return{event:"join",key:e,currentPresences:o,newPresences:c}}static onLeavePayload(e,a,s){const o=_v(a),c=tc(s);return{event:"leave",key:e,currentPresences:o,leftPresences:c}}}function tc(t){return t.metas.map(e=>(e.presence_ref=e.phx_ref,delete e.phx_ref,delete e.phx_ref_prev,e))}function NE(t){return JSON.parse(JSON.stringify(t))}function UE(t){return t?.events&&{events:t.events}}function _v(t){return t?.metas?tc(t):[]}var Tv;(function(t){t.SYNC="sync",t.JOIN="join",t.LEAVE="leave"})(Tv||(Tv={}));class IE{get state(){return this.presenceAdapter.state}constructor(e,a){this.channel=e,this.presenceAdapter=new Kr(this.channel.channelAdapter,a)}}function qE(t){if(t instanceof Error)return t;if(typeof t=="string")return new Error(t);if(t&&typeof t=="object"){const e=t;
18if(typeof e.code=="number"){const a=typeof e.reason=="string"&&e.reason?` (${e.reason})`:"";return new Error(`socket closed: ${e.code}${a}`,{cause:t})}return new Error("channel error: transport failure",{cause:t})}return new Error("channel error: connection lost")}class $E{constructor(e,a,s){const o=VE(s);this.channel=e.getSocket().channel(a,o),this.socket=e}get state(){return this.channel.state}set state(e){this.channel.state=e}get joinedOnce(){return this.channel.joinedOnce}get joinPush(){return this.channel.joinPush}get rejoinTimer(){return this.channel.rejoinTimer}on(e,a){return this.channel.on(e,a)}off(e,a){this.channel.off(e,a)}subscribe(e){return this.channel.join(e)}unsubscribe(e){return this.channel.leave(e)}teardown(){this.channel.teardown()}onClose(e){this.channel.onClose(e)}onError(e){return this.channel.onError(e)}push(e,a,s){let o;try{o=this.channel.push(e,a,s)}catch{throw new Error(`tried to push '${e}' to '${this.channel.topic}' before joining. Use channel.subscribe() before pushing events`)}if(this.channel.pushBuffer.length>SE){const c=this.channel.pushBuffer.shift();c.cancelTimeout(),this.socket.log("channel",`discarded push due to buffer overflow: ${c.event}`,c.payload())}return o}updateJoinPayload(e){const a=this.channel.joinPush.payload();this.channel.joinPush.payload=()=>Object.assign(Object.assign({},a),e)}canPush(){return this.socket.isConnected()&&this.state===za.joined}isJoined(){return this.state===za.joined}isJoining(){return this.state===za.joining}isClosed(){return this.state===za.closed}isLeaving(){return this.state===za.leaving}updateFilterBindings(e){this.channel.filterBindings=e}updatePayloadTransform(e){this.channel.onMessage=e}getChannel(){return this.channel}}function VE(t){return{config:Object.assign({broadcast:{ack:!1,self:!1},presence:{key:"",enabled:!1},private:!1},t.config)}}const HE=/[,()"\\]/,GE=t=>HE.test(t)||t!==t.trim(),WE=t=>`"${t.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`,Rv=t=>{const e=t===null?"null":String(t);return GE(e)?WE(e):e},FE=t=>t===null?"null":String(t),KE=(t,e)=>{if(t==="in"){const a=Array.isArray(e)?e:[e];if(a.length===0)throw new Error("Realtime `in` filter requires at least one value.");return`in.(${Array.from(new Set(a)).map(o=>Rv(o)).join(",")})`}return t==="is"?`is.${FE(e)}`:`${t}.${Rv(e)}`};class YE{constructor(){this.filters=[]}add(e,a,s,o=!1){const c=o?"not.":"";return this.filters.push(`${e}=${c}${KE(a,s)}`),this}eq(e,a){return this.add(e,"eq",a)}neq(e,a){return this.add(e,"neq",a)}gt(e,a){return this.add(e,"gt",a)}gte(e,a){return this.add(e,"gte",a)}lt(e,a){return this.add(e,"lt",a)}lte(e,a){return this.add(e,"lte",a)}in(e,a){return this.add(e,"in",a)}like(e,a){return this.add(e,"like",a)}ilike(e,a){return this.add(e,"ilike",a)}match(e,a){return this.add(e,"match",a)}imatch(e,a){return this.add(e,"imatch",a)}is(e,a){return this.add(e,"is",a)}isDistinct(e,a){return this.add(e,"isdistinct",a)}not(e,a,s){return this.add(e,a,s,!0)}build(){return this.filters.join(",")}toString(){return this.build()}}var Av;(function(t){t.ALL="*",t.INSERT="INSERT",t.UPDATE="UPDATE",t.DELETE="DELETE"})(Av||(Av={}));var Cs;(function(t){t.BROADCAST="broadcast",t.PRESENCE="presence",t.POSTGRES_CHANGES="postgres_changes",t.SYSTEM="system"})(Cs||(Cs={}));var na;(function(t){t.SUBSCRIBED="SUBSCRIBED",t.TIMED_OUT="TIMED_OUT",t.CLOSED="CLOSED",t.CHANNEL_ERROR="CHANNEL_ERROR"})(na||(na={}));class Yr{get state(){return this.channelAdapter.state}set state(e){this.channelAdapter.state=e}get joinedOnce(){return this.channelAdapter.joinedOnce}get timeout(){return this.socket.timeout}get joinPush(){return this.channelAdapter.joinPush}get rejoinTimer(){return this.channelAdapter.rejoinTimer}constructor(e,a={config:{}},s){var o,c;if(this.topic=e,this.params=a,this.socket=s,this.bindings={},this.subTopic=e.replace(/^realtime:/i,""),this.params.config=Object.assign({broadcast:{ack:!1,self:!1},presence:{key:"",enabled:!1},private:!1},a.config),this.channelAdapter=new $E(this.socket.socketAdapter,e,this.params),this.presence=new IE(this),this._onClose(()=>{this.socket._remove(this)}),this._updateFilterTransform(),this.broadcastEndpointURL=Eb(this.socket.socketAdapter.endPointURL()),this.private=this.params.config.private||!1,!this.private&&(!((c=(o=this.params.config)===null||o===void 0?void 0:o.broadcast)===null||c===void 0)&&c.replay))throw new Error(`tried to use replay on public channel '${this.topic}'. It must be a private channel.`)}subscribe(e,a=this.timeout){var s,o,c;if(this.socket.isConnected()||this.socket.connect(),this.channelAdapter.isClosed()){const{config:{broadcast:u,presence:d,private:p}}=this.params,g=(o=(s=this.bindings.postgres_changes)===null||s===void 0?void 0:s.map(b=>b.filter))!==null&&o!==void 0?o:[],y=!!this.bindings[Cs.PRESENCE]&&this.bindings[Cs.PRESENCE].length>0||((c=this.params.config.presence)===null||c===void 0?void 0:c.enabled)===!0,m={},w={broadcast:u,presence:Object.assign(Object.assign({},d),{enabled:y}),postgres_changes:g,private:p};this.socket.accessTokenValue&&(m.access_token=this.socket.accessTokenValue),this._onError(b=>{e?.(na.CHANNEL_ERROR,qE(b))}),this._onClose(()=>e?.(na.CLOSED)),this.updateJoinPayload(Object.assign({config:w},m)),this._updateFilterMessage(),this.channelAdapter.subscribe(a).receive("ok",async({postgres_changes:b})=>{if(this.socket._isManualToken()||this.socket.setAuth(),b===void 0){e?.(na.SUBSCRIBED);return}this._updatePostgresBindings(b,e)}).receive("error",b=>{this.state=za.errored;const S=Object.values(b).join(", ")||"error";e?.(na.CHANNEL_ERROR,new Error(S,{cause:b}))}).receive("timeout",()=>{e?.(na.TIMED_OUT)})}return this}_updatePostgresBindings(e,a){var s;const o=this.bindings.postgres_changes,c=(s=o?.length)!==null&&s!==void 0?s:0,u=[];for(let d=0;d<c;d++){const p=o[d],{filter:{event:g,schema:y,table:m,filter:w}}=p,b=e&&e[d];if(b&&b.event===g&&Yr.isFilterValueEqual(b.schema,y)&&Yr.isFilterValueEqual(b.table,m)&&Yr.isFilterValueEqual(b.filter,w))u.pu
18sh(Object.assign(Object.assign({},p),{id:b.id}));else{this.unsubscribe(),this.state=za.errored,a?.(na.CHANNEL_ERROR,new Error("mismatch between server and client bindings for postgres changes"));return}}this.bindings.postgres_changes=u,this.state!=za.errored&&a&&a(na.SUBSCRIBED)}presenceState(){return this.presence.state}async track(e,a={}){return await this.send({type:"presence",event:"track",payload:e},a.timeout||this.timeout)}async untrack(e={}){return await this.send({type:"presence",event:"untrack"},e)}on(e,a,s){const o=this.channelAdapter.isJoined()||this.channelAdapter.isJoining(),c=e===Cs.PRESENCE||e===Cs.POSTGRES_CHANGES;if(o&&c)throw this.socket.log("channel",`cannot add \`${e}\` callbacks for ${this.topic} after \`subscribe()\`.`),new Error(`cannot add \`${e}\` callbacks for ${this.topic} after \`subscribe()\`.`);return this._on(e,a,s)}async httpSend(e,a,s={}){var o;if(a==null)return Promise.reject(new Error("Payload is required for httpSend()"));const c=a instanceof ArrayBuffer||ArrayBuffer.isView(a),u={apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":c?"application/octet-stream":"application/json"};this.socket.accessTokenValue&&(u.Authorization=`Bearer ${this.socket.accessTokenValue}`);const d=new URL(this.broadcastEndpointURL);d.pathname+=`/${encodeURIComponent(this.subTopic)}/events/${encodeURIComponent(e)}`,this.private&&d.searchParams.set("private","true");const p={method:"POST",headers:u,body:c?a:JSON.stringify(a)},g=await this._fetchWithTimeout(d.toString(),p,(o=s.timeout)!==null&&o!==void 0?o:this.timeout);if(g.status===202)return{success:!0};if(g.status===404)return Promise.reject(new Error("httpSend() requires Realtime server v2.97.0 or newer; the endpoint returned 404. Update your Supabase CLI to a recent version, or upgrade the Realtime server in your self-hosted setup. See https://github.com/supabase/supabase-js/blob/master/packages/core/realtime-js/migrations/httpsend-server-version.md"));let y=g.statusText;try{const m=await g.json();y=m.error||m.message||y}catch{}return Promise.reject(new Error(y))}async send(e,a={}){var s,o;if(!this.channelAdapter.canPush()&&e.type==="broadcast"){console.warn("Realtime send() is automatically falling back to REST API. This behavior will be deprecated 
18in the future. Please use httpSend() explicitly for REST delivery.");const{event:c,payload:u}=e,d={apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"};this.socket.accessTokenValue&&(d.Authorization=`Bearer ${this.socket.accessTokenValue}`);const p={method:"POST",headers:d,body:JSON.stringify({messages:[{topic:this.subTopic,event:c,payload:u,private:this.private}]})};try{const g=await this._fetchWithTimeout(this.broadcastEndpointURL,p,(s=a.timeout)!==null&&s!==void 0?s:this.timeout);return await((o=g.body)===null||o===void 0?void 0:o.cancel()),g.ok?"ok":"error"}catch(g){return g instanceof Error&&g.name==="AbortError"?"timed out":"error"}}else return new Promise(c=>{var u,d,p;const g=this.channelAdapter.push(e.type,e,a.timeout||this.timeout);e.type==="broadcast"&&!(!((p=(d=(u=this.params)===null||u===void 0?void 0:u.config)===null||d===void 0?void 0:d.broadcast)===null||p===void 0)&&p.ack)&&c("ok"),g.receive("ok",()=>c("ok")),g.receive("error",()=>c("error")),g.receive("timeout",()=>c("timed out"))})}updateJoinPayload(e){this.channelAdapter.updateJoinPayload(e)}async unsubscribe(e=this.timeout){return new Promise(a=>{this.channelAdapter.unsubscribe(e).receive("ok",()=>a("ok")).receive("timeout",()=>a("timed out")).receive("error",()=>a("error"))})}teardown(){this.channelAdapter.teardown()}async _fetchWithTimeout(e,a,s){const o=new AbortController,c=setTimeout(()=>o.abort(),s),u=await this.socket.fetch(e,Object.assign(Object.assign({},a),{signal:o.signal}));return clearTimeout(c),u}_on(e,a,s){const o=e.toLocaleLowerCase(),c=a?.filter;(c instanceof YE||typeof c=="object"&&c!==null&&typeof c.build=="function")&&(a=Object.assign(Object.assign({},a),{filter:c.build()}));const u=this.channelAdapter.on(e,s),d={type:o,filter:a,callback:s,ref:u};return this.bindings[o]?this.bindings[o].push(d):this.bindings[o]=[d],this._updateFilterMessage(),this}_onClose(e){this.channelAdapter.onClose(e)}_onError(e){this.channelAdapter.onError(e)}_updateFilterMessage(){this.channelAdapter.updateFilterBindings((e,a,s)=>{var o,c,u,d,p,g,y;const m=e.event.toLocaleLowerCase();if(this._notThisChannelEvent(m,s))return!1;const w=(o=this.bindings[m])===null||o===void 0?void 0:o.find(b=>b.ref===e.ref);if(!w)return!0;if(["broadcast","presence","postgres_changes"].includes(m))if("id"in w){const b=w.id,S=(c=w.filter)===null||c===void 0?void 0:c.event;return b&&((u=a.ids)===null||u===void 0?void 0:u.includes(b))&&(S==="*"||S?.toLocaleLowerCase()===((d=a.data)===null||d===void 0?void 0:d.type.toLocaleLowerCase()))}else{const b=(g=(p=w?.filter)===null||p===void 0?void 0:p.event)===null||g===void 0?void 0:g.toLocaleLowerCase();return b==="*"||b===((y=a?.event)===null||y===void 0?void 0:y.toLocaleLowerCase())}else return w.type.toLocaleLowerCase()===m})}_notThisChannelEvent(e,a){const{close:s,error:o,leave:c,join:u}=Ab;return a&&[s,o,c,u].includes(e)&&a!==this.joinPush.ref}_updateFilterTransform(){this.channelAdapter.updatePayloadTransform((e,a,s)=>{if(typeof a=="object"&&"ids"in a){const o=a.data,{schema:c,table:u,commit_timestamp:d,type:p,errors:g}=o;return Object.assign(Object.assign({},{schema:c,table:u,commit_timestamp:d,eventType:p,new:{},old:{},errors:g}),this._getPayloadRecords(o))}return a})}copyBindings(e){if(this.joinedOnce)throw new Error("cannot copy bindings into joined channel");for(const a in e.bindings)for(const s of e.bindings[a])this._on(s.type,s.filter,s.callback)}static isFilterValueEqual(e,a){return(e??void 0)===(a??void 0)}_getPayloadRecords(e){const a={new:{},old:{}};return(e.type==="INSERT"||e.type==="UPDATE")&&(a.new=kv(e.columns,e.record)),(e.type==="UPDATE"||e.type==="DELETE")&&(a.old=kv(e.columns,e.old_record)),a}}class QE{constructor(e,a){this.socket=new zE(e,a)}get timeout(){return this.socket.timeout}get endPoint(){return this.socket.endPoint}get transport(){return this.socket.transport}get heartbeatIntervalMs(){return this.socket.heartbeatIntervalMs}get heartbeatCallback(){return this.socket.heartbeatCallback}set heartbeatCallback(e){this.socket.heartbeatCallback=e}get heartbeatTimer(){return this.socket.heartbeatTimer}get pendingHeartbeatRef(){return this.socket.pendingHeartbeatRef}get reconnectTimer(){return this.socket.reconnectTimer}get vsn(){return this.socket.vsn}get encode(){return this.socket.encode}get decode(){return this.socket.decode}get reconnectAfterMs(){return this.socket.reconnectAfterMs}get sendBuffer(){return this.socket.sendBuffer}get stateChangeCallbacks(){return this.socket.stateChangeCallbacks}connect(){this.socket.connect()}disconnect(e,a,s,o=1e4){return new Promise(c=>{setTimeout(()=>c("timeout"),o),this.socket.disconnect(()=>{e(),c("ok")},a,s)})}push(e){this.socket.push(e)}log(e,a,s){this.socket.log(e,a,s)}makeRef(){return this.socket.makeRef()}onOpen(e){this.socket.onOpen(e)}onClose(e){this.socket.onClose(e)}onError(e){this.socket.onError(e)}onMessage(e){this.socket.onMessage(e)}isConnected(){return this.socket.isConnected()}isConnecting(){return this.socket.connectionState()==Md.connecting}isDisconnecting(){return this.socket.connectionState()==Md.closing}connectionState(){return this.socket.connectionState()}endPointURL(){return this.socket.endPointURL()}sendHeartbeat(){this.socket.sendHeartbeat()}getSocket(){return this.socket}}const Cv={HEARTBEAT_INTERVAL:25e3},JE=[1e3,2e3,5e3,1e4],ZE=1e4;function XE(){const t=new Map;return{get length(){return t.size},clear(){t.clear()},getItem(e){return t.has(e)?t.get(e):null},key(e){var a;return(a=Array.from(t.keys())[e])!==null&&a!==void 0?a:null},removeItem(e){t.delete(e)},setItem(e,a){t.set(e,String(a))}}}function ex(){try{if(typeof globalThis<"u"&&globalThis.sessionStorage)return globalThis.sessionStorage}catch{}return XE()}const tx=`
19  addEventListener("message", (e) => {
20    if (e.data.event === "start") {
21      setInterval(() => postMessage({ event: "keepAlive" }), e.data.interval);
22    }
23  });`;class nx{get endPoint(){return this.socketAdapter.endPoint}get timeout(){return this.socketAdapter.timeout}get transport(){return this.socketAdapter.transport}get heartbeatCallback(){return this.socketAdapter.heartbeatCallback}get heartbeatIntervalMs(){return this.socketAdapter.heartbeatIntervalMs}get heartbeatTimer(){return this.worker?this._workerHeartbeatTimer:this.socketAdapter.heartbeatTimer}get pendingHeartbeatRef(){return this.worker?this._pendingWorkerHeartbeatRef:this.socketAdapter.pendingHeartbeatRef}get reconnectTimer(){return this.socketAdapter.reconnectTimer}get vsn(){return this.socketAdapter.vsn}get encode(){return this.socketAdapter.encode}get decode(){return this.socketAdapter.decode}get reconnectAfterMs(){return this.socketAdapter.reconnectAfterMs}get sendBuffer(){return this.socketAdapter.sendBuffer}get stateChangeCallbacks(){return this.socketAdapter.stateChangeCallbacks}constructor(e,a){var s;if(this.channels=new Array,this.accessTokenValue=null,this.accessToken=null,this.apiKey=null,this.httpEndpoint="",this.headers={},this.params={}
23,this.ref=0,this.serializer=new kE,this._manuallySetToken=!1,this._authPromise=null,this._workerHeartbeatTimer=void 0,this._pendingWorkerHeartbeatRef=null,this._pendingDisconnectTimer=null,this._disconnectOnEmptyChannelsAfterMs=0,this._resolveFetch=c=>c?(...u)=>c(...u):(...u)=>fetch(...u),!(!((s=a?.params)===null||s===void 0)&&s.apikey))throw new Error("API key is required to connect to Realtime");this.apiKey=a.params.apikey;const o=this._initializeOptions(a);this.socketAdapter=new QE(e,o),this.httpEndpoint=Eb(e),this.fetch=this._resolveFetch(a?.fetch)}connect(){if(!(this.isConnecting()||this.isDisconnecting()||this.isConnected())){this.accessToken&&!this._authPromise&&this._setAuthSafely("connect"),this._setupConnectionHandlers();try{this.socketAdapter.connect()}catch(e){const a=e.message;throw new Error(`WebSocket not available: ${a}`)}this._handleNodeJsRaceCondition()}}endpointURL(){return this.socketAdapter.endPointURL()}async disconnect(e,a){return this._cancelPendingDisconnect(),this.isDisconnecting()?"ok":await this.socketAdapter.disconnect(()=>{clearInterval(this._workerHeartbeatTimer),this._terminateWorker()},e,a)}getChannels(){return this.channels}async removeChannel(e){const a=await e.unsubscribe();return a==="ok"&&e.teardown(),a}async removeAllChannels(){const e=this.channels.map(async s=>{const o=await s.unsubscribe();return s.teardown(),o}),a=await Promise.all(e);return await this.disconnect(),a}log(e,a,s){this.socketAdapter.log(e,a,s)}connectionState(){return this.socketAdapter.connectionState()||Md.closed}isConnected(){return this.socketAdapter.isConnected()}isConnecting(){return this.socketAdapter.isConnecting()}isDisconnecting(){return this.socketAdapter.isDisconnecting()}channel(e,a={config:{}}){const s=`realtime:${e}`,o=this.getChannels().find(c=>c.topic===s);if(o)return o;{const c=new Yr(`realtime:${e}`,a,this);return this._cancelPendingDisconnect(),this.channels.push(c),c}}push(e){this.socketAdapter.push(e)}async setAuth(e=null){this._authPromise=this._performAuth(e);try{await this._authPromise}finally{this._authPromise=null}}_isManualToken(){return this._manuallySetToken}async sendHeartbeat(){this.socketAdapter.sendHeartbeat()}onHeartbeat(e){this.socketAdapter.heartbeatCallback=this._wrapHeartbeatCallback(e)}_makeRef(){return this.socketAdapter.makeRef()}_remove(e){this.channels=this.channels.filter(a=>a.topic!==e.topic),this.channels.length===0&&(this.log("transport","no channels remaining, scheduling disconnect"),this._schedulePendingDisconnect())}_schedulePendingDisconnect(){if(this._cancelPendingDisconnect(),this._disconnectOnEmptyChannelsAfterMs===0){this.log("transport","disconnecting immediately - no channels"),this.disconnect();return}
23this._pendingDisconnectTimer=setTimeout(()=>{this._pendingDisconnectTimer=null,this.channels.length===0&&(this.log("transport","deferred disconnect fired - no channels, disconnecting"),this.disconnect())},this._disconnectOnEmptyChannelsAfterMs),this.log("transport",`deferred disconnect scheduled in ${this._disconnectOnEmptyChannelsAfterMs}ms`)}_cancelPendingDisconnect(){this._pendingDisconnectTimer!==null&&(this.log("transport","pending disconnect cancelled - channel activity detected"),clearTimeout(this._pendingDisconnectTimer),this._pendingDisconnectTimer=null)}async _performAuth(e=null){let a,s=!1;if(e)a=e,s=!0;else if(this.accessToken)try{a=await this.accessToken()}catch(o){this.log("error","Error fetching access token from callback",o),a=this.accessTokenValue}else a=this.accessTokenValue;s?this._manuallySetToken=!0:this.accessToken&&(this._manuallySetToken=!1),this.accessTokenValue!=a&&(this.accessTokenValue=a,this.channels.forEach(o=>{const c={access_token:a,version:yE};a&&o.updateJoinPayload(c),o.joinedOnce&&o.channelAdapter.isJoined()&&o.channelAdapter.push(Ab.access_token,{access_token:a})}))}async _waitForAuthIfNeeded(){this._authPromise&&await this._authPromise}_setAuthSafely(e="general"){this._isManualToken()||this.setAuth().catch(a=>{this.log("error",`Error setting auth in ${e}`,a)})}_setupConnectionHandlers(){this.socketAdapter.onOpen(()=>{(this._authPromise||(this.accessToken&&!this.accessTokenValue?this.setAuth():Promise.resolve())).catch(a=>{this.log("error","error waiting for auth on connect",a)}),this.worker&&!this.workerRef&&this._startWorkerHeartbeat()}),this.socketAdapter.onClose(()=>{this.worker&&this.workerRef&&this._terminateWorker()}),this.socketAdapter.onMessage(e=>{e.ref&&e.ref===this._pendingWorkerHeartbeatRef&&(this._pendingWorkerHeartbeatRef=null)})}_handleNodeJsRaceCondition(){this.socketAdapter.isConnected()&&this.socketAdapter.getSocket().onConnOpen()}_wrapHeartbeatCallback(e){return(a,s)=>{a!=="disconnected"&&(a=="sent"&&this._setAuthSafely(),e&&e(a,s))}}_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=a=>{this.log("worker","worker error",a.message),this._terminateWorker(),this.disconnect()},this.workerRef.onmessage=a=>{a.data.event==="keepAlive"&&this.sendHeartbeat()},this.workerRef.postMessage({event:"start",interval:this.heartbeatIntervalMs})}_terminateWorker(){this.workerRef&&(this.log("worker","terminating worker"),this.workerRef.terminate(),this.workerRef=void 0)}_workerObjectUrl(e){let a;if(e)a=e;else{const s=new Blob([tx],{type:"application/javascript"});a=URL.createObjectURL(s)}return a}_initializeOptions(e){var a,s,o,c,u,d,p,g,y,m,w,b;this.worker=(a=e?.worker)!==null&&a!==void 0?a:!1,this.accessToken=(s=e?.accessToken)!==null&&s!==void 0?s:null;const S={};S.timeout=(o=e?.timeout)!==null&&o!==void 0?o:bE,S.heartbeatIntervalMs=(c=e?.heartbeatIntervalMs)!==null&&c!==void 0?c:Cv.HEARTBEAT_INTERVAL,this._disconnectOnEmptyChannelsAfterMs=(u=e?.disconnectOnEmptyChannelsAfterMs)!==null&&u!==void 0?u:2*((d=e?.heartbeatIntervalMs)!==null&&d!==void 0?d:Cv.HEARTBEAT_INTERVAL),S.transport=(p=e?.transport)!==null&&p!==void 0?p:gE.getWebSocketConstructor(),S.params=e?.params,S.logger=e?.logger,S.heartbeatCallback=this._wrapHeartbeatCallback(e?.heartbeatCallback),S.sessionStorage=(g=e?.sessionStorage)!==null&&g!==void 0?g:ex(),S.reconnectAfterMs=(y=e?.reconnectAfterMs)!==null&&y!==void 0?y:(B=>JE[B-1]||ZE);let A,_;const C=(m=e?.vsn)!==null&&m!==void 0?m:wE;switch(C){case vE:A=(B,j)=>j(JSON.stringify(B)),_=(B,j)=>j(JSON.parse(B));break;case Rb:A=this.serializer.encode.bind(this.serializer),_=this.serializer.decode.bind(this.serializer);break;default:throw new Error(`Unsupported serializer version: ${S.vsn}`)}if(S.vsn=C,S.encode=(w=e?.encode)!==null&&w!==void 0?w:A,S.decode=(b=e?.decode)!==null&&b!==void 0?b:_,S.beforeReconnect=this._reconnectAuth.bind(this),(e?.logLevel||e?.log_level)&&(this.logLevel=e.logLevel||e.log_level,S.params=Object.assign(Object.assign({},S.params),{log_level:this.logLevel})),this.worker){if(typeof window<"u"&&!window.Worker)throw new Error("Web Worker is not supported");this.workerUrl=e?.workerUrl,S.autoSendHeartbeat=!this.worker}return S}async _reconnectAuth(){await this._waitForAuthIfNeeded(),this.isConnected()||this.connect()}}
23var no=class extends Error{constructor(t,e){super(t),this.name="IcebergError",this.status=e.status,this.icebergType=e.icebergType,this.icebergCode=e.icebergCode,this.details=e.details,this.isCommitStateUnknown=e.icebergType==="CommitStateUnknownException"||[500,502,504].includes(e.status)&&e.icebergType?.includes("CommitState")===!0}isNotFound(){return this.status===404}isConflict(){return this.status===409}isAuthenticationTimeout(){return this.status===419}};function ax(t,e,a){const s=new URL(e,t);if(a)for(const[o,c]of Object.entries(a))c!==void 0&&s.searchParams.set(o,c);return s.toString()}async function ix(t){return!t||t.type==="none"?{}:t.type==="bearer"?{Authorization:`Bearer ${t.token}`}:t.type==="header"?{[t.name]:t.value}:t.type==="custom"?await t.getHeaders():{}}function sx(t){const e=t.fetchImpl??globalThis.fetch;return{async request({method:a,path:s,query:o,body:c,headers:u}){const d=ax(t.baseUrl,s,o),p=await ix(t.auth),g=await e(d,{method:a,headers:{...c?{"Content-Type":"application/json"}:{},...p,...u},body:c?JSON.stringify(c):void 0}),y=await g.text(),m=(g.headers.get("content-type")||"").includes("application/json"),w=m&&y?JSON.parse(y):y;if(!g.ok){const b=m?w:void 0,S=b?.error;throw new no(S?.message??`Request failed with status ${g.status}`,{status:g.status,icebergType:S?.type,icebergCode:S?.code,details:b})}return{status:g.status,headers:g.headers,data:w}}}}function Vl(t){return t.join("�")}var rx=class{constructor(t,e=""){this.client=t,this.prefix=e}async listNamespaces(t){const e=t?{parent:Vl(t.namespace)}:void 0;return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces`,query:e})).data.namespaces.map(s=>({namespace:s}))}async createNamespace(t,e){const a={namespace:t.namespace,properties:e?.properties};return(await this.client.request({method:"POST",path:`${this.prefix}/namespaces`,body:a})).data}async dropNamespace(t){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${Vl(t.namespace)}`})}async loadNamespaceMetadata(t){return{properties:(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${Vl(t.namespace)}`})).data.properties}}async namespaceExists(t){try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${Vl(t.namespace)}`}),!0}catch(e){if(e instanceof no&&e.status===404)return!1;throw e}}async createNamespaceIfNotExists(t,e){try{return await this.createNamespace(t,e)}catch(a){if(a instanceof no&&a.status===409)return;throw a}}};function vs(t){return t.join("�")}var ox=class{constructor(t,e="",a){this.client=t,this.prefix=e,this.accessDelegation=a}async listTables(t){return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${vs(t.namespace)}/tables`})).data.identifiers}async createTable(t,e){const a={};return this.accessDelegation&&(a["X-Iceberg-Access-Delegation"]=this.accessDelegation),(await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${vs(t.namespace)}/tables`,body:e,headers:a})).data.metadata}async updateTable(t,e){const a=await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${vs(t.namespace)}/tables/${t.name}`,body:e});return{"metadata-location":a.data["metadata-location"],metadata:a.data.metadata}}async dropTable(t,e){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${vs(t.namespace)}/tables/${t.name}`,query:{purgeRequested:String(e?.purge??!1)}})}async loadTable(t){const e={};return this.accessDelegation&&(e["X-Iceberg-Access-Delegation"]=this.accessDelegation),(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${vs(t.namespace)}/tables/${t.name}`,headers:e})).data.metadata}async tableExists(t){const e={};this.accessDelegation&&(e["X-Iceberg-Access-Delegation"]=this.accessDelegation);try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${vs(t.namespace)}/tables/${t.name}`,headers:e}),!0}catch(a){if(a instanceof no&&a.status===404)return!1;throw a}}async createTableIfNotExists(t,e){try{return await this.createTable(t,e)}catch(a){if(a instanceof no&&a.status===409)return await this.loadTable({namespace:t.namespace,name:e.name});throw a}}},lx=class{constructor(t){let e="v1";t.catalogName&&(e+=`/${t.catalogName}`);const a=t.baseUrl.endsWith("/")?t.baseUrl:`${t.baseUrl}/`;this.client=sx({baseUrl:a,auth:t.auth,fetchImpl:t.fetch}),this.accessDelegation=t.accessDelegation?.join(","),this.namespaceOps=new rx(this.client,e),this.tableOps=new ox(this.client,e,this.accessDelegation)}async listNamespaces(t){return this.namespaceOps.listNamespaces(t)}async createNamespace(t,e){return this.namespaceOps.createNamespace(t,e)}async dropNamespace(t){await this.namespaceOps.dropNamespace(t)}async loadNamespaceMetadata(t){return this.namespaceOps.loadNamespaceMetadata(t)}async listTables(t){return this.tableOps.listTables(t)}
23async createTable(t,e){return this.tableOps.createTable(t,e)}async updateTable(t,e){return this.tableOps.updateTable(t,e)}async dropTable(t,e){await this.tableOps.dropTable(t,e)}async loadTable(t){return this.tableOps.loadTable(t)}async namespaceExists(t){return this.namespaceOps.namespaceExists(t)}async tableExists(t){return this.tableOps.tableExists(t)}async createNamespaceIfNotExists(t,e){return this.namespaceOps.createNamespaceIfNotExists(t,e)}async createTableIfNotExists(t,e){return this.tableOps.createTableIfNotExists(t,e)}};function ao(t){"@babel/helpers - typeof";return ao=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ao(t)}function cx(t,e){if(ao(t)!="object"||!t)return t;var a=t[Symbol.toPrimitive];if(a!==void 0){var s=a.call(t,e);if(ao(s)!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function ux(t){var e=cx(t,"string");return ao(e)=="symbol"?e:e+""}function hx(t,e,a){return(e=ux(e))in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}function Ev(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),a.push.apply(a,s)}return a}function ce(t){for(var e=1;e<arguments.length;e++){var a=arguments[e]!=null?arguments[e]:{};e%2?Ev(Object(a),!0).forEach(function(s){hx(t,s,a[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):Ev(Object(a)).forEach(function(s){Object.defineProperty(t,s,Object.getOwnPropertyDescriptor(a,s))})}return t}var Bc=class extends Error{constructor(t,e="storage",a,s){super(t),this.__isStorageError=!0,this.namespace=e,this.name=e==="vectors"?"StorageVectorsError":"StorageError",this.status=a,this.statusCode=s}toJSON(){return{name:this.name,message:this.message,status:this.status,statusCode:this.statusCode}}};function jc(t){return typeof t=="object"&&t!==null&&"__isStorageError"in t}var zd=class extends Bc{constructor(t,e,a,s="storage"){super(t,s,e,a),this.name=s==="vectors"?"StorageVectorsApiError":"StorageApiError",this.status=e,this.statusCode=a}toJSON(){return ce({},super.toJSON())}},Ob=class extends Bc{constructor(t,e,a="storage"){super(t,a),this.name=a==="vectors"?"StorageVectorsUnknownError":"StorageUnknownError",this.originalError=e}};function uc(t,e,a){const s=ce({},t),o=e.toLowerCase();for(const c of Object.keys(s))c.toLowerCase()===o&&delete s[c];return s[o]=a,s}function dx(t){const e={};for(const[a,s]of Object.entries(t))e[a.toLowerCase()]=s;return e}const fx=t=>t?(...e)=>t(...e):(...e)=>fetch(...e),px=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)},Nd=t=>{if(Array.isArray(t))return t.map(a=>Nd(a));if(typeof t=="function"||t!==Object(t))return t;const e={};return Object.entries(t).forEach(([a,s])=>{const o=a.replace(/([-_][a-z])/gi,c=>c.toUpperCase().replace(/[-_]/g,""));e[o]=Nd(s)}),e},gx=t=>!t||typeof t!="string"||t.length===0||t.length>100||t.trim()!==t||t.includes("/")||t.includes("\\")?!1:/^[\w!.\*'() &$@=;:+,?-]+$/.test(t),xv=t=>{if(typeof t=="object"&&t!==null){const e=t;if(typeof e.msg=="string")return e.msg;if(typeof e.message=="string")return e.message;if(typeof e.error_description=="string")return e.error_description;if(typeof e.error=="string")return e.error;if(typeof e.error=="object"&&e.error!==null){const a=e.error;if(typeof a.message=="string")return a.message}}return JSON.stringify(t)},mx=async(t,e,a,s)=>{if(t!==null&&typeof t=="object"&&"json"in t&&typeof t.json=="function"){const o=t;let c=parseInt(String(o.status),10);Number.isFinite(c)||(c=500),o.json().then(u=>{const d=u?.statusCode||u?.code||c+"";e(new zd(xv(u),c,d,s))}).catch(()=>{const u=c+"";e(new zd(o.statusText||`HTTP ${c} error`,c,u,s))})}else e(new Ob(xv(t),t,s))},yx=(t,e,a,s)=>{const o={method:t,headers:e?.headers||{}};if(t==="GET"||t==="HEAD"||!s)return ce(ce({},o),a);if(px(s)){var c;const u=e?.headers||{};let d;for(const[p,g]of Object.entries(u))p.toLowerCase()==="content-type"&&(d=g);o.headers=uc(u,"Content-Type",(c=d)!==null&&c!==void 0?c:"application/json"),o.body=JSON.stringify(s)}else o.body=s;return e?.duplex&&(o.duplex=e.duplex),ce(ce({},o),a)};async function Ir(t,e,a,s,o,c,u){return new Promise((d,p)=>{t(a,yx(e,s,o,c)).then(g=>{if(!g.ok)throw g;if(s?.noResolveJson)return g;if(u==="vectors"){const y=g.headers.get("content-type");if(g.headers.get("content-length")==="0"||g.status===204)return{};if(!y||!y.includes("application/json"))return{}}return g.json()}).then(g=>d(g)).catch(g=>mx(g,p,s,u))})}function Bb(t="storage"){return{get:async(e,a,s,o)=>Ir(e,"GET",a,s,o,void 0,t),post:async(e,a,s,o,c)=>Ir(e,"POST",a,o,c,s,t),put:async(e,a,s,o,c)=>Ir(e,"PUT",a,o,c,s,t),head:async(e,a,s,o)=>Ir(e,"HEAD",a,ce(ce({},s),{},{noResolveJson:!0}),o,void 0,t),remove:async(e,a,s,o,c)=>Ir(e,"DELETE",a,o,c,s,t)}}const vx=Bb("storage"),{get:io,post:gn,put:Ud,head:wx,remove:so}=vx,Qt=Bb("vectors");var Ps=class{constructor(t,e={},a,s="storage"){this.shouldThrowOnError=!1,this.url=t,this.headers=dx(e),this.fetch=fx(a),this.namespace=s}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(t,e){return this.headers=uc(this.headers,t,e),this}async handleOperation(t){var e=this;try{return{data:await t(),error:null}}catch(a){if(e.shouldThrowOnError)throw a;if(jc(a))return{data:null,error:a};throw a}}};let jb;jb=Symbol.toStringTag;var bx=class{constructor(t,e){this.downloadFn=t,this.shouldThrowOnError=e,this[jb]="StreamDownloadBuilder",this.promise=null}
23then(t,e){return this.getPromise().then(t,e)}catch(t){return this.getPromise().catch(t)}finally(t){return this.getPromise().finally(t)}getPromise(){return this.promise||(this.promise=this.execute()),this.promise}async execute(){var t=this;try{return{data:(await t.downloadFn()).body,error:null}}catch(e){if(t.shouldThrowOnError)throw e;if(jc(e))return{data:null,error:e};throw e}}};let Mb;Mb=Symbol.toStringTag;var Sx=class{constructor(t,e){this.downloadFn=t,this.shouldThrowOnError=e,this[Mb]="BlobDownloadBuilder",this.promise=null}asStream(){return new bx(this.downloadFn,this.shouldThrowOnError)}then(t,e){return this.getPromise().then(t,e)}catch(t){return this.getPromise().catch(t)}finally(t){return this.getPromise().finally(t)}getPromise(){return this.promise||(this.promise=this.execute()),this.promise}async execute(){var t=this;try{return{data:await(await t.downloadFn()).blob(),error:null}}catch(e){if(t.shouldThrowOnError)throw e;if(jc(e))return{data:null,error:e};throw e}}};const pd={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},Ov={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};var kx=class extends Ps{constructor(t,e={},a,s){super(t,e,s,"storage"),this.bucketId=a}async uploadOrUpdate(t,e,a,s){var o=this;return o.handleOperation(async()=>{let c;const u=ce(ce({},Ov),s);let d=ce(ce({},o.headers),t==="POST"&&{"x-upsert":String(u.upsert)});const p=u.metadata;if(typeof Blob<"u"&&a instanceof Blob?(c=new FormData,c.append("cacheControl",u.cacheControl),p&&c.append("metadata",o.encodeMetadata(p)),c.append("",a)):typeof FormData<"u"&&a instanceof FormData?(c=a,c.has("cacheControl")||c.append("cacheControl",u.cacheControl),p&&!c.has("metadata")&&c.append("metadata",o.encodeMetadata(p))):(c=a,d["cache-control"]=`max-age=${u.cacheControl}`,d["content-type"]=u.contentType,p&&(d["x-metadata"]=o.toBase64(o.encodeMetadata(p))),(typeof ReadableStream<"u"&&c instanceof ReadableStream||c&&typeof c=="object"&&"pipe"in c&&typeof c.pipe=="function")&&!u.duplex&&(u.duplex="half")),s?.headers)for(const[w,b]of Object.entries(s.headers))d=uc(d,w,b);const g=o._removeEmptyFolders(e),y=o._getFinalPath(g),m=await(t=="PUT"?Ud:gn)(o.fetch,`${o.url}/object/${y}`,c,ce({headers:d},u?.duplex?{duplex:u.duplex}:{}));return{path:g,id:m.Id,fullPath:m.Key}})}async upload(t,e,a){return this.uploadOrUpdate("POST",t,e,a)}async uploadToSignedUrl(t,e,a,s){var o=this;const c=o._removeEmptyFolders(t),u=o._getFinalPath(c),d=new URL(o.url+`/object/upload/sign/${u}`);return d.searchParams.set("token",e),o.handleOperation(async()=>{let p;const g=ce(ce({},Ov),s);let y=ce(ce({},o.headers),{"x-upsert":String(g.upsert)});const m=g.metadata;if(typeof Blob<"u"&&a instanceof Blob?(p=new FormData,p.append("cacheControl",g.cacheControl),m&&p.append("metadata",o.encodeMetadata(m)),p.append("",a)):typeof FormData<"u"&&a instanceof FormData?(p=a,p.has("cacheControl")||p.append("cacheControl",g.cacheControl),m&&!p.has("metadata")&&p.append("metadata",o.encodeMetadata(m))):(p=a,y["cache-control"]=`max-age=${g.cac
23heControl}`,y["content-type"]=g.contentType,m&&(y["x-metadata"]=o.toBase64(o.encodeMetadata(m))),(typeof ReadableStream<"u"&&p instanceof ReadableStream||p&&typeof p=="object"&&"pipe"in p&&typeof p.pipe=="function")&&!g.duplex&&(g.duplex="half")),s?.headers)for(const[w,b]of Object.entries(s.headers))y=uc(y,w,b);return{path:c,fullPath:(await Ud(o.fetch,d.toString(),p,ce({headers:y},g?.duplex?{duplex:g.duplex}:{}))).Key}})}async createSignedUploadUrl(t,e){var a=this;return a.handleOperation(async()=>{let s=a._getFinalPath(t);const o=ce({},a.headers);e?.upsert&&(o["x-upsert"]="true");const c=await gn(a.fetch,`${a.url}/object/upload/sign/${s}`,{},{headers:o}),u=new URL(a.url+c.url),d=u.searchParams.get("token");if(!d)throw new Bc("No token returned by API");return{signedUrl:u.toString(),path:t,token:d}})}async update(t,e,a){return this.uploadOrUpdate("PUT",t,e,a)}async move(t,e,a){var s=this;return s.handleOperation(async()=>await gn(s.fetch,`${s.url}/object/move`,{bucketId:s.bucketId,sourceKey:t,destinationKey:e,destinationBucket:a?.destinationBucket},{headers:s.headers}))}async copy(t,e,a){var s=this;return s.handleOperation(async()=>({path:(await gn(s.fetch,`${s.url}/object/copy`,{bucketId:s.bucketId,sourceKey:t,destinationKey:e,destinationBucket:a?.destinationBucket},{headers:s.headers})).Key}))}async createSignedUrl(t,e,a){var s=this;return s.handleOperation(async()=>{let o=s._getFinalPath(t);const c=typeof a?.transform=="object"&&a.transform!==null&&Object.keys(a.transform).length>0;let u=await gn(s.fetch,`${s.url}/object/sign/${o}`,ce({expiresIn:e},c?{transform:a.transform}:{}),{headers:s.headers});const d=new URLSearchParams;a?.download&&d.set("download",a.download===!0?"":a.download),a?.cacheNonce!=null&&d.set("cacheNonce",String(a.cacheNonce));const p=d.toString();return{signedUrl:encodeURI(`${s.url}${u.signedURL}${p?`&${p}`:""}`)}})}async createSignedUrls(t,e,a){var s=this;return s.handleOperation(async()=>{const o=await gn(s.fetch,`${s.url}/object/sign/${s.bucketId}`,{expiresIn:e,paths:t},{headers:s.headers}),c=new URLSearchParams;a?.download&&c.set("download",a.download===!0?"":a.download),a?.cacheNonce!=null&&c.set("cacheNonce",String(a.cacheNonce));const u=c.toString();return o.map(d=>ce(ce({},d),{},{signedUrl:d.signedURL?encodeURI(`${s.url}${d.signedURL}${u?`&${u}`:""}`):null}))})}download(t,e,a){const s=typeof e?.transform=="object"&&e.transform!==null&&Object.keys(e.transform).length>0?"render/image/authenticated":"object",o=new URLSearchParams;e?.transform&&this.applyTransformOptsToQuery(o,e.transform),e?.cacheNonce!=null&&o.set("cacheNonce",String(e.cacheNonce));const c=o.toString(),u=this._getFinalPath(t),d=()=>io(this.fetch,`${this.url}/${s}/${u}${c?`?${c}`:""}`,{headers:this.headers,noResolveJson:!0},a);return new Sx(d,this.shouldThrowOnError)}async info(t){var e=this;const a=e._getFinalPath(t);return e.handleOperation(async()=>Nd(await io(e.fetch,`${e.url}/object/info/${a}`,{headers:e.headers})))}async exists(t){var e=this;const a=e._getFinalPath(t);try{return await wx(e.fetch,`${e.url}/object/${a}`,{headers:e.headers}),{data:!0,error:null}}catch(o){if(e.shouldThrowOnError)throw o;if(jc(o)){var s;const c=o instanceof zd?o.status:o instanceof Ob?(s=o.originalError)===null||s===void 0?void 0:s.status:void 0;if(c!==void 0&&[400,404].includes(c))return{data:!1,error:o}}throw o}}getPublicUrl(t,e){const a=this._getFinalPath(t),s=new URLSearchParams;e?.download&&s.set("download",e.download===!0?"":e.download),e?.transform&&this.applyTransformOptsToQuery(s,e.transform),e?.cacheNonce!=null&&s.set("cacheNonce",String(e.cacheNonce));const o=s.toString(),c=typeof e?.transform=="object"&&e.transform!==null&&Object.keys(e.transform).length>0?"render/image":"object";return{data:{publicUrl:encodeURI(`${this.url}/${c}/public/${a}`)+(o?`?${o}`:"")}}}async remove(t){var e=this;return e.handleOperation(async()=>await so(e.fetch,`${e.url}/object/${e.bucketId}`,{prefixes:t},{headers:e.headers}))}async purgeCache(t,e,a){var s=this;return s.handleOperation(async()=>{const o=s._getFinalPath(t),c=new URLSearchParams;e?.transformations&&c.set("transformations","true");const u=c.toString();return await so(s.fetch,`${s.url}/cdn/${o}${u?`?${u}
23`:""}`,{},{headers:s.headers},a)})}async list(t,e,a){var s=this;return s.handleOperation(async()=>{const o=e?.sortBy?ce(ce({},pd.sortBy),e.sortBy):pd.sortBy,c=ce(ce(ce({},pd),e),{},{sortBy:o,prefix:t||""});return await gn(s.fetch,`${s.url}/object/list/${s.bucketId}`,c,{headers:s.headers},a)})}async listV2(t,e){var a=this;return a.handleOperation(async()=>{const s=ce({},t);return await gn(a.fetch,`${a.url}/object/list-v2/${a.bucketId}`,s,{headers:a.headers},e)})}encodeMetadata(t){return JSON.stringify(t)}toBase64(t){return typeof Buffer<"u"?Buffer.from(t).toString("base64"):btoa(t)}_getFinalPath(t){return`${this.bucketId}/${t.replace(/^\/+/,"")}`}_removeEmptyFolders(t){return t.replace(/^\/|\/$/g,"").replace(/\/+/g,"/")}applyTransformOptsToQuery(t,e){return e.width&&t.set("width",e.width.toString()),e.height&&t.set("height",e.height.toString()),e.resize&&t.set("resize",e.resize),e.format&&t.set("format",e.format),e.quality&&t.set("quality",e.quality.toString()),t}};const _x="2.110.3",po={"X-Client-Info":`storage-js/${_x}`};var Tx=class extends Ps{constructor(t,e={},a,s){const o=new URL(t);s?.useNewHostname&&/supabase\.(co|in|red)$/.test(o.hostname)&&!o.hostname.includes("storage.supabase.")&&(o.hostname=o.hostname.replace("supabase.","storage.supabase."));const c=o.href.replace(/\/$/,""),u=ce(ce({},po),e);super(c,u,a,"storage")}async listBuckets(t){var e=this;return e.handleOperation(async()=>{const a=e.listBucketOptionsToQueryString(t);return await io(e.fetch,`${e.url}/bucket${a}`,{headers:e.headers})})}async getBucket(t){var e=this;return e.handleOperation(async()=>await io(e.fetch,`${e.url}/bucket/${t}`,{headers:e.headers}))}async createBucket(t,e={public:!1}){var a=this;return a.handleOperation(async()=>await gn(a.fetch,`${a.url}/bucket`,{id:t,name:t,type:e.type,public:e.public,file_size_limit:e.fileSizeLimit,allowed_mime_types:e.allowedMimeTypes},{headers:a.headers}))}async updateBucket(t,e){var a=this;return a.handleOperation(async()=>await Ud(a.fetch,`${a.url}/bucket/${t}`,{id:t,name:t,public:e.public,file_size_limit:e.fileSizeLimit,allowed_mime_types:e.allowedMimeTypes},{headers:a.headers}))}async emptyBucket(t){var e=this;return e.handleOperation(async()=>await gn(e.fetch,`${e.url}/bucket/${t}/empty`,{},{headers:e.headers}))}async deleteBucket(t){var e=this;return e.handleOperation(async()=>await so(e.fetch,`${e.url}/bucket/${t}`,{},{headers:e.headers}))}async purgeBucketCache(t,e,a){var s=this;return s.handleOperation(async()=>{const o=new URLSearchParams;e?.transformations&&o.set("transformations","true");const c=o.toString();return await so(s.fetch,`${s.url}/cdn/${t}${c?`?${c}`:""}`,{},{headers:s.headers},a)})}listBucketOptionsToQueryString(t){const e={};return t&&("limit"in t&&(e.limit=String(t.limit)),"offset"in t&&(e.offset=String(t.offset)),t.search&&(e.search=t.search),t.sortColumn&&(e.sortColumn=t.sortColumn),t.sortOrder&&(e.sortOrder=t.sortOrder)),Object.keys(e).length>0?"?"+new URLSearchParams(e).toString():""}},Rx=class extends Ps{constructor(t,e={},a){const s=t.replace(/\/$/,""),o=ce(ce({},po),e);super(s,o,a,"storage")}async createBucket(t){var e=this;return e.handleOperation(async()=>await gn(e.fetch,`${e.url}/bucket`,{name:t},{headers:e.headers}))}async listBuckets(t){var e=this;return e.handleOperation(async()=>{const a=new URLSearchParams;t?.limit!==void 0&&a.set("limit",t.limit.toString()),t?.offset!==void 0&&a.set("offset",t.offset.toString()),t?.sortColumn&&a.set("sortColumn",t.sortColumn),t?.sortOrder&&a.set("sortOrder",t.sortOrder),t?.search&&a.set("search",t.search);const s=a.toString(),o=s?`${e.url}/bucket?${s}`:`${e.url}/bucket`;return await io(e.fetch,o,{headers:e.headers})})}async deleteBucket(t){var e=this;return e.handleOperation(async()=>await so(e.fetch,`${e.url}/bucket/${t}`,{},{headers:e.headers}))}from(t){var e=this;if(!gx(t))throw new Bc("Invalid bucket name: File, folder, and bucket names must follow AWS object key naming guidelines and should avoid the use of any other characters.");const a=new lx({baseUrl:this.url,catalogName:t,auth:{type:"custom",getHeaders:async()=>e.headers},fetch:this.fetch}),s=this.shouldThrowOnError;return new Proxy(a,{get(o,c){const u=o[c];return typeof u!="function"?u:async(...d)=>{try{return{data:await u.apply(o,d),error:null}}catch(p){if(s)throw p;return{data:null,error:p}}}}})}},Ax=class extends Ps{constructor(t,e={},a){const s=t.replace(/\/$/,""),o=ce(ce({},po),{},{"Content-Type":"application/json"},e);super(s,o,a,"vectors")}async createIndex(t){var e=this;return e.handleOperation(async()=>await Qt.post(e.fetch,`${e.url}/CreateIndex`,t,{headers:e.headers})||{})}async getIndex(t,e){var a=this;return a.handleOperation(async()=>await Qt.post(a.fetch,`${a.url}/GetIndex`,{vectorBucketName:t,indexName:e},{headers:a.headers}))}async listIndexes(t){var e=this;return e.handleOperation(async()=>await Qt.post(e.fetch,`${e.url}/ListIndexes`,t,{headers:e.headers}))}async deleteIndex(t,e){var a=this;return a.handleOperation(async()=>await Qt.post(a.fetch,`${a.url}/DeleteIndex`,{vectorBucketName:t,indexName:e},{headers:a.headers})||{})}},Cx=class extends Ps{constructor(t,e={},a){const s=t.replace(/\/$/,""),o=ce(ce({},po),{},{"Content-Type":"application/json"},e);super(s,o,a,"vectors")}async putVectors(t){var e=this;if(t.vectors.length<1||t.vectors.length>500)throw new Error("Vector batch size must be between 1 and 500 items");return e.handleOperation(async()=>await Qt.post(e.fetch,`${e.url}/PutVectors`,t,{headers:e.headers})||{})}async getVectors(t){var e=this;return e.handleOperation(async()=>await Qt.post(e.fetch,`${e.url}/GetVectors`,t,{headers:e.headers}))}async listVectors(t){var e=this;if(t.segmentCount!==void 0){if(t.segmentCount<1||t.segmentCount>16)throw new Error("segmentCount must be between 1 and 16");
23if(t.segmentIndex!==void 0&&(t.segmentIndex<0||t.segmentIndex>=t.segmentCount))throw new Error(`segmentIndex must be between 0 and ${t.segmentCount-1}`)}return e.handleOperation(async()=>await Qt.post(e.fetch,`${e.url}/ListVectors`,t,{headers:e.headers}))}async queryVectors(t){var e=this;return e.handleOperation(async()=>await Qt.post(e.fetch,`${e.url}/QueryVectors`,t,{headers:e.headers}))}async deleteVectors(t){var e=this;if(t.keys.length<1||t.keys.length>500)throw new Error("Keys batch size must be between 1 and 500 items");return e.handleOperation(async()=>await Qt.post(e.fetch,`${e.url}/DeleteVectors`,t,{headers:e.headers})||{})}},Ex=class extends Ps{constructor(t,e={},a){const s=t.replace(/\/$/,""),o=ce(ce({},po),{},{"Content-Type":"application/json"},e);super(s,o,a,"vectors")}async createBucket(t){var e=this;return e.handleOperation(async()=>await Qt.post(e.fetch,`${e.url}/CreateVectorBucket`,{vectorBucketName:t},{headers:e.headers})||{})}async getBucket(t){var e=this;return e.handleOperation(async()=>await Qt.post(e.fetch,`${e.url}/GetVectorBucket`,{vectorBucketName:t},{headers:e.headers}))}async listBuckets(t={}){var e=this;return e.handleOperation(async()=>await Qt.post(e.fetch,`${e.url}/ListVectorBuckets`,t,{headers:e.headers}))}async deleteBucket(t){var e=this;return e.handleOperation(async()=>await Qt.post(e.fetch,`${e.url}/DeleteVectorBucket`,{vectorBucketName:t},{headers:e.headers})||{})}},xx=class extends Ex{constructor(t,e={}){super(t,e.headers||{},e.fetch)}from(t){return new Ox(this.url,this.headers,t,this.fetch)}async createBucket(t){var e=()=>super.createBucket,a=this;return e().call(a,t)}async getBucket(t){var e=()=>super.getBucket,a=this;return e().call(a,t)}async listBuckets(t={}){var e=()=>super.listBuckets,a=this;return e().call(a,t)}async deleteBucket(t){var e=()=>super.deleteBucket,a=this;return e().call(a,t)}},Ox=class extends Ax{constructor(t,e,a,s){super(t,e,s),this.vectorBucketName=a}async createIndex(t){var e=()=>super.createIndex,a=this;return e().call(a,ce(ce({},t),{},{vectorBucketName:a.vectorBucketName}))}async listIndexes(t={}){var e=()=>super.listIndexes,a=this;return e().call(a,ce(ce({},t),{},{vectorBucketName:a.vectorBucketName}))}async getIndex(t){var e=()=>super.getIndex,a=this;return e().call(a,a.vectorBucketName,t)}async deleteIndex(t){var e=()=>super.deleteIndex,a=this;return e().call(a,a.vectorBucketName,t)}index(t){return new Bx(this.url,this.headers,this.vectorBucketName,t,this.fetch)}},Bx=class extends Cx{constructor(t,e,a,s,o){super(t,e,o),this.vectorBucketName=a,this.indexName=s}async putVectors(t){var e=()=>super.putVectors,a=this;return e().call(a,ce(ce({},t),{},{vectorBucketName:a.vectorBucketName,indexName:a.indexName}))}async getVectors(t){var e=()=>super.getVectors,a=this;return e().call(a,ce(ce({},t),{},{vectorBucketName:a.vectorBucketName,indexName:a.indexName}))}async listVectors(t={}){var e=()=>super.listVectors,a=this;return e().call(a,ce(ce({},t),{},{vectorBucketName:a.vectorBucketName,indexName:a.indexName}))}async queryVectors(t){var e=()=>super.queryVectors,a=this;return e().call(a,ce(ce({},t),{},{vectorBucketName:a.vectorBucketName,indexName:a.indexName}))}async deleteVectors(t){var e=()=>super.deleteVectors,a=this;return e().call(a,ce(ce({},t),{},{vectorBucketName:a.vectorBucketName,indexName:a.indexName}))}},jx=class extends Tx{constructor(t,e={},a,s){super(t,e,a,s)}from(t){return new kx(this.url,this.headers,t,this.fetch)}get vectors(){return new xx(this.url+"/vector",{headers:this.headers,fetch:this.fetch})}get analytics(){return new Rx(this.url+"/iceberg",this.headers,this.fetch)}};const Db="2.110.3",aa=30*1e3,Hr=3,gd=Hr*aa,Mx=2*aa,Dx="http://localhost:9999",Px="supabase.auth.token",Lx={"X-Client-Info":`gotrue-js/${Db}`},Id="X-Supabase-Api-Version",Pb={"2024-01-01":{timestamp:Date.parse("2024-01-01T00:00:00.0Z"),name:"2024-01-01"}},zx=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}$|[a-z0-9_-]{2}$)$/i,Nx=600*1e3;class ro extends Error{constructor(e,a,s){super(e),this.__isAuthError=!0,this.name="AuthError",this.status=a,this.code=s}toJSON(){return{name:this.name,message:this.message,status:this.status,code:this.code}}}function Z(t){return typeof t=="object"&&t!==null&&"__isAuthError"in t}class Ux extends ro{constructor(e,a,s){super(e,a,s),this.name="AuthApiError",this.status=a,this.code=s}}function Ix(t){return Z(t)&&t.name==="AuthApiError"}class wn extends ro{constructor(e,a){super(e),this.name="AuthUnknownError",this.originalError=a}}class Bn extends ro{constructor(e,a,s,o){super(e,s,o),this.name=a,this.status=s}}class ft extends Bn{constructor(){super("Auth session missing!","AuthSessionMissingError",400,void 0)}}function Hl(t){return Z(t)&&t.name==="AuthSessionMissingError"}class ws extends Bn{constructor(){super("Auth session or user missing","AuthInvalidToken
23ResponseError",500,void 0)}}class Gl extends Bn{constructor(e){super(e,"AuthInvalidCredentialsError",400,void 0)}}class Wl extends Bn{constructor(e,a=null){super(e,"AuthImplicitGrantRedirectError",500,void 0),this.details=null,this.details=a}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{details:this.details})}}function qx(t){return Z(t)&&t.name==="AuthImplicitGrantRedirectError"}class Bv extends Bn{constructor(e,a=null){super(e,"AuthPKCEGrantCodeExchangeError",500,void 0),this.details=null,this.details=a}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{details:this.details})}}class $x extends Bn{constructor(){super("PKCE code verifier not found in storage. This can happen if the auth flow was initiated in a different browser or device, or if the storage was cleared. For SSR frameworks (Next.js, SvelteKit, etc.), use @supabase/ssr on both the server and client to store the code verifier in cookies.","AuthPKCECodeVerifierMissingError",400,"pkce_code_verifier_not_found")}}class qd extends Bn{constructor(e,a){super(e,"AuthRetryableFetchError",a,void 0)}}function jv(t){return Z(t)&&t.name==="AuthRetryableFetchError"}class Mv extends Bn{constructor(e="Refresh result discarded: session state changed mid-flight (e.g., concurrent signOut)"){super(e,"AuthRefreshDiscardedError",409,void 0)}}function Vx(t){return Z(t)&&t.name==="AuthRefreshDiscardedError"}class Dv extends Bn{constructor(e,a,s){super(e,"AuthWeakPasswordError",a,"weak_password"),this.reasons=s}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{reasons:this.reasons})}}class hc extends Bn{constructor(e){super(e,"AuthInvalidJwtError",400,"invalid_jwt")}}const dc="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),Pv=` 	
24\r=`.split(""),Hx=(()=>{const t=new Array(128);for(let e=0;e<t.length;e+=1)t[e]=-1;for(let e=0;e<Pv.length;e+=1)t[Pv[e].charCodeAt(0)]=-2;for(let e=0;e<dc.length;e+=1)t[dc[e].charCodeAt(0)]=e;return t})();function Lv(t,e,a){if(t!==null)for(e.queue=e.queue<<8|t,e.queuedBits+=8;e.queuedBits>=6;){const s=e.queue>>e.queuedBits-6&63;a(dc[s]),e.queuedBits-=6}else if(e.queuedBits>0)for(e.queue=e.queue<<6-e.queuedBits,e.queuedBits=6;e.queuedBits>=6;){const s=e.queue>>e.queuedBits-6&63;a(dc[s]),e.queuedBits-=6}}function Lb(t,e,a){const s=Hx[t];if(s>-1)for(e.queue=e.queue<<6|s,e.queuedBits+=6;e.queuedBits>=8;)a(e.queue>>e.queuedBits-8&255),e.queuedBits-=8;else{if(s===-2)return;throw new Error(`Invalid Base64-URL character "${String.fromCharCode(t)}"`)}}function zv(t){const e=[],a=u=>{e.push(String.fromCodePoint(u))},s={utf8seq:0,codepoint:0},o={queue:0,queuedBits:0},c=u=>{Fx(u,s,a)};for(let u=0;u<t.length;u+=1)Lb(t.charCodeAt(u),o,c);return e.join("")}function Gx(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 Wx(t,e){for(let a=0;a<t.length;a+=1){let s=t.charCodeAt(a);if(s>55295&&s<=56319){const o=(s-55296)*1024&65535;s=(t.charCodeAt(a+1)-56320&65535|o)+65536,a+=1}Gx(s,e)}}function Fx(t,e,a){if(e.utf8seq===0){if(t<=127){a(t);return}for(let s=1;s<6;s+=1)if((t>>7-s&1)===0){e.utf8seq=s;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&&a(e.codepoint)}}function js(t){const e=[],a={queue:0,queuedBits:0},s=o=>{e.push(o)};for(let o=0;o<t.length;o+=1)Lb(t.charCodeAt(o),a,s);return new Uint8Array(e)}function Kx(t){const e=[];return Wx(t,a=>e.push(a)),new Uint8Array(e)}function ki(t){const e=[],a={queue:0,queuedBits:0},s=o=>{e.push(o)};return t.forEach(o=>Lv(o,a,s)),Lv(null,a,s),e.join("")}function Yx(t){return Math.round(Date.now()/1e3)+t}function Qx(){return Symbol("auth-callback")}const At=()=>typeof window<"u"&&typeof document<"u",pi={tested:!1,writable:!1},zb=()=>{if(!At())return!1;try{if(typeof globalThis.localStorage!="object")return!1}catch{return!1}if(pi.tested)return pi.writable;const t=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(t,t),globalThis.localStorage.removeItem(t),pi.tested=!0,pi.writable=!0}catch{pi.tested=!0,pi.writable=!1}return pi.writable};function Jx(t){const e={},a=new URL(t);if(a.hash&&a.hash[0]==="#")try{new URLSearchParams(a.hash.substring(1)).forEac
24h((o,c)=>{e[c]=o})}catch{}return a.searchParams.forEach((s,o)=>{e[o]=s}),e}const Nb=t=>t?(...e)=>t(...e):(...e)=>fetch(...e),Zx=t=>typeof t=="object"&&t!==null&&"status"in t&&"ok"in t&&"json"in t&&typeof t.json=="function",Rs=async(t,e,a)=>{await t.setItem(e,JSON.stringify(a))},fn=async(t,e)=>{const a=await t.getItem(e);if(!a)return null;try{return JSON.parse(a)}catch{return null}},at=async(t,e)=>{await t.removeItem(e)};class Mc{constructor(){this.promise=new Mc.promiseConstructor((e,a)=>{this.resolve=e,this.reject=a})}}Mc.promiseConstructor=Promise;function Fl(t){const e=t.split(".");if(e.length!==3)throw new hc("Invalid JWT structure");for(let s=0;s<e.length;s++)if(!zx.test(e[s]))throw new hc("JWT not in base64url format");return{header:JSON.parse(zv(e[0])),payload:JSON.parse(zv(e[1])),signature:js(e[2]),raw:{header:e[0],payload:e[1]}}}async function Xx(t){return await new Promise(e=>{setTimeout(()=>e(null),t)})}function e1(t,e){return new Promise((s,o)=>{(async()=>{for(let c=0;c<1/0;c++)try{const u=await t(c);if(!e(c,null,u)){s(u);return}}catch(u){if(!e(c,u)){o(u);return}}})()})}function t1(t){return("0"+t.toString(16)).substr(-2)}function n1(){const e=new Uint32Array(56);if(typeof crypto>"u"){const a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",s=a.length;let o="";for(let c=0;c<56;c++)o+=a.charAt(Math.floor(Math.random()*s));return o}return crypto.getRandomValues(e),Array.from(e,t1).join("")}async function a1(t){const a=new TextEncoder().encode(t),s=await crypto.subtle.digest("SHA-256",a),o=new Uint8Array(s);return Array.from(o).map(c=>String.fromCharCode(c)).join("")}async function i1(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 a=await a1(t);return btoa(a).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function gi(t,e,a=!1){const s=n1();let o=s;a&&(o+="/recovery"),await Rs(t,`${e}-code-verifier`,o);const c=await i1(s);return[c,s===c?"plain":"s256"]}const s1=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;function r1(t){const e=t.headers.get(Id);if(!e||!e.match(s1))return null;try{return new Date(`${e}T00:00:00.0Z`)}catch{return null}}function o1(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 l1(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 c1=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;function ea(t){if(!c1.test(t))throw new Error("@supabase/auth-js: Expected parameter to be UUID but is not")}function pn(t){if(!t.passkey)throw new Error("@supabase/auth-js: the passkey API is experimental and disabled by default. Enable it by passing `auth: { experimental: { passkey: true } }` to createClient (or to the GoTrueClient constructor).")}function md(){const t={};return new Proxy(t,{get:(e,a)=>{if(a==="__isUserNotAvailableProxy")return!0;if(typeof a=="symbol"){const s=a.toString();if(s==="Symbol(Symbol.toPrimitive)"||s==="Symbol(Symbol.toStringTag)"||s==="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 "${a}" property of the session object is not supported. Please use getUser() instead.`)},set:(e,a)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Setting the "${a}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)},deleteProperty:(e,a)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Deleting the "${a}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)}})}function u1(t,e){return new Proxy(t,{get:(a,s,o)=>
24{if(s==="__isInsecureUserWarningProxy")return!0;if(typeof s=="symbol"){const c=s.toString();if(c==="Symbol(Symbol.toPrimitive)"||c==="Symbol(Symbol.toStringTag)"||c==="Symbol(util.inspect.custom)"||c==="Symbol(nodejs.util.inspect.custom)")return Reflect.get(a,s,o)}return!e.value&&typeof s=="string"&&(console.warn("Using the user object as returned from supabase.auth.getSession() or from some supabase.auth.onAuthStateChange() events could be insecure! This value comes directly from the storage medium (usually cookies on the server) and may not be authentic. Use supabase.auth.getUser() instead which authenticates the data by contacting the Supabase Auth server."),e.value=!0),Reflect.get(a,s,o)}})}function Nv(t){return JSON.parse(JSON.stringify(t))}const mi=t=>{if(typeof t=="object"&&t!==null){const e=t;if(typeof e.msg=="string")return e.msg;if(typeof e.message=="string")return e.message;if(typeof e.error_description=="string")return e.error_description;if(typeof e.error=="string")return e.error}return JSON.stringify(t)},h1=[500,501,502,503,504,520,521,522,523,524,525,526,527,528,529,530];async function Uv(t){var e;if(!Zx(t))throw new qd(mi(t),0);if(h1.includes(t.status))throw new qd(mi(t),t.status);let a;try{a=await t.json()}catch(c){throw new wn(mi(c),c)}let s;const o=r1(t);if(o&&o.getTime()>=Pb["2024-01-01"].timestamp&&typeof a=="object"&&a&&typeof a.code=="string"?s=a.code:typeof a=="object"&&a&&typeof a.error_code=="string"&&(s=a.error_code),s){if(s==="weak_password")throw new Dv(mi(a),t.status,((e=a.weak_password)===null||e===void 0?void 0:e.reasons)||[]);if(s==="session_not_found")throw new ft}else if(typeof a=="object"&&a&&typeof a.weak_password=="object"&&a.weak_password&&Array.isArray(a.weak_password.reasons)&&a.weak_password.reasons.length&&a.weak_password.reasons.reduce((c,u)=>c&&typeof u=="string",!0))throw new Dv(mi(a),t.status,a.weak_password.reasons);throw new Ux(mi(a),t.status||500,s)}const d1=(t,e,a,s)=>{const o={method:t,headers:e?.headers||{}};return t==="GET"?o:(o.headers=Object.assign({"Content-Type":"application/json;charset=UTF-8"},e?.headers),o.body=JSON.stringify(s),Object.assign(Object.assign({},o),a))};async function te(t,e,a,s){var o;const c=Object.assign({},s?.headers);c[Id]||(c[Id]=Pb["2024-01-01"].name),s?.jwt&&(c.Authorization=`Bearer ${s.jwt}`);const u=(o=s?.query)!==null&&o!==void 0?o:{};s?.redirectTo&&(u.redirect_to=s.redirectTo);const d=Object.keys(u).length?"?"+new URLSearchParams(u).toString():"",p=await f1(t,e,a+d,{headers:c,noResolveJson:s?.noResolveJson},{},s?.body);return s?.xform?s?.xform(p):{data:Object.assign({},p),error:null}}async function f1(t,e,a,s,o,c){const u=d1(e,s,o,c);let d;try{d=await t(a,Object.assign({},u))}catch(p){throw console.error(p),new qd(mi(p),0)}if(d.ok||await Uv(d),s?.noResolveJson)return d;try{return await d.json()}catch(p){await Uv(p)}}function ln(t){var e;let a=null;m1(t)&&(a=Object.assign({},t),t.expires_at||(a.expires_at=Yx(t.expires_in)));const s=(e=t.user)!==null&&e!==void 0?e:typeof t?.id=="string"?t:null;return{data:{session:a,user:s},error:null}}function Iv(t){const e=ln(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((a,s)=>a&&typeof s=="string",!0)&&(e.data.weak_password=t.weak_password),e}function Na(t){var e;return{data:{user:(e=t.user)!==null&&e!==void 0?e:t},error:null}}function p1(t){return{data:t,error:null}}function g1(t){const{action_link:e,email_otp:a,hashed_token:s,redirect_to:o,verification_type:c}=t,u=Oc(t,["action_link","email_otp","hashed_token","redirect_to","verification_type"]),d={action_link:e,email_otp:a,hashed_token:s,redirect_to:o,verification_type:c},p=Object.assign({},u);return{data:{properties:d,user:p},error:null}}function qv(t){return t}function m1(t){return!!t.access_token&&!!t.refresh_token&&!!t.expires_in}const yd=["global","local","others"];class y1{constructor({url:e="",headers:a={},fetch:s,experimental:o}){this.url=e,this.headers=a,this.fetch=Nb(s),this.experimental=o??{},this.mfa={listFactors:this._listFactors.bind(this),deleteFactor:this._deleteFactor.bind(this)},this.oauth={listClients:this._listOAuthClients.bind(this),createClient:this._createOAuthClient.bind(this),getClient:this._getOAuthClient.bind(this),updateClient:this._updateOAuthClient.bind(this),deleteClient:this._deleteOAuthClient.bind(this),regenerateClientSecret:this._regenerateOAuthClientSecret.bind(this)},this.customProviders={listProviders:this._listCustomProviders.bind(this),createProvider:this._createCustomProvider.bind(this),getProvider:this._getCustomProvider.bind(this),updateProvider:this._updateCustomProvider.bind(this),deleteProvider:this._deleteCustomProvider.bind(this)},this.passkey={listPasskeys:this._adminListPasskeys.bind(this),deletePasskey:this._adminDeletePasskey.bind(this)}}
24async signOut(e,a=yd[0]){if(yd.indexOf(a)<0)throw new Error(`@supabase/auth-js: Parameter scope must be one of ${yd.join(", ")}`);try{return await te(this.fetch,"POST",`${this.url}/logout?scope=${a}`,{headers:this.headers,jwt:e,noResolveJson:!0}),{data:null,error:null}}catch(s){if(Z(s))return{data:null,error:s};throw s}}async inviteUserByEmail(e,a={}){try{return await te(this.fetch,"POST",`${this.url}/invite`,{body:{email:e,data:a.data},headers:this.headers,redirectTo:a.redirectTo,xform:Na})}catch(s){if(Z(s))return{data:{user:null},error:s};throw s}}async generateLink(e){try{const{options:a}=e,s=Oc(e,["options"]),o=Object.assign(Object.assign({},s),a);return"newEmail"in s&&(o.new_email=s?.newEmail,delete o.newEmail),await te(this.fetch,"POST",`${this.url}/admin/generate_link`,{body:o,headers:this.headers,xform:g1,redirectTo:a?.redirectTo})}catch(a){if(Z(a))return{data:{properties:null,user:null},error:a};throw a}}async createUser(e){try{return await te(this.fetch,"POST",`${this.url}/admin/users`,{body:e,headers:this.headers,xform:Na})}catch(a){if(Z(a))return{data:{user:null},error:a};throw a}}async listUsers(e){var a,s,o,c,u,d,p;try{const g={nextPage:null,lastPage:0,total:0},y=await te(this.fetch,"GET",`${this.url}/admin/users`,{headers:this.headers,noResolveJson:!0,query:{page:(s=(a=e?.page)===null||a===void 0?void 0:a.toString())!==null&&s!==void 0?s:"",per_page:(c=(o=e?.perPage)===null||o===void 0?void 0:o.toString())!==null&&c!==void 0?c:""},xform:qv});if(y.error)throw y.error;const m=await y.json(),w=(u=y.headers.get("x-total-count"))!==null&&u!==void 0?u:0,b=(p=(d=y.headers.get("link"))===null||d===void 0?void 0:d.split(","))!==null&&p!==void 0?p:[];return b.length>0&&(b.forEach(S=>{const A=parseInt(S.split(";")[0].split("=")[1].substring(0,1)),_=JSON.parse(S.split(";")[1].split("=")[1]);g[`${_}Page`]=A}),g.total=parseInt(w)),{data:Object.assign(Object.assign({},m),g),error:null}}catch(g){if(Z(g))return{data:{users:[]},error:g};throw g}}async getUserById(e){ea(e);try{return await te(this.fetch,"GET",`${this.url}/admin/users/${e}`,{headers:this.headers,xform:Na})}catch(a){if(Z(a))return{data:{user:null},error:a};throw a}}async updateUserById(e,a){ea(e);try{return await te(this.fetch,"PUT",`${this.url}/admin/users/${e}`,{body:a,headers:this.headers,xform:Na})}catch(s){if(Z(s))return{data:{user:null},error:s};throw s}}async deleteUser(e,a=!1){ea(e);try{return await te(this.fetch,"DELETE",`${this.url}/admin/users/${e}`,{headers:this.headers,body:{should_soft_delete:a},xform:Na})}catch(s){if(Z(s))return{data:{user:null},error:s};throw s}}async _listFactors(e){ea(e.userId);try{const{data:a,error:s}=await te(this.fetch,"GET",`${this.url}/admin/users/${e.userId}/factors`,{headers:this.headers,xform:o=>({data:{factors:o},error:null})});return{data:a,error:s}}catch(a){if(Z(a))return{data:null,error:a};throw a}}async _deleteFactor(e){ea(e.userId),ea(e.id);try{return{data:await te(this.fetch,"DELETE",`${this.url}/admin/users/${e.userId}/factors/${e.id}`,{headers:this.headers}),error:null}}catch(a){if(Z(a))return{data:null,error:a};throw a}}async _listOAuthClients(e){var a,s,o,c,u,d,p;try{const g={nextPage:null,lastPage:0,total:0},y=await te(this.fetch,"GET",`${this.url}/admin/oauth/clients`,{headers:this.headers,noResolveJson:!0,query:{page:(s=(a=e?.page)===null||a===void 0?void 0:a.toString())!==null&&s!==void 0?s:"",per_page:(c=(o=e?.perPage)===null||o===void 0?void 0:o.toString())!==null&&c!==void 0?c:""},xform:qv});if(y.error)throw y.error;const m=await y.json(),w=(u=y.headers.get("x-total-count"))!==null&&u!==void 0?u:0,b=(p=(d=y.headers.get("link"))===null||d===void 0?void 0:d.split(","))!==null&&p!==void 0?p:[];return b.length>0&&(b.forEach(S=>{const A=parseInt(S.split(";")[0].split("=")[1].substring(0,1)),_=JSON.parse(S.split(";")[1].split("=")[1]);g[`${_}Page`]=A}),g.total=parseInt(w)),{data:Object.assign(Object.assign({},m),g),error:null}}catch(g){if(Z(g))return{data:{clients:[]},error:g};throw g}}async _createOAuthClient(e){try{return await te(this.fetch,"POST",`${this.url}/admin/oauth/clients`,{body:e,headers:this.headers,xform:a=>({data:a,error:null})})}catch(a){if(Z(a))return{data:null,error:a};throw a}}async _getOAuthClient(e){try{return await te(this.fetch,"GET",`${this.url}/admin/oauth/clients/${e}`,{headers:this.headers,xform:a=>({data:a,error:null})})}catch(a){if(Z(a))return{data:null,error:a};throw a}}async _updateOAuthClient(e,a){try{return await te(this.fetch,"PUT",`${this.url}/admin/oauth/clients/${e}`,{body:a,headers:this.headers,xform:s=>({data:s,error:null})})}catch(s){if(Z(s))return{data:null,error:s};throw s}}async _deleteOAuthClient(e){try{return await te(this.fetch,"DELET
24E",`${this.url}/admin/oauth/clients/${e}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(a){if(Z(a))return{data:null,error:a};throw a}}async _regenerateOAuthClientSecret(e){try{return await te(this.fetch,"POST",`${this.url}/admin/oauth/clients/${e}/regenerate_secret`,{headers:this.headers,xform:a=>({data:a,error:null})})}catch(a){if(Z(a))return{data:null,error:a};throw a}}async _listCustomProviders(e){try{const a={};return e?.type&&(a.type=e.type),await te(this.fetch,"GET",`${this.url}/admin/custom-providers`,{headers:this.headers,query:a,xform:s=>{var o;return{data:{providers:(o=s?.providers)!==null&&o!==void 0?o:[]},error:null}}})}catch(a){if(Z(a))return{data:{providers:[]},error:a};throw a}}async _createCustomProvider(e){try{return await te(this.fetch,"POST",`${this.url}/admin/custom-providers`,{body:e,headers:this.headers,xform:a=>({data:a,error:null})})}catch(a){if(Z(a))return{data:null,error:a};throw a}}async _getCustomProvider(e){try{return await te(this.fetch,"GET",`${this.url}/admin/custom-providers/${e}`,{headers:this.headers,xform:a=>({data:a,error:null})})}catch(a){if(Z(a))return{data:null,error:a};throw a}}async _updateCustomProvider(e,a){try{return await te(this.fetch,"PUT",`${this.url}/admin/custom-providers/${e}`,{body:a,headers:this.headers,xform:s=>({data:s,error:null})})}catch(s){if(Z(s))return{data:null,error:s};throw s}}async _deleteCustomProvider(e){try{return await te(this.fetch,"DELETE",`${this.url}/admin/custom-providers/${e}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(a){if(Z(a))return{data:null,error:a};throw a}}async _adminListPasskeys(e){pn(this.experimental),ea(e.userId);try{return await te(this.fetch,"GET",`${this.url}/admin/users/${e.userId}/passkeys`,{headers:this.headers,xform:a=>({data:a,error:null})})}catch(a){if(Z(a))return{data:null,error:a};throw a}}async _adminDeletePasskey(e){pn(this.experimental),ea(e.userId),ea(e.passkeyId);try{return await te(this.fetch,"DELETE",`${this.url}/admin/users/${e.userId}/passkeys/${e.passkeyId}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(a){if(Z(a))return{data:null,error:a};throw a}}}function $v(t={}){return{getItem:e=>t[e]||null,setItem:(e,a)=>{t[e]=a},removeItem:e=>{delete t[e]}}}globalThis&&zb()&&globalThis.localStorage&&globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug");class v1 extends Error{constructor(e){super(e),this.isAcquireTimeout=!0}}function w1(){if(typeof globalThis!="object")try{Object.defineProperty(Object.prototype,"__magic__",{get:function(){return this},configurable:!0}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__}catch{typeof self<"u"&&(self.globalThis=self)}}function Ub(t){if(!/^0x[a-fA-F0-9]{40}$/.test(t))throw new Error(`@supabase/auth-js: Address "${t}" is invalid.`);return t.toLowerCase()}function b1(t){return parseInt(t,16)}function S1(t){const e=new TextEncoder().encode(t);return"0x"+Array.from(e,s=>s.toString(16).padStart(2,"0")).join("")}function k1(t){var e;const{chainId:a,domain:s,expirationTime:o,issuedAt:c=new Date,nonce:u,notBefore:d,requestId:p,resources:g,scheme:y,uri:m,version:w}=t;{if(!Number.isInteger(a))throw new Error(`@supabase/auth-js: Invalid SIWE message field "chainId". Chain ID must be a EIP-155 chain ID. Provided value: ${a}`);if(!s)throw new Error('@supabase/auth-js: Invalid SIWE message field "domain". Domain must be provided.');if(u&&u.length<8)throw new Error(`@supabase/auth-js: Invalid SIWE message field "nonce". Nonce must be at least 8 characters. Provided value: ${u}`);if(!m)throw new Error('@supabase/auth-js: Invalid SIWE message field "uri". URI must be provided.');if(w!=="1")throw new Error(`@supabase/auth-js: Invalid SIWE message field "version". Version must be '1'. Provided value: ${w}`);if(!((e=t.statement)===null||e===void 0)&&e.includes(`
25`))throw new Error(`@supabase/auth-js: Invalid SIWE message field "statement". Statement must not include '\\n'. Provided value: ${t.statement}`)}const b=Ub(t.address),S=y?`${y}://${s}`:s,A=t.statement?`${t.statement}
26`:"",_=`${S} wants you to sign in with your Ethereum account:
27${b}
28
29${A}`;let C=`URI: ${m}
30Version: ${w}
31Chain ID: ${a}${u?`
32Nonce: ${u}`:""}
33Issued At: ${c.toISOString()}`;
33if(o&&(C+=`
34Expiration Time: ${o.toISOString()}`),d&&(C+=`
35Not Before: ${d.toISOString()}`),p&&(C+=`
36Request ID: ${p}`),g){let B=`
37Resources:`;for(const j of g){if(!j||typeof j!="string")throw new Error(`@supabase/auth-js: Invalid SIWE message field "resources". Every resource must be a valid string. Provided value: ${j}`);B+=`
38- ${j}`}C+=B}return`${_}
39${C}`}class it extends Error{constructor({message:e,code:a,cause:s,name:o}){var c;super(e,{cause:s}),this.__isWebAuthnError=!0,this.name=(c=o??(s instanceof Error?s.name:void 0))!==null&&c!==void 0?c:"Unknown Error",this.code=a}toJSON(){return{name:this.name,message:this.message,code:this.code}}}class fc extends it{constructor(e,a){super({code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:a,message:e}),this.name="WebAuthnUnknownError",this.originalError=a}}function _1({error:t,options:e}){var a,s,o;const{publicKey:c}=e;if(!c)throw Error("options was missing required publicKey property");if(t.name==="AbortError"){if(e.signal instanceof AbortSignal)return new it({message:"Registration ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:t})}else if(t.name==="ConstraintError"){if(((a=c.authenticatorSelection)===null||a===void 0?void 0:a.requireResidentKey)===!0)return new it({message:"Discoverable credentials were required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_DISCOVERABLE_CREDENTIAL_SUPPORT",cause:t});if(e.mediation==="conditional"&&((s=c.authenticatorSelection)===null||s===void 0?void 0:s.userVerification)==="required")return new it({message:"User verification was required during automatic registration but it could not be performed",code:"ERROR_AUTO_REGISTER_USER_VERIFICATION_FAILURE",cause:t});if(((o=c.authenticatorSelection)===null||o===void 0?void 0:o.userVerification)==="required")return new it({message:"User verification was required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_USER_VERIFICATION_SUPPORT",cause:t})}else{if(t.name==="InvalidStateError")return new it({message:"The authenticator was previously registered",code:"ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED",cause:t});if(t.name==="NotAllowedError")return new it({message:t.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:t});if(t.name==="NotSupportedError")return c.pubKeyCredParams.filter(d=>d.type==="public-key").length===0?new it({message:'No entry in pubKeyCredParams was of type "public-key"',code:"ERROR_MALFORMED_PUBKEYCREDPARAMS",cause:t}):new it({message:"No available authenticator supported any of the specified pubKeyCredParams algorithms",code:"ERROR_AUTHENTICATOR_NO_SUPPORTED_PUBKEYCREDPARAMS_ALG",cause:t});if(t.name==="SecurityError"){const u=window.location.hostname;if(Ib(u)){if(c.rp.id!==u)return new it({message:`The RP ID "${c.rp.id}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:t})}else return new it({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:t})}else if(t.name==="TypeError"){if(c.user.id.byteLength<1||c.user.id.byteLength>64)return new it({message:"User ID was not between 1 and 64 characters",code:"ERROR_INVALID_USER_ID_LENGTH",cause:t})}else if(t.name==="UnknownError")return new it({message:"The authenticator was unable to process the specified options, or could not create a new credential",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:t})}return new it({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:t})}function T1({error:t,options:e}){const{publicKey:a}=e;if(!a)throw Error("options was missing required publicKey property");if(t.name==="AbortError"){if(e.signal instanceof AbortSignal)return new it({message:"Authentication ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:t})}else{if(t.name==="NotAllowedError")return new it({message:t.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:t});if(t.name==="SecurityError"){const s=window.location.hostname;if(Ib(s)){if(a.rpId!==s)return new it({message:`The RP ID "${a.rpId}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:t})}else return new it({message:`${window.location.hostname}
39 is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:t})}else if(t.name==="UnknownError")return new it({message:"The authenticator was unable to process the specified options, or could not create a new assertion signature",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:t})}return new it({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:t})}class R1{createNewAbortSignal(){if(this.controller){const a=new Error("Cancelling existing WebAuthn API call for new one");a.name="AbortError",this.controller.abort(a)}const e=new AbortController;return this.controller=e,e.signal}cancelCeremony(){if(this.controller){const e=new Error("Manually cancelling existing WebAuthn API call");e.name="AbortError",this.controller.abort(e),this.controller=void 0}}}const $d=new R1;function Vv(t){if(!t)throw new Error("Credential creation options are required");if(typeof PublicKeyCredential<"u"&&"parseCreationOptionsFromJSON"in PublicKeyCredential&&typeof PublicKeyCredential.parseCreationOptionsFromJSON=="function")return PublicKeyCredential.parseCreationOptionsFromJSON(t);const{challenge:e,user:a,excludeCredentials:s}=t,o=Oc(t,["challenge","user","excludeCredentials"]),c=js(e).buffer,u=Object.assign(Object.assign({},a),{id:js(a.id).buffer}),d=Object.assign(Object.assign({},o),{challenge:c,user:u});if(s&&s.length>0){d.excludeCredentials=new Array(s.length);for(let p=0;p<s.length;p++){const g=s[p];d.excludeCredentials[p]=Object.assign(Object.assign({},g),{id:js(g.id).buffer,type:g.type||"public-key",transports:g.transports})}}return d}function Hv(t){if(!t)throw new Error("Credential request options are required");if(typeof PublicKeyCredential<"u"&&"parseRequestOptionsFromJSON"in PublicKeyCredential&&typeof PublicKeyCredential.parseRequestOptionsFromJSON=="function")return PublicKeyCredential.parseRequestOptionsFromJSON(t);const{challenge:e,allowCredentials:a}=t,s=Oc(t,["challenge","allowCredentials"]),o=js(e).buffer,c=Object.assign(Object.assign({},s),{challenge:o});if(a&&a.length>0){c.allowCredentials=new Array(a.length);for(let u=0;u<a.length;u++){const d=a[u];c.allowCredentials[u]=Object.assign(Object.assign({},d),{id:js(d.id).buffer,type:d.type||"public-key",transports:d.transports})}}return c}function Gv(t){var e;if("toJSON"in t&&typeof t.toJSON=="function")return t.toJSON();const a=t;return{id:t.id,rawId:t.id,response:{attestationObject:ki(new Uint8Array(t.response.attestationObject)),clientDataJSON:ki(new Uint8Array(t.response.clientDataJSON))},type:"public-key",clientExtensionResults:t.getClientExtensionResults(),authenticatorAttachment:(e=a.authenticatorAttachment)!==null&&e!==void 0?e:void 0}}function Wv(t){var e;if("toJSON"in t&&typeof t.toJSON=="function")return t.toJSON();const a=t,s=t.getClientExtensionResults(),o=t.response;return{id:t.id,rawId:t.id,response:{authenticatorData:ki(new Uint8Array(o.authenticatorData)),clientDataJSON:ki(new Uint8Array(o.clientDataJSON)),signature:ki(new Uint8Array(o.signature)),userHandle:o.userHandle?ki(new Uint8Array(o.userHandle)):void 0},type:"public-key",clientExtensionResults:s,authenticatorAttachment:(e=a.authenticatorAttachment)!==null&&e!==void 0?e:void 0}}function Ib(t){return t==="localhost"||/^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i.test(t)}function pc(){var t,e;return!!(At()&&"PublicKeyCredential"in window&&window.PublicKeyCredential&&"credentials"in navigator&&typeof((t=navigator?.credentials)===null||t===void 0?void 0:t.create)=="function"&&typeof((e=navigator?.credentials)===null||e===void 0?void 0:e.get)=="function")}async function qb(t){try{const e=await navigator.credentials.create(t);return e?e instanceof PublicKeyCredential?{data:e,error:null}:{data:null,error:new fc("Browser returned unexpected credential type",e)}:{data:null,error:new fc("Empty credential response",e)}}catch(e){return{data:null,error:_1({error:e,options:t})}}}async function $b(t){try{const e=await navigator.credentials.get(t);return e?e instanceof PublicKeyCredential?{data:e,error:null}:{data:null,error:new fc("Browser returned unexpected credential type",e)}:{data:null,error:new fc("Empty credential response",e)}}catch(e){return{data:null,error:T1({error:e,options:t})}}}const A1={hints:["security-key"],authenticatorSelection:{authenticatorAttachment:"cross-platform",requireResidentKey:!1,userVerification:"preferred",residentKey:"discouraged"},attestation:"direct"},C1={userVerification:"preferred",hints:["security-key"],attestation:"direct"};function gc(...t){const e=o=>o!==null&&typeof o=="object"&&!Array.isArray(o),a=o=>o instanceof ArrayBuffer||ArrayBuffer.isView(o),s={};
39for(const o of t)if(o)for(const c in o){const u=o[c];if(u!==void 0)if(Array.isArray(u))s[c]=u;else if(a(u))s[c]=u;else if(e(u)){const d=s[c];e(d)?s[c]=gc(d,u):s[c]=gc(u)}else s[c]=u}return s}function E1(t,e){return gc(A1,t,e||{})}function x1(t,e){return gc(C1,t,e||{})}class O1{constructor(e){this.client=e,this.enroll=this._enroll.bind(this),this.challenge=this._challenge.bind(this),this.verify=this._verify.bind(this),this.authenticate=this._authenticate.bind(this),this.register=this._register.bind(this)}async _enroll(e){return this.client.mfa.enroll(Object.assign(Object.assign({},e),{factorType:"webauthn"}))}async _challenge({factorId:e,webauthn:a,friendlyName:s,signal:o},c){var u;try{const{data:d,error:p}=await this.client.mfa.challenge({factorId:e,webauthn:a});if(!d)return{data:null,error:p};const g=o??$d.createNewAbortSignal();if(d.webauthn.type==="create"){const{user:y}=d.webauthn.credential_options.publicKey;if(!y.name){const m=s;if(m)y.name=`${y.id}:${m}`;else{const b=(await this.client.getUser()).data.user,S=((u=b?.user_metadata)===null||u===void 0?void 0:u.name)||b?.email||b?.id||"User";y.name=`${y.id}:${S}`}}y.displayName||(y.displayName=y.name)}switch(d.webauthn.type){case"create":{const y=E1(d.webauthn.credential_options.publicKey,c?.create),{data:m,error:w}=await qb({publicKey:y,signal:g});return m?{data:{factorId:e,challengeId:d.id,webauthn:{type:d.webauthn.type,credential_response:m}},error:null}:{data:null,error:w}}case"request":{const y=x1(d.webauthn.credential_options.publicKey,c?.request),{data:m,error:w}=await $b(Object.assign(Object.assign({},d.webauthn.credential_options),{publicKey:y,signal:g}));return m?{data:{factorId:e,challengeId:d.id,webauthn:{type:d.webauthn.type,credential_response:m}},error:null}:{data:null,error:w}}}}catch(d){return Z(d)?{data:null,error:d}:{data:null,error:new wn("Unexpected error in challenge",d)}}}async _verify({challengeId:e,factorId:a,webauthn:s}){return this.client.mfa.verify({factorId:a,challengeId:e,webauthn:s})}async _authenticate({factorId:e,webauthn:{rpId:a=typeof window<"u"?window.location.hostname:void 0,rpOrigins:s=typeof window<"u"?[window.location.origin]:void 0,signal:o}={}},c){if(!a)return{data:null,error:new ro("rpId is required for WebAuthn authentication")};try{if(!pc())return{data:null,error:new wn("Browser does not support WebAuthn",null)};const{data:u,error:d}=await this.challenge({factorId:e,webauthn:{rpId:a,rpOrigins:s},signal:o},{request:c});if(!u)return{data:null,error:d};const{webauthn:p}=u;return this._verify({factorId:e,challengeId:u.challengeId,webauthn:{type:p.type,rpId:a,rpOrigins:s,credential_response:p.credential_response}})}catch(u){return Z(u)?{data:null,error:u}:{data:null,error:new wn("Unexpected error in authenticate",u)}}}async _register({friendlyName:e,webauthn:{rpId:a=typeof window<"u"?window.location.hostname:void 0,rpOrigins:s=typeof window<"u"?[window.location.origin]:void 0,signal:o}={}},c){if(!a)return{data:null,error:new ro("rpId is required for WebAuthn registration")};try{if(!pc())return{data:null,error:new wn("Browser does not support WebAuthn",null)};const{data:u,error:d}=await this._enroll({friendlyName:e});if(!u)return await this.client.mfa.listFactors().then(y=>{var m;return(m=y.data)===null||m===void 0?void 0:m.all.find(w=>w.factor_type==="webauthn"&&w.friendly_name===e&&w.status!=="unverified")}).then(y=>y?this.client.mfa.unenroll({factorId:y?.id}):void 0),{data:null,error:d};const{data:p,error:g}=await this._challenge({factorId:u.id,friendlyName:u.friendly_name,webauthn:{rpId:a,rpOrigins:s},signal:o},{create:c});return p?this._verify({factorId:u.id,challengeId:p.challengeId,webauthn:{rpId:a,rpOrigins:s,type:p.webauthn.type,credential_response:p.webauthn.credential_response}}):{data:null,error:g}}catch(u){return Z(u)?{data:null,error:u}:{data:null,error:new wn("Unexpected error in register",u)}}}}w1();const B1={url:Dx,storageKey:Px,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:Lx,flowType:"implicit",debug:!1,hasCustomAuthorizationHeader:!1,throwOnError:!1,lockAcquireTimeout:5e3,skipAutoInitialize:!1,experimental:{}},bs={};class oo{get jwks(){var e,a;return(a=(e=bs[this.storageKey])===null||e===void 0?void 0:e.jwks)!==null&&a!==void 0?a:{keys:[]}}set jwks(e){bs[this.storageKey]=Object.assign(Object.assign({},bs[this.storageKey]),{jwks:e})}get jwks_cached_at(){var e,a;return(a=(e=bs[this.storageKey])===null||e===void 0?void 0:e.cachedAt)!==null&&a!==void 0?a:Number.MIN_SAFE_INTEGER}set jwks_cached_at(e){bs[this.storageKey]=Object.assign(Object.assign({},bs[this.storageKey]),{cachedAt:e})}constructor(e){var a,s,o;this.userStorage=null,this.memoryStorage=null,this.stateChangeEmitters=new Map,this.autoRefreshTicker=null,this.autoRefreshTickTimeout=null,this.visibilityChangedCallback=null,this.refreshingDeferred=null,this.lastRefreshFailure=null,this._sessionRemovalEpoch=0,this.initializePromise=null,this._pendingInitNotifications=null,this.detectSessionInUrl=!0,this.hasCustomAuthorizationHeader=!1,this.suppressGetSessionWarning=!1,this.lock=null,this.lockAcquired=!1,this.pendingInLock=[],this.broadcastChannel=null,this.logger=console.log;const c=Object.assign(Object.assign({},B1),e);if(this.storageKey=c.storageKey,this.instanceID=(a=oo.nextInstanceID[this.storageKey])!==null&&a!==void 0?a:0,oo.nextInstanceID[this.storageKey]=this.instanceID+1,this.logDebugMessages=!!c.debug,typeof c.debug=="function"&&(this.logger=c.debug),this.instanceID>0&&At()){const u=`${this._logPrefix()} Multiple GoTrueClient instances detected in the same browser context. It is not an error, but this should be avoided as it may produce undefined behavior when used concurrently under the same storage key.`;console.warn(u),this.logDebugMessages&&console.trace(u)}if(this.persistSession=c.persistSession,this.autoRefreshToken=c.autoRefreshToken,this.experimental=(s=c.experimental)!==null&&s!==void 0?s:{},this.admin=new y1({url:c.url,headers:c.headers,fetch:c.fetch,experimental:this.experimental}),this.url=c.url,this.headers=c.headers,this.fetch=Nb(c.fetch),this.detectSessionInUrl=c.detectSessionInUrl,this.flowType=c.flowType,this.hasCustomAuthorizationHeader=c.hasCustomAuthorizationHeader,this.throwOnError=c.throwOnError,this.lockAcquireTimeout=c.lockAcquireTimeout,c.lock!=null&&(this.lock=c.lock),this.jwks||(this.jwks={keys:[]},this.jwks_cached_at=Number.MIN_SAFE_INTEGER),this.mfa={verify:this._verify.bind(this),enroll:this._enroll.bind(this),unenroll:this._unenroll.bind(this),challenge:this._challenge.bind(this),listFactors:this._listFactors.bind(this),challengeAndVerify:this._challengeAndVerify.bind(this),getAuthenticatorAssuranceLevel:this._getAuthenticatorAssuranceLevel.bind(this),webauthn:new O1(this)}
39,this.oauth={getAuthorizationDetails:this._getAuthorizationDetails.bind(this),approveAuthorization:this._approveAuthorization.bind(this),denyAuthorization:this._denyAuthorization.bind(this),listGrants:this._listOAuthGrants.bind(this),revokeGrant:this._revokeOAuthGrant.bind(this)},this.passkey={startRegistration:this._startPasskeyRegistration.bind(this),verifyRegistration:this._verifyPasskeyRegistration.bind(this),startAuthentication:this._startPasskeyAuthentication.bind(this),verifyAuthentication:this._verifyPasskeyAuthentication.bind(this),list:this._listPasskeys.bind(this),update:this._updatePasskey.bind(this),delete:this._deletePasskey.bind(this)},this.persistSession?(c.storage?this.storage=c.storage:zb()?this.storage=globalThis.localStorage:(this.memoryStorage={},this.storage=$v(this.memoryStorage)),c.userStorage&&(this.userStorage=c.userStorage)):(this.memoryStorage={},this.storage=$v(this.memoryStorage)),At()&&globalThis.BroadcastChannel&&this.persistSession&&this.storageKey){try{this.broadcastChannel=new globalThis.BroadcastChannel(this.storageKey)}catch(u){console.error("Failed to create a new BroadcastChannel, multi-tab state changes will not be available",u)}(o=this.broadcastChannel)===null||o===void 0||o.addEventListener("message",async u=>{this._debug("received broadcast notification from other tab or client",u),(u.data.event==="TOKEN_REFRESHED"||u.data.event==="SIGNED_IN")&&(this.lastRefreshFailure=null);try{await this._notifyAllSubscribers(u.data.event,u.data.session,!1)}catch(d){this._debug("#broadcastChannel","error",d)}})}c.skipAutoInitialize||this.initialize().catch(u=>{this._debug("#initialize()","error",u)})}isThrowOnErrorEnabled(){return this.throwOnError}_returnResult(e){if(this.throwOnError&&e&&e.error)throw e.error;return e}_logPrefix(){return`GoTrueClient@${this.storageKey}:${this.instanceID} (${Db}) ${new Date().toISOString()}`}_debug(...e){return this.logDebugMessages&&this.logger(this._logPrefix(),...e),this}async initialize(){var e;if(this.initializePromise)return await this.initializePromise;this._pendingInitNotifications=[],this.initializePromise=(async()=>this.lock!=null?await this._acquireLock(this.lockAcquireTimeout,async()=>await this._initialize()):await this._initialize())();const a=await this.initializePromise,s=(e=this._pendingInitNotifications)!==null&&e!==void 0?e:[];this._pendingInitNotifications=null;for(const o of s)await this._notifyAllSubscribers(o.event,o.session,o.broadcast);return a}async _initialize(){var e;try{let a={},s="none";if(At()&&(a=Jx(window.location.href),this._isImplicitGrantCallback(a)?s="implicit":await this._isPKCECallback(a)&&(s="pkce")),At()&&this.detectSessionInUrl&&s!=="none"){const{data:o,error:c}=await this._getSessionFromURL(a,s);if(c){if(this._debug("#_initialize()","error detecting session from URL",c),qx(c)){const p=(e=c.details)===null||e===void 0?void 0:e.code;if(p==="identity_already_exists"||p==="identity_not_found"||p==="single_identity_not_deletable")return{error:c}}return{error:c}}const{session:u,redirectType:d}=o;return this._debug("#_initialize()","detected session in URL",u,"redirect type",d),await this._saveSession(u),setTimeout(async()=>{d==="recovery"?await this._notifyAllSubscribers("PASSWORD_RECOVERY",u):await this._notifyAllSubscribers("SIGNED_IN",u)},0),{error:null}}return await this._recoverAndRefresh(),{error:null}}catch(a){return Z(a)?this._returnResult({error:a}):this._returnResult({error:new wn("Unexpected error during initialization",a)})}finally{await this._handleVisibilityChange(),this._debug("#_initialize()","end")}}async signInAnonymously(e){var a,s,o;try{const c=await te(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{data:(s=(a=e?.options)===null||a===void 0?void 0:a.data)!==null&&s!==void 0?s:{},gotrue_meta_security:{captcha_token:(o=e?.options)===null||o===void 0?void 0:o.captchaToken}},xform:ln}),{data:u,error:d}=c;if(d||!u)return this._returnResult({data:{user:null,session:null},error:d});const p=u.session,g=u.user;return u.session&&(await this._saveSession(u.session),await this._notifyAllSubscribers("SIGNED_IN",p)),this._returnResult({data:{user:g,session:p},error:null})}catch(c){if(Z(c))return this._returnResult({data:{user:null,session:null},error:c});throw c}}async signUp(e){var a,s,o;try{let c;if("email"in e){const{email:y,password:m,options:w}=e;let b=null,S=null;this.flowType==="pkce"&&([b,S]=await gi(this.storage,this.storageKey)),c=await te(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,redirectTo:w?.emailRedirectTo,body:{email:y,password:m,data:(a=w?.data)!==null&&a!==void 0?a:{},gotrue_meta_security:{captcha_token:w?.captchaToken},code_challenge:b,code_challenge_method:S},xform:ln})}else if("phone"in e){const{phone:y,password:m,options:w}=e;c=await te(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{phone:y,password:m,data:(s=w?.data)!==null&&s!==void 0?s:{},channel:(o=w?.channel)!==null&&o!==void 0?o:"sms",gotrue_meta_security:{captcha_token:w?.captchaToken}},xform:ln})}else throw new Gl("You must provide either an email or phone number and a password");const{data:u,error:d}=c;if(d||!u)return await at(this.storage,`${this.storageKey}-code-verifier`),this._returnResult({data:{user:null,session:null},error:d});const p=u.session,g=u.user;return u.session&&(await this._saveSession(u.session),await this._notifyAllSubscribers("SIGNED_IN",p)),this._returnResult({data:{user:g,session:p},error:null})}catch(c){if(await at(this.storage,`${this.storageKey}-code-verifier`),Z(c))return this._returnResult({data:{user:null,session:null},error:c});throw c}}async signInWithPassword(e){try{let a;if("email"in e){const{email:c,password:u,options:d}=e;a=await te(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{email:c,password:u,gotrue_meta_security:{captcha_token:d?.captchaToken}},xform:Iv})}else if("phone"in e){const{phone:c,password:u,options:d}=e;a=await te(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{phone:c,password:u,gotrue_meta_security:{captcha_token:d?.captchaToken}},xform:Iv})}else throw new Gl("You must provide either an email or phone number and a password");const{data:s,error:o}=a;if(o)return this._returnResult({data:{user:null,session:null},error:o});if(!s||!s.session||!s.user){const c=new ws;return this._returnResult({data:{user:null,session:null},error:c})}return s.session&&(await this._saveSession(s.session),await this._notifyAllSubscribers("SIGNED_IN",s.session)),this._returnResult({data:Object.assign({user:s.user,session:s.session},s.weak_password?{weakPassword:s.weak_password}:null),error:o})}catch(a){if(Z(a))return this._returnResult({data:{user:null,session:null},error:a});throw a}}async signInWithOAuth(e){var a,s,o,c;return await this._handleProviderSignIn(e.provider,{redirectTo:(a=e.options)===null||a===void 0?void 0:a.redirectTo,scopes:(s=e.options)===null||s===void 0?void 0:s.scopes,queryParams:(o=e.options)===null||o===void 0?void 0:o.queryParams,skipBrowserRedirect:(c=e.options)===null||c===void 0?void 0:c.skipBrowserRedirect})}async exchangeCodeForSession(e){return await this.initializePromise,this.lock!=null?this._acquireLock(this.lockAcquireTimeout,async()=>this._exchangeCodeForSession(e)):this._exchangeCodeForSession(e)}async signInWithWeb3(e){const{chain:a}=e;switch(a){case"ethereum":return await this.signInWithEthereum(e);case"solana":return await this.signInWithSolana(e);default:throw new Error(`@supabase/auth-js: Unsupported chain "${a}"`)}}async signInWithEthereum(e){var a,s,o,c,u,d,p,g,y,m,w;let b,S;if("message"in e)b=e.message,S=e.signature;else{const{chain:A,wallet:_,statement:C,options:B}=e;let j;if(At())if(typeof _=="object")j=_;else{const Q=window;if("ethereum"in Q&&typeof Q.ethereum=="object"&&"request"in Q.ethereum&&typeof Q.ethereum.request=="function")j=Q.ethereum;else throw new Error("@supabase/auth-js: No compatible Ethereum wallet interface on the window object (window.ethereum) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'ethereum', wallet: resolvedUserWallet }) instead.")}else{if(typeof _!="object"||!B?.url)throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");j=_}const D=new URL((a=B?.url)!==null&&a!==void 0?a:window.location.href),F=await j.request({method:"eth_requestAccounts"}).then(Q=>Q).catch(()=>{throw new Error("@supabase/auth-js: Wallet method eth_requestAccounts is missing or invalid")});if(!F||F.length===0)throw new Error("@supabase/auth-js: No accounts available. Please ensure the wallet is connected.");const V=Ub(F[0]);let I=(s=B?.signInWithEthereum)===null||s===void 0?void 0:s.chainId;if(!I){const Q=await j.request({method:"eth_chainId"});I=b1(Q)}const W={domain:D.host,address:V,statement:C,uri:D.href,version:"1",chainId:I,nonce:(o=B?.signInWithEthereum)===null||o===void 0?void 0:o.nonce,issuedAt:(u=(c=B?.signInWithEthereum)===null||c===void 0?void 0:c.issuedAt)!==null&&u!==void 0?u:new Date,expirationTime:(d=B?.signInWithEthereum)===null||d===void 0?void 0:d.expirationTime,notBefore:(p=B?.signInWithEthereum)===null||p===void 0?void 0:p.notBefore,requestId:(g=B?.signInWithEthereum)===null||g===void 0?void 0:g.requestId,resources:(y=B?.signInWithEthereum)===null||y===void 0?void 0:y.resources};b=k1(W),S=await j.request({method:"personal_sign",params:[S1(b),V]})}try{const{data:A,error:_}=await te(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"ethereum",message:b,signature:S},!((m=e.options)===null||m===void 0)&&m.captchaToken?{gotrue_meta_security:{captcha_token:(w=e.options)===null||w===void 0?void 0:w.captchaToken}}:null),xform:ln});if(_)throw _;if(!A||!A.session||!A.user){const C=new ws;return this._returnResult({data:{user:null,session:null},error:C})}
39return A.session&&(await this._saveSession(A.session),await this._notifyAllSubscribers("SIGNED_IN",A.session)),this._returnResult({data:Object.assign({},A),error:_})}catch(A){if(Z(A))return this._returnResult({data:{user:null,session:null},error:A});throw A}}async signInWithSolana(e){var a,s,o,c,u,d,p,g,y,m,w,b;let S,A;if("message"in e)S=e.message,A=e.signature;else{const{chain:_,wallet:C,statement:B,options:j}=e;let D;if(At())if(typeof C=="object")D=C;else{const V=window;if("solana"in V&&typeof V.solana=="object"&&("signIn"in V.solana&&typeof V.solana.signIn=="function"||"signMessage"in V.solana&&typeof V.solana.signMessage=="function"))D=V.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 C!="object"||!j?.url)throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");D=C}const F=new URL((a=j?.url)!==null&&a!==void 0?a:window.location.href);if("signIn"in D&&D.signIn){const V=await D.signIn(Object.assign(Object.assign(Object.assign({issuedAt:new Date().toISOString()},j?.signInWithSolana),{version:"1",domain:F.host,uri:F.href}),B?{statement:B}:null));let I;if(Array.isArray(V)&&V[0]&&typeof V[0]=="object")I=V[0];else if(V&&typeof V=="object"&&"signedMessage"in V&&"signature"in V)I=V;else throw new Error("@supabase/auth-js: Wallet method signIn() returned unrecognized value");if("signedMessage"in I&&"signature"in I&&(typeof I.signedMessage=="string"||I.signedMessage instanceof Uint8Array)&&I.signature instanceof Uint8Array)S=typeof I.signedMessage=="string"?I.signedMessage:new TextDecoder().decode(I.signedMessage),A=I.signature;else throw new Error("@supabase/auth-js: Wallet method signIn() API returned object without signedMessage and signature fields")}else{if(!("signMessage"in D)||typeof D.signMessage!="function"||!("publicKey"in D)||typeof D!="object"||!D.publicKey||!("toBase58"in D.publicKey)||typeof D.publicKey.toBase58!="function")throw new Error("@supabase/auth-js: Wallet does not have a compatible signMessage() and publicKey.toBase58() API");S=[`${F.host} wants you to sign in with your Solana account:`,D.publicKey.toBase58(),...B?["",B,""]:[""],"Version: 1",`URI: ${F.href}`,`Issued At: ${(o=(s=j?.signInWithSolana)===null||s===void 0?void 0:s.issuedAt)!==null&&o!==void 0?o:new Date().toISOString()}`,...!((c=j?.signInWithSolana)===null||c===void 0)&&c.notBefore?[`Not Before: ${j.signInWithSolana.notBefore}`]:[],...!((u=j?.signInWithSolana)===null||u===void 0)&&u.expirationTime?[`Expiration Time: ${j.signInWithSolana.expirationTime}`]:[],...!((d=j?.signInWithSolana)===null||d===void 0)&&d.chainId?[`Chain ID: ${j.signInWithSolana.chainId}`]:[],...!((p=j?.signInWithSolana)===null||p===void 0)&&p.nonce?[`Nonce: ${j.signInWithSolana.nonce}`]:[],...!((g=j?.signInWithSolana)===null||g===void 0)&&g.requestId?[`Request ID: ${j.signInWithSolana.requestId}`]:[],...!((m=(y=j?.signInWithSolana)===null||y===void 0?void 0:y.resources)===null||m===void 0)&&m.length?["Resources",...j.signInWithSolana.resources.map(I=>`- ${I}`)]:[]].join(`
40`);const V=await D.signMessage(new TextEncoder().encode(S),"utf8");if(!V||!(V instanceof Uint8Array))throw new Error("@supabase/auth-js: Wallet signMessage() API returned an recognized value");A=V}}try{const{data:_,error:C}=await te(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"solana",message:S,signature:ki(A)},!((w=e.options)===null||w===void 0)&&w.captchaToken?{gotrue_meta_security:{captcha_token:(b=e.options)===null||b===void 0?void 0:b.captchaToken}}:null),xform:ln});if(C)throw C;if(!_||!_.session||!_.user){const B=new ws;return this._returnResult({data:{user:null,session:null},error:B})}return _.session&&(await this._saveSession(_.session),await this._notifyAllSubscribers("SIGNED_IN",_.session)),this._returnResult({data:Object.assign({},_),error:C})}catch(_){if(Z(_))return this._returnResult({data:{user:null,session:null},error:_});throw _}}async _exchangeCodeForSession(e){const a=await fn(this.storage,`${this.storageKey}-code-verifier`),[s,o]=(a??"").split("/");try{if(!s&&this.flowType==="pkce")throw new $x;const{data:c,error:u}=await te(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:e,code_verifier:s},xform:ln});if(await at(this.storage,`${this.storageKey}-code-verifier`),u)throw u;if(!c||!c.session||!c.user){const d=new ws;return this._returnResult({data:{user:null,session:null,redirectType:null},error:d})}return c.session&&(await this._saveSession(c.session),await this._notifyAllSubscribers(o==="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",c.session)),this._returnResult({data:Object.assign(Object.assign({},c),{redirectType:o??null}),error:u})}catch(c){if(await at(this.storage,`${this.storageKey}-code-verifier`),Z(c))return this._returnResult({data:{user:null,session:null,redirectType:null},error:c});throw c}}async signInWithIdToken(e){try{const{options:a,provider:s,token:o,access_token:c,nonce:u}=e,d=await te(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:s,id_token:o,access_token:c,nonce:u,gotrue_meta_security:{captcha_token:a?.captchaToken}},xform:ln}),{data:p,error:g}=d;if(g)return this._returnResult({data:{user:null,session:null},error:g});if(!p||!p.session||!p.user){const y=new ws;return this._returnResult({data:{user:null,session:null},error:y})}return p.session&&(await this._saveSession(p.session),await this._notifyAllSubscribers("SIGNED_IN",p.session)),this._returnResult({data:p,error:g})}catch(a){if(Z(a))return this._returnResult({data:{user:null,session:null},error:a});throw a}}async signInWithOtp(e){var a,s,o,c,u;try{if("email"in e){const{email:d,options:p}=e;let g=null,y=null;this.flowType==="pkce"&&([g,y]=await gi(this.storage,this.storageKey));const{error:m}=await te(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{email:d,data:(a=p?.data)!==null&&a!==void 0?a:{}
40,create_user:(s=p?.shouldCreateUser)!==null&&s!==void 0?s:!0,gotrue_meta_security:{captcha_token:p?.captchaToken},code_challenge:g,code_challenge_method:y},redirectTo:p?.emailRedirectTo});return this._returnResult({data:{user:null,session:null},error:m})}if("phone"in e){const{phone:d,options:p}=e,{data:g,error:y}=await te(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{phone:d,data:(o=p?.data)!==null&&o!==void 0?o:{},create_user:(c=p?.shouldCreateUser)!==null&&c!==void 0?c:!0,gotrue_meta_security:{captcha_token:p?.captchaToken},channel:(u=p?.channel)!==null&&u!==void 0?u:"sms"}});return this._returnResult({data:{user:null,session:null,messageId:g?.message_id},error:y})}throw new Gl("You must provide either an email or phone number.")}catch(d){if(await at(this.storage,`${this.storageKey}-code-verifier`),Z(d))return this._returnResult({data:{user:null,session:null},error:d});throw d}}async verifyOtp(e){var a,s;try{let o,c;"options"in e&&(o=(a=e.options)===null||a===void 0?void 0:a.redirectTo,c=(s=e.options)===null||s===void 0?void 0:s.captchaToken);const{data:u,error:d}=await te(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},e),{gotrue_meta_security:{captcha_token:c}}),redirectTo:o,xform:ln});if(d)throw d;if(!u)throw new Error("An error occurred on token verification.");const p=u.session,g=u.user;return p?.access_token&&(await this._saveSession(p),await this._notifyAllSubscribers(e.type=="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",p)),this._returnResult({data:{user:g,session:p},error:null})}catch(o){if(Z(o))return this._returnResult({data:{user:null,session:null},error:o});throw o}}async signInWithSSO(e){var a,s,o,c,u;try{let d=null,p=null;this.flowType==="pkce"&&([d,p]=await gi(this.storage,this.storageKey));const g=await te(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:(s=(a=e.options)===null||a===void 0?void 0:a.redirectTo)!==null&&s!==void 0?s:void 0}),!((o=e?.options)===null||o===void 0)&&o.captchaToken?{gotrue_meta_security:{captcha_token:e.options.captchaToken}}:null),{skip_http_redirect:!0,code_challenge:d,code_challenge_method:p}),headers:this.headers,xform:p1});return!((c=g.data)===null||c===void 0)&&c.url&&At()&&!(!((u=e.options)===null||u===void 0)&&u.skipBrowserRedirect)&&window.location.assign(g.data.url),this._returnResult(g)}catch(d){if(await at(this.storage,`${this.storageKey}-code-verifier`),Z(d))return this._returnResult({data:null,error:d});throw d}}async reauthenticate(){return await this.initializePromise,this.lock!=null?await this._acquireLock(this.lockAcquireTimeout,async()=>await this._reauthenticate()):await this._reauthenticate()}async _reauthenticate(){try{return await this._useSession(async e=>{const{data:{session:a},error:s}=e;if(s)throw s;if(!a)throw new ft;const{error:o}=await te(this.fetch,"GET",`${this.url}/reauthenticate`,{headers:this.headers,jwt:a.access_token});return this._returnResult({data:{user:null,session:null},error:o})})}catch(e){if(Z(e))return this._returnResult({data:{user:null,session:null},error:e});throw e}}async resend(e){try{const a=`${this.url}/resend`;if("email"in e){const{email:s,type:o,options:c}=e;let u=null,d=null;this.flowType==="pkce"&&([u,d]=await gi(this.storage,this.storageKey));const{error:p}=await te(this.fetch,"POST",a,{headers:this.headers,body:{email:s,type:o,gotrue_meta_security:{captcha_token:c?.captchaToken},code_challenge:u,code_challenge_method:d},redirectTo:c?.emailRedirectTo});return p&&await at(this.storage,`${this.storageKey}-code-verifier`),this._returnResult({data:{user:null,session:null},error:p})}else if("phone"in e){const{phone:s,type:o,options:c}=e,{data:u,error:d}=await te(this.fetch,"POST",a,{headers:this.headers,body:{phone:s,type:o,gotrue_meta_security:{captcha_token:c?.captchaToken}}});return this._returnResult({data:{user:null,session:null,messageId:u?.message_id},error:d})}throw new Gl("You must provide either an email or phone number and a type")}catch(a){if(await at(this.storage,`${this.storageKey}-code-verifier`),Z(a))return this._returnResult({data:{user:null,session:null},error:a});throw a}}async getSession(){return await this.initializePromise,this.lock!=null?await this._acquireLock(this.lockAcquireTimeout,async()=>this._useSession(async e=>e)):await this._useSession(async e=>e)}async _acquireLock(e,a){this._debug("#_acquireLock","begin",e);try{if(this.lockAcquired){const s=this.pendingInLock.length?this.pendingInLock[this.pendingInLock.length-1]:Promise.resolve(),o=(async()=>(await s,await a()))();return this.pendingInLock.push((async()=>{try{await o}catch{}})()),o}return await this.lock(`lock:${this.storageKey}`,e,async()=>{this._debug("#_acquireLock","lock acquired for storage key",this.storageKey);try{this.lockAcquired=!0;const s=a();for(this.pendingInLock.push((async()=>{try{await s}catch{}})()),await s;this.pendingInLock.length;){const o=[...this.pendingInLock];await Promise.all(o),this.pendingInLock.splice(0,o.length)}return await s}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 a=await this.__loadSession();return await e(a)}finally{this._debug("#_useSession","end")}}async __loadSession(){this._debug("#__loadSession()","begin"),this.lock!=null&&!this.lockAcquired&&this._debug("#__loadSession()","used outside of an acquired lock!",new Error().stack);try{let e=null;const a=await fn(this.storage,this.storageKey);if(this._debug("#getSession()","session from storage",a),a!==null&&(this._isValidSession(a)?e=a:(this._debug("#getSession()","session from storage is not val
40id"),await this._removeSession())),!e)return{data:{session:null},error:null};const s=e.expires_at?e.expires_at*1e3-Date.now()<gd:!1;if(this._debug("#__loadSession()",`session has${s?"":" not"} expired`,"expires_at",e.expires_at),!s){if(this.userStorage){const u=await fn(this.userStorage,this.storageKey+"-user");u?.user?e.user=u.user:e.user=md()}if(this.storage.isServer&&e.user&&!e.user.__isUserNotAvailableProxy){const u={value:this.suppressGetSessionWarning};e.user=u1(e.user,u),u.value&&(this.suppressGetSessionWarning=!0)}return{data:{session:e},error:null}}const{data:o,error:c}=await this._callRefreshToken(e.refresh_token);if(c){if(!!(e.expires_at&&e.expires_at*1e3>Date.now())){const d=await fn(this.storage,this.storageKey);if(d&&d.refresh_token===e.refresh_token)return this._returnResult({data:{session:e},error:null})}return this._returnResult({data:{session:null},error:c})}return this._returnResult({data:{session:o},error:null})}finally{this._debug("#__loadSession()","end")}}async getUser(e){if(e)return await this._getUser(e);await this.initializePromise;let a;return this.lock!=null?a=await this._acquireLock(this.lockAcquireTimeout,async()=>await this._getUser()):a=await this._getUser(),a.data.user&&(this.suppressGetSessionWarning=!0),a}async _getUser(e){try{return e?await te(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:e,xform:Na}):await this._useSession(async a=>{var s,o,c;const{data:u,error:d}=a;if(d)throw d;return!(!((s=u.session)===null||s===void 0)&&s.access_token)&&!this.hasCustomAuthorizationHeader?{data:{user:null},error:new ft}:await te(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:(c=(o=u.session)===null||o===void 0?void 0:o.access_token)!==null&&c!==void 0?c:void 0,xform:Na})})}catch(a){if(Z(a))return Hl(a)&&(await this._removeSession(),await at(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({data:{user:null},error:a});throw a}}async updateUser(e,a={}){return await this.initializePromise,this.lock!=null?await this._acquireLock(this.lockAcquireTimeout,async()=>await this._updateUser(e,a)):await this._updateUser(e,a)}async _updateUser(e,a={}){try{return await this._useSession(async s=>{const{data:o,error:c}=s;if(c)throw c;if(!o.session)throw new ft;const u=o.session;let d=null,p=null;this.flowType==="pkce"&&e.email!=null&&([d,p]=await gi(this.storage,this.storageKey));const{data:g,error:y}=await te(this.fetch,"PUT",`${this.url}/user`,{headers:this.headers,redirectTo:a?.emailRedirectTo,body:Object.assign(Object.assign({},e),{code_challenge:d,code_challenge_method:p}),jwt:u.access_token,xform:Na});if(y)throw y;return u.user=g.user,await this._saveSession(u),await this._notifyAllSubscribers("USER_UPDATED",u),this._returnResult({data:{user:u.user},error:null})})}catch(s){if(await at(this.storage,`${this.storageKey}-code-verifier`),Z(s))return this._returnResult({data:{user:null},error:s});throw s}}async setSession(e){return await this.initializePromise,this.lock!=null?await this._acquireLock(this.lockAcquireTimeout,async()=>await this._setSession(e)):await this._setSession(e)}async _setSession(e){try{if(!e.access_token||!e.refresh_token)throw new ft;const a=Date.now()/1e3;let s=a,o=!0,c=null;const{payload:u}=Fl(e.access_token);if(u.exp&&(s=u.exp,o=s<=a),o){const{data:d,error:p}=await this._callRefreshToken(e.refresh_token);if(p)return this._returnResult({data:{user:null,session:null},error:p});if(!d)return{data:{user:null,session:null},error:null};c=d}else{const{data:d,error:p}=await this._getUser(e.access_token);if(p)return this._returnResult({data:{user:null,session:null},error:p});c={access_token:e.access_token,refresh_token:e.refresh_token,user:d.user,token_type:"bearer",expires_in:s-a,expires_at:s},await this._saveSession(c),await this._notifyAllSubscribers("SIGNED_IN",c)}return this._returnResult({data:{user:c.user,session:c},error:null})}catch(a){if(Z(a))return this._returnResult({data:{session:null,user:null},error:a});throw a}}async refreshSession(e){return await this.initializePromise,this.lock!=null?await this._acquireLock(this.lockAcquireTimeout,async()=>await this._refreshSession(e)):await this._refreshSession(e)}async _refreshSession(e){try{return await this._useSession(async a=>{var s;if(!e){const{data:u,error:d}=a;if(d)throw d;e=(s=u.session)!==null&&s!==void 0?s:void 0}if(!e?.refresh_token)throw new ft;const{data:o,error:c}=await this._callRefreshToken(e.refresh_token);return c?this._returnResult({data:{user:null,session:null},error:c}):o?this._returnResult({data:{user:o.user,session:o},error:null}):this._returnResult({data:{user:null,session:null},error:null})})}catch(a){if(Z(a))return this._returnResult({data:{user:null,session:null},error:a});throw a}}async _getSessionFromURL(e,a){var s;try{if(!At())throw new Wl("No browser detected.");
40if(e.error||e.error_description||e.error_code)throw new Wl(e.error_description||"Error in URL with unspecified error_description",{error:e.error||"unspecified_error",code:e.error_code||"unspecified_code"});switch(a){case"implicit":if(this.flowType==="pkce")throw new Bv("Not a valid PKCE flow url.");break;case"pkce":if(this.flowType==="implicit")throw new Wl("Not a valid implicit grant flow url.");break;default:}if(a==="pkce"){if(this._debug("#_initialize()","begin","is PKCE flow",!0),!e.code)throw new Bv("No code detected.");const{data:j,error:D}=await this._exchangeCodeForSession(e.code);if(D)throw D;const F=new URL(window.location.href);return F.searchParams.delete("code"),window.history.replaceState(window.history.state,"",F.toString()),{data:{session:j.session,redirectType:(s=j.redirectType)!==null&&s!==void 0?s:null},error:null}}const{provider_token:o,provider_refresh_token:c,access_token:u,refresh_token:d,expires_in:p,expires_at:g,token_type:y}=e;if(!u||!p||!d||!y)throw new Wl("No session defined in URL");const m=Math.round(Date.now()/1e3),w=parseInt(p);let b=m+w;g&&(b=parseInt(g));const S=b-m;S*1e3<=aa&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${S}s, should have been closer to ${w}s`);const A=b-w;m-A>=120?console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale",A,b,m):m-A<0&&console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clock for skew",A,b,m);const{data:_,error:C}=await this._getUser(u);if(C)throw C;const B={provider_token:o,provider_refresh_token:c,access_token:u,expires_in:w,expires_at:b,refresh_token:d,token_type:y,user:_.user};return window.location.hash="",this._debug("#_getSessionFromURL()","clearing window.location.hash"),this._returnResult({data:{session:B,redirectType:e.type},error:null})}catch(o){if(Z(o))return this._returnResult({data:{session:null,redirectType:null},error:o});throw o}}_isImplicitGrantCallback(e){return typeof this.detectSessionInUrl=="function"?this.detectSessionInUrl(new URL(window.location.href),e):!!(e.access_token||e.error||e.error_description||e.error_code)}async _isPKCECallback(e){const a=await fn(this.storage,`${this.storageKey}-code-verifier`);return!!(e.code&&a)}async signOut(e={scope:"global"}){return await this.initializePromise,this.lock!=null?await this._acquireLock(this.lockAcquireTimeout,async()=>await this._signOut(e)):await this._signOut(e)}async _signOut({scope:e}={scope:"global"}){return await this._useSession(async a=>{var s;const o=async()=>{await this._removeSession(),await at(this.storage,`${this.storageKey}-code-verifier`)},{data:c,error:u}=a;if(u&&!Hl(u))return this._returnResult({error:u});const d=(s=c.session)===null||s===void 0?void 0:s.access_token;if(d){const{error:p}=await this.admin.signOut(d,e);if(p&&!(Ix(p)&&(p.status===404||p.status===401||p.status===403)||Hl(p)))return e!=="others"&&await o(),this._returnResult({error:p})}return e!=="others"&&await o(),this._returnResult({error:null})})}onAuthStateChange(e){const a=Qx(),s={id:a,callback:e,unsubscribe:()=>{this._debug("#unsubscribe()","state change callback with id removed",a),this.stateChangeEmitters.delete(a)}};return this._debug("#onAuthStateChange()","registered callback with id",a),this.stateChangeEmitters.set(a,s),(async()=>(await this.initializePromise,this.lock!=null?await this._acquireLock(this.lockAcquireTimeout,async()=>{this._emitInitialSession(a)}):await this._emitInitialSession(a)))(),{data:{subscription:s}}}async _emitInitialSession(e){return await this._useSession(async a=>{var s,o;try{const{data:{session:c},error:u}=a;if(u)throw u;await((s=this.stateChangeEmitters.get(e))===null||s===void 0?void 0:s.callback("INITIAL_SESSION",c)),this._debug("INITIAL_SESSION","callback id",e,"session",c)}catch(c){await((o=this.stateChangeEmitters.get(e))===null||o===void 0?void 0:o.callback("INITIAL_SESSION",null)),this._debug("INITIAL_SESSION","callback id",e,"error",c),Hl(c)?console.warn(c):console.error(c)}})}async resetPasswordForEmail(e,a={}){let s=null,o=null;this.flowType==="pkce"&&([s,o]=await gi(this.storage,this.storageKey,!0));try{return await te(this.fetch,"POST",`${this.url}/recover`,{body:{email:e,code_challenge:s,code_challenge_method:o,gotrue_meta_security:{captcha_token:a.captchaToken}},headers:this.headers,redirectTo:a.redirectTo})}catch(c){if(await at(this.storage,`${this.storageKey}-code-verifier`),Z(c))return this._returnResult({data:null,error:c});throw c}}async getUserIdentities(){var e;try{const{data:a,error:s}=await this.getUser();if(s)throw s;return this._returnResult({data:{identities:(e=a.user.identities)!==null&&e!==void 0?e:[]},error:null})}catch(a){if(Z(a))return this._returnResult({data:null,error:a});throw a}}async linkIdentity(e){return"token"in e?this.linkIdentityIdToken(e):this.linkIdentityOAuth(e)}async linkIdentityOAuth(e){var a;try{const{data:s,error:o}=await this._useSession(async c=>{var u,d,p,g,y;const{data:m,error:w}=c;if(w)throw w;const b=await this._getUrlForProvider(`${this.url}/user/identities/authorize`,e.provider,{redirectTo:(u=e.options)===null||u===void 0?void 0:u.redirectTo,scopes:(d=e.options)===null||d===void 0?void 0:d.scopes,queryParams:(p=e.options)===null||p===void 0?void 0:p.queryParams,skipBrowserRedirect:!0});return await te(this.fetch,"GET",b,{headers:this.headers,jwt:(y=(g=m.session)===null||g===void 0?void 0:g.access_token)!==null&&y!==void 0?y:void 0})});if(o)throw o;return At()&&!(!((a=e.options)===null||a===void 0)&&a.skipBrowserRedirect)&&window.location.assign(s?.url),this._returnResult({data:{provider:e.provider,url:s?.url},error:null})}catch(s){if(Z(s))return this._returnResult({data:{provider:e.provider,url:null},error:s});throw s}}async linkIdentityIdToken(e){return await this._useSession(async a=>{var s;try{const{error:o,data:{session:c}}=a;if(o)throw o;const{options:u,provider:d,token:p,access_token:g,nonce:y}=e,m=await te(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,jwt:(s=c?.access_token)!==null&&s!==void 0?s:void 0,body:{provider:d,id_token:p,access_token:g,nonce:y,link_identity:!0,gotrue_meta_security:{captcha_token:u?.captchaToken}},xform:ln}),{data:w,error:b}=m;return b?this._returnResult({data:{user:null,session:null},error:b}):!w||!w.session||!w.user?this._returnResult({data:{user:null,session:null},error:new ws}):(w.session&&(await this._saveSession(w.session),await this._notifyAllSubscribers("USER_UPDATED",w.session)),this._returnResult({data:w,error:b}))}catch(o){if(await at(this.storage,`${this.storageKey}-code-verifier`),Z(o))return this._returnResult({data:{user:null,session:null},error:o});throw o}})}async unlinkIdentity(e){try{return await this._useSession(async a=>{var s,o;const{data:c,error:u}=a;if(u)throw u;
40return await te(this.fetch,"DELETE",`${this.url}/user/identities/${e.identity_id}`,{headers:this.headers,jwt:(o=(s=c.session)===null||s===void 0?void 0:s.access_token)!==null&&o!==void 0?o:void 0})})}catch(a){if(Z(a))return this._returnResult({data:null,error:a});throw a}}async _refreshAccessToken(e){const a="#_refreshAccessToken()";this._debug(a,"begin");try{const s=Date.now();return await e1(async o=>(o>0&&await Xx(200*Math.pow(2,o-1)),this._debug(a,"refreshing attempt",o),await te(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:e},headers:this.headers,xform:ln})),(o,c)=>{const u=200*Math.pow(2,o);return c&&jv(c)&&Date.now()+u-s<aa})}catch(s){if(this._debug(a,"error",s),Z(s))return this._returnResult({data:{session:null,user:null},error:s});throw s}finally{this._debug(a,"end")}}_isValidSession(e){return typeof e=="object"&&e!==null&&"access_token"in e&&"refresh_token"in e&&"expires_at"in e}async _handleProviderSignIn(e,a){const s=await this._getUrlForProvider(`${this.url}/authorize`,e,{redirectTo:a.redirectTo,scopes:a.scopes,queryParams:a.queryParams});return this._debug("#_handleProviderSignIn()","provider",e,"options",a,"url",s),At()&&!a.skipBrowserRedirect&&window.location.assign(s),{data:{provider:e,url:s},error:null}}async _recoverAndRefresh(){var e,a;const s="#_recoverAndRefresh()";this._debug(s,"begin");try{const o=await fn(this.storage,this.storageKey);if(o&&this.userStorage){let u=await fn(this.userStorage,this.storageKey+"-user");!this.storage.isServer&&Object.is(this.storage,this.userStorage)&&!u&&(u={user:o.user},await Rs(this.userStorage,this.storageKey+"-user",u)),o.user=(e=u?.user)!==null&&e!==void 0?e:md()}else if(o&&!o.user&&!o.user){const u=await fn(this.storage,this.storageKey+"-user");u&&u?.user?(o.user=u.user,await at(this.storage,this.storageKey+"-user"),await Rs(this.storage,this.storageKey,o)):o.user=md()}if(this._debug(s,"session from storage",o),!this._isValidSession(o)){this._debug(s,"session is not valid"),o!==null&&await this._removeSession();return}const c=((a=o.expires_at)!==null&&a!==void 0?a:1/0)*1e3-Date.now()<gd;if(this._debug(s,`session has${c?"":" not"} expired with margin of ${gd}s`),c){if(this.autoRefreshToken&&o.refresh_token){const{error:u}=await this._callRefreshToken(o.refresh_token);u&&(Vx(u)?this._debug(s,"refresh discarded by commit guard",u):this._debug(s,"refresh failed",u))}}else if(o.user&&o.user.__isUserNotAvailableProxy===!0)try{const{data:u,error:d}=await this._getUser(o.access_token);!d&&u?.user?(o.user=u.user,await this._saveSession(o),await this._notifyAllSubscribers("SIGNED_IN",o)):this._debug(s,"could not get user data, skipping SIGNED_IN notification")}catch(u){console.error("Error getting user data:",u),this._debug(s,"error getting user data, skipping SIGNED_IN notification",u)}else await this._notifyAllSubscribers("SIGNED_IN",o)}catch(o){this._debug(s,"error",o),console.error(o);return}finally{this._debug(s,"end")}}async _callRefreshToken(e){var a,s;if(!e)throw new ft;if(this.refreshingDeferred)return this.refreshingDeferred.promise;if(this.lastRefreshFailure&&this.lastRefreshFailure.refreshToken===e&&Date.now()<this.lastRefreshFailure.expiresAt)return this._debug("#_callRefreshToken()","returning cached failure (cooldown active)"),this.lastRefreshFailure.result;const o="#_callRefreshToken()";this._debug(o,"begin");try{this.refreshingDeferred=new Mc;const c=await fn(this.storage,this.storageKey),{data:u,error:d}=await this._refreshAccessToken(e);if(d)throw d;if(!u.session)throw new ft;const p=await fn(this.storage,this.storageKey);if(c!==null&&(p===null||p.refresh_token!==c.refresh_token)){this._debug(o,"commit guard: storage changed since refresh started, discarding rotated tokens",{startedWith:"present",nowHolds:p?"replaced":"cleared"});const w={data:null,error:new Mv};return this.refreshingDeferred.resolve(w),w}const y=this._sessionRemovalEpoch;if(await this._saveSession(u.session),this._sessionRemovalEpoch!==y){this._debug(o,"commit guard (post-save): _removeSession ran during _saveSession, undoing write"),await at(this.storage,this.storageKey),this.userStorage&&await at(this.userStorage,this.storageKey+"-user");const w={data:null,error:new Mv};return this.refreshingDeferred.resolve(w),w}await this._notifyAllSubscribers("TOKEN_REFRESHED",u.session);const m={data:u.session,error:null};return this.lastRefreshFailure=null,this.refreshingDeferred.resolve(m),m}catch(c){if(this._debug(o,"error",c),Z(c)){const u={data:null,error:c};if(!jv(c)){const d=await fn(this.storage,this.storageKey);!!(d?.expires_at&&d.expires_at*1e3>Date.now())?this._debug(o,"proactive refresh failed, access token still valid — preserving session"):await this._removeSession()}return this.lastRefreshFailure={refreshToken:e,result:u,expiresAt:Date.now()+Mx},(a=this.refreshingDeferred)===null||a===void 0||a.resolve(u),u}throw(s=this.refreshingDeferred)===null||s===void 0||s.reject(c),c}finally{this.refreshingDeferred=null,this._debug(o,"end")}}
40async _notifyAllSubscribers(e,a,s=!0){if(this._pendingInitNotifications!==null&&s){this._pendingInitNotifications.push({event:e,session:a,broadcast:s});return}const o=`#_notifyAllSubscribers(${e})`;this._debug(o,"begin",a,`broadcast = ${s}`);try{this.broadcastChannel&&s&&this.broadcastChannel.postMessage({event:e,session:a});const c=[],u=Array.from(this.stateChangeEmitters.values()).map(async d=>{try{await d.callback(e,a)}catch(p){c.push(p)}});if(await Promise.all(u),c.length>0){for(let d=0;d<c.length;d+=1)console.error(c[d]);throw c[0]}}finally{this._debug(o,"end")}}async _saveSession(e){this._debug("#_saveSession()",e),this.suppressGetSessionWarning=!0;const a=Object.assign({},e),s=a.user&&a.user.__isUserNotAvailableProxy===!0;if(this.userStorage){!s&&a.user&&await Rs(this.userStorage,this.storageKey+"-user",{user:a.user});const o=Object.assign({},a);delete o.user;const c=Nv(o);await Rs(this.storage,this.storageKey,c)}else{const o=Nv(a);await Rs(this.storage,this.storageKey,o)}}async _removeSession(){this._sessionRemovalEpoch+=1,this._debug("#_removeSession()"),this.lastRefreshFailure=null,this.suppressGetSessionWarning=!1,await at(this.storage,this.storageKey),await at(this.storage,this.storageKey+"-code-verifier"),await at(this.storage,this.storageKey+"-user"),this.userStorage&&await at(this.userStorage,this.storageKey+"-user"),await this._notifyAllSubscribers("SIGNED_OUT",null)}_removeVisibilityChangedCallback(){this._debug("#_removeVisibilityChangedCallback()");const e=this.visibilityChangedCallback;this.visibilityChangedCallback=null;try{e&&At()&&window?.removeEventListener&&window.removeEventListener("visibilitychange",e)}catch(a){console.error("removing visibilitychange callback failed",a)}}async _startAutoRefresh(){await this._stopAutoRefresh(),this._debug("#_startAutoRefresh()");const e=setInterval(()=>this._autoRefreshTokenTick(),aa);this.autoRefreshTicker=e,e&&typeof e=="object"&&typeof e.unref=="function"?e.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(e);const a=setTimeout(async()=>{await this.initializePromise,await this._autoRefreshTokenTick()},0);this.autoRefreshTickTimeout=a,a&&typeof a=="object"&&typeof a.unref=="function"?a.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(a)}async _stopAutoRefresh(){this._debug("#_stopAutoRefresh()");const e=this.autoRefreshTicker;this.autoRefreshTicker=null,e&&clearInterval(e);const a=this.autoRefreshTickTimeout;this.autoRefreshTickTimeout=null,a&&clearTimeout(a)}async startAutoRefresh(){this._removeVisibilityChangedCallback(),await this._startAutoRefresh()}async stopAutoRefresh(){this._removeVisibilityChangedCallback(),await this._stopAutoRefresh()}async dispose(){var e;this._removeVisibilityChangedCallback(),await this._stopAutoRefresh(),(e=this.broadcastChannel)===null||e===void 0||e.close(),this.broadcastChannel=null,this.stateChangeEmitters.clear()}async _autoRefreshTokenTick(){if(this._debug("#_autoRefreshTokenTick()","begin"),this.lock!=null){try{await this._acquireLock(0,async()=>{try{const e=Date.now();try{return await this._useSession(async a=>{const{data:{session:s}}=a;if(!s||!s.refresh_token||!s.expires_at){this._debug("#_autoRefreshTokenTick()","no session");return}const o=Math.floor((s.expires_at*1e3-e)/aa);this._debug("#_autoRefreshTokenTick()",`access token expires in ${o} ticks, a tick lasts ${aa}ms, refresh threshold is ${Hr} ticks`),o<=Hr&&await this._callRefreshToken(s.refresh_token)})}catch(a){console.error("Auto refresh tick failed with error. This is likely a transient error.",a)}}finally{this._debug("#_autoRefreshTokenTick()","end")}})}catch(e){if(e instanceof v1)this._debug("auto refresh token tick lock not available");else throw e}return}if(this.refreshingDeferred!==null){this._debug("#_autoRefreshTokenTick()","refresh already in flight, skipping");return}try{const e=Date.now();try{await this._useSession(async a=>{const{data:{session:s}}=a;if(!s||!s.refresh_token||!s.expires_at){this._debug("#_autoRefreshTokenTick()","no session");return}const o=Math.floor((s.expires_at*1e3-e)/aa);this._debug("#_autoRefreshTokenTick()",`access token expires in ${o} ticks, a tick lasts ${aa}ms, refresh threshold is ${Hr} ticks`),o<=Hr&&await this._callRefreshToken(s.refresh_token)})}catch(a){console.error("Auto refresh tick failed with error. This is likely a transient error.",a)}}finally{this._debug("#_autoRefreshTokenTick()","end")}}async _handleVisibilityChange(){if(this._debug("#_handleVisibilityChange()"),!At()||!window?.addEventListener)return this.autoRefreshToken&&this.startAutoRefresh(),!1;try{this.visibilityChangedCallback=async()=>{try{await this._onVisibilityChanged(!1)}catch(e){this._debug("#visibilityChangedCallback","error",e)}},window?.addEventListener("visibilitychange",this.visibilityChangedCallback),await this._onVisibilityChanged(!0)}catch(e){console.error("_handleVisibilityChange",e)}}async _onVisibilityChanged(e){const a=`#_onVisibilityChanged(${e})`;if(this._debug(a,"visibilityState",document.visibilityState),document.visibilityState==="visible"){if(this.autoRefreshToken&&this._startAutoRefresh(),!e)if(await this.initializePromise,this.lock!=null)await this._acquireLock(this.lockAcquireTimeout,async()=>
40{if(document.visibilityState!=="visible"){this._debug(a,"acquired the lock to recover the session, but the browser visibilityState is no longer visible, aborting");return}await this._recoverAndRefresh()});else{if(document.visibilityState!=="visible"){this._debug(a,"visibilityState is no longer visible, skipping recovery");return}await this._recoverAndRefresh()}}else document.visibilityState==="hidden"&&this.autoRefreshToken&&this._stopAutoRefresh()}async _getUrlForProvider(e,a,s){const o=[`provider=${encodeURIComponent(a)}`];if(s?.redirectTo&&o.push(`redirect_to=${encodeURIComponent(s.redirectTo)}`),s?.scopes&&o.push(`scopes=${encodeURIComponent(s.scopes)}`),this.flowType==="pkce"){const[c,u]=await gi(this.storage,this.storageKey),d=new URLSearchParams({code_challenge:`${encodeURIComponent(c)}`,code_challenge_method:`${encodeURIComponent(u)}`});o.push(d.toString())}if(s?.queryParams){const c=new URLSearchParams(s.queryParams);o.push(c.toString())}return s?.skipBrowserRedirect&&o.push(`skip_http_redirect=${s.skipBrowserRedirect}`),`${e}?${o.join("&")}`}async _unenroll(e){try{return await this._useSession(async a=>{var s;const{data:o,error:c}=a;return c?this._returnResult({data:null,error:c}):await te(this.fetch,"DELETE",`${this.url}/factors/${e.factorId}`,{headers:this.headers,jwt:(s=o?.session)===null||s===void 0?void 0:s.access_token})})}catch(a){if(Z(a))return this._returnResult({data:null,error:a});throw a}}async _enroll(e){try{return await this._useSession(async a=>{var s,o;const{data:c,error:u}=a;if(u)return this._returnResult({data:null,error:u});const d=Object.assign({friendly_name:e.friendlyName,factor_type:e.factorType},e.factorType==="phone"?{phone:e.phone}:e.factorType==="totp"?{issuer:e.issuer}:{}),{data:p,error:g}=await te(this.fetch,"POST",`${this.url}/factors`,{body:d,headers:this.headers,jwt:(s=c?.session)===null||s===void 0?void 0:s.access_token});return g?this._returnResult({data:null,error:g}):(e.factorType==="totp"&&p.type==="totp"&&(!((o=p?.totp)===null||o===void 0)&&o.qr_code)&&(p.totp.qr_code=`data:image/svg+xml;utf-8,${p.totp.qr_code}`),this._returnResult({data:p,error:null}))})}catch(a){if(Z(a))return this._returnResult({data:null,error:a});throw a}}async _verify(e){const a=async()=>{try{return await this._useSession(async s=>{var o;const{data:c,error:u}=s;if(u)return this._returnResult({data:null,error:u});const d=Object.assign({challenge_id:e.challengeId},"webauthn"in e?{webauthn:Object.assign(Object.assign({},e.webauthn),{credential_response:e.webauthn.type==="create"?Gv(e.webauthn.credential_response):Wv(e.webauthn.credential_response)})}:{code:e.code}),{data:p,error:g}=await te(this.fetch,"POST",`${this.url}/factors/${e.factorId}/verify`,{body:d,headers:this.headers,jwt:(o=c?.session)===null||o===void 0?void 0:o.access_token});return g?this._returnResult({data:null,error:g}):(await this._saveSession(Object.assign({expires_at:Math.round(Date.now()/1e3)+p.expires_in},p)),await this._notifyAllSubscribers("MFA_CHALLENGE_VERIFIED",p),this._returnResult({data:p,error:g}))})}catch(s){if(Z(s))return this._returnResult({data:null,error:s});throw s}};return this.lock!=null?this._acquireLock(this.lockAcquireTimeout,a):a()}async _challenge(e){const a=async()=>{try{return await this._useSession(async s=>{var o;const{data:c,error:u}=s;if(u)return this._returnResult({data:null,error:u});const d=await te(this.fetch,"POST",`${this.url}/factors/${e.factorId}/challenge`,{body:e,headers:this.headers,jwt:(o=c?.session)===null||o===void 0?void 0:o.access_token});if(d.error)return d;const{data:p}=d;if(p.type!=="webauthn")return{data:p,error:null};switch(p.webauthn.type){case"create":return{data:Object.assign(Object.assign({},p),{webauthn:Object.assign(Object.assign({},p.webauthn),{credential_options:Object.assign(Object.assign({},p.webauthn.credential_options),{publicKey:Vv(p.webauthn.credential_options.publicKey)})})}),error:null};case"request":return{data:Object.assign(Object.assign({},p),{webauthn:Object.assign(Object.assign({},p.webauthn),{credential_options:Object.assign(Object.assign({},p.webauthn.credential_options),{publicKey:Hv(p.webauthn.credential_options.publicKey)})})}),error:null}}})}catch(s){if(Z(s))return this._returnResult({data:null,error:s});throw s}};return this.lock!=null?this._acquireLock(this.lockAcquireTimeout,a):a()}async _challengeAndVerify(e){const{data:a,error:s}=await this._challenge({factorId:e.factorId});return s?this._returnResult({data:null,error:s}):await this._verify({factorId:e.factorId,challengeId:a.id,code:e.code})}async _listFactors(){var e;const{data:{user:a},error:s}=await this.getUser();if(s)return{data:null,error:s};const o={all:[],phone:[],totp:[],webauthn:[]};for(const c of(e=a?.factors)!==null&&e!==void 0?e:[])o.all.push(c),c.status==="verified"&&o[c.factor_type].push(c);return{data:o,error:null}}async _getAuthenticatorAssuranceLevel(e){var a,s,o,c;if(e)try{const{payload:b}=Fl(e);let S=null;b.aal&&(S=b.aal);let A=S;const{data:{user:_},error:C}=await this.getUser(e);if(C)return this._returnResult({data:null,error:C});((s=(a=_?.factors)===null||a===void 0?void 0:a.filter(D=>D.status==="verified"))!==null&&s!==void 0?s:[]).length>0&&(A="aal2");const j=b.amr||[];return{data:{currentLevel:S,nextLevel:A,currentAuthenticationMethods:j},error:null}}catch(b){if(Z(b))return this._returnResult({data:null,error:b});throw b}const{data:{session:u},error:d}
40=await this.getSession();if(d)return this._returnResult({data:null,error:d});if(!u)return{data:{currentLevel:null,nextLevel:null,currentAuthenticationMethods:[]},error:null};const{payload:p}=Fl(u.access_token);let g=null;p.aal&&(g=p.aal);let y=g;((c=(o=u.user.factors)===null||o===void 0?void 0:o.filter(b=>b.status==="verified"))!==null&&c!==void 0?c:[]).length>0&&(y="aal2");const w=p.amr||[];return{data:{currentLevel:g,nextLevel:y,currentAuthenticationMethods:w},error:null}}async _getAuthorizationDetails(e){try{return await this._useSession(async a=>{const{data:{session:s},error:o}=a;return o?this._returnResult({data:null,error:o}):s?await te(this.fetch,"GET",`${this.url}/oauth/authorizations/${e}`,{headers:this.headers,jwt:s.access_token,xform:c=>({data:c,error:null})}):this._returnResult({data:null,error:new ft})})}catch(a){if(Z(a))return this._returnResult({data:null,error:a});throw a}}async _approveAuthorization(e,a){try{return await this._useSession(async s=>{const{data:{session:o},error:c}=s;if(c)return this._returnResult({data:null,error:c});if(!o)return this._returnResult({data:null,error:new ft});const u=await te(this.fetch,"POST",`${this.url}/oauth/authorizations/${e}/consent`,{headers:this.headers,jwt:o.access_token,body:{action:"approve"},xform:d=>({data:d,error:null})});return u.data&&u.data.redirect_url&&At()&&!a?.skipBrowserRedirect&&window.location.assign(u.data.redirect_url),u})}catch(s){if(Z(s))return this._returnResult({data:null,error:s});throw s}}async _denyAuthorization(e,a){try{return await this._useSession(async s=>{const{data:{session:o},error:c}=s;if(c)return this._returnResult({data:null,error:c});if(!o)return this._returnResult({data:null,error:new ft});const u=await te(this.fetch,"POST",`${this.url}/oauth/authorizations/${e}/consent`,{headers:this.headers,jwt:o.access_token,body:{action:"deny"},xform:d=>({data:d,error:null})});return u.data&&u.data.redirect_url&&At()&&!a?.skipBrowserRedirect&&window.location.assign(u.data.redirect_url),u})}catch(s){if(Z(s))return this._returnResult({data:null,error:s});throw s}}async _listOAuthGrants(){try{return await this._useSession(async e=>{const{data:{session:a},error:s}=e;return s?this._returnResult({data:null,error:s}):a?await te(this.fetch,"GET",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:a.access_token,xform:o=>({data:o,error:null})}):this._returnResult({data:null,error:new ft})})}catch(e){if(Z(e))return this._returnResult({data:null,error:e});throw e}}async _revokeOAuthGrant(e){try{return await this._useSession(async a=>{const{data:{session:s},error:o}=a;return o?this._returnResult({data:null,error:o}):s?(await te(this.fetch,"DELETE",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:s.access_token,query:{client_id:e.clientId},noResolveJson:!0}),{data:{},error:null}):this._returnResult({data:null,error:new ft})})}catch(a){if(Z(a))return this._returnResult({data:null,error:a});throw a}}async fetchJwk(e,a={keys:[]}){let s=a.keys.find(d=>d.kid===e);if(s)return s;const o=Date.now();if(s=this.jwks.keys.find(d=>d.kid===e),s&&this.jwks_cached_at+Nx>o)return s;const{data:c,error:u}=await te(this.fetch,"GET",`${this.url}/.well-known/jwks.json`,{headers:this.headers});if(u)throw u;return!c.keys||c.keys.length===0||(this.jwks=c,this.jwks_cached_at=o,s=c.keys.find(d=>d.kid===e),!s)?null:s}async getClaims(e,a={}){try{let s=e;if(!s){const{data:b,error:S}
40=await this.getSession();if(S||!b.session)return this._returnResult({data:null,error:S});s=b.session.access_token}const{header:o,payload:c,signature:u,raw:{header:d,payload:p}}=Fl(s);if(!a?.allowExpired)try{o1(c.exp)}catch(b){throw new hc(b instanceof Error?b.message:"JWT validation failed")}const g=!o.alg||o.alg.startsWith("HS")||!o.kid||!("crypto"in globalThis&&"subtle"in globalThis.crypto)?null:await this.fetchJwk(o.kid,a?.keys?{keys:a.keys}:a?.jwks);if(!g){const{error:b}=await this.getUser(s);if(b)throw b;return{data:{claims:c,header:o,signature:u},error:null}}const y=l1(o.alg),m=await crypto.subtle.importKey("jwk",g,y,!0,["verify"]);if(!await crypto.subtle.verify(y,m,u,Kx(`${d}.${p}`)))throw new hc("Invalid JWT signature");return{data:{claims:c,header:o,signature:u},error:null}}catch(s){if(Z(s))return this._returnResult({data:null,error:s});throw s}}async signInWithPasskey(e){var a,s,o;pn(this.experimental);try{if(!pc())return this._returnResult({data:null,error:new wn("Browser does not support WebAuthn",null)});const{data:c,error:u}=await this._startPasskeyAuthentication({options:{captchaToken:(a=e?.options)===null||a===void 0?void 0:a.captchaToken}});if(u||!c)return this._returnResult({data:null,error:u});const d=Hv(c.options),p=(o=(s=e?.options)===null||s===void 0?void 0:s.signal)!==null&&o!==void 0?o:$d.createNewAbortSignal(),{data:g,error:y}=await $b({publicKey:d,signal:p});if(y||!g)return this._returnResult({data:null,error:y??new wn("WebAuthn ceremony failed",null)});const m=Wv(g);return this._verifyPasskeyAuthentication({challengeId:c.challenge_id,credential:m})}catch(c){if(Z(c))return this._returnResult({data:null,error:c});throw c}}async registerPasskey(e){var a,s;pn(this.experimental);try{if(!pc())return this._returnResult({data:null,error:new wn("Browser does not support WebAuthn",null)});const{data:o,error:c}=await this._startPasskeyRegistration();if(c||!o)return this._returnResult({data:null,error:c});const u=Vv(o.options),d=(s=(a=e?.options)===null||a===void 0?void 0:a.signal)!==null&&s!==void 0?s:$d.createNewAbortSignal(),{data:p,error:g}=await qb({publicKey:u,signal:d});if(g||!p)return this._returnResult({data:null,error:g??new wn("WebAuthn ceremony failed",null)});const y=Gv(p);return this._verifyPasskeyRegistration({challengeId:o.challenge_id,credential:y})}catch(o){if(Z(o))return this._returnResult({data:null,error:o});throw o}}async _startPasskeyRegistration(){pn(this.experimental);try{return await this._useSession(async e=>{const{data:{session:a},error:s}=e;if(s)return this._returnResult({data:null,error:s});if(!a)return this._returnResult({data:null,error:new ft});const{data:o,error:c}=await te(this.fetch,"POST",`${this.url}/passkeys/registration/options`,{headers:this.headers,jwt:a.access_token,body:{}});return c?this._returnResult({data:null,error:c}):this._returnResult({data:o,error:null})})}catch(e){if(Z(e))return this._returnResult({data:null,error:e});throw e}}async _verifyPasskeyRegistration(e){pn(this.experimental);try{return await this._useSession(async a=>{const{data:{session:s},error:o}=a;if(o)return this._returnResult({data:null,error:o});if(!s)return this._returnResult({data:null,error:new ft});const{data:c,error:u}=await te(this.fetch,"POST",`${this.url}/passkeys/registration/verify`,{headers:this.headers,jwt:s.access_token,body:{challenge_id:e.challengeId,credential:e.credential}});return u?this._returnResult({data:null,error:u}):this._returnResult({data:c,error:null})})}catch(a){if(Z(a))return this._returnResult({data:null,error:a});throw a}}async _startPasskeyAuthentication(e){var a;pn(this.experimental);try{const{data:s,error:o}=await te(this.fetch,"POST",`${this.url}/passkeys/authentication/options`,{headers:this.headers,body:{gotrue_meta_security:{captcha_token:(a=e?.options)===null||a===void 0?void 0:a.captchaToken}}});return o?this._returnResult({data:null,error:o}):this._returnResult({data:s,error:null})}catch(s){if(Z(s))return this._returnResult({data:null,error:s});throw s}}async _verifyPasskeyAuthentication(e){pn(this.experimental);try{const{data:a,error:s}=await te(this.fetch,"POST",`${this.url}/passkeys/authentication/verify`,{headers:this.headers,body:{challenge_id:e.challengeId,credential:e.credential},xform:ln});return s?this._returnResult({data:null,error:s}):(a.session&&(await this._saveSession(a.session),await this._notifyAllSubscribers("SIGNED_IN",a.session)),this._returnResult({data:a,error:null}))}catch(a){if(Z(a))return this._returnResult({data:null,error:a});throw a}}async _listPasskeys(){pn(this.experimental);try{return await this._useSession(async e=>{const{data:{session:a},error:s}=e;if(s)return this._returnResult({data:null,error:s});if(!a)return this._returnResult({data:null,error:new ft});const{data:o,error:c}=await te(this.fetch,"GET",`${this.url}/passkeys`,{headers:this.headers,jwt:a.access_token,xform:u=>({data:u,error:null})});return c?this._returnResult({data:null,error:c}):this._returnResult({data:o,error:null})})}catch(e){if(Z(e))return this._returnResult({data:null,error:e});throw e}}async _updatePasskey(e){pn(this.experimental);try{return await this._useSession(async a=>{const{data:{session:s},error:o}=a;if(o)return this._returnResult({data:null,error:o});if(!s)return this._returnResult({data:null,error:new ft});const{data:c,error:u}=await te(this.fetch,"PATCH",`${this.url}/passkeys/${e.passkeyId}`,{headers:this.headers,jwt:s.access_token,body:{friendly_name:e.friendlyName}});return u?this._returnResult({data:null,error:u}):this._returnResult({data:c,error:null})})}catch(a){if(Z(a))return this._returnResult({data:null,error:a});throw a}}async _deletePasskey(e){pn(this.experimental);try{return await this._useSession(async a=>{const{data:{session:s},error:o}=a;if(o)return this._returnResult({data:null,error:o});if(!s)return this._returnResult({data:null,error:new ft});const{error:c}
40=await te(this.fetch,"DELETE",`${this.url}/passkeys/${e.passkeyId}`,{headers:this.headers,jwt:s.access_token,noResolveJson:!0});return c?this._returnResult({data:null,error:c}):this._returnResult({data:null,error:null})})}catch(a){if(Z(a))return this._returnResult({data:null,error:a});throw a}}}oo.nextInstanceID={};const j1=oo,M1="2.110.3";let Gr="",mc;if(typeof Deno<"u"){var vd;Gr="deno",mc=(vd=Deno.version)===null||vd===void 0?void 0:vd.deno}else if(typeof document<"u")Gr="web";else if(typeof navigator<"u"&&navigator.product==="ReactNative")Gr="react-native";else{var wd;Gr="node",mc=typeof process<"u"?(wd=process.version)===null||wd===void 0?void 0:wd.replace(/^v/,""):void 0}const Vb=[`runtime=${Gr}`];mc&&Vb.push(`runtime-version=${mc}`);const D1={"X-Client-Info":`supabase-js/${M1}; ${Vb.join("; ")}`},P1={headers:D1},L1={schema:"public"},z1={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},N1={},U1={enabled:!1,respectSamplingDecision:!0};function I1(t,e,a,s){function o(c){return c instanceof a?c:new a(function(u){u(c)})}return new(a||(a=Promise))(function(c,u){function d(y){try{g(s.next(y))}catch(m){u(m)}}function p(y){try{g(s.throw(y))}catch(m){u(m)}}function g(y){y.done?c(y.value):o(y.value).then(d,p)}g((s=s.apply(t,[])).next())})}let bd=null;const q1="@opentelemetry/api";function $1(){return bd===null&&(bd=import(q1).catch(()=>null)),bd}function V1(){return I1(this,void 0,void 0,function*(){try{const t=yield $1();if(!t||!t.propagation||!t.context)return null;const e={};t.propagation.inject(t.context.active(),e);const a=e.traceparent;return a?{traceparent:a,tracestate:e.tracestate,baggage:e.baggage}:null}catch{return null}})}function H1(t){if(!t||typeof t!="string")return null;const e=t.split("-");if(e.length!==4)return null;const[a,s,o,c]=e;if(a.length!==2||s.length!==32||o.length!==16||c.length!==2)return null;const u=/^[0-9a-f]+$/i;return!u.test(a)||!u.test(s)||!u.test(o)||!u.test(c)||s==="00000000000000000000000000000000"||o==="0000000000000000"?null:{version:a,traceId:s,parentId:o,traceFlags:c,isSampled:(parseInt(c,16)&1)===1}}function G1(t,e){if(!t||!e||e.length===0)return!1;let a;if(t instanceof URL)a=t;else try{a=new URL(t)}catch{return!1}for(const s of e)try{if(typeof s=="string"){if(W1(a.hostname,s))return!0}else if(s instanceof RegExp){if(s.test(a.hostname))return!0}else if(typeof s=="function"&&s(a))return!0}catch{continue}return!1}function W1(t,e){if(e===t)return!0;if(e.startsWith("*.")){const a=e.slice(2);if(t.endsWith(a)&&(t===a||t.endsWith("."+a)))return!0}return!1}function F1(t){const e=[];try{const a=new URL(t);e.push(a.hostname)}catch{}return e.push("*.supabase.co","*.supabase.in"),e.push("localhost","127.0.0.1","[::1]"),e}function lo(t){"@babel/helpers - typeof";return lo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},lo(t)}function K1(t,e){if(lo(t)!="object"||!t)return t;var a=t[Symbol.toPrimitive];if(a!==void 0){var s=a.call(t,e);if(lo(s)!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Y1(t){var e=K1(t,"string");return lo(e)=="symbol"?e:e+""}function Q1(t,e,a){return(e=Y1(e))in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}function Fv(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),a.push.apply(a,s)}return a}function Ke(t){for(var e=1;e<arguments.length;e++){var a=arguments[e]!=null?arguments[e]:{};e%2?Fv(Object(a),!0).forEach(function(s){Q1(t,s,a[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):Fv(Object(a)).forEach(function(s){Object.defineProperty(t,s,Object.getOwnPropertyDescriptor(a,s))})}return t}const J1=t=>t?(...e)=>t(...e):(...e)=>fetch(...e),Z1=()=>Headers,X1=(t,e,a,s,o)=>{const c=J1(s),u=Z1(),d=o?.enabled===!0,p=o?.respectSamplingDecision!==!1,g=d?F1(e):null;return async(y,m)=>{var w;const b=(w=await a())!==null&&w!==void 0?w:t;let S=new u(m?.headers);if(S.has("apikey")||S.set("apikey",t),S.has("Authorization")||S.set("Authorization",`Bearer ${b}`),g){const A=await eO(y,g,p);A&&(A.traceparent&&!S.has("traceparent")&&S.set("traceparent",A.traceparent),A.tracestate&&!S.has("tracestate")&&S.set("tracestate",A.tracestate),A.baggage&&!S.has("baggage")&&S.set("baggage",A.baggage))}return c(y,Ke(Ke({},m),{},{headers:S}))}};async function eO(t,e,a){if(!G1(typeof t=="string"||t instanceof URL?t:t.url,e))return null;const s=await V1();if(!s||!s.traceparent)return null;if(a){const o=H1(s.traceparent);if(o&&!o.isSampled)return null}return s}function Kv(t){return typeof t=="boolean"?{enabled:t}:t}function tO(t){return t.endsWith("/")?t:t+"/"}function nO(t,e){var a,s,o,c,u,d;const{db:p,auth:g,realtime:y,global:m}=t,{db:w,auth:b,realtime:S,global:A}=e,_=Kv(t.tracePropagation),C=Kv(e.tracePropagation),B={db:Ke(Ke({},w),p),auth:Ke(Ke({},b),g),realtime:Ke(Ke({},S),y),storage:{},global:Ke(Ke(Ke({},A),m),{},{headers:Ke(Ke({},(a=A?.headers)!==null&&a!==void 0?a:{}),(s=m?.headers)!==null&&s!==void 0?s:{})}),tracePropagation:{enabled:(o=(c=_?.enabled)!==null&&c!==void 0?c:C?.enabled)!==null&&o!==void 0?o:!1,respectSamplingDecision:(u=(d=_?.respectSamplingDecision)!==null&&d!==void 0?d:C?.respectSamplingDecision)!==null&&u!==void 0?u:!0},accessToken:async()=>""};return t.accessToken?B.accessToken=t.accessToken:delete B.accessToken,B}function aO(t){const e=t?.trim();if(!e)throw new Error("supabaseUrl is required.");
40if(!e.match(/^https?:\/\//i))throw new Error("Invalid supabaseUrl: Must be a valid HTTP or HTTPS URL.");try{return new URL(tO(e))}catch{throw Error("Invalid supabaseUrl: Provided URL is malformed.")}}var iO=class extends j1{constructor(t){super(t)}},sO=class{constructor(t,e,a){var s,o;this.supabaseUrl=t,this.supabaseKey=e;const c=aO(t);if(!e)throw new Error("supabaseKey is required.");this.realtimeUrl=new URL("realtime/v1",c),this.realtimeUrl.protocol=this.realtimeUrl.protocol.replace("http","ws"),this.authUrl=new URL("auth/v1",c),this.storageUrl=new URL("storage/v1",c),this.functionsUrl=new URL("functions/v1",c);const u=`sb-${c.hostname.split(".")[0]}-auth-token`,d={db:L1,realtime:N1,auth:Ke(Ke({},z1),{},{storageKey:u}),global:P1,tracePropagation:U1},p=nO(a??{},d);if(this.settings=p,this.storageKey=(s=p.auth.storageKey)!==null&&s!==void 0?s:"",this.headers=(o=p.global.headers)!==null&&o!==void 0?o:{},p.accessToken)this.accessToken=p.accessToken,this.auth=new Proxy({},{get:(y,m)=>{throw new Error(`@supabase/supabase-js: Supabase Client is configured with the accessToken option, accessing supabase.auth.${String(m)} is not possible`)}});else{var g;this.auth=this._initSupabaseAuthClient((g=p.auth)!==null&&g!==void 0?g:{},this.headers,p.global.fetch)}this.fetch=X1(e,t,this._getAccessToken.bind(this),p.global.fetch,p.tracePropagation),this.realtime=this._initRealtimeClient(Ke({headers:this.headers,accessToken:this._getAccessToken.bind(this),fetch:this.fetch},p.realtime)),this.accessToken&&Promise.resolve(this.accessToken()).then(y=>this.realtime.setAuth(y)).catch(y=>console.warn("Failed to set initial Realtime auth token:",y)),this.rest=new pE(new URL("rest/v1",c).href,{headers:this.headers,schema:p.db.schema,fetch:this.fetch,timeout:p.db.timeout,urlLengthLimit:p.db.urlLengthLimit}),this.storage=new jx(this.storageUrl.href,this.headers,this.fetch,a?.storage),p.accessToken||this._listenForAuthEvents()}get functions(){return new sE(this.functionsUrl.href,{headers:this.headers,customFetch:this.fetch})}from(t){return this.rest.from(t)}schema(t){return this.rest.schema(t)}rpc(t,e={},a={head:!1,get:!1,count:void 0}){return this.rest.rpc(t,e,a)}channel(t,e={config:{}}){return this.realtime.channel(t,e)}getChannels(){return this.realtime.getChannels()}removeChannel(t){return this.realtime.removeChannel(t)}removeAllChannels(){return this.realtime.removeAllChannels()}async _getAccessToken(){var t=this,e,a;if(t.accessToken)return await t.accessToken();const{data:s}=await t.auth.getSession();return(e=(a=s.session)===null||a===void 0?void 0:a.access_token)!==null&&e!==void 0?e:t.supabaseKey}_initSupabaseAuthClient({autoRefreshToken:t,persistSession:e,detectSessionInUrl:a,storage:s,userStorage:o,storageKey:c,flowType:u,lock:d,debug:p,throwOnError:g,experimental:y,lockAcquireTimeout:m,skipAutoInitialize:w},b,S){const A={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new iO({url:this.authUrl.href,headers:Ke(Ke({},A),b),storageKey:c,autoRefreshToken:t,persistSession:e,detectSessionInUrl:a,storage:s,userStorage:o,flowType:u,lock:d,debug:p,throwOnError:g,experimental:y,fetch:S,lockAcquireTimeout:m,skipAutoInitialize:w,hasCustomAuthorizationHeader:Object.keys(this.headers).some(_=>_.toLowerCase()==="authorization")})}_initRealtimeClient(t){return new nx(this.realtimeUrl.href,Ke(Ke({},t),{},{params:Ke(Ke({},{apikey:this.supabaseKey}),t?.params)}))}_listenForAuthEvents(){return this.auth.onAuthStateChange((t,e)=>{this._handleTokenChanged(t,"CLIENT",e?.access_token)})}_handleTokenChanged(t,e,a){(t==="TOKEN_REFRESHED"||t==="SIGNED_IN")&&this.changedAccessToken!==a?(this.changedAccessToken=a,this.realtime.setAuth(a)):t==="SIGNED_OUT"&&(this.realtime.setAuth(),e=="STORAGE"&&this.auth.signOut(),this.changedAccessToken=void 0)}};const rO=(t,e,a)=>new sO(t,e,a);function oO(){if(typeof window<"u")return!1;const t=globalThis.process;if(!t)return!1;const e=t.version;if(e==null)return!1;const a=e.match(/^v(\d+)\./);return a?parseInt(a[1],10)<=20:!1}oO()&&console.warn("⚠️  Node.js 20 and below are deprecated and will no longer be supported in future versions of @supabase/supabase-js. Please upgrade to N
40ode.js 22 or later. For more information, visit: https://github.com/orgs/supabase/discussions/45715");function lO(){if(typeof window>"u")return;const t=location.hostname,a=["lovableproject.com","lovableproject-dev.com","lovable.app","gpt-eng.com","gptengineer.run"].some(_=>t===_||t.endsWith("."+_)),s="[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}",o=a?t.match(new RegExp("^(?:id-preview(?:-[a-z0-9]+)?|project)--("+s+")(?:-dev)?(?=\\.|$)","i"))?.[1]??t.match(new RegExp("^("+s+")(?=[.-])","i"))?.[1]:void 0,c=window.parent&&window.parent!==window;if(!o||!c)return localStorage;const u=t.endsWith(".lovableproject-dev.com")||t.endsWith(".gpt-eng.com"),d=u?/^https:\/\/([a-z0-9-]+\.)*(lovable\.dev|gptengineer\.app)$|^http:\/\/localhost:3000$/:/^https:\/\/([a-z0-9-]+\.)*(lovable\.dev|gptengineer\.app)$/,p=location.ancestorOrigins&&location.ancestorOrigins[0]||(document.referrer?new URL(document.referrer).origin:""),g=p&&d.test(p)?[p]:u?["https://lovable.dev","http://localhost:3000"]:["https://lovable.dev"],y="lovable-preview-auth:result",m=2e3,w=()=>Math.random().toString(36).slice(2)+Date.now().toString(36),b=(_,C,B)=>new Promise(j=>{const D=w();let F=!1,V;const I=se=>{F||(F=!0,clearTimeout(V),window.removeEventListener("message",W),j(se))},W=se=>{if(g.indexOf(se.origin)<0)return;const ne=se.data;ne&&ne.type===y&&ne.requestId===D&&I(ne)};window.addEventListener("message",W);const Q={type:_,requestId:D,projectId:o,key:C};B!==void 0&&(Q.value=B);for(const se of g)window.parent.postMessage(Q,se);V=setTimeout(()=>I(null),m)});let S=!0;const A=250;return{getItem:async _=>{let C=await b("lovable-preview-auth:get",_);return!C&&S&&(await new Promise(B=>setTimeout(B,A)),C=await b("lovable-preview-auth:get",_)),S=!1,C&&C.ok&&typeof C.value=="string"?C.value===""?(localStorage.removeItem(_),null):C.value:localStorage.getItem(_)},setItem:(_,C)=>(localStorage.setItem(_,C),b("lovable-preview-auth:set",_,C).then(B=>{B&&B.ok&&typeof B.value=="string"&&localStorage.getItem(_)===C&&(B.value===""?localStorage.removeItem(_):localStorage.setItem(_,B.value))})),removeItem:_=>(localStorage.removeItem(_),b("lovable-preview-auth:remove",_).then(()=>{}))}}function cO(){return rO("https://yybayzcooeloqbnsobrv.supabase.co","eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Inl5YmF5emNvb2Vsb3FibnNvYnJ2Iiwicm9sZSI6ImFub24iLCJpYXQiOjE3NzgyNTIwNTgsImV4cCI6MjA5MzgyODA1OH0.54WcubsJ2pAi9uiCTMW3qACU6INSsOtMeujOJOFvspo",{auth:{storage:lO(),persistSession:!0,autoRefreshToken:!0}})}let Sd;const uO=new Proxy({},{get(t,e,a){return Sd||(Sd=cO()),Reflect.get(Sd,e,a)}}),hO=Si({type:"function"}).client(async({next:t})=>{const{data:e}=await uO.auth.getSession(),a=e.session?.access_token;return t({headers:a?{Authorization:`Bearer ${a}`}:{}})}),dO=Si(),Yv=tE(()=>({functionMiddleware:[hO],requestMiddleware:[dO]}));var Dc=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},fO=class extends Dc{#e;#n;#t;constructor(){super(),this.#t=t=>{if(typeof window<"u"&&window.addEventListener){const e=()=>t();return window.addEventListener("visibilitychange",e,!1),()=>{window.removeEventListener("visibilitychange",e)}}}}onSubscribe(){this.#n||this.setEventListener(this.#t)}onUnsubscribe(){this.hasListeners()||(this.#n?.(),this.#n=void 0)}setEventListener(t){this.#t=t,this.#n?.(),this.#n=t(e=>{typeof e=="boolean"?this.setFocused(e):this.onFocus()})}setFocused(t){this.#e!==t&&(this.#e=t,this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(e=>{e(t)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},Hb=new fO,pO={setTimeout:(t,e)=>setTimeout(t,e),clearTimeout:t=>clearTimeout(t),setInterval:(t,e)=>setInterval(t,e),clearInterval:t=>clearInterval(t)},gO=class{#e=pO;#n=!1;setTimeoutProvider(t){this.#e=t}setTimeout(t,e){return this.#e.setTimeout(t,e)}clearTimeout(t){this.#e.clearTimeout(t)}setInterval(t,e){return this.#e.setInterval(t,e)}clearInterval(t){this.#e.clearInterval(t)}},Vd=new gO;function mO(t){setTimeout(t,0)}var yO=typeof window>"u"||"Deno"in globalThis;function mn(){}function vO(t,e){return typeof t=="function"?t(e):t}function wO(t){return typeof t=="number"&&t>=0&&t!==1/0}function bO(t,e){return Math.max(t+(e||0)-Date.now(),0)}function Hd(t,e){return typeof t=="function"?t(e):t}function SO(t,e){return typeof t=="function"?t(e):t}function Qv(t,e){const{type:a="all",exact:s,fetchStatus:o,predicate:c,queryKey:u,stale:d}=t;if(u){if(s){if(e.queryHash!==uf(u,e.options))return!1}else if(!uo(e.queryKey,u))return!1}if(a!=="all"){const p=e.isActive();if(a==="active"&&!p||a==="inactive"&&p)return!1}return!(typeof d=="boolean"&&e.isStale()!==d||o&&o!==e.state.fetchStatus||c&&!c(e))}function Jv(t,e){const{exact:a,status:s,predicate:o,mutationKey:c}=t;if(c){if(!e.options.mutationKey)return!1;if(a){if(co(e.options.mutationKey)!==co(c))return!1}else if(!uo(e.options.mutationKey,c))return!1}return!(s&&e.state.status!==s||o&&!o(e))}function uf(t,e){return(e?.queryKeyHashFn||co)(t)}function co(t){return JSON.stringify(t,(e,a)=>Gd(a)?Object.keys(a).sort().reduce((s,o)=>(s[o]=a[o],s),{}):a)}function uo(t,e){return t===e?!0:typeof t!=typeof e?!1:t&&e&&typeof t=="object"&&typeof e=="object"?Object.keys(e).every(a=>uo(t[a],e[a])):!1}var kO=Object.prototype.hasOwnProperty;function Gb(t,e,a=0){if(t===e)return t;if(a>500)return e;const s=Zv(t)&&Zv(e);if(!s&&!(Gd(t)&&Gd(e)))return e;const c=(s?t:Object.keys(t)).length,u=s?e:Object.keys(e),d=u.length,p=s?new Array(d):{};let g=0;for(let y=0;y<d;y++){const m=s?y:u[y],w=t[m],b=e[m];if(w===b){p[m]=w,(s?y<c:kO.call(t,m))&&g++;continue}if(w===null||b===null||typeof w!="object"||typeof b!="object"){p[m]=b;continue}const S=Gb(w,b,a+1);p[m]=S,S===w&&g++}return c===d&&g===c?t:p}function Zv(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function Gd(t){if(!Xv(t))return!1;const e=t.constructor;if(e===void 0)return!0;const a=e.prototype;return!(!Xv(a)||!a.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(t)!==Object.prototype)}function Xv(t){return Object.prototype.toString.call(t)==="[object Object]"}function _O(t){return new Promise(e=>{Vd.setTimeout(e,t)})}function TO(t,e,a){return typeof a.structuralSharing=="function"?a.structuralSharing(t,e):a.structuralSharing!==!1?Gb(t,e):e}function RO(t,e,a=0){const s=[...t,e];return a&&s.length>a?s.slice(1):s}function AO(t,e,a=0){const s=[e,...t];return a&&s.length>a?s.slice(0,-1):s}var hf=Symbol();function Wb(t,e){return!t.queryFn&&e?.initialPromise?()=>e.initialPromise:!t.queryFn||t.queryFn===hf?()=>Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)):t.queryFn}function CO(t,e,a){let s=!1,o;return Object.defineProperty(t,"signal",{enumerable:!0,get:()=>(o??=e(),s||(s=!0,o.aborted?a():o.addEventListener("abort",a,{once:!0})),o)}),t}var Fb=(()=>{let t=()=>yO;return{isServer(){return t()},setIsServer(e){t=e}}})();function EO(){let t,e;const a=new Promise((o,c)=>{t=o,e=c});
vendor: 24,303 bytes, line 40
40a.status="pending",a.catch(()=>{});function s(o){Object.assign(a,o),delete a.resolve,delete a.reject}return a.resolve=o=>{s({status:"fulfilled",value:o}),t(o)},a.reject=o=>{s({status:"rejected",reason:o}),e(o)},a}var xO=mO;function OO(){let t=[],e=0,a=d=>{d()},s=d=>{d()},o=xO;const c=d=>{e?t.push(d):o(()=>{a(d)})},u=()=>{const d=t;t=[],d.length&&o(()=>{s(()=>{d.forEach(p=>{a(p)})})})};return{batch:d=>{let p;e++;try{p=d()}finally{e--,e||u()}return p},batchCalls:d=>(...p)=>{c(()=>{d(...p)})},schedule:c,setNotifyFunction:d=>{a=d},setBatchNotifyFunction:d=>{s=d},setScheduler:d=>{o=d}}}var xt=OO(),BO=class extends Dc{#e=!0;#n;#t;constructor(){super(),this.#t=t=>{if(typeof window<"u"&&window.addEventListener){const e=()=>t(!0),a=()=>t(!1);return window.addEventListener("online",e,!1),window.addEventListener("offline",a,!1),()=>{window.removeEventListener("online",e),window.removeEventListener("offline",a)}}}}onSubscribe(){this.#n||this.setEventListener(this.#t)}onUnsubscribe(){this.hasListeners()||(this.#n?.(),this.#n=void 0)}setEventListener(t){this.#t=t,this.#n?.(),this.#n=t(this.setOnline.bind(this))}setOnline(t){this.#e!==t&&(this.#e=t,this.listeners.forEach(a=>{a(t)}))}isOnline(){return this.#e}},yc=new BO;function jO(t){return Math.min(1e3*2**t,3e4)}function Kb(t){return(t??"online")==="online"?yc.isOnline():!0}var Wd=class extends Error{constructor(t){super("CancelledError"),this.revert=t?.revert,this.silent=t?.silent}};function Yb(t){let e=!1,a=0,s;const o=EO(),c=()=>o.status!=="pending",u=A=>{if(!c()){const _=new Wd(A);w(_),t.onCancel?.(_)}},d=()=>{e=!0},p=()=>{e=!1},g=()=>Hb.isFocused()&&(t.networkMode==="always"||yc.isOnline())&&t.canRun(),y=()=>Kb(t.networkMode)&&t.canRun(),m=A=>{c()||(s?.(),o.resolve(A))},w=A=>{c()||(s?.(),o.reject(A))},b=()=>new Promise(A=>{s=_=>{(c()||g())&&A(_)},t.onPause?.()}).then(()=>{s=void 0,c()||t.onContinue?.()}),S=()=>{if(c())return;let A;const _=a===0?t.initialPromise:void 0;try{A=_??t.fn()}catch(C){A=Promise.reject(C)}Promise.resolve(A).then(m).catch(C=>{if(c())return;const B=t.retry??(Fb.isServer()?0:3),j=t.retryDelay??jO,D=typeof j=="function"?j(a,C):j,F=B===!0||typeof B=="number"&&a<B||typeof B=="function"&&B(a,C);if(e||!F){w(C);return}a++,t.onFail?.(a,C),_O(D).then(()=>g()?void 0:b()).then(()=>{e?w(C):S()})})};return{promise:o,status:()=>o.status,cancel:u,continue:()=>(s?.(),o),cancelRetry:d,continueRetry:p,canStart:y,start:()=>(y()?S():b().then(S),o)}}var Qb=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),wO(this.gcTime)&&(this.#e=Vd.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(Fb.isServer()?1/0:300*1e3))}clearGcTimeout(){this.#e!==void 0&&(Vd.clearTimeout(this.#e),this.#e=void 0)}},MO=class extends Qb{#e;#n;#t;#i;#a;#s;#r;constructor(t){super(),this.#r=!1,this.#s=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.#i=t.client,this.#t=this.#i.getQueryCache(),this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.#e=tw(this.options),this.state=t.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#a?.promise}setOptions(t){if(this.options={...this.#s,...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const e=tw(this.options);e.data!==void 0&&(this.setState(ew(e.data,e.dataUpdatedAt)),this.#e=e)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#t.remove(this)}setData(t,e){const a=TO(this.state.data,t,this.options);return this.#o({data:a,type:"success",dataUpdatedAt:e?.updatedAt,manual:e?.manual}),a}setState(t,e){this.#o({type:"setState",state:t,setStateOptions:e})}cancel(t){const e=this.#a?.promise;return this.#a?.cancel(t),e?e.then(mn).catch(mn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#e}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(t=>SO(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===hf||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Hd(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!bO(this.state.dataUpdatedAt,t)}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.#t.notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(e=>e!==t),this.observers.length||(this.#a&&(this.#r||this.#l()?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#t.notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}#l(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"}invalidate(){this.state.isInvalidated||this.#o({type:"invalidate"})}async fetch(t,e){if(this.state.fetchStatus!=="idle"&&this.#a?.status()!=="rejected"){if(this.state.data!==void 0&&e?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(t&&this.setOptions(t),!this.options.queryFn){const d=this.observers.find(p=>p.options.queryFn);d&&this.setOptions(d.options)}const a=new AbortController,s=d=>{Object.defineProperty(d,"signal",{enumerable:!0,get:()=>(this.#r=!0,a.signal)})},o=()=>{const d=Wb(this.options,e),g=(()=>{const y={client:this.#i,queryKey:this.queryKey,meta:this.meta};return s(y),y})();return this.#r=!1,this.options.persister?this.options.persister(d,g,this):d(g)},u=(()=>{const d={fetchOptions:e,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:o};return s(d),d})();this.options.behavior?.onFetch(u,this),this.#n=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==u.fetchOptions?.meta)&&this.#o({type:"fetch",meta:u.fetchOptions?.meta}),this.#a=Yb({initialPromise:e?.initialPromise,fn:u.fetchFn,onCancel:d=>{d instanceof Wd&&d.revert&&this.setState({...this.#n,fetchStatus:"idle"}),a.abort()},onFail:(d,p)=>{this.#o({type:"failed",failureCount:d,error:p})},onPause:()=>{this.#o({type:"pause"})},onContinue:()=>{this.#o({type:"continue"})},retry:u.options.retry,retryDelay:u.options.retryDelay,networkMode:u.options.networkMode,canRun:()=>!0});try{const d=await this.#a.start();if(d===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(d),this.#t.config.onSuccess?.(d,this),this.#t.config.onSettled?.(d,this.state.error,this),d}catch(d){if(d instanceof Wd){if(d.silent)return this.#a.promise;if(d.revert){if(this.state.data===void 0)throw d;return this.state.data}}throw this.#o({type:"error",error:d}),this.#t.config.onError?.(d,this),this.#t.config.onSettled?.(this.state.data,d,this),d}finally{this.scheduleGc()}}#o(t){const e=a=>{switch(t.type){case"failed":return{...a,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...a,fetchStatus:"paused"};case"continue":return{...a,fetchStatus:"fetching"};case"fetch":return{...a,...DO(a.data,this.options),fetchMeta:t.meta??null};case"success":const s={...a,...ew(t.data,t.dataUpdatedAt),dataUpdateCount:a.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#n=t.manual?s:void 0,s;case"error":const o=t.error;return{...a,error:o,errorUpdateCount:a.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:a.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...a,isInvalidated:!0};case"setState":return{...a,...t.state}}};this.state=e(this.state),xt.batch(()=>{this.observers.forEach(a=>{a.onQueryUpdate()}),this.#t.notify({query:this,type:"updated",action:t})})}};function DO(t,e){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Kb(e.networkMode)?"fetching":"paused",...t===void 0&&{error:null,status:"pending"}}}function ew(t,e){return{data:t,dataUpdatedAt:e??Date.now(),error:null,isInvalidated:!1,status:"success"}}function tw(t){const e=typeof t.initialData=="function"?t.initialData():t.initialData,a=e!==void 0,s=a?typeof t.initialDataUpdatedAt=="function"?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:a?s??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:a?"success":"pending",fetchStatus:"idle"}}function nw(t){return{onFetch:(e,a)=>{const s=e.options,o=e.fetchOptions?.meta?.fetchMore?.direction,c=e.state.data?.pages||[],u=e.state.data?.pageParams||[];let d={pages:[],pageParams:[]},p=0;const g=async()=>{let y=!1;const m=S=>{CO(S,()=>e.signal,()=>y=!0)},w=Wb(e.options,e.fetchOptions),b=async(S,A,_)=>{if(y)return Promise.reject();if(A==null&&S.pages.length)return Promise.resolve(S);const B=(()=>{const V={client:e.client,queryKey:e.queryKey,pageParam:A,direction:_?"backward":"forward",meta:e.options.meta};return m(V),V})(),j=await w(B),{maxPages:D}=e.options,F=_?AO:RO;return{pages:F(S.pages,j,D),pageParams:F(S.pageParams,A,D)}};if(o&&c.length){const S=o==="backward",A=S?PO:aw,_={pages:c,pageParams:u},C=A(s,_);d=await b(_,C,S)}else{const S=t??c.length;do{const A=p===0?u[0]??s.initialPageParam:aw(s,d);if(p>0&&A==null)break;d=await b(d,A),p++}while(p<S)}return d};e.options.persister?e.fetchFn=()=>e.options.persister?.(g,{client:e.client,queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},a):e.fetchFn=g}}}function aw(t,{pages:e,pageParams:a}){const s=e.length-1;return e.length>0?t.getNextPageParam(e[s],e,a[s],a):void 0}function PO(t,{pages:e,pageParams:a}){return e.length>0?t.getPreviousPageParam?.(e[0],e,a[0],a):void 0}var LO=class extends Qb{#e;#n;#t;#i;constructor(t){super(),this.#e=t.client,this.mutationId=t.mutationId,this.#t=t.mutationCache,this.#n=[],this.state=t.state||zO(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){this.#n.includes(t)||(this.#n.push(t),this.clearGcTimeout(),this.#t.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.#n=this.#n.filter(e=>e!==t),this.scheduleGc(),this.#t.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.#n.length||(this.state.status==="pending"?this.scheduleGc():this.#t.remove(this))}continue(){return this.#i?.continue()??this.execute(this.state.variables)}async execute(t){const e=()=>{this.#a({type:"continue"})},a={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#i=Yb({fn:()=>this.options.mutationFn?this.options.mutationFn(t,a):Promise.reject(new Error("No mutationFn found")),onFail:(c,u)=>{this.#a({type:"failed",failureCount:c,error:u})},onPause:()=>{this.#a({type:"pause"})},onContinue:e,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#t.canRun(this)});const s=this.state.status==="pending",o=!this.#i.canStart();try{if(s)e();else{this.#a({type:"pending",variables:t,isPaused:o}),this.#t.config.onMutate&&await this.#t.config.onMutate(t,this,a);const u=await this.options.onMutate?.(t,a);u!==this.state.context&&this.#a({type:"pending",context:u,variables:t,isPaused:o})}const c=await this.#i.start();return await this.#t.config.onSuccess?.(c,t,this.state.context,this,a),await this.options.onSuccess?.(c,t,this.state.context,a),await this.#t.config.onSettled?.(c,null,this.state.variables,this.state.context,this,a),await this.options.onSettled?.(c,null,t,this.state.context,a),this.#a({type:"success",data:c}),c}catch(c){try{await this.#t.config.onError?.(c,t,this.state.context,this,a)}catch(u){Promise.reject(u)}try{await this.options.onError?.(c,t,this.state.context,a)}catch(u){Promise.reject(u)}try{await this.#t.config.onSettled?.(void 0,c,this.state.variables,this.state.context,this,a)}catch(u){Promise.reject(u)}try{await this.options.onSettled?.(void 0,c,t,this.state.context,a)}catch(u){Promise.reject(u)}throw this.#a({type:"error",error:c}),c}finally{this.#t.runNext(this)}}#a(t){const e=a=>{switch(t.type){case"failed":return{...a,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...a,isPaused:!0};case"continue":return{...a,isPaused:!1};case"pending":return{...a,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...a,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...a,data:void 0,error:t.error,failureCount:a.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=e(this.state),xt.batch(()=>{this.#n.forEach(a=>{a.onMutationUpdate(t)}),this.#t.notify({mutation:this,type:"updated",action:t})})}};function zO(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var NO=class extends Dc{constructor(t={}){super(),this.config=t,this.#e=new Set,this.#n=new Map,this.#t=0}#e;#n;#t;build(t,e,a){const s=new LO({client:t,mutationCache:this,mutationId:++this.#t,options:t.defaultMutationOptions(e),state:a});return this.add(s),s}add(t){this.#e.add(t);const e=Kl(t);if(typeof e=="string"){const a=this.#n.get(e);a?a.push(t):this.#n.set(e,[t])}this.notify({type:"added",mutation:t})}remove(t){if(this.#e.delete(t)){const e=Kl(t);if(typeof e=="string"){const a=this.#n.get(e);if(a)if(a.length>1){const s=a.indexOf(t);s!==-1&&a.splice(s,1)}else a[0]===t&&this.#n.delete(e)}}this.notify({type:"removed",mutation:t})}canRun(t){const e=Kl(t);if(typeof e=="string"){const s=this.#n.get(e)?.find(o=>o.state.status==="pending");return!s||s===t}else return!0}runNext(t){const e=Kl(t);return typeof e=="string"?this.#n.get(e)?.find(s=>s!==t&&s.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){xt.batch(()=>{this.#e.forEach(t=>{this.notify({type:"removed",mutation:t})}),this.#e.clear(),this.#n.clear()})}getAll(){return Array.from(this.#e)}find(t){const e={exact:!0,...t};return this.getAll().find(a=>Jv(e,a))}findAll(t={}){return this.getAll().filter(e=>Jv(t,e))}notify(t){xt.batch(()=>{this.listeners.forEach(e=>{e(t)})})}resumePausedMutations(){const t=this.getAll().filter(e=>e.state.isPaused);return xt.batch(()=>Promise.all(t.map(e=>e.continue().catch(mn))))}};function Kl(t){return t.options.scope?.id}var UO=class extends Dc{constructor(t={}){super(),this.config=t,this.#e=new Map}#e;build(t,e,a){const s=e.queryKey,o=e.queryHash??uf(s,e);let c=this.get(o);return c||(c=new MO({client:t,queryKey:s,queryHash:o,options:t.defaultQueryOptions(e),state:a,defaultOptions:t.getQueryDefaults(s)}),this.add(c)),c}add(t){this.#e.has(t.queryHash)||(this.#e.set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const e=this.#e.get(t.queryHash);e&&(t.destroy(),e===t&&this.#e.delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){xt.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return this.#e.get(t)}getAll(){return[...this.#e.values()]}find(t){const e={exact:!0,...t};return this.getAll().find(a=>Qv(e,a))}findAll(t={}){const e=this.getAll();return Object.keys(t).length>0?e.filter(a=>Qv(t,a)):e}notify(t){xt.batch(()=>{this.listeners.forEach(e=>{e(t)})})}onFocus(){xt.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){xt.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},IO=class{#e;#n;#t;#i;#a;#s;#r;#l;constructor(t={}){this.#e=t.queryCache||new UO,this.#n=t.mutationCache||new NO,this.#t=t.defaultOptions||{},this.#i=new Map,this.#a=new Map,this.#s=0}mount(){this.#s++,this.#s===1&&(this.#r=Hb.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#l=yc.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#s--,this.#s===0&&(this.#r?.(),this.#r=void 0,this.#l?.(),this.#l=void 0)}isFetching(t){return this.#e.findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return this.#n.findAll({...t,status:"pending"}).length}getQueryData(t){const e=this.defaultQueryOptions({queryKey:t});return this.#e.get(e.queryHash)?.state.data}ensureQueryData(t){const e=this.defaultQueryOptions(t),a=this.#e.build(this,e),s=a.state.data;return s===void 0?this.fetchQuery(t):(t.revalidateIfStale&&a.isStaleByTime(Hd(e.staleTime,a))&&this.prefetchQuery(e),Promise.resolve(s))}getQueriesData(t){return this.#e.findAll(t).map(({queryKey:e,state:a})=>{const s=a.data;return[e,s]})}setQueryData(t,e,a){const s=this.defaultQueryOptions({queryKey:t}),c=this.#e.get(s.queryHash)?.state.data,u=vO(e,c);if(u!==void 0)return this.#e.build(this,s).setData(u,{...a,manual:!0})}setQueriesData(t,e,a){return xt.batch(()=>this.#e.findAll(t).map(({queryKey:s})=>[s,this.setQueryData(s,e,a)]))}getQueryState(t){const e=this.defaultQueryOptions({queryKey:t});return this.#e.get(e.queryHash)?.state}removeQueries(t){const e=this.#e;xt.batch(()=>{e.findAll(t).forEach(a=>{e.remove(a)})})}resetQueries(t,e){const a=this.#e;return xt.batch(()=>(a.findAll(t).forEach(s=>{s.reset()}),this.refetchQueries({type:"active",...t},e)))}cancelQueries(t,e={}){const a={revert:!0,...e},s=xt.batch(()=>this.#e.findAll(t).map(o=>o.cancel(a)));return Promise.all(s).then(mn).catch(mn)}invalidateQueries(t,e={}){return xt.batch(()=>(this.#e.findAll(t).forEach(a=>{a.invalidate()}),t?.refetchType==="none"?Promise.resolve():this.refetchQueries({...t,type:t?.refetchType??t?.type??"active"},e)))}refetchQueries(t,e={}){const a={...e,cancelRefetch:e.cancelRefetch??!0},s=xt.batch(()=>this.#e.findAll(t).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let c=o.fetch(void 0,a);return a.throwOnError||(c=c.catch(mn)),o.state.fetchStatus==="paused"?Promise.resolve():c}));return Promise.all(s).then(mn)}fetchQuery(t){const e=this.defaultQueryOptions(t);e.retry===void 0&&(e.retry=!1);const a=this.#e.build(this,e);return a.isStaleByTime(Hd(e.staleTime,a))?a.fetch(e):Promise.resolve(a.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(mn).catch(mn)}fetchInfiniteQuery(t){return t.behavior=nw(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(mn).catch(mn)}ensureInfiniteQueryData(t){return t.behavior=nw(t.pages),this.ensureQueryData(t)}resumePausedMutations(){return yc.isOnline()?this.#n.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#n}getDefaultOptions(){return this.#t}setDefaultOptions(t){this.#t=t}setQueryDefaults(t,e){this.#i.set(co(t),{queryKey:t,defaultOptions:e})}getQueryDefaults(t){const e=[...this.#i.values()],a={};return e.forEach(s=>{uo(t,s.queryKey)&&Object.assign(a,s.defaultOptions)}),a}setMutationDefaults(t,e){this.#a.set(co(t),{mutationKey:t,defaultOptions:e})}getMutationDefaults(t){const e=[...this.#a.values()],a={};return e.forEach(s=>{uo(t,s.mutationKey)&&Object.assign(a,s.defaultOptions)}),a}defaultQueryOptions(t){if(t._defaulted)return t;const e={...this.#t.queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return e.queryHash||(e.queryHash=uf(e.queryKey,e)),e.refetchOnReconnect===void 0&&(e.refetchOnReconnect=e.networkMode!=="always"),e.throwOnError===void 0&&(e.throwOnError=!!e.suspense),!e.networkMode&&e.persister&&(e.networkMode="offlineFirst"),e.queryFn===hf&&(e.enabled=!1),e}defaultMutationOptions(t){return t?._defaulted?t:{...this.#t.mutations,...t?.mutationKey&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){this.#e.clear(),this.#n.clear()}},qO=ie.createContext(void 0),$O=({client:t,children:e})=>(ie.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),K.jsx(qO.Provider,{value:t,children:e}));const VO="/assets/styles-C4rtJtLG.css",HO=[{from:"/loyalty",to:"/"},{from:"/tasting-benefits",to:"/wine-club"},{from:"/wine-locator",to:"/"},{from:"/static/global_accessibility_template",to:"/"},{from:"/corporate-gifts",to:"/"},{from:"/weddings-private-events",to:"/weddings"},{from:"/static/global_shipping_policy",to:"/"},{from:"/event-request-received",to:"/private-event-request"},{from:"/introducing-new-wine-clubs",to:"/wine-club"},{from:"/privacy-policy",to:"/privacy"},{from:"/playlist-of-month",to:"/#playlist-of-the-month"},{from:"/about",to:"/"},{from:"/book-a-tasting",to:"/visit"},{from:"/blog/olive-oil-tasting-sonoma",to:"/visit",statusCode:301}];function GO(){return K.jsx("div",{className:"flex min-h-screen items-center justify-center bg-background px-4",children:K.jsxs("div",{className:"max-w-md text-center",children:[K.jsx("h1",{className:"text-7xl font-bold text-foreground",children:"404"}),K.jsx("h2",{className:"mt-4 text-xl font-semibold text-foreground",children:"Page not found"}),K.jsx("p",{className:"mt-2 text-sm text-muted-foreground",children:"The page you're looking for doesn't exist or has been moved."}),K.jsx("div",{className:"mt-6",children:K.jsx(lf,{to:"/",className:"inline-flex items-center justify-center rounded-md bg-primary px-4 py-2 text-sm font-medium text-primary-foreground transition-colors hover:bg-primary/90",children:"Go home"})})]})})}function WO({error:t,reset:e}){console.error(t);const a=_t();return K.jsx("div",{className:"flex min-h-screen items-center justify-center bg-background px-4",children:K.jsxs("div",{className:"max-w-md text-center",children:[K.jsx("h1",{className:"text-xl font-semibold tracking-tight text-foreground",children:"This page didn't load"}),K.jsx("p",{className:"mt-2 text-sm text-muted-foreground",children:"Something went wrong on our end. You can try refreshing or head back home."}),K.jsxs("div",{className:"mt-6 flex flex-wrap justify-center gap-2",children:[K.jsx("button",{onClick:()=>{a.invalidate(),e()},className:"inline-flex items-center justify-center rounded-md bg-primary px-4 py-2 text-sm font-medium text-primary-foreground transition-colors hover:bg-primary/90",children:"Try again"}),K.jsx("a",{href:"/",className:"inline-flex items-center justify-center rounded-md border border-input bg-background px-4 py-2 text-sm font-medium text-foreground transition-colors hover:bg-accent",children:"Go home"})]})]})})}const mt=BC()({beforeLoad:({location:t})=>{if(t.pathname.startsWith("/lovable/")||t.pathname==="/email/unsubscribe")return;const e=HO.find(a=>a.from===t.pathname);if(e)throw Xd({to:e.to,statusCode:e.statusCode??307})},head:()=>({meta:[{charSet:"utf-8"},{name:"viewport",content:"width=device-width, initial-scale=1"},{title:"B.R. Cohn"},{name:"description",content:"Rooted in the heart of Sonoma Valley, we are guided by our passion for music, exceptionally crafted wine and authentic tasting experiences."},{name:"author",content:"Lovable"},{name:"google-site-verification",content:"AosKLo1pVAJDNNdUMRR9xydQT6eiDGYQyWn_vg3WYN8"},{name:"google-site-verification",content:"1UHh7OuDMzZEf-JHUDnriAWfPZ_rREXeNP2u9TvvihA"},{property:"og:title",content:"B.R. Cohn"},{property:"og:description",content:"Rooted in the heart of Sonoma Valley, we are guided by our passion for music, exceptionally crafted wine and authentic tasting experiences."},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary"},{name:"twitter:site",content:"@Lovable"},{name:"twitter:title",content:"B.R. Cohn"},{name:"twitter:description",content:"Rooted in the heart of Sonoma Valley, we are guided by our passion for music, exceptionally crafted wine and authentic tasting experiences."},{property:"og:image",content:"https://storage.googleapis.com/gpt-engineer-file-uploads/6OnB2fkRU8cGd92EAq8bDzA7I2x1/social-images/social-1778189135932-_DSC7481And8moreHDR.webp"},{name:"twitter:image",content:"https://storage.googleapis.com/gpt-engineer-file-uploads/6OnB2fkRU8cGd92EAq8bDzA7I2x1/social-images/social-1778189135932-_DSC7481And8moreHDR.webp"}
40],links:[{rel:"preconnect",href:"https://fonts.googleapis.com"},{rel:"preconnect",href:"https://fonts.gstatic.com",crossOrigin:"anonymous"},{rel:"stylesheet",href:"https://fonts.googleapis.com/css2?family=Archivo:wght@300;400;500;600;700&family=Cormorant+Garamond:ital,wght@1,400;1,500&display=swap"},{rel:"stylesheet",href:VO},{rel:"icon",type:"image/svg+xml",href:"/favicon.svg"}],scripts:[{src:"https://cdn.userway.org/widget.js",async:!0,"data-account":"DD5knj0sDM","data-position":"left"},{children:`(function(d){var f=d.getElementsByTagName('SCRIPT')[0],p=d.createElement('SCRIPT');p.type='text/javascript';p.setAttribute('charset','utf-8');p.async=true;p.id="your-widget";var meta_ref_url=document.querySelector('meta[name="redchirp-referring-url"]');var meta_inbox_ids=document.querySelector('meta[name="redchirp-inbox-ids"]');var query_string='?ref='+encodeURIComponent(meta_ref_url==null?window.location:meta_ref_url.content);if(meta_inbox_ids!=null)query_string+='&inbox_ids='+encodeURIComponent(meta_inbox_ids.content);p.src="https://app.redchirp.com/api/v1/widget/widget-loader.js"+query_string;f.parentNode.insertBefore(p,f);}(document));`},{async:!0,type:"text/javascript",src:"https://static.klaviyo.com/onsite/js/klaviyo.js?company_id=TLf3c9"}]}),shellComponent:FO,component:KO,notFoundComponent:GO,errorComponent:WO});function FO({children:t}){return K.jsxs("html",{lang:"en",children:[K.jsxs("head",{children:[K.jsx(ZC,{}),K.jsx("script",{dangerouslySetInnerHTML:{__html:`
vendor: 398 bytes, lines 40-45
40
41              (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
42              new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
43              j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
44              'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
45              })(window,document,'script','dataLayer','
45GTM-WDLSHDH
vendor: 16 bytes, lines 45-46
45');
46            
46`}})]}),K.jsxs("body",{children:[K.jsx("noscript",{children:K.jsx("iframe",{src:"https://www.googletagmanager.com/ns.html?id=GTM-WDLSHDH",height:"0",width:"0",style:{display:"none",visibility:"hidden"}})}),t,K.jsx(XC,{})]})]})}function KO(){const{queryClient:t}=mt.useRouteContext();return K.jsx($O,{client:t,children:K.jsx(wb,{})})}const YO="modulepreload",QO=function(t){return"/"+t},iw={},ut=function(e,a,s){let o=Promise.resolve();if(a&&a.length>0){let p=function(g){return Promise.all(g.map(y=>Promise.resolve(y).then(m=>({status:"fulfilled",value:m}),m=>({status:"rejected",reason:m}))))};document.getElementsByTagName("link");const u=document.querySelector("meta[property=csp-nonce]"),d=u?.nonce||u?.getAttribute("nonce");o=p(a.map(g=>{if(g=QO(g),g in iw)return;iw[g]=!0;const y=g.endsWith(".css"),m=y?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${g}"]${m}`))return;const w=document.createElement("link");if(w.rel=y?"stylesheet":YO,y||(w.as="script"),w.crossOrigin="",w.href=g,d&&w.setAttribute("nonce",d),document.head.appendChild(w),y)return new Promise((b,S)=>{w.addEventListener("load",b),w.addEventListener("error",()=>S(new Error(`Unable to preload CSS for ${g}`)))})}))}function c(u){const d=new Event("vite:preloadError",{cancelable:!0});if(d.payload=u,window.dispatchEvent(d),!d.defaultPrevented)throw u}return o.then(u=>{for(const d of u||[])d.status==="rejected"&&c(d.reason);return e().catch(c)})},JO=()=>ut(()=>import("./wine-club-6s2oOnEP.js"),__vite__mapDeps([0,1,2,3])),ZO=gt("/wine-club")({head:()=>({meta:[{title:"Wine Club Membership | Award-Winning Sonoma Wines"},{name:"description",content:"Join our wine club and get exclusive access to limited-edition Cabernets, member-only tastings, and savings on estate wines. Explore membership tiers today."},{property:"og:title",content:"Wine Club Membership | Award-Winning Sonoma Wines"},{property:"og:description",content:"Join our wine club and get exclusive access to limited-edition Cabernets, member-only tastings, and savings on estate wines. Explore membership tiers today."}]}),component:ct(JO,"component")}),XO="/assets/wedding-Ba2dtHYb.webp",e2=()=>ut(()=>import("./weddings-X99tsYMb.js"),__vite__mapDeps([4,1,5,6,7])),t2=gt("/weddings")({head:()=>({meta:[{title:"Sonoma Wedding Venue | B.R. Cohn Winery"},{name:"description",content:"Host your Sonoma wedding at an award-winning estate winery. Stunning venues, wine tastings & catering for 50-300 guests. Plan your celebration today."},{property:"og:title",content:"Sonoma Wedding Venue | B.R. Cohn Winery"},{property:"og:description",content:"Host your Sonoma wedding at an award-winning estate winery. Stunning venues, wine tastings & catering for 50-300 guests. Plan your celebration today."},{property:"og:image",content:XO}]}),component:ct(e2,"component")}),n2=()=>ut(()=>import("./visit-fdo2iCFK.js"),__vite__mapDeps([8,1,6,5,9,10,11])),a2=gt("/visit")({head:()=>({meta:[{title:"Visit | B.R. Cohn Winery, Sonoma Valley"},{name:"description",content:"Plan your visit to B.R. Cohn Winery in Glen Ellen. Guided tastings, cabana rentals, and grab + go picnics. Open daily 10 a.m. – 5 p.m."},{property:"og:title",content:"Visit | B.R. Cohn Winery"},{property:"og:description",content:"Wine country your way. Guided tastings, private cabanas, and picnics on the estate."}]}),component:ct(n2,"component")}),i2=()=>ut(()=>import("./unsubscribe-D7RYs0SX.js"),__vite__mapDeps([12,1])),s2=gt("/unsubscribe")({head:()=>({meta:[{title:"Unsubscribe | B.R. Cohn Winery"},{name:"robots",content:"noindex,nofollow"},{name:"description",content:"Manage your email preferences from B.R. Cohn Winery."}]}),component:ct(i2,"component")}),r2=()=>ut(()=>import("./private-events-Dpa7A1OK.js"),__vite__mapDeps([13,1,14])),o2=gt("/private-events")({head:()=>({meta:[{title:"Private Events | B.R. Cohn Winery"},{name:"description",content:"Host your next unforgettable event at B.R. Cohn's wine country estate. Explore our Open Air Barn, Olive Grove, and Amphitheater venues in Sonoma Valley."},{property:"og:title",content:"Private Events | B.R. Cohn Winery"},{property:"og:description",content:"Milestone birthdays, corporate retreats, and celebrations at our Sonoma Valley estate."}]}),component:ct(r2,"component")}),l2=()=>ut(()=>import("./private-event-request-thank-you-CGf4G-wB.js"),__vite__mapDeps([15,1])),c2=gt("/private-event-request-thank-you")({head:()=>({meta:[{title:"Thank You | Private Event Request | B.R. Cohn Winery"}
46,{name:"description",content:"Thank you for your private event request. Our events team at B.R. Cohn Winery will follow up with you shortly."},{name:"robots",content:"noindex"},{property:"og:title",content:"Thank You | Private Event Request | B.R. Cohn Winery"},{property:"og:description",content:"Your private event request has been received. Our team will be in touch soon."},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary_large_image"}]}),component:ct(l2,"component")}),u2=()=>ut(()=>import("./private-event-request-DDKgMiW6.js"),__vite__mapDeps([16,1])),h2=gt("/private-event-request")({head:()=>({meta:[{title:"Private Event Request | B.R. Cohn Winery"},{name:"description",content:"Request info for your private or corporate event at B.R. Cohn Winery. Share a few details and our events team will be in touch shortly."},{property:"og:title",content:"Private Event Request | B.R. Cohn Winery"},{property:"og:description",content:"Tell us about your special event at our Sonoma Valley estate."}]}),component:ct(u2,"component")}),d2=()=>ut(()=>import("./privacy-qcX9efuE.js"),__vite__mapDeps([17,1])),f2=gt("/privacy")({head:()=>({meta:[{title:"Privacy Policy | B.R. Cohn Winery"},{name:"description",content:"B.R. Cohn Winery privacy policy detailing how we collect, use, and share your personal information."},{property:"og:title",content:"Privacy Policy | B.R. Cohn Winery"},{property:"og:description",content:"B.R. Cohn Winery privacy policy detailing how we collect, use, and share your personal information."}]}),component:ct(d2,"component")}),p2=()=>ut(()=>import("./events-BJHsK6D8.js"),__vite__mapDeps([18,1,9,19,3,11])),g2=gt("/events")({head:()=>({meta:[{title:"Upcoming Events | B.R. Cohn Winery"},{name:"description",content:"Line dancing, vineyard dog walks, winemaker BBQs, and more at B.R. Cohn Winery in Sonoma Valley. See what's coming up at the estate."},{property:"og:title",content:"Upcoming Events | B.R. Cohn Winery"},{property:"og:description",content:"Discover upcoming events at our Sonoma Valley estate, from concerts to dog walks."}]}),component:ct(p2,"component")}),m2=()=>ut(()=>import("./donations-DhL0KHPD.js"),__vite__mapDeps([20,1])),y2=gt("/donations")({head:()=>({meta:[{title:"Charitable Donation Requests | B.R. Cohn Winery"},{name:"description",content:"Learn how to submit a charitable donation request to B.R. Cohn Winery. Guidelines, eligibility, and how to apply."},{property:"og:title",content:"Charitable Donation Requests | B.R. Cohn Winery"},{property:"og:description",content:"B.R. Cohn Winery supports charitable organizations and community initiatives. Review our donation request guidelines."}]}),component:ct(m2,"component")}),v2=()=>ut(()=>import("./corporate-venues-wine-country-rdIkAMfu.js"),__vite__mapDeps([21,1,14])),w2=gt("/corporate-venues-wine-country")({head:()=>({meta:[{title:"Corporate Venues in Wine Country | B.R. Cohn Winery"},{name:"description",content:"Searching for corporate venues wine country planners love? B.R. Cohn's Sonoma Valley estate hosts offsites, retreats, holiday parties and board dinners."},{property:"og:title",content:"Corporate Venues in Wine Country | B.R. Cohn Winery"},{property:"og:description",content:"Company offsites, team retreats, client entertaining and holiday parties at our Sonoma Valley wine country estate."},{property:"og:type",content:"website"},{property:"og:url",content:"https://brcohn.com/corporate-venues-wine-country"}],links:[{rel:"canonical",href:"https://brcohn.com/corporate-venues-wine-country"}]}),component:ct(v2,"component")}),b2=()=>ut(()=>import("./contact-FqUpgTl-.js"),[]),S2=gt("/contact")({component:ct(b2,"component")}),k2=()=>ut(()=>import("./accessibility-BQ1f7nLZ.js"),__vite__mapDeps([22,1])),_2=gt("/accessibility")({head:()=>({meta:[{title:"Accessibility | B.R. Cohn Winery"},{name:"description",content:"Our commitment to making the B.R. Cohn Winery website accessible to everyone, and how to reach us if you encounter a barrier."},{property:"og:title",content:"Accessibility | B.R. Cohn Winery"},{property:"og:description",content:"Our commitment to making the B.R. Cohn Winery website accessible to everyone, and how to reach us if you encounter a barrier."},{property:"og:type",content:"website"},{property:"og:url",content:"https://brcohn.com/accessibility"}],links:[{rel:"canonical",href:"https://brcohn.com/accessibility"}]}
46),component:ct(k2,"component")}),T2=()=>ut(()=>import("./index-DHG97qQz.js"),__vite__mapDeps([23,1,7,19,5,2])),R2=gt("/")({head:()=>({meta:[{title:"Wine Tasting Sonoma Valley | B.R. Cohn Winery"},{name:"description",content:"Award-winning Glen Ellen winery offering tastings, wine club memberships, olive oil, and stunning venues for weddings and events. Plan your estate visit today."},{property:"og:title",content:"Wine Tasting Sonoma Valley | B.R. Cohn Winery"},{property:"og:description",content:"Award-winning Glen Ellen winery offering tastings, wine club memberships, olive oil, and stunning venues for weddings and events. Plan your estate visit today."},{property:"og:type",content:"website"}]}),component:ct(T2,"component")}),A2=`---
47title: "B.R. Cohn vs Benziger Winery: Which Sonoma Estate Fits Your"
48slug: "b-r-cohn-vs-benziger-winery"
49date: "2026-08-20"
50category: "Wine & Vineyard"
51excerpt: "Compare B.R. Cohn vs Benziger winery to see which Sonoma estate suits your wine tour, tasting style, and vineyard atmosphere."
52featuredImage: "https://cdnimg.co/b09ef9e7-56b8-42ac-8446-839cd664add4/8aaab90f-5f70-46d2-91dd-2d678e0f66ac/b-r-cohn-vs-benziger-winery-wine-tasting.jpg"
53focusKeyword: "B.R. Cohn vs Benziger winery"
54---
55
56A couple planning a late-summer Sonoma escape can spend an evening comparing Glen Ellen wineries and still end up with the wrong reservation. B.R. Cohn and Benziger look close on a map, share Sonoma Valley roots, and both promise an estate setting. The practical experience is very different, especially when the decision involves a Saturday wedding, a large guest list, a spontaneous tasting, or a wine-club commitment.
57
58For the **B.R. Cohn vs Benziger winery** decision, the key questions aren't which property has the prettier brochure. They're whether guests need a daily tasting-room option, whether an event can support its beverage requirements, and whether the group wants music and olive-oil heritage or a more sustainability-focused vineyard experience. Both estates sit near each other along Highway 12, but their founding philosophies and hospitality models have moved in distinct directions.
59
60| Decision factor | B.R. Cohn | Benziger Family Winery |
61|---|---|---|
62| Core identity | Rock-and-roll heritage, estate wines, olive grove | Family winemaking, sustainable and Biodynamic farming |
63| Visitor access | Public-facing daily tasting model, reservations recommended, walk-ins welcome | More curated, scheduled private-event and appointment-led experience |
64| Wedding format | Large weddings and full-day production | Intimate ceremonies and micro-events |
65| Largest stated event scale | Up to 250 guests | Private ceremony for up to 20 guests |
66| Saturday wedding fee | $14,000 venue fee | No comparable Saturday package stated |
67| Best wine audience | Collectors seeking old-vine Zinfandel and Cabernet Sauvignon | Visitors seeking farming education and broader estate exploration |
68
69This guide is built for **2026 visitors**, couples, collectors, corporate planners, and casual travelers who need trade-offs rather than brochure language. A useful local starting point is this overview of [Glen Ellen wineries](https://brcohn.com/blog/glen-ellen-wineries), but the final choice depends on the day's purpose.
70
71## Choosing Between Two Glen Ellen Estates
72
73The easiest way to make the wrong choice is to plan around location alone. A couple may see two nearby Glen Ellen estates, assume both offer the same polished tasting-room rhythm, and book whichever appointment appears first. That shortcut works for a casual afternoon, but it breaks down quickly when one partner wants a music-linked celebration, the other wants vineyard education, and the guest list keeps growing.
74
75B.R. Cohn was founded in **1984 by Bruce Cohn**, after he had spent about a decade selling grapes from the Olive Hill estate to other wineries. Benziger's Sonoma roots reach back to **1980**, when the Benziger family established an **85-acre estate in Glen Ellen** and began building its own winery. Those beginnings created different expectations. B.R. Cohn developed from successful grape growing and a highly recognizable entertainment career, while Benziger grew from a fam
75ily move out of wine importing and into farming and winemaking. [The B.R. Cohn origin account](https://en.wikipedia.org/wiki/B.R._Cohn_Winery) captures that unusual starting point.
76
77### The decision points that matter
78
79A visitor comparing these estates should settle five questions before looking at tasting notes:
80
81- **Is the visit spontaneous?** B.R. Cohn is framed as an open estate destination, while Benziger's public information emphasizes scheduled experiences and private bookings.
82- **Is the event on Saturday?** B.R. Cohn publishes a Saturday venue fee and a large guest capacity. Benziger's published private format is designed for small ceremonies.
83- **Will the group meet a beverage minimum?** B.R. Cohn requires its wines to be served and sets a minimum beverage spend per adult guest.
84- **Does the group want a club relationship?** B.R. Cohn directly promotes wine-club access to estate releases and member allocations. Benziger's appeal is more closely tied to estate farming and education.
85- **Who is attending?** Collectors, music enthusiasts, and large wedding parties need a different property from casual visitors who want a compact, agriculture-led stop.
86
87> **Practical rule:** Choose the experience before choosing the bottle. A winery that fits the group's logistics will usually create a better day than one selected only for brand recognition.
88
89B.R. Cohn suits a traveler who values an accessible tasting stop with a strong cultural hook. Benziger suits someone willing to plan around a more curated estate encounter. Neither property is the universal winner, and treating them as interchangeable is the costly mistake.
90
91## Origin Stories and Brand Identities
92
93The two brands began in the same Sonoma Valley era, but their identities were built from different raw materials. B.R. Cohn's story starts with Bruce Cohn, who founded the winery in **1984** after years of selling grapes from the Olive Hill estate. His career as manager of The Doobie Brothers remains central to the brand, giving the property a rock-and-roll association most wine estates can't reproduce. The estate also includes **145-year-old olive trees**, which helped shape the Olive Hill identity before the winery label existed. [The estate venue description](https://www.sonomacounty.com/weddings/wedding-venues/b-r-cohn-winery-olive-oil-company/) connects the property's vineyard and olive-grove character.
94
95Benziger's family story begins in **1980**, when the family established its Glen Ellen estate. Family-produced wines were being released in the early 1980s, with one account placing the first Benziger Family wines in **1981** and the Glen Ellen brand in **1982**. The identity is less about celebrity culture and more about a family building a farming and winemaking operation from the ground up.
96
97### Two narratives, two hospitality styles
98
99B.R. Cohn's story is compact and immediately legible. Guests can connect the estate, olive grove, old-vine wines, music history, and event programming without needing a long technical explanation. That makes it particularly useful for weddings, rehearsal gatherings, and corporate events that need a memorable theme.
100
101Benziger's narrative has a stronger agricultural and educational center. Its three-tier farming model includes certified sustainable, organic, and Biodynamic practices. The winery's identity is therefore built around how the land is farmed, how the vineyard system works, and how visitors understand that process.
102
103![A six-step infographic illustrating the progression from a brand idea to building a lasting legacy.](https://cdnimg.co/b09ef9e7-56b8-42ac-8446-839cd664add4/4d0791d3-ee6e-429b-944a-006e1cdb2c36/b-r-cohn-vs-benziger-winery-branding-infographic.jpg)
104
105Ownership and operating structures also matter, but they shouldn't be overstated. B.R. Cohn was acquired by Vintage Wine Estates, while Benziger became integrated into The Wine Group. Those corporate changes can influence scheduling, pricing, staffing, and event policies, yet guests experience the results through practical details rather than ownership charts. The most useful comparison remains simple: B.R. Cohn presents a **music-and-estate identity**, while Benziger presents a **family-and-farming identity**.
106
107For visitors assessing the current brand presentation, [B.R. Cohn Winery](https://brcohn.com/) remains the clearest place to review its estate story, wines, and visit options.
108
109## Wine Portfolios and Estate Bottlings
110
111B.R. Cohn has the sharper portfolio identity for a red-wine collector. Its estate messaging emphasizes **old-vine Zinfandel**, **Cabernet Sauvignon**, vineyard-designated Sonoma Valley wines, and Olive Hill bottlings. The shop also extends the estate concept beyond wine through olive oil and gourmet products, giving the portfolio a food-and-agriculture dimension.
112
113That focus makes B.R. Cohn easier to understand. A collector arrives expecting concentrated Sonoma Valley reds and estate-linked releases, not an expansive survey of every possible varietal. The brand's old-vine Zinfandel and Cabernet Sauvignon are the center of gravity.
114
115Benziger offers a broader exploratory framework. Its public positioning highlights Biodynamic Estate wines, single-vineyard Cabernet designates, and the Imagery Series, which uses rare varietals and artist-designed labels. The Signaterra tier functions as a bridge between accessible and premium selections. That range gives curious visitors more ways to explore, especially if the group has different levels of wine knowledge.
116
117### Portfolio comparison
118
119| Feature | B.R. Cohn | Benziger Family Winery |
120|---|---|---|
121| Main red-wine emphasis | Old-vine Zinfandel and Cabernet Sauvignon | Biodynamic Estate wines and Cabernet-focused estate designates |
122| Estate identity | Olive Hill wines and Sonoma Valley estate fruit | Sustainable, organic, and Biodynamic farming |
123| Exploration range | Focused, story-driven portfolio | Broader range, including rare varietals and art-led labels |
124| Beyond wine | Olive oil and gourmet products | Farming education and estate experience |
125| Collector appeal | Strong for site-linked Zinfandel and Cabernet | Strong for visitors interested in farming systems and varied estate expressions |
126
127The direct Zinfandel comparison is useful. B.R. Cohn is the better choice for a visitor seeking a **jammy, brambly, old-vine expression** with a clear estate story. Benziger's version is better suited to someone interested in a more structured, Biodynamically farmed interpretation and the connection between vineyard practice and finished wine.
128
129Cabernet drinkers should also separate portfolio depth from tasting-room theater. B.R. Cohn's estate and vineyard-designated focus gives collectors a tighter path into Sonoma Valley reds. Benziger gives visitors more room to compare farming approaches, estate designates, and broader labels. Current tasting-menu availability and library access can change, so club prospects should confirm what's pouring before booking. B.R. Cohn's [wine-club information](https://brcohn.com/wine-club) is the appropriate place to review member access and allocations.
130
131## Tasting Room Access and Visitor Logistics
132
133The tasting-room decision is less romantic than the brand stories, but it controls the day. B.R. Cohn's public-facing listing states **“Open Daily, 10 a.m. to 5 p.m.”**, recommends reservations, and welcomes walk-ins. [The public tasting listing](http://b-r-cohn-winery.corksy.io/) supports the practical conclusion that B.R. Cohn works better for travelers who want some flexibility.
134
135Benziger's available public event information puts more weight on scheduled private bookings and curated visits. That doesn't make the property less worthwhile. It means the visitor should treat the appointment as part of the itinerary rather than assuming a casual drop-in will produce the full estate experience.
136
137### Logistics at a glance
138
139| Feature | B.R. Cohn | Benziger Family Winery |
140|---|---|---|
141| Access model | Daily public-facing tasting room | More appointment-led and structured |
142| Walk-ins | Welcome according to public listing | Availability should be confirmed in advance |
143| Reservation approach | Recommended, especially for planned visits | Schedule-led experience is the safer assumption |
144| Visitor emphasis | Estate tasting, wines, olive-oil identity, music heritage | Vineyard and farming education |
145| Best planning style | Flexible itinerary with a confirmed anchor | Locked-in itinerary with advance reservations |
146
147A spontaneous traveler should place B.R. Cohn earlier in the route, particularly when the day includes several stops and timing may shift. Benziger deserves a firm reservation, because the visit's value depends more heavily on the planned format.
148
149Parking, group limits, pets, exact flight composition, and current fees should be confirmed directly before arrival. Those policies can change, and the available verified information doesn't establish fixed rules for every category. The same applies to reserve pours and library access. Guests can use [B.R. Cohn's visit page](https://brcohn.com/visit) to review current booking information and contact options.
150
151> The best Glen Ellen itinerary has one fixed reservation and enough breathing room around it. Filling every minute creates more risk than value.
152
153For a short Sonoma Valley trip, the choice is straightforward. Choose B.R. Cohn when access flexibility and a recognizable estate story matter most. Choose Benziger when the group is prepared to schedule an experience centered on farming, education, and the property itself.
154
155## Wedding and Event Hosting Capabilities
156
157Wedding planning exposes the largest difference between these estates. B.R. Cohn is configured for a substantial celebration, while Benziger's published private-events format is intentionally intimate. Couples shouldn't compare them as if both were interchangeable full-scale reception venues.
158
159B.R. Cohn advertises capacity for **up to 250 guests** and lists a **$14,000 Saturday venue fee**, **$10,000 on Frid
159ays**, and **$8,000 Sundays through Thursdays**. The property also requires that only B.R. Cohn wines be served and sets a **$30 minimum beverage spend per adult guest**. [The wedding program](https://www.brcohn.com/weddings/) provides the operational baseline couples need before requesting a proposal.
160
161Benziger's private-events page emphasizes elopements and vow renewals, with a **two-hour private ceremony for up to 20 guests** priced at **$1,500 to $2,000**, subject to availability. That format is not a scaled-down version of B.R. Cohn's large wedding program. It's a different product.
162
163### Venue comparison
164
165| Event factor | B.R. Cohn | Benziger Family Winery |
166|---|---|---|
167| Published event scale | Up to 250 guests | Up to 20 guests for the stated private ceremony format |
168| Saturday pricing | $14,000 venue fee | No comparable Saturday package stated |
169| Weekday pricing | $8,000 Sundays through Thursdays | Private ceremony pricing subject to availability |
170| Friday pricing | $10,000 venue fee | No comparable Friday package stated |
171| Beverage policy | Only B.R. Cohn wines, plus $30 minimum beverage spend per adult guest | No equivalent policy stated in the verified information |
172| Best event use | Full wedding production, larger reception, corporate gathering | Elopement, vow renewal, micro-event |
173
174### What planners should ask before signing
175
176B.R. Cohn is the clear candidate for a larger wedding, but capacity isn't the same as effortless production. A planner should confirm ceremony placement, reception layout, catering requirements, load-in windows, sound restrictions, rain contingencies, and the exact Saturday calendar. The venue fee and beverage minimum need to sit beside food, rentals, staffing, entertainment, transportation, and contingency costs in one working budget.
177
178A couple with a small guest list may still prefer B.R. Cohn if music, olive-grove atmosphere, and a fuller celebration matter more than minimizing venue cost. Benziger makes more sense when the guest list is small and the event goal is a private ceremony rather than a multi-part wedding weekend.
179
180For guest management, a detailed [wedding seating chart](https://wedding.studio/seating-chart) helps couples test table layouts before discussing floor plans with the venue. That exercise is especially useful when a group is deciding whether an intimate format feels intentional or too constrained.
181
182The firm recommendation is simple: **large Saturday weddings belong in the B.R. Cohn conversation first**. **Small ceremonies belong in the Benziger conversation first**. Couples should not assume Benziger can absorb a 100-plus-person reception based on the scale of its estate, and they shouldn't choose B.R. Cohn without budgeting for its wine-only and minimum-spend requirements.
183
184## Sustainability Practices and Cultural Programming
185
186Benziger has the stronger verified sustainability profile. Its Sonoma operation uses a three-tier model covering certified sustainable, organic, and Biodynamic practices. Livestock and habitat plantings are active parts of the farm system, with sheep replacing mowing, disking, and herbicides, while Highland cattle contribute organic matter to vineyard soils. [The sustainability account](https://www.entrepreneur.com/business-news/its-a-green-revolution-sustainable-organic-and/202418) also reports that Benziger was the first Sonoma County winery to qualify for Bay Area Green Business Certification and that all four Sonoma County estate vineyards had achieved Biodynamic certification by 2000.
187
188Those details matter because the farming model shapes the visitor conversation. Benziger can show how vineyard management connects soil, animals, habitat, and wine education. Eco-conscious travelers aren't hearing a sustainability slogan. They're encountering a property whose public identity is organized around farming practice.
189
190### Beyond the tasting flight
191
192B.R. Cohn's environmental and cultural story takes a different route. The estate olive grove is not a decorative backdrop. Olive oil and wine share the property's agricultural identity, and that makes food-and-wine pairing a natural part of the visit. The grove also gives events and tastings a distinctive sense of place.
193
194The cultural contrast is equally clear:
195
196- **B.R. Cohn:** Music history, estate hospitality, olive-oil heritage, and event programming connected to live entertainment.
197- **Benziger:** Biodynamic farming, vineyard education, family legacy, and a more agriculture-led visitor narrative.
198
199![A comparison chart showing sustainability practices on the left and cultural programming examples on the right.](https://cdnimg.co/b09ef9e7-56b8-42ac-8446-839cd664add4/77a5e372-1c54-4446-a9c5-4b790684d070/b-r-cohn-vs-benziger-winery-sustainability-programming.jpg)
200
201This distinction helps groups avoid choosing based on scenery alone. A food-focused traveler who wants olive oil alongside wine will get more from B.R. Cohn's dual agricultural identity. A visitor who wants to understand Biodynamic systems and the role of working animals will find Benziger more rewarding.
202
203B.R. Cohn's cultural programming also offers a stronger foundation for music-themed gatherings and social events. Benziger's cultural value sits in education and land stewardship. Both add meaning beyond wine, but the emotional payoff differs. One creates a shared social story, the other creates a learning experience rooted in the vineyard.
204
205## Which Winery Fits Your Specific Plans
206
207The right answer depends on the job the winery must perform. A tasting stop, a wedding venue, a collector destination, and a corporate retreat have different requirements. The following recommendations keep those use cases separate instead of forcing one estate into every role.
208
209| Visitor profile | Recommended winery | Key reason |
210|---|---|---|
211| Saturday wedding with a large guest list | B.R. Cohn | Published capacity up to 250 guests and a defined Saturday venue program |
212| Elopement or vow renewal with up to 20 guests | Benziger | Published private ceremony format is built for intimate events |
213| Collector focused on old-vine Zinfandel | B.R. Cohn | Portfolio centers on old-vine Zinfandel and estate-linked Sonoma Valley wines |
214| Cabernet-focused collector | B.R. Cohn | Vineyard-designated and estate Cabernet positioning is especially clear |
215| Visitor seeking Biodynamic farming education | Benziger | Sustainability model is central to the estate identity |
216| Flexible day-tripper | B.R. Cohn | Daily public-facing tasting model and walk-in-friendly framing |
217| Corporate group seeking an educational estate activity | Benziger | Farming and vineyard programming provide a natural group discussion |
218| Music enthusiast or themed event host | B.R. Cohn | Bruce Cohn's Doobie Brothers connection gives the property a distinctive cultural hook |
219| Wine-club prospect seeking estate allocations | B.R. Cohn | Direct club program emphasizes new releases and member allocations |
220
221### Booking guidance by plan
222
223**For couples:** Set the guest count before touring. If the event is a full wedding with a reception, entertainment, and substantial production, B.R. Cohn is the practical starting point. If the couple wants a short private ceremony with a small circle, Benziger is the cleaner fit.
224
225**For collectors:** Start with the intended cellar profile. B.R. Cohn is the stronger recommendation for old-vine Zinfandel and concentrated Cabernet exploration. Benziger is better for collectors who value Biodynamic farming context and a wider interpretive range.
226
227**For corporate planners:** Decide whether the group needs a social setting or an educational program. B.R. Cohn's music and estate identity can support a memorable gathering, while Benziger's farming story gives a retreat a structured learning component. Either way, the organizer should confirm group access, catering, timing, and event policies before invitations go out.
228
229**For wine-club prospects:** Review current allocations, shipment timing, member benefits, and library access directly. A club makes sense only when the portfolio matches the household's drinking habits, so tasting the core wines before joining is the sensible move.
230
231Reserve Benziger early because the experience is more schedule-dependent. Reserve B.R. Cohn ahead for weddings, peak travel periods, and groups, even though its public model is more flexible. For 2026 planning, visitors should verify every current fee, available date, tasting format, and event policy before paying a deposit.
232
233> **Final recommendation:** B.R. Cohn is the better all-around choice for collectors, flexible visitors, music-led events, and large weddings. Benziger is the better choice for intimate ceremonies and travelers who want sustainability and vineyard education to lead the experience.
234
235---
236
237B.R. Cohn Winery offers a daily estate tasting destination built around Sonoma Valley Cabernet Sauvignon, old-vine Zinfandel, olive-oil heritage, and Bruce Cohn's music legacy. Visitors comparing these Glen Ellen properties should review the current options and book a visit to [B.R. Cohn Winery](https://brcohn.com) when the itinerary calls for a flexible, story-driven estate experience.
238`,C2=`---
239title: "Best Wineries in Sonoma Valley: 2026 Guide to Top Spots"
240slug: "best-wineries-in-sonoma-valley"
241date: "2026-07-12"
242category: "Visit & Tastings"
243excerpt: "Discover the best wineries in Sonoma Valley with our 2026 guide. Find top spots for tasting, events, and unique experiences."
244featuredImage: "https://cdnimg.co/b09ef9e7-56b8-42ac-8446-839cd664add4/d787b034-5372-44c4-9327-fe3a31b3df48/best-wineries-in-sonoma-valley-wine-tasting.jpg"
245focusKeyword: "best wineries in sonoma valley"
246---
247
248Sonoma Valley trips often start the same way. Someone opens a dozen tabs, saves twice as many tasting rooms, then realizes half the list looks interchangeable.
249
250That's the problem with most “best wineries in Sonoma Valley” roundups. They chase labels, views, or prestige and skip the part that shapes the day: how the place feels, what story it tells, whether the tasting is memorable, and whether the property can do more than pour wine.
251
252The strongest Sonoma visits aren't built around checking boxes. They're built around fit. One estate wins on history. Another lands because the hospital
252ity feels polished without being stiff. One stands out because the wine is only part of the experience, and the rest comes from atmosphere, agriculture, and a story guests will remember on the drive back.
253
254## Your Guide to Navigating Sonoma Valley Wine Country
255
256A first-time visitor usually makes the same mistake. The list gets too long, the driving gets too ambitious, and the day turns into a sprint between appointments instead of a wine country escape.
257
258Sonoma Valley rewards a narrower plan. The better approach is to pick wineries that offer different kinds of experiences, then leave enough room for lunch, wandering, and one stop that feels bigger than a tasting flight. For many visitors, that means looking past the usual rankings and focusing on properties with real character.
259
260![A glass of white wine being poured at a vineyard during a scenic sunset with snacks.](https://cdnimg.co/b09ef9e7-56b8-42ac-8446-839cd664add4/39874a9d-bc27-4a47-b3fb-c431f2c97c90/best-wineries-in-sonoma-valley-wine-pouring.jpg)
261
262A smart short list usually includes four things:
263
264- **A sense of place:** The winery should feel rooted in Sonoma Valley, not copied from somewhere else.
265- **A reason to linger:** Great wine matters, but so do hospitality, setting, and pace.
266- **A story worth repeating:** Visitors remember estates with personality.
267- **Practical value:** Tastings, events, and guest experiences should feel worth the time and the spend.
268
269That's where a standout estate separates itself. A property with a strong backstory, estate olive oil, music heritage, and tastings that feel more layered than a basic bar pour gives visitors more than a glass and a view. It gives them an experience they can describe later.
270
271> **Practical rule:** If a winery sounds great on paper but gives no clue about atmosphere, hospitality style, or what makes the visit distinct, it probably won't be the highlight of the day.
272
273Visitors who want a polished starting point can [plan a Sonoma Valley tasting visit](https://brcohn.com/visit) before building the rest of the day around it. That's often the cleanest way to cut through the noise and choose wineries that feel memorable instead of merely convenient.
274
275## What Defines a Great Sonoma Winery Visit
276
277The best wineries in Sonoma Valley don't win because of one thing. They win because the wine, the setting, the story, and the logistics all line up.
278
279Sonoma Valley has the raw material for serious wine. According to regional vineyard and production context, the valley contains **approximately 6,000 acres of certified vineyard land** focused primarily on Cabernet Sauvignon and Zinfandel. Cabernet accounts for **roughly 45%** of plantings and Zinfandel represents **about 12%** of the region's vine acreage. That same overview notes the valley has produced high-quality estate wines for over four decades, with **annual production exceeding 3 million cases from valley-floor vineyards alone**. In plain terms, visitors should expect depth here, especially from Cabernet and Zinfandel.
280
281### Start with the grapes that fit the valley
282
283A winery visit should reflect the region, not ignore it. In Sonoma Valley, that means paying attention to **Cabernet Sauvignon** and **Old Vine Zinfandel**.
284
285A serious Cabernet tasting can show structure, ripeness, and a clear sense of site. A strong Zinfandel brings energy, spice, and history. When a winery pours both with confidence, the tasting already has a stronger foundation than a generic mixed lineup built for broad appeal.
286
287### The room matters almost as much as the bottle
288
289Some tasting rooms feel transactional. The better ones feel paced, considered, and welcoming without trying too hard.
290
291Visitors should look for a few signs:
292
293- **Seated hospitality:** It slows the tasting down and gives staff room to guide it well.
294- **Distinct atmosphere:** The property should have its own personality, whether that comes from architecture, agriculture, or culture.
295- **Thoughtful extras:** Food pairings, estate products, tours, or seasonal events make the stop feel complete.
296
297### Story turns a tasting into a memory
298
299A lot of wine is good. Far less is memorable.
300
301The wineries people talk about later usually have a narrative attached to them. That might be family history, farming heritage, a cultural angle, or an estate product beyond wine that deepens the visit. A bottle tastes different when the guest understands where it came from and why the place exists in the first place.
302
303> The best tasting rooms don't just pour wine. Staff connect the wine to the land, the people, and the reason the estate feels different from the next stop down the road.
304
305Visitors who fall for a winery's style usually get more value by joining its [estate wine club](https://brcohn.com/wine-club). That's especially true when the estate is known for signature Sonoma Valley reds and a clearly defined identity.
306
307## Top Sonoma Valley Wineries At a Glance
308
309Some readers don't want a long debate. They want a fast filter.
310
311This quick comparison does that. It's built around visitor experience, not score chasing. The wineries below are presented as useful categories for different kinds of Sonoma Valley days, with one estate standing out for visitors who want story, hospitality, and a more layered tasting.
312
313### Sonoma Valley Winery Comparison
314
315| Winery | Tasting Vibe | Signature Wine | Best For |
316|---|---|---|---|
317| B.R. Cohn Winery | Rock and roll history, estate setting, relaxed but memorable hospitality | Cabernet Sauvignon, Old Vine Zinfandel | Music lovers, couples, visitors who want more than a standard tasting |
318| Historic hillside estate | Scenic and polished | Cabernet Sauvignon | Classic Sonoma Valley sightseeing |
319| Olive grove property | Rustic and food-friendly | Zinfandel | Leisurely afternoons and agricultural charm |
320| Contemporary tasting house | Stylish and social | Chardonnay | Small groups and design-forward stops |
321| Garden estate | Quiet and traditional | Cabernet Sauvignon | Low-key tasting days |
322
323This table isn't pretending every winery serves the same purpose. They don't. Some are best for a pretty hour and a quick pour. Some are ideal for a slower afternoon. One earns extra attention because it combines wine, estate olive oil, event appeal, and music history in a way that's hard to replicate.
324
325### How to use this list
326
327A useful Sonoma itinerary usually includes contrast. A visitor might pair one scenic estate with one more personality-driven stop, then leave room for lunch and a walk around town.
328
329That's why the “best wineries in Sonoma Valley” question needs a better answer than a generic top ten. The right winery depends on whether the day is built around romance, collecting, food, [Sonoma wedding venues](https://brcohn.com/blog/sonoma-valley-wedding-venues) scouting, or an offsite that needs more texture than a boardroom with a vineyard view.
330
331For travelers who care about complete experience, not just bottle reputation, one estate belongs near the top of the list for good reason.
332
333## The Vintner with a Backbeat B.R. Cohn Winery
334
335Some wineries offer good wine. Some offer a story. Very few deliver both with a point of view that guests remember.
336
337B.R. Cohn Winery belongs in any serious conversation about the best wineries in Sonoma Valley because it has a distinct identity from the moment a visitor hears the name. It wasn't built around generic luxury language or interchangeable wine country polish. It was built around a real legacy with roots in music, agriculture, and Sonoma Valley itself.
338
339![A scenic wine tasting set with a glass of red wine, cheese, and grapes at a vineyard.](https://cdnimg.co/b09ef9e7-56b8-42ac-8446-839cd664add4/dd7926da-8a0b-47ac-9b36-58b74096e3de/best-wineries-in-sonoma-valley-wine-tasting.jpg)
340
341According to the [estate background](http://b-r-cohn-winery.corksy.io/about), **B.R. Cohn Winery was established in 1984** in Glen Ellen and has maintained a continuous presence for over four decades. That matters. In a region where visitors often chase whatever looks polished online, longevity still says something. It signals staying power, local roots, and a winery that has grown with Sonoma Valley instead of merely marketing itself around it.
342
343### Why the music heritage matters
344
345A lot of wineries talk about ambiance. This estate has an actual cultural hook.
346
347Bruce Cohn's connection to The Doobie Brothers gives the property a rock-and-roll lineage that feels lived in rather than manufactured. That changes the tone of the visit. The winery doesn't feel like another pretty stop with a scripted tasting. It feels like a place with personality, and that personality adds texture before the first pour even lands.
348
349That matters because story changes perception. A glass of Cabernet in a blank tasting room is just a glass of Cabernet. A glass of Cabernet at an estate shaped by music history feels anchored to something bigger.
350
351### The wines justify the stop
352
353Backstory alone never saves a weak tasting. The wines still have to do the work.
354
355B.R. Cohn earns its place through the estate's focus on **Cabernet Sauvignon** and **Old Vine Zinfandel**, which fits exactly what many visitors should be drinking in Sonoma Valley in the first place. Cabernet gives structure and depth. Old Vine Zinfandel brings energy and a more heritage-driven personality.
356
357The strongest tastings in Sonoma often do one thing very well. This estate doesn't need a bloated menu to impress. It needs a focused lineup, competent hospitality, and a setting that helps the wines make sense.
358
359> Visitors who love wineries with a strong identity usually respond best to places where the pour, the place, and the story all point in the same direction.
360
361### Olive oil gives the estate an edge
362
363This is one of the details that pushes the property above the average tasting-room stop.
364
365The [Olive Hill Estate profile](https://pursuitist.com/pursuitist-meets-dan-cohn-b-r-cohn-winerys-olive-hill-estate-vineyard/) notes that the winery offers a distinctive estate olive oil from Olive Hill Estate Vineyard. That olive oil connection broadens the visit. It ties the property to Sonoma agriculture in a more tangible way and gives guests another sensory anchor beyond wine alone.
366
367That matters more than it sounds. Estate olive oil isn't a gimmick when it reflects the land and the heritage of the property. It creates a tasting that feels more layered and more grounded in the estate itself.
368
369### Who should put this at the top of the list
370
371B.R. Cohn is an especially smart pick for a few types of visitors:
372
373- **Couples who want a romantic stop with character:** The story does some of the work for them.
374- **Wine travelers who are bored by generic tastings:** This estate has an actual point of view.
375- **Music fans:** The cultural connection is obvious and memorable.
376- **Event planners:** The property's identity lends itself to weddings and offsites with more personality than the usual vineyard backdrop.
377
378Visitors who want to start with a winery that delivers depth, atmosphere, and a story can [explore the estate experience at B.R. Cohn Winery](https://brcohn.com/). For a Sonoma Valley day that needs one stop people will still be talking about at dinner, this is one of the clearest recommendations in the region.
379
380## Beyond the Music More Sonoma Valley Gems
381
382A credible Sonoma Valley guide can't stop at one estate. The region works best when visitors mix moods and choose stops that complement each other.
383
384That said, premium tasting rooms have become more demanding. In Sonoma Valley, established estate experiences often sit at **approximately $100 per person**, according to this [discussion of Sonoma Valley tasting expectations](https://www.reddit.com/r/wine/comments/13v35ui/vineyards_to_visit_in_sonoma_valley/). At that level, a winery has to offer more than a competent pour. It needs distinct amenities, a clear identity, and a reason the guest should feel the visit was worth it.
385
386![An infographic highlighting the unique experiences, signature varietals, and insider tips for three Sonoma Valley wineries.](https://cdnimg.co/b09ef9e7-56b8-42ac-8446-839cd664add4/a6c1c2c7-c006-49d1-b174-0aa59fda2a16/best-wineries-in-sonoma-valley-winery-guide.jpg)
387
388### The polished scenic stop
389
390Some Sonoma wineries are best chosen for atmosphere first. These are the places for a slow patio tasting, valley views, and a classic wine country mood.
391
392They work well for:
393- **First-time visitors:** Easy, attractive, low friction.
394- **Celebration weekends:** The backdrop does a lot of the heavy lifting.
395- **Mixed-interest groups:** Everyone can enjoy the setting, even if wine knowledge varies.
396
397The tradeoff is simple. Scenic wineries can drift toward sameness if they don't have a sharper point of view beneath the view itself.
398
399### The food-friendly agricultural estate
400
401This type of winery wins by making the visit feel connected to the land in more than one way. Olive groves, estate products, gardens, or pairings can make the experience richer and more grounded.
402
403That style usually appeals to visitors who care about:
404- **Taste beyond the glass**
405- **A slower pace**
406- **A more tactile sense of place**
407
408These properties often create the most satisfying afternoons because they don't rush guests through a script. They give them a reason to stay seated, ask questions, and engage with the estate as a working destination rather than a tasting counter.
409
410> A winery earns premium pricing when guests leave feeling they visited a property, not just purchased an appointment.
411
412### The social modern tasting room
413
414Some visitors don't want pastoral quiet. They want energy.
415
416A modern, lively tasting room can be the right move for friend groups, birthdays, and visitors who prefer a more social rhythm. Design matters more here. So does service tempo. The best versions feel stylish without becoming impersonal.
417
418These spots are useful, but they rarely replace the value of one estate-driven stop with deeper character. They're often better as a second tasting than the emotional anchor of the day.
419
420### The historic charmer
421
422Historic wineries still have an edge because they give visitors something hard to fake. Mature grounds, older structures, and a long local presence add gravity.
423
424That kind of estate works especially well for travelers who want:
4251. **A sense of continuity**
4262. **Less trend-driven branding**
4273. **A slower, more traditional visit**
428
429Historic charm gets even stronger when it's paired with a signature angle, whether that c
429omes from farming, hospitality, or a cultural connection. Without that extra layer, history can feel passive. With it, the stop feels complete.
430
431For couples and planners thinking beyond tastings, this matters even more. Estates with personality translate well into private celebrations, and that's part of why wineries with strong identity stay in demand for [Sonoma Valley wedding planning](https://brcohn.com/weddings).
432
433## Planning Your Sonoma Visit Itineraries and Events
434
435The best Sonoma Valley days aren't packed. They're sequenced well.
436
437That means one anchor winery, one supporting stop, one good meal, and enough slack in the schedule that nobody feels rushed. Visitors chasing too many reservations usually flatten the experience. The valley is better when the day has shape instead of speed.
438
439![An infographic titled Planning Your Sonoma Visit featuring three different travel itineraries and helpful pro tips.](https://cdnimg.co/b09ef9e7-56b8-42ac-8446-839cd664add4/5c89eb25-43a9-4c8a-9d78-a8fb780f83a4/best-wineries-in-sonoma-valley-sonoma-itineraries.jpg)
440
441### The music and history day
442
443This is the strongest itinerary for travelers who want one winery with a real story, not just another tasting bar.
444
445- **Morning:** Start with an estate tasting built around Sonoma Valley reds and a distinctive backstory.
446- **Lunch:** Choose a relaxed local lunch nearby, not a heavy multi-course detour.
447- **Afternoon:** Add one quieter winery or a town stroll instead of another big appointment.
448- **Evening:** Finish with dinner somewhere that matches the day's slower rhythm.
449
450This format works because the winery visit carries the narrative weight of the day. Everything else supports it. Visitors planning around atmosphere and entertainment can also explore [wineries with live music in Sonoma](https://brcohn.com/blog/wineries-with-live-music-near-me) to find estates where the experience goes well beyond the glass.
451
452### The food-centered wine day
453
454Some visitors care just as much about what's on the plate as what's in the glass. For them, the right itinerary puts agricultural estates and pairing-friendly properties first.
455
456A practical version looks like this:
457
458| Part of day | Best move |
459|---|---|
460| Morning | Begin at a winery with estate character and a seated tasting |
461| Midday | Plan a real lunch, not snacks passed off as lunch |
462| Afternoon | Choose a stop with culinary tie-ins, estate products, or a more food-friendly vibe |
463| Evening | Keep the dinner reservation simple and local |
464
465The point is balance. A food-driven day shouldn't feel overproduced. It should feel generous and easy.
466
467### The event scouting day
468
469Most winery guides fall short on this point. They talk about beauty and bottles, but they don't help couples or planners who need decision-making details.
470
471According to this Sonoma Valley event-planning discussion, most “best wineries” coverage misses the issue of **Saturday wedding availability** for venues with music-themed programming. That same source notes a **40% surge** in Bay Area couples seeking music-infused wedding venues with flexible Saturday inventory. For planners, that's not a side note. That's one of the most useful filters in the region.
472
473> Wedding venue shopping in Sonoma gets easier the moment the couple stops asking which place is prettiest and starts asking which place fits the date, the guest experience, and the tone of the weekend.
474
475For wedding planning, the shortlist should prioritize:
476- **Saturday availability**
477- **A venue personality that doesn't need heavy decorating**
478- **A guest experience beyond ceremony photos**
479- **A clear sense of what makes the property different**
480
481### Corporate events with character
482
483Corporate offsites follow the same logic. A winery only works if the venue gives the event a reason to exist there.
484
485The strongest properties for offsites are the ones that can support a real experience. Music heritage helps. Private event flexibility helps. A tasting that feels customized rather than generic helps even more. Event planners don't need a pretty backdrop alone. They need a setting that gives the gathering identity.
486
487For planners who want to evaluate live events, seasonal programming, and private gathering potential, the best next step is to review [Sonoma estate events and venue options](https://brcohn.com/events).
488
489---
490
491Visitors searching for the best wineries in Sonoma Valley usually want one thing: fewer forgettable stops and one standout experience. [B.R. Cohn Winery](https://brcohn.com) earns a place on that shortlist with its historic estate, memorable tastings, estate olive oil, and rock-and-roll heritage that gives the visit real personality. For travelers, couples, and planners who want a winery with substance, this is the one to book first.
492`,E2=`---
493title: "Corporate Event Venues Wine Country: 2026 Planning Guide"
494slug: "corporate-event-venues-wine-country"
495date: "2026-08-13"
496category: "Events & Weddings"
497excerpt: "Discover premier corporate event venues wine country offers. Learn how to choose between private estates and tasting rooms, and book your unforgettable 2026"
498featuredImage: "https://cdnimg.co/b09ef9e7-56b8-42ac-8446-839cd664add4/55f05ad3-57c9-41c9-a7cd-f7c2a1b28a21/corporate-event-venues-wine-country-wine-tasting.jpg"
499focusKeyword: "corporate event venues wine country"
500---
501
502Most advice on **corporate event venues in wine country** starts with the wrong question. It asks whether the view is beautiful enough, when the fundamental question is whether the property can run a business program without friction, confusion, or last-minute workarounds. Corporate planners don't get paid to stage a pretty backdrop. They get judged on check-in flow, sound quality, catering execution, weather backup, and whether executives leave feeling like the day was intentional from start to finish.
503
504That matters because the corporate event market is not small or casual. The U.S. hosts **over 1 million corporate events annually**, and the average corporate event budget is **$33,200**, with **65% of that budget** typically going to **venue and food costs** according to Booking.com for Business [corporate event statistics](https://business.booking.com/en-us/business-travel-resources/articles/corporate-event-statistics/). That budget mix tells the full story. In this category, the venue isn't decoration, it's the engine.
505
506![A sommelier pours red wine into a glass on a rustic barrel at a sunny vineyard.](https://cdnimg.co/b09ef9e7-56b8-42ac-8446-839cd664add4/c3f0261d-ddc8-46b8-a34a-16674892552f/corporate-event-venues-wine-country-wine-pouring.jpg)
507
508Wine country works for corporate gatherings when the property behaves like a real event asset, not a tasting room that has been repurposed. Sonoma Valley is already positioned for this kind of business, and the local meetings page puts it within **75 minutes of San Francisco International Airport** while explicitly promoting **intimate meetings, corporate retreats, and team off-sites** [Sonoma Valley meetings](https://www.sonomavalley.com/meetings/). For planners comparing venue types, that's the filter that matters. Scenic is good, operationally ready is better.
509
510For a useful starting point on venue selection, it helps to compare the core event categories first, then narrow down to actual estates, including [B.R. Cohn's Sonoma Valley winery overview](https://brcohn.com/blog/best-wineries-in-sonoma-valley).
511
512## Why Wine Country Events Demand More Than Just a View
513
514A vineyard view can sell the idea of the event, but it cannot fix a poor room layout, weak AV, or a catering team that loses control of service flow. Corporate programs often look polished in the RFP and then feel improvised on site because the setting was chosen for the photo, not the program. A venue has to carry the meeting, not distract from it.
515
516Wine-country properties that really work for corporate groups are usually built like event operations, not tasting rooms. The strongest clue is how they handle repeated use, guest movement, and service under pressure. A Napa and Sonoma event-center study notes that local wineries host **more than 200 weddings per year** and can serve **up to 250 guests** event center study. That level of activity shows infrastructure, staffing habits, and room design that can support more than a casual visit.
517
518Corporate events stress a property in different ways than leisure groups do. A sales kickoff needs clean sightlines and dependable sound so speakers are heard without strain. An executive retreat needs privacy, quiet corners, and pacing that does not feel rushed. A holiday party needs transport, parking, and enough service capacity to keep guests moving without jams at the bar or buffet.
519
520> **Practical rule:** if the venue cannot explain how it handles weather, access, sound, and meal service in plain language, it is selling atmosphere instead of event readiness.
521
522Wine country also changes the tone of a program without changing the planner's objective. It gives the meeting a stronger sense of place, which helps with attendee engagement. That only works when the property has the infrastru
522cture to support the function. Otherwise, the planner ends up solving problems the venue should have handled before the first guest arrived.
523
524The question is not whether the setting looks good. It is whether the venue protects the budget, the schedule, and the guest experience at the same time. For a practical starting point on estate-style options, review [B.R. Cohn's Sonoma Valley winery overview](https://brcohn.com/blog/best-wineries-in-sonoma-valley).
525
526## The Estate vs The Tasting Room A Planner's Guide
527
528A **private event estate** is built to host groups. A **tasting room venue** is built to welcome visitors for wine service, then adapt when possible. That difference sounds subtle until a planner starts asking about exclusive use, service flow, and whether the room that looks good in a photo can support a corporate program.
529
530The operational test is simple. A true event estate can usually control the space, the schedule, and the guest experience. A tasting room venue often shares square footage with retail traffic, public service, or limited staffing patterns that were never designed for a full business agenda. For planners, that affects privacy, punctuality, and how confidently the program can move from reception to dinner to remarks.
531
532The checklist should focus on details that determine whether the event will work under pressure. Venue operators should be able to answer questions about **capacity, catering policies, parking, transportation access, and noise ordinances for amplified sound** [Conventions Southwest](https://www.conventionsouthwest.com/features/brewed-for-connection-how-wineries-breweries-and-distilleries-are-becoming-standout-meeting-destinations/). Those aren't side issues. They're the framework of whether the property is bookable for business.
533
534| Venue Comparison: Private Estate vs. Tasting Room | Private Event Estate | Tasting Room Venue |
535|---|---|---|
536| **Use of space** | Dedicated event footprint, often with indoor and outdoor areas | Shared with tasting operations or partial buyouts |
537| **Guest privacy** | Higher control over access and circulation | Public traffic may continue nearby |
538| **Staffing model** | Event-focused service team | Tasting staff may double as event support |
539| **Catering flexibility** | Clear in-house or approved outside-caterer structure | Policies can be more restrictive or informal |
540| **Technical readiness** | Better odds of stable power, AV, and room planning | Tech may be adequate for small gatherings, less reliable for programs |
541| **Risk management** | More likely to include weather backup and noise planning | Backup plans can be limited or improvised |
542
543For planners who want a venue that operates like a real partner, the right question is not whether the property is charming. It's whether the property can host the meeting without asking the event team to patch gaps. That lens is especially useful for corporate event venues wine country buyers who need both atmosphere and control.
544
545A good way to study the difference is to review the [private events framework at B.R. Cohn](https://brcohn.com/blog/winery-private-events), then compare it with any site that only offers a room and a wine list. The contrast usually becomes obvious very quickly.
546
547## Essential Criteria for Vetting Wine Country Venues
548
549The best site visits don't start with the view. They start with capacity math, service questions, and a slow walk through how people will move through the property. A planner who asks the right questions early avoids the most common failure points later, especially in wine country where outdoor settings can look polished while hiding operational limits.
550
551### Start with capacity and guest flow
552
553A strong event property should be able to explain how it handles indoor and outdoor density without forcing guests to bunch up at the bar, the entrance, or the podium. Venue listings in wine regions show reception capacities from about **120 to 1,380 guests** and conference or theatre capacities from roughly **50 to 700** Temecula Wines event spaces. The point isn't to chase the biggest number. It's to understand whether the room geometry matches the program.
554
555> **Useful test:** Ask where plenary seating, cocktail circulation, and service stations will sit at the same time. If the answer sounds improvised, the space probably is.
556
557### Confirm the technical and service foundation
558
559AV matters more than most scenic properties want to admit. Ask where power comes from, how microphones are supported, and whether the room can handle presentation needs without rearranging the whole event. Then move to catering, because the food model shapes both cost and control. Some properties are fully in-house, others allow outside caterers, and that difference changes everything from menu planning to staffing.
560
561A planner should also check parking, bus access, and noise limits. Those issues can make or break late finishes, amplified speeches, and offsite arrivals. For a practical consumer-facing reference on glassware and service presentation, a useful resource is [hospital
561ity wine glass selection](https://simplyhospitality.co.nz/blogs/product-thoughts/wine-glasses-nz), since the details of serviceware can affect how polished the room feels once guests are seated.
562
563### Use a simple site-visit checklist
564
565- **Capacity and layout:** Confirm the room works for both seated content and social time.
566- **Service model:** Ask whether the venue handles food in-house or works with outside partners.
567- **Accessibility:** Check parking, shuttle drop-off, and the route from arrival to event space.
568- **Privacy:** Verify whether the property is exclusive use or shared with other guests.
569- **Weather plan:** Make sure there's a true backup for outdoor reception space.
570- **Noise rules:** Ask about amplified sound, curfew timing, and any neighborhood limits.
571
572For planners interested in an estate-style layout, the [B.R. Cohn visit page](https://brcohn.com/visit) is a useful model for how a winery can present a guest experience without losing sight of event usability.
573
574## Navigating Logistics Seasonality and Budgets
575
576Wine country rewards planners who book early, price out the full program, and leave room for last-minute changes. The venue is only one line item. Transportation, lodging, meal service, and weather backup plans can shape the event just as much as the property itself.
577
578![A scenic vineyard at sunset with wine being poured into a glass next to a charcuterie board.](https://cdnimg.co/b09ef9e7-56b8-42ac-8446-839cd664add4/a5325cf6-bfd1-4e2c-92a1-5ec7ca78e57a/corporate-event-venues-wine-country-wine-tasting.jpg)
579
580Sonoma Valley works well for executive groups because it sits close enough to major travel routes to stay practical, while still feeling removed from the office routine. The area sits **75 minutes from San Francisco International Airport** and supports offsite planning across wineries, culinary schools, and farms. That range gives planners options, but it also means the transportation plan, arrival sequence, and contract terms need to be settled before anyone signs.
581
582A workable timeline usually starts about a year ahead for primary dates, especially if the program needs hotel blocks, shuttles, or a private buyout. Early decisions should lock down the venue type, the guest-count range, and the meeting format. After that, the focus shifts to menu approvals, room diagrams, arrival flow, and weather alternatives.
583
584Budget planning has to go beyond the venue fee. Transportation between lodging and the site, backup rentals for outdoor setups, and any service minimums all affect the final spend. Sonoma County retreat guidance notes that planners should expect about **$250 per room night** at the low end in summer, while luxury Napa property pricing in high season may run **$500 to $600 per room night at a minimum** [WineCountry.com](https://www.winecountry.com/blog/planning-your-corporate-retreat/). Those figures matter because lodging can change the economics of a multi-day corporate program fast.
585
586Seasonality shifts the planning conversation too. Peak demand usually means tighter availability and less flexibility, while shoulder periods can leave more room for arrival timing and room blocks. Strong planners use the season to shape the format instead of forcing the format onto the season.
587
588For a venue that is set up to handle the operational side of the calendar, the [B.R. Cohn events page](https://brcohn.com/events) is worth reviewing because it frames the property as a place for structured gatherings, not just a scenic stop.
589
590## Case Study The B.R. Cohn Winery Estate Experience
591
592B.R. Cohn fits the private event estate model because it gives planners a controlled setting with multiple event-ready spaces, not a single room beside a tasting counter. That distinction matters for corporate programs that need reception space, dinner flow, and a setting that feels separate from a standard hospital
592ity operation. The property's heritage also gives it an identity that can support themed business events without forcing the planner to build the story from zero.
593
594The corporate-events value comes from B.R. Cohn's Sonoma Valley roots and its music history, which give the event a built-in narrative. That helps with a leadership dinner, a client appreciation event, or a holiday party where the host wants the evening to feel deliberate rather than generic. A winery with a clear backstory makes remarks, signage, and seating design feel tied to the place instead of pasted on afterward.
595
596![Screenshot from https://brcohn.com/private-events/](https://cdnimg.co/b09ef9e7-56b8-42ac-8446-839cd664add4/screenshots/21b8f105-0dd3-42de-995c-7bf1ee04697a/corporate-event-venues-wine-country-winery-patio.jpg)
597
598The estate model also matches what strong wine-country event sites already prove in practice. Sonoma and Napa wineries can host **more than 200 weddings per year** and serve **up to 250 guests**, which shows how the best properties operate as infrastructure-heavy event assets rather than one-off scenic backdrops. That matters for corporate planners because a site that can handle repeated weddings is usually better prepared for repeated business events too.
599
600B.R. Cohn's estate approach is especially relevant for corporate dining and social formats. The property can support a more controlled guest experience than a room attached to a public tasting flow, and that reduces the risk of awkward overlap between retail visitors and private programming. For planners, that means cleaner arrivals, simpler service planning, and a stronger sense of exclusivity.
601
602A useful way to judge the venue is against the event's operational needs, not the mood board. The [private event request process](https://brcohn.com/private-event-request) is the right next step when the brief calls for a winery setting, structured service, and a venue that can act like a real partner instead of a scenic space with limited control.
603
604## Executing a Flawless Corporate Event in Wine Country
605
606Successful wine-country corporate events follow a simple pattern. The planner chooses a venue that can control the room, the meal, the weather plan, and the guest flow. Then the team builds the event around those capabilities instead of trying to force a hotel-style program into a property that was never designed for it.
607
608A final planning check should cover four things. First, confirm infrastructure, including AV, power, and room geometry. Second, lock down vendor policy, because in-house versus outside catering changes both cost and execution. Third, build a realistic budget with transport and contingency spend included. Fourth, use the venue's story, whether that means music heritage, estate-grown wines, or a distinctive valley-floor setting, to make the event feel intentional.
609
610The venue choice should function like a strategic partnership. That's especially true in wine country, where the setting creates strong expectations and the execution has to match them. A planner who treats the site as a business asset, not a backdrop, is much more likely to deliver the experience the client wanted.
611
612For planners looking at broader event strategy in a destination setting, a useful comparison point is [Cape Town corporate event strategies](https://www.abchire.co.za/blog/how-to-host-a-corporate-event/), especially for thinking about venue control, guest movement, and program pacing in a destination market.
613
614A strong estate venue reduces risk, protects time, and gives the event a clearer identity. That's the standard to use when comparing options in Sonoma, Napa, and the broader wine country market. When the property can support the function as confidently as it supports the atmosphere, the event usually lands the way it should.
615
616---
617
618B.R. Cohn Winery offers a Sonoma Valley estate setting built for private events, with the operational structure that corporate planners need when the brief calls for more than a pretty vineyard view. For teams planning offsites, holiday parties, or executive gatherings in wine country, [B.R. Cohn Winery](https://brcohn.com) is a venue worth reviewing closely because it brings together the site, the story, and the event-use model in one place.
619`,x2=`---
620title: "Doobie Brothers Winery Sonoma: B.R. Cohn Visitor Guide"
621slug: "doobie-brothers-winery-sonoma"
622date: "2026-09-15"
623category: "Visit & Tastings"
624excerpt: "Plan a Doobie Brothers winery Sonoma visit at B.R. Cohn. Explore old-vine Zinfandel tastings, music events, weddings, wine club, and booking tips."
625featuredImage: "https://cdnimg.co/b09ef9e7-56b8-42ac-8446-839cd664add4/395b3c3f-25f7-40a1-befc-521aac7ecc04/doobie-brothers-winery-sonoma-wine-pouring.jpg"
626focusKeyword: "doobie brothers winery sonoma"
627---
628
629A vintage guitar, a vineyard, and a bottle of Sonoma red wine share the same story at B.R. Cohn. The estate is the doobie brothers winery sonoma visitors are usually searching for, but its appeal goes beyond celebrity memorabilia.
630
631## The Doobie Brothers Connection and Winery Origins
632
633A vineyard visit here begins with a story that started before the tasting room. Bruce Cohn bought the Sonoma Valley property in **1974**, then developed it as an agricultural home before B.R. Cohn became a winery. One account identifies the original Olive Hill Estate Vineyard as **61 acres**, while other descriptions place the property at roughly **70 acres** or approximately **90 acres** before the winery opened. The acreage varies by account, but the sequence is clear: Cohn established the land first and founded the winery in **1984**, after years of grape growing and estate development. ([B.R. Cohn Winery origins](https://en.wikipedia.org/wiki/B.R._Cohn_Winery))
634
635Cohn's career supplied the estate's unusual second identity. As the longtime manager of **The Doobie Brothers**, he brought music-industry history into a working vineyard. B.R. Cohn developed around that connection, joining agricultural production, wine hospital
635ity, memorabilia, charity events, and live entertainment in one property. It operates more like a rock-and-roll estate with vines than a generic tasting room decorated with celebrity references.
636
637![An elderly person holding a vintage vinyl record next to a bunch of ripe grapes in a vineyard.](https://cdnimg.co/b09ef9e7-56b8-42ac-8446-839cd664add4/e0820190-09cf-4836-b1b0-e3dbdcfb5ff4/doobie-brothers-winery-sonoma-vinyl-record.jpg)
638
639### Music became part of the estate
640
641The Doobie Brothers' connection continued through appearances at the winery's annual charity concert. The band played nearly all of the first **26 annual charity concerts**, while related charity efforts raised approximately **$6 million**.
642
643That history helps visitors choose the right way to experience the property. A tasting suits guests who want to focus on estate wines, while an event visit offers more of the concert tradition and visual memorabilia. The two experiences share the same setting, but they emphasize different parts of the estate's identity.
644
645Silver guitar-shaped vineyard rows and music-related displays make the connection visible. Vines, olive plantings, and the production setting keep the grounds rooted in agriculture. The combination feels less like a celebrity-branded stop and more like a vineyard whose rock-and-roll character grew from its owner's working life.
646
647For current reservations, estate information, and hospitality details, visit the [official B.R. Cohn Winery site](https://brcohn.com/).
648
649## Sonoma Valley Terroir and Old-Vine Vineyards
650
651B.R. Cohn's red-wine identity starts with location. The estate sits in Glen Ellen, within Sonoma Valley, where the valley floor, nearby benchlands, and regional climate help shape the character of varieties such as **Zinfandel and Cabernet Sauvignon**. Sonoma Valley's soil and terroir characteristics are discussed by the [Sonoma Valley Winegrowers](https://sonomawineauthority.com/sonoma-soil-types-and-terroir/).
652
653### Four features to notice in the vineyard
654
6551. **The warmer valley pocket supports ripe fruit.** Glen Ellen's position gives red grapes the warmth they need to develop generous berry character and mature tannins. That helps explain why the estate's wines focus on fuller-bodied red varieties.
656
6572. **Valley-floor soils support concentrated growth.** Well-drained soils can encourage vines to balance water access and fruit development. Visitors won't taste “soil” as a simple flavor, but they may notice how site conditions influence fruit weight, structure, and finish.
658
6593. **Nearby benchlands add a useful contrast.** The Mayacamas influence creates a visual and geological frame around the valley. Looking from the estate toward the surrounding slopes helps explain why Sonoma Valley can produce both approachable fruit and wines with firm structure.
660
6614. **Cooling patterns preserve balance.** Regional airflow, including the influence of cooler areas toward Carneros, moderates the warmer inland setting. That contrast matters because ripe Cabernet and Zinfandel still need freshness to avoid tasting heavy.
662
663![An infographic detailing the terroir and heritage of the Glen Ellen Valley Floor Estate vineyards in Sonoma.](https://cdnimg.co/b09ef9e7-56b8-42ac-8446-839cd664add4/7de23065-af33-4c8f-9f26-f65f643b2965/doobie-brothers-winery-sonoma-vineyard-infographic.jpg)
664
665### Why heritage vines matter
666
667Old, head-trained vines offer a visual lesson in restraint. Their gnarled trunks and separated canopy structure look unlike tightly ordered modern rows, and mature root systems can help the plants handle the growing season with less reliance on irrigation. Dry farming, where conditions permit it, can reduce berry size and intensify the relationship between vine, weather, and soil.
668
669Some estate heritage vines are described as exceeding **100 years**, but visitors should treat old-vine age as a vineyard story rather than a promise that every bottle comes from vines of the same age. The practical takeaway is simpler. Mature Zinfandel vines can contribute depth and layered fruit, while Cabernet blocks provide the structure that supports a more age-worthy style.
670
671For readers interested in how changing vineyard conditions can affect wine businesses and plantings, the [Wine Labs decline analysis](https://winelabs.ai/declines) offers useful broader context. It helps frame why vineyard age, water management, and site decisions matter beyond a single tasting.
672
673## Tasting Experiences at the Estate
674
675The right tasting depends less on prestige and more on the group's purpose. First-time visitors usually need a clear introduction to the estate's red-wine identity, while collectors may prefer library depth and private attention. Groups interested in the broader property should also ask whether olive oil or an estate walk can be added.
676
677Current offerings and reservation details should be confirmed through the [B.R. Cohn visit page](https://brcohn.com/visit), since formats, menus, and availability can change.
678
679### B.R. Cohn Tasting Format Comparison
680
681| Format | Wine Lineup | Group Size | Best For |
682|---|---|---|---|
683| Signature Garden Tasting | A representative selection of current estate wines, often emphasizing core reds | Confirm the current limit before booking | First-time guests w
683anting a relaxed outdoor introduction |
684| Reserve Library Tasting | Reserve and older-production wines selected for a deeper comparison | Ask about the current private-group threshold | Collectors and returning visitors |
685| Private Cabernet Cave Experience | Cabernet-focused pours with a more intimate setting | Confirm the private reservation limit | Couples and small groups seeking a focused experience |
686| Estate Tour Add-On | A tasting paired with a guided look at vineyard or estate features | Availability depends on the scheduled experience | Guests who want context rather than wine alone |
687
688### Match the format to the visit
689
690A **garden tasting** works well when the group wants scenery, conversation, and a broad sense of the portfolio. A reserve or library appointment makes more sense when the group already knows the core wines and wants to compare vintage development or limited releases.
691
692A Cabernet-focused appointment suits visitors who want to study structure, tannin, and oak influence. Guests drawn to Zinfandel should say so when booking, because the host can explain how the estate's heritage blocks fit into the wider wine program.
693
694A flight is a set tasting, not the same thing as ordering full glasses. Food pairings, cheese service, and olive oil components may vary by appointment, so guests shouldn't assume they're included. Advance reservations are the safer choice for private experiences, larger parties, and weekend visits.
695
696> **Practical rule:** Choose the tasting around the group's attention span. A short visit favors the signature format, while a collector's afternoon needs a slower, more focused appointment.
697
698## Live Music Events and the Rock-and-Roll Atmosphere
699
700A concert night at B.R. Cohn begins with a working winery, then shifts toward the energy of an outdoor rock show. The annual charity benefit concert established that rhythm, with The Doobie Brothers among the recurring performers and past lineups connected with artists such as **Carlos Santana and Huey Lewis**. Visitors often arrive specifically for the estate's charity concert history, not for a heritage story attached to a bottle.
701
702![An infographic detailing five key features of live music events held at a vineyard winery.](https://cdnimg.co/b09ef9e7-56b8-42ac-8446-839cd664add4/8b89ebb3-2d03-48a8-aac3-c8d7e0218fe1/doobie-brothers-winery-sonoma-live-music.jpg)
703
704### More than a concert backdrop
705
706The property works like a tasting garden that can become a small outdoor music venue. Rock memorabilia supplies the visual cue, while vineyard views and estate wine keep the visit connected to Sonoma agriculture. That combination helps explain why the estate feels like a working rock-and-roll property rather than a generic tasting room.
707
708Seasonal programming may include outdoor music, estate dinners, and holiday gatherings, but the schedule changes. Check the [B.R. Cohn events calendar](https://brcohn.com/events) before building a visit around a performer or date.
709
710Separate the music from the hospitality to understand the format:
711
712- **The stage creates energy.** Outdoor performances make the property social rather than hushed.
713- **The wine keeps the setting local.** Guests experience the concert with estate wine, not a detached festival concession.
714- **The charity purpose adds meaning.** Benefit events connect attendance with community support, which can affect ticketing and release schedules.
715- **The rock history sets expectations.** The tone is festive and informal, rather than a purely contemplative tasting.
716
717For a broader reference on how live rock programming shapes audience experience, read the [Paul Robins Promotions' rock guide](https://www.paulrobinspromotions.com/post/live-rock-music-oxfordshire). Its event-planning perspective can help visitors distinguish a concert-led winery visit from a standard tasting appointment.
718
719Concert releases, seating arrangements, and prices are not fixed details to guess in advance. Join the estate's event notices, read each official announcement, and reserve promptly when a preferred performer or benefit date appears.
720
721## Weddings, Corporate Events, and Saturday Availability
722
723B.R. Cohn suits celebrations that want a vineyard setting without losing personality. A ceremony lawn, oak-shaded gathering areas, olive grove, and barrel-room possibilities can create a natural sequence from vows to cocktails to dinner. The music heritage also gives couples a clear creative direction for a rehearsal dinner, first-dance playlist, or live-band reception.
724
725Saturday planning requires an early conversation with the venue. Public material describes the estate as an event property with corporate infrastructure, and recent marketing indicates that corporate venue use continues into **2026**. ([B.R. Cohn corporate and estate information](http://b-r-cohn-winery.corksy.io/about))
726
727### Event Venue Options at B.R. Cohn
728
729| Venue Area | Guest Capacity | Best Use | Saturday Availability |
730|---|---|---|---|
731| Ceremony lawn | Confirm with the events team | Vineyard ceremonies and outdoor vows | May be limited during peak demand |
732| Oak-shaded gathering spaces | Confirm with the events team | Cocktails, welcome receptions, and informal company gatherings | Depends on the event calendar |
733| Olive grove | Confirm with the events team | Client dinners, music-led celebrations, and photos | Requires date-specific confirmation |
734| Barrel room | Confirm with the events team | Receptions, holiday parties, and weather-sensitive programs | Ask about private-event holds |
735
736### A practical booking sequence
737
7381. **Send the inquiry form.** Include the preferred date, guest profile, event type, entertainment plans, and whether the request involves a full or partial property buyout.
739
7402. **Schedule a site tour.** Walk the ceremony route, cocktail transition, restrooms, parking path, sound plan, and rain alternative. A beautiful plan can fail if guests must cross active service areas or if the band setup blocks the dinner flow.
741
7423. **Review contract terms.** Confirm deposits, payment timing, cancellation language, event hours, alcohol service, cleanup, insurance, and vendor requirements before signing.
743
7444. **Build the production plan.** Ask about preferred caterers, rentals, lighting, amplified music, and rehearsal access. The rock theme can support a custom entertainment plan, but the venue still needs a detailed sound and load-in schedule.
745
746Should a Saturday date be unavailable, a Friday or Sunday can offer more flexibility, depending on the estate calendar. Corporate planners can also explore team tastings, product launches, holiday events, and olive-grove dinners. The [B.R. Cohn wedding information](https://brcohn.com/weddings) is the appropriate starting point for current venue details.
747
748## Wine Club Memberships and the Online Shop
749
750A wine club makes sense for guests who want an ongoing relationship with the estate rather than a single souvenir bottle. The basic decision is whether the member values predictable shipments, access to limited wines, event notices, or the convenience of collecting bottles at the property.
751
752B.R. Cohn's club program centers on estate wines such as **old-vine Zinfandel, Cabernet Sauvignon, and Olive Hill Estate Cabernet**, with member communications and allocations shaped by the selected tier. Current shipment schedules, bottle counts, and release terms belong on the membership page, not in a generic guide, so prospective members should review the [B.R. Cohn wine club details](https://brcohn.com/wine-club) before enrolling.
753
754### Wine Club Tier Comparison
755
756| Tier Name | Shipments Per Year | Bottles Per Shipment | Key Member Benefits |
757|---|---|---|---|
758| Entry club tier | Confirm current schedule | Confirm current quantity | Access to member releases and estate updates |
759| Reserve club tier | Confirm current schedule | Confirm current quantity | Reserve allocations and deeper portfolio access |
760| Collector-focused tier | Confirm current schedule | Confirm current quantity | Limited-production wines, library releases, and select large formats |
761
762The value isn't only the bottle count. A member who enjoys Zinfandel may want consistent access to heritage-focused releases, while a Cabernet collector may care more about reserve allocations and library availability. Concert pre-sales can also matter to members who connect with the winery through music events.
763
764The online shop adds a practical layer for gifts. Estate olive oil can complement wine in a corporate package, and gift shipping can simplify delivery when the recipient lives outside the visitor's home region. Shipping rules vary by destination, and some states restrict direct alcohol shipments, so shoppers should verify eligibility before placing an order.
765
766Pickup can be convenient for local members, but shipment is more practical for visitors who won't return soon. Cancellation, address changes, seasonal releases, and substitution policies should be read before the first charge or shipment. Those details determine whether the club fits a household that wants regular wine or a collector who prefers limited, less frequent purchases.
767
768## Planning Your Visit to B.R. Cohn
769
770A smooth visit begins before the drive into Glen Ellen. The estate is open daily according to neutral visitor information, but guests should still confirm current tasting-room hours and appointment requirements directly before setting out. Weekend reservations deserve particular attention because outdoor hospitality, private events, and concert activity can affect the pace of the property.
771
772![A checklist for planning a visit to B.R. Cohn winery in Sonoma, featuring travel and reservation tips.](https://cdnimg.co/b09ef9e7-56b8-42ac-8446-839cd664add4/00e5e407-c234-412f-9926-36ee9728ead2/doobie-brothers-winery-sonoma-winery-planning.jpg)
773
774### The pre-booking checklist
775
776- **Confirm the hours:** Check the current schedule, appointment windows, holiday changes, and any event-related closures.
777- **Reserve the experience:** Book ahead for weekends, private tastings, and groups that need several seats together.
778- **Clarify party rules:** Ask about group-size thresholds, age requirements, children, dogs on outdoor areas, and accessibility.
779- **Plan transportation:** Designate a driver or arrange a tour, shuttle, or other reliable ride into Sonoma Valley. Rural rideshare availability can be inconsistent.
780- **Allow time for the grounds:** The valley-floor layout includes vineyards, an olive grove, outdoor hospitality areas, and separate event spaces. A rushed tasting can miss the estate's strongest details.
781
782Weekdays generally offer a quieter rhythm, while Saturdays may feel more active because of celebrations and scheduled events. Visitors with mobility needs should ask about the route between parking, tasting areas, restrooms, and outdoor seating. Accessibility can depend on the specific appointment and event setup.
783
784### Small details that improve the day
785
786Guests often focus on wine and overlook the estate-pressed **extra virgin olive oil**. It provides a useful counterpoint to the red-wine tasting and makes a practical gift for visitors who don't want to ship alcohol. Small-lot library wines and picnic-friendly lawn corners may also be worth asking about, subject to current availability and property rules.
787
788For food, a tasting pairs naturally with a Sonoma Valley lunch in nearby Kenwood or Glen Ellen. Eating between appointments helps keep the day comfortable, particularly when a group has scheduled more than one stop. First-time visitors can start with the core red selection, then add olive oil or a library pour if the group has enough time.
789
790## Frequently Asked Questions About the Estate
791
792### Where is B.R. Cohn Winery?
793
794B.R. Cohn is in Glen Ellen, within Sonoma Valley. That places it in the valley's wine-country corridor rather than in the center of Sonoma Plaza, so visitors should plan the drive and avoid assuming that every tasting room is walkable from a town base.
795
796### Are walk-in tastings accepted?
797
798Availability depends on the day, group size, and selected experience. A reservation is the safer choice for weekends, private appointments, and parties that need adjacent seating. Guests should check the current visit information before driving over.
799
800### How far ahead should couples book a Saturday wedding?
801
802The estate's public materials don't provide a verified universal lead time, so couples shouldn't rely on a fixed **12-to-18-month** rule. Saturday demand can be strong, but the correct booking window depends on season, guest count, event format, and the venue calendar. An inquiry with several possible dates gives the events team more room to respond usefully.
803
804### Which tasting suits first-time visitors?
805
806The Signature Garden Tasting is the straightforward starting point for guests who want the estate's general wine identity and an outdoor setting. Returning club members or collectors may prefer the Reserve Library Tasting, while a couple seeking a more concentrated red-wine appointment can ask about the private Cabernet Cave experience.
807
808### Do The Doobie Brothers perform at the winery?
809
810The band has a documented connection to the estate and appeared repeatedly at the annual charity concert series. That doesn't mean every visitor will see the band perform. Concert lineups change, and guests should check the official event calendar for current announcements.
811
812### How much do concert tickets cost?
813
814Ticket pricing changes by event and isn't stated in the verified information available for this guide. Visitors should use the official event announcement rather than rely on an old listing or an assumed price.
815
816### Is the estate family-friendly?
817
818Wine tastings are adult hospitality experiences, and age policies apply. Families should confirm whether children are permitted in the specific outdoor or event area, then choose a setting that works for the group.
819
820### Can guests bring outside food?
821
822Food rules can differ between tasting appointments, lawn areas, and ticketed events. Guests should ask before packing a picnic, especially when the property is hosting a private function or concert.
823
824### How does B.R. Cohn differ from other Sonoma Valley estates?
825
826Its strongest distinction is the combination of **rock history, old-vine Zinfandel, Cabernet Sauvignon, and olive oil**. The visit is built around a working valley-floor estate and music-rooted hospitality, rather than relying only on cave architecture or viewpoints.
827
828### What about shipping, changes, and gifts?
829
830Wine shipping depends on the destination's alcohol laws and the shop's current delivery policy. Members should review cancellation and address-change terms before a shipment processes, while gift buyers can consider estate wine, olive oil, or a customized corporate package through the online shop.
831
832---
833
834B.R. Cohn Winery offers a rare Sonoma Valley visit where old-vine red wines, olive oil, vineyard scenery, and The Doobie Brothers' legacy share one working estate. Plan the tasting or event around the group's interests, then reserve a visit through [B.R. Cohn Winery](https://brcohn.com) and experience the music-rooted property in person.
835`,O2=`---
836title: "Glen Ellen Wineries: A Guide to Sonoma's Hidden Gem"
837slug: "glen-ellen-wineries"
838date: "2026-07-02"
839category: "Wine & Vineyard"
840excerpt: "Discover the best Glen Ellen wineries. Our guide covers top tasting rooms, wedding venues like B.R. Cohn, and the unique music scene of this Sonoma Valley gem."
841featuredImage: "https://cdnimg.co/b09ef9e7-56b8-42ac-8446-839cd664add4/cf1aa46c-c493-4a4d-9e3c-fd31cb759d64/glen-ellen-wineries-wine-vineyard.jpg"
842focusKeyword: "glen ellen wineries"
843---
844
845A lot of wine country trips start the same way. Someone opens a dozen tabs, sees tasting menus blur together, and realizes that choosing where to go feels harder than the trip itself.
846
847That's where Glen Ellen helps. This pocket of Sonoma Valley feels calmer, more grounded, and far less performative than the usual wine-country circuit. The roads are quieter, the pace is slower, and the experience leans toward estate character instead of polished sameness. For visitors who want old-vine reds, scenic grounds, and a winery day that still feels personal, Glen Ellen is the right call.
848
849## Your Guide to Visiting Glen Ellen Wineries
850
851A common Glen Ellen day starts with uncertainty and ends with relief. Visitors often arrive expecting to “figure it out on the fly,” then quickly realize that the best estates work better with a plan. Tasting times matter. Event calendars matter. The difference between a forgettable stop and a memorable one usually comes down to choosing wineries with a distinct identity.
852
853Glen Ellen stands out because it doesn't ask visitors to rush. It sits in a beautiful Sonoma Valley setting and gives people room to settle in, taste slowly, and notice the details that get lost in busier tasting corridors. Old-vine Zinfandel and Cabernet Sauvignon feel at home here, and the visit can be shaped around what matters most. Music, food, estate history, a wedding site visit, or a relaxed tasting with no pressure.
854
855A smart approach is to treat Glen Ellen as a curated day, not a random crawl.
856
857| Glen Ellen Winery Comparison | The Vibe | Must-Try Wine | Event Space (Saturday Availability) | Best For |
858|---|---|---|---|---|
859| B.R. Cohn Winery | Rock-and-roll estate, historic and social | Old-vine Zinfandel, estate Cabernet Sauvignon | Strong event focus, meaningful Saturday availability publicly noted | Music lovers, groups, weddings |
860| Boutique estate tasting rooms in Glen Ellen | Quiet, intimate, low-key | Estate reds | Varies by property, often more limited | Couples, slower tastings |
861| Garden-focused winery estates | Scenic, relaxed, outdoor-friendly | Seasonal estate selections | Good for private gatherings, details vary | Picnics, afternoon visits |
862| Historic vineyard properties | Rustic, heritage-driven | Vineyard-designated wines | Better for smaller experiences than large events | Wine history fans |
863
864> **Practical rule:** Book the anchor stop first, then build lunch and the rest of the day around it.
865
866Visitors who want a stronger event or live-programming angle should check the [estate events calendar at B.R. Cohn](https://brcohn.com/events) before choosing a date. That's often the easiest way to turn a standard tasting trip into a weekend with some personality.
867
868## What Makes Glen Ellen Special
869
870Glen Ellen works because it still feels like a place, not a production. The scenery does a lot of the work. Vineyards spread out between Sonoma Mountain and the Mayacamas, and the rhythm of the day feels slower from the moment a car turns off the main route and into the valley.
871
872![A scenic Sonoma Valley winery estate in Glen Ellen, a quiet gravel road leading toward a rustic stone winery building, r](https://cdnimg.co/b09ef9e7-56b8-42ac-8446-839cd664add4/rewrite-images/8da953ee-5dc4-4819-a7f6-85eb968e5298.jpeg)
873
874### The mood is more relaxed than most visitors expect
875
876The biggest advantage of Glen Ellen isn't flash. It's ease. The tasting experience here tends to feel less staged and more rooted in the estate itself. Visitors usually notice that quickly. Staff conversations are more about vineyards, the day's pace, and what fits the guest, not about pushing a checklist of upgrades.
877
878That relaxed feel matters because Glen Ellen supports several different kinds of visitors well:
879
880- **Wine-focused travelers** who want old-vine reds and estate-driven tasting rooms.
881- **Weekend couples** who care as much about atmosphere as the pour.
882- **Event planners** who need a venue that feels scenic without becoming fussy.
883- **Music-minded visitors** who want something more distinctive than another standard vineyard stop.
884
885### The music-and-wine angle is real
886
887One of the most overlooked parts of Glen Ellen is its potential as a music-and-wine destination. A [2025 Sonoma Music Festival survey noted that 42% of wine tourists seek wineries with live music or rock-history ties, while only 12% of Glen Ellen winery webpages mention music programming](https://laurelglen.com). That gap matters.
888
889Most winery guides still sort places by varietal or views. That misses what many visitors want, which is a memorable story attached to the tasting. Music gives a winery that story. It changes the energy of the visit from “another stop” into something guests talk about after the trip.
890
891> Glen Ellen is at its best when the tasting feels connected to culture, not separated from it.
892
893### The wines fit the place
894
895Glen Ellen also benefits from a style of wine that makes sense in the valley. Old-vine Zinfandel and Cabernet Sauvignon aren't accidental stars here. They suit the natural setting, the history, and the overall mood of the region. The wines feel structured but not stiff, expressive but still approachable to visitors who don't need a sommelier lecture to enjoy a glass.
896
897That combination is why Glen Ellen keeps earning loyalty. It doesn't try to overwhelm. It gives visitors room to enjoy estate wines, rural scenery, and a more personal Sonoma Valley day.
898
899## The Standout Star B.R. Cohn Winery
900
901Saturday afternoon in Glen Ellen can go two ways. You end up at a pretty tasting room that fades from memory by dinner, or you pick a place with real personality, enough space to gather people comfortably, and a setting that still feels special once the first glass is gone. B.R. Cohn is the place I recommend when you want the second experience.
902
903![A refined Sonoma Valley winery entrance in Glen Ellen, rustic stone building, wine barrels near the entry, warm afternoo](https://cdnimg.co/b09ef9e7-56b8-42ac-8446-839cd664add4/rewrite-images/a6aff6e9-baef-45a0-87a5-96cc8bbaf892.jpeg)
904
905Bruce Cohn founded the winery in 1984, and that music-world history still shapes the mood on site. You can feel it in the way the estate carries itself. The property is polished without becoming stiff, scenic without feeling precious, and social without turning chaotic. That combination is rare in Sonoma Valley.
906
907### Why B.R. Cohn stands out
908
909Plenty of wineries have views. Fewer have an identity that helps you plan an actual day. B.R. Cohn works well because it gives visitors more than one reason to stay awhile. You get estate wines, olive oil, room to spread out, and a genuine rock-and-roll thread running through the visit.
910
911It is a smart pick for travelers who want a tasting with some story behind it. It also works for groups, couples scouting venues, and anyone trying to avoid the cramped or overly formal feel that can derail a celebration.
912
913The tasting room is open daily, which makes logistics much easier than appointment-heavy properties. If you are mapping out a weekend, use the [B.R. Cohn estate website](https://brcohn.com/) to check current tasting options, hours, and event inquiry details before you lock in your route.
914
915### The wines give the visit substance
916
917The best part of B.R. Cohn is that the setting is not doing all the work. The wines hold up. Old-vine Zinfandel is the bottle to prioritize if you want the clearest sense of the estate's personality. Cabernet Sauvignon matters here too, especially if your group prefers richer, more structured Sonoma reds.
918
919The olive oil program adds range to the tasting in a way guests remember. That matters for mixed groups. One person may be focused on vineyard history, another may just want a relaxed afternoon with a good pour and something extra to talk about. This estate handles that mix better than many wineries in the area.
920
921>
921 **Local advice:** If you are choosing one winery for a group with different tastes, book the one that gives people more than one point of entry. B.R. Cohn does that better than almost anywhere nearby.
922
923### A strong choice for weddings and events
924
925B.R. Cohn proves especially practical, serving as more than just a tasting stop. It is one of the clearer event candidates in Glen Ellen if you want scenery, a known name, and grounds that feel built for gathering people.
926
927For wedding planning, ask about Saturday availability early. Prime Saturdays go first, and they go first for a reason. The estate has the size and atmosphere couples want, but it still feels personal enough for a celebration instead of corporate. That balance is hard to find.
928
929It is also one of the few places in this part of Sonoma Valley where the music-and-wine connection feels natural for an event. If you want a wedding weekend, rehearsal gathering, or private celebration that feels more lively than a standard vineyard backdrop, B.R. Cohn makes sense. The rock-and-roll history gives the venue character before you add a single flower or table setting.
930
931If your goal is a memorable Glen Ellen stop, or a venue that guests will still talk about after the weekend, put B.R. Cohn near the top of your list.
932
933## Top Glen Ellen Wineries at a Glance
934
935You have one afternoon in Glen Ellen, one driver, and a group that cannot agree on what makes a winery stop fun. Use that reality to choose well. The right pick is less about chasing a generic "top" winery and more about matching the estate to the kind of day you want.
936
937In Glen Ellen, mood drives the schedule. Some properties are built for a quiet tasting and an early dinner. Others work better for birthdays, wedding weekends, or a group that wants a setting with personality. B.R. Cohn stands out because the music history changes the feel of the visit. It does not feel like a copy-and-paste wine country stop.
938
939### Glen Ellen Winery Comparison
940
941| Winery | The Vibe | Must-Try Wine | Event Space (Saturday Availability) | Best For |
942|---|---|---|---|---|
943| B.R. Cohn Winery | Music-rooted estate, social, scenic | Old-vine Zinfandel and Olive Hill Cabernet style wines | Established event venue. Ask about Saturdays early because prime dates move fast | Weddings, group outings, music lovers |
944| Small heritage winery | Rustic and quiet | Vineyard-designated red wine | Better for intimate gatherings than large events | Slow tastings, couples |
945| Hill-view estate | Open-air and scenic | Cabernet Sauvignon | Suitable for private events. Details depend on date and format | Sunset tasting days |
946| Garden-centered tasting property | Relaxed and outdoor-friendly | Estate whites or softer reds | Better for daytime celebrations than full-scale evening events | Picnics, casual visitors |
947
948### How to use this table
949
950Start with the group's energy level.
951
952Choose B.R. Cohn if you want a winery that gives people something to talk about beyond the glass. The rock-and-roll connection adds real character, and that matters for celebrations. It also makes practical sense for hosts planning a wedding weekend, rehearsal event, or larger outing where atmosphere can carry the day.
953
954Choose a smaller, quieter property if the goal is a slower tasting with minimal logistics and less social buzz.
955
956For event planning, Saturday availability should shape your shortlist from the start. Popular dates go first, especially at estates that can handle both scenery and guest flow. If you know one winery is your front-runner, ask about calendar options before you fine-tune flowers, menus, or transportation. If you expect repeat visits after the trip, the [B.R. Cohn wine club](https://brcohn.com/wine-club) is worth a look for guests who prefer returning to one estate they already know they like.
957
958## More Curated Winery Profiles for Every Visitor
959
960The easiest mistake in Glen Ellen is trying to do too much. A better strategy is matching the winery to the person.
961
962### For the visitor who wants one complete estate experience
963
964Choose a property that offers more than a quick pour. The strongest estate visits combine wine, setting, and something extra that keeps the experience from blending into the next tasting. A winery with olive oil, grounds worth walking, and a cultural hook usually gives the day more shape.
965
966One practical option for visitors who want ongoing access after the trip is the [B.R. Cohn wine club](https://brcohn.com/wine-club), which is useful for guests who tend to revisit a favorite estate instead of chasing endless new tasting rooms.
967
968### For the die-hard red wine fan
969
970Look for Glen Ellen wineries that lean into old-vine character and site expression. These are the places where Zinfandel and Cabernet Sauvignon feel least generic. The payoff is usually a tasting that feels rooted in the valley rather than built around broad crowd-pleasers.
971
972A red-focused visitor should keep the day simple:
973
9741. **Start with a structured tasting** rather than a picnic stop.
9752. **Ask for vineyard context** instead of only tasting notes.
9763. **Leave room for one second winery**, not four. Palate fatigue is real.
977
978> A two-stop Glen Ellen day usually beats a five-stop day. Visitors remember details when they aren't rushing.
979
980### For couples who care about atmosphere
981
982Couples tend to enjoy Glen Ellen most when they choose wineries with space, views, and a pace that allows conversation. A smaller estate can work well for intimacy. A larger property w
982orks better if the couple also wants to scout event potential, taste olive oil, or stay longer without feeling cramped.
983
984Good indicators of a couple-friendly stop include:
985
986- **Comfortable outdoor seating** that doesn't feel packed
987- **A distinct estate identity** rather than a generic bar setup
988- **Flexible timing** for a late morning or mid-afternoon visit
989
990### For visitors building a mixed group itinerary
991
992Mixed groups are tricky because one person wants serious wine, another wants scenery, and someone else mainly wants a memorable afternoon. Glen Ellen handles that well when the itinerary includes one quiet tasting and one more animated estate.
993
994The key is sequencing. Put the low-key tasting first, then end at the winery with stronger atmosphere and more room to linger. That rhythm keeps the day from peaking too early.
995
996### For travelers who want the music connection
997
998This category is still underserved in most wine-country guides. That's a mistake. Visitors increasingly care about the story around the bottle. In Glen Ellen, the music connection adds personality that many tasting routes lack.
999
1000A good music-oriented winery stop should feel authentic, not themed for effect. Visitors should look for estates where the programming and backstory belong naturally to the property. That kind of place gives the trip a memory people repeat when they get home.
1001
1002## Planning Your Glen Ellen Wedding or Event
1003
1004You tour a beautiful winery on Friday afternoon, fall for the vineyard views, then learn the date you want is already gone. That is the mistake to avoid in Glen Ellen. Start with calendar reality, then judge the setting, guest flow, and overall feel.
1005
1006![A visual guide for planning events in Glen Ellen, Sonoma Valley, outlining essential checklist categories for weddings.](https://cdnimg.co/b09ef9e7-56b8-42ac-8446-839cd664add4/7ec6ecc0-8919-42ca-a710-8abb2fb899ec/glen-ellen-wineries-event-checklist.jpg)
1007
1008### Saturday availability is the real filter
1009
1010Saturday books first. Couples know it, planners know it, and guests strongly prefer it for wine-country events.
1011
1012If Saturday is a firm requirement, ask about open dates before you spend time comparing ceremony backdrops or reception photos. That one question will save you hours. It also narrows the field fast, which is useful in Glen Ellen, where the right property can feel both scenic and manageable for a full weekend.
1013
1014B.R. Cohn stands out here because it is not just a pretty estate. It has the kind of event identity people remember. The rock-and-roll history gives the property more personality than the usual vineyard venue, and that matters for weddings, rehearsal dinners, and company events that need more than a generic wine-country look.
1015
1016### What to check before you book
1017
1018A strong venue has to work behind the scenes, not just in pictures. Ask direct questions.
1019
1020- **Date options:** Get clear answers on Saturday availability, seasonal blackout dates, and how far ahead prime weekends book.
1021- **Guest flow:** Ask where guests gather before the ceremony, how they move to dinner, and whether the layout feels easy for older relatives and large groups.
1022- **Vendor access:** Confirm load-in routes, setup windows, parking, and breakdown rules. These details affect cost and stress.
1023- **Weather backup:** Outdoor events are part of the appeal here, but shade and contingency plans matter just as much as views.
1024- **Estate character:** Pick a winery that feels like itself. In Glen Ellen, the strongest events are tied to the property's story, not dropped into a vineyard with standard rentals.
1025
1026For corporate groups, the same advice applies. A winery that already hosts public tastings and organized events usually handles timing, service, and crowd movement better than a property built only for quiet appointments.
1027
1028### Why Glen Ellen works so well
1029
1030Glen Ellen hits a rare sweet spot. It feels tucked away, but it is still practical for a weekend with out-of-town guests. That makes it a smart choice for a ceremony, welcome party, next-day brunch, or a company gathering that wants Sonoma character without the heavier traffic and scene you get elsewhere.
1031
1032The music-and-wine angle is the detail many guides miss. At B.R. Cohn, that history is part of the experience, not decoration. If you want an event that feels festive, local, and a little more memorable than the standard vineyard script, that is the kind of estate to prioritize.
1033
1034Couples and planners who want current venue details, event information, and wedding options should start with the [B.R. Cohn wedding venue page](https://brcohn.com/weddings).
1035
1036## A Sample Itinerary and Booking Your Trip
1037
1038Saturday in Glen Ellen goes best when the day has one clear centerpiece and enough breathing room around it. Start outside, settle into one winery that feels like Glen Ellen, then leave space for a long lunch, a second stop only if the group still has energy, and an easy dinner. That formula also works for wedding weekends and private event scouting, especially if you need to judge timing, traffic, and how guests will move through the day.
1039
1040![An informative infographic detailing a curated sample itinerary for a perfect day trip in Glen Ellen.](https://cdnimg.co/b09ef9e7-56b8-42ac-8446-839cd664add4/751dcd24-ff8c-4b9f-a572-28b18e7371e4/glen-ellen-wineries-itinerary-guide.jpg)
1041
1042### A simple day that works
1043
1044Start the morning with a walk or a relaxed town stroll. It wakes everyone up, gives out-of-town guests a feel for the area, and keeps the first tasting from landing too early.
1045
1046Then build the day around one anchor reservation. B.R. Cohn is a smart pick because it gives you more than a standard tasting. You get estate wines, olive oil, and a property with real music history, which matters if you want the day to feel specific instead of interchangeable. Late morning or early afternoon is usually the easiest slot to build around.
1047
1048A practical itinerary looks like this:
1049
10501. **Morning:** Short outdoor time or a stroll through town  
10512. **Late morning to early afternoon:** Estate tasting at your anchor winery  
10523. **Lunch:** Stay close and keep it relaxed  
10534. **Afternoon:** One scenic stop, event-site check, shopping, or a light second tasting  
10545. **Evening:** Dinner nearby, without crisscrossing the valley
1055
1056If you are planning a wedding or private event, use that afternoon window well. Walk the property again, note shade, parking flow, and guest access, and ask yourself a simple question: would this still feel easy on a busy Saturday?
1057
1058### Booking advice that saves headaches
1059
1060Reserve the main tasting first. Everything else should fit around that.
1061
1062Weekend timing gets tight fast in Glen Ellen, especially when live music, seasonal events, or wedding traffic are in play. The best move is to keep the schedule simple and protect your middle of the day.
1063
1064A few rules will save you trouble:
1065
1066- **Book one priority stop early.** If B.R. Cohn is the main event, lock that in before lunch plans or dinner.
1067- **Stop at two wineries max.** Three sounds ambitious and usually turns into a rushed, forgettable day.
1068- **Leave real drive time.** Back roads are part of the charm, but they can slow a group down.
1069- **Check Saturday logistics.** If you are scouting for a wedding or private event, ask about current Saturday availability, event timing, and how public tastings overlap with private functions.
1070- **Match the winery to the group.** Music fans, celebration groups, and couples planning a festive weekend usually connect with B.R. Cohn faster than with a quieter appointment-only stop.
1071
1072If you are ready to set the day, use the [B.R. Cohn tasting and visit page](https://brcohn.com/visit) before your preferred date fills.
1073`,B2=`---
1074title: "8 Music Themed Wedding Ideas for a Rocking Day"
1075slug: "music-themed-wedding-ideas"
1076date: "2026-08-18"
1077category: "Events & Weddings"
1078excerpt: "Explore 8 music themed wedding ideas with live cues, vinyl d\\u00e9cor, wine pairings, logistics, and B.R. Cohn Winery inspiration."
1079featuredImage: "https://cdnimg.co/b09ef9e7-56b8-42ac-8446-839cd664add4/12b596e5-4991-4560-a266-eed57f8ba93c/music-themed-wedding-ideas-wine-vineyard.jpg"
1080focusKeyword: "music themed wedding ideas"
1081---
1082
1083A couple arrives at a music-centered wedding expecting a great playlist. Instead, every cue feels connected. The ceremony begins with an acoustic arrangement that echoes through the estate, cocktails unfold beside a listening station, the reception set builds energy at the right pace, lighting shifts with the band, and wine service arrives during a natural musical pause.
1084
1085That cohesion takes more than choosing favorite songs. Couples need to decide between live and recorded sound, coordinate musicians with planners and caterers, protect equipment from weather, confirm power and load-in access, shape the tasting experience, and reserve sought-after Saturday vendors early. Contemporary wedding-music planning reflects that complexity. More than **40% of couples use the word “vibe”** when describing wedding music, **more than 1 in 3 provide a do-not-play list**, and **over half ask for help blending genres** according to [industry research on wedding music preferences](https://www.womangettingmarried.com/fun-facts-history-wedding-music/).
1086
1087B.R. Cohn Winery offers a particularly relevant Sonoma setting. Established in 1984, the estate combines wine, music culture, and a rock-and-roll legacy associated with Bruce Cohn, longtime manager of The Doobie Brothers. The eight music themed wedding ideas below can stay subtle, with a few signature details, or expand into a full-day production spanning ceremony cues, wine tastings, lighting, entertainment, and the late-night set.
1088
1089## 1. Live Band Reception with Vineyard Acoustics
1090
1091A live band changes the reception from a fixed sequence of songs into a responsive performance. Musicians can extend a groove when guests are dancing, soften the room during dinner, or shift tempo when the dance floor needs encouragement. At an estate venue, the band also becomes part of the overall atmosphere, especially when the stage is positioned to use the vineyard and valley setting without overwhelming it.
1092
1093The strongest version begins before the first dance. An acoustic guitar and string duo can handle the ceremony, a jazz ensemble can accompany cocktails in the tasting room, and a full band can take over for dinner and dancing. A classic-rock tribute set can also acknowledge B.R. Cohn's connection to Bruce Cohn and The Doobie Brothers without turning the entire wedding into a costume performance.
1094
1095Couples comparing formats should review this [dining event entertainment guide](https://modernlyfe.com/blogs/articles/music-and-entertainment) before choosing the lineup. A DJ offers precise song control and consistent coverage during breaks. A band offers physical presence, improvisation, and a sense of occasion, but it needs more space, production support, breaks, and careful sound management.
1096
1097> **Practical rule:** The band should be booked as part of the timeline, not added after the timeline is finished.
1098
1099A survey of wedding-music preferences found that **8 out of 10 couples specify the exact version or timing of ceremony songs**, which makes a detailed cue sheet essential for a music-led celebration. Couples should book in-demand Sonoma ensembles **6 to 12 months ahead**, request an afternoon soundcheck, and provide both a must-play list and a do-not-play list. Breaks should include a prepared playlist or brief DJ handoff so the energy never drops unexpectedly.
1100
1101![A comparison infographic between hiring a live band and a DJ for a vineyard wedding reception.](https://cdnimg.co/b09ef9e7-56b8-42ac-8446-839cd664add4/72776255-011f-4f3c-93c7-dec5e7b306f2/music-themed-wedding-ideas-reception-comparison.jpg)
1102
1103Couples can also use B.R. Cohn's [wineries with live music near me guide](https://brcohn.com/blog/wineries-with-live-music-near-me) as a starting point for thinking about how live performance and wine-country atmosphere can work together.
1104
1105## 2. Vinyl Record Décor and Listening Stations
1106
1107Vinyl works best when it does more than sit on a table as a nostalgic prop. Records can identify dinner tables, display the couple's shared musical history, guide guests through a listening experience, and become keepsakes after the wedding. One wedding feature used re
1107cords named after love songs as table identifiers, surrounded by white flowers and vintage books, showing how the format can support both seating and styling through [this vinyl wedding feature](https://loveincmag.com/33681-2/).
1108
1109At B.R. Cohn, the analog format suits the estate's crafted identity. A listening lounge in the tasting room could feature a turntable and a rotating selection of albums from both partners' collections. Guests might listen while tasting estate Zinfandel or Cabernet Sauvignon, creating a quieter counterpoint to the reception's later volume.
1110
1111### Make the records functional
1112
1113A curated sequence of three or four albums can act as a small wedding soundtrack. Album sleeves can become menu cards or signage, while records can serve as place card holders, chargers, cake stands, or a guest book surface when paired with a suitable pen. Couples can frame album artwork tied to relationship milestones, such as the record played on a first road trip or at a meaningful concert.
1114
1115Outdoor displays need protection. Acrylic covers, a tented listening area, and stable display stands can guard against wind, dust, spills, and direct sun. Turntables should stay in a controlled indoor or covered space, with an assigned vinyl DJ or audiophile managing needle changes, volume, and the album rotation.
1116
1117The concept fails when every surface contains random records with no story. A smaller collection, sourced from Sonoma Valley thrift stores or record shops, will feel more intentional than a large pile of mismatched albums. The wine pairing should also be timed carefully. A listening station belongs beside a natural pause in guest movement, not in the middle of the bar queue.
1118
1119## 3. Concert-Inspired Stage Design and Lighting
1120
1121Concert production can give a wedding the atmosphere of a cultural event, but only when the technical plan respects the venue. Raised platforms, controlled spotlights, projection, sound reinforcement, and visual content can transform an evening reception. They can also block vineyard views, consume power, complicate load-in, and make an intimate ceremony feel oversized.
1122
1123B.R. Cohn's rock-and-roll heritage provides a meaningful reason to use theatrical production. A couple might enter after a live-band introduction, use a Doobie Brothers tribute set as a late-reception feature, or project family photographs and concert memories during dinner. Lighting can trace the lines of the vines, reveal estate buildings after sunset, and frame the valley rather than compete with it.
1124
1125A site visit should happen before any stage design is approved. The production company needs to assess power availability, cable paths, truck access, stage placement, guest sightlines, and the relationship between the ceremony location and reception area. The venue's [B.R. Cohn events information](https://brcohn.com/events) can help couples begin that conversation with the estate team.
1126
1127> A beautiful lighting plan still fails if guests can't hear the vows, servers can't move safely, or the band can't load in without crossing the ceremony path.
1128
1129### Keep spectacle in the right moment
1130
1131The ceremony should usually remain more restrained. A small platform, warm uplighting, and carefully reinforced sound can support the vows without turning them into a concert opener. Bigger lighting looks, LED content, and projection effects belong during dinner transitions, dancing, and the final set.
1132
1133A dedicated production manager should coordinate the technical team in real time. The couple should also schedule a dress rehearsal **1 to 2 days before the event**, including lighting cues, speeches, band transitions, and first-dance timing. Backup power, spare cables, redundant playback equipment, and a weather plan are practical necessities for an outdoor estate production. The [dance floor wedding tent guide](https://www.foreverpartyrentals.com/blog/dance-floor-dj-space-wedding-tent) can also inform decisions about stage orientation and tented dance-floor layouts.
1134
1135![A scenic vineyard at sunset with wine glasses, a barrel, fresh grapes, cheese, and a wine bottle.](https://cdnimg.co/b09ef9e7-56b8-42ac-8446-839cd664add4/2f6be20d-d248-4bba-8b01-e7c09a3fcf28/music-themed-wedding-ideas-vineyard-sunset.jpg)
1136
1137## 4. Personalized Playlist Curation with Digital Integration
1138
1139A shared playlist can begin the wedding long before guests reach the estate. Couples can create a Spotify playlist titled 
1139with their names, invite guests to submit requests before the wedding, and divide the final soundtrack by ceremony prelude, cocktails, dinner, dancing, and after-party. The digital layer gives guests a way to participate without handing control of the reception to an open request queue.
1140
1141The best playlists have editorial boundaries. Family members can each contribute songs that represent different generations, while the couple retains final approval. A QR code at each table can lead to the evening playlist, a request form, or a “now playing” display. After the wedding, the archived playlist becomes a simple memento that guests can revisit.
1142
1143### Protect the pacing
1144
1145Digital participation creates a risk. Guests may submit unsuitable songs, repeat the same request, or ask for music that disrupts dinner, speeches, or the first dance. The DJ or bandleader should remain the final decision-maker, and the request window should close at a clearly stated time. A request form with a controlled queue works better than unrestricted access to the DJ's software.
1146
1147Couples should prepare **4 to 5 distinct playlists** for different parts of the day, test Wi-Fi at B.R. Cohn in advance, and carry an offline version on a laptop or phone. A practical request limit is **20 to 30 submissions**, enough to create participation without making the entertainment team manage a second event.
1148
1149At [B.R. Cohn weddings](https://brcohn.com/weddings), the digital soundtrack should support the physical experience. A QR code can introduce an estate wine pairing, identify the next musical moment, or direct guests to the listening lounge. It shouldn't ask guests to stare at their phones while the band, vineyards, and people around them provide the actual event.
1150
1151## 5. Music-Genre Themed Dress Code and Timeline
1152
1153A genre theme becomes more refined when it organizes the entire day, not just the outfits. A 1970s rock celebration might use burgundy and gold, vintage concert-poster references, a tribute band, and a timeline that builds from acoustic ceremony music to a fuller reception set. A jazz-age wedding might use black-tie attire, Art Deco styling, a quartet, and classic cocktails. A country-western celebration could pair line dancing, a country band, picnic fare, and Zinfandel.
1154
1155The genre needs to belong to the couple. A forced theme creates awkward décor and puts guests in a performance they didn't choose. A genuine connection, such as a shared love of punk, reggae, indie rock, jazz, or classic rock, gives vendors a clear creative direction and gives guests a reason to participate.
1156
1157### Give vendors one visual language
1158
1159A short style guide should cover the color palette, typography, floral references, attire language, music boundaries, photography approach, and food cues. The florist, caterer, musicians, photographer, planner, and venue team should work from the same document. Couples can find authentic pieces through thrift stores, estate sales, and online marketplaces, then reserve the budget for one or two focal elements, such as a vintage concert poster, statement backdrop, or period-inspired bar setup.
1160
1161Invitations should communicate the tone without issuing a demanding costume requirement. Wording such as “1970s chic” or “jazz-age formal” gives guests direction while leaving room for comfort and personal style. Guests who don't participate shouldn't feel excluded from the celebration.
1162
1163At B.R. Cohn, a 1970s rock concept can connect naturally to the estate's founding era, Bruce Cohn's Doobie Brothers legacy, and the valley setting. The strongest design will suggest that history through selected details rather than covering the property in memorabilia. Estate wine service, especially old-vine Zinfandel and Cabernet Sauvignon, can ground the theme in place while the music carries the period reference.
1164
1165## 6. Interactive Guest Talent Show or Open Mic Performance
1166
1167A guest performance segment can reveal a side of the wedding party that a standard reception never reaches. A childhood friend may lead a jam during cocktails, a parent may perform a song, or siblings may prepare a short acoustic arrangement for the couple. At a music-forward estate, the format feels intentional when the emcee presents it as part of the evening rather than allowing unplanned interruptions.
1168
1169The safest version is partly structured. The couple identifies performers in advance, confirms each song, and schedules the segment during cocktails or between dinner and dancing. A spontaneous open mic can work for a small group of confident performers, but an unrestricted microphone often creates long introductions, uneven sound, and a late dinner service.
1170
1171### Put a producer behind the fun
1172
1173The emcee needs each performer's name, song title, and a brief personal detail. Introductions should stay within **30 to 60 seconds** so the emotional material doesn't become a sequence of speeches. Performers should rehearse **1 to 2 times** with the sound engineer and band or DJ when the segment involves several instruments or transitions.
1174
1175A thorough input list matters. The sound team may need to handle an acoustic guitar, vocal microphone, keyboard, drums, and an amplified instrument within the same segment. Backup accompaniment tracks or karaoke versions can help nervous singers, while a discreet “timeout” signal lets the emcee shorten a performance that runs long.
1176
1177Couples planning the format can discuss production needs through B.R. Cohn's [private events information](https://brcohn.com/private-events). Audio and video recording should be planned before the wedding, not improvised from a guest's phone. A compilation of guest performances can become a meaningful anniversary gift, provided every performer understands how the recordings will be used.
1178
1179## 7. Signature Cocktail Named After Songs or Albums
1180
1181A song-named cocktail gives guests an easy entry point into the music theme. The drink becomes a conversation starter, a menu design element, and a way to connect a particular musical mood with a particular part of the day. “Ventura Highway” might suit a light West Coast cocktail during cocktails, while “Zinfandel Dreams” could combine B.R. Cohn Zinfandel with bourbon and bitters for a 
1181wine-centered reception option.
1182
1183The reference should be recognizable enough to start a conversation, but the drink still needs to taste good. A name that only the couple understands may feel private rather than welcoming. Color, texture, and flavor can suggest the song without requiring an elaborate interpretation.
1184
1185### Keep the bar service fast
1186
1187The menu should stay at **3 to 4 signature cocktails** so bartenders can maintain speed and ingredient availability. Recipes should be developed with the bartender or mixologist **at least 2 months before the wedding**, followed by a proper tasting. Each drink can appear on a small artwork-style menu listing the artist, release year, and a short tasting note.
1188
1189Mocktail versions matter. Non-drinkers and designated drivers should receive an equally considered option, not a generic soft drink. The bar team should also know the song background and tasting notes, allowing staff to explain the concept without slowing service.
1190
1191Wine should remain part of the same narrative. Estate Zinfandel and Cabernet Sauvignon can be served as primary pours or paired with selected cocktails, connecting the couple's music story to Sonoma Valley. Responsible beverage service and age verification should remain clear at the estate, and every drink concept should be approved by the venue's beverage team before printing.
1192
1193## 8. Documentary-Style Videography Capturing the Music Story
1194
1195A documentary wedding film can preserve the couple's musical history instead of recording only the day's formal sequence. Interviews with parents, siblings, friends, and musicians can explain how the couple met, which concerts shaped their relationship, or why a particular song belongs in the ceremony. Those voices can appear before the processional, beneath reception footage, or between scenes of the band and wine service.
1196
1197The film might open with family members describing each partner's earliest musical influences, then move into ceremony footage and the reception set. Archival materials can deepen the story, including old photographs, concert tickets, childhood voice memos, and shared playlists. A multi-part structure could divide the narrative into “Origins,” “Collision,” and “Harmonies,” with the wedding day forming the final movement.
1198
1199### Plan the edit before the wedding
1200
1201The couple should hire a filmmaker experienced in interviews and narrative editing, then hold a discovery session to define the story arc. A list of **5 to 8 key people** can keep the interview schedule focused. Interviews arranged **1 to 2 weeks before the wedding** give participants time to prepare while keeping the memories current.
1202
1203The filmmaker needs a realistic production schedule. Archival files should be collected early, and the couple should allow **3 to 4 weeks for post-production** rather than expecting a rapid highlight edit. The final format might include a **5-minute trailer**, a full-length family film, and shorter anniversary clips, but those deliverables should be agreed upon before filming.
1204
1205Audio deserves special attention. A beautiful reception image loses its value if vows, toasts, and live vocals are buried beneath crowd noise. Couples can review B.R. Cohn's [winery private events resource](https://brcohn.com/blog/winery-private-events) while discussing how ceremony, reception, wine service, and filming locations will fit together.
1206
1207## 8-Point Music-Themed Wedding Ideas Comparison
1208
1209| Option | Implementation complexity | Resource requirements | Expected outcomes | Ideal use cases | Key advantages |
1210|---|---:|---|---|---|---|
1211| Live Band Reception with Vineyard Acoustics | High, coordination, soundchecks, permits | High budget ($2k–$8k+), stage space, PA, power, crew | Dynamic, high-energy live performance; strong guest engagement | Music-centric couples, estate venues (B.R. Cohn), multi-generational guests | Real-time interaction; prestige; unique, unrepeatable moments; aligns with venue heritage |
1212| Vinyl Record Décor and Listening Stations | Medium, sourcing, protective displays, turntable setup | Moderate: records, turntables, covers, electrical access | Nostalgic, tactile guest experience; photo-worthy lounge moments | Vintage/collector couples, cocktail lounges, tasting-room activations | Visually distinctive; interactive; sustainable/vintage appeal; affordable sourcing options |
1213| Concert-Inspired Stage Design and Lighting | Very high, production design, crew, rehearsals | Very high budget ($3k–$15k+), rigging, lighting, sound engineers, power | Cinematic, large-scale immersive event; professional audio/visual impact | Large guest lists, couples wanting theatrical/music-industry production | High-impact visuals; even audience experience; scalable for major performers |
1214| Personalized Playlist Curation with Digital Integration | Low–Medium, playlist planning and tech testing | Low cost, reliable WiFi, devices, QR codes, optional DJ integration | Highly personalized, evolving soundtrack; guest participation; post-event archive | Digitally native couples, budget-conscious events, hybrid DJ/live setups | Cost-effective; collaborative; flexible; easy to share after the wedding |
1215| Music-Genre Themed Dress Code and Timeline | Medium, theme direction, vendor alignment, communication | Variable: themed decor, attire guidance, curated entertainment | Cohesive, immersive aesthetic and narrative across the event | Couples with a strong era/genre identity, experiential weddings | Unified storytelling; simplifies design choices; high guest participation |
1216| Interactive Guest Talent Show or Open Mic Performance | Medium, scheduling, emcee, rehearsals | Moderate: performance space, sound gear, emcee/tech, rehearsal time | Authentic, emotionally resonant moments; high engagement; quality varies | Weddings with musician friends/family, community-focused events | Showcases guest talent; lowers hired-entertainment need; creates organic content |
1217| Signature Cocktail Named After Songs or Albums | Low, recipe development, naming, menu design | Low–Moderate: ingredients, printed menus, bartender training | Themed sensory extension; conversation starters; social-media friendly | Any couple seeking thematic continuity; beverage-forward receptions | Affordable thematic tie-in; sensory personalization; integrates estate wines |
1218| Documentary-Style Videography Capturing the Music Story | High, interviews, pre-production, extended editing | High cost, experienced documentary filmmaker, archival materials, long post-production | Deep, narrative-driven film; multi-format deliverables; lasting artifact | Media-savvy couples, music-industry connections, those valuing long-form storytelling | Rich storytelling; durable keepsake; cinematic quality and contextual depth |
1219
1220## Build the Setlist, Then Protect the Experience
1221
1222The strongest music themed wedding ideas don't all appear at once. Couples should choose one primary concept, then add two or three supporting details. A live band can anchor the event, while vinyl table names and song-named cocktails add texture. A genre-led celebration can remain elegant with one strong lighting feature and a documentary film. A digital playlist can support a traditional wedding without turning the reception into a technology project.
1223
1224The planning process should begin with a complete journey map. Mark the ceremony prelude, processional cues, recessional, cocktail-hour music, tasting or wine-pairing moment, dinner transitions, speeches, first dance, main set, and late-night music. Each moment needs an owner, a cue, an expected duration, and a backup plan. The bandleader, DJ, planner, venue coordinator, caterer, bar team, photographer, and filmmaker should all work from the same schedule.
1225
1226Music also deserves a realistic budget conversation. A U.S.-focused industry roundup places average wedding spending at approximately **$22,000**, with **4% to 6%** typically reserved for entertainment, while another source places live entertainment or DJ spending at roughly **$1,200 to $2,000** in its market overview, as detailed by [wedding entertainment planning data](https://www.eventsbygm.com/facts-every-couple-should-know/). The exact allocation will vary, but entertainment shouldn't be treated as a last-minute decoration purchase. Couples should also remember that one industry survey reports **81% of guests remember the entertainment most**, a useful reminder that production decisions affect the whole guest experience.
1227
1228### Questions for B.R. Cohn Winery
1229
1230Before signing entertainment contracts, couples should ask the estate team to confirm:
1231
1232- **Saturday availability:** Inquire early, especially if the wedding depends on a full band or specialized production crew.
1233- **Ceremony and reception locations:** Review how guests, musicians, servers, and equipment move between the spaces.
1234- **Sound limits:** Discuss amplified music, vineyard acoustics, nearby residences, event timing, and any venue-specific restrictions.
1235- **Power and load-in:** Confirm outlets, generator requirements, cable routes, parking, equipment access, and setup windows.
1236- **Weather backup:** Establish where the band, vinyl equipment, ceremony, dance floor, and wine service move if outdoor conditions change.
1237- **Tasting logistics:** Decide when guests taste, where the tasting takes place, and how it fits around cocktails, photographs, dinner, and performances.
1238- **Estate wine service:** Ask how old-vine Zinfandel and Cabernet Sauvignon will be presented, poured, and paired with the music-led menu.
1239- **Responsible beverage service:** Confirm age verification, nonalcoholic options, designated-driver accommodations, and service procedures.
1240
1241Noise planning deserves specific attention. One acoustic planning guide describes assessments that may target music at background level plus **5 dB for up to 30 events**, or plus **15 dB for up to 12 events**, before 11PM, with music after 11PM expected to be inaudible inside a bedroom with an open window, as explained in [wedding venue noise guidance](https://www.parkerjonesacoustics.com/insights/articles/managing-noise-from-weddding-venues). Couples shouldn't assume a vineyard setting automatically permits concert-level volume.
1242
1243Music licensing can also depend on location and operating conditions. In the UK, private wedding music at an alcohol on-licensed premises may be exempt between **8AM and 11PM** when attendance is no more than **500 people**, with an additional exemption for unamplified live music under the stated conditions, according to [private wedding music licensing guidance](https://www.thepedaltones.com/post/do-i-need-a-music-license-for-my-wedding-or-party). That guidance isn't a substitute for checking local requirements in Sonoma, but it illustrates why couples should ask the venue about licensing rather than relying on assumptions.
1244
1245B.R. Cohn's connection to Bruce Cohn and The Doobie Brothers gives a rock-and-roll wedding a story that décor alone can't create. The estate's Sonoma Valley setting, tasting-room infrastructure, wine program, and music-focused events can support a celebration in which the soundtrack feels rooted in place. The final test is simple. The wedding should feel like a thoughtfully produced album, with every cue, visual, pour, and performance supporting the couple's story.
1246
1247---
1248
1249B.R. Cohn Winery offers a Sonoma Valley estate setting where music-focused events, live entertainment, tasting experiences, and estate wines can work together in one guest journey. Couples planning a music themed wedding can [visit B.R. Cohn Winery](https://brcohn.com) to explore the property, discuss ceremony and reception logistics, and begin shaping a celebration around its rock-and-roll heritage.
1250`,j2=`---
1251title: "Northern California Wineries Road Trip: Beyond Napa"
1252slug: "northern-california-wineries-road-trip"
1253date: "2026-09-01"
1254category: "Visit & Tastings"
1255excerpt: "Plan your Northern California wineries road trip with a Sonoma-first itinerary, subregion routes, drive times, and a featured Glen Ellen stop at B.R. Cohn."
1256featuredImage: "https://cdnimg.co/b09ef9e7-56b8-42ac-8446-839cd664add4/ad3a9b82-72b1-447c-aea0-9c1c8ee02437/northern-california-wineries-road-trip-wine-tasting.jpg"
1257focusKeyword: "northern california wineries road trip"
1258---
1259
1260Most advice for a **Northern California wineries road trip** starts in Napa, adds a few expensive reservations, and calls the job done. That's the wrong default for travelers who want a relaxed route, flexible tasting stops, and towns where dinner doesn't require another long drive. A Sonoma-first itinerary puts Sonoma Valley, Glen Ellen, the Russian River, Anderson Valley, and the Mendocino coast into one coherent journey, with B.R. Cohn as the music-driven anchor in the middle of Sonoma Valley.
1261
1262The demand behind these routes is substantial. Napa County welcomed about **3.7 million visitors in 2022**, and roughly **79.3% visited 
1262wineries**, often stopping at three or more in one trip, according to the [Napa Valley Vintners economic impact report](https://napavintners.com/downloads/ECONOMIC-IMPACT-REPORT-NVV-2022.pdf). Sonoma County wineries support **5.1 million tourist visits** and about **$113.5 million in annual tourism spending**, as documented in the [Sonoma County visitor-journey report](https://www.sonomacounty.com/wp-content/uploads/2023/10/sct.nttw_.finalhalf.resized_1.pdf). The route deserves better than a rushed checklist.
1263
1264## Why a Sonoma-First Road Trip Beats the Default Napa Plan
1265
1266Napa has the prestige, but prestige doesn't solve traffic, reservation friction, or awkward overnight logistics. The reflexive Napa-first plan often funnels visitors onto Highway 29, where a short distance between tasting rooms can become a tedious midday crawl. It then sends them toward tasting rooms that expect advance reservations and charge premium prices for structured visits. Outside a few concentrated bases, travelers can also find it harder to build a walkable evening.
1267
1268Sonoma gives first-timers a more forgiving route. Sonoma Plaza, Glen Ellen, Kenwood, Healdsburg, Sebastopol, and smaller Russian River communities let travelers pair tasting rooms with restaurants, inns, markets, and compact town centers. The wine quality isn't the deciding factor. Napa and Sonoma both produce serious wines. **The better choice comes down to pacing, driving, and how much of the day travelers want controlled by a booking calendar.**
1269
1270![A comparison chart showing the advantages of a Sonoma-First wine trip over a default Napa plan.](https://cdnimg.co/b09ef9e7-56b8-42ac-8446-839cd664add4/19a8d890-7244-4e74-b673-51e6b4f8416b/northern-california-wineries-road-trip-wine-itinerary.jpg)
1271
1272### The practical advantages of starting in Sonoma
1273
1274A Sonoma-led route also makes it easier to move beyond a single famous valley. Sonoma Valley provides warm inland vineyards and historic towns. The Russian River adds cooler-climate Pinot Noir and Chardonnay country. Carneros connects Sonoma and Napa geographically, while Anderson Valley and Mendocino extend the trip into quieter, more coastal areas.
1275
1276That variety has historical weight. Charles Krug established Napa Valley's first commercial winery in **1861**, while Agoston Haraszthy's introduction of European vines in **1852** helped shape California's modern wine industry, according to [Wine Folly's history of Napa Valley](https://napa.guides.winefolly.com/history/). Carneros gained AVA status in **1983**, followed by the formation of the Carneros Wine Alliance in **1985**, creating a recognized regional framework for the crossover travelers still drive today.
1277
1278For a neutral side-by-side look at geography, atmosphere, and visitor experience, travelers can use this [wine country decision guide](https://www.sonomacountynavigator.com/sonoma-or-napa-valley/sonoma-or-napa-valley-which-is-better/). The route recommendation is simple: **base the trip in Sonoma Valley first, then expand north only after the itinerary has room to breathe**. Glen Ellen, with B.R. Cohn at its center, is the first deliberate stop.
1279
1280Travelers planning their first Sonoma Valley circuit can also use this practical guide to the [best wineries in Sonoma Valley](https://brcohn.com/blog/best-wineries-in-sonoma-valley), then discard any itinerary that schedules more tasting rooms than the group can enjoy.
1281
1282## Planning the Route Before You Turn the Key
1283
1284The route works best when four decisions are settled before arrival: season, vehicle, reservations, and spending. Leave any one of them vague, and the trip becomes a sequence of compromises rather than a road trip.
1285
1286### Pick the season for the experience
1287
1288Late August through October brings harvest activity and the most obvious vineyard energy, but it also brings stronger demand. April and May offer greener hills, quieter tasting rooms, and a less compressed feel. Travelers who value flexibility should favor spring weekdays. Travelers who want harvest atmosphere should reserve the important stops well in advance.
1289
1290### Match the car to the route
1291
1292A standard sedan is sufficient for the core Sonoma Valley, Healdsburg, and Russian River route. An 
1292SUV becomes the sensible choice when the plan includes rougher access roads or coastal detours toward Mendocino. The vehicle should be comfortable for long stretches, but oversized luxury transportation adds little value unless the group has a designated driver or hired service.
1293
1294![An infographic showing four travel tips for planning a wine country road trip in Northern California.](https://cdnimg.co/b09ef9e7-56b8-42ac-8446-839cd664add4/bae95154-1b85-4eff-9d78-44fc2145810a/northern-california-wineries-road-trip-travel-tips.jpg)
1295
1296### Reserve the anchors, leave air around them
1297
1298Flagship tasting rooms should be booked **60 to 90 days ahead**, especially for weekends and harvest season. B.R. Cohn belongs in that anchor category. Book the desired Glen Ellen experience first, then place the surrounding visits around it rather than forcing the winery into a leftover slot.
1299
1300A good day has no more than four tastings, and three is better when the appointments include tours, food, or extended seated flights. Weekend traffic around Glen Ellen can slow the final approach, so the schedule should include a generous buffer before dinner.
1301
1302### Set a usable daily budget
1303
1304A realistic working budget is **$325 to $500 per couple per day, excluding lodging**. That covers tasting fees, meals, small purchases, and local driving without assuming every stop is a premium reserve experience. The figure is a planning range, not a promise. Fee structures vary, and reserve flights can push a day higher.
1305
1306A screenshot-friendly checklist:
1307
1308- **Choose the season:** Spring for quiet rooms, or late summer through October for harvest energy.
1309- **Reserve the vehicle:** Sedan for the inland route, SUV if coastal and rough-road detours matter.
1310- **Book the anchors:** Secure B.R. Cohn and other marquee appointments 60 to 90 days ahead.
1311- **Cap the day:** Schedule three tastings by default, four only when transit is simple.
1312- **Protect dinner:** Finish the last tasting early enough to reach the evening base without rushing.
1313- **Pack the basics:** Layers, sunscreen, water, phone charger, and a picnic blanket.
1314
1315## The Route Day by Day from Sonoma Valley to Mendocino
1316
1317This seven-day loop is intentionally Sonoma-first. It treats the trip as a sequence of regional shifts rather than a parade of tasting rooms.
1318
1319### Day 1, Sonoma Plaza to Glen Ellen
1320
1321Arrive in Sonoma Plaza, settle into the compact downtown, and use the first tasting as an acclimation stop rather than a major appointment. The short drive to Glen Ellen via Highway 12 takes roughly twenty minutes, leaving the afternoon for B.R. Cohn and the evening for a nearby dinner. Travelers who want a backup should keep a downtown Sonoma tasting room available in case the schedule slips.
1322
1323### Day 2, Sonoma Valley and the Russian River edge
1324
1325Stay close to Sonoma Valley in the morning, then make a controlled side trip toward the Russian River rather than trying to cover the entire county. The day should have one primary seated tasting and one flexible stop, with lunch between them. Glen Ellen and Kenwood work well as the return base because the evening drive remains short.
1326
1327### Day 3, Healdsburg and Dry Creek Valley
1328
1329Move north toward Healdsburg and Dry Creek Valley, allowing roughly an hour for the transfer before the first appointment. Dry Creek deserves a slower approach, especially for Cabernet Sauvignon and Zinfandel travelers. For useful background before choosing a flight, review these [Drinkist Cabernet Sauvignon notes](https://drinkist.app/blog/dry-creek-valley-cabernet-sauvignon). A Healdsburg plaza tasting room provides the walk-in backup, while dinner should stay within town.
1330
1331### Day 4, Jenner and Fort Ross
1332
1333Turn west toward the coast on Highway 1. Jenner and Fort Ross are scenic pivots, not efficient tasting circuits, so the primary anchor should be one coastal wine stop surrounded by viewpoints and a substantial lunch. The roads reward daylight and patience. A coastal café or prepared picnic is a smarter dinner plan than trying to return inland after sunset.
1334
1335### Day 5, Mendocino and Anderson Valley
1336
1337Reach Mendocino, then use Anderson Valley as the wine-focused leg of the day. The cooler valley favors sparkling wine and aromatic whites, and smaller producers can be more receptive to same-day visitors than estate properties farther south. Keep the overnight either in Philo or Mendocino, depending on whether food, coast, or morning departure matters most.
1338
1339![An illustrated seven-day road trip itinerary through Northern California wine country featuring tasting rooms and scenic locations.](https://cdnimg.co/b09ef9e7-56b8-42ac-8446-839cd664add4/3bb2399c-1d87-4f6f-b746-e15a280bdcd4/northern-california-wineries-road-trip-wine-itinerary.jpg)
1340
1341### Day 6, Hopland and Ukiah
1342
1343Circle inland through Hopland and Ukiah for a different setting and a less formal tasting rhythm. A farm-to-table lunch or market stop can replace a third appointment, and a walk-in room makes a useful backup when the group wants wine without another scheduled tour.
1344
1345### Day 7, Calistoga and the return south
1346
1347Return south through Calistoga and the Silverado Trail before continuing to SFO or OAK. This is a transit day with one deliberate tasting anchor at most. Travelers who try to recreate a full Napa circuit on the way back will turn a scenic finale into a stressful airport transfer.
1348
1349For the full Glen Ellen stop and surrounding route ideas, the [Glen Ellen wineries guide](https://brcohn.com/blog/glen-ellen-wineries
1349) offers a useful local reference. The itinerary's central rule remains unchanged: **one strong anchor per day beats several forgettable stops**.
1350
1351## The Glen Ellen Stop at B.R. Cohn Winery
1352
1353B.R. Cohn is the right Glen Ellen anchor because it adds a story beyond vineyard scenery. Bruce Cohn, the longtime manager of The Doobie Brothers, founded the winery under the B.R. Cohn name in **1984**, after purchasing the Glen Ellen land in **1974** and spending years selling grapes to other wineries, according to the winery's [background information](https://en.wikipedia.org/wiki/B._R._Cohn_Winery). The music connection isn't decoration. It shapes the tasting-room storytelling, event programming, and identity of the estate.
1354
1355From Sonoma Plaza, the drive via Highway 12 takes roughly twenty minutes. The appointment should be treated as the day's main event, not squeezed between hurried stops. Ask for the **Reserve Cabernet and old-vine Zinfandel vertical flight on the olive-tree shaded patio**, then add the music-themed tasting if the schedule and current programming support it.
1356
1357### What to book and what to ask
1358
1359The practical booking sequence is straightforward:
1360
1361- **Choose the tasting first:** Secure the preferred patio or guided format before filling the rest of the day.
1362- **Request the music angle:** Confirm whether the visit includes the estate's backstage history and current music programming.
1363- **Allow time for the shop:** The retail stop matters for travelers who want bottles, olive oil, or club information without making a separate detour.
1364- **Add estate olive oil:** B.R. Cohn also produces estate olive oil, which belongs alongside the wine flight rather than as an afterthought.
1365
1366Wedding and corporate planners should contact the events team directly with the date, guest count, preferred format, and food-service needs. The **olive grove, barrel room, and lawn** provide distinct options for ceremonies, receptions, and corporate gatherings. The winery's [events information](https://brcohn.com/events) should be checked before any contract or itinerary is finalized.
1367
1368Wine-club inquiries should happen before departure if the group wants release access and member allocations. Travelers shipping wine should confirm current cutoff dates and destination rules. Anyone who can't ship home can use the shop to select available products for later purchase or arrange a practical take-home plan through the tasting-room team. The operational details are all collected at [B.R. Cohn Winery](https://brcohn.com/).
1369
1370## Tasting Fees, Reservations, and the Walk-In Reality
1371
1372Wine-country pricing is uneven, and travelers should stop treating every tasting as interchangeable. In 2025, about **30% of Napa and Sonoma wineries reported lowering tasting fees**, but only **25% of those wineries reported improved tourism**, while **47% said it was too soon to tell**, according to [Wine Headlines' coverage of tasting-fee changes](https://www.wineheadlines.com/napa-and-sonoma-wineries-cut-tasting-fees-as-tourism-slows/). Lower prices haven't automatically made the whole trip inexpensive.
1373
1374Sonoma's average standard tasting fee reportedly fell to **$47**, while reserve tastings rose to **$95**, so travelers need to distinguish an introductory flight from a premium appointment. Smaller production-focused rooms may offer walk-in flights around **$25**, while reserve experiences in Healdsburg and along the Silverado Trail can reach **$95**. Treat those as planning brackets, not universal prices, and verify the current menu before driving.
1375
1376| Subregion | Avg Tasting Fee | Book Ahead (Days) | Walk-In Odds |
1377|---|---:|---:|---|
1378| Sonoma Valley | $25–60 | 0–60 | Good at smaller rooms |
1379| Glen Ellen | $40–85 | 60–90 for preferred appointments | Possible when space remains |
1380| Russian River | $35–75 | 30–60 | Mixed |
1381| Healdsburg and Dry Creek | $50–95 | 60–90 | Limited at marquee rooms |
1382| Anderson Valley | $30–60 | 0–30 | Often workable |
1383| Mendocino | $25–50 | Same day to 30 | Usually strongest |
1384
1385Service fees can appear separately, and gratuity expectations commonly fall around **15% to 20%** where staff provide seated service. Some tasting fees are waived with a same-day wine purchase, but the policy varies by producer, purchase amount, and appointment type. Travelers should ask before ordering rather than assume.
1386
1387> **Reservation rule:** Book the experience that would disappoint the group if missed. Leave the smaller rooms flexible.
1388
1389The regional shift toward downtown tasting rooms and lower-barrier drop-in visits makes a flexible plan more realistic, especially for younger and weekend travelers, while estate experiences remain more reservation-dependent, as discussed in [Forbes' wine-tourism trend coverage](https://www.forbes.com/sites/lizthach/2025/08/14/five-hot-wine-tourism-trends-in-2025/). Put the formal appointments in Sonoma Valley and Healdsburg, then preserve the walk-in opportunities for Russian River, Anderson Valley, and Mendocino.
1390
1391## Where to Sleep and Eat Along the Way
1392
1393Lodging should follow the route, not prestige. A Sonoma Valley base makes the opening easier, Healdsburg suits the Russian River and Dry Creek middle, and Hopland or Philo reduces the punishment of the northern leg.
1394
1395### Sonoma Valley
1396
1397Glen Ellen and Kenwood inns are the most efficient first-night choices. They keep travelers close to B.R. Cohn, Highway 12, and local dining without forcing a late return to Sonoma Plaza. Typical planning ranges for Glen Ellen and Kenwood inns run **$250 to $400 per night**, while harvest weekends fill the fastest, according to the supplied trip-planning brief.
1398
1399For food, choose a casual tavern in Glen Ellen when the group wants minimal driving, a Sonoma Plaza restaurant when it wants a broader menu, or a prepared picnic when the tasting schedule ends early. Travelers should confirm whether outside food is permitted at each winery. B.R. Cohn's current picnic and food-service arrangements should be checked before packing a full spread.
1400
1401### Healdsburg and the Russian River
1402
1403Healdsburg hotels and farmhouse rentals create the strongest evening base for the northern Sonoma portion. Farmhouse rentals commonly sit around **$350 to $600 per night**, according to the supplied planning data, and properties near the plaza tend to disappear first during harvest weekends. Dinner choices range from casual counter-service meals to reservation-driven tasting menus, but the reservation-heavy option only makes sense when the day's final tasting ends early.
1404
1405The Russian River is a better fit for travelers who want a slower day and a comfortable dinner rather than a packed loop. A plaza restaurant, a wood-fired pizza house, or a market-based picnic can all work. The deciding factor is proximity, not reputation.
1406
1407![A travel comparison guide featuring four scenic getaway locations in Northern California with lodging and amenity details.](https://cdnimg.co/b09ef9e7-56b8-42ac-8446-839cd664add4/afdd276d-f295-41c4-a99c-c67e05c7b667/northern-california-wineries-road-trip-travel-comparison.jpg)
1408
1409### Hopland, Philo, and Mendocino
1410
1411Hopland offers an inland reset with eco-lodge options around **$180 to $280 per night**, while Mendocino coastal bed-and-breakfasts commonly fall around **$220 to $380 per night**, based on the supplied route-planning ranges. Philo is the quieter choice for Anderson Valley access. Mendocino wins when ocean views, fresh-catch restaurants, and a walkable town matter more than an early vineyard start.
1412
1413Anderson Valley dining is deliberately informal. Wood-fired pizza, farm food, and simple plates suit a day when the road itself is part of the experience. Travelers should ask every winery about advance picnic arrangements, because “outside food allowed” and “picnic service available” aren't the same thing.
1414
1415The same rule applies throughout the trip: **book the room that minimizes the next morning's drive, not the room with the most famous address**.
1416
1417## Pre-Departure Blueprint for the Full Trip
1418
1419The completed route is manageable when every day has one anchor and one flexible space. Peak-season appointments should be secured **60 to 90 days ahead**, while weekday travel leaves more room for same-day decisions. Highway 101 and Highway 128 deserve extra daylight allowance on weekends, and coastal Highway 1 should never be treated like a fast connector.
1420
1421### The booking brief
1422
1423- **Day 1:** Confirm the B.R. Cohn Glen Ellen tasting slot 60 to 90 days ahead.
1424- **Day 2:** Keep Sonoma Valley appointments spaced and avoid stacking the morning.
1425- **Day 3:** Lock Russian River and Healdsburg visits by mid-morning, then leave the afternoon flexible.
1426- **Day 4:** Treat Jenner and Fort Ross as a scenic coastal pivot, not a tasting marathon.
1427- **Day 5:** Hold Anderson Valley and Mendocino visits for the northern leg.
1428- **Day 6:** Use Hopland and Ukiah for flexible inland stops and lunch.
1429- **Day 7:** Reserve the return route for one final anchor at most, then continue toward SFO or OAK.
1430
1431The budget framework is equally simple. Plan daily tasting spend around **$30 to $85 per person for three tastings**, lodging around **$200 to $600 per night**, meals around **$15 to $50 per person**, and total gas around **$80 to $120**, using the supplied trip-planning ranges. Those figures are starting points, not guarantees, and premium appointments or harvest-weekend rooms can move the total upward.
1432
1433![A travel infographic planning a Northern California winery road trip with timing, packing, budget, and route details.](https://cdnimg.co/b09ef9e7-56b8-42ac-8446-839cd664add4/290c9354-f99d-4abb-b6a7-a13e85583e0c/northern-california-wineries-road-trip-travel-plan.jpg)
1434
1435> **Print-and-go reference:** Sonoma Valley and Glen Ellen first, Russian River and Healdsburg next, Anderson Valley and Mendocino after that, then Hopland and the return through Calistoga.
1436
1437The route's quick-reference version is: **Sonoma Plaza, acclimation tasting and plaza dinner; Glen Ellen, B.R. Cohn and a nearby tavern; Russian River, a cool-climate flight and Healdsburg dinner;
1437 Jenner and Fort Ross, coastal scenery and a simple meal; Anderson Valley, sparkling wine and wood-fired pizza; Mendocino, coast and fresh catch; Hopland, inland lunch and the southbound return**.
1438
1439For the current Glen Ellen tasting menu, event inquiries, and wine-club enrollment, travelers should visit [B.R. Cohn Winery](https://brcohn.com) before finalizing the itinerary. Its Sonoma Valley estate combines old-vine Zinfandel, Cabernet Sauvignon, music-history programming, and direct purchasing, making it a practical anchor for a Sonoma-first road trip.
1440`,M2=`---
1441title: "Saturday Wedding Venue Sonoma: Booking Guide"
1442slug: "saturday-wedding-venue-sonoma"
1443date: "2026-09-17"
1444category: "Events & Weddings"
1445excerpt: "Secure your Saturday wedding venue Sonoma with expert tips on timelines, peak-season budgets, vendor coordination, and B.R. Cohn Winery's musical estate."
1446featuredImage: "https://cdnimg.co/b09ef9e7-56b8-42ac-8446-839cd664add4/3edc37b4-36af-44f0-8ae2-1055c9eb9b3c/saturday-wedding-venue-sonoma-wine-vineyard.jpg"
1447focusKeyword: "saturday wedding venue sonoma"
1448---
1449
1450You're trying to land a **Saturday wedding venue in Sonoma**, and the first hard truth is simple, the good dates go fast, the prettier spaces cost more, and the hidden logistics show up right after the deposit clears. If the plan is a peak-season Saturday in wine country, the smart move is to treat the venue search like a high-stakes scheduling problem, not a casual tour list.
1451
1452## Understanding the Sonoma Saturday Wedding Market
1453
1454Sonoma does not behave like a bargain market, and couples should stop treating it that way. In **2025**, the Sonoma, CA wedding market included **2,765 weddings**, with couples spending an average of **$48,275 per wedding** and total spending reaching **$133,480,375** ([Sonoma market data](https://wedding.report/action/wedding_statistics/view/market/id/06097/idtype/c/location/Sonoma_CA/)). A Saturday inquiry sits inside that premium reality from the start, because the venue is not just selling scenery, it is competing for a share of a destination market that pays for timing, privacy, and ease.
1455
1456![An infographic showing costs, guest counts, and booking timelines for Saturday weddings in Sonoma, California.](https://cdnimg.co/b09ef9e7-56b8-42ac-8446-839cd664add4/3eae27a3-5178-4738-b6d3-7fad7d499a7f/saturday-wedding-venue-sonoma-wedding-statistics.jpg)
1457
1458### What those numbers mean for couples
1459
1460The average guest count in Sonoma was estimated at **118 to 128 guests**. That points to mid-sized celebrations, which need more than a pretty view. A venue has to handle ceremony flow, dinner service, movement between spaces, late arrivals, and the kind of hospitality that keeps a larger group comfortable instead of crowded.
1461
1462Saturday is where the budget pressure shows up fast. Venue-booking data says Saturdays are the most sought-after wedding day in Sonoma, and venue rentals average **$333 per hour**, with larger venues averaging about **$434 per hour** (Sonoma venue data). The same data says Wednesday and Thursday bookings are 19% cheaper on average than weekend dates, which makes the Saturday premium impossible to ignore.
1463
1464Build the budget around weekend pricing from the beginning. Do not wait for the quote to force the issue.
1465
1466The question is not whether the property looks beautiful. It is whether the space earns its premium through guest flow, flexibility, and a reception that feels worth the spend. Couples should start with broader venue context, such as the [Sonoma Valley wedding venues overview](https://brcohn.com/blog/sonoma-valley-wedding-venues), then narrow to the exact Saturday that fits the guest count and the overall plan.
1467
1468Weekend experience matters after the ceremony too. A venue that leaves room for [professional wedding dance coaching](https://danzaacademy.com/wedding-dance-teachers/) gives the couple a stronger first dance and gives the room a better start to the night.
1469
1470## Strategic Timelines for Securing Peak Season Dates
1471
1472A couple falls in love with a Sonoma Saturday, then learns the hard part is not the mood, it is the calendar. Peak-season dates get claimed early, and once a venue's Saturday inventory is gone, the rest of the plan starts bending around whatever is left. For Sonoma's **May through October** season, serious couples should be locking dates **14 to 18 months ahead**, and some properties need even earlier commitment depending on guest count and layout.
1473
1474![A timeline graphic showing four planning stages for a Saturday wedding from 18 to 12 months out.](https://cdnimg.co/b09ef9e7-56b8-42ac-8446-839cd664add4/25010989-7695-48db-bd89-78f131dcd209/saturday-wedding-venue-sonoma-wedding-timeline.jpg)
1475
1476### A clean booking sequence
1477
1478Start with the Saturday, not the décor. At **18 months out**, tour venues and ask the date question first. At **16 months out**, move decisively if the property fits, because hesitation usually costs the exact view, room flow, or weekend you wanted. By **14 months out**, save-the-dates should be moving and the core vendors should already be under contract. By **12 months out**, the operational work gets tighter, from fittings to lodging blocks, because every one of those choices depen
1478ds on the venue being secured.
1479
1480> **Good planning is not about being early everywhere. It's about being early on the decisions that can't be recovered later.**
1481
1482A weekend wedding demands a stronger calendar than a single-day event. Use the [essential wedding preparation timeline](https://www.getspliced.com.au/blogs/news/wedding-preparation-timeline) as the backbone, then work the Sonoma venue decision into that framework so vendor booking, guest communication, and lodging planning all move in the same direction. If the Saturday date drives the rest of the plan, the rest of the plan stays manageable.
1483
1484Once a couple is serious, stop browsing and make the inquiry. A direct [private event request](https://brcohn.com/private-event-request) gets the conversation started about availability, package structure, and the logistics tied to that exact weekend. That is where the schedule stops being theoretical.
1485
1486### What to do when the Saturday is already popular
1487
1488If the first-choice venue is gone, do not drift into a weaker second pick just because it is open. Keep the same guest count, the same hospitality standard, and the same expectation for how the property has to work over a full weekend. A generic substitute usually creates more compromise than savings.
1489
1490The couples who secure peak Saturdays usually do three things well. They tour with deposit readiness, they have family decisions settled, and they know what kind of weekend they want before they start asking for dates. In Sonoma, that clarity matters more than wishful planning.
1491
1492## Evaluating Vineyard Estates and Weekend Guest Experiences
1493
1494A scenic vineyard is not enough. A real Saturday venue in Sonoma has to carry the whole weekend without making guests feel rushed, stranded, or squeezed into a pretty backdrop. Couples planning **Friday welcome dinners, Saturday ceremonies, and Sunday farewell brunches** need a property that feels like a destination, not a rented stage.
1495
1496![A checklist for couples planning a multi-day destination wedding with essential venue amenities and services.](https://cdnimg.co/b09ef9e7-56b8-42ac-8446-839cd664add4/dade608e-ff9d-4ab7-8e93-9e0f935682b5/saturday-wedding-venue-sonoma-wedding-checklist.jpg)
1497
1498### What separates a destination estate from a photo op
1499
1500The estate layout has to support the full weekend, not just the ceremony moment. Look at arrival flow, guest parking, walking paths for older relatives, and whether the property leaves enough room for a Friday dinner or a relaxed daytime gathering. If guests have to shuttle constantly, climb too much, or wait around for every transition, the venue starts feeling like logistics instead of hospitality.
1501
1502Ask direct questions on the site visit.
1503
1504- **Where do guests gather on Friday?** A good property has a real answer, not a leftover corner.
1505- **What happens if the ceremony weather shifts?** A backup plan only matters if it protects the guest experience.
1506- **Can people stay connected on-site?** If lodging is off-property, transportation and parking need to be sorted cleanly.
1507- **Does the estate have daytime texture?** Tasting rooms, patios, and shaded gathering spaces make the weekend feel complete.
1508
1509> **Strong venues don't just host the wedding hour, they carry the weekend.**
1510
1511Personality matters because guests remember how a place feels, not just how it photographs. A venue with history, music, or a distinct story gives the weekend more weight, especially for couples who want the property itself to be part of the celebration. For a closer look at how private event flow works on a wine estate, the [winery private events guide](https://brcohn.com/blog/winery-private-events) is worth reading.
1512
1513That character also changes the guest experience in practical ways. A property with wine tasting, a comfortable gathering area, or a story people can talk about creates more dimension across the weekend. A generic scenic backdrop can look beautiful and still feel forgettable. A real estate narrative gives the celebration a pulse, and that is what makes a Saturday in Sonoma feel worth the premium.
1514
1515## Coordinating Vendors and Navigating Valley Logistics
1516
1517Sonoma vineyard weddings look effortless when they're done right, but the behind-the-scenes coordination is absolutely not effortless. The property might be stunning, but if the load-in route is awkward, the power plan is weak, or the music setup doesn't fit the site, the wedding becomes harder and more expensive than it should be. That's the part couples miss when they focu
1517s only on view and capacity.
1518
1519The first thing to sort out is whether each vendor can work on the property without improvising. Caterers need a usable prep path and a realistic service zone. Rental crews need space for delivery and breakdown. Musicians need a setup that fits the site's sound expectations, not just the couple's playlist. If a vineyard sits on a valley-floor layout, that can help with access, but it still doesn't solve every operational issue on its own.
1520
1521### Questions that should be asked before any contract is signed
1522
1523- **Where does equipment load in?** Heavy items need a direct, sensible path.
1524- **What powers the event?** Any outdoor setup should have a clear energy plan.
1525- **How does sound stay controlled?** Live music and quiet surroundings need boundaries.
1526- **Where do guests move after dinner?** The transition from meal to dancing should be easy, not awkward.
1527- **Who owns the rain call?** That decision needs to be defined in advance.
1528
1529A good vendor team asks these things early because Sonoma properties vary a lot in how they handle delivery, staging, and guest movement. The couple should be suspicious of anyone who glosses over logistics with vague reassurance. A pretty floorplan is not the same thing as a workable event plan.
1530
1531> If a venue cannot explain how the caterer, band, and rental crew move through the property, the couple is still shopping for a fantasy, not a wedding.
1532
1533This is also where line-item clarity matters. Some venues are set up for a true event day, others need outside partners to fill basic gaps. Those gaps don't ruin a wedding, but they do change the budget and the stress level. The safest approach is to ask operational questions before falling in love with the view.
1534
1535## The B.R. Cohn Winery Experience and Musical Heritage
1536
1537B.R. Cohn Winery stands out because it gives couples something most scenic Sonoma properties don't, a built-in story. Founded by **Bruce Cohn**, longtime manager of **The Doobie Brothers**, the estate carries a real rock-and-roll legacy, and that kind of identity changes the mood of a wedding immediately. Guests aren't just looking at vines, they're stepping into a property with cultural memory.
1538
1539![A glass of red wine being poured at a vineyard during a scenic golden sunset.](https://cdnimg.co/b09ef9e7-56b8-42ac-8446-839cd664add4/ccc615d6-de4c-4cf9-95d0-42f259cdeaf7/saturday-wedding-venue-sonoma-wine-pouring.jpg)
1540
1541### Why story matters more than scenery alone
1542
1543A lot of venues in wine country offer a beautiful view. Fewer offer a reason for the space to feel alive. That difference matters because a Saturday wedding is not just a ceremony, it's a hosted experience, and personality-driven estates make the reception feel grounded instead of generic. B.R. Cohn's music history gives planners a ready-made conversation point, which helps the whole weekend feel less like a rented room and more like a destination with an actual identity.
1544
1545The estate also fits the practical side of a Sonoma wedding. It offers tasting experiences on site and highlights estate wines rooted in **old-vine Zinfandel and Cabernet Sauvignon**, which means the property already knows how to host wine-centered gatherings. For couples who want the weekend to feel cohesive, that matters more than one extra photo spot does.
1546
1547There's also a booking advantage. The publisher notes that **B.R. Cohn has meaningful Saturday wedding availability**, which is exactly the kind of inventory advantage couples should care about in a market where Saturdays are the hardest dates to secure. When a venue combines availability with a distinctive story, it becomes more than a fallback option.
1548
1549For couples trying to plan their wedding photography around the property, the right advice is to look for light, movement, and meaningful corners, not just a single hero backdrop. A practical [essential wedding photo advice](https://sendphoto.io/blog/wedding-photography-tips) resource can help couples think through those moments in advance, but the venue still has to give photographers a strong setting to work with.
1550
1551The comparison point is simple. A generic scenic estate gives a nice picture. A venue with musical heritage, tasting culture, and usable Saturday inventory gives a better guest experience and a more memorable wedding weekend. That's the stronger choice.
1552
1553A more detailed venue comparison is available in the [B.R. Cohn vs. Benziger Winery](https://brcohn.com/blog/b-r-cohn-vs-benziger-winery) discussion, but the larger point holds without comparison shopping, story-rich properties make the whole event easier to remember.
1554
1555## Finalizing Contracts and Negotiating Peak Season Terms
1556
1557A Saturday contract in Sonoma should be read like a business agreement, because that's what it is. The couple is securing a rare date, paying for access, and taking on weather, timing, and vendor coordination risks at the same time. That means the contract needs to be clear about what the venue fee covers, what it doesn't, and what happens if the plan changes.
1558
1559The first thing to check is the cancellation language. If the deposit is nonrefundable, that needs to be understood before anyone signs. The second is the weather contingency, especially for outdoor vineyard ceremonies where the indoor fallback must fit the guest count and the event flow. The third is overtime, because a Saturday reception that runs long c
1559an become expensive fast if the rules aren't spelled out.
1560
1561### The contract details that deserve attention
1562
1563- **Included spaces:** Confirm exactly which ceremony, cocktail, and reception areas are part of the fee.
1564- **Time limits:** Find out when access begins and when load-out ends.
1565- **Overtime charges:** Ask how additional hours are priced before they are needed.
1566- **Vendor restrictions:** Clarify whether outside caterers, bands, or rental companies are allowed.
1567- **Rain plan:** Make sure the backup setup feels intentional, not improvised.
1568- **Parking and transport:** Verify whether the venue expects shuttles, valet, or both.
1569
1570> **If a detail affects guest comfort or event timing, it belongs in the contract, not in a verbal promise.**
1571
1572The venue fee can be misunderstood. It is only one part of the budget, and it should never be treated as the full price of the wedding weekend. That's especially true for Saturday wine-country events, where catering, bar service, staffing, and logistics all stack on top of the site rental. A clear contract doesn't make the wedding cheaper, but it does make the bill predictable.
1573
1574The cleanest move is to use the venue's [private events](https://brcohn.com/private-events) page as the final confirmation point, then ask every remaining question before signing. Once the contract is set, the couple can stop shopping and start planning the parts that shape the guest experience.
1575
1576---
1577
1578If the goal is a Saturday wedding with real Sonoma character, B.R. Cohn Winery deserves a serious look. It combines estate wine, musical heritage, and Saturday availability in a way that fits the weekend-heavy way couples are planning now. Visit [B.R. Cohn Winery](https://brcohn.com) to see whether the property matches the guest experience, timeline, and celebration style the wedding needs.
1579`,D2=`---
1580title: "Saturday Wedding Venues Sonoma Valley: A 2026 Guide"
1581slug: "saturday-wedding-venues-sonoma-valley"
1582date: "2026-08-11"
1583category: "Events & Weddings"
1584excerpt: "Find the best Saturday wedding venues Sonoma Valley has to offer. Compare capacities, pricing, and top picks for your 2026 celebration."
1585featuredImage: "https://cdnimg.co/b09ef9e7-56b8-42ac-8446-839cd664add4/93eef470-fc9e-425c-a786-831b6401a202/saturday-wedding-venues-sonoma-valley-wine-pouring.jpg"
1586focusKeyword: "saturday wedding venues sonoma valley"
1587---
1588
1589A couple can have every detail dialed in, a guest list that fits the family drama, and a planner ready to move fast, then discover the problem is simple. The Saturday dates are gone. In Sonoma Valley, that happens because **Saturday is the premium day**, peak-season weekends disappear early, and the strongest properties know they can charge accordingly. Finding **Saturday wedding venues Sonoma Valley** requires a strategy, not just a pretty shortlist.
1590
1591## Why Saturday Weddings in Sonoma Valley Require a Different Strategy
1592
1593A couple can tour a vineyard estate, love the view, and still lose the date before they leave the property. That happens because **Saturday is the premium day** in Sonoma Valley, peak weekends disappear first, and the strongest venues can hold firm on pricing because they know demand stays high. If you are serious about a Saturday, you need to plan around that pressure from the start, not treat it like a casual search.
1594
1595### Why the calendar controls the whole search
1596
1597Saturday is the date everyone wants, so venue teams can be selective. The properties with the strongest reputations do not need to bend much on rate or availability, and couples who start late usually end up with fewer choices and less bargaining power, especially if they need a full-service setup for a guest list in the usual Sonoma range.
1598
1599That is why the search should start with availability, then move straight to guest count fit, season, and site logistics. A venue page like [B.R. Cohn's events page](https://brcohn.com/events) is the right place to confirm whether a property can handle a Saturday celebration before you spend time on spaces that only look good in photos.
1600
1601A couple that wants a Saturday date in Sonoma Valley should treat the process like a race, not a browsing exercise.
1602
1603For couples who want to understand why the busiest weekends vanish so quickly, [vend
1603or competition help](https://www.planseats.com/blog/peak-wedding-season) explains the pressure in plain terms.
1604
1605Friday and Sunday weddings can still be built around flexibility. Saturday weddings in Sonoma Valley are built around timing, budget discipline, and fast decisions.
1606
1607## Understanding the Cost of a Saturday Wedding in Sonoma Wine Country
1608
1609![An infographic detailing the average costs and guest count for a Saturday wedding in Sonoma Wine Country.](https://cdnimg.co/b09ef9e7-56b8-42ac-8446-839cd664add4/524f8006-3f31-49b3-9d21-52b2cb3f280d/saturday-wedding-venues-sonoma-valley-wedding-costs.jpg)
1610
1611Sonoma Valley pricing makes one thing obvious fast. Saturday is the premium slot, and venues charge accordingly. At B.R. Cohn, published wedding pricing lists **Saturday rates at $11,500 from May through October** and **$10,000 from November through April**, while **Monday through Thursday** pricing drops to **$7,500** and **$6,500** in the same seasons. That gap is large enough to change the rest of the plan, so couples should treat Saturday as a strategic choice, not an automatic one. [B.R. Cohn's Sonoma Valley wedding pricing](https://brcohn.com/blog/sonoma-valley-wedding-venues)
1612
1613### What that premium means in practice
1614
1615A Saturday venue fee is only part of the bill. The [infographic detailing the average costs and guest count for a Saturday wedding in Sonoma Wine Country](https://cdnimg.co/b09ef9e7-56b8-42ac-8446-839cd664add4/524f8006-3f31-49b3-9d21-52b2cb3f280d/saturday-wedding-venues-sonoma-valley-wedding-costs.jpg) shows how quickly the spend grows once guest count and event scale enter the picture, and the broader Sonoma County market supports that pattern. Typical full-service wedding packages for **100 to 150 guests** sit around **$18,000 to $35,000**, which is a good reminder that the venue is just one line in a much larger budget. In Sonoma, the site fee is rarely the cheapest number, and Saturday dates make that even clearer. [Sonoma wedding market estimate for 2025](https://wedding.report/action/wedding_statistics/view/market/id/06097/idtype/c/location/Sonoma_CA/)
1616
1617Couples need to budget from the total experience backward. If the venue is the priority, every other decision has to fit around it, including catering, transportation, and design. If the Saturday premium strains the budget before those pieces are even priced out, the date is too expensive for the overall plan. For couples ready to ask directly about a Saturday hold, [start the private event request here](https://brcohn.com/private-event-request).
1618
1619> **Budget reality:** judge a Saturday venue in Sonoma Valley against the whole wedding, not against a weekday quote that only looks cheaper on paper.
1620
1621Guest count drives the math too. Sonoma's average wedding size is estimated at **118 to 128 people**, which sits close to B.R. Cohn's listed maximum of **150 guests** in the same market snapshot. That fit matters because venues built for that size usually book more cleanly on Saturdays and run with fewer last-minute compromises. [Sonoma wedding market estimate for 2025](https://wedding.report/action/wedding_statistics/view/market/id/06097/idtype/c/location/Sonoma_CA/)
1622
1623The right way to evaluate a Saturday venue is simple. Lock the date first, then test the fee against guest count, season, and what the property includes. If the number pushes too hard before the rest of the wedding has even been built, the couple is paying peak pricing for a plan that has not been pressure-tested yet.
1624
1625## Essential Questions to Ask Before Booking a Saturday Venue
1626
1627![An infographic titled Essential Questions To Ask Before Booking a Saturday Venue, listing four important event considerations.](https://cdnimg.co/b09ef9e7-56b8-42ac-8446-839cd664add4/34ce0e46-d7d5-4dcd-bf7f-f4f77aca58fe/saturday-wedding-venues-sonoma-valley-venue-checklist.jpg)
1628
1629A Saturday tour in Sonoma Valley should feel like a logistics meeting, not a style session. Couples can fall in love with a vineyard view in five minutes, but the contract details are where the story lives. The questions below are the ones that catch hidden costs, timing limits, and booking headaches before they turn into problems.
1630
1631### The questions that actually matter
1632
1633- **Is Saturday the venue's premium day, and what is the exact rate?** The answer reveals whether the property uses a true Saturday pricing tier or just dresses up a flat fee.
1634- **What is the minimum guest count required for a Saturday booking?** Some estates structure weekends around volume, so couples need to know whether their guest list fits the venue's model.
1635- **Are there any noise or time restrictions on Saturdays?** This matters for live music, DJ sets, and the end-of-night send-off.
1636- **What backup plan is provided for weather or cancellations?** Saturday dates are expensive enough that the backup plan should be clear before the contract is signed.
1637
1638### What couples should listen for
1639
1640The right venue team will answer quickly and directly. If the response is vague, that usually means the property is either oversold or not built for smooth Saturday operations. Weekend bookings also put pressure on setup and teardown windows, so couples should ask how adjacent events affect load-in, vendor arrival, and strike timing.
1641
1642Parking deserves more attention than most couples give it. Saturday weddings often compete with other weekend traffic across the valley, and a beautiful site becomes a planning problem if guests are left circling or shuttles are not well coordinated. Vendor access matters just as much, especially when caterers, florists, and photographers all need to move efficiently on the same day.
1643
1644A venue page such as [B.R. Cohn's weddings page](https://brcohn.com/weddings) is a smart place to confirm the property's event focus before touring. The couple should be looking for clarity, not charm alone.
1645
1646> Ask the venue to walk through the day minute by minute. If the team can't explain Saturday flow without improvising, the property is not ready for a premium weekend booking.
1647
1648## B.R. Cohn Winery and Its Unmatched Saturday Wedding Experience
1649
1650![Screenshot from https://brcohn.com](https://cdnimg.co/b09ef9e7-56b8-42ac-8446-839cd664add4/screenshots/f5f7c829-740f-49f9-9a11-e5ef0094e7c6/saturday-wedding-venues-sonoma-valley-winery-gate.jpg)
1651
1652For couples who want a Saturday that feels organized from the first guest arrival, B.R. Cohn is one of the few Sonoma Valley estates that combines a clear event footprint, a **capacity of up to 150 guests**, and a property story guests will remember. It sits in the size range many Saturday weddings need, and the published pricing makes one thing obvious, this estate is positioned for premium weekend demand. [B.R. Cohn's Sonoma Valley wedding pricing](https://brcohn.com/blog/sonoma-valley-wedding-venues)
1653
1654### Why this estate has stronger character than a generic vineyard
1655
1656The property has a real identity, and that matters more on Saturdays than couples usually admit. B.R. Cohn was founded by **Bruce Cohn**, longtime manager of **The Doobie Brothers**, so the estate brings music history into the wedding day instead of offering another anonymous vineyard backdrop. A Saturday wedding here feels tied to a specific place with a story, not just a pretty view.
1657
1658Wine service strengthens that experience. B.R. Cohn is known for **old-vine Zinfandel** and **Cabernet Sauvignon**, and the on-site tasting room gives the property a clear hospital
1658ity structure. That matters on a busy Saturday, because the venue already operates like a destination built to receive guests, guide them through the property, and keep the day moving without confusion.
1659
1660### What the Saturday experience should look like
1661
1662The day should run in a clean line. Guests arrive on the valley floor without confusion, the ceremony stays on property, cocktail hour keeps people close, and the reception flows without the stop-start feel that hurts so many fragmented venues. B.R. Cohn's event setup supports a full wedding experience instead of forcing couples to stitch together separate spaces.
1663
1664Couples still need to ask direct logistics questions. Parking should be confirmed early, and vendors need clear instructions for entry, setup, and reset. Saturday timing leaves little room for improvisation, especially when florists, caterers, and photographers all need the same access at the same time.
1665
1666For couples who want the property framed as an event venue first, [B.R. Cohn's private event request page](https://brcohn.com/private-event-request) is the right place to start after the tour. If you are building your own day-of schedule, use [corporate event timeline templates](https://maxsluxuryrides.com/wedding-day-timeline-template/) as a practical planning reference, then adjust the flow for a wedding rather than trying to improvise under pressure.
1667
1668## Other Notable Sonoma Valley Venues With Saturday Availability
1669
1670A Saturday date in Sonoma Valley does not reward couples who shop on scenery alone. The test is whether a property can handle the guest count, the ceremony format, and the pace of a full wedding day without creating bottlenecks. That is the difference between a venue that looks appealing in a folder and one that functions well under Saturday pressure. The broader [best wineries in Sonoma Valley overview](https://brcohn.com/blog/best-wineries-in-sonoma-valley) is useful here because it helps couples see which estates have the right bones for an event, not just a tasting.
1671
1672### How to evaluate alternatives without getting distracted
1673
1674Start with the practical fit. If a venue feels tight on parking, unclear on timing, or awkward between ceremony and reception spaces, treat that as a warning sign. Saturday weddings expose weak layouts fast, and no amount of pretty marketing can fix a property that fights the flow of the day.
1675
1676The next filter is guest count. Some estates can host a moderate crowd comfortably, while others look generous online and feel cramped once tables, catering, and vendor load-in enter the picture. Couples should ask how the property handles arrivals, where guests gather during transitions, and whether the staff understands the pace of a real wedding weekend.
1677
1678Use a simple checklist before you get attached:
1679
1680- **Guest Capacity:** Does the estate fit the guest list without squeezing the event?
1681- **Event Flow:** Can ceremony, cocktail hour, and reception happen without awkward transitions?
1682- **Saturday Setup:** Does the property operate with weekend staffing and timing that match a wedding day?
1683- **Visual Identity:** Does the venue bring a distinct experience, or does it rely only on scenery?
1684
1685The venue that earns a Saturday booking is usually the one that removes friction. B.R. Cohn belongs in the same conversation because it combines a workable event footprint with a clear estate identity, which is exactly what crowded Saturday calendars reward.
1686
1687## Planning Your Saturday Vineyard Wedding Timeline and Logistics
1688
1689![A visual timeline infographic for a Saturday vineyard wedding, detailing event logistics from ceremony to send-off.](https://cdnimg.co/b09ef9e7-56b8-42ac-8446-839cd664add4/03d5f6e1-84b7-4a63-8e49-102a47396f4f/saturday-wedding-venues-sonoma-valley-wedding-timeline.jpg)
1690
1691A Saturday vineyard wedding works best when the day has rhythm. The ceremony should leave room for photos without making guests wait too long, cocktail hour should move naturally into dinner, and the end of the evening should respect local restrictions and guest transportation. The schedule below is the kind of structure that keeps a Sonoma Valley estate wedding feeling polished instead of frantic.
1692
1693### A clean Saturday flow
1694
1695**3:00 PM, Ceremony begins.** This gives the couple a strong afternoon start and keeps the day moving before guests get restless.
1696
1697**3:30 PM, Cocktail hour with wine and appetizers.** This is the moment to let the property do the work. Vineyard views, estate wines, and a short guest transition make this hour earn its keep.
1698
1699**5:00 PM, Reception starts with sit-down dinner.** The dinner window should feel relaxed, but it still needs enough pace to preserve the evening.
1700
1701**7:30 PM, First dance and toasts.** The energy spikes, so the venue and vendor team need to be ready.
1702
1703**9:00 PM, Cake cutting and dessert.** By this point, the night should already feel complete, not stretched thin.
1704
1705**10:30 PM, Last call and send-off.** That keeps the close of the evening clear and realistic for a Saturday estate celebration.
1706
1707The logistics behind that timeline matter just as much as the ceremony time. Caterers need a clear load-in window, florists need setup space that doesn't interfere with guest arrival, and photographers need enough time for vineyard portraits before light fades. Couples planning transportation should also account for guests navigating valley roads after the reception, especially if the venue is built for a full Saturday schedule rather than a casual afternoon event.
1708
1709For a planning framework that helps structure the day from arrival to exit, [corporate event timeline templates](https://maxsluxuryrides.com/wedding-day-timeline-template/) can be adapted into a wedding-day flow without overcomplicating the process. A venue such as [B.R. Cohn's winery private events page](https://brcohn.com/blog/winery-private-events) is a useful reminder that the estate is built to handle organized event pacing, not improvisation.
1710
1711## Your Action Plan for Securing a Saturday Venue in Sonoma Valley
1712
1713If the couple is **18 months out**, the first move is simple. Tour the top venues, compare Saturday rate structures, and ask the hard questions about timing, guest count, and vendor access before falling in love with a date that is already gone. If the couple is **12 months out** and still searching, the recovery strategy is blunt: widen the list, move fast on any venue that fits the guest count, and decide where flexibility can save money without hurting the event.
1714
1715The budget guardrail is equally direct. Saturday is worth paying for only when the venue gives the couple a real advantage in experience, capacity, and logistics. If the premium eats too much of the total wedding budget, the rest of the day starts to look stripped down, and that's the wrong trade in Sonoma Valley.
1716
1717B.R. Cohn deserves a serious look because it combines Saturday inventory, a guest count that fits the common Sonoma range, and a property story that is stronger than standard vineyard branding. Couples who want a Saturday wedding in Sonoma Valley should put it near the top of the tour list, then compare every other option against what the estate delivers.
1718
1719---
1720
1721If a Saturday date in Sonoma Valley is the goal, B.R. Cohn Winery should be on the short list right away. It offers a true Sonoma estate setting, on-site event infrastru
1721cture, and a Saturday-friendly format that fits the realities of this market. Visit [B.R. Cohn Winery](https://brcohn.com) to review the property and start the conversation about your date.
1722`,P2=`---
1723title: "Best Sonoma Valley Wedding Venues: Plan Your 2026 Day"
1724slug: "sonoma-valley-wedding-venues"
1725date: "2026-08-05"
1726category: "Events & Weddings"
1727excerpt: "Discover top Sonoma Valley wedding venues in our 2026 guide. Get costs, Saturday availability, and expert planning tips for your dream wine country day."
1728featuredImage: "https://cdnimg.co/b09ef9e7-56b8-42ac-8446-839cd664add4/d003f7fb-71a5-4d83-85fa-b3030bcc3a7f/sonoma-valley-wedding-venues-wedding-ceremony.jpg"
1729focusKeyword: "sonoma valley wedding venues"
1730---
1731
1732A lot of couples start in the same place. They want vineyard views, warm light, good wine, a dinner that feels relaxed instead of stiff, and a dance floor that doesn't feel like an afterthought. Then they start searching Sonoma Valley wedding venues and hit the same wall. Too many pretty photos. Not enough straight answers.
1733
1734The hard part isn't finding a beautiful property. Sonoma has plenty of them. The hard part is figuring out what the day will cost, whether a Saturday is even realistic, how the flow will work for guests, and whether the venue has any real personality beyond rows of vines.
1735
1736That's where couples need a filter, not another generic venue roundup. A strong Sonoma wedding plan starts with the calendar, the guest count, and the kind of experience the property can support from ceremony through dancing. For couples who want to get grounded before booking tours, a stop in Sonoma wine country helps clarify the atmosphere they're chasing, and [a winery visit in Sonoma Valley](https://brcohn.com/visit) often tells them more than a dozen mood boards ever will.
1737
1738## Your Sonoma Valley Wedding Dream
1739
1740Most couples don't begin with a spreadsheet. They begin with a feeling.
1741
1742They picture late-afternoon sun on the vines, guests holding a good glass of wine instead of standing in a hotel ballroom line, and a ceremony that feels rooted in the place. That vision is exactly why Sonoma Valley wedding venues stay in demand. They offer natural beauty, food culture, and a sense of occasion that doesn't need much staging.
1743
1744The problem starts after the dreaming. One venue looks elegant but has limited flexibility. Another looks affordable until rentals, transportation, and timing restrictions appear. A third has a beautiful ceremony site but no strong reception flow. Couples can lose weeks comparing polished marketing copy that says almost nothing.
1745
1746### What couples are usually struggling with
1747
1748A practical planning conversation usually comes down to four questions:
1749
1750- **What's the complete budget range?** Site fee alone doesn't tell the story.
1751- **Is Saturday still available?** If not, is a weekday the smarter move?
1752- **Will the property work for the full day?** Ceremony, cocktails, dinner, and dancing need a coherent flow.
1753- **Does the venue have a point of view?** Scenery matters, but story matters too.
1754
1755> Pretty photos are easy. A venue that works operationally from arrival to final song is harder to find.
1756
1757That's why venue selection in Sonoma shouldn't start with “Which place is prettiest?” It should start with “Which property fits the guest count, the budget, the season, and the atmosphere this couple wants?”
1758
1759### What makes Sonoma worth the effort
1760
1761When a wine country wedding is planned well, it doesn't feel overproduced. Guests move through the day naturally. The setting does most of the visual work. Food and wine feel like part of the location, not extra decor.
1762
1763That's the promise of Sonoma. The planning challenge is turning that promise into a day that feels easy for everyone involved.
1764
1765## The Sonoma Wine Country Wedding Blueprint
1766
1767Before narrowing down Sonoma Valley wedding venues, couples need a working plan. Wine country rewards decisiveness. It also punishes vague budgeting and late calendar moves.
1768
1769![A visual guide titled The Sonoma Wine Country Wedding Blueprint outlining four essential wedding planning steps.](https://cdnimg.co/b09ef9e7-56b8-42ac-8446-839cd664add4/56082276-8061-4e87-ab6f-2003530e81cc/sonoma-valley-wedding-venues-planning-guide.jpg)
1770
1771### Quick comparison before touring
1772
1773| Planning factor | What to expect in Sonoma Valley |
1774|---|---|
1775| Season strategy | Peak season runs **May through October**, with stronger demand and tighter Saturday inventory |
1776| Booking window | Peak dates often need **12 to 18 months** of lead time |
1777| Full-service pricing | For **100 to 150 guests**, peak-season full-service packages typically run **$18,000 to $35,000** |
1778| Guest-size planning | Winery weddings work best when guest count, ceremony site, dinner layout, and transportation are aligned early |
1779| Smart flexibility | Weekdays and off-season dates usually give couples more negotiating room and less calendar pressure |
1780
1781The strongest first move isn't touring ten venues. It's deciding which constraints matter most.
1782
1783### Start with season, not aesthetics
1784
1785Peak wedding season in Sonoma County runs **May through October**, and that's when long evenings and vineyard color pull the most demand. It's also when Saturday bookings get tight fast, with couples typically needing to secure venues **12 to 18 months in advance**. During that same peak period, full-service packages for **100 to 150 guests** typically cost **$18,000 to $35,000**, according to [Sonoma County all-inclusive wedding venue pricing](https://breezit.com/wedding-venues/all-inclusive/sonoma-county).
1786
1787That single fact should shape the whole search.
1788
1789If a couple wants a prime Saturday in peak season, they need to move early and accept that flexibility drops as demand rises. If they care more about value, a weekday or off-season date usually creates better options.
1790
1791> **Planning rule:** Pick the date strategy first. The venue list gets much clearer after that.
1792
1793### Understand what a winery wedding includes, and what it often doesn't
1794
1795“Winery wedding” sounds simple, but it covers very different operating models.
1796
1797Some properties are close to all-inclusive. Others are mostly site rentals with a strong backdrop. Couples should assume nothing and ask direct questions about what the venue fee covers. A site fee may include the grounds and basic access, but not necessarily the full event build-out.
1798
1799The most useful checklist includes:
1800
1801- **Ceremony and reception spaces**. Are both included, or priced separately?
1802- **Furniture and tabletop basics**. Tables, chairs, linens, glassware, and place settings matter more than couples expect.
1803- **Vendor flexibility**. Some venues are easy to work with. Others are tightly structured.
1804- **Music setup**. Sound, placement, and guest flow should be discussed early.
1805- **Guest logistics**. Parking, transportation, and transitions between spaces can make or break the feel of the day.
1806
1807Couples looking at estate properties should also pay attention to how the property handles non-wedding events. A venue with an established event rhythm often manages timing and guest circulation better, and [Sonoma Valley estate events](https://brcohn.com/events) can offer a useful read on how a property functions when guests are on site.
1808
1809### Budget from total experience, not sticker shock
1810
1811Site fee shopping is where a lot of couples get misled. A venue that looks cheaper at first glance may require more outside coordination, more rentals, and more production choices.
1812
1813The right way to budget is to decide the guest count, identify the preferred day of week, and ask what the venue supports naturally. Properties that already have distinct space
1813s for ceremony, cocktails, dinner, and dancing often save couples from expensive workarounds.
1814
1815A good Sonoma budget isn't built around the lowest starting number. It's built around a venue that reduces friction.
1816
1817## Curating Your Venue Shortlist
1818
1819Sonoma Valley wedding venues make more sense when couples sort them by type instead of chasing every listing that looks attractive online. That approach cuts noise fast and helps narrow the search to the properties that fit the day.
1820
1821In **2025**, Sonoma County hosted an estimated **2,765 weddings**, with couples spending an average of **$48,275 per event**. The average guest count ranged between **118 and 128 people**, helping drive a **$133.48 million** local wedding industry, according to [Sonoma County wedding market data](https://wedding.report/action/wedding_statistics/view/market/id/06097/idtype/c/location/Sonoma_CA/). That volume explains why broad searching gets messy. There are plenty of options, but not every option suits the same event shape.
1822
1823![A collage showing three elegant Sonoma Valley wedding venues featuring a rustic barn, a lush garden, and modern architecture.](https://cdnimg.co/b09ef9e7-56b8-42ac-8446-839cd664add4/99141471-3dbe-47d4-a81b-789d84076e8e/sonoma-valley-wedding-venues-event-locations.jpg)
1824
1825### Three venue archetypes that actually help decision-making
1826
1827| Venue type | Atmosphere | Best fit | Cost and availability reality |
1828|---|---|---|---|
1829| Historic estate | Story-rich, layered, visually distinctive | Couples who want character and a day with movement between spaces | Saturday demand is usually serious, but the setting often justifies the effort |
1830| Modern winery | Clean lines, polished design, contemporary tone | Couples who prefer minimal styling and a more architectural look | Can feel streamlined, but layout matters more than branding |
1831| Rustic-chic barn or farm estate | Relaxed, warm, less formal | Couples who want dinner-party energy and a softer structure | Often appealing for intimate celebrations and flexible pacing |
1832
1833The point isn't to pick the “best” category. It's to figure out which type naturally supports the wedding personality.
1834
1835### The historic estate route
1836
1837A historic estate usually gives couples what generic vineyard venues don't. It offers a sense of sequence.
1838
1839Guests don't just arrive and sit in one place all night. They move through the property. Ceremony in one setting. Cocktails in another. Dinner somewhere that feels distinct. That layered flow creates momentum and helps the event feel more memorable without adding theatrical production.
1840
1841This format works especially well for couples who want a wedding with identity. Estate properties tend to carry more narrative weight, whether that c
1841omes from architecture, agricultural heritage, or cultural history.
1842
1843### The modern winery route
1844
1845Modern winery settings tend to appeal to couples who want sharp visuals and less decorative clutter. If the architecture is strong, the design work can stay restrained.
1846
1847That said, clean aesthetics can't rescue a weak floor plan. A sleek property still needs shade, practical guest circulation, and a logical transition from ceremony to dinner. If a modern site feels static, guests will notice.
1848
1849> The venue shouldn't force guests to keep solving where they're supposed to go next.
1850
1851### The rustic-chic route
1852
1853Barns and farm-style estates often feel more approachable. They can be a smart match for couples who want intimacy and a looser rhythm.
1854
1855This style works best when “relaxed” still includes good planning. Rustic doesn't mean improvised. The best versions feel edited, not casual in a careless way.
1856
1857For couples exploring event layouts beyond weddings, [private event options in Sonoma Valley](https://brcohn.com/private-events) can also reveal whether a property handles gatherings with polish or only photographs well.
1858
1859### How to cut a long list into a short one
1860
1861A strong shortlist usually has only three to five venues. More than that and couples stop evaluating clearly.
1862
1863Use these filters:
1864
1865- **Guest count fit**. The venue should feel right at the actual count, not just the legal maximum.
1866- **Day-of-week realism**. If Saturday is a strict requirement, weak candidates should be dropped early.
1867- **Property flow**. Distinct spaces matter.
1868- **Personality**. Couples should remember the story of the place after the tour.
1869
1870If the venue feels interchangeable, it probably is.
1871
1872## A Deep Dive into B.R. Cohn Winery
1873
1874For couples who want an estate setting with more identity than a standard vineyard backdrop, one practical case study stands out. [B.R. Cohn wedding details and availability](https://brcohn.com/weddings) show tiered pricing with **Saturday rates at $11,500 from May through October and $10,000 from November through April**, while **Mondays through Thursdays are $7,500 from May through October and $6,500 from November through April**. The property accommodates **up to 150 guests** and includes named event spaces such as a **terraced amphitheater** and a **140-year-old olive grove**, according to [the winery's wedding information](https://www.brcohn.com/weddings/).
1875
1876![Screenshot from https://brcohn.com/weddings/](https://cdnimg.co/b09ef9e7-56b8-42ac-8446-839cd664add4/screenshots/79f418ff-08b6-412a-ae26-d8b36816fb0e/sonoma-valley-wedding-venues-vineyard-wedding.jpg)
1877
1878### Why this estate feels different
1879
1880Most winery venues sell scenery. This estate offers scenery plus a point of view.
1881
1882Its defining hook is the rock-and-roll legacy tied to Bruce Cohn and The Doobie Brothers. That matters because couples don't just need a ceremony site. They need a venue that gives the day some texture. A music-rooted property creates opportunities for a wedding that feels stylish without sliding into a theme party.
1883
1884That difference shows up in the emotional rhythm of the event. The setting has elegance, but it doesn't feel stiff. That balance is hard to fake.
1885
1886### How the grounds support a full wedding day
1887
1888The estate earns attention due to its specific spaces. These lend themselves to a natural sequence instead of one flat event.
1889
1890A ceremony can sit beautifully in the **terraced amphitheater beneath ancient oaks**. Cocktail hour makes sense in the **140-year-old French Picholine olive grove**. Reception energy shifts well into the **open-air barn**, which gives the evening a clearer turn from formal vows to celebration. Those estate features are detailed in [the venue profile describing the amphitheater, olive grove, and barn](https://www.novelaweddings.com/wedding-venues/br-cohn-winery-napa-sonoma).
1891
1892> Distinct spaces do more than look good. They create pacing, and pacing is what keeps a wedding from feeling flat.
1893
1894### The pricing reality
1895
1896The tiered structure is refreshingly direct. Couples can see what changes with season and weekday selection instead of trying to decode vague “starting at” language.
1897
1898That matters because Sonoma planning gets easier when couples can decide quickly whether they're paying for prime timing or choosing value. Here, the spread between peak Saturday and weekday pricing gives a clear lever to pull depending on priorities.
1899
1900The guest-cap also helps with discipline. A venue that tops out at **150 guests** tends to suit couples who want a full room and a cohesive atmosphere instead of trying to stretch a property beyond its natural scale.
1901
1902### Who this venue fits best
1903
1904This kind of estate works for couples who want:
1905
1906- **A real sense of place** instead of a generic vineyard package
1907- **A wedding with personality** rooted in music, local scenery, and Sonoma culture
1908- **A guest count that stays intentional** rather than sprawling
1909- **Clear pricing by day and season** so planning decisions happen faster
1910
1911It's especially compelling for couples who care about atmosphere after dinner. The rock-and-roll heritage gives the reception a built-in identity. B.R. Cohn's music heritage also makes it one of the standout [wineries with live music in Sonoma](https://brcohn.com/blog/wineries-with-live-music-near-me), which appeals to couples who want the reception to feel like a real celebration.
1912
1913## Your B.R. Cohn Wedding Day Timeline
1914
1915A venue becomes easier to judge when couples can see the day moving through it. The strongest estate weddings don't keep guests in one place too long. They create progression.
1916
1917![A B.R. Cohn wedding day timeline infographic showing scheduled events from 8:00 AM to 9:00 PM.](https://cdnimg.co/b09ef9e7-56b8-42ac-8446-839cd664add4/316b8a8e-b087-4e01-91aa-667cae59e019/sonoma-valley-wedding-venues-wedding-timeline.jpg)
1918
1919A growing **2025** trend shows **41% of couples** now request venues with built-in sound infrastructure or curated music playlists tied to estate heritage, according to coverage of music-forward Sonoma wedding venue demand. That matters here because a property with musical DNA shouldn't treat sound like an afterthought.
1920
1921### A sample day that actually works
1922
1923Here's a clean event flow for this kind of estate wedding:
1924
1925- **Morning preparations**. Wedding party arrivals stay calm when hair, makeup, attire, and early photography happen without rushing guests onto the property too early.
1926- **Early afternoon portraits**. Couple portraits and wedding party photos should happen before guest arrival while the grounds are still quiet.
1927- **Guest arrival and ceremony**. Late afternoon is the sweet spot for outdoor vows. The light is better, and guests aren't baking in the harshest part of the day.
1928- **Cocktail hour in a separate zone**. Moving guests into another area after the ceremony changes the energy immediately.
1929- **Dinner and toasts**. Seated dinner should begin while momentum is still high, not after a long awkward gap.
1930- **Dancing with intention**. Once formalities end, the music should feel like a real transition, not a bolt-on segment.
1931
1932### Vendor choices that fit the estate
1933
1934This is not the kind of venue that calls for timid entertainment. The property's music heritage supports a strong live band or a DJ who understands pacing and crowd reading, not just playlists.
1935
1936Good pairings for a wedding here usually include:
1937
1938- **Live ceremony or cocktail musicians** for warmth early in the day
1939- **A reception act with real presence** once dinner ends
1940- **A planner or coordinator who understands site movement** across multiple event zones
1941- **Transportation planning that respects wine country timing**, especially for out-of-town guests
1942
1943> A music-forward estate should sound intentional from the first guest arrival through the last dance.
1944
1945### What couples often overlook
1946
1947The timeline isn't just about aesthetics. It controls guest comfort.
1948
1949If portraits run late, cocktail hour drags. If dinner starts too late, dancing suffers. If music setup is treated casually, the reception loses energy. Estate weddings are rewarding because they have multiple environments, but those environments need a disciplined schedule.
1950
1951The best timeline feels effortless to guests because the couple made hard decisions early.
1952
1953## Booking Your Sonoma Venue and Next Steps
1954
1955The booking stage is where a lot of couples either get sharper or get stuck. They start second-guessing, reopen the venue search, and waste time comparing places that already failed their own criteria.
1956
1957The better approach is blunt. Once a couple knows the preferred season, realistic budget range, guest count, and day-of-week flexibility, they should tour only venues that can satisfy those four points without gymnastics.
1958
1959![An infographic titled Booking Your Sonoma Venue & Next Steps providing six steps for wedding venue planning.](https://cdnimg.co/b09ef9e7-56b8-42ac-8446-839cd664add4/4e19b833-31de-42f4-88e4-3ee06add2eb6/sonoma-valley-wedding-venues-booking-guide.jpg)
1960
1961Data shows **68% of Bay Area couples** now prioritize weekday flexibility to reduce costs by **20 to 30%**, yet fewer than **12% of Sonoma venue listings** actively highlight weekday packages or cultural hooks like a Doobie Brothers connection, according to Bay Area wedding planning coverage focused on weekday demand.
1962
1963### The questions that matter on a tour
1964
1965A venue tour should not turn into a polite stroll. Couples need answers.
1966
1967Ask about:
1968
1969- **Exclusive use**. Will another event be happening nearby?
1970- **Ceremony-to-reception flow**. Where do guests go immediately after vows?
1971- **Noise and music logistics**. What are the practical limits?
1972- **Vendor structure**. Is there freedom, or a fixed list?
1973- **Rain or cold-weather backup**. The answer should sound operational, not theoretical.
1974- **Transportation expectations**. Wine country weddings go smoother when guest movement is planned early.
1975
1976A venue that gets vague under basic questions usually gets harder later.
1977
1978### Why weekday flexibility matters more than most couples expect
1979
1980Weekdays aren't just a budget play. They can create a less compressed planning process.
1981
1982Couples often get better date options, stronger vendor availability, and less pressure around timing. For guests, a weekday destination wedding in wine country can still feel appealing if the couple plans the surrounding experience well. Lodging, transportation, and welcome plans matter more than the label on the calendar.
1983
1984### How to know when it's time to book
1985
1986A couple is ready to book when three things are true:
1987
19881. The venue fits the actual guest count.
19892. The price structure is clear enough to build the rest of the budget.
19903. The property has a personality the couple can still describe accurately a week after the tour.
1991
1992That last one matters. If the venue is already blurring with the others, it's probably not the one.
1993
1994For couples who already know they want a Sonoma estate setting with defined ceremony and reception spaces, music history, and straightforward inquiry options, the next move is simple. [Submit a wedding event request in Sonoma Valley](https://brcohn.com/private-event-request) and get the conversation started.
1995
1996---
1997
1998For couples who want a Sonoma Valley wedding with character, clear pricing, and a property that can carry the full day from vows to dancing, [B.R. Cohn Winery](https://brcohn.com) is worth a direct inquiry. The estate combines vineyard atmosphere, olive grove beauty, and music-rooted history in a way that feels distinct instead of interchangeable.
1999`,L2=`---
2000title: "Sonoma Valley Wineries: A Visitor's Guide 2026"
2001slug: "sonoma-valley-wineries"
2002date: "2026-08-06"
2003category: "Visit & Tastings"
2004excerpt: "Discover Sonoma Valley wineries for tastings, weddings, and live music. Plan your perfect visit with our curated guide to estate experiences and venues."
2005featuredImage: "https://cdnimg.co/b09ef9e7-56b8-42ac-8446-839cd664add4/267714d7-9f42-4038-a34d-a3b28a3f0e11/sonoma-valley-wineries-wine-pouring.jpg"
2006focusKeyword: "sonoma valley wineries"
2007---
2008
2009Planning a Sonoma Valley day sounds easy until the choices pile up. One winery leans historic, another looks great for a wedding, a third promises live music, and most roundup posts flatten them all into the same generic list. The smarter move is to choose **sonoma valley wineries** by **experience type**, then build the day around a strong anchor stop on the valley floor.
2010
2011Sonoma's wine story runs deep. The valley is widely described as the birthplace of California wine, with the first vineyards planted in **1823** by Franciscan missionaries at Mission San Francisco Solano, and Buena Vista Winery founded in **1857** by Agoston Haraszthy is now recognized as California's oldest commercial winery, according to the county fact sheet on Sonoma Valley history ([Sonoma Valley General Facts](https://assets.simpleviewinc.com/simpleview/image/upload/v1/clients/sonomavalley/Sonoma_Valley_General_Facts_FINAL_36071c84-4c85-4d04-8612-1f4fa418b920.pdf)). That legacy matters because the valley still rewards visitors who care about place, not just labels.
2012
2013## Navigating the Sonoma Valley Wine Scene
2014
2015A Sonoma trip gets messy fast if every stop looks like a pin on a map. With **more than 80 wineries** in the valley and a dense cluster of tasting rooms, the right way to plan is to stop thinking in terms of “best winery” and start thinking in terms of **vibe**. Some properties are built for serious tasting, some for events, and some for a visit that folds in music history or olive oil heritage.
2016
2017![A glass of red wine sits on a wooden barrel overlooking scenic vineyard hills during sunset.](https://cdnimg.co/b09ef9e7-56b8-42ac-8446-839cd664add4/35a1cc72-e7e9-4e83-9bb4-91230cfb95ef/sonoma-valley-wineries-wine-glass.jpg)
2018
2019### Start with an anchor stop
2020
2021The best Sonoma days usually need one place that sets the tone. A **valley-floor anchor stop** works because it gives the itinerary a clear center of gravity, especially for visitors who want easy access, a seated tasting, or a venue that can handle a larger group without turning the day into a scavenger hunt. That is the practical reason many planners should start close to the valley floor, then branch outward only if the rest of the day really earns it.
2022
2023> **Practical rule:** build the day around one property that already fits the group's main goal, then add only one or tw
2023o more stops that change the pace.
2024
2025That approach helps casual tasters too. A couple on a weekend getaway does not need six near-identical pours. They need one stop for context, one for contrast, and maybe one for lunch or a walk between tastings. The valley floor gives enough structure to keep the day calm, while still leaving room for a more personal stop later.
2026
2027The same logic applies to event planning. A wedding host or offsite planner should begin with access, parking, and venue layout, not just the wine list. The wrong starting point creates friction all day. The right anchor stop makes the rest of the itinerary feel intentional, not improvised.
2028
2029For a deeper neighborhood-level starting point, [this Sonoma Valley winery guide](https://brcohn.com/blog/best-wineries-in-sonoma-valley) is the right place to begin if the goal is a practical, visitor-first plan.
2030
2031## Understanding the Valley Floor and Hillside Terroir
2032
2033A Sonoma tasting day gets better when you stop treating the valley as one flat category. Sonoma Valley is a narrow AVA with a clear north-south shape, and that structure changes how the day feels from the first stop to the last. The Sonoma Valley AVA was established on **December 4, 1981**, making it Sonoma County's first appellation and the nation's ninth AVA, and the valley stretches about **17 miles** from Carneros in the south to the edge of Santa Rosa in the north ([Sonoma Valley AVA overview](https://www.winewithseth.com/winewiki/sonoma-valley-ava/)). That frame matters because it tells you where the easy access lives and where the more deliberate visits begin.
2034
2035![An infographic illustrating Sonoma Valley terroir, comparing vineyard characteristics of the valley floor versus steep hillside terrain.](https://cdnimg.co/b09ef9e7-56b8-42ac-8446-839cd664add4/0bf8500c-6262-44c6-afbb-b932c36699fa/sonoma-valley-wineries-terroir-comparison.jpg)
2036
2037### Valley floor first, hills second
2038
2039Start on the **valley floor** if you want the most practical version of Sonoma. The access is easier, the driving is simpler, and the properties tend to work well for visitors who want a seated tasting without a lot of extra coordination. The AVA contains roughly **72,402 acres** total, with about **13,000 to 14,000 acres** under vine and more than **80 wineries**, so there is enough choice to build a focused day without bouncing all over the county.
2040
2041The hillside properties deliver a different kind of visit. They feel more remote, more dramatic, and less suited to a quick drop-in. That makes them a stronger choice for experienced tasters who want a slower, site-driven day, not for visitors who are still figuring out the region. For weddings and corporate events, the valley floor usually makes more sense because arrivals are easier, parking is less complicated, and the guest flow stays under control.
2042
2043The terroir split also changes the tone of the wines. Valley-floor tastings usually feel grounded and approachable, while hillside stops can feel more structured and intense. Use that difference on purpose. A smart plan gives guests a clear contrast between an accessible estate and a more distinctive property, instead of stacking similar experiences back to back.
2044
2045For a closer look at the Glen Ellen side of the valley, [this Glen Ellen winery guide](https://brcohn.com/blog/glen-ellen-wineries) gives the right local context without turning the day into a generic county tour.
2046
2047> A Sonoma itinerary works best when the first stop is easy to reach and easy to understand. Once that baseline is set, the hillside tasting feels like a reward instead of a logistical gamble.
2048
2049## Finding Wineries with Live Music and Rock History
2050
2051Most tasting guides skip the cultural layer, which is a mistake in Sonoma. Some visitors do not want a purely technical flight. They want a place where the tasting room also carries a story, and music-linked estates fill that gap better than generic lists ever do. That is where experience type becomes the primary filter.
2052
2053![A glass of red wine next to an open notebook, grapes, and cheese on a rustic wooden table.](https://cdnimg.co/b09ef9e7-56b8-42ac-8446-839cd664add4/3e25ec49-d6f8-47cc-97ab-6ffd967d388f/sonoma-valley-wineries-wine-tasting.jpg)
2054
2055### Music history changes the visit
2056
2057B.R. Cohn is the obvious fit for travelers who want rock history attached to the pour. Bruce Cohn founded the estate, and his long association with The Doobie Brothers gives the property a cultural identity that regular Sonoma tasting rooms do not have. That matters because a music-linked visit is not about novelty alone. It gives guests a reason to remember the stop, talk about it later, and connect the wine to a broader story.
2058
2059The strongest version of that kind of visit blends wine with atmosphere, not gimmicks. A rock-heritage estate works for couples, small groups, and fans who want the tasting to feel like a destination rather than a transaction. The olive oil angle also helps, because it adds another layer of estate identity without distracting from the wine itself.
2060
2061For visitors trying to sort out live-music options, [this local music-focused winery guide](https://brcohn.com/blog/wineries-with-live-music-near-me) is the right framework. It matches the practical question better than a generic “top wineries” page ever could.
2062
2063### Choose the experience, not the brochure
2064
2065Some wineries lean toward polished tasting rooms, while others lean into event programming or heritage branding. The wrong choice is easy to make if the only filter is a wine list. The better question is simple, what kind of memory does the stop create?
2066
2067- **Music-linked visit:** choose a property with a clear cultural identity, live entertainment, or a history that gives the tasting room personality.
2068- **Quiet serious tasting:** choose a property that keeps the focus on the flight, the conversation, and the vineyard context.
2069- **Group-friendly stop:** choose a winery with enough space that a party does not spill across the room and kill the mood.
2070- **Estate-story stop:** choose a place where the setting, not just the wine, carries the experience.
2071
2072> If the trip is supposed to feel special, the setting has to earn its place in the story. Wine alone is not enough.
2073
2074That is why music-history branding matters in Sonoma. It gives planners a clean answer to the question, “Where should the group go if the tasting itself should feel like part of the entertainment?”
2075
2076## The Case for Premium Seated Tastings
2077
2078The standing pour is losing ground. Sonoma County's wine economy is heavily **DTC-oriented**, with the average winery selling **66%** of production directly to consumers, while the wholesale channel has shrunk to about **28%** of sales, according to Sonoma County Winegrowers and Silicon Valley Bank data cited in their summary ([The Power of Small](https://sonomawinegrape.org/the-power-of-small/)). That setup rewards wineries that build better on-site experiences, not cheaper ones.
2079
2080![A diagram illustrating the shift from traditional bar tastings to premium, seated 
2080wine tasting experiences.](https://cdnimg.co/b09ef9e7-56b8-42ac-8446-839cd664add4/00154e60-6302-4baf-80be-3da23b54e5a7/sonoma-valley-wineries-wine-tasting.jpg)
2081
2082### Spend for context, not just a pour
2083
2084A premium seated tasting usually gives better value than a crowded bar pour because it buys attention. The guest sits down, hears the story behind the bottles, and leaves with enough context to remember what was in the glass. That matters for serious drinkers comparing estate Zinfandel or Cabernet Sauvignon, where nuance matters more than speed.
2085
2086The county's tasting-room economics support that shift. Sonoma County's average tasting room purchase reached **$269.32** in **2024**, the county's highest ever, and the average DTC wine dollar sales change was **+3.2%** in 2024 versus **+1.2%** in 2023. That does not mean every tasting should be expensive. It means the market already rewards wineries that make the experience feel thoughtful and worth the reservation.
2087
2088The tasting price environment points the same way. The 2023 Sonoma Wine Tasting Report found the countywide basic tasting price rose **11%** year over year, from **$36** in 2022 to **$40** in 2023, with **60%** of tasting rooms holding prices steady, **30%** increasing prices, and **10%** decreasing them ([2023 Sonoma Wine Tasting Report](https://halleckvineyard.com/wp-content/uploads/2023/07/2023-Sonoma-Wine-Tasting-Report.pdf)). That is a market that can absorb moderate increases when the experience feels worth it.
2089
2090### Use the valley experience as the model
2091
2092A well-run seated tasting should feel calm, guided, and worth the reservation. B.R. Cohn's **Valley Experience** fits the kind of visit serious enthusiasts want, a seated format, a focused flight, and room for conversation instead of crowd management. That is the model to look for across Sonoma Valley.
2093
2094A good seated tasting should also leave space for repeat business. Clubs and follow-up purchases matter, and the right room makes both feel natural rather than forced. The point is not to spend more for the sake of it. The point is to spend where the winery has built a better encounter.
2095
2096For readers weighing that kind of membership and return visit, [the Sonoma wine club guide](https://brcohn.com/blog/sonoma-wine-club) is the most useful next step.
2097
2098## Planning Winery Weddings and Corporate Events
2099
2100A winery can look perfect for a ceremony and still fail as an event site. In Sonoma Valley, the smart move is to judge the property by how it handles guests, vendors, timing, and parking, not by the view alone. Tasting-first estates often have limits that matter once a wedding party, sales team, or leadership group shows up.
2101
2102![A winery event planning checklist detailing key considerations like venue type, access, catering, AV, and contracts.](https://cdnimg.co/b09ef9e7-56b8-42ac-8446-839cd664add4/46e1fe7a-b317-448a-8935-e0f77382b9ff/sonoma-valley-wineries-event-checklist.jpg)
2103
2104### Event inventory is what sets venues apart
2105
2106A polished tasting room does not automatically work as a venue. One property may be built for a quiet pour and a small seated group, while another can handle tables, staffing, vendor load-in, and the pace of a ceremony or corporate program. If planners ignore that difference, they waste time touring spaces that were never designed to support the event.
2107
2108Start with function, then look at style. Ask whether the property has dedicated event areas, how the Saturday calendar is managed, and whether guest flow can move without interfering with the tasting operation. That matters in Sonoma because many wineries balance hospitality with direct-to-consumer sales and broader experience programming, which makes event use part of the business model rather than an afterthought ([All in the Family](https://sonomawinegrape.org/all-in-the-family-the-vast-majority-of-sonoma-county-vineyards-and-wineries-are-family-owned/)).
2109
2110### Questions planners should ask first
2111
2112- **Venue type:** Is the space a tasting room, an event venue, or both?
2113- **Saturday access:** Are prime weekend dates open, or already locked?
2114- **Food service:** Is catering handled in-house, or through approved outside vendors?
2115- **Music and AV:** What does the property allow for speeches, playlists, microphones, and live performance?
2116- **Contract terms:** What are the deposit rules, cancellation terms, and setup windows?
2117
2118B.R. Cohn fits the overlap planners care about. It has the wine destination feel, a music-linked identity, and an estate setting that can support events with a clear sense of place. That combination works better than a generic scenic site for couples who want a memorable wedding venue and for corporate groups that need character without sacrificing order.
2119
2120For a closer look at event capabilities, [B.R. Cohn Winery's private events page](https://brcohn.com/blog/winery-private-events) gives planners a direct reference point for comparing venue inventory.
2121
2122> **Best practice:** Make the first call about logistics, not the menu. If the venue cannot answer access, timing, and contract questions clearly, it is not the right fit.
2123
2124## Logistics for Your Sonoma Valley Itinerary
2125
2126Reservations are the starting point now, not the backup plan. Sonoma tasting rooms often run on scheduled service, and weekend slots disappear faster than casual visitors expect. Hiring a driver makes the day easier too, because it removes the rural-road stress and keeps the group focused on the tasting instead of the route.
2127
2128The smartest booking checklist is short. Ask whether the tasting is seated, whether outside food is allowed, how long the reservation runs, and whether the visit is better for couples, groups, or event planning. If the goal is to buy bottles, ask about club access and allocations too, since direct-to-consumer relationships are a big part of the valley's wine economy ([The Power of Small](https://sonomawinegrape.org/the-power-of-small/)).
2129
2130Wine club membership matters because it keeps the best bottles and updates flowing after the trip ends. For visitors who know they like a specific estate style, that is often the easiest way to keep the relationship going without chasing retail shelves. Sonoma rewards repeat visits, not just one-off sightseeing.
2131
2132---
2133
2134B.R. Cohn Winery fits the Sonoma Valley trip that needs more than a pour. Its estate tasting, wine club, music-linked identity, and event-ready setting make it a strong match for visitors who want a valley-floor anchor with real personality. Plan a visit through [B.R. Cohn Winery](https://brcohn.com) and build the rest of your Sonoma day around a stop that gives the trip shape.
2135`,z2=`---
2136title: "Best Sonoma Wine Club: B.R. Cohn & Local Options"
2137slug: "sonoma-wine-club"
2138date: "2026-07-08"
2139category: "Wine & Vineyard"
2140excerpt: "Explore benefits of a Sonoma wine club. Our guide details B.R. Cohn membership, its rock-and-roll perks, & how it compares to other local clubs."
2141featuredImage: "https://cdnimg.co/b09ef9e7-56b8-42ac-8446-839cd664add4/875a0be7-f745-4db6-a81b-7dfd8e248e3f/sonoma-wine-club-wine-pouring.jpg"
2142focusKeyword: "sonoma wine club"
2143---
2144
2145A lot of Bay Area wine drinkers follow the same pattern. They drive up for a Saturday tasting, buy a bottle or two, promise they'll come back soon, then get swallowed by the week. The visit was great, but it was still a one-day transaction.
2146
2147A good Sonoma wine club changes that. It turns a nice afternoon into an ongoing relationship with a place, its wines, and the people who make the estate worth revisiting. That matters more in Sonoma than people think. The best clubs aren't just recurring shipments. They're a reason to return, a shortcut to better access, and in the right case, a pass into the social life of the property.
2148
2149That's why this category gets interesting when a winery has a real identity beyond the tasting bar. A club tied to a strong estate culture feels different from a generic shipment program. In Sonoma Valley, the strongest version of that idea is the club built around old-vine Zinfandel, Cabernet Sauvignon, on-estate hospitality, and a genuine rock-and-roll story.
2150
2151## Your Passport to the Sonoma Valley Experience
2152
2153The usual Bay Area escape starts with good intentions. Leave early, beat the traffic, get lunch somewhere in Sonoma, squeeze in a tasting, maybe walk out with a few bottles. It works. It also ends fast.
2154
2155A club membership is what turns that drive into a habit instead of a one-off outing. Instead of asking where to go next time, members already have a home base. They know the property, the team, the wines they want to drink, and the events worth planning around.
2156
2157That's where a Sonoma wine club stops being a subscription and starts acting like a lifestyle tool. It gives people a standing reason to get back to wine country without reinventing the weekend every time. For Bay Area residents, that's a key advantage. Less decision fatigue, better access, more purpose.
2158
2159### More than a tasting stop
2160
2161Some estates are pleasant for ninety minutes and forgettable by Monday. Others have enough personality to pull people back. The difference usually comes down to whether the place offers a broader experience. Music, food, club events, hospitality, and a sense of history all matter.
2162
2163One Sonoma Valley estate stands out because the visit isn't just about what's in the glass. Its story is tied to Bruce Cohn's music-world background, and that identity shows up in the property's atmosphere, annual programming, and member culture. For anyone planning a weekend reset from San Francisco, Oakland, Marin, or the Peninsula, that kind of estate has more staying power than a standard tasting room.
2164
2165> A strong wine club should make the next visit easier to justify than the first one.
2166
2167A Bay Area guest who wants the practical side first can start with the estate's [visit options in Sonoma Valley](https://brcohn.com/visit). That's the easiest way to see whether the property fits the kind of weekend routine that makes a membership worthwhile.
2168
2169### Why this matters for locals
2170
2171The smartest members aren't always the biggest collectors. They're the people who know they'll return. They want reliable access to wines they like, but they also want an excuse for a casual Sunday tasting, a pickup party, or a member event that feels better than another random reservation.
2172
2173That's the authentic passport. Not just bottles at the door. A recurring place in Sonoma that feels like theirs.
2174
2175## Uncorking the Core Benefits of a Winery Wine Club
2176
2177A good wine club should make your Sonoma weekends better, not just your wine rack fuller.
2178
2179That means the test is simple. Will the membership give you reasons to come back beyond the shipment? The strongest clubs do three things well. They keep good bottles coming, make visits easier and more rewarding, and give members access to events that feel like an insider perk instead of a marketing extra.
2180
2181People usually join after a visit they enjoyed. Then they stay because the wines are reliable, the hospital
2181ity stays strong, and the benefits fit how they spend time in Sonoma. If you want the practical details in one place, the [B.R. Cohn wine club membership options](https://brcohn.com/wine-club) lay out the structure clearly.
2182
2183![An infographic titled Uncorking Your Wine Club Benefits illustrating three membership perks with icons and descriptive text.](https://cdnimg.co/b09ef9e7-56b8-42ac-8446-839cd664add4/e72eaa0d-c528-4d62-9824-9ecd36829b37/sonoma-wine-club-wine-benefits.jpg)
2184
2185### Allocations are the foundation
2186
2187Every club starts with an allocation. That is the standing commitment, whether you pick up on property or have wine shipped.
2188
2189The value is straightforward:
2190
2191- **Consistency:** good releases show up without you chasing emails or release dates.
2192- **Priority access:** smaller-production wines often go to members first.
2193- **Routine:** the membership gives you a built-in reason to return to the estate or keep Sonoma wines in the house.
2194
2195For Bay Area buyers who already know they like a winery's style, that convenience matters. You stop treating wine as a one-off vacation purchase and start treating it as part of your regular rotation.
2196
2197### Discounts should match real behavior
2198
2199A discount sounds nice. Useful discounts are better.
2200
2201The best club pricing applies where members already spend money, bottle purchases, tastings, pickup weekends, and estate events. If the savings only work on purchases you would never make anyway, the club will feel thin fast.
2202
2203> **Practical rule:** join the club only if you would happily drink the wines at full price and use the hospitality perks more than once.
2204
2205That is especially true in Sonoma, where the strongest memberships act more like a local access pass than a coupon program.
2206
2207### Events are what make a club worth keeping
2208
2209This is the part too many buyers miss.
2210
2211Shipments get you in the door. Events are what make a membership feel personal. Pickup parties, member tastings, seasonal gatherings, and estate celebrations create a rhythm. You are not just receiving wine. You are getting an easy excuse for another Sonoma day that already has a plan built in.
2212
2213That matters even more at a place with actual personality. At B.R. Cohn, the appeal goes beyond a standard pour-and-purchase setup. The estate's music history, member culture, and event setting give the club more of a backstage-pass feel. If you are the type who would rather spend a Sunday at a winery with some story, energy, and a reason to linger, that is a real advantage.
2214
2215Use three filters before you join any Sonoma club:
2216
22171. **Would you want the wines without the member discount?**
22182. **Would you realistically visit often enough to use the hospitality perks?**
22193. **Do the events sound like something you would put on your calendar?**
2220
2221If the answer is yes to all three, the membership has real value. If not, it is just recurring wine with nicer packaging.
2222
2223## Inside the B.R. Cohn Sonoma Wine Club
2224
2225Drive up from the Bay on a Saturday, grab a tasting, stay longer than you planned, and suddenly the appeal of this club is obvious. B.R. Cohn is not built for people who want anonymous quarterly boxes on the porch. It is built for people who want a standing reason to come back to Sonoma Valley.
2226
2227That difference starts with the estate itself. B.R. Cohn was founded by Bruce Cohn, the longtime manager of The Doobie Brothers, and the property still carries that rock-and-roll personality. You feel it in the events, the energy, and the way the club is positioned. Membership works best here as a backstage pass to the estate, not just a discount plan.
2228
2229The structure is straightforward. There are two seasonal club tiers, and long-term members move through a five-level loyalty program over time. You also get hospitality and tasting privileges across the family of estates, which matters if you like turning one winery stop into a full Sonoma day instead of a quick tasting-room errand.
2230
2231### What you are actually paying for
2232
2233The wine matters, obviously. B.R. Cohn has a clear house style and a strong Sonoma Valley identity, with estate-grown Zinfandel and Cabernet Sauvignon doing a lot of the heavy lifting.
2234
2235But the smarter reason to join is access. Member events give the club real life beyond the shipment schedule. Pickup celebrations and seasonal gatherings create a built-in excuse to return, open bottles on property, and spend time somewhere that has more personality than the average tasting bar. If you want a club that feels social and place-driven, this one delivers. The estate also produces its own olive oil, and pairing a membership visit with olive oil tasting in Sonoma is one of the more underrated 
2235ways to spend an afternoon on the property.
2236
2237The estate's regular tasting hours also help. Club benefits are much easier to use when visiting feels realistic, not aspirational.
2238
2239### B.R. Cohn Wine Club Tiers at a Glance
2240
2241| Tier Level | Bottles per Shipment | Shipment Frequency | Primary Wine Focus | Tasting Benefit |
2242|---|---|---|---|---|
2243| Seasonal Tier One | Seasonal selections | Seasonal | Estate wines including Sonoma Valley favorites | Hospitality and tasting privileges across family estates |
2244| Seasonal Tier Two | Seasonal selections | Seasonal | Estate wines with ongoing access to new releases and allocations | Hospitality and tasting privileges across family estates |
2245
2246The public information confirms the two-tier seasonal setup, but it does not spell out every bottle count or club-style variation in detail. That is fine. Before you commit, check the current options on the [official B.R. Cohn wine club page](https://brcohn.com/wine-club) and pick the tier that matches how you drink.
2247
2248### Why this club feels different on the ground
2249
2250A lot of winery clubs are transactional. You get the shipment, maybe a small comp tasting, and that is the whole story.
2251
2252B.R. Cohn has more going on. The loyalty ladder rewards people who stick around, which is exactly how a destination property should run a club. The member experience also extends beyond the bottle count. The estate has a real event culture, a recognizable music legacy, and a setting that makes repeat visits easy to justify. If you care about the lifestyle side of wine country, that counts for a lot.
2253
2254There is another practical angle. The cross-estate hospitality privileges give Bay Area members more flexibility when planning a weekend in Sonoma. That makes the membership easier to use consistently, which is what separates a club you keep from one you cancel after the second shipment.
2255
2256### My recommendation
2257
2258Join this club if you want Sonoma on your calendar, not just Sonoma on your doorstep.
2259
2260It is a strong fit for repeat visitors, for people who enjoy B.R. Cohn's Zin and Cab style, and for couples or hosts who see value in the estate's event atmosphere. If the idea of member gatherings, music history, and a winery with some swagger sounds more appealing than a generic case discount, this is one of the better lifestyle memberships in the valley.
2261
2262## Comparing B.R. Cohn to Typical Sonoma Clubs
2263
2264Here's the clean way to judge a Sonoma club. Ignore the “free to join” line for a minute and ask what you get after the second or third shipment. Plenty of clubs skip an annual fee and bill you for the wine. Fine. That part is standard.
2265
2266What separates B.R. Cohn is what happens between shipments.
2267
2268![A comparative infographic showing the differences between typical Sonoma wine clubs and B.R. Cohn's distinct membership offerings.](https://cdnimg.co/b09ef9e7-56b8-42ac-8446-839cd664add4/cb28fbc5-3b1f-450f-8e1d-32da2a3eedf5/sonoma-wine-club-comparison-chart.jpg)
2269
2270### What a typical club usually offers
2271
2272A typical Sonoma wine club gives you the basics. Regular allocations, a standing discount, maybe a member tasting or pickup perk. If you mainly want bottles sent to your door, that can work.
2273
2274The problem is simple. Basic clubs are easy to forget. Once the first rush wears off, the membership starts feeling like another recurring charge attached to a few seasonal boxes.
2275
2276### Why B.R. Cohn stands out
2277
2278B.R. Cohn has a stronger reason to stay on your card because the membership connects you to a place with real personality. The estate has old-vine Sonoma character, a polished hospitality setup, and a music-rooted identity that gives visits more energy than the average tasting stop. That matters if you live in the Bay Area and plan weekends around where you want to spend time, not just what you want shipped.
2279
2280This club works best as a Sonoma access pass. You get the wine, yes, but you also get a standing relationship with an estate people return to for pickup events, gatherings, and special occasions. That is a much better value than a club that only rewards you when a box lands on your porch.
2281
2282A useful way to size it up:
2283
2284- **Typical Sonoma club:** good for routine shipments and modest tasting perks
2285- **B.R. Cohn membership:** better for people who want wine, estate time, and a more social Sonoma rhythm
2286
2287My advice is straightforward. Join B.R. Cohn if you want a club that keeps pulling you back to the valley. Skip it if you only care about the cheapest path to recurring bottles.
2288
2289The estate's [B.R. Cohn winery website](https://brcohn.com/) makes that difference clear fast. You can see that the appeal is bigger than discounts. It feels more like having a backstage pass to a Sonoma property with rock-and-roll roots and reasons to show up in person.
2290
2291## The Rock and Roll Wedding and Event Advantage
2292
2293You join the club, drive up from the Bay Area for a member weekend, and a few visits later you realize the true value is not sitting in y
2293our wine rack. It is the fact that you already know the estate, the flow of the property, and whether it feels right for a wedding, anniversary party, or private event. That kind of familiarity saves time and bad decisions.
2294
2295A lot of winery clubs stop at discounts and shipments. B.R. Cohn gives members something better. It gives them repeated access to a venue with actual personality, polished hospitality, and a music story that guests will remember without needing it explained twice.
2296
2297![A glass of sparkling wine being poured at a vineyard during a warm, sunny golden hour.](https://cdnimg.co/b09ef9e7-56b8-42ac-8446-839cd664add4/316cf92a-2ffc-4ef0-bd37-b098513f8dc8/sonoma-wine-club-sparkling-wine.jpg)
2298
2299### Why event-minded members should pay attention
2300
2301If you are even slightly considering a winery wedding or a milestone party in Sonoma, membership has practical value before you book anything. You get chances to visit under normal conditions, not just during a polished venue tour. You see how the estate feels with people on-site, how relaxed or refined the setting reads, and whether it matches your crowd.
2302
2303That matters more than couples expect.
2304
2305For Bay Area planners, logistics usually decide everything. Guests need a reasonable drive. The site has to feel special without becoming a production. The estate also needs enough identity to stand on its own. B.R. Cohn clears that bar because the property is beautiful, but it is not generic pretty. The rock-and-roll roots give it a real point of view.
2306
2307### A venue with a real personality
2308
2309Plenty of Sonoma venues photograph well. Fewer have stories built into the place. B.R. Cohn does.
2310
2311The Bruce Cohn and Doobie Brothers connection gives weddings and private events a little swagger. Not cheesy theme-party energy. Actual character. That is a big advantage if you want an event that feels warm, stylish, and unmistakably Sonoma instead of interchangeable wine country luxury.
2312
2313Membership helps in a few concrete ways:
2314
2315- **For engaged couples:** repeated visits make venue decisions easier because you already know the setting and service style
2316- **For families planning celebrations:** pickup parties and member events show you how the estate feels with a real crowd
2317- **For hosts entertaining clients or teams:** the property has enough identity to feel memorable without trying too hard
2318
2319The best part is confidence. Members are not choosing a venue from a photo gallery and a sales pitch. They are choosing a place they have spent time in.
2320
2321### Why this benefit is worth real money
2322
2323Event perks only matter if they change the decision-making process. Here, they do. If there is any chance you will host something major in Sonoma in the next year or two, a B.R. Cohn membership works like early access to the estate. You build a relationship with the property before the stakes get high.
2324
2325That is why I see this club as a backstage pass to Sonoma, not just a wine subscription. You get the bottles, but you also get repeated exposure to one of the valley's more distinctive settings. For anyone serious about the event side, the smart move is to review the estate's [wedding venue details at B.R. Cohn](https://brcohn.com/weddings) and decide whether you want to start experiencing the place as a member before you ever sign an event contract.
2326
2327## How to Join and Manage Your B.R. Cohn Membership
2328
2329Joining should be easy. If the signup process feels clumsy, people put it off and never come back to it. This one is straightforward, and Bay Area members should keep it simple.
2330
2331![Screenshot from https://brcohn.com/wine-club/](https://cdnimg.co/b09ef9e7-56b8-42ac-8446-839cd664add4/screenshots/258dfe05-6be7-4862-aaab-4bbc06331129/sonoma-wine-club-winery-website.jpg)
2332
2333### The fastest way to sign up
2334
2335The practical sequence looks like this:
2336
23371. **Choose the club tier** that matches how often the member wants wine arriving or ready for pickup.
23382. **Enter shipping and payment details** during the online checkout flow.
23393. **Watch for confirmation** about the next allocation or release timing.
23404. **Plan the first member visit** so the club starts with an actual estate experience, not just a box on the doorstep.
2341
2342For Bay Area members, pickup can be especially attractive because it turns the allocation into a built-in Sonoma day. That often feels more rewarding than treating the club like a standard delivery subscription.
2343
2344### Managing the account without hassle
2345
2346Once enrolled, members should keep their account details current. The usual items matter most:
2347
2348- **Shipping address:** Especially important for anyone who splits time between home and office delivery options.
2349- **Payment method:** Outdated cards are the easiest way to disrupt an allocation.
2350- **Communication preferences:** Helpful for staying aware of release notices and event invitations.
2351
2352If questions come up about account updates, pickup timing, or club logistics, the best move is to use the winery's [contact page for member support](https://brcohn.com/contact).
2353
2354> For nearby members, pickup usually gives the club more personality. Shipping gives convenience. The right choice depends on whether the member wants the wine only, or the recurring Sonoma outing that comes with it.
2355
2356## Answering Your Sonoma Wine Club Questions
2357
2358### Is pickup better than shipping for Bay Area members
2359
2360For Bay Area members, pickup is usually the better call.
2361
2362A shipped box gets wine to your door. A pickup visit gets you a standing excuse to head up to Sonoma, taste at the estate, and use the membership the way it was meant to be used. That matters at B.R. Cohn because the appeal is bigger than the allocation. The club works best when it becomes part of your weekend rhythm, especially if you like the mix of serious wine, olive oil country, and the winery's rock-and-roll personality.
2363
2364Choose shipping if your calendar is chaos. Choose pickup if you want the full Sonoma experience.
2365
2366### Can a member count on club value if the main interest is old-vine Zinfandel
2367
2368Yes, if old-vine Zinfandel is already your thing.
2369
2370B.R. Cohn's estate connection to that style is a real reason to join, not a marketing extra. As noted earlier, old vines are prized for the depth and character they can bring to Zinfandel. If that is the profile you reach for anyway, getting regular access through the club makes sense.
2371
2372If you only drink Zin once in a while, the value case is weaker. Join because you want these wines in your rotation.
2373
2374### Should a prospective member join for the wine alone or for the broader estate experience
2375
2376Join for both, but put more weight on the experience.
2377
2378Anyone can buy a bottle. The membership pays off when you use the access. That means tastings, member events, return visits, and the feeling that you have a place in Sonoma instead of just another subscription hitting the porch. At B.R. Cohn, that difference is more obvious because the winery has real personality. The music history, the event energy, and the sense that something fun is usually happening give the club a backstage-pass feel that standard shipment clubs rarely match.
2379
2380Use this rule:
2381
2382- **Join** if you like the wines and want reasons to keep coming back to Sonoma.
2383- **Join enthusiastically** if you also care about member events, hosting possibilities, or future wedding and celebration perks.
2384- **Pass** if you only want occasional bottles and have no interest in visiting.
2385
2386That is the honest filter.
2387
2388For anyone looking for a Sonoma wine club with real personality, [B.R. Cohn Winery](https://brcohn.com) stands out. The combination of estate-grown wines, club access, live-music culture, and event appeal gives members more than rout
2388ine allocations. It gives them a better reason to spend time in Sonoma Valley.
2389`,N2=`---
2390title: "8 Wine Club Membership Benefits at B.R. Cohn"
2391slug: "wine-club-membership-benefits"
2392date: "2026-08-25"
2393category: "Wine & Vineyard"
2394excerpt: "Explore wine club membership benefits at B.R. Cohn, from allocations and savings to tastings, music events, shipping, and member experiences."
2395featuredImage: "https://cdnimg.co/b09ef9e7-56b8-42ac-8446-839cd664add4/0d7acd1f-62db-4fe6-af10-e11027d969a9/wine-club-membership-benefits-wine-tasting.jpg"
2396focusKeyword: "wine club membership benefits"
2397---
2398
2399What are you really getting for a wine club membership? A recurring shipment may be the visible benefit, but it isn't the complete value. A serious evaluation should account for **access, wine quality, total price, flexibility, convenience, and experiences**. A club can save money for a frequent buyer, yet frustrate an infrequent drinker if shipments arrive too often or cancellation terms remain unclear.
2400
2401B.R. Cohn Winery gives that question a distinctive Sonoma Valley context. Established in **1984**, the estate focuses on old-vine Zinfandel and Cabernet Sauvignon, offers on-site tasting experiences, sells wines directly, and connects its visitor program to Bruce Cohn's music heritage as longtime manager of The Doobie Brothers. The result is a membership proposition built around both bottles and place.
2402
2403The central choice is between **allocation access and curated discovery**. Allocation programs suit collectors who want priority access to scarce estate wines. Curated programs suit drinkers who prefer a winemaking team to select each shipment. The right wine club depends on whether the priority is collecting, exploration, convenience, repeat visits, gifting, or participation in events.
2404
2405## 1. Wine Selection, Allocation and Collector Appeal
2406
2407Which wine club benefit matters most to you, priority access or guided discovery? Evaluate the membership model by **access, selection control, regional identity, and collector appeal**, then compare those benefits with the wines you plan to drink or cellar. A useful overview of membership structures is available in this [Refact analysis of membership models](https://refact.co/insights/digital-product/membership-website-examples).
2408
2409An **allocation club** gives members priority for limited-production, estate-bottled, or reserve-designated wines. A **curated club** gives the winery's team control over the selection for each tier or shipment, making exploration the main benefit. Member discounts generally fall around **15% to 25% off retail**, according to California wine club guidance. Treat that discount as secondary until you confirm the wines are bottles you would buy anyway.
2410
2411B.R. Cohn's collector appeal starts with its Sonoma Valley estate, old-vine Zinfandel, and Cabernet Sauvignon focus. Those wines can give a cellar a clear sense of place. Reserve releases also create a stronger membership reason than receiving bottles readily found through ordinary retail channels.
2412
2413The estate's music heritage adds experiential value. It may support themed releases, tasting experiences, or member events, but confirm the current program before assigning those benefits a monetary value. Membership value should rest on documented access first, then on the pleasure of connecting the wines with the estate and its history.
2414
2415![A comparison infographic detailing the differences between allocation and curated wine club membership models.](https://cdnimg.co/b09ef9e7-56b8-42ac-8446-839cd664add4/dfe90122-c6f0-4cac-b4c2-8ede8998f8f2/wine-club-membership-benefits-wine-comparison.jpg)
2416
2417### Match scarcity to actual drinking habits
2418
2419Collectors should ask whether access is guaranteed or offered first come, first served. Request tasting notes, winemaker commentary, production details, reserve designations, and aging guidance. Scarcity has practical value only when you want the bottle and can store it properly.
2420
2421> **Collector rule:** Choose allocation access for scarcity, and choose curation when professional discovery matters more than controlling every bottle.
2422
2423Review B.R. Cohn's [Sonoma wine club information](https://brcohn.com/blog/sonoma-wine-club) before joining. Confirm that the current selection structure supports your collecting goals, whether you plan to open, cellar, or give the wines. Exclusive wording matters less than receiving bottles you genuinely want.
2424
2425## 2. Shipment Frequency and Flexibility
2426
2427Does the shipment schedule match how you drink wine? Frequent entertainers may welcome regular deliveries. Travelers, occasional drinkers, and residents with limited storage need fewer shipments and greater control.
2428
2429Before joining, confirm **how many shipments arrive each year, how many bottles each shipment includes, the price range, and how the winery determines the selection**. Clear terms help you plan storage and distinguish allocation access from curated discovery. A fixed selection may suit members seeking estate or old-vine wines, while a choice-based format gives more control over what enters the cellar.
2430
2431Flexibility deserves equal attention. Check whether members can skip, pause, modify, or change quantities, and whether those requests require advance notice. Industry findings connect flexible subscription controls with stronger member retention and identify limited flexibility as a common reason for leaving [in a 2019 DTC industry presentation](https://dtcwinesymposium.com/wp-content/uploads/2019/01/15_DTCWS19_WineDirectSponsorSession.pdf). That matters for seasonal drinkers, frequent travelers, and anyone planning shipments around holidays, entertaining, or a Sonoma Valley visit.
2432
2433### Questions to ask before enrollment
2434
2435- **Storage capacity:** Estimate the expected annual bottle volume before accepting recurring deliveries.
2436- **Pause and skip rules:** Confirm notice requirements, restrictions, and whether skipped shipments remain available later.
2437- **Quantity changes:** Ask whether you can adjust bottle counts or preferences between releases.
2438- **Delivery timing:** Check whether shipment dates fit planned dinners, celebrations, and visits to the Sonoma Valley estate.
2439- **Account control:** Review the current [B.R. Cohn wine club details](https://brcohn.com/wine-club) for the active schedule and available options.
2440
2441B.R. Cohn's music heritage and tasting setting can add experiential value to a shipment, but those benefits should support, not replace, clear delivery terms. Verify current event and tasting access before assigning them financial value.
2442
2443A flexible club fits real consumption better than a rigid schedule. Read the written terms before submitting payment information, and choose the format that matches your storage, drinking habits, and appetite for curated discovery.
2444
2445## 3. Pricing Structure and Value Proposition
2446
2447Is the membership delivering savings you will use, or sending more wine to your door? Judge the offer by its total cost, allocation access, and experiential value. The bottle price is only one part of the decision. Include shipping, taxes, membership charges, and benefits that match your habits.
2448
2449Member discounts can improve the economics for regular direct purchasers, particularly when membership also provides access to estate or reserve wines. The discount matters less for occasional buyers who rarely order wine or do not use tasting and event benefits. Treat savings as a decision factor, not proof of value. The right question is whether the discount offsets the recurring commitment for your expected purchases.
2450
2451B.R. Cohn's current loyalty structure includes **two seasonal options**. Its Backstage tier lists an average allocation price of **$300**, with the final amount varying according to the wines selected [on the official B.R. Cohn wine club page](https://www.brcohn.com/wine-club). Use that figure as an allocation reference, not a fixed charge for every shipment. The value depends on whether you want curated discovery, access to old-vine and estate wines, and a connection to the Sonoma Valley property, rather than only a lower bottle price.
2452
2453![Two people toasting with glasses of red wine at a scenic vineyard table with cheese and crackers.](https://cdnimg.co/b09ef9e7-56b8-42ac-8446-839cd664add4/9598e961-ef5a-4d64-b089-4901414a5aa5/wine-club-membership-benefits-wine-toast.jpg)
2454
2455### Calculate usable value, not theoretical value
2456
2457Compare the complete club cost with the cost of buying comparable bottles directly. Count only benefits you expect to use, such as member pricing, tasting access, event invitations, or convenient direct ordering. A benefit has no financial value if you will not use it.
2458
2459- **Wine cost:** Record the allocation or shipment price and whether your selections can change it.
2460- **Delivery cost:** Add shipping and related handling charges.
2461- **Purchase savings:** Compare member pricing with the winery's direct retail price and similar bottles available locally or online.
2462- **Experience value:** Include tastings, music events, or estate visits only when you expect to attend.
2463- **Gifting value:** Consider whether direct access makes holiday or host gifting easier.
2464
2465Clear economics should guide any loyalty program decision. Buyers reviewing membership design can consult [loyalty platform rates for salons](https://bonusqr.com/pricing), while the winery's current terms should determine the final choice. B.R. Cohn's music heritage, Sonoma Valley estate, and tasting setting can strengthen the experiential case, but wanted wines, transparent charges, and realistic usage should carry the most weight.
2466
2467## 4. Tasting Room Access and Experiential Benefits
2468
2469Could tasting-room access matter more to you than bottle savings? For local residents, weekend travelers, and hosts planning gatherings, it can turn a wine allocation into a repeat destination. For members who rarely visit Sonoma Valley, the same benef
2469it may have little practical value.
2470
2471B.R. Cohn provides a specific member tasting benefit. Starting **July 1**, members receive complimentary tasting visits for **four guests, twice per quarter**. Reservations go through Tock, using the email connected to the membership, as explained [in the winery's membership announcement](https://www.brcohn.com/introducing-new-wine-clubs/). This suits couples, families of legal drinking age, and members who bring guests. Confirm current availability and booking requirements before planning the trip.
2472
2473The estate's music heritage adds experiential value beyond the tasting itself. Bruce Cohn's connection to The Doobie Brothers gives B.R. Cohn a distinct cultural identity that may shape music events, wine service, and themed gatherings. Choose membership for this reason only if you expect to attend. The story strengthens the destination, but it does not replace wines you enjoy or terms you can use.
2474
2475### Assess experience by likely usage
2476
2477Ask which tastings are complimentary, which experiences cost extra, and how far ahead reservations must be made. Check whether the calendar includes music events, dinners, vertical tastings, or other member programming. Confirm the details rather than assuming membership includes every event.
2478
2479Distance sets the true value. A complimentary visit saves little if travel to the Sonoma Valley estate is impractical. Review the [B.R. Cohn visit information](https://brcohn.com/visit) with the membership terms before booking.
2480
2481Wedding, corporate, and private celebration plans require separate verification. A wine club does not automatically provide event access, venue access, or special booking rights unless B.R. Cohn states those benefits in its terms. Choose membership for accessible tastings and realistic visits, then treat event potential as an added benefit.
2482
2483## 5. Quality and Consistency of Wines
2484
2485Does the club's wine style match your palate well enough to justify repeated shipments? Access to limited bottles has little value if the wines do not fit how you drink. Assess vineyard sources, winemaking approach, vintage variation, and portfolio breadth before committing.
2486
2487B.R. Cohn's estate identity is anchored by old-vine Zinfandel and Cabernet Sauvignon from Sonoma Valley. Mature vines can express the estate's regional character, while Cabernet releases suit drinkers who prefer structured reds for meals or cellaring. The estate's Sonoma Valley history since **1984** adds useful context, available through the [B.R. Cohn Sonoma Valley winery guide](https://brcohn.com/blog/best-wineries-in-sonoma-valley), but history should support your decision, not make it for you.
2488
2489Taste before you commit. Compare several wines and, where available, different vintages. Evaluate body, acidity, oak, tannin, sweetness, and age. If you prefer lighter styles, exclusive access to powerful reds is a poor trade.
2490
2491### Build a personal quality test
2492
2493- **Read the winery's notes:** Check varietal, vineyard, production, and aging information.
2494- **Taste the range:** Use the tasting room to assess several portfolio styles instead of judging the club by one favorite bottle.
2495- **Check continuity:** Ask how the winemaking philosophy responds to vintage variation.
2496- **Plan storage:** Request guidance for bottles intended to age.
2497- **Seek independent context:** Read established wine publications for broader perspective, while treating scores as reference points rather than substitutes for personal taste.
2498
2499A useful club delivers a recognizable house style across releases. That does not require identical vintages. Members should expect the wines to retain a clear connection to the estate while showing the conditions of each growing season. This distinction separates allocation access from curated discovery. Join for allocation access when you already trust the style and want particular releases. Choose curated discovery when you value guided variety and are willing to taste across the portfolio. B.R. Cohn's old-vine wines and Sonoma Valley estate setting support both paths, provided the actual wines suit your preferences.
2500
2501## 6. Cancellation Policies and Membership Commitment
2502
2503Before joining, read the exit terms as closely as the wine list. Auto-renewal, minimum purchases, cancellation deadlines, and pending shipments determine whether membership remains practical after the first release. A club should support your buying pattern, not force you into bottles you cannot use.
2504
2505Request the membership agreement in writing. Confirm whether cancellation is allowed at any time, tied to an anniversary date, or subject to advance notice. Check for termination fees, minimum spending, and charges for a shipment already being prepared. A clear policy reduces disputes and makes the commitment easier to assess.
2506
2507Retention depends partly on whether members can adjust their participation as circumstances change. A rigid structure may hold a dedicated collector who wants recurring allocation access, while a flexible one better suits travelers, occasional drinkers, or members managing limited storage. Use the [Refact analysis of membership models](https://refact.co/insights/digital-product/membership-website-examples) to evaluate how clearly a program communicates commitment and exit conditions.
2508
2509### Read the terms before the first shipment
2510
2511- **Auto-renewal:** Confirm how renewal works, when charges occur, and how the winery provides notice.
2512- **Cancellation timing:** Identify the deadline and whether cancellation stops a pending allocation or shipment.
2513- **Pause options:** Ask whether travel, health, or storage concerns can be handled with a temporary pause.
2514- **Downgrade choices:** Check whether you can move to a smaller or different tier.
2515- **Written confirmation:** Save the agreement and any customer-service confirmation of changes.
2516
2517Apply the same test to B.R. Cohn. Its Sonoma Valley estate, old-vine wines, tasting experiences, and music heritage may make recurring access worthwhile for a committed collector. Event potential adds value only if you will use it. If your priority is curated discovery rather than guaranteed allocation access, avoid a long commitment unless the pause, downgrade, and cancellation terms give you room to change course.
2518
2519The right membership has terms that match your expected purchases. Choose flexibility when your consumption varies, and accept a firmer commitment only when the wines and experiences justify regular shipments.
2520
2521## 7. Community and Networking Opportunities
2522
2523Wine club community matters only when it supports how you enjoy wine. Some members want food, music, regional travel, collecting, or direct contact with the winery team. Others want bottles delivered and will rarely attend events. Treat social access as a separate benefit from allocation access and curated discovery.
2524
2525B.R. Cohn has a clear foundation for a music-oriented community. Bruce Cohn's history with The Doobie Brothers gives the estate a story connected to live music, wine-pairing gatherings, and cultural events. Its Sonoma Valley setting can also add value for members who plan regular visits. Those experiences may justify membership for travelers and collectors, while home-focused buyers should not pay for benefits they will not use.
2526
2527A community promise needs specific evidence. Review the winery's event descriptions, member communications, guest rules, and reservation process before joining. The current [B.R. Cohn events calendar](https://brcohn.com/events) shows whether the available programming fits your interests and travel plans.
2528
2529### Test the social fit
2530
2531- **Event format:** Ask whether gatherings center on music, food, wine releases, education, or informal socializing.
2532- **Event schedule:** Check whether events occur often enough for your location and availability.
2533- **Guest policy:** Confirm whether members may bring guests and whether special events require separate reservations.
2534- **Geography:** Calculate the practical travel time to the Sonoma Valley estate.
2535- **Community access:** Ask whether members receive invitations, event updates, or other ways to stay connected between visits.
2536- **Availability:** Confirm whether membership creates access to stated experiences or merely provides eligibility to request them.
2537
2538Community value can extend to gifting and professional relationships. Estate visits may suit client hospitality, team gatherings, or personal celebrations, but use must follow the winery's stated policies. Membership gives you an opportunity to participate, not guaranteed private events or celebrity appearances.
2539
2540Choose this benefit only when you will attend, bring guests, or use the relationships and experiences. If you mainly want curated wines, evaluate the bottles first. If you want reliable allocation access, confirm that separately. Community should strengthen the membership decision, not disguise weak value elsewhere.
2541
2542## 8. Digital Tools, Communication, and Member Portal Access
2543
2544Membership value continues after the shipment arrives. Digital access determines whether members can manage orders, understand each bottle, and stay informed without contacting the winery for every request.
2545
2546A useful member account should keep payment details, preferences, shipment history, and contact information easy to find. Messages should clearly explain upcoming releases, tasting opportunities, and event availability. Digital tasting notes and pairing guidance add value when they help members learn from each shipment, rather than just promote another purchase.
2547
2548At B.R. Cohn, members use Tock with the email linked to their membership to book the stated complimentary tasting visits. Evaluate that connection before joining. Confirm the correct email, then check how reservations, guest counts, and available dates appear. A booking process that requires repeated clarification weakens the practical value of the benefit.
2549
2550### Evaluate the digital experience before joining
2551
2552- **Account management:** Check whether payment details, preferences, and contact information can be updated online.
2553- **Shipment control:** Look for skip, pause, or modification options instead of relying entirely on phone support.
2554- **Communication settings:** Ask how often emails arrive and whether promotional messages can be limited.
2555- **Content quality:** Request sample tasting notes, pairing suggestions, or educational material.
2556- **History and tracking:** Confirm that past shipments, current orders, and purchase records remain visible.
2557- **Privacy:** Review how the winery stores and uses personal information.
2558
2559Digital convenience cannot compensate for unwanted wines or restrictive membership terms. It does help members who travel, send gifts, manage a cellar, or plan visits to the Sonoma Valley estate. B.R. Cohn's old-vine wines and music heritage may make those visits more meaningful, but digital tools should make the practical side easy to manage.
2560
2561Judge this benefit by use, not novelty. Selection supports discovery, allocation access supports collectors, and reliable communication keeps the membership workable between releases. If you expect to adjust shipments, review orders, or arrange tasting visits online, verify those functions before joining. If you rarely use digital accounts, prioritize wine quality, pricing, and flexibility instead.
2562
2563## 8-Point Wine Club Membership Benefits Comparison
2564
2565| Item | Implementation complexity | Resource requirements | Expected outcomes | Ideal use cases | Key advantages |
2566|---|---:|---|---|---|---|
2567| Wine Selection, Allocation and Collector Appeal | High, allocation logistics, release scheduling, provenance tracking | High, limited inventory, specialized storage, collector communications | Exclusive access; potential appreciation; strong loyalty but lower liquidity | Collectors, investors, enthusiasts seeking rare estate bottlings | Scarcity-driven value, provenance, curated prestige |
2568| Shipment Frequency and Flexibility | Medium, scheduling, skip/pause systems, variable pack sizes | Medium, logistics, customer service, inventory forecasting | Better member satisfaction and planning when flexible; risk of overwhelm if too frequent | Households with varying consumption rates; members needing schedule control | Predictability, customizable cadence, reduced churn |
2569| Pricing Structure and Value Proposition | Medium, tiered pricing, discounts, fee handling, accounting | Medium, pricing strategy, billing systems, promotional management | Perceived savings and higher conversions when transparent; can deter price-sensitive buyers if fees high | Price-conscious buyers; members seeking savings on premium wines | Member discounts, bundled perks, predictable pricing |
2570| Tasting Room Access and Experiential Benefits | Medium–High, event coordination, reservation systems, hospital
2570ity operations | High, venue staffing, event production, reserve spaces | Strong engagement, deeper brand loyalty, higher lifetime value for local members | Local visitors, experience-driven customers, event hosts | Immersive experiences, community building, differentiated brand |
2571| Quality and Consistency of Wines | Medium, vineyard and winemaking consistency, quality controls | High, skilled winemaker, vineyard management, cellar and testing resources | Reliable product quality and reputation maintenance; variable by vintage | Members prioritizing wine quality, aging potential, and provenance | Traceability, stable house style, critical recognition |
2572| Cancellation Policies and Membership Commitment | Low–Medium, legal terms, billing flow, account controls | Low, CRM updates, policy documentation, customer support | Flexibility reduces churn; restrictive terms increase complaints and cancellations | Risk-averse consumers, trial members, uncertain buyers | Lower barrier to entry, clear expectations, higher member satisfaction |
2573| Community and Networking Opportunities | Medium, event programming, moderation, partnership coordination | Medium, events staff, online platform moderation, marketing resources | Increased engagement, social value, word-of-mouth advocacy | Social members, culturally aligned audiences, networking seekers | Social connection, themed events, member loyalty |
2574| Digital Tools, Communication, and Member Portal Access | Medium–High, portal development, integrations, security and UX | Medium–High, IT, content production, analytics, email systems | Greater convenience, self-service management, improved retention and personalization | Tech-savvy or remote members, subscribers who value control | Ease of account management, personalization, scalable communications |
2575
2576## Choose the Benefits You Will Actually Use
2577
2578Wine club membership is worth evaluating as a complete buying relationship, not as a recurring bottle order. The first decision is selection model. Allocation access suits a collector who wants priority access to limited estate and reserve wines. Curated selection suits a drinker who wants the winemaking team to introduce new bottles without making every choice personally. B.R. Cohn's Sonoma Valley focus, old-vine Zinfandel, and Cabernet Sauvignon make the distinction especially relevant for buyers deciding between cellar building and guided discovery.
2579
2580The next step is financial. Calculate the full annual cost, including the allocation price, shipping, taxes, and any fees. B.R. Cohn's Backstage tier has an average allocation price of **$300**, but the final amount varies with the selected wines [on the winery's official wine club page](https://www.brcohn.com/wine-club). That figure should be treated as a starting point for review, not as the complete cost of membership. Compare the wines and direct-purchase savings with what the member would buy elsewhere, then assign value only to perks the member expects to use.
2581
2582Shipment terms come next. Confirm cadence, bottle count, selection control, pause and skip options, and the process for changing or ending membership. Cancellation terms matter because a club should fit changing consumption patterns. A traveler, occasional drinker, or small household needs a different structure from a collector who wants regular allocations.
2583
2584Wine quality remains personal. Taste B.R. Cohn wines at the estate when possible, review the current portfolio, and decide whether the style suits meals, entertaining, gifting, or cellaring. The estate's tasting room and Sonoma Valley setting can add real value for visitors, especially when complimentary tasting access for four guests, twice per quarter, fits the member's travel pattern. Members should use the email associated with the account when booking through Tock, as required for the stated benefit [in B.R. Cohn's membership announcement](https://www.brcohn.com/introducing-new-wine-clubs/).
2585
2586Finally, assess the broader experience. Music events, member gatherings, wedding-related interest, corporate hospitality, gifting, and direct estate access may matter more than a modest bottle discount for some buyers. Those benefits shouldn't be assumed. Specific allocations, discounts, booking privileges, shipping options, event availability, and current terms should be confirmed directly on the [B.R. Cohn membership page](https://www.brcohn.com/wine-club) before enrollment.
2587
2588A practical decision sequence is straightforward:
2589
2590- **Compare access:** Decide whether allocation scarcity or curated discovery better matches the buying goal.
2591- **Calculate total cost:** Include every charge and count only benefits likely to be used.
2592- **Check flexibility:** Review shipment controls, cancellation terms, and auto-renewal language.
2593- **Taste the wines:** Match the estate's Zinfandel and Cabernet Sauvignon style to personal preferences.
2594- **Value the destination:** Consider tasting visits, music programming, events, gifting, weddings, and corporate use according to actual plans.
2595- **Confirm current details:** Review the winery's official terms before submitting payment information.
2596
2597B.R. Cohn Winery is a relevant option for drinkers who want Sonoma Valley wines paired with a tasting destination and music-centered estate identity. Membership makes the most sense when the member wants both the bottles and the access, and when the program's current terms align with real consumption and travel habits.
2598
2599---
2600
2601Visit [B.R. Cohn Winery](https://brcohn.com) to review the current wine club structure, explore estate wines, and plan a Sonoma Valley tasting. Prospective members should confirm allocation details, booking privileges, shipping terms, and event availability directly before joining.
2602`,U2=`---
2603title: "Sonoma Valley Wineries with Live Music Near Me 2026"
2604slug: "wineries-with-live-music-near-me"
2605date: "2026-07-22"
2606category: "Events & Weddings"
2607excerpt: "Explore wineries with live music near me in Sonoma Valley! Get 2026 schedules, top spots, and expert tips for your perfect visit."
2608featuredImage: "https://cdnimg.co/b09ef9e7-56b8-42ac-8446-839cd664add4/8ace270b-dd73-4d3e-be52-fe990e8d1be1/image.jpg"
2609focusKeyword: "wineries with live music near me"
2610---
2611
2612A lot of weekend searches start the same way. Someone is sitting in a hotel courtyard in Sonoma, or at a kitchen table in Marin, typing **wineries with live music near me** and hoping the results lead to something better than a generic tasting flight and a vague event calendar.
2613
2614What most people want is more specific than that search suggests. They want a place where the music isn't an afterthought, where the setting feels alive before the first sip, and where the practical details are clear enough to plan the day without guesswork. In Sonoma Valley, that kind of outing exists. The strongest version of it starts with a winery whose story has always been tied to the stage as much as the vineyard.
2615
2616## Your Guide to Sonoma Wineries with Live Music
2617
2618A strong Sonoma afternoon usually unfolds in layers. Sun on the vines. A shaded table or a patch of lawn. A glass of red catching the light. Then a guitar line or a small band settling into a set while people lean back and stay longer than planned.
2619
2620![A hand holds a glass of red wine in a sunlit vineyard during golden hour](https://cdnimg.co/b09ef9e7-56b8-42ac-8446-839cd664add4/14ee4064-e23d-4df9-af35-926033d3f692/wineries-with-live-music-near-me-wine-glass.jpg)
2621
2622That combination is why music-centered winery visits keep turning into full-day outings. A tasting becomes lunch. Lunch becomes an afternoon on the lawn. A quick stop becomes the place everyone in the group talks about on the drive home.
2623
2624For visitors looking at the [B.R. Cohn event calendar](https://brcohn.com/events), the appeal is immediate. The estate doesn't treat music like an occasional extra. It builds part of the visitor rhythm around it, which matters when travelers want a dependable answer instead of a maybe.
2625
2626### What makes these outings memorable
2627
2628Some wineries offer a scenic pour. Some offer a social scene. The memorable ones combine both with a clear sense of atmosphere.
2629
2630- **A regular schedule:** Guests can plan around known performance windows instead of hunting through scattered listings.
2631- **A setting with personality:** Vineyard views matter, but so does the feeling of the place.
2632- **A reason to linger:** Live music changes the pace. People settle in, order another glass, and let the afternoon stretch.
2633
2634> A good music winery visit doesn't feel rushed. It feels scored.
2635
2636That's why Sonoma's music-and-wine spots work so well for mixed groups. One person comes for Cabernet, another for the patio mood, another for the band. Everyone leaves happy when the place gets all three right.
2637
2638## The Original Music Winery B.R. Cohn's Rock and Roll Legacy
2639
2640Some winery stories begin with farming families or old cellars. This one begins with **Bruce Cohn**, the longtime manager of **The Doobie Brothers**, and that difference still shapes the estate.
2641
2642B.R. Cohn carries a music heritage that feels built in rather than added on later. The estate's identity has long been connected to rock and roll, which gives the tasting experience a different tone from the usual polished wine-country formula. For guests who care as much about the soundtrack as the pour, that origin story matters.
2643
2644A quick look at the estate captures that connection.
2645
2646![Screenshot from https://brcohn.com/events/](https://cdnimg.co/b09ef9e7-56b8-42ac-8446-839cd664add4/screenshots/58688e74-5e72-4cfd-8065-989d84c89b44/wineries-with-live-music-near-me-winery-event.
2646jpg)
2647
2648### A tradition that started in 1984
2649
2650The music program isn't recent. According to the [B.R. Cohn events page](https://www.brcohn.com/events/), **B.R. Cohn Winery established its Summer Music Series in 1984 upon the estate's founding in Sonoma Valley, a program that has run continuously for over four decades, with the current 2026 season stretching from May 23 through October 31, hosting live performances every weekend from 12:30 PM to 3:00 PM on the estate lawn.**
2651
2652That kind of continuity changes expectations. Visitors aren't arriving at a winery that occasionally books a performer. They're stepping into a place where live music has been part of the estate experience for decades.
2653
2654### Why the legacy still matters on site
2655
2656A long-running series does more than fill a calendar. It creates habits. Locals know when to come. Weekend travelers can build a full day around it. Event planners see a venue that already understands how music functions in an outdoor hospitality setting.
2657
2658The estate's identity also reaches beyond the lawn. Its musical backstory gives context to the tasting itself, and that's part of why music lovers tend to remember it so clearly. A visitor isn't just hearing a band in wine country. A visitor is spending time at a property whose brand was shaped by someone with real ties to American rock history.
2659
2660> **Local insight:** When a winery has music in its founding story, the atmosphere usually feels more natural. Guests notice that even if they can't explain why.
2661
2662### The mood before arrival
2663
2664The estate's music-first personality also works before anyone drives through the gate. Its monthly playlist extends the experience into trip planning, dinner prep, and post-visit nostalgia. That may sound small, but it's the kind of touch that turns a winery into a place with a point of view.
2665
2666For travelers building a Sonoma day around ambiance, that matters as much as the wine list. A place with a recognizable rhythm tends to attract guests who want more than a transaction. They want a setting.
2667
2668Those looking for the broader estate story, current releases, and visitor details can start with the [B.R. Cohn winery homepage](https://brcohn.com/). It's a useful first stop for those seeking a music-centered tasting day in Sonoma Valley that feels grounded in the place's actual history.
2669
2670## More Great Sonoma Wineries with Live Music
2671
2672Sonoma doesn't stop at one music destination. The region has a wider culture of pairing tasting rooms, patios, and vineyard views with live sets that encourage people to stay through the afternoon and into the evening.
2673
2674One of the clearer examples of that broader scene appears in the official county guide to summer wine-and-music outings. In the Sonoma County live music winery guide, **seven Sonoma County wineries, including B.R. Cohn, are officially featured in the "7 Sonoma County Wineries To Visit for Live Music This Summer" guide. B.R. Cohn's dedicated "Simmer Down Sundays" from 2:00 PM to 4:00 PM requires a $15 purchase from the tasting room menu for access, with reservations highly recommended.**
2675
2676That note matters because cost and access details are often the first thing guests want to know and the last thing event listings make obvious.
2677
2678### Sonoma Wineries Live Music Snapshot
2679
2680| Winery | Music Days & Times | Typical Genre | Reservations Recommended? | Vibe |
2681|---|---|---|---|---|
2682| B.R. Cohn | Summer Music Series weekends, 12:30 PM to 3:00 PM. Simmer Down Sundays, 2:00 PM to 4:00 PM | Live winery sets with a rock-and-roll spirit | Yes | Estate lawn energy, vineyard views, music-forward atmosphere |
2683| Other featured Sonoma County wineries | Schedules vary by venue | Varies by venue | Often a smart idea | Ranges from patio lounging to sunset social scenes |
2684
2685### How to choose the right stop
2686
2687A traveler deciding among Sonoma music wineries usually isn't choosing between good and bad. The primary choice is between moods.
2688
2689- **For a lawn-and-afternoon crowd:** A weekend series with a consistent time slot works well.
2690- **For a slower Sunday feel:** A patio event can suit groups that want background music and conversation.
2691- **For planners who want more than a casual tasting:** A venue with established event infrastru
2691cture stands out.
2692
2693That last point is where a visit to the [B.R. Cohn estate](https://brcohn.com/visit) fits naturally into a broader Sonoma itinerary. The property works for day-trippers who want music, but it also gives couples, hosts, and corporate planners a chance to see how the estate handles gatherings in real time.
2694
2695> Some visitors look for the loudest scene. Others want a place where the music complements the landscape instead of competing with it.
2696
2697### What sets the strongest venues apart
2698
2699The most useful distinction isn't genre. It's clarity. The wineries that guests remember tend to be the ones that make the basics easy to understand.
2700
2701They post recurring time windows. They explain access. They signal whether a reservation is the safe move. That removes friction, which is important for anyone planning around lunch, drivers, or a second tasting later in the day.
2702
2703For anyone using the search term **wineries with live music near me**, that's often the difference between an easy Sonoma outing and an overbooked, underexplained one.
2704
2705## Planning Your Perfect Wine and Music Outing
2706
2707A music winery day gets easier when the logistics are settled before the first cork is pulled. That matters because live events draw a different crowd than standard tastings. People arrive in groups, linger longer, and build more of the day around a single stop.
2708
2709![An infographic detailing five essential preparation steps for a perfect winery and live music outing.](https://cdnimg.co/b09ef9e7-56b8-42ac-8446-839cd664add4/47c8c031-18bd-44ae-aec7-4862a470ef17/wineries-with-live-music-near-me-wine-music-planning.jpg)
2710
2711The strongest practical rule is simple. Check the winery's online channels before leaving. According to Sonoma County winery review and search data, **user satisfaction surveys for winery-based live music events in Sonoma County show an average rating of 4.5 out of 5.0, with tool adoption for digital event promotion at 94%, correlating with a 40% higher reservation conversion rate. This confirms checking online is the best way to plan.**
2712
2713### Five steps that prevent a messy day
2714
27151. **Confirm the music window** 
2716 Guests should look for exact performance times, not just a generic event listing. A winery may have music on property but not during the tasting slot a group wants.
2717
27182. **Reserve early when the schedule is clear** 
2719 If a winery recommends reservations, that usually means walk-ins are a gamble during peak weekends.
2720
27213. **Pack for sitting, shade, and changing weather** 
2722 Lawn events feel easygoing, but a comfortable visit still depends on practical choices like layers, sun protection, and a plan for what can be brought on site.
2723
2724### The details that get overlooked
2725
2726Small errors tend to shape the day more than big ones. Late arrivals can mean poor seating. Unchecked policies can mean outside food isn't allowed. Groups that don't sort transportation early often cut the visit short.
2727
2728- **Transportation:** Someone should arrange a driver or a shared ride before the first tasting begins.
2729- **Policies:** Check rules on pets, outside snacks, and seating setups.
2730- **Timing:** Build in extra time for parking, check-in, and finding a good spot.
2731
2732> **Practical rule:** The easier a winery makes planning online, the smoother the on-site experience usually feels.
2733
2734For guests who want an ongoing connection after one successful visit, the [B.R. Cohn wine club](https://brcohn.com/wine-club) is one option tied to the estate's releases and updates.
2735
2736## Beyond a Day Trip Weddings and Corporate Events
2737
2738A winery with a real music identity can do something a standard venue can't. It gives an event a built-in story before the band starts, before the toasts, and before guests even sit down.
2739
2740That's why music-centered estates appeal to couples and company planners looking for more than a scenic backdrop. The venue already carries a theme. In Sonoma, that can translate into a reception on vineyard grounds, a team gathering with live entertainment woven into the schedule, or a celebration that feels less generic from the start. Couples researching [Sonoma wedding venues](https://brcohn.com/blog/sonoma-valley-wedding-venues) will find that the estate's music heritage translates naturally into a ceremony and reception setting unlike anything else in the valley.
2741
2742![A hand pours sparkling wine into a glass at a beautiful vineyard during golden hour sunset.](https://cdnimg.co/b09ef9e7-56b8-42ac-8446-839cd664add4/57223805-ffa7-48ef-a96b-ec3f37f28446/wineries-with-live-music-near-me-wine-tasting.jpg)
2743
2744### Why Saturday clarity matters
2745
2746Availability is often the hidden issue. Event planners may find plenty of winery listings, but not many make weekend inventory easy to understand. According to [weekend availability research referenced for event planning](https://arringtonvineyards.com/events-calendar/), **a frequently asked question for event planners is weekend availability. Recent trends in Sonoma show that 75% of wineries with active music calendars host events on weekends, yet only 30% of online listings clearly state this, making B.R. Cohn's clear Saturday availability for weddings a significant planning advantage.**
2747
2748That's a practical advantage, not just a branding one. Saturday dates matter for weddings, reunions, milestone birthdays, and company celebrations because guests can travel for them.
2749
2750### What planners are really buying
2751
2752They aren't only booking a property. They're booking atmosphere, schedule confidence, and a setting with personality.
2753
2754A venue like [B.R. Cohn private events](https://brcohn.com/private-events) fits that need because the estate already operates in the overlap between wine hospital
2754ity and music culture. For planners, that means the concept doesn't have to be invented from scratch. It's already there in the place itself.
2755
2756## Frequently Asked Questions About Sonoma Music Wineries
2757
2758People searching **wineries with live music near me** usually ask logistical questions first, not philosophical ones. Cost, timing, reservations, and group fit tend to decide the outing.
2759
2760### Are these events free?
2761
2762Sometimes, but not always. According to visitor behavior around winery music event pricing, people frequently want to know whether events are free, but many listings leave that unclear. Some winery events are included with a purchase, while others are ticketed or require a minimum spend.
2763
2764### Are reservations necessary?
2765
2766If the winery recommends them, guests should take that seriously. Music events compress demand into a set time window, so reservations usually protect the day from unnecessary friction.
2767
2768### Do wineries only host music at night?
2769
2770No. In Sonoma, live music often fits afternoon tasting hours, which is part of the appeal. That makes it easier to turn one stop into a full day without committing to a late evening plan.
2771
2772### Is live music a good fit for groups?
2773
2774Usually, yes. These outings work well for mixed groups because some people focus on the wine, while others settle into the social side of the event.
2775
2776> The smoothest visits happen when guests confirm the schedule, access terms, and house rules before leaving for the winery.
2777
2778---
2779
2780For travelers who want a Sonoma outing shaped by vineyard views, estate wines, and a genuine music backstory, [B.R. Cohn Winery](https://brcohn.com) offers a clear place to start.
2781`,I2=`---
2782title: "Winery Private Events: Your Guide to B.R. Cohn in Sonoma"
2783slug: "winery-private-events"
2784date: "2026-07-28"
2785category: "Events & Weddings"
2786excerpt: "Plan unforgettable winery private events in Sonoma. Our guide covers B.R. Cohn's unique venues, packages, and booking process for weddings and corporate events."
2787featuredImage: "https://cdnimg.co/b09ef9e7-56b8-42ac-8446-839cd664add4/3c02e1cf-c41b-4240-8798-238af66f45f7/image.jpg"
2788focusKeyword: "winery private events"
2789---
2790
2791The short list of venue options has already turned into a spreadsheet. One space looks beautiful but doesn't handle logistics well. Another is convenient but forgettable. A third seems promising until the fine print rules out the date that matters most.
2792
2793That's usually the point where winery private events start to make more sense than a standard banquet room. In Sonoma, the venue can do more than hold guests. It can shape the pace of the day, the arrival experience, the photography, the food and wine flow, and the feeling people carry home after the last toast.
2794
2795At the right estate, the event doesn't feel borrowed from a template. It feels rooted in a place.
2796
2797## Why Host Your Private Event in Sonoma Wine Country
2798
2799A private event in Sonoma works because the setting does part of the hosting. Guests don't walk into a neutral room and wait for the program to start. They arrive to vineyard rows, open sky, mature trees, and a rhythm that's slower than city venues usually allow. That shift matters for weddings, client dinners, milestone birthdays, and company gatherings that need warmth instead of corporate stiffness.
2800
2801![A hand holding a glass of red wine in a scenic vineyard during the golden hour sunset.](https://cdnimg.co/b09ef9e7-56b8-42ac-8446-839cd664add4/be0cc405-d365-4e30-a219-ad40f54d305b/winery-private-events-wine-glass.jpg)
2802
2803The strongest events in wine country don't treat the winery as background decor. They build around the full estate experience. Guests might begin with a welcome pour, move into a grove or barn for conversation, then settle into dinner with the scenery still visible instead of hidden behind drape and drywall. That progression feels natural because it is natural.
2804
2805According to the [Global Wine Tourism Report 2025](https://www.youtube.com/watch?v=Pp4Pu4ViCLQ), **50% of wineries now specifically host culture-focused events such as music concerts and private gatherings**, reflecting a major shift toward using wine estates as premier venues for private events. That aligns with what planners already see on the ground. People want more than a room rental. They want a place with story, texture, and a sense of occasion.
2806
2807### Why a winery often beats a ballroom
2808
2809A ballroom usually asks the planner to create atmosphere from scratch. A Sonoma estate starts with atmosphere already in place.
2810
2811Three advantages stand out:
2812
2813- **Built-in setting:** Vineyard views, olive trees, and open-air transitions reduce how much décor has to work.
2814- **Better guest flow:** Outdoor and semi-outdoor spaces make arrivals, cocktail hours, and dinner service feel less compressed.
2815- **A stronger memory:** Guests remember where they were standing when the light changed over the vines. They rarely remember carpet patterns.
2816
2817> A winery event works best when the planner uses the property as part of the program, not just the address.
2818
2819### The Sonoma difference
2820
2821Sonoma wine country also suits mixed guest lists. Some people come for the wines. Others care more about scenery, food, or music. A winery setting gives each group something tangible to connect with, which makes hosting easier. That's especially valuable for corporate events where attendees may not know one another, and for weddings where families and friend groups are meeting for the first time.
2822
2823A venue visit helps clarify that quickly. The estate's [Sonoma Valley visitor experience](https://brcohn.com/visit) shows how the property operates as a destination rather than a simple rental site. That difference is usually what separates an event that feels scheduled from one that feels lived in.
2824
2825## Finding Your Perfect Space at B.R. Cohn
2826
2827Every event space has a personality. Some are better at creating intimacy. Others carry a larger visual statement and can absorb a crowd without feeling chaotic. At this estate, the right fit depends less on what sounds impressive on paper and more on how the event is supposed to feel once guests arrive.
2828
2829The Amphitheater suits planners who want a little drama in the best sense. It works for presentations that need a natural focal point, celebrations that benefit from a live performance atmosphere, and receptions where the setting should carry some theatrical energy before dinner even begins. A music-forward event belongs here because the layout supports that kind of momentum.
2830
2831The Olive Grove does the opposite. It quiets the event down. Under mature trees, smaller gatherings tend to feel more intentional, more conversational, and less performative. That's why it's a strong match for rehearsal dinners, anniversary dinners, private tastings, and executive meals where people need to hear one another.
2832
2833### How each space tends to function
2834
2835The Open Air Barn is the workhorse space. It handles formal dinners well, but it can also loosen up for a standing celebration, holiday party, or company reception that doesn't need a rigid seating chart. It has enough structure to feel organized and enough openness to stay relaxed.
2836
2837> **Planning rule:** Choose the space based on guest behavior, not just guest count. A seated dinner, a presentation-heavy offsite, and a mingling-forward party use square footage very differently.
2838
2839The estate's [private event options](https://brcohn.com/events) are easiest to evaluate by matching each venue to the event's real center of gravity. If the event revolves around performance, choose the space that frames performance. If it revolves around conversation, choose the space that lowers the volume naturally.
2840
2841### B.R. Cohn Event Venue Comparison
2842
2843| Venue | Seated Capacity | Standing Capacity | Best For |
2844|---|---:|---:|---|
2845| Olive Grove | Intimate gatherings | Intimate gatherings | Rehearsal dinners, private dinners, smaller celebrations |
2846| Amphitheater | Flexible by layout | Flexible by layout | Music-themed events, presentations, memorable ceremonies or receptions |
2847| Open Air Barn | 150 | 250 | Weddings, corporate dinners, holiday parties, larger social events |
2848
2849The numbers only tell part of the story. The room tone matters just as much.
2850
2851### Matching the vibe to the event
2852
2853A few practical pairings tend to work well:
2854
2855- **Wedding weekend events:** Olive Grove for the rehearsal dinner, then a larger main celebration in the barn or another primary event area.
2856- **Corporate programs:** Amphitheater for welcome remarks or a keynote-style moment, followed by dinner and networking in a more flexible space.
2857- **Milestone social events:** Open Air Barn for guest comfort and service flow, especially when the plan includes a seated meal and late-evening mingling.
2858
2859The best planners treat venue selection as operational strategy. The wrong backdrop creates friction all day. The right one solves problems before guests ever notice them.
2860
2861## Crafting a Legendary Event from Weddings to Corporate Gigs
2862
2863A great event at a winery should feel like it could only happen there. At B.R. Cohn, that means treating the estate's rock-and-roll history as part of the guest experience, not as a novelty layered on top at the last minute. The rare advantage here is practical as much as stylistic. Couples can pursue a premium Saturday wedding date without giving up the character that makes Sonoma events memorable in the first place.
2864
2865![Crafting a Legendary Event from Weddings to Corporate Gigs](https://cdnimg.co/b09ef9e7-56b8-42ac-8446-839cd664add4/e839b463-49b9-4832-bcac-97b85382f8c9/image.jpg)
2866
2867For weddings, the strongest plans usually start with one question. What should guests remember six months later? If the answer is only the view, the event risks feeling interchangeable with any other wine country venue. If the answer includes the ceremony, the music, the pacing of the night, and a few details that subtly reflect the estate's history, the celebration has a much stronger identity.
2868
2869### Weddings that feel personal instead of generic
2870
2871The best wedding design at B.R. Cohn uses restraint. Couples do not need guitars on every table or a playlist full of obvious classics. A better approach is to let the venue's history shape the mood in small, confident ways.
2872
2873A practical flow often works well:
2874
28751. **Arrival with intention**  
2876   Start with wine service, a polished welcome, and music that sets tone without overpowering conversation.
2877
28782. **Ceremony in a setting that already carries the scene**  
2879   Use the vineyard and mountain backdrop to do the visual work. That usually saves money on décor and keeps the ceremony focused.
2880
28813. **Cocktail hour with a bit more personality**  
2882   This is the right point to introduce subtle references to the estate's music legacy through playlists, menu naming, or printed details.
2883
28844. **Reception that changes pace at the right time**  
2885   Keep dinner warm and social, then let the evening open up into dancing or live performance once guests are ready for it.
2886
2887The trade-off is straightforward. A heavily themed wedding can feel forced fast. A lightly directed wedding with a clear point of view tends to age better in photos and feels more natural in person.
2888
2889For couples sorting through dates, ceremony options, and event details, the [B.R. Cohn weddings page](https://brcohn.com/weddings) is the right place to confirm current availability and planning information.
2890
2891### Corporate events people actually remember
2892
2893Corporate groups need more than a pretty setting. They need a schedule that respects attention span, service timing, and the reason people are gathering in the first place. At a property like this, the mistake is trying to run the day like a hotel ballroom program.
2894
2895The format works better when the agenda has shape. Open with a focused welcome. Keep presentations tight. Give people room to move and reset between formal moments. Then close with something that feels hosted rather than obligatory, whether that is a dinner, tasting, or music-forward evening reception.
2896
2897A few elements consistently improve corporate winery events:
2898
2899- **A clear opening:** Guests should know within the first ten minutes whether this is a strategy session, a client hospitality event, or a team celebration.
2900- **Shorter formal programming:** Long blocks of slides waste the setting and drain the room.
2901- **Food and wine timed to the agenda:** Service should support conversation, not interrupt it.
2902- **An ending with character:** A live set, a curated soundtrack, or a story-driven toast gives the event a finish people carry home.
2903
2904### Using the estate's history without overdoing it
2905
2906A winery private event offers planners the chance to make the occasion feel legendary, elevating it beyond a merely well-organized standard. The estate already has a built-in story. The job is to use it with discipline.
2907
2908Good choices are usually modest:
2909
2910- Curated music for each phase of the event
2911- Printed details that nod to the property's background
2912- A host script or welcome toast that gives guests context
2913- Entertainment that fits the crowd size and the hour
2914
2915B.R. Cohn Winery gives planners a combination that is hard to find in one place. Saturday wedding potential, Sonoma wine country atmosphere, and a real music legacy. Used well, that mix creates an event with both operational logic and a story guests will repeat later.
2916
2917## Understanding Event Packages and Budgeting
2918
2919Budget conversations go better when the planner separates fixed costs from variable ones. Winery private events often feel complicated because the venue fee is only one layer. Once the numbers are broken into venue, beverage minimums, guest count, and date choice, the decision gets much easier.
2920
2921![A visual breakdown comparing three different winery event packages, ranging from elegant to classic service levels.](https://cdnimg.co/b09ef9e7-56b8-42ac-8446-839cd664add4/2ac39e01-ae72-4589-a720-88026a65e805/winery-private-events-event-packages.jpg)
2922
2923For events of **70 to 150 guests in Sonoma Valley, Saturday venue fees peak at $11,500 in high season, while weekday rates can offer a 35% cost reduction**. Factoring in the **typical $25 minimum wine purchase per drinking-age guest** is critical to avoid budget overruns, as outlined on the [wedding and event pricing information](https://www.brcohn.com/weddings/).
2924
2925### Start with the date before the décor
2926
2927The date drives more of the budget than many planners expect. Saturday carries the premium because demand is strongest. Weekdays can create meaningful savings without changing the venue itself.
2928
2929That leads to a simple trade-off:
2930
2931- **Saturday** works best when guest travel, ceremony timing, and traditional expectations matter most.
2932- **Weekday** works best when the host wants the same setting with more budget room for food, music, or guest experience upgrades.
2933
2934If the event is flexible on day-of-week, the savings can be redirected into the parts guests notice.
2935
2936### A simple way to build the baseline
2937
2938For planning purposes, it helps to calculate in layers:
2939
2940| Budget Layer | What to Include |
2941|---|---|
2942| Venue fee | The base rental tied to season and day |
2943| Wine minimum | The required beverage spend based on drinking-age guests |
2944| Guest-driven additions | Catering, rentals, floral, entertainment, staffing |
2945| Experience upgrades | Welcome pours, tasting elements, live music integration |
2946
2947The venue fee is known early. The wine minimum should be added immediately, not later. That's the line item many planners underestimate.
2948
2949> **Budget check:** If the guest list includes many adults of drinking age, the wine minimum belongs in the first draft budget, not the third.
2950
2951### Package thinking helps even when pricing is custom
2952
2953Some planners get stuck trying to finalize every detail too early. A better approach is to think in service tiers first, then refine. The practical version looks like this:
2954
2955- **Classic direction:** Elegant setting, efficient service, fewer custom layers.
2956- **Signature direction:** More personalization, stronger food and beverage presence, more developed guest flow.
2957- **Full-service direction:** High-touch coordination, extensive styling, and a more programmed event ar
2957c.
2958
2959That framework helps clients decide where the money should work hardest. For one event, that may be live entertainment. For another, it may be a longer dinner with premium pours and upgraded seating.
2960
2961The clearest budgets are the ones that match spending to memory. Guests will remember comfort, pace, and hospitality long after they've forgotten what the napkin fold looked like.
2962
2963## Finalizing Your Booking and Vendor Logistics
2964
2965A strong booking process should make the final month feel calmer, not tighter. At B.R. Cohn, that matters even more because the property can support very different event styles, from a polished wedding dinner to a rock-and-roll-tinged celebration that uses the estate's personality instead of covering it up.
2966
2967![A step-by-step infographic titled B.R. Cohn Event Booking Process explaining how to reserve a winery event venue.](https://cdnimg.co/b09ef9e7-56b8-42ac-8446-839cd664add4/c9d64fbe-5374-415c-acce-83e95b0d1db6/winery-private-events-booking-process.jpg)
2968
2969Start with a clear inquiry through the [private event request form](https://brcohn.com/private-event-request). Include the event type, preferred date, guest range, and the part of the experience that matters most. Ceremony layout, seated dinner, cocktail-style flow, or live music all lead to different planning decisions.
2970
2971### The booking path that keeps decisions organized
2972
2973The cleanest events are built in order.
2974
29751. **Confirm the date, guest count, and space match**  
2976   A Saturday wedding at a Sonoma winery is usually the first thing to disappear from the calendar. If that date matters, verify fit before spending time on design concepts or vendor outreach.
2977
29782. **Read the proposal like an operations document**  
2979   Focus on access times, event end times, included areas, wine service expectations, and any venue-specific rules that affect catering, rentals, or entertainment.
2980
29813. **Build one master schedule for every vendor**  
2982   Caterer, planner, rentals, floral, photo, entertainment, and transportation should all be working from the same timeline. Different assumptions create day-of delays fast.
2983
29844. **Approve the floor plan before the final walkthrough**  
2985   Bar placement, dining layout, ceremony-to-reception transition, and backup weather plan should be settled early enough for every team to prepare correctly.
2986
2987### Entertainment and service coordination
2988
2989B.R. Cohn offers the opportunity to be more than a pretty wine country venue. The estate's rock-and-roll history gives planners permission to create an event with more personality, but only if the production side is handled well. A band that fits the setting, a clear sound plan, and guest flow that still protects conversation at dinner all matter.
2990
2991I usually advise clients to decide early whether music is background, a featured moment, or the backbone of the night. Each choice changes power needs, staging, timing, and how the room or outdoor area should be arranged. The same goes for wine service. A relaxed tasting moment, table-side pours, and a faster bar format each create a different pace.
2992
2993Good coordination protects the guest experience.
2994
2995Two practical rules tend to keep winery events on track:
2996
2997- **Match entertainment to the site and the hour.** Acoustic music during arrival and dinner works differently than a dance set after dessert.
2998- **Treat beverage service as crowd management, not just hospitality.** Bar count, service timing, and staff communication shape lines, pacing, and guest comfort.
2999
3000### Vendor questions to settle before the final walkthrough
3001
3002By the time the walkthrough happens, these answers should already be close to final:
3003
3004- **Load-in timing:** Which team arrives first, and when can rentals, floral, and catering begin setup?
3005- **Power and sound:** Where will the band or DJ go, and what electrical access is available there?
3006- **Service flow:** How will guests move from ceremony to cocktails to dinner without bottlenecks?
3007- **Bar setup:** How many service points are appropriate for the guest count and format?
3008- **Weather plan:** What shifts indoors, under cover, or in layout if conditions change?
3009- **Strike and pickup:** Who handles breakdown, and what is the removal schedule after guest departure?
3010
3011The best final walkthroughs are short because the hard decisions were made earlier. That leaves room to refine the atmosphere, which is exactly what a place like B.R. Cohn deserves.
3012
3013## Frequently Asked Questions About B.R. Cohn Events
3014
3015Some questions always come late in the process, even when the venue itself is already chosen. That's normal. Most of them come down to capacity, comfort, and what happens if the day needs to pivot.
3016
3017![Screenshot from https://brcohn.com/private-events/](https://cdnimg.co/b09ef9e7-56b8-42ac-8446-839cd664add4/screenshots/eb89d139-f863-4a5a-8431-5cf3525441dc/winery-private-events-outdoor-venue.jpg)
3018
3019### How many guests can the estate accommodate
3020
3021The estate accommodates **up to 150 guests for seated events using 60-inch round tables, with a maximum capacity of 250 guests for larger standing gatherings in its main event spaces**, based on the [event room listing details](https://www.tagvenue.com/us/rooms/san-francisco/47302/br-cohn-winery/event-room).
3022
3023### What happens if weather changes the plan
3024
3025Outdoor and semi-outdoor events should always be planned with a backup layout in mind. The strongest event plans don't wait for a forecast crisis. They decide in advance what moves, what stays, and who makes the final call.
3026
3027### Are winery private events suitable for corporate groups as well as weddings
3028
3029Yes. The property's spaces support both social celebrations and company functions. The key is matching format to purpose. A team offsite needs different pacing than a reception, even when both happen in the same venue family.
3030
3031### What details should guests ask about early
3032
3033Parking, accessibility, setup windows, entertainment logistics, and decoration boundaries should all be addressed before vendors start building assumptions. That keeps quote revisions and day-of surprises to a minimum.
3034
3035### Where should planners make direct contact
3036
3037The cleanest next step is to contact the venue team through the [estate contact page](https://brcohn.com/contact). A direct conversation usually resolves timing, guest-count fit, and event-style questions faster than piecing together answers from multiple emails.
3038
3039Winery private events work best when the venue adds more than scenery. The right estate gives the host atmosphere, flexibility, and a story guests can feel. In Sonoma, that combination is what turns a gathering into something people talk about long after the last glass is cleared.
3040
3041---
3042
3043For planners who want a Sonoma event with real character, [B.R. Cohn Winery](https://brcohn.com) is worth contacting early. The estate combines wine country setting, flexible private event spaces, and a music-rooted identity that supports weddings, corporate gatherings, and milestone celebrations with more personality than a standard venue.
3044`;function df(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var xi=df();function Jb(t){xi=t}var yi={exec:()=>null};function Ss(t){let e=[];return a=>{let s=Math.max(0,Math.min(3,a-1)),o=e[s];return o||(o=t(s),e[s]=o),o}}function ye(t,e=""){let a=typeof t=="string"?t:t.source,s={replace:(o,c)=>{let u=typeof c=="string"?c:c.source;return u=u.replace(Ct.caret,"$1"),a=a.replace(o,u),s},getRegex:()=>new RegExp(a,e)};return s}var q2=((t="")=>{try{return!!new RegExp("(?<=1)(?<!1)"+t)}catch{return!1}})(),Ct={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine
vendor: 6,830 bytes, lines 3044-3045
3044:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:t=>new RegExp(`^( {0,3}${t})((?:[	 ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:Ss(t=>new RegExp(`^ {0,${t}}(?:[*+-]|\\d{1,9}[.)])((?:[ 	][^\\n]*)?(?:\\n|$))`)),hrRegex:Ss(t=>new RegExp(`^ {0,${t}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)),fencesBeginRegex:Ss(t=>new RegExp(`^ {0,${t}}(?:\`\`\`|~~~)`)),headingBeginRegex:Ss(t=>new RegExp(`^ {0,${t}}#`)),htmlBeginRegex:Ss(t=>new RegExp(`^ {0,${t}}<(?:[a-z].*>|!--)`,"i")),blockquoteBeginRegex:Ss(t=>new RegExp(`^ {0,${t}}>`))},$2=/^(?:[ \t]*(?:\n|$))+/,V2=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,H2=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,go=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,G2=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,ff=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,Zb=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Xb=ye(Zb).replace(/bull/g,ff).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),W2=ye(Zb).replace(/bull/g,ff).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),pf=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/,F2=/^[^\n]+/,gf=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,K2=ye(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",gf).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Y2=ye(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,ff).getRegex(),Pc="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",mf=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Q2=ye("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n*|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>[^\\n]*\\n*|$)|<![A-Z][\\s\\S]*?(?:>[^\\n]*\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>[^\\n]*\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ 	]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ 	]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ 	]*)+\\n|$))","i").replace("comment",mf).replace("tag",Pc).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),e0=t=>ye(pf).replace("hr",go).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~~~)[^\\n]*\\n").replace("list",t).replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Pc).getRegex(),J2=e0(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/),Z2=e0(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/),X2=ye(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Z2).getRegex(),yf={blockquote:X2,code:V2,def:K2,fences:H2,heading:G2,hr:go,html:Q2,lheading:Xb,list:Y2,newline:$2,paragraph:J2,table:yi,text:F2},sw=ye("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",go).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3}	)[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~~~)[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Pc).getRegex(),eB={...yf,lheading:W2,table:sw,paragraph:ye(pf).replace("hr",go).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",sw).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~~~)[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Pc).getRegex()},tB={...yf,html:ye(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",mf).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:yi,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:ye(pf).replace("hr",go).replace("heading",` *#{1,6} *[^
3045]`).replace("lheading",Xb).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},nB=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,aB=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,t0=/^( {2,}|\\)\n(?!\s*$)/,iB=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,oa=/[\p{P}\p{S}]/u,Ls=/[\s\p{P}\p{S}]/u,mo=/[^\s\p{P}\p{S}]/u,sB=ye(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Ls).getRegex(),rB=/[\p{Pi}\p{Ps}"']/u,n0=/(?!~)[\p{P}\p{S}]/u,oB=/(?!~)[\s\p{P}\p{S}]/u,lB=/(?:[^\s\p{P}\p{S}]|~)/u,cB=ye(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("prec
3045ode-",q2?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),a0=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,uB=ye(a0,"u").replace(/punct/g,oa).getRegex(),hB=ye(a0,"u").replace(/punct/g,n0).getRegex(),dB=/^(?:\*+(?:((?!\*)(?!openQuote)punct)|([^\s*]))?)|^_+(?:((?!_)(?!openQuote)punct)|([^\s_]))?/,fB=ye(dB,"u").replace(/openQuote/g,rB).replace(/punct/g,oa).getRegex(),i0="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",pB=ye(i0,"gu").replace(/notPunctSpace/g,mo).replace(/punctSpace/g,Ls).replace(/punct/g,oa).getRegex(),gB=ye(i0,"gu").replace(/notPunctSpace/g,lB).replace(/punctSpace/g,oB).replace(/punct/g,n0).getRegex(),mB="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)[\\s](\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|(?:(?!\\*)punct|notPunctSpace)(\\*+)(?!\\*)(?=notPunctSpace)",yB=ye(mB,"gu").replace(/notPunctSpace/g,mo).replace(/punctSpace/g,Ls).replace(/punct/g,oa).getRegex(),vB=ye("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,mo).replace(/punctSpace/g,Ls).replace(/punct/g,oa).getRegex(),wB="^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)[\\s](_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)|(?:(?!_)punct|notPunctSpace)(_+)(?!_)(?=notPunctSpace)",bB=ye(wB,"gu").replace(/notPunctSpace/g,mo).replace(/punctSpace/g,Ls).replace(/punct/g,oa).getRegex(),SB=ye(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,oa).getRegex(),kB="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",_B=ye(kB,"gu").replace(/notPunctSpace/g,mo).replace(/punctSpace/g,Ls).replace(/punct/g,oa).getRegex(),TB=ye(/\\(punct)/,"gu").replace(/punct/g,oa).getRegex(),RB=ye(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),AB=ye(mf).replace("(?:-->|$)","-->").getRegex(),CB=ye("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",AB).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),vc=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,EB=ye(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",vc).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),s0=ye(/^!?\[(label)\]\[(ref)\]/).replace("label",vc).replace("ref",gf).getRegex(),r0=ye(/^!?\[(ref)\](?:\[\])?/).replace("ref",gf).getRegex(),xB=ye("reflink|nolink(?!\\()","g").replace("reflink",s0).replace("nolink",r0).getRegex(),rw=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,vf={_backpedal:yi,anyPunctuation:TB,autolink:RB,blockSkip:cB,br:t0,code:aB,del:yi,delLDelim:yi,delRDelim:yi,emStrongLDelim:uB,emStrongRDelimAst:pB,emStrongRDelimUnd:vB,escape:nB,link:EB,nolink:r0,punctuation:sB,reflink:s0,reflinkSearch:xB,tag:CB,text:iB,url:yi},OB={...vf,emStrongLDelim:fB,emStrongRDelimAst:yB,emStrongRDelimUnd:bB,link:ye(/^!?\[(label)\]\((.*?)\)/).replace("label",vc).getRegex(),reflink:ye(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",vc).getRegex()},Fd={...vf,emStrongRDelimAst:gB,emStrongLDelim:hB,delLDelim:SB,delRDelim:_B,url:ye(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",rw).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:ye(/^(`+|~+|[^`~])(?:(?=[`~])|(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",rw).getRegex()},BB={...Fd,br:ye(t0).replace("{2,}","*").getRegex(),text:ye(Fd.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Yl={normal:yf,gfm:eB,pedantic:tB},qr={normal:vf,gfm:Fd,breaks:BB,pedantic:OB},jB={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},ow=t=>jB[t];function An(t,e){if(e){if(Ct.escapeTest.test(t))return t.replace(Ct.escapeReplace,ow)}else if(Ct.escapeTestNoEncode.test(t))return t.replace(Ct.escapeReplaceNoEncode,ow);return t}function lw(t){try{t=encodeURI(t).replace(Ct.percentDecode,"%")}catch{return null}return t}function cw(t,e){let a=t.replace(Ct.findPipe,(c,u,d)=>{let p=!1,g=u;for(;--g>=0&&d[g]==="\\";)p=!p;return p?"|":" |"}),s=a.split(Ct.splitPipe),o=0;if(s[0].trim()||s.shift(),s.length>0&&!s.at(-1)?.trim()&&s.pop(),e)if(s.length>e)s.splice(e);else for(;s.length<e;)s.push("");for(;o<s.length;o++)s[o]=s[o].trim().replace(Ct.slashPipe,"|");return s}function Da(t,e,a){let s=t.length;if(s===0)return"";let o=0;for(;o<s&&t.charAt(s-o-1)===e;)o++;return t.slice(0,s-o)}function uw(t){let e=t.split(`
3046`),a=e.length-1;for(;a>=0&&Ct.blankLine.test(e[a]);)a--;return e.length-a<=2?t:e.slice(0,a+1).join(`
3047`)}function MB(t,e){if(t.indexOf(e[1])===-1)return-1;let a=0;for(let s=0;s<t.length;s++)if(t[s]==="\\")s++;else if(t[s]===e[0])a++;else if(t[s]===e[1]&&(a--,a<0))return s;return a>0?-2:-1}function DB(t,e=0){let a=e,s="";
vendor: 9,913 bytes, lines 3047-3075
3047for(let o of t)if(o==="	"){let c=4-a%4;s+=" ".repeat(c),a+=c}else s+=o,a++;return s}function hw(t,e,a,s,o){let c=e.href,u=e.title||null,d=t[1].replace(o.other.outputLinkReplace,"$1");s.state.inLink=!0;let p={type:t[0].charAt(0)==="!"?"image":"link",raw:a,href:c,title:u,text:d,tokens:s.inlineTokens(d)};return s.state.inLink=!1,p}function PB(t,e,a){let s=t.match(a.other.indentCodeCompensation);if(s===null)return e;let o=s[1];return e.split(`
3048`).map(c=>{let u=c.match(a.other.beginningSpace);if(u===null)return c;let[d]=u;return d.length>=o.length?c.slice(o.length):c}).join(`
3049`)}var wc=class{options;rules;lexer;constructor(t){this.options=t||xi}space(t){let e=this.rules.block.newline.exec(t);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}code(t){let e=this.rules.block.code.exec(t);if(e){let a=this.options.pedantic?e[0]:uw(e[0]),s=a.replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:a,codeBlockStyle:"indented",text:s}}}fences(t){let e=this.rules.block.fences.exec(t);if(e){let a=e[0],s=PB(a,e[3]||"",this.rules);return{type:"code",raw:a,lang:e[2]?e[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):e[2],text:s}}}heading(t){let e=this.rules.block.heading.exec(t);if(e){let a=e[2].trim();if(this.rules.other.endingHash.test(a)){let s=Da(a,"#");(this.options.pedantic||!s||this.rules.other.endingSpaceChar.test(s))&&(a=s.trim())}return{type:"heading",raw:Da(e[0],`
3050`),depth:e[1].length,text:a,tokens:this.lexer.inline(a)}}}hr(t){let e=this.rules.block.hr.exec(t);if(e)return{type:"hr",raw:Da(e[0],`
3051`)}}blockquote(t){let e=this.rules.block.blockquote.exec(t);if(e){let a=Da(e[0],`
3052`).split(`
3053`),s="",o="",c=[];for(;a.length>0;){let u=!1,d=[],p;for(p=0;p<a.length;p++)if(this.rules.other.blockquoteStart.test(a[p]))d.push(a[p]),u=!0;else if(!u)d.push(a[p]);else break;a=a.slice(p);let g=d.join(`
3054`),y=g.replace(this.rules.other.blockquoteSetextReplace,`
3055    $1`).replace(this.rules.other.blockquoteSetextReplace2,"");s=s?`${s}
3056${g}`:g,o=o?`${o}
3057${y}`:y;let m=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(y,c,!0),this.lexer.state.top=m,a.length===0)break;let w=c.at(-1);if(w?.type==="code")break;if(w?.type==="blockquote"){let b=w,S=a.join(`
3058`),A=b.raw+`
3059`+S.replace(this.rules.other.blockquoteSetextReplace2,""),_=this.blockquote(A);c[c.length-1]=_,s=`${s}
3060${S}`,o=o.substring(0,o.length-b.text.length)+_.text;break}else if(w?.type==="list"){let b=w,S=b.raw+`
3061`+a.join(`
3062`),A=this.list(S);c[c.length-1]=A,s=s.substring(0,s.length-w.raw.length)+A.raw,o=o.substring(0,o.length-b.raw.length)+A.raw,a=S.substring(c.at(-1).raw.length).split(`
3063`);continue}}return{type:"blockquote",raw:s,tokens:c,text:o}}}list(t){let e=this.rules.block.list.exec(t);if(e){let a=e[1].trim(),s=a.length>1,o={type:"list",raw:"",ordered:s,start:s?+a.slice(0,-1):"",loose:!1,items:[]};a=s?`\\d{1,9}\\${a.slice(-1)}`:`\\${a}`,this.options.pedantic&&(a=s?a:"[*+-]");let c=this.rules.other.listItemRegex(a),u=!1;for(;t;){let p=!1,g="",y="";if(!(e=c.exec(t))||this.rules.block.hr.test(t))break;g=e[0],t=t.substring(g.length);let m=DB(e[2].split(`
3064`,1)[0],e[1].length),w=t.split(`
3065`,1)[0],b=!m.trim(),S=0;if(this.options.pedantic?(S=2,y=m.trimStart()):b?S=e[1].length+1:(S=m.search(this.rules.other.nonSpaceChar),S=S>4?1:S,y=m.slice(S),S+=e[1].length),b&&this.rules.other.blankLine.test(w)&&(g+=w+`
3066`,t=t.substring(w.length+1),p=!0),!p){let A=this.rules.other.nextBulletRegex(S),_=this.rules.other.hrRegex(S),C=this.rules.other.fencesBeginRegex(S),B=this.rules.other.headingBeginRegex(S),j=this.rules.other.htmlBeginRegex(S),D=this.rules.other.blockquoteBeginRegex(S);for(;t;){let F=t.split(`
3067`,1)[0],V;if(w=F,this.options.pedantic?(w=w.replace(this.rules.other.listReplaceNesting,"  "),V=w):V=w.replace(this.rules.other.tabCharGlobal,"    "),C.test(w)||B.test(w)||j.test(w)||D.test(w)||A.test(w)||_.test(w))break;if(V.search(this.rules.other.nonSpaceChar)>=S||!w.trim())y+=`
3068`+V.slice(S);else{if(b||m.replace(this.rules.other.tabCharGlobal,"    ").search(this.rules.other.nonSpaceChar)>=4||C.test(m)||B.test(m)||_.test(m))break;y+=`
3069`+w}b=!w.trim(),g+=F+`
3070`,t=t.substring(F.length+1),m=V.slice(S)}}o.loose||(u?o.loose=!0:this.rules.other.doubleBlankLine.test(g)&&(u=!0)),o.items.push({type:"list_item",raw:g,task:!!this.options.gfm&&this.rules.other.listIsTask.test(y),loose:!1,text:y,tokens:[]}),o.raw+=g}let d=o.items.at(-1);if(d)d.raw=d.raw.trimEnd(),d.text=d.text.trimEnd();else return;o.raw=o.raw.trimEnd();for(let p of o.items){this.lexer.state.top=!1,p.tokens=this.lexer.blockTokens(p.text,[]);let g=p.tokens[0];if(p.task&&(g?.type==="text"||g?.type==="paragraph")){p.text=p.text.replace(this.rules.other.listReplaceTask,""),g.raw=g.raw.replace(this.rules.other.listReplaceTask,""),g.text=g.text.replace(this.rules.other.listReplaceTask,"");for(let m=this.lexer.inlineQueue.length-1;m>=0;m--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[m].src)){this.lexer.inlineQueue[m].src=this.lexer.inlineQueue[m].src.replace(this.rules.other.listReplaceTask,"");break}let y=this.rules.other.listTaskCheckbox.exec(p.raw);if(y){let m={type:"checkbox",raw:y[0]+" ",checked:y[0]!=="[ ]"};p.checked=m.checked,o.loose?p.tokens[0]&&["paragraph","text"].includes(p.tokens[0].type)&&"tokens"in p.tokens[0]&&p.tokens[0].tokens?(p.tokens[0].raw=m.raw+p.tokens[0].raw,p.tokens[0].text=m.raw+p.tokens[0].text,p.tokens[0].tokens.unshift(m)):p.tokens.unshift({type:"paragraph",raw:m.raw,text:m.raw,tokens:[m]}):p.tokens.unshift(m)}}else p.task&&(p.task=!1);if(!o.loose){let y=p.tokens.filter(w=>w.type==="space"),m=y.length>0&&y.some(w=>this.rules.other.anyLine.test(w.raw));o.loose=m}}if(o.loose)for(let p of o.items){p.loose=!0;for(let g of p.tokens)g.type==="text"&&(g.type="paragraph")}return o}}html(t){let e=this.rules.block.html.exec(t);if(e){let a=uw(e[0]);return{type:"html",block:!0,raw:a,pre:e[1]==="pre"||e[1]==="script"||e[1]==="style",text:a}}}def(t){let e=this.rules.block.def.exec(t);if(e){let a=e[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),s=e[2]?e[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",o=e[3]?e[3].substring(1,e[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):e[3];return{type:"def",tag:a,raw:Da(e[0],`
3071`),href:s,title:o}}}table(t){let e=this.rules.block.table.exec(t);if(!e||!this.rules.other.tableDelimiter.test(e[2]))return;let a=cw(e[1]),s=e[2].replace(this.rules.other.tableAlignChars,"").split("|"),o=e[3]?.trim()?e[3].replace(this.rules.other.tableRowBlankLine,"").split(`
3072`):[],c={type:"table",raw:Da(e[0],`
3073`),header:[],align:[],rows:[]};if(a.length===s.length){for(let u of s)this.rules.other.tableAlignRight.test(u)?c.align.push("right"):this.rules.other.tableAlignCenter.test(u)?c.align.push("center"):this.rules.other.tableAlignLeft.test(u)?c.align.push("left"):c.align.push(null);for(let u=0;u<a.length;u++)c.header.push({text:a[u],tokens:this.lexer.inline(a[u]),header:!0,align:c.align[u]});for(let u of o)c.rows.push(cw(u,c.header.length).map((d,p)=>({text:d,tokens:this.lexer.inline(d),header:!1,align:c.align[p]})));return c}}lheading(t){let e=this.rules.block.lheading.exec(t);if(e){let a=e[1].trim();return{type:"heading",raw:Da(e[0],`
3074`),depth:e[2].charAt(0)==="="?1:2,text:a,tokens:this.lexer.inline(a)}}}paragraph(t){let e=this.rules.block.paragraph.exec(t);if(e){let a=e[1].charAt(e[1].length-1)===`
3075`?e[1].slice(0,-1):e[1];return{type:"paragraph",raw:e[0],text:a,tokens:this.lexer.inline(a)}}}text(t){let e=this.rules.block.text.exec(t);if(e)return{type:"text",raw:e[0],text:e[0],tokens:this.lexer.inline(e[0])}}escape(t){let e=this.rules.inline.escape.exec(t);if(e)return{type:"escape",raw:e[0],text:e[1]}}tag(t){let e=this.rules.inline.tag.exec(t);if(e)return!this.lexer.state.inLink&&this.rules.other.startATag.test(e[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(e[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(e[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(e[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:e[0]}}link(t){let e=this.rules.inline.link.exec(t);if(e){let a=e[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(a)){if(!this.rules.other.endAngleBracket.test(a))return;let c=Da(a.slice(0,-1),"\\");if((a.length-c.length)%2===0)return}else{let c=MB(e[2],"()");if(c===-2)return;if(c>-1){let u=(e[0].indexOf("!")===0?5:4)+e[1].length+c;e[2]=e[2].substring(0,c),e[0]=e[0].substring(0,u).trim(),e[3]=""}}let s=e[2],o="";if(this.options.pedantic){let c=this.rules.other.pedanticHrefTitle.exec(s);c&&(s=c[1],o=c[3])}else o=e[3]?e[3].slice(1,-1):"";return s=s.trim(),this.rules.other.startAngleBracket.test(s)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(a)?s=s.slice(1):s=s.slice(1,-1)),hw(e,{href:s&&s.replace(this.rules.inline.anyPunctuation,"$1"),title:o&&o.replace(this.rules.inline.anyPunctuation,"$1")},e[0],this.lexer,this.rules)}}reflink(t,e){let a;if((a=this.rules.inline.reflink.exec(t))||(a=this.rules.inline.nolink.exec(t))){let s=(a[2]||a[1]).replace(this.rules.other.multipleSpaceGlobal," "),o=e[s.toLowerCase()];if(!o){let c=a[0].charAt(0);return{type:"text",raw:c,text:c}}return hw(a,o,a[0],this.lexer,this.rules)}}emStrong(t,e,a=""){let s=this.rules.inline.emStrongLDelim.exec(t);if(!(!s||!s[1]&&!s[2]&&!s[3]&&!s[4]||s[4]&&a.match(this.rules.other.unicodeAlphaNumeric))&&(!(s[1]||s[3])||!a||this.rules.inline.punctuation.exec(a))){let o=[...s[0]].length-1,c,u,d=o,p=0,g=s[0][0],y=a===g,m=g==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(m.lastIndex=0,e=e.slice(-1*t.length+o);(s=m.exec(e))!==null;){if(c=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!c)continue;if(u=[...c].length,s[3]||s[4]){d+=u;continue}
vendor: 12,266 bytes, lines 3075-3107
3075else if(s[5]||s[6]){if(o%3&&!((o+u)%3)){p+=u;continue}if(y)break}if(d-=u,d>0)continue;u=Math.min(u,u+d+p);let w=[...s[0]][0].length,b=t.slice(0,o+s.index+w+u);if(Math.min(o,u)%2){let A=b.slice(1,-1);return{type:"em",raw:b,text:A,tokens:this.lexer.inlineTokens(A)}}let S=b.slice(2,-2);return{type:"strong",raw:b,text:S,tokens:this.lexer.inlineTokens(S)}}}}codespan(t){let e=this.rules.inline.code.exec(t);if(e){let a=e[2].replace(this.rules.other.newLineCharGlobal," "),s=this.rules.other.nonSpaceChar.test(a),o=this.rules.other.startingSpaceChar.test(a)&&this.rules.other.endingSpaceChar.test(a);return s&&o&&(a=a.substring(1,a.length-1)),{type:"codespan",raw:e[0],text:a}}}br(t){let e=this.rules.inline.br.exec(t);if(e)return{type:"br",raw:e[0]}}del(t,e,a=""){let s=this.rules.inline.delLDelim.exec(t);if(s&&(!s[1]||!a||this.rules.inline.punctuation.exec(a))){let o=[...s[0]].length-1,c,u,d=o,p=this.rules.inline.delRDelim;for(p.lastIndex=0,e=e.slice(-1*t.length+o);(s=p.exec(e))!==null;){if(c=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!c||(u=[...c].length,u!==o))continue;if(s[3]||s[4]){d+=u;continue}if(d-=u,d>0)continue;u=Math.min(u,u+d);let g=[...s[0]][0].length,y=t.slice(0,o+s.index+g+u),m=y.slice(o,-o);return{type:"del",raw:y,text:m,tokens:this.lexer.inlineTokens(m)}}}}autolink(t){let e=this.rules.inline.autolink.exec(t);if(e){let a,s;return e[2]==="@"?(a=e[1],s="mailto:"+a):(a=e[1],s=a),{type:"link",raw:e[0],text:a,href:s,tokens:[{type:"text",raw:a,text:a}]}}}url(t){let e;if(e=this.rules.inline.url.exec(t)){let a,s;if(e[2]==="@")a=e[0],s="mailto:"+a;else{let o;do o=e[0],e[0]=this.rules.inline._backpedal.exec(e[0])?.[0]??"";while(o!==e[0]);a=e[0],e[1]==="www."?s="http://"+e[0]:s=e[0]}return{type:"link",raw:e[0],text:a,href:s,tokens:[{type:"text",raw:a,text:a}]}}}inlineText(t){let e=this.rules.inline.text.exec(t);if(e){let a=this.lexer.state.inRawBlock;return{type:"text",raw:e[0],text:e[0],escaped:a}}}},yn=class Kd{tokens;options;state;inlineQueue;tokenizer;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||xi,this.options.tokenizer=this.options.tokenizer||new wc,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let a={other:Ct,block:Yl.normal,inline:qr.normal};this.options.pedantic?(a.block=Yl.pedantic,a.inline=qr.pedantic):this.options.gfm&&(a.block=Yl.gfm,this.options.breaks?a.inline=qr.breaks:a.inline=qr.gfm),this.tokenizer.rules=a}static get rules(){return{block:Yl,inline:qr}}static lex(e,a){return new Kd(a).lex(e)}static lexInline(e,a){return new Kd(a).inlineTokens(e)}lex(e){e=e.replace(Ct.carriageReturn,`
3076`),this.blockTokens(e,this.tokens);for(let a=0;a<this.inlineQueue.length;a++){let s=this.inlineQueue[a];this.inlineTokens(s.src,s.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,a=[],s=!1){this.tokenizer.lexer=this,this.options.pedantic&&(e=e.replace(Ct.tabCharGlobal,"    ").replace(Ct.spaceLine,""));let o=1/0;for(;e;){if(e.length<o)o=e.length;else{this.infiniteLoopError(e.charCodeAt(0));break}let c;if(this.options.extensions?.block?.some(d=>(c=d.call({lexer:this},e,a))?(e=e.substring(c.raw.length),a.push(c),!0):!1))continue;if(c=this.tokenizer.space(e)){e=e.substring(c.raw.length);let d=a.at(-1);c.raw.length===1&&d!==void 0?d.raw+=`
3077`:a.push(c);continue}if(c=this.tokenizer.code(e)){e=e.substring(c.raw.length);let d=a.at(-1);d?.type==="paragraph"||d?.type==="text"?(d.raw+=(d.raw.endsWith(`
3078`)?"":`
3079`)+c.raw,d.text+=`
3080`+c.text,this.inlineQueue.at(-1).src=d.text):a.push(c);continue}if(c=this.tokenizer.fences(e)){e=e.substring(c.raw.length),a.push(c);continue}if(c=this.tokenizer.heading(e)){e=e.substring(c.raw.length),a.push(c);continue}if(c=this.tokenizer.hr(e)){e=e.substring(c.raw.length),a.push(c);continue}if(c=this.tokenizer.blockquote(e)){e=e.substring(c.raw.length),a.push(c);continue}if(c=this.tokenizer.list(e)){e=e.substring(c.raw.length),a.push(c);continue}if(c=this.tokenizer.html(e)){e=e.substring(c.raw.length),a.push(c);continue}if(c=this.tokenizer.def(e)){e=e.substring(c.raw.length);let d=a.at(-1);d?.type==="paragraph"||d?.type==="text"?(d.raw+=(d.raw.endsWith(`
3081`)?"":`
3082`)+c.raw,d.text+=`
3083`+c.raw,this.inlineQueue.at(-1).src=d.text):this.tokens.links[c.tag]||(this.tokens.links[c.tag]={href:c.href,title:c.title},a.push(c));continue}if(c=this.tokenizer.table(e)){e=e.substring(c.raw.length),a.push(c);continue}if(c=this.tokenizer.lheading(e)){e=e.substring(c.raw.length),a.push(c);continue}let u=e;if(this.options.extensions?.startBlock){let d=1/0,p=e.slice(1),g;this.options.extensions.startBlock.forEach(y=>{g=y.call({lexer:this},p),typeof g=="number"&&g>=0&&(d=Math.min(d,g))}),d<1/0&&d>=0&&(u=e.substring(0,d+1))}if(this.state.top&&(c=this.tokenizer.paragraph(u))){let d=a.at(-1);s&&d?.type==="paragraph"?(d.raw+=(d.raw.endsWith(`
3084`)?"":`
3085`)+c.raw,d.text+=`
3086`+c.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=d.text):a.push(c),s=u.length!==e.length,e=e.substring(c.raw.length);continue}if(c=this.tokenizer.text(e)){e=e.substring(c.raw.length);let d=a.at(-1);d?.type==="text"?(d.raw+=(d.raw.endsWith(`
3087`)?"":`
3088`)+c.raw,d.text+=`
3089`+c.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=d.text):a.push(c);continue}if(e){this.infiniteLoopError(e.charCodeAt(0));break}}return this.state.top=!0,a}inline(e,a=[]){return this.inlineQueue.push({src:e,tokens:a}),a}inlineTokens(e,a=[]){this.tokenizer.lexer=this;let s=e;if(this.tokens.links){let d=Object.keys(this.tokens.links);d.length>0&&(s=s.replace(this.tokenizer.rules.inline.reflinkSearch,p=>d.includes(p.slice(p.lastIndexOf("[")+1,-1))?"["+"a".repeat(p.length-2)+"]":p))}s=s.replace(this.tokenizer.rules.inline.anyPunctuation,"++"),s=s.replace(this.tokenizer.rules.inline.blockSkip,(d,p,g)=>{let y=g?g.length:0;return d.slice(0,y)+"["+"a".repeat(d.length-y-2)+"]"}),s=this.options.hooks?.emStrongMask?.call({lexer:this},s)??s;let o=!1,c="",u=1/0;for(;e;){if(e.length<u)u=e.length;else{this.infiniteLoopError(e.charCodeAt(0));break}o||(c=""),o=!1;let d;if(this.options.extensions?.inline?.some(g=>(d=g.call({lexer:this},e,a))?(e=e.substring(d.raw.length),a.push(d),!0):!1))continue;if(d=this.tokenizer.escape(e)){e=e.substring(d.raw.length),a.push(d);continue}if(d=this.tokenizer.tag(e)){e=e.substring(d.raw.length),a.push(d);continue}if(d=this.tokenizer.link(e)){e=e.substring(d.raw.length),a.push(d);continue}if(d=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(d.raw.length);let g=a.at(-1);d.type==="text"&&g?.type==="text"?(g.raw+=d.raw,g.text+=d.text):a.push(d);continue}if(d=this.tokenizer.emStrong(e,s,c)){e=e.substring(d.raw.length),a.push(d);continue}if(d=this.tokenizer.codespan(e)){e=e.substring(d.raw.length),a.push(d);continue}if(d=this.tokenizer.br(e)){e=e.substring(d.raw.length),a.push(d);continue}if(d=this.tokenizer.del(e,s,c)){e=e.substring(d.raw.length),a.push(d);continue}if(d=this.tokenizer.autolink(e)){e=e.substring(d.raw.length),a.push(d);continue}if(!this.state.inLink&&(d=this.tokenizer.url(e))){e=e.substring(d.raw.length),a.push(d);continue}let p=e;if(this.options.extensions?.startInline){let g=1/0,y=e.slice(1),m;this.options.extensions.startInline.forEach(w=>{m=w.call({lexer:this},y),typeof m=="number"&&m>=0&&(g=Math.min(g,m))}),g<1/0&&g>=0&&(p=e.substring(0,g+1))}if(d=this.tokenizer.inlineText(p)){e=e.substring(d.raw.length),d.raw.slice(-1)!=="_"&&(c=d.raw.slice(-1)),o=!0;let g=a.at(-1);g?.type==="text"?(g.raw+=d.raw,g.text+=d.text):a.push(d);continue}if(e){this.infiniteLoopError(e.charCodeAt(0));break}}return a}infiniteLoopError(e){let a="Infinite loop on byte: "+e;if(this.options.silent)console.error(a);else throw new Error(a)}},bc=class{options;parser;constructor(t){this.options=t||xi}space(t){return""}code({text:t,lang:e,escaped:a}){let s=(e||"").match(Ct.notSpaceStart)?.[0],o=t.replace(Ct.endingNewline,"")+`
3090`;return s?'<pre><code class="language-'+An(s)+'">'+(a?o:An(o,!0))+`</code></pre>
3091`:"<pre><code>"+(a?o:An(o,!0))+`</code></pre>
3092`}blockquote({tokens:t}){return`<blockquote>
3093${this.parser.parse(t)}</blockquote>
3094`}html({text:t}){return t}def(t){return""}heading({tokens:t,depth:e}){return`<h${e}>${this.parser.parseInline(t)}</h${e}>
3095`}hr(t){return`<hr>
3096`}list(t){let e=t.ordered,a=t.start,s="";for(let u=0;u<t.items.length;u++){let d=t.items[u];s+=this.listitem(d)}let o=e?"ol":"ul",c=e&&a!==1?' start="'+a+'"':"";return"<"+o+c+`>
3097`+s+"</"+o+`>
3098`}listitem(t){return`<li>${this.parser.parse(t.tokens)}</li>
3099`}checkbox({checked:t}){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:t}){return`<p>${this.parser.parseInline(t)}</p>
3100`}table(t){let e="",a="";for(let o=0;o<t.header.length;o++)a+=this.tablecell(t.header[o]);e+=this.tablerow({text:a});let s="";for(let o=0;o<t.rows.length;o++){let c=t.rows[o];a="";for(let u=0;u<c.length;u++)a+=this.tablecell(c[u]);s+=this.tablerow({text:a})}return s&&(s=`<tbody>${s}</tbody>`),`<table>
3101<thead>
3102`+e+`</thead>
3103`+s+`</table>
3104`}tablerow({text:t}){return`<tr>
3105${t}</tr>
3106`}tablecell(t){let e=this.parser.parseInline(t.tokens),a=t.header?"th":"td";return(t.align?`<${a} align="${t.align}">`:`<${a}>`)+e+`</${a}>
3107`}strong({tokens:t}){return`<strong>${this.parser.parseInline(t)}</strong>`}em({tokens:t}){return`<em>${this.parser.parseInline(t)}</em>`}codespan({text:t}){return`<code>${An(t,!0)}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:e,tokens:a}){let s=this.parser.parseInline(a),o=lw(t);if(o===null)return s;t=o;let c='<a href="'+t+'"';return e&&(c+=' title="'+An(e)+'"'),c+=">"+s+"</a>",c}image({href:t,title:e,text:a,tokens:s}){s&&(a=this.parser.parseInline(s,this.parser.textRenderer));let o=lw(t);if(o===null)return An(a);t=o;let c=`<img src="${t}" alt="${An(a)}"`;return e&&(c+=` title="${An(e)}"`),c+=">",c}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:An(t.text)}},wf=class{strong({text:t}){return t}em({text:t}){return t}codespan({text:t}){return t}del({text:t}){return t}html({text:t}){return t}text({text:t}){return t}link({text:t}){return""+t}image({text:t}){return""+t}br(){return""}checkbox({raw:t}){return t}},vn=class Yd{options;renderer;textRenderer;constructor(e){this.options=e||xi,this.options.renderer=this.options.renderer||new bc,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new wf}static parse(e,a){return new Yd(a).parse(e)}static parseInline(e,a){return new Yd(a).parseInline(e)}parse(e){this.renderer.parser=this;let a="";for(let s=0;s<e.length;s++){let o=e[s];if(this.options.extensions?.renderers?.[o.type]){let u=o,d=this.options.extensions.renderers[u.type].call({parser:this},u);if(d!==!1||!["space","hr","heading","code","table","blockquote","list","checkbox","html","def","paragraph","text"].includes(u.type)){a+=d||"";continue}}let c=o;switch(c.type){case"space":{a+=this.renderer.space(c);break}case"hr":{a+=this.renderer.hr(c);break}case"heading":{a+=this.renderer.heading(c);break}case"code":{a+=this.renderer.code(c);break}case"table":{a+=this.renderer.table(c);break}case"blockquote":{a+=this.renderer.blockquote(c);break}case"list":{a+=this.renderer.list(c);break}case"checkbox":{a+=this.renderer.checkbox(c);break}case"html":{a+=this.renderer.html(c);break}case"def":{a+=this.renderer.def(c);break}case"paragraph":{a+=this.renderer.paragraph(c);break}case"text":{a+=this.renderer.text(c);break}default:{let u='Token with "'+c.type+'" type was not found.';if(this.options.silent)return console.error(u),"";throw new Error(u)}}}return a}parseInline(e,a=this.renderer){this.renderer.parser=this;let s="";for(let o=0;o<e.length;o++){let c=e[o];if(this.options.extensions?.renderers?.[c.type]){let d=this.options.extensions.renderers[c.type].call({parser:this},c);if(d!==!1||!["escape","html","link","image","checkbox","strong","em","codespan","br","del","text"].includes(c.type)){s+=d||"";continue}}let u=c;switch(u.type){case"escape":{s+=a.text(u);break}case"html":{s+=a.html(u);break}case"link":{s+=a.link(u);break}case"image":{s+=a.image(u);break}case"checkbox":{s+=a.checkbox(u);break}case"strong":{s+=a.strong(u);break}case"em":{s+=a.em(u);break}case"codespan":{s+=a.codespan(u);break}
3107case"br":{s+=a.br(u);break}case"del":{s+=a.del(u);break}case"text":{s+=a.text(u);break}default:{let d='Token with "'+u.type+'" type was not found.';if(this.options.silent)return console.error(d),"";throw new Error(d)}}}return s}},Wr=class{options;block;constructor(t){this.options=t||xi}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}emStrongMask(t){return t}provideLexer(t=this.block){return t?yn.lex:yn.lexInline}provideParser(t=this.block){return t?vn.parse:vn.parseInline}},LB=class{defaults=df();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=vn;Renderer=bc;TextRenderer=wf;Lexer=yn;Tokenizer=wc;Hooks=Wr;constructor(...t){this.use(...t)}walkTokens(t,e){let a=[];for(let s of t)switch(a=a.concat(e.call(this,s)),s.type){case"table":{let o=s;for(let c of o.header)a=a.concat(this.walkTokens(c.tokens,e));for(let c of o.rows)for(let u of c)a=a.concat(this.walkTokens(u.tokens,e));break}case"list":{let o=s;a=a.concat(this.walkTokens(o.items,e));break}default:{let o=s;this.defaults.extensions?.childTokens?.[o.type]?this.defaults.extensions.childTokens[o.type].forEach(c=>{let u=o[c].flat(1/0);a=a.concat(this.walkTokens(u,e))}):o.tokens&&(a=a.concat(this.walkTokens(o.tokens,e)))}}return a}use(...t){let e=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(a=>{let s={...a};if(s.async=this.defaults.async||s.async||!1,a.extensions&&(a.extensions.forEach(o=>{if(!o.name)throw new Error("extension name required");if("renderer"in o){let c=e.renderers[o.name];c?e.renderers[o.name]=function(...u){let d=o.renderer.apply(this,u);return d===!1&&(d=c.apply(this,u)),d}:e.renderers[o.name]=o.renderer}if("tokenizer"in o){if(!o.level||o.level!=="block"&&o.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let c=e[o.level];c?c.unshift(o.tokenizer):e[o.level]=[o.tokenizer],o.start&&(o.level==="block"?e.startBlock?e.startBlock.push(o.start):e.startBlock=[o.start]:o.level==="inline"&&(e.startInline?e.startInline.push(o.start):e.startInline=[o.start]))}"childTokens"in o&&o.childTokens&&(e.childTokens[o.name]=o.childTokens)}),s.extensions=e),a.renderer){let o=this.defaults.renderer||new bc(this.defaults);for(let c in a.renderer){if(!(c in o))throw new Error(`renderer '${c}' does not exist`);if(["options","parser"].includes(c))continue;let u=c,d=a.renderer[u],p=o[u];o[u]=(...g)=>{let y=d.apply(o,g);return y===!1&&(y=p.apply(o,g)),y||""}}s.renderer=o}if(a.tokenizer){let o=this.defaults.tokenizer||new wc(this.defaults);for(let c in a.tokenizer){if(!(c in o))throw new Error(`tokenizer '${c}' does not exist`);if(["options","rules","lexer"].includes(c))continue;let u=c,d=a.tokenizer[u],p=o[u];o[u]=(...g)=>{let y=d.apply(o,g);return y===!1&&(y=p.apply(o,g)),y}}s.tokenizer=o}if(a.hooks){let o=this.defaults.hooks||new Wr;for(let c in a.hooks){if(!(c in o))throw new Error(`hook '${c}' does not exist`);if(["options","block"].includes(c))continue;let u=c,d=a.hooks[u],p=o[u];Wr.passThroughHooks.has(c)?o[u]=g=>{if(this.defaults.async&&Wr.passThroughHooksRespectAsync.has(c))return(async()=>{let m=await d.call(o,g);return p.call(o,m)})();let y=d.call(o,g);return p.call(o,y)}:o[u]=(...g)=>{if(this.defaults.async)return(async()=>{let m=await d.apply(o,g);return m===!1&&(m=await p.apply(o,g)),m})();let y=d.apply(o,g);return y===!1&&(y=p.apply(o,g)),y}}s.hooks=o}if(a.walkTokens){let o=this.defaults.walkTokens,c=a.walkTokens;s.walkTokens=function(u){let d=[];return d.push(c.call(this,u)),o&&(d=d.concat(o.call(this,u))),d}}this.defaults={...this.defaults,...s}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,e){return yn.lex(t,e??this.defaults)}parser(t,e){return vn.parse(t,e??this.defaults)}parseMarkdown(t){return(e,a)=>{let s={...a},o={...this.defaults,...s},c=this.onError(!!o.silent,!!o.async);if(this.defaults.async===!0&&s.async===!1)return c(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof e>"u"||e===null)return c(new Error("marked(): input parameter is undefined or null"));if(typeof e!="string")return c(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected"));if(o.hooks&&(o.hooks.options=o,o.hooks.block=t),o.async)return(async()=>{let u=o.hooks?await o.hooks.preprocess(e):e,d=await(o.hooks?await o.hooks.provideLexer(t):t?yn.lex:yn.lexInline)(u,o),p=o.hooks?await o.hooks.processAllTokens(d):d;o.walkTokens&&await Promise.all(this.walkTokens(p,o.walkTokens));let g=await(o.hooks?await o.hooks.provideParser(t):t?vn.parse:vn.parseInline)(p,o);return o.hooks?await o.hooks.postprocess(g):g})().catch(c);try{o.hooks&&(e=o.hooks.preprocess(e));let u=(o.hooks?o.hooks.provideLexer(t):t?yn.lex:yn.lexInline)(e,o);o.hooks&&(u=o.hooks.processAllTokens(u)),o.walkTokens&&this.walkTokens(u,o.walkTokens);let d=(o.hooks?o.hooks.provideParser(t):t?vn.parse:vn.parseInline)(u,o);return o.hooks&&(d=o.hooks.postprocess(d)),d}catch(u){return c(u)}}}onError(t,e){return a=>{if(a.message+=`
3108Please report this to https://github.com/markedjs/marked.`,t){let s="<p>An error occurred:</p><pre>"+An(a.message+"",!0)+"</pre>";return e?Promise.resolve(s):s}if(e)return Promise.reject(a);throw a}}},Ai=new LB;function Pe(t,e){return Ai.parse(t,e)}Pe.options=Pe.setOptions=function(t){return Ai.setOptions(t),Pe.defaults=Ai.defaults,Jb(Pe.defaults),Pe};Pe.getDefaults=df;Pe.defaults=xi;function zB(...t){return Ai.use(...t),Pe.defaults=Ai.defaults,Jb(Pe.defaults),Pe}Pe.use=zB;Pe.walkTokens=function(t,e){return Ai.walkTokens(t,e)};Pe.parseInline=Ai.parseInline;Pe.Parser=vn;Pe.parser=vn.parse;Pe.Renderer=bc;Pe.TextRenderer=wf;Pe.Lexer=yn;Pe.lexer=yn.lex;Pe.Tokenizer=wc;Pe.Hooks=Wr;Pe.parse=Pe;Pe.options;Pe.setOptions;Pe.walkTokens;Pe.parseInline;vn.parse;yn.lex;const P4=["Wine & Vineyard","Visit & Tastings","Events & Weddings","Food & Pairings","Winery News"],kd="B.R. Cohn Winery",Sc="https://brcohn.com";function NB(t){const e=/^---\r?\n([\s\S]*?)\r?\n---\r?\n?([\s\S]*)$/.exec(t.trim());if(!e)return{data:{},body:t};const a={};for(const s of e[1].split(/\r?\n/)){const o=s.indexOf(":");if(o===-1)continue;const c=s.slice(0,o).trim();let u=s.slice(o+1).trim();(u.startsWith('"')&&u.endsWith('"')||u.startsWith("'")&&u.endsWith("'"))&&(u=u.slice(1,-1)),c&&(a[c]=u)}return{data:a,body:e[2]??""}}const UB=Object.assign({"../content/blog/b-r-cohn-vs-benziger-winery.md":A2,"../content/blog/best-wineries-in-sonoma-valley.md":C2,"../content/blog/corporate-event-venues-wine-country.md":E2,"../content/blog/doobie-brothers-winery-sonoma.md":x2,"../content/blog/glen-ellen-wineries.md":O2,"../content/blog/music-themed-wedding-ideas.md":B2,"../content/blog/northern-california-wineries-road-trip.md":j2,"../content/blog/saturday-wedding-venue-sonoma.md":M2,"../content/blog/saturday-wedding-venues-sonoma-valley.md":D2,"../content/blog/sonoma-valley-wedding-venues.md":P2,"../content/blog/sonoma-valley-wineries.md":L2,"../content/blog/sonoma-wine-club.md":z2,"../content/blog/wine-club-membership-benefits.md":N2,"../content/blog/wineries-with-live-music-near-me.md":U2,"../content/blog/winery-private-events.md":I2}),Es=Object.entries(UB).map(([t,e])=>{const{data:a,body:s}=NB(e),o=t.split("/").pop().replace(/\.md$/,"");return{title:a.title??o,slug:a.slug??o,date:a.date??"",category:a.category??"Winery News",excerpt:a.excerpt??"",featuredImage:a.featuredImage??"",focusKeyword:a.focusKeyword??"",body:s}}).sort((t,e)=>t.date<e.date?1:t.date>e.date?-1:0);function IB(t){return Es.find(e=>e.slug===t)}function L4(t){const e=Es.findIndex(a=>a.slug===t);return{prev:e>0?Es[e-1]:void 0,next:e>=0&&e<Es.length-1?Es[e+1]:void 0}}function z4(t,e=3){return Es.filter(a=>a.slug!==t.slug&&a.category===t.category).slice(0,e)}function N4(t){return Pe.parse(t,{async:!1,gfm:!0}).replace(/<table>[\s\S]*?<\/table>/g,a=>`<div class="blog-table-scroll">${a}</div>`)}function U4(t){if(!t)return"";const e=new Date(`${t}T12:00:00`);return Number.isNaN(e.getTime())?t:e.toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric"})}const qB=()=>ut(()=>
3108import("./blog.index-ByJKMRPb.js"),__vite__mapDeps([24,1])),$B=gt("/blog/")({head:()=>({meta:[{title:"Journal | B.R. Cohn Winery"},{name:"description",content:"Stories from our Sonoma Valley estate: vineyard notes, tasting guides, events, food pairings, and news from B.R. Cohn Winery."},{property:"og:title",content:"Journal | B.R. Cohn Winery"},{property:"og:description",content:"Stories from our Sonoma Valley estate: vineyard notes, tasting guides, events, food pairings, and news from B.R. Cohn Winery."},{property:"og:type",content:"website"},{property:"og:url",content:`${Sc}/blog`},{name:"twitter:card",content:"summary_large_image"}],links:[{rel:"canonical",href:`${Sc}/blog`}]}),component:ct(qB,"component")}),VB=()=>ut(()=>import("./blog._slug-B6aX7LMj.js"),__vite__mapDeps([25,1])),HB=()=>ut(()=>import("./blog._slug-CtmwEgVx.js"),__vite__mapDeps([26,1])),GB=gt("/blog/$slug")({loader:({params:t})=>{const e=IB(t.slug);if(!e)throw f_();return{post:e}},head:({params:t,loaderData:e})=>{if(!e)return{meta:[{title:"Not found"},{name:"robots",content:"noindex"}]};const{post:a}=e,s=`${Sc}/blog/${a.slug}`,o=a.slug==="sonoma-valley-wedding-venues",c=a.slug==="sonoma-wine-club",u=a.slug==="winery-private-events",d=a.slug==="best-wineries-in-sonoma-valley",p=a.slug==="wineries-with-live-music-near-me",g=o?"Sonoma Valley Wedding Venues at B.R. Cohn Winery | Wine Country":c?"Sonoma Wine Club Membership | B.R. Cohn Winery":u?"Private Events at B.R. Cohn Winery | Sonoma Wine Venue":d?"Top Sonoma Valley Wineries | Wine Tasting & Events | B.R. Cohn":p?"Live Music Wine Tastings in Sonoma | B.R. Cohn Winery":`${a.title} | ${kd}`,y=o?"Host your Sonoma Valley wedding at a historic wine estate. Stunning vineyard views, wine club perks & expert event planning included.":c?"Join B.R. Cohn's Sonoma wine club and get exclusive access to estate Cabernet, live music events, and member-only perks. Explore our membership today.":u?"Host your wedding or corporate event at our stunning Sonoma winery. Explore elegant venues, wine packages, and live entertainment. Book your private event today.":d?"Explore premium Sonoma Valley wineries with wine tastings, live music events, and gourmet experiences. Visit B.R. Cohn Winery today.":p?"Catch live concerts while you taste award-winning Cabernet at B.R. Cohn Winery. Reserve your spot for an unforgettable evening in Sonoma.":a.excerpt;return{meta:[{title:g},{name:"description",content:y},{property:"og:title",content:g},{property:"og:description",content:y},{property:"og:type",content:"article"},{property:"og:url",content:s},{property:"og:image",content:a.featuredImage},{name:"twitter:card",content:"summary_large_image"},{name:"twitter:title",content:g},{name:"twitter:description",content:y},{name:"twitter:image",content:a.featuredImage}],links:[{rel:"canonical",href:s}],scripts:[{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@type":"Article",headline:a.title,datePublished:a.date,image:a.featuredImage,author:{"@type":"Organization",name:kd},publisher:{"@type":"Organization",name:kd},mainEntityOfPage:`${Sc}/blog/${t.slug}`})}]}},notFoundComponent:ct(HB,"notFoundComponent"),component:ct(VB,"component")}),WB=()=>ut(()=>import("./contact.index-Cw0-woD5.js"),__vite__mapDeps([27,1,28,10,11])),FB=gt("/contact/")({head:()=>({meta:[{title:"Contact B.R. Cohn Winery | Wine Tastings & Events"},{name:"description",content:"Ready to book a tasting, wedding, or private event? Reach B.R. Cohn in Sonoma Valley—where award-winning wine meets unforgettable moments. Get in touch today."},{property:"og:title",content:"Contact B.R. Cohn Winery | Wine Tastings & Events"},{property:"og:description",content:"Ready to book a tasting, wedding, or private event? Reach B.R. Cohn in Sonoma Valley—where award-winning wine meets unforgettable moments. Get in touch today."}]}),component:ct(WB,"component")}),KB=()=>ut(()=>import("./contact.thank-you-BQCq4eEL.js"),__vite__mapDeps([29,1,28,10,11])),YB=gt("/contact/thank-you")({head:()=>({meta:[{title:"Thank You | B.R. Cohn Winery"}
3108,{name:"description",content:"Thank you for reaching out to B.R. Cohn Winery. Our team has received your message and will be in touch soon."},{property:"og:title",content:"Thank You | B.R. Cohn Winery"},{property:"og:description",content:"Thank you for reaching out to B.R. Cohn Winery. Our team has received your message and will be in touch soon."},{property:"og:type",content:"website"},{name:"twitter:card",content:"summary_large_image"},{name:"robots",content:"noindex"}]}),component:ct(KB,"component")}),QB=ZO.update({id:"/wine-club",path:"/wine-club",getParentRoute:()=>mt}),JB=t2.update({id:"/weddings",path:"/weddings",getParentRoute:()=>mt}),ZB=a2.update({id:"/visit",path:"/visit",getParentRoute:()=>mt}),XB=s2.update({id:"/unsubscribe",path:"/unsubscribe",getParentRoute:()=>mt}),e4=o2.update({id:"/private-events",path:"/private-events",getParentRoute:()=>mt}),t4=c2.update({id:"/private-event-request-thank-you",path:"/private-event-request-thank-you",getParentRoute:()=>mt}),n4=h2.update({id:"/private-event-request",path:"/private-event-request",getParentRoute:()=>mt}),a4=f2.update({id:"/privacy",path:"/privacy",getParentRoute:()=>mt}),i4=g2.update({id:"/events",path:"/events",getParentRoute:()=>mt}),s4=y2.update({id:"/donations",path:"/donations",getParentRoute:()=>mt}),r4=w2.update({id:"/corporate-venues-wine-country",path:"/corporate-venues-wine-country",getParentRoute:()=>mt}),bf=S2.update({id:"/contact",path:"/contact",getParentRoute:()=>mt}),o4=_2.update({id:"/accessibility",path:"/accessibility",getParentRoute:()=>mt}),l4=R2.update({id:"/",path:"/",getParentRoute:()=>mt}),c4=$B.update({id:"/blog/",path:"/blog/",getParentRoute:()=>mt}),u4=GB.update({id:"/blog/$slug",path:"/blog/$slug",getParentRoute:()=>mt}),h4=FB.update({id:"/",path:"/",getParentRoute:()=>bf}),d4=YB.update({id:"/thank-you",path:"/thank-you",getParentRoute:()=>bf}),f4={ContactThankYouRoute:d4,ContactIndexRoute:h4},p4=bf._addFileChildren(f4),g4={IndexRoute:l4,AccessibilityRoute:o4,ContactRoute:p4,CorporateVenuesWineCountryRoute:r4,DonationsRoute:s4,EventsRoute:i4,PrivacyRoute:a4,PrivateEventRequestRoute:n4,PrivateEventRequestThankYouRoute:t4,PrivateEventsRoute:e4,UnsubscribeRoute:XB,VisitRoute:ZB,WeddingsRoute:JB,WineClubRoute:QB,BlogSlugRoute:u4,BlogIndexRoute:c4},m4=mt._addFileChildren(g4),y4=()=>{const t=new IO;return GC({routeTree:m4,context:{queryClient:t},scrollRestoration:!0,defaultPreloadStaleTime:0})};async function v4(){const t=await y4();let e;if(Yv){const a=await Yv.getOptions();a.serializationAdapters=a.serializationAdapters??[],window.__TSS_START_OPTIONS__=a,e=a.serializationAdapters,t.options.defaultSsr=a.defaultSsr}else e=[],window.__TSS_START_OPTIONS__={serializationAdapters:e};return e.push(YA),t.options.serializationAdapters&&e.push(...t.options.serializationAdapters),t.update({basepath:"",serializationAdapters:e}),t.stores.matchesId.get().length||await JA(t),t}async function w4(){const t=await v4();return window.$_TSR?.h(),t}var _d;function b4(){return _d||(_d=w4()),K.jsx(tC,{promise:_d,children:t=>K.jsx(KC,{router:t})})}ie.startTransition(()=>{Lk.hydrateRoot(document,K.jsx(ie.StrictMode,{children:K.jsx(b4,{})}))});export{P4 as B,lf as L,wb as O,S4 as R,k4 as T,Ms as a,gb as b,KA as c,st as d,vi as e,Es as f,fw as g,U4 as h,Ut as i,K as j,GB as k,N4 as l,z4 as m,L4 as n,R_ as p,ie as r,_t as u,XO as w};

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.