vendor: 6,228 bytes, lines 1-10
1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Home-KCg7PVep.js","assets/Footer-BnNEvXZH.js","assets/StudioInfo-f7dd5UUE.js","assets/PageHeader-BHp12SY-.js","assets/ServicesSection-DOclPp8z.js","assets/About-6JZgWxbU.js","assets/CustomFonts-3u9b1Ggt.js","assets/Lettering-Dl8kQX30.js","assets/FontInUse-eQdu3s4p.js","assets/ProjectDetail-DnVFpFyS.js","assets/AdminApp-OON20nP0.js"])))=>i.map(i=>d[i]); 2var lh=e=>{throw TypeError(e)};var Lu=(e,t,r)=>t.has(e)||lh("Cannot "+r);var N=(e,t,r)=>(Lu(e,t,"read from private field"),r?r.call(e):t.get(e)),ye=(e,t,r)=>t.has(e)?lh("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),ce=(e,t,r,n)=>(Lu(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),ot=(e,t,r)=>(Lu(e,t,"access private method"),r);var va=(e,t,r,n)=>({set _(i){ce(e,t,i,r)},get _(){return N(e,t,n)}});function Km(e,t){for(var r=0;r<t.length;r++){const n=t[r];if(typeof n!="string"&&!Array.isArray(n)){for(const i in n)if(i!=="default"&&!(i in e)){const s=Object.getOwnPropertyDescriptor(n,i);s&&Object.defineProperty(e,i,s.get?s:{enumerable:!0,get:()=>n[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function r(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function n(i){if(i.ep)return;i.ep=!0;const s=r(i);fetch(i.href,s)}})();var BR=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function qm(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Gm={exports:{}},ql={},Qm={exports:{}},fe={};/** 3 * @license React 4 * react.production.min.js 5 * 6 * Copyright (c) Facebook, Inc. and its affiliates. 7 * 8 * This source code is licensed under the MIT license found in the 9 * LICENSE file in the root directory of this source tree. 10 */var ra=Symbol.for("react.element"),xw=Symbol.for("react.portal"),kw=Symbol.for("react.fragment"),Tw=Symbol.for("react.strict_mode"),Cw=Symbol.for("react.profiler"),Pw=Symbol.for("react.provider"),Rw=Symbol.for("react.context"),Ow=Symbol.for("react.forward_ref"),Aw=Symbol.for("react.suspense"),Nw=Symbol.for("react.memo"),Lw=Symbol.for("react.lazy"),uh=Symbol.iterator;function Iw(e){return e===null||typeof e!="object"?null:(e=uh&&e[uh]||e["@@iterator"],typeof e=="function"?e:null)}var Jm={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Ym=Object.assign,Xm={};function Ns(e,t,r){this.props=e,this.context=t,this.refs=Xm,this.updater=r||Jm}Ns.prototype.isReactComponent={};Ns.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Ns.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Zm(){}Zm.prototype=Ns.prototype;function Hd(e,t,r){this.props=e,this.context=t,this.refs=Xm,this.updater=r||Jm}var Vd=Hd.prototype=new Zm;Vd.constructor=Hd;Ym(Vd,Ns.prototype);Vd.isPureReactComponent=!0;var ch=Array.isArray,eg=Object.prototype.hasOwnProperty,Kd={current:null},tg={key:!0,ref:!0,__self:!0,__source:!0};function rg(e,t,r){var n,i={},s=null,o=null;if(t!=null)for(n in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(s=""+t.key),t)eg.call(t,n)&&!tg.hasOwnProperty(n)&&(i[n]=t[n]);var a=arguments.length-2;if(a===1)i.children=r;else if(1<a){for(var l=Array(a),u=0;u<a;u++)l[u]=arguments[u+2];i.children=l}if(e&&e.defaultProps)for(n in a=e.defaultProps,a)i[n]===void 0&&(i[n]=a[n]);return{$$typeof:ra,type:e,key:s,ref:o,props:i,_owner:Kd.current}}function jw(e,t){return{$$typeof:ra,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function qd(e){return typeof e=="object"&&e!==null&&e.$$typeof===ra}function Dw(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var dh=/\/+/g;function Iu(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Dw(""+e.key):t.toString(36)}function Qa(e,t,r,n,i){var s=typeof e;(s==="undefined"||s==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(s){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case ra:case xw:o=!0}}if(o)return o=e,i=i(o),e=n===""?"."+Iu(o,0):n,ch(i)?(r="",e!=null&&(r=e.replace(dh,"$&/")+"/"),Qa(i,t,r,"",function(u){return u})):i!=null&&(qd(i)&&(i=jw(i,r+(!i.key||o&&o.key===i.key?"":(""+i.key).replace(dh,"$&/")+"/")+e)),t.push(i)),1;if(o=0,n=n===""?".":n+":",ch(e))for(var a=0;a<e.length;a++){s=e[a];var l=n+Iu(s,a);o+=Qa(s,t,r,l,i)}else if(l=Iw(e),typeof l=="function")for(e=l.call(e),a=0;!(s=e.next()).done;)s=s.value,l=n+Iu(s,a++),o+=Qa(s,t,r,l,i);else if(s==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return o}function ya(e,t,r){if(e==null)return e;var n=[],i=0;return Qa(e,n,"","",function(s){return t.call(r,s,i++)}),n}function $w(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(r){(e._status===0||e._status===-1)&&(e._status=1,e._result=r)},function(r){(e._status===0||e._status===-1)&&(e._status=2,e._result=r)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var yt={current:null},Ja={transition:null},Mw={ReactCurrentDispatcher:yt,ReactCurrentBatchConfig:Ja,ReactCurrentOwner:Kd};function ng(){throw Error("act(...) is not supported in production builds of React.")}
vendor: 5,106 bytes, lines 10-26
10fe.Children={map:ya,forEach:function(e,t,r){ya(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return ya(e,function(){t++}),t},toArray:function(e){return ya(e,function(t){return t})||[]},only:function(e){if(!qd(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};fe.Component=Ns;fe.Fragment=kw;fe.Profiler=Cw;fe.PureComponent=Hd;fe.StrictMode=Tw;fe.Suspense=Aw;fe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Mw;fe.act=ng;fe.cloneElement=function(e,t,r){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var n=Ym({},e.props),i=e.key,s=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(s=t.ref,o=Kd.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(l in t)eg.call(t,l)&&!tg.hasOwnProperty(l)&&(n[l]=t[l]===void 0&&a!==void 0?a[l]:t[l])}var l=arguments.length-2;if(l===1)n.children=r;else if(1<l){a=Array(l);for(var u=0;u<l;u++)a[u]=arguments[u+2];n.children=a}return{$$typeof:ra,type:e.type,key:i,ref:s,props:n,_owner:o}};fe.createContext=function(e){return e={$$typeof:Rw,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Pw,_context:e},e.Consumer=e};fe.createElement=rg;fe.createFactory=function(e){var t=rg.bind(null,e);return t.type=e,t};fe.createRef=function(){return{current:null}};fe.forwardRef=function(e){return{$$typeof:Ow,render:e}};fe.isValidElement=qd;fe.lazy=function(e){return{$$typeof:Lw,_payload:{_status:-1,_result:e},_init:$w}};fe.memo=function(e,t){return{$$typeof:Nw,type:e,compare:t===void 0?null:t}};fe.startTransition=function(e){var t=Ja.transition;Ja.transition={};try{e()}finally{Ja.transition=t}};fe.unstable_act=ng;fe.useCallback=function(e,t){return yt.current.useCallback(e,t)};fe.useContext=function(e){return yt.current.useContext(e)};fe.useDebugValue=function(){};fe.useDeferredValue=function(e){return yt.current.useDeferredValue(e)};fe.useEffect=function(e,t){return yt.current.useEffect(e,t)};fe.useId=function(){return yt.current.useId()};fe.useImperativeHandle=function(e,t,r){return yt.current.useImperativeHandle(e,t,r)};fe.useInsertionEffect=function(e,t){return yt.current.useInsertionEffect(e,t)};fe.useLayoutEffect=function(e,t){return yt.current.useLayoutEffect(e,t)};fe.useMemo=function(e,t){return yt.current.useMemo(e,t)};fe.useReducer=function(e,t,r){return yt.current.useReducer(e,t,r)};fe.useRef=function(e){return yt.current.useRef(e)};fe.useState=function(e){return yt.current.useState(e)};fe.useSyncExternalStore=function(e,t,r){return yt.current.useSyncExternalStore(e,t,r)};fe.useTransition=function(){return yt.current.useTransition()};fe.version="18.3.1";Qm.exports=fe;var w=Qm.exports;const M=qm(w),Uw=Km({__proto__:null,default:M},[w]);/** 11 * @license React 12 * react-jsx-runtime.production.min.js 13 * 14 * Copyright (c) Facebook, Inc. and its affiliates. 15 * 16 * This source code is licensed under the MIT license found in the 17 * LICENSE file in the root directory of this source tree. 18 */var Fw=w,zw=Symbol.for("react.element"),Bw=Symbol.for("react.fragment"),Ww=Object.prototype.hasOwnProperty,Hw=Fw.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Vw={key:!0,ref:!0,__self:!0,__source:!0};function ig(e,t,r){var n,i={},s=null,o=null;r!==void 0&&(s=""+r),t.key!==void 0&&(s=""+t.key),t.ref!==void 0&&(o=t.ref);for(n in t)Ww.call(t,n)&&!Vw.hasOwnProperty(n)&&(i[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps,t)i[n]===void 0&&(i[n]=t[n]);return{$$typeof:zw,type:e,key:s,ref:o,props:i,_owner:Hw.current}}ql.Fragment=Bw;ql.jsx=ig;ql.jsxs=ig;Gm.exports=ql;var O=Gm.exports,sg={exports:{}},Wt={},og={exports:{}},ag={};/** 19 * @license React 20 * scheduler.production.min.js 21 * 22 * Copyright (c) Facebook, Inc. and its affiliates. 23 * 24 * This source code is licensed under the MIT license found in the 25 * LICENSE file in the root directory of this source tree. 26 */(function(e){function t(T,D){var H=T.length;T.push(D);e:for(;0<H;){var z=H-1>>>1,q=T[z];if(0<i(q,D))T[z]=D,T[H]=q,H=z;else break e}}function r(T){return T.length===0?null:T[0]}function n(T){if(T.length===0)return null;var D=T[0],H=T.pop();if(H!==D){T[0]=H;e:for(var z=0,q=T.length,oe=q>>>1;z<oe;){var we=2*(z+1)-1,Te=T[we],de=we+1,je=T[de];if(0>i(Te,H))de<q&&0>i(je,Te)?(T[z]=je,T[de]=H,z=de):(T[z]=Te,T[we]=H,z=we);else if(de<q&&0>i(je,H))T[z]=je,T[de]=H,z=de;else break e}}return D}function i(T,D){var H=T.sortIndex-D.sortIndex;return H!==0?H:T.id-D.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var o=Date,a=o.now();e.unstable_now=function(){return o.now()-a}}var l=[],u=[],c=1,f=null,d=3,h=!1,g=!1,v=!1,_=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);
vendor: 9,550 bytes, lines 26-35
26function y(T){for(var D=r(u);D!==null;){if(D.callback===null)n(u);else if(D.startTime<=T)n(u),D.sortIndex=D.expirationTime,t(l,D);else break;D=r(u)}}function S(T){if(v=!1,y(T),!g)if(r(l)!==null)g=!0,X(x);else{var D=r(u);D!==null&&se(S,D.startTime-T)}}function x(T,D){g=!1,v&&(v=!1,m(P),P=-1),h=!0;var H=d;try{for(y(D),f=r(l);f!==null&&(!(f.expirationTime>D)||T&&!W());){var z=f.callback;if(typeof z=="function"){f.callback=null,d=f.priorityLevel;var q=z(f.expirationTime<=D);D=e.unstable_now(),typeof q=="function"?f.callback=q:f===r(l)&&n(l),y(D)}else n(l);f=r(l)}if(f!==null)var oe=!0;else{var we=r(u);we!==null&&se(S,we.startTime-D),oe=!1}return oe}finally{f=null,d=H,h=!1}}var C=!1,b=null,P=-1,j=5,A=-1;function W(){return!(e.unstable_now()-A<j)}function U(){if(b!==null){var T=e.unstable_now();A=T;var D=!0;try{D=b(!0,T)}finally{D?Z():(C=!1,b=null)}}else C=!1}var Z;if(typeof p=="function")Z=function(){p(U)};else if(typeof MessageChannel<"u"){var $=new MessageChannel,ne=$.port2;$.port1.onmessage=U,Z=function(){ne.postMessage(null)}}else Z=function(){_(U,0)};function X(T){b=T,C||(C=!0,Z())}function se(T,D){P=_(function(){T(e.unstable_now())},D)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(T){T.callback=null},e.unstable_continueExecution=function(){g||h||(g=!0,X(x))},e.unstable_forceFrameRate=function(T){0>T||125<T?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):j=0<T?Math.floor(1e3/T):5},e.unstable_getCurrentPriorityLevel=function(){return d},e.unstable_getFirstCallbackNode=function(){return r(l)},e.unstable_next=function(T){switch(d){case 1:case 2:case 3:var D=3;break;default:D=d}var H=d;d=D;try{return T()}finally{d=H}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(T,D){switch(T){case 1:case 2:case 3:case 4:case 5:break;default:T=3}var H=d;d=T;try{return D()}finally{d=H}},e.unstable_scheduleCallback=function(T,D,H){var z=e.unstable_now();switch(typeof H=="object"&&H!==null?(H=H.delay,H=typeof H=="number"&&0<H?z+H:z):H=z,T){case 1:var q=-1;break;case 2:q=250;break;case 5:q=1073741823;break;case 4:q=1e4;break;default:q=5e3}return q=H+q,T={id:c++,callback:D,priorityLevel:T,startTime:H,expirationTime:q,sortIndex:-1},H>z?(T.sortIndex=H,t(u,T),r(l)===null&&T===r(u)&&(v?(m(P),P=-1):v=!0,se(S,H-z))):(T.sortIndex=q,t(l,T),g||h||(g=!0,X(x))),T},e.unstable_shouldYield=W,e.unstable_wrapCallback=function(T){var D=d;return function(){var H=d;d=D;try{return T.apply(this,arguments)}finally{d=H}}}})(ag);og.exports=ag;var Kw=og.exports;/** 27 * @license React 28 * react-dom.production.min.js 29 * 30 * Copyright (c) Facebook, Inc. and its affiliates. 31 * 32 * This source code is licensed under the MIT license found in the 33 * LICENSE file in the root directory of this source tree. 34 */var qw=w,Bt=Kw;function I(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var lg=new Set,Eo={};function yi(e,t){Ss(e,t),Ss(e+"Capture",t)}function Ss(e,t){for(Eo[e]=t,e=0;e<t.length;e++)lg.add(t[e])}var Vr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ec=Object.prototype.hasOwnProperty,Gw=/^[: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]*$/,fh={},hh={};function Qw(e){return Ec.call(hh,e)?!0:Ec.call(fh,e)?!1:Gw.test(e)?hh[e]=!0:(fh[e]=!0,!1)}function Jw(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Yw(e,t,r,n){if(t===null||typeof t>"u"||Jw(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function wt(e,t,r,n,i,s,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=o}var it={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){it[e]=new wt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];it[t]=new wt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){it[e]=new wt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){it[e]=new wt(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){it[e]=new wt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){it[e]=new wt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){it[e]=new wt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){it[e]=new wt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){it[e]=new wt(e,5,!1,e.toLowerCase(),null,!1,!1)});var Gd=/[\-:]([a-z])/g;function Qd(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Gd,Qd);it[t]=new wt(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Gd,Qd);it[t]=new wt(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Gd,Qd);it[t]=new wt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){it[e]=new wt(e,1,!1,e.toLowerCase(),null,!1,!1)});it.xlinkHref=new wt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){it[e]=new wt(e,1,!1,e.toLowerCase(),null,!0,!0)});function Jd(e,t,r,n){var i=it.hasOwnProperty(t)?it[t]:null;(i!==null?i.type!==0:n||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Yw(t,r,i,n)&&(r=null),n||i===null?Qw(t)&&(r===null?e.removeAttribute(t):e.setAttribute(t,""+r)):i.mustUseProperty?e[i.propertyName]=r===null?i.type===3?!1:"":r:(t=i.attributeName,n=i.attributeNamespace,r===null?e.removeAttribute(t):(i=i.type,r=i===3||i===4&&r===!0?"":""+r,n?e.setAttributeNS(n,t,r):e.setAttribute(t,r))))}var Xr=qw.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,wa=Symbol.for("react.element"),Vi=Symbol.for("react.portal"),Ki=Symbol.for("react.fragment"),Yd=Symbol.for("react.strict_mode"),xc=Symbol.for("react.profiler"),ug=Symbol.for("react.provider"),cg=Symbol.for("react.context"),Xd=Symbol.for("react.forward_ref"),kc=Symbol.for("react.suspense"),Tc=Symbol.for("react.suspense_list"),Zd=Symbol.for("react.memo"),ln=Symbol.for("react.lazy"),dg=Symbol.for("react.offscreen"),ph=Symbol.iterator;function Vs(e){return e===null||typeof e!="object"?null:(e=ph&&e[ph]||e["@@iterator"],typeof e=="function"?e:null)}var Ie=Object.assign,ju;function io(e){if(ju===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);ju=t&&t[1]||""}return` 35`+ju+e}var Du=!1;function $u(e,t){if(!e||Du)return"";Du=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var n=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){n=u}e.call(t.prototype)}else{try{throw Error()}catch(u){n=u}e()}}
vendor: 14,090 bytes, lines 35-38
35catch(u){if(u&&n&&typeof u.stack=="string"){for(var i=u.stack.split(` 36`),s=n.stack.split(` 37`),o=i.length-1,a=s.length-1;1<=o&&0<=a&&i[o]!==s[a];)a--;for(;1<=o&&0<=a;o--,a--)if(i[o]!==s[a]){if(o!==1||a!==1)do if(o--,a--,0>a||i[o]!==s[a]){var l=` 38`+i[o].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=o&&0<=a);break}}}finally{Du=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?io(e):""}function Xw(e){switch(e.tag){case 5:return io(e.type);case 16:return io("Lazy");case 13:return io("Suspense");case 19:return io("SuspenseList");case 0:case 2:case 15:return e=$u(e.type,!1),e;case 11:return e=$u(e.type.render,!1),e;case 1:return e=$u(e.type,!0),e;default:return""}}function Cc(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Ki:return"Fragment";case Vi:return"Portal";case xc:return"Profiler";case Yd:return"StrictMode";case kc:return"Suspense";case Tc:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case cg:return(e.displayName||"Context")+".Consumer";case ug:return(e._context.displayName||"Context")+".Provider";case Xd:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Zd:return t=e.displayName||null,t!==null?t:Cc(e.type)||"Memo";case ln:t=e._payload,e=e._init;try{return Cc(e(t))}catch{}}return null}function Zw(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Cc(t);case 8:return t===Yd?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function On(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function fg(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function e_(e){var t=fg(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var i=r.get,s=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){n=""+o,s.call(this,o)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(o){n=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function _a(e){e._valueTracker||(e._valueTracker=e_(e))}function hg(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=fg(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function dl(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Pc(e,t){var r=t.checked;return Ie({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function mh(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=On(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function pg(e,t){t=t.checked,t!=null&&Jd(e,"checked",t,!1)}function Rc(e,t){pg(e,t);var r=On(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Oc(e,t.type,r):t.hasOwnProperty("defaultValue")&&Oc(e,t.type,On(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function gh(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function Oc(e,t,r){(t!=="number"||dl(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var so=Array.isArray;function is(e,t,r,n){if(e=e.options,t){t={};for(var i=0;i<r.length;i++)t["$"+r[i]]=!0;for(r=0;r<e.length;r++)i=t.hasOwnProperty("$"+e[r].value),e[r].selected!==i&&(e[r].selected=i),i&&n&&(e[r].defaultSelected=!0)}else{for(r=""+On(r),t=null,i=0;i<e.length;i++){if(e[i].value===r){e[i].selected=!0,n&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Ac(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(I(91));return Ie({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function vh(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error(I(92));if(so(r)){if(1<r.length)throw Error(I(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:On(r)}}function mg(e,t){var r=On(t.value),n=On(t.defaultValue);r!=null&&(r=""+r,r!==e.value&&(e.value=r),t.defaultValue==null&&e.defaultValue!==r&&(e.defaultValue=r)),n!=null&&(e.defaultValue=""+n)}function yh(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function gg(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Nc(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?gg(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var ba,vg=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,r,n,i){MSApp.execUnsafeLocalFunction(function(){return e(t,r,n,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(ba=ba||document.createElement("div"),ba.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ba.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function xo(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var co={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},t_=["Webkit","ms","Moz","O"];Object.keys(co).forEach(function(e){t_.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),co[t]=co[e]})});function yg(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||co.hasOwnProperty(e)&&co[e]?(""+t).trim():t+"px"}function wg(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=yg(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}var r_=Ie({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Lc(e,t){if(t){if(r_[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(I(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(I(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(I(61))}if(t.style!=null&&typeof t.style!="object")throw Error(I(62))}}function Ic(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var jc=null;function ef(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Dc=null,ss=null,os=null;function wh(e){if(e=sa(e)){if(typeof Dc!="function")throw Error(I(280));var t=e.stateNode;t&&(t=Xl(t),Dc(e.stateNode,e.type,t))}}function _g(e){ss?os?os.push(e):os=[e]:ss=e}function bg(){if(ss){var e=ss,t=os;if(os=ss=null,wh(e),t)for(e=0;e<t.length;e++)wh(t[e])}}function Sg(e,t){return e(t)}function Eg(){}var Mu=!1;function xg(e,t,r){if(Mu)return e(t,r);Mu=!0;try{return Sg(e,t,r)}finally{Mu=!1,(ss!==null||os!==null)&&(Eg(),bg())}}function ko(e,t){var r=e.stateNode;if(r===null)return null;var n=Xl(r);if(n===null)return null;r=n[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(e=e.type,n=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!n;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(I(231,t,typeof r));return r}var $c=!1;if(Vr)try{var Ks={};Object.defineProperty(Ks,"passive",{get:function(){$c=!0}}),window.addEventListener("test",Ks,Ks),window.removeEventListener("test",Ks,Ks)}catch{$c=!1}function n_(e,t,r,n,i,s,o,a,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(r,u)}catch(c){this.onError(c)}}var fo=!1,fl=null,hl=!1,Mc=null,i_={onError:function(e){fo=!0,fl=e}};function s_(e,t,r,n,i,s,o,a,l){fo=!1,fl=null,n_.apply(i_,arguments)}function o_(e,t,r,n,i,s,o,a,l){if(s_.apply(this,arguments),fo){if(fo){var u=fl;fo=!1,fl=null}else throw Error(I(198));hl||(hl=!0,Mc=u)}}function wi(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function kg(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function _h(e){if(wi(e)!==e)throw Error(I(188))}function a_(e){var t=e.alternate;if(!t){if(t=wi(e),t===null)throw Error(I(188));return t!==e?null:e}for(var r=e,n=t;;){var i=r.return;if(i===null)break;var s=i.alternate;if(s===null){if(n=i.return,n!==null){r=n;continue}break}if(i.child===s.child){for(s=i.child;s;){if(s===r)return _h(i),e;if(s===n)return _h(i),t;s=s.sibling}throw Error(I(188))}if(r.return!==n.return)r=i,n=s;else{for(var o=!1,a=i.child;a;){if(a===r){o=!0,r=i,n=s;break}if(a===n){o=!0,n=i,r=s;break}a=a.sibling}if(!o){for(a=s.child;a;){if(a===r){o=!0,r=s,n=i;break}if(a===n){o=!0,n=s,r=i;break}a=a.sibling}if(!o)throw Error(I(189))}}if(r.alternate!==n)throw Error(I(190))}if(r.tag!==3)throw Error(I(188));return r.stateNode.current===r?e:t}function Tg(e){return e=a_(e),e!==null?Cg(e):null}function Cg(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Cg(e);if(t!==null)return t;e=e.sibling}return null}var Pg=Bt.unstable_scheduleCallback,bh=Bt.unstable_cancelCallback,l_=Bt.unstable_shouldYield,u_=Bt.unstable_requestPaint,He=Bt.unstable_now,c_=Bt.unstable_getCurrentPriorityLevel,tf=Bt.unstable_ImmediatePriority,Rg=Bt.unstable_UserBlockingPriority,pl=Bt.unstable_NormalPriority,d_=Bt.unstable_LowPriority,Og=Bt.unstable_IdlePriority,Gl=null,kr=null;function f_(e){if(kr&&typeof kr.onCommitFiberRoot=="function")try{kr.onCommitFiberRoot(Gl,e,void 0,(e.current.flags&128)===128)}catch{}}var fr=Math.clz32?Math.clz32:m_,h_=Math.log,p_=Math.LN2;function m_(e){return e>>>=0,e===0?32:31-(h_(e)/p_|0)|0}var Sa=64,Ea=4194304;function oo(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ml(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,i=e.suspendedLanes,s=e.pingedLanes,o=r&268435455;if(o!==0){var a=o&~i;a!==0?n=oo(a):(s&=o,s!==0&&(n=oo(s)))}else o=r&~i,o!==0?n=oo(o):s!==0&&(n=oo(s));if(n===0)return 0;if(t!==0&&t!==n&&!(t&i)&&(i=n&-n,s=t&-t,i>=s||i===16&&(s&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0<t;)r=31-fr(t),i=1<<r,n|=e[r],t&=~i;return n}function g_(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function v_(e,t){for(var r=e.suspendedLanes,n=e.pingedLanes,i=e.expirationTimes,s=e.pendingLanes;0<s;){var o=31-fr(s),a=1<<o,l=i[o];l===-1?(!(a&r)||a&n)&&(i[o]=g_(a,t)):l<=t&&(e.expiredLanes|=a),s&=~a}}function Uc(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Ag(){var e=Sa;return Sa<<=1,!(Sa&4194240)&&(Sa=64),e}function Uu(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}
vendor: 4,087 bytes, line 38
38function na(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-fr(t),e[t]=r}function y_(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0<r;){var i=31-fr(r),s=1<<i;t[i]=0,n[i]=-1,e[i]=-1,r&=~s}}function rf(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var n=31-fr(r),i=1<<n;i&t|e[n]&t&&(e[n]|=t),r&=~i}}var Se=0;function Ng(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Lg,nf,Ig,jg,Dg,Fc=!1,xa=[],Sn=null,En=null,xn=null,To=new Map,Co=new Map,dn=[],w_="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Sh(e,t){switch(e){case"focusin":case"focusout":Sn=null;break;case"dragenter":case"dragleave":En=null;break;case"mouseover":case"mouseout":xn=null;break;case"pointerover":case"pointerout":To.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Co.delete(t.pointerId)}}function qs(e,t,r,n,i,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:r,eventSystemFlags:n,nativeEvent:s,targetContainers:[i]},t!==null&&(t=sa(t),t!==null&&nf(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function __(e,t,r,n,i){switch(t){case"focusin":return Sn=qs(Sn,e,t,r,n,i),!0;case"dragenter":return En=qs(En,e,t,r,n,i),!0;case"mouseover":return xn=qs(xn,e,t,r,n,i),!0;case"pointerover":var s=i.pointerId;return To.set(s,qs(To.get(s)||null,e,t,r,n,i)),!0;case"gotpointercapture":return s=i.pointerId,Co.set(s,qs(Co.get(s)||null,e,t,r,n,i)),!0}return!1}function $g(e){var t=ei(e.target);if(t!==null){var r=wi(t);if(r!==null){if(t=r.tag,t===13){if(t=kg(r),t!==null){e.blockedOn=t,Dg(e.priority,function(){Ig(r)});return}}else if(t===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Ya(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=zc(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r===null){r=e.nativeEvent;var n=new r.constructor(r.type,r);jc=n,r.target.dispatchEvent(n),jc=null}else return t=sa(r),t!==null&&nf(t),e.blockedOn=r,!1;t.shift()}return!0}function Eh(e,t,r){Ya(e)&&r.delete(t)}function b_(){Fc=!1,Sn!==null&&Ya(Sn)&&(Sn=null),En!==null&&Ya(En)&&(En=null),xn!==null&&Ya(xn)&&(xn=null),To.forEach(Eh),Co.forEach(Eh)}function Gs(e,t){e.blockedOn===t&&(e.blockedOn=null,Fc||(Fc=!0,Bt.unstable_scheduleCallback(Bt.unstable_NormalPriority,b_)))}function Po(e){function t(i){return Gs(i,e)}if(0<xa.length){Gs(xa[0],e);for(var r=1;r<xa.length;r++){var n=xa[r];n.blockedOn===e&&(n.blockedOn=null)}}for(Sn!==null&&Gs(Sn,e),En!==null&&Gs(En,e),xn!==null&&Gs(xn,e),To.forEach(t),Co.forEach(t),r=0;r<dn.length;r++)n=dn[r],n.blockedOn===e&&(n.blockedOn=null);for(;0<dn.length&&(r=dn[0],r.blockedOn===null);)$g(r),r.blockedOn===null&&dn.shift()}var as=Xr.ReactCurrentBatchConfig,gl=!0;function S_(e,t,r,n){var i=Se,s=as.transition;as.transition=null;try{Se=1,sf(e,t,r,n)}finally{Se=i,as.transition=s}}function E_(e,t,r,n){var i=Se,s=as.transition;as.transition=null;try{Se=4,sf(e,t,r,n)}finally{Se=i,as.transition=s}}function sf(e,t,r,n){if(gl){var i=zc(e,t,r,n);if(i===null)Qu(e,t,n,vl,r),Sh(e,n);else if(__(i,e,t,r,n))n.stopPropagation();else if(Sh(e,n),t&4&&-1<w_.indexOf(e)){for(;i!==null;){var s=sa(i);if(s!==null&&Lg(s),s=zc(e,t,r,n),s===null&&Qu(e,t,n,vl,r),s===i)break;i=s}i!==null&&n.stopPropagation()}else Qu(e,t,n,null,r)}}var vl=null;function zc(e,t,r,n){if(vl=null,e=ef(n),e=ei(e),e!==null)if(t=wi(e),t===null)e=null;else if(r=t.tag,r===13){if(e=kg(t),e!==null)return e;e=null}else if(r===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return vl=e,null}
vendor: 10,401 bytes, line 38
38function Mg(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(c_()){case tf:return 1;case Rg:return 4;case pl:case d_:return 16;case Og:return 536870912;default:return 16}default:return 16}}var wn=null,of=null,Xa=null;function Ug(){if(Xa)return Xa;var e,t=of,r=t.length,n,i="value"in wn?wn.value:wn.textContent,s=i.length;for(e=0;e<r&&t[e]===i[e];e++);var o=r-e;for(n=1;n<=o&&t[r-n]===i[s-n];n++);return Xa=i.slice(e,1<n?1-n:void 0)}function Za(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function ka(){return!0}function xh(){return!1}function Ht(e){function t(r,n,i,s,o){this._reactName=r,this._targetInst=i,this.type=n,this.nativeEvent=s,this.target=o,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(r=e[a],this[a]=r?r(s):s[a]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?ka:xh,this.isPropagationStopped=xh,this}return Ie(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=ka)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=ka)},persist:function(){},isPersistent:ka}),t}var Ls={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},af=Ht(Ls),ia=Ie({},Ls,{view:0,detail:0}),x_=Ht(ia),Fu,zu,Qs,Ql=Ie({},ia,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:lf,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Qs&&(Qs&&e.type==="mousemove"?(Fu=e.screenX-Qs.screenX,zu=e.screenY-Qs.screenY):zu=Fu=0,Qs=e),Fu)},movementY:function(e){return"movementY"in e?e.movementY:zu}}),kh=Ht(Ql),k_=Ie({},Ql,{dataTransfer:0}),T_=Ht(k_),C_=Ie({},ia,{relatedTarget:0}),Bu=Ht(C_),P_=Ie({},Ls,{animationName:0,elapsedTime:0,pseudoElement:0}),R_=Ht(P_),O_=Ie({},Ls,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),A_=Ht(O_),N_=Ie({},Ls,{data:0}),Th=Ht(N_),L_={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},I_={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"},j_={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function D_(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=j_[e])?!!t[e]:!1}function lf(){return D_}var $_=Ie({},ia,{key:function(e){if(e.key){var t=L_[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Za(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?I_[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:lf,charCode:function(e){return e.type==="keypress"?Za(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Za(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),M_=Ht($_),U_=Ie({},Ql,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ch=Ht(U_),F_=Ie({},ia,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:lf}),z_=Ht(F_),B_=Ie({},Ls,{propertyName:0,elapsedTime:0,pseudoElement:0}),W_=Ht(B_),H_=Ie({},Ql,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),V_=Ht(H_),K_=[9,13,27,32],uf=Vr&&"CompositionEvent"in window,ho=null;Vr&&"documentMode"in document&&(ho=document.documentMode);var q_=Vr&&"TextEvent"in window&&!ho,Fg=Vr&&(!uf||ho&&8<ho&&11>=ho),Ph=" ",Rh=!1;function zg(e,t){switch(e){case"keyup":return K_.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Bg(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var qi=!1;function G_(e,t){switch(e){case"compositionend":return Bg(t);case"keypress":return t.which!==32?null:(Rh=!0,Ph);case"textInput":return e=t.data,e===Ph&&Rh?null:e;default:return null}}function Q_(e,t){if(qi)return e==="compositionend"||!uf&&zg(e,t)?(e=Ug(),Xa=of=wn=null,qi=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Fg&&t.locale!=="ko"?null:t.data;default:return null}}var J_={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 Oh(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!J_[e.type]:t==="textarea"}function Wg(e,t,r,n){_g(n),t=yl(t,"onChange"),0<t.length&&(r=new af("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var po=null,Ro=null;function Y_(e){ev(e,0)}function Jl(e){var t=Ji(e);if(hg(t))return e}function X_(e,t){if(e==="change")return t}var Hg=!1;if(Vr){var Wu;if(Vr){var Hu="oninput"in document;if(!Hu){var Ah=document.createElement("div");Ah.setAttribute("oninput","return;"),Hu=typeof Ah.oninput=="function"}Wu=Hu}else Wu=!1;Hg=Wu&&(!document.documentMode||9<document.documentMode)}function Nh(){po&&(po.detachEvent("onpropertychange",Vg),Ro=po=null)}function Vg(e){if(e.propertyName==="value"&&Jl(Ro)){var t=[];Wg(t,Ro,e,ef(e)),xg(Y_,t)}}function Z_(e,t,r){e==="focusin"?(Nh(),po=t,Ro=r,po.attachEvent("onpropertychange",Vg)):e==="focusout"&&Nh()}function eb(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Jl(Ro)}function tb(e,t){if(e==="click")return Jl(t)}function rb(e,t){if(e==="input"||e==="change")return Jl(t)}function nb(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var pr=typeof Object.is=="function"?Object.is:nb;function Oo(e,t){if(pr(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++){var i=r[n];if(!Ec.call(t,i)||!pr(e[i],t[i]))return!1}return!0}function Lh(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Ih(e,t){var r=Lh(e);e=0;for(var n;r;){if(r.nodeType===3){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Lh(r)}}function Kg(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Kg(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function qg(){for(var e=window,t=dl();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=dl(e.document)}return t}function cf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function ib(e){var t=qg(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&Kg(r.ownerDocument.documentElement,r)){if(n!==null&&cf(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=r.textContent.length,s=Math.min(n.start,i);n=n.end===void 0?s:Math.min(n.end,i),!e.extend&&s>n&&(i=n,n=s,s=i),i=Ih(r,s);var o=Ih(r,n);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),s>n?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<t.length;r++)e=t[r],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var sb=Vr&&"documentMode"in document&&11>=document.documentMode,Gi=null,Bc=null,mo=null,Wc=!1;function jh(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Wc||Gi==null||Gi!==dl(n)||(n=Gi,"selectionStart"in n&&cf(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focu
vendor: 4,383 bytes, line 38
38sNode:n.focusNode,focusOffset:n.focusOffset}),mo&&Oo(mo,n)||(mo=n,n=yl(Bc,"onSelect"),0<n.length&&(t=new af("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=Gi)))}function Ta(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var Qi={animationend:Ta("Animation","AnimationEnd"),animationiteration:Ta("Animation","AnimationIteration"),animationstart:Ta("Animation","AnimationStart"),transitionend:Ta("Transition","TransitionEnd")},Vu={},Gg={};Vr&&(Gg=document.createElement("div").style,"AnimationEvent"in window||(delete Qi.animationend.animation,delete Qi.animationiteration.animation,delete Qi.animationstart.animation),"TransitionEvent"in window||delete Qi.transitionend.transition);function Yl(e){if(Vu[e])return Vu[e];if(!Qi[e])return e;var t=Qi[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in Gg)return Vu[e]=t[r];return e}var Qg=Yl("animationend"),Jg=Yl("animationiteration"),Yg=Yl("animationstart"),Xg=Yl("transitionend"),Zg=new Map,Dh="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Un(e,t){Zg.set(e,t),yi(t,[e])}for(var Ku=0;Ku<Dh.length;Ku++){var qu=Dh[Ku],ob=qu.toLowerCase(),ab=qu[0].toUpperCase()+qu.slice(1);Un(ob,"on"+ab)}Un(Qg,"onAnimationEnd");Un(Jg,"onAnimationIteration");Un(Yg,"onAnimationStart");Un("dblclick","onDoubleClick");Un("focusin","onFocus");Un("focusout","onBlur");Un(Xg,"onTransitionEnd");Ss("onMouseEnter",["mouseout","mouseover"]);Ss("onMouseLeave",["mouseout","mouseover"]);Ss("onPointerEnter",["pointerout","pointerover"]);Ss("onPointerLeave",["pointerout","pointerover"]);yi("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));yi("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));yi("onBeforeInput",["compositionend","keypress","textInput","paste"]);yi("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));yi("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));yi("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ao="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(" "),lb=new Set("cancel close invalid load scroll toggle".split(" ").concat(ao));function $h(e,t,r){var n=e.type||"unknown-event";e.currentTarget=r,o_(n,t,void 0,e),e.currentTarget=null}function ev(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var n=e[r],i=n.event;n=n.listeners;e:{var s=void 0;if(t)for(var o=n.length-1;0<=o;o--){var a=n[o],l=a.instance,u=a.currentTarget;if(a=a.listener,l!==s&&i.isPropagationStopped())break e;$h(i,a,u),s=l}else for(o=0;o<n.length;o++){if(a=n[o],l=a.instance,u=a.currentTarget,a=a.listener,l!==s&&i.isPropagationStopped())break e;$h(i,a,u),s=l}}}if(hl)throw e=Mc,hl=!1,Mc=null,e}function Pe(e,t){var r=t[Gc];r===void 0&&(r=t[Gc]=new Set);var n=e+"__bubble";r.has(n)||(tv(t,e,2,!1),r.add(n))}function Gu(e,t,r){var n=0;t&&(n|=4),tv(r,e,n,t)}var Ca="_reactListening"+Math.random().toString(36).slice(2);function Ao(e){if(!e[Ca]){e[Ca]=!0,lg.forEach(function(r){r!=="selectionchange"&&(lb.has(r)||Gu(r,!1,e),Gu(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ca]||(t[Ca]=!0,Gu("selectionchange",!1,t))}}function tv(e,t,r,n){switch(Mg(t)){case 1:var i=S_;break;case 4:i=E_;break;default:i=sf}r=i.bind(null,t,r,e),i=void 0,!$c||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),n?i!==void 0?e.addEventListener(t,r,{capture:!0,passive:i}):e.addEventListener(t,r,!0):i!==void 0?e.addEventListener(t,r,{passive:i}):e.addEventListener(t,r,!1)}function Qu(e,t,r,n,i){var s=n;
vendor: 5,690 bytes, lines 38-39
38if(!(t&1)&&!(t&2)&&n!==null)e:for(;;){if(n===null)return;var o=n.tag;if(o===3||o===4){var a=n.stateNode.containerInfo;if(a===i||a.nodeType===8&&a.parentNode===i)break;if(o===4)for(o=n.return;o!==null;){var l=o.tag;if((l===3||l===4)&&(l=o.stateNode.containerInfo,l===i||l.nodeType===8&&l.parentNode===i))return;o=o.return}for(;a!==null;){if(o=ei(a),o===null)return;if(l=o.tag,l===5||l===6){n=s=o;continue e}a=a.parentNode}}n=n.return}xg(function(){var u=s,c=ef(r),f=[];e:{var d=Zg.get(e);if(d!==void 0){var h=af,g=e;switch(e){case"keypress":if(Za(r)===0)break e;case"keydown":case"keyup":h=M_;break;case"focusin":g="focus",h=Bu;break;case"focusout":g="blur",h=Bu;break;case"beforeblur":case"afterblur":h=Bu;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":h=kh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=T_;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=z_;break;case Qg:case Jg:case Yg:h=R_;break;case Xg:h=W_;break;case"scroll":h=x_;break;case"wheel":h=V_;break;case"copy":case"cut":case"paste":h=A_;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=Ch}var v=(t&4)!==0,_=!v&&e==="scroll",m=v?d!==null?d+"Capture":null:d;v=[];for(var p=u,y;p!==null;){y=p;var S=y.stateNode;if(y.tag===5&&S!==null&&(y=S,m!==null&&(S=ko(p,m),S!=null&&v.push(No(p,S,y)))),_)break;p=p.return}0<v.length&&(d=new h(d,g,null,r,c),f.push({event:d,listeners:v}))}}if(!(t&7)){e:{if(d=e==="mouseover"||e==="pointerover",h=e==="mouseout"||e==="pointerout",d&&r!==jc&&(g=r.relatedTarget||r.fromElement)&&(ei(g)||g[Kr]))break e;if((h||d)&&(d=c.window===c?c:(d=c.ownerDocument)?d.defaultView||d.parentWindow:window,h?(g=r.relatedTarget||r.toElement,h=u,g=g?ei(g):null,g!==null&&(_=wi(g),g!==_||g.tag!==5&&g.tag!==6)&&(g=null)):(h=null,g=u),h!==g)){if(v=kh,S="onMouseLeave",m="onMouseEnter",p="mouse",(e==="pointerout"||e==="pointerover")&&(v=Ch,S="onPointerLeave",m="onPointerEnter",p="pointer"),_=h==null?d:Ji(h),y=g==null?d:Ji(g),d=new v(S,p+"leave",h,r,c),d.target=_,d.relatedTarget=y,S=null,ei(c)===u&&(v=new v(m,p+"enter",g,r,c),v.target=y,v.relatedTarget=_,S=v),_=S,h&&g)t:{for(v=h,m=g,p=0,y=v;y;y=Ni(y))p++;for(y=0,S=m;S;S=Ni(S))y++;for(;0<p-y;)v=Ni(v),p--;for(;0<y-p;)m=Ni(m),y--;for(;p--;){if(v===m||m!==null&&v===m.alternate)break t;v=Ni(v),m=Ni(m)}v=null}else v=null;h!==null&&Mh(f,d,h,v,!1),g!==null&&_!==null&&Mh(f,_,g,v,!0)}}e:{if(d=u?Ji(u):window,h=d.nodeName&&d.nodeName.toLowerCase(),h==="select"||h==="input"&&d.type==="file")var x=X_;else if(Oh(d))if(Hg)x=rb;else{x=eb;var C=Z_}else(h=d.nodeName)&&h.toLowerCase()==="input"&&(d.type==="checkbox"||d.type==="radio")&&(x=tb);if(x&&(x=x(e,u))){Wg(f,x,r,c);break e}C&&C(e,d,u),e==="focusout"&&(C=d._wrapperState)&&C.controlled&&d.type==="number"&&Oc(d,"number",d.value)}switch(C=u?Ji(u):window,e){case"focusin":(Oh(C)||C.contentEditable==="true")&&(Gi=C,Bc=u,mo=null);break;case"focusout":mo=Bc=Gi=null;break;case"mousedown":Wc=!0;break;case"contextmenu":case"mouseup":case"dragend":Wc=!1,jh(f,r,c);break;case"selectionchange":if(sb)break;case"keydown":case"keyup":jh(f,r,c)}var b;if(uf)e:{switch(e){case"compositionstart":var P="onCompositionStart";break e;case"compositionend":P="onCompositionEnd";break e;case"compositionupdate":P="onCompositionUpdate";break e}P=void 0}else qi?zg(e,r)&&(P="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(P="onCompositionStart");P&&(Fg&&r.locale!=="ko"&&(qi||P!=="onCompositionStart"?P==="onCompositionEnd"&&qi&&(b=Ug()):(wn=c,of="value"in wn?wn.value:wn.textContent,qi=!0)),C=yl(u,P),0<C.length&&(P=new Th(P,e,null,r,c),f.push({event:P,listeners:C}),b?P.data=b:(b=Bg(r),b!==null&&(P.data=b)))),(b=q_?G_(e,r):Q_(e,r))&&(u=yl(u,"onBeforeInput"),0<u.length&&(c=new Th("onBeforeInput","beforeinput",null,r,c),f.push({event:c,listeners:u}),c.data=b))}ev(f,t)})}function No(e,t,r){return{instance:e,listener:t,currentTarget:r}}function yl(e,t){for(var r=t+"Capture",n=[];e!==null;){var i=e,s=i.stateNode;i.tag===5&&s!==null&&(i=s,s=ko(e,r),s!=null&&n.unshift(No(e,s,i)),s=ko(e,t),s!=null&&n.push(No(e,s,i))),e=e.return}return n}function Ni(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Mh(e,t,r,n,i){for(var s=t._reactName,o=[];r!==null&&r!==n;){var a=r,l=a.alternate,u=a.stateNode;if(l!==null&&l===n)break;a.tag===5&&u!==null&&(a=u,i?(l=ko(r,s),l!=null&&o.unshift(No(r,l,a))):i||(l=ko(r,s),l!=null&&o.push(No(r,l,a)))),r=r.return}o.length!==0&&e.push({event:t,listeners:o})}var ub=/\r\n?/g,cb=/\u0000|\uFFFD/g;function Uh(e){return(typeof e=="string"?e:""+e).replace(ub,` 39`).replace(cb,"")}function Pa(e,t,r){if(t=Uh(t),Uh(e)!==t&&r)throw Error(I(425))}function wl(){}var Hc=null,Vc=null;function Kc(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var qc=typeof setTimeout=="function"?setTimeout:void 0,db=typeof clearTimeout=="function"?clearTimeout:void 0,Fh=typeof Promise=="function"?Promise:void 0,fb=typeof queueMicrotask=="function"?queueMicrotask:typeof Fh<"u"?function(e){return Fh.resolve(null).then(e).catch(hb)}:qc;function hb(e){setTimeout(function(){throw e})}function Ju(e,t){var r=t,n=0;do{var i=r.nextSibling;if(e.removeChild(r),i&&i.nodeType===8)if(r=i.data,r==="/$"){if(n===0){e.removeChild(i),Po(t);return}n--}else r!=="$"&&r!=="$?"&&r!=="$!"||n++;r=i}
vendor: 4,537 bytes, line 39
39while(r);Po(t)}function kn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function zh(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"){if(t===0)return e;t--}else r==="/$"&&t++}e=e.previousSibling}return null}var Is=Math.random().toString(36).slice(2),xr="__reactFiber$"+Is,Lo="__reactProps$"+Is,Kr="__reactContainer$"+Is,Gc="__reactEvents$"+Is,pb="__reactListeners$"+Is,mb="__reactHandles$"+Is;function ei(e){var t=e[xr];if(t)return t;for(var r=e.parentNode;r;){if(t=r[Kr]||r[xr]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=zh(e);e!==null;){if(r=e[xr])return r;e=zh(e)}return t}e=r,r=e.parentNode}return null}function sa(e){return e=e[xr]||e[Kr],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Ji(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(I(33))}function Xl(e){return e[Lo]||null}var Qc=[],Yi=-1;function Fn(e){return{current:e}}function Re(e){0>Yi||(e.current=Qc[Yi],Qc[Yi]=null,Yi--)}function ke(e,t){Yi++,Qc[Yi]=e.current,e.current=t}var An={},dt=Fn(An),Tt=Fn(!1),di=An;function Es(e,t){var r=e.type.contextTypes;if(!r)return An;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var i={},s;for(s in r)i[s]=t[s];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Ct(e){return e=e.childContextTypes,e!=null}function _l(){Re(Tt),Re(dt)}function Bh(e,t,r){if(dt.current!==An)throw Error(I(168));ke(dt,t),ke(Tt,r)}function rv(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var i in n)if(!(i in t))throw Error(I(108,Zw(e)||"Unknown",i));return Ie({},r,n)}function bl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||An,di=dt.current,ke(dt,e),ke(Tt,Tt.current),!0}function Wh(e,t,r){var n=e.stateNode;if(!n)throw Error(I(169));r?(e=rv(e,t,di),n.__reactInternalMemoizedMergedChildContext=e,Re(Tt),Re(dt),ke(dt,e)):Re(Tt),ke(Tt,r)}var Fr=null,Zl=!1,Yu=!1;function nv(e){Fr===null?Fr=[e]:Fr.push(e)}function gb(e){Zl=!0,nv(e)}function zn(){if(!Yu&&Fr!==null){Yu=!0;var e=0,t=Se;try{var r=Fr;for(Se=1;e<r.length;e++){var n=r[e];do n=n(!0);while(n!==null)}Fr=null,Zl=!1}catch(i){throw Fr!==null&&(Fr=Fr.slice(e+1)),Pg(tf,zn),i}finally{Se=t,Yu=!1}}return null}var Xi=[],Zi=0,Sl=null,El=0,Kt=[],qt=0,fi=null,zr=1,Br="";function qn(e,t){Xi[Zi++]=El,Xi[Zi++]=Sl,Sl=e,El=t}function iv(e,t,r){Kt[qt++]=zr,Kt[qt++]=Br,Kt[qt++]=fi,fi=e;var n=zr;e=Br;var i=32-fr(n)-1;n&=~(1<<i),r+=1;var s=32-fr(t)+i;if(30<s){var o=i-i%5;s=(n&(1<<o)-1).toString(32),n>>=o,i-=o,zr=1<<32-fr(t)+i|r<<i|n,Br=s+e}else zr=1<<s|r<<i|n,Br=e}function df(e){e.return!==null&&(qn(e,1),iv(e,1,0))}function ff(e){for(;e===Sl;)Sl=Xi[--Zi],Xi[Zi]=null,El=Xi[--Zi],Xi[Zi]=null;for(;e===fi;)fi=Kt[--qt],Kt[qt]=null,Br=Kt[--qt],Kt[qt]=null,zr=Kt[--qt],Kt[qt]=null}var Ft=null,Ut=null,Ae=!1,dr=null;function sv(e,t){var r=Gt(5,null,null,0);r.elementType="DELETED",r.stateNode=t,r.return=e,t=e.deletions,t===null?(e.deletions=[r],e.flags|=16):t.push(r)}function Hh(e,t){switch(e.tag){case 5:var r=e.type;return t=t.nodeType!==1||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Ft=e,Ut=kn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Ft=e,Ut=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(r=fi!==null?{id:zr,overflow:Br}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},r=Gt(18,null,null,0),r.stateNode=t,r.return=e,e.child=r,Ft=e,Ut=null,!0):!1;default:return!1}}function Jc(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Yc(e){if(Ae){var t=Ut;if(t){var r=t;if(!Hh(e,t)){if(Jc(e))throw Error(I(418));t=kn(r.nextSibling);var n=Ft;t&&Hh(e,t)?sv(n,r):(e.flags=e.flags&-4097|2,Ae=!1,Ft=e)}}else{if(Jc(e))throw Error(I(418));e.flags=e.flags&-4097|2,Ae=!1,Ft=e}}}function Vh(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Ft=e}function Ra(e){if(e!==Ft)return!1;if(!Ae)return Vh(e),Ae=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Kc(e.type,e.memoizedProps)),t&&(t=Ut)){if(Jc(e))throw ov(),Error(I(418));for(;t;)sv(e,t),t=kn(t.nextSibling)}if(Vh(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(I(317)
vendor: 12,508 bytes, line 39
39);e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){Ut=kn(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}Ut=null}}else Ut=Ft?kn(e.stateNode.nextSibling):null;return!0}function ov(){for(var e=Ut;e;)e=kn(e.nextSibling)}function xs(){Ut=Ft=null,Ae=!1}function hf(e){dr===null?dr=[e]:dr.push(e)}var vb=Xr.ReactCurrentBatchConfig;function Js(e,t,r){if(e=r.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(r._owner){if(r=r._owner,r){if(r.tag!==1)throw Error(I(309));var n=r.stateNode}if(!n)throw Error(I(147,e));var i=n,s=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===s?t.ref:(t=function(o){var a=i.refs;o===null?delete a[s]:a[s]=o},t._stringRef=s,t)}if(typeof e!="string")throw Error(I(284));if(!r._owner)throw Error(I(290,e))}return e}function Oa(e,t){throw e=Object.prototype.toString.call(t),Error(I(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Kh(e){var t=e._init;return t(e._payload)}function av(e){function t(m,p){if(e){var y=m.deletions;y===null?(m.deletions=[p],m.flags|=16):y.push(p)}}function r(m,p){if(!e)return null;for(;p!==null;)t(m,p),p=p.sibling;return null}function n(m,p){for(m=new Map;p!==null;)p.key!==null?m.set(p.key,p):m.set(p.index,p),p=p.sibling;return m}function i(m,p){return m=Rn(m,p),m.index=0,m.sibling=null,m}function s(m,p,y){return m.index=y,e?(y=m.alternate,y!==null?(y=y.index,y<p?(m.flags|=2,p):y):(m.flags|=2,p)):(m.flags|=1048576,p)}function o(m){return e&&m.alternate===null&&(m.flags|=2),m}function a(m,p,y,S){return p===null||p.tag!==6?(p=ic(y,m.mode,S),p.return=m,p):(p=i(p,y),p.return=m,p)}function l(m,p,y,S){var x=y.type;return x===Ki?c(m,p,y.props.children,S,y.key):p!==null&&(p.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===ln&&Kh(x)===p.type)?(S=i(p,y.props),S.ref=Js(m,p,y),S.return=m,S):(S=ol(y.type,y.key,y.props,null,m.mode,S),S.ref=Js(m,p,y),S.return=m,S)}function u(m,p,y,S){return p===null||p.tag!==4||p.stateNode.containerInfo!==y.containerInfo||p.stateNode.implementation!==y.implementation?(p=sc(y,m.mode,S),p.return=m,p):(p=i(p,y.children||[]),p.return=m,p)}function c(m,p,y,S,x){return p===null||p.tag!==7?(p=ci(y,m.mode,S,x),p.return=m,p):(p=i(p,y),p.return=m,p)}function f(m,p,y){if(typeof p=="string"&&p!==""||typeof p=="number")return p=ic(""+p,m.mode,y),p.return=m,p;if(typeof p=="object"&&p!==null){switch(p.$$typeof){case wa:return y=ol(p.type,p.key,p.props,null,m.mode,y),y.ref=Js(m,null,p),y.return=m,y;case Vi:return p=sc(p,m.mode,y),p.return=m,p;case ln:var S=p._init;return f(m,S(p._payload),y)}if(so(p)||Vs(p))return p=ci(p,m.mode,y,null),p.return=m,p;Oa(m,p)}return null}function d(m,p,y,S){var x=p!==null?p.key:null;if(typeof y=="string"&&y!==""||typeof y=="number")return x!==null?null:a(m,p,""+y,S);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case wa:return y.key===x?l(m,p,y,S):null;case Vi:return y.key===x?u(m,p,y,S):null;case ln:return x=y._init,d(m,p,x(y._payload),S)}if(so(y)||Vs(y))return x!==null?null:c(m,p,y,S,null);Oa(m,y)}return null}function h(m,p,y,S,x){if(typeof S=="string"&&S!==""||typeof S=="number")return m=m.get(y)||null,a(p,m,""+S,x);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case wa:return m=m.get(S.key===null?y:S.key)||null,l(p,m,S,x);case Vi:return m=m.get(S.key===null?y:S.key)||null,u(p,m,S,x);case ln:var C=S._init;return h(m,p,y,C(S._payload),x)}if(so(S)||Vs(S))return m=m.get(y)||null,c(p,m,S,x,null);Oa(p,S)}return null}function g(m,p,y,S){for(var x=null,C=null,b=p,P=p=0,j=null;b!==null&&P<y.length;P++){b.index>P?(j=b,b=null):j=b.sibling;var A=d(m,b,y[P],S);if(A===null){b===null&&(b=j);break}e&&b&&A.alternate===null&&t(m,b),p=s(A,p,P),C===null?x=A:C.sibling=A,C=A,b=j}if(P===y.length)return r(m,b),Ae&&qn(m,P),x;if(b===null){for(;P<y.length;P++)b=f(m,y[P],S),b!==null&&(p=s(b,p,P),C===null?x=b:C.sibling=b,C=b);return Ae&&qn(m,P),x}for(b=n(m,b);P<y.length;P++)j=h(b,m,P,y[P],S),j!==null&&(e&&j.alternate!==null&&b.delete(j.key===null?P:j.key),p=s(j,p,P),C===null?x=j:C.sibling=j,C=j);return e&&b.forEach(function(W){return t(m,W)}),Ae&&qn(m,P),x}function v(m,p,y,S){var x=Vs(y);if(typeof x!="function")throw Error(I(150));if(y=x.call(y),y==null)throw Error(I(151));for(var C=x=null,b=p,P=p=0,j=null,A=y.next();b!==null&&!A.done;P++,A=y.next()){b.index>P?(j=b,b=null):j=b.sibling;var W=d(m,b,A.value,S);if(W===null){b===null&&(b=j);break}e&&b&&W.alternate===null&&t(m,b),p=s(W,p,P),C===null?x=W:C.sibling=W,C=W,b=j}if(A.done)return r(m,b),Ae&&qn(m,P),x;if(b===null){for(;!A.done;P++,A=y.next())A=f(m,A.value,S),A!==null&&(p=s(A,p,P),C===null?x=A:C.sibling=A,C=A);return Ae&&qn(m,P),x}for(b=n(m,b);!A.done;P++,A=y.next())A=h(b,m,P,A.value,S),A!==null&&(e&&A.alternate!==null&&b.delete(A.key===null?P:A.key),p=s(A,p,P),C===null?x=A:C.sibling=A,C=A);return e&&b.forEach(function(U){return t(m,U)}),Ae&&qn(m,P),x}function _(m,p,y,S){if(typeof y=="object"&&y!==null&&y.type===Ki&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case wa:e:{for(var x=y.key,C=p;C!==null;){if(C.key===x){if(x=y.type,x===Ki){if(C.tag===7){r(m,C.sibling),p=i(C,y.props.children),p.return=m,m=p;break e}}else if(C.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===ln&&Kh(x)===C.type){r(m,C.sibling),p=i(C,y.props),p.ref=Js(m,C,y),p.return=m,m=p;break e}r(m,C);break}else t(m,C);C=C.sibling}y.type===Ki?(p=ci(y.props.children,m.mode,S,y.key),p.return=m,m=p):(S=ol(y.type,y.key,y.props,null,m.mode,S),S.ref=Js(m,p,y),S.return=m,m=S)}return o(m);case Vi:e:{for(C=y.key;p!==null;){if(p.key===C)if(p.tag===4&&p.stateNode.containerInfo===y.containerInfo&&p.stateNode.implementation===y.implementation){r(m,p.sibling),p=i(p,y.children||[]),p.return=m,m=p;break e}else{r(m,p);break}else t(m,p);p=p.sibling}p=sc(y,m.mode,S),p.return=m,m=p}return o(m);case ln:return C=y._init,_(m,p,C(y._payload),S)}if(so(y))return g(m,p,y,S);if(Vs(y))return v(m,p,y,S);Oa(m,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,p!==null&&p.tag===6?(r(m,p.sibling),p=i(p,y),p.return=m,m=p):(r(m,p),p=ic(y,m.mode,S),p.return=m,m=p),o(m)):r(m,p)}return _}var ks=av(!0),lv=av(!1),xl=Fn(null),kl=null,es=null,pf=null;function mf(){pf=es=kl=null}function gf(e){var t=xl.current;Re(xl),e._currentValue=t}function Xc(e,t,r){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function ls(e,t){kl=e,pf=es=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(kt=!0),e.firstContext=null)}function Jt(e){var t=e._currentValue;if(pf!==e)if(e={context:e,memoizedValue:t,next:null},es===null){if(kl===null)throw Error(I(308));es=e,kl.dependencies={lanes:0,firstContext:e}}else es=es.next=e;return t}var ti=null;function vf(e){ti===null?ti=[e]:ti.push(e)}function uv(e,t,r,n){var i=t.interleaved;return i===null?(r.next=r,vf(t)):(r.next=i.next,i.next=r),t.interleaved=r,qr(e,n)}function qr(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var un=!1;function yf(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function cv(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Wr(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Tn(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,pe&2){var i=n.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),n.pending=t,qr(e,r)}return i=n.interleaved,i===null?(t.next=t,vf(n)):(t.next=i.next,i.next=t),n.interleaved=t,qr(e,r)}function el(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,rf(e,r)}}function qh(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var i=null,s=null;if(r=r.firstBaseUpdate,r!==null){do{var o={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};s===null?i=s=o:s=s.next=o,r=r.next}while(r!==null);s===null?i=s=t:s=s.next=t}else i=s=t;r={baseState:n.baseState,firstBaseUpdate:i,lastBaseUpdate:s,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function Tl(e,t,r,n){var i=e.updateQueue;un=!1;var s=i.firstBaseUpdate,o=i.lastBaseUpdate,a=i.shared.pending;if(a!==null){i.shared.pending=null;var l=a,u=l.next;l.next=null,o===null?s=u:o.next=u,o=l;var c=e.alternate;c!==null&&(c=c.updateQueue,a=c.lastBaseUpdate,a!==o&&(a===null?c.firstBaseUpdate=u:a.next=u,c.lastBaseUpdate=l))}if(s!==null){var f=i.baseState;o=0,c=u=l=null,a=s;do{var d=a.lane,h=a.eventTime;if((n&d)===d){c!==null&&(c=c.next={eventTime:h,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var g=e,v=a;switch(d=t,h=r,v.tag){case 1:if(g=v.payload,typeof g=="function"){f=g.call(h,f,d);break e}f=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=v.payload,d=typeof g=="function"?g.call(h,f,d):g,d==null)break e;f=Ie({},f,d);break e;case 2:un=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,d=i.effects,d===null?i.effects=[a]:d.push(a))}else h={eventTime:h,lane:d,tag:a.tag,payload:a.payload,callback:a.callback,next:null},c===null?(u=c=h,l=f):c=c.next=h,o|=d;if(a=a.next,a===null){if(a=i.shared.pending,a===null)break;d=a,a=d.next,d.next=null,i.lastBaseUpdate=d,i.shared.pending=null}}while(!0);if(c===null&&(l=f),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=c,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else s===null&&(i.shared.lanes=0);pi|=o,e.lanes=o,e.memoizedState=f}}function Gh(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var n=e[t],i=n.callback;if(i!==null){if(n.callback=null,n=r,typeof i!="function")throw Error(I(191,i));i.call(n)}}}var oa={},Tr=Fn(oa),Io=Fn(oa),jo=Fn(oa);function ri(e){if(e===oa)throw Error(I(174));return e}function wf(e,t){switch(ke(jo,t),ke(Io,e),ke(Tr,oa),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Nc(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Nc(t,e)}Re(Tr),ke(Tr,t)}function Ts(){Re(Tr),Re(Io),Re(jo)}function dv(e){ri(jo.current);var t=ri(Tr.current),r=Nc(t,e.type);t!==r&&(ke(Io,e),ke(Tr,r))}function _f(e){Io.current===e&&(Re(Tr),Re(Io))}var Ne=Fn(0);function Cl(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Xu=[];function bf(){for(var e=0;e<Xu.length;e++)Xu[e]._workInProgressVersionPrimary=null;Xu.length=0}var tl=Xr.ReactCurrentDispatcher,Zu=Xr.ReactCurrentBatchConfig,hi=0,Le=null,Qe=null,Ye=null,Pl=!1,go=!1,Do=0,yb=0;function at(){throw Error(I(321))}function Sf(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!pr(e[r],t[r]))return!1;return!0}function Ef(e,t,r,n,i,s){if(hi=s,Le=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,tl.current=e===null||e.memoizedState===null?Sb:Eb,e=r(n,i),go){s=0;do{if(go=!1,Do=0,25<=s)throw Error(I(301));s+=1,Ye=Qe=null,t.updateQueue=null,tl.current=xb,e=r(n,i)}while(go)}if(tl.current=Rl,t=Qe!==null&&Qe.next!==null,hi=0,Ye=Qe=Le=null,Pl=!1,t)throw Error(I(300));return e}function xf(){var e=Do!==0;return Do=0,e}function _r(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ye===null?Le.memoizedState=Ye=e:Ye=Ye.next=e,Ye}function Yt(){if(Qe===null){var e=Le.alternate;e=e!==null?e.memoizedState:null}else e=Qe.next;var t=Ye===null?Le.memoizedState:Ye.next;if(t!==null)Ye=t,Qe=e;else{if(e===null)throw Error(I(310));Qe=e,e={memoizedState:Qe.memoizedState,baseState:Qe.baseState,baseQueue:Qe.baseQueue,queue:Qe.queue,next:null},Ye===null?Le.memoizedState=Ye=e:Ye=Ye.next=e}return Ye}function $o(e,t){return typeof t=="function"?t(e):t}function ec(e){var t=Yt(),r=t.queue;if(r===null)throw Error(I(311));r.lastRenderedReducer=e;
vendor: 4,384 bytes, line 39
39var n=Qe,i=n.baseQueue,s=r.pending;if(s!==null){if(i!==null){var o=i.next;i.next=s.next,s.next=o}n.baseQueue=i=s,r.pending=null}if(i!==null){s=i.next,n=n.baseState;var a=o=null,l=null,u=s;do{var c=u.lane;if((hi&c)===c)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),n=u.hasEagerState?u.eagerState:e(n,u.action);else{var f={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(a=l=f,o=n):l=l.next=f,Le.lanes|=c,pi|=c}u=u.next}while(u!==null&&u!==s);l===null?o=n:l.next=a,pr(n,t.memoizedState)||(kt=!0),t.memoizedState=n,t.baseState=o,t.baseQueue=l,r.lastRenderedState=n}if(e=r.interleaved,e!==null){i=e;do s=i.lane,Le.lanes|=s,pi|=s,i=i.next;while(i!==e)}else i===null&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function tc(e){var t=Yt(),r=t.queue;if(r===null)throw Error(I(311));r.lastRenderedReducer=e;var n=r.dispatch,i=r.pending,s=t.memoizedState;if(i!==null){r.pending=null;var o=i=i.next;do s=e(s,o.action),o=o.next;while(o!==i);pr(s,t.memoizedState)||(kt=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),r.lastRenderedState=s}return[s,n]}function fv(){}function hv(e,t){var r=Le,n=Yt(),i=t(),s=!pr(n.memoizedState,i);if(s&&(n.memoizedState=i,kt=!0),n=n.queue,kf(gv.bind(null,r,n,e),[e]),n.getSnapshot!==t||s||Ye!==null&&Ye.memoizedState.tag&1){if(r.flags|=2048,Mo(9,mv.bind(null,r,n,i,t),void 0,null),Xe===null)throw Error(I(349));hi&30||pv(r,t,i)}return i}function pv(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=Le.updateQueue,t===null?(t={lastEffect:null,stores:null},Le.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function mv(e,t,r,n){t.value=r,t.getSnapshot=n,vv(t)&&yv(e)}function gv(e,t,r){return r(function(){vv(t)&&yv(e)})}function vv(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!pr(e,r)}catch{return!0}}function yv(e){var t=qr(e,1);t!==null&&hr(t,e,1,-1)}function Qh(e){var t=_r();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:$o,lastRenderedState:e},t.queue=e,e=e.dispatch=bb.bind(null,Le,e),[t.memoizedState,e]}function Mo(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},t=Le.updateQueue,t===null?(t={lastEffect:null,stores:null},Le.updateQueue=t,t.lastEffect=e.next=e):(r=t.lastEffect,r===null?t.lastEffect=e.next=e:(n=r.next,r.next=e,e.next=n,t.lastEffect=e)),e}function wv(){return Yt().memoizedState}function rl(e,t,r,n){var i=_r();Le.flags|=e,i.memoizedState=Mo(1|t,r,void 0,n===void 0?null:n)}function eu(e,t,r,n){var i=Yt();n=n===void 0?null:n;var s=void 0;if(Qe!==null){var o=Qe.memoizedState;if(s=o.destroy,n!==null&&Sf(n,o.deps)){i.memoizedState=Mo(t,r,s,n);return}}Le.flags|=e,i.memoizedState=Mo(1|t,r,s,n)}function Jh(e,t){return rl(8390656,8,e,t)}function kf(e,t){return eu(2048,8,e,t)}function _v(e,t){return eu(4,2,e,t)}function bv(e,t){return eu(4,4,e,t)}function Sv(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Ev(e,t,r){return r=r!=null?r.concat([e]):null,eu(4,4,Sv.bind(null,t,e),r)}function Tf(){}function xv(e,t){var r=Yt();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&Sf(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function kv(e,t){var r=Yt();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&Sf(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function Tv(e,t,r){return hi&21?(pr(r,t)||(r=Ag(),Le.lanes|=r,pi|=r,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,kt=!0),e.memoizedState=r)}function wb(e,t){var r=Se;Se=r!==0&&4>r?r:4,e(!0);var n=Zu.transition;Zu.transition={};try{e(!1),t()}finally{Se=r,Zu.transition=n}}function Cv(){return Yt().memoizedState}function _b(e,t,r){var n=Pn(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},Pv(e))Rv(t,r);else if(r=uv(e,t,r,n),r!==null){var i=vt();hr(r,e,n,i),Ov(r,t,n)}}function bb(e,t,r){var n=Pn(e),i={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(Pv(e))Rv(t,i);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var o=t.lastRenderedState,a=s(o,r);if(i.hasEagerState=!0,i.eagerState=a,pr(a,o)){var l=t.interleaved;l===null?(i.next=i,vf(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}
vendor: 8,735 bytes, lines 39-41
39r=uv(e,t,i,n),r!==null&&(i=vt(),hr(r,e,n,i),Ov(r,t,n))}}function Pv(e){var t=e.alternate;return e===Le||t!==null&&t===Le}function Rv(e,t){go=Pl=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function Ov(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,rf(e,r)}}var Rl={readContext:Jt,useCallback:at,useContext:at,useEffect:at,useImperativeHandle:at,useInsertionEffect:at,useLayoutEffect:at,useMemo:at,useReducer:at,useRef:at,useState:at,useDebugValue:at,useDeferredValue:at,useTransition:at,useMutableSource:at,useSyncExternalStore:at,useId:at,unstable_isNewReconciler:!1},Sb={readContext:Jt,useCallback:function(e,t){return _r().memoizedState=[e,t===void 0?null:t],e},useContext:Jt,useEffect:Jh,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,rl(4194308,4,Sv.bind(null,t,e),r)},useLayoutEffect:function(e,t){return rl(4194308,4,e,t)},useInsertionEffect:function(e,t){return rl(4,2,e,t)},useMemo:function(e,t){var r=_r();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=_r();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=_b.bind(null,Le,e),[n.memoizedState,e]},useRef:function(e){var t=_r();return e={current:e},t.memoizedState=e},useState:Qh,useDebugValue:Tf,useDeferredValue:function(e){return _r().memoizedState=e},useTransition:function(){var e=Qh(!1),t=e[0];return e=wb.bind(null,e[1]),_r().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=Le,i=_r();if(Ae){if(r===void 0)throw Error(I(407));r=r()}else{if(r=t(),Xe===null)throw Error(I(349));hi&30||pv(n,t,r)}i.memoizedState=r;var s={value:r,getSnapshot:t};return i.queue=s,Jh(gv.bind(null,n,s,e),[e]),n.flags|=2048,Mo(9,mv.bind(null,n,s,r,t),void 0,null),r},useId:function(){var e=_r(),t=Xe.identifierPrefix;if(Ae){var r=Br,n=zr;r=(n&~(1<<32-fr(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=Do++,0<r&&(t+="H"+r.toString(32)),t+=":"}else r=yb++,t=":"+t+"r"+r.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Eb={readContext:Jt,useCallback:xv,useContext:Jt,useEffect:kf,useImperativeHandle:Ev,useInsertionEffect:_v,useLayoutEffect:bv,useMemo:kv,useReducer:ec,useRef:wv,useState:function(){return ec($o)},useDebugValue:Tf,useDeferredValue:function(e){var t=Yt();return Tv(t,Qe.memoizedState,e)},useTransition:function(){var e=ec($o)[0],t=Yt().memoizedState;return[e,t]},useMutableSource:fv,useSyncExternalStore:hv,useId:Cv,unstable_isNewReconciler:!1},xb={readContext:Jt,useCallback:xv,useContext:Jt,useEffect:kf,useImperativeHandle:Ev,useInsertionEffect:_v,useLayoutEffect:bv,useMemo:kv,useReducer:tc,useRef:wv,useState:function(){return tc($o)},useDebugValue:Tf,useDeferredValue:function(e){var t=Yt();return Qe===null?t.memoizedState=e:Tv(t,Qe.memoizedState,e)},useTransition:function(){var e=tc($o)[0],t=Yt().memoizedState;return[e,t]},useMutableSource:fv,useSyncExternalStore:hv,useId:Cv,unstable_isNewReconciler:!1};function ir(e,t){if(e&&e.defaultProps){t=Ie({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}function Zc(e,t,r,n){t=e.memoizedState,r=r(n,t),r=r==null?t:Ie({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var tu={isMounted:function(e){return(e=e._reactInternals)?wi(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var n=vt(),i=Pn(e),s=Wr(n,i);s.payload=t,r!=null&&(s.callback=r),t=Tn(e,s,i),t!==null&&(hr(t,e,i,n),el(t,e,i))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=vt(),i=Pn(e),s=Wr(n,i);s.tag=1,s.payload=t,r!=null&&(s.callback=r),t=Tn(e,s,i),t!==null&&(hr(t,e,i,n),el(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=vt(),n=Pn(e),i=Wr(r,n);i.tag=2,t!=null&&(i.callback=t),t=Tn(e,i,n),t!==null&&(hr(t,e,n,r),el(t,e,n))}};function Yh(e,t,r,n,i,s,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,s,o):t.prototype&&t.prototype.isPureReactComponent?!Oo(r,n)||!Oo(i,s):!0}function Av(e,t,r){var n=!1,i=An,s=t.contextType;return typeof s=="object"&&s!==null?s=Jt(s):(i=Ct(t)?di:dt.current,n=t.contextTypes,s=(n=n!=null)?Es(e,i):An),t=new t(r,s),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=tu,e.stateNode=t,t._reactInternals=e,n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=s),t}function Xh(e,t,r,n){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,n),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,n),t.state!==e&&tu.enqueueReplaceState(t,t.state,null)}function ed(e,t,r,n){var i=e.stateNode;i.props=r,i.state=e.memoizedState,i.refs={},yf(e);var s=t.contextType;typeof s=="object"&&s!==null?i.context=Jt(s):(s=Ct(t)?di:dt.current,i.context=Es(e,s)),i.state=e.memoizedState,s=t.getDerivedStateFromProps,typeof s=="function"&&(Zc(e,t,s,r),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&tu.enqueueReplaceState(i,i.state,null),Tl(e,r,i,n),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function Cs(e,t){try{var r="",n=t;do r+=Xw(n),n=n.return;while(n);var i=r}catch(s){i=` 40Error generating stack: `+s.message+` 41`+s.stack}return{value:e,source:t,stack:i,digest:null}}function rc(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function td(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var kb=typeof WeakMap=="function"?WeakMap:Map;function Nv(e,t,r){r=Wr(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){Al||(Al=!0,dd=n),td(e,t)},r}function Lv(e,t,r){r=Wr(-1,r),r.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var i=t.value;r.payload=function(){return n(i)},r.callback=function(){td(e,t)}}var s=e.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(r.callback=function(){td(e,t),typeof n!="function"&&(Cn===null?Cn=new Set([this]):Cn.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),r}function Zh(e,t,r){var n=e.pingCache;if(n===null){n=e.pingCache=new kb;var i=new Set;n.set(t,i)}else i=n.get(t),i===void 0&&(i=new Set,n.set(t,i));i.has(r)||(i.add(r),e=Ub.bind(null,e,t,r),t.then(e,e))}function ep(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function tp(e,t,r,n,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(t=Wr(-1,1),t.tag=2,Tn(r,t,1))),r.lanes|=1),e)}var Tb=Xr.ReactCurrentOwner,kt=!1;function mt(e,t,r,n){t.child=e===null?lv(t,null,r,n):ks(t,e.child,r,n)}function rp(e,t,r,n,i){r=r.render;var s=t.ref;return ls(t,i),n=Ef(e,t,r,n,s,i),r=xf(),e!==null&&!kt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Gr(e,t,i)):(Ae&&r&&df(t),t.flags|=1,mt(e,t,n,i),t.child)}function np(e,t,r,n,i){if(e===null){var s=r.type;return typeof s=="function"&&!If(s)&&s.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=s,Iv(e,t,s,n,i)):(e=ol(r.type,null,n,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!(e.lanes&i)){var o=s.memoizedProps;if(r=r.compare,r=r!==null?r:Oo,r(o,n)&&e.ref===t.ref)return Gr(e,t,i)}return t.flags|=1,e=Rn(s,n),e.ref=t.ref,e.return=t,t.child=e}function Iv(e,t,r,n,i){if(e!==null){var s=e.memoizedProps;if(Oo(s,n)&&e.ref===t.ref)if(kt=!1,t.pendingProps=n=s,(e.lanes&i)!==0)e.flags&131072&&(kt=!0);else return t.lanes=e.lanes,Gr(e,t,i)}return rd(e,t,r,n,i)}function jv(e,t,r){var n=t.pendingProps,i=n.children,s=e!==null?e.memoizedState:null;if(n.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ke(rs,jt),jt|=r;else{if(!(r&1073741824))return e=s!==null?s.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ke(rs,jt),jt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=s!==null?s.baseLanes:r,ke(rs,jt),jt|=n}else s!==null?(n=s.baseLanes|r,t.memoizedState=null):n=r,ke(rs,jt),jt|=n;return mt(e,t,i,r),t.child}function Dv(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}
vendor: 4,711 bytes, line 41
41function rd(e,t,r,n,i){var s=Ct(r)?di:dt.current;return s=Es(t,s),ls(t,i),r=Ef(e,t,r,n,s,i),n=xf(),e!==null&&!kt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Gr(e,t,i)):(Ae&&n&&df(t),t.flags|=1,mt(e,t,r,i),t.child)}function ip(e,t,r,n,i){if(Ct(r)){var s=!0;bl(t)}else s=!1;if(ls(t,i),t.stateNode===null)nl(e,t),Av(t,r,n),ed(t,r,n,i),n=!0;else if(e===null){var o=t.stateNode,a=t.memoizedProps;o.props=a;var l=o.context,u=r.contextType;typeof u=="object"&&u!==null?u=Jt(u):(u=Ct(r)?di:dt.current,u=Es(t,u));var c=r.getDerivedStateFromProps,f=typeof c=="function"||typeof o.getSnapshotBeforeUpdate=="function";f||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==n||l!==u)&&Xh(t,o,n,u),un=!1;var d=t.memoizedState;o.state=d,Tl(t,n,o,i),l=t.memoizedState,a!==n||d!==l||Tt.current||un?(typeof c=="function"&&(Zc(t,r,c,n),l=t.memoizedState),(a=un||Yh(t,r,a,n,d,l,u))?(f||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=l),o.props=n,o.state=l,o.context=u,n=a):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{o=t.stateNode,cv(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:ir(t.type,a),o.props=u,f=t.pendingProps,d=o.context,l=r.contextType,typeof l=="object"&&l!==null?l=Jt(l):(l=Ct(r)?di:dt.current,l=Es(t,l));var h=r.getDerivedStateFromProps;(c=typeof h=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==f||d!==l)&&Xh(t,o,n,l),un=!1,d=t.memoizedState,o.state=d,Tl(t,n,o,i);var g=t.memoizedState;a!==f||d!==g||Tt.current||un?(typeof h=="function"&&(Zc(t,r,h,n),g=t.memoizedState),(u=un||Yh(t,r,u,n,d,g,l)||!1)?(c||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(n,g,l),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(n,g,l)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=g),o.props=n,o.state=g,o.context=l,n=u):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),n=!1)}return nd(e,t,r,n,s,i)}function nd(e,t,r,n,i,s){Dv(e,t);var o=(t.flags&128)!==0;if(!n&&!o)return i&&Wh(t,r,!1),Gr(e,t,s);n=t.stateNode,Tb.current=t;var a=o&&typeof r.getDerivedStateFromError!="function"?null:n.render();return t.flags|=1,e!==null&&o?(t.child=ks(t,e.child,null,s),t.child=ks(t,null,a,s)):mt(e,t,a,s),t.memoizedState=n.state,i&&Wh(t,r,!0),t.child}function $v(e){var t=e.stateNode;t.pendingContext?Bh(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Bh(e,t.context,!1),wf(e,t.containerInfo)}function sp(e,t,r,n,i){return xs(),hf(i),t.flags|=256,mt(e,t,r,n),t.child}var id={dehydrated:null,treeContext:null,retryLane:0};function sd(e){return{baseLanes:e,cachePool:null,transitions:null}}function Mv(e,t,r){var n=t.pendingProps,i=Ne.current,s=!1,o=(t.flags&128)!==0,a;if((a=o)||(a=e!==null&&e.memoizedState===null?!1:(i&2)!==0),a?(s=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),ke(Ne,i&1),e===null)return Yc(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=n.children,e=n.fallback,s?(n=t.mode,s=t.child,o={mode:"hidden",children:o},!(n&1)&&s!==null?(s.childLanes=0,s.pendingProps=o):s=iu(o,n,0,null),e=ci(e,n,r,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=sd(r),t.memoizedState=id,e):Cf(t,o));if(i=e.memoizedState,i!==null&&(a=i.dehydrated,a!==null))return Cb(e,t,o,n,a,i,r);if(s){s=n.fallback,o=t.mode,i=e.child,a=i.sibling;var l={mode:"hidden",children:n.children};return!(o&1)&&t.child!==i?(n=t.child,n.childLanes=0,n.pendingProps=l,t.deletions=null):(n=Rn(i,l),n.subtreeFlags=i.subtreeFlags&14680064),a!==null?s=Rn(a,s):(s=ci(s,o,r,null),s.flags|=2),s.return=t,n.return=t,n.sibling=s,t.child=n,n=s,s=t.child,o=e.child.memoizedState,o=o===null?sd(r):{base
vendor: 9,683 bytes, line 41
41Lanes:o.baseLanes|r,cachePool:null,transitions:o.transitions},s.memoizedState=o,s.childLanes=e.childLanes&~r,t.memoizedState=id,n}return s=e.child,e=s.sibling,n=Rn(s,{mode:"visible",children:n.children}),!(t.mode&1)&&(n.lanes=r),n.return=t,n.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n}function Cf(e,t){return t=iu({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Aa(e,t,r,n){return n!==null&&hf(n),ks(t,e.child,null,r),e=Cf(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Cb(e,t,r,n,i,s,o){if(r)return t.flags&256?(t.flags&=-257,n=rc(Error(I(422))),Aa(e,t,o,n)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(s=n.fallback,i=t.mode,n=iu({mode:"visible",children:n.children},i,0,null),s=ci(s,i,o,null),s.flags|=2,n.return=t,s.return=t,n.sibling=s,t.child=n,t.mode&1&&ks(t,e.child,null,o),t.child.memoizedState=sd(o),t.memoizedState=id,s);if(!(t.mode&1))return Aa(e,t,o,null);if(i.data==="$!"){if(n=i.nextSibling&&i.nextSibling.dataset,n)var a=n.dgst;return n=a,s=Error(I(419)),n=rc(s,n,void 0),Aa(e,t,o,n)}if(a=(o&e.childLanes)!==0,kt||a){if(n=Xe,n!==null){switch(o&-o){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(n.suspendedLanes|o)?0:i,i!==0&&i!==s.retryLane&&(s.retryLane=i,qr(e,i),hr(n,e,i,-1))}return Lf(),n=rc(Error(I(421))),Aa(e,t,o,n)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=Fb.bind(null,e),i._reactRetry=t,null):(e=s.treeContext,Ut=kn(i.nextSibling),Ft=t,Ae=!0,dr=null,e!==null&&(Kt[qt++]=zr,Kt[qt++]=Br,Kt[qt++]=fi,zr=e.id,Br=e.overflow,fi=t),t=Cf(t,n.children),t.flags|=4096,t)}function op(e,t,r){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),Xc(e.return,t,r)}function nc(e,t,r,n,i){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:i}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=n,s.tail=r,s.tailMode=i)}function Uv(e,t,r){var n=t.pendingProps,i=n.revealOrder,s=n.tail;if(mt(e,t,n.children,r),n=Ne.current,n&2)n=n&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&op(e,r,t);else if(e.tag===19)op(e,r,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}n&=1}if(ke(Ne,n),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(r=t.child,i=null;r!==null;)e=r.alternate,e!==null&&Cl(e)===null&&(i=r),r=r.sibling;r=i,r===null?(i=t.child,t.child=null):(i=r.sibling,r.sibling=null),nc(t,!1,i,r,s);break;case"backwards":for(r=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Cl(e)===null){t.child=i;break}e=i.sibling,i.sibling=r,r=i,i=e}nc(t,!0,r,null,s);break;case"together":nc(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function nl(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Gr(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),pi|=t.lanes,!(r&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(I(153));if(t.child!==null){for(e=t.child,r=Rn(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=Rn(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function Pb(e,t,r){switch(t.tag){case 3:$v(t),xs();break;case 5:dv(t);break;case 1:Ct(t.type)&&bl(t);break;case 4:wf(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,i=t.memoizedProps.value;ke(xl,n._currentValue),n._currentValue=i;break;case 13:if(n=t.memoizedState,n!==null)return n.dehydrated!==null?(ke(Ne,Ne.current&1),t.flags|=128,null):r&t.child.childLanes?Mv(e,t,r):(ke(Ne,Ne.current&1),e=Gr(e,t,r),e!==null?e.sibling:null);ke(Ne,Ne.current&1);break;case 19:if(n=(r&t.childLanes)!==0,e.flags&128){if(n)return Uv(e,t,r);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),ke(Ne,Ne.current),n)break;return null;case 22:case 23:return t.lanes=0,jv(e,t,r)}return Gr(e,t,r)}var Fv,od,zv,Bv;Fv=function(e,t){for(var r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};od=function(){};zv=function(e,t,r,n){var i=e.memoizedProps;if(i!==n){e=t.stateNode,ri(Tr.current);var s=null;switch(r){case"input":i=Pc(e,i),n=Pc(e,n),s=[];break;case"select":i=Ie({},i,{value:void 0}),n=Ie({},n,{value:void 0}),s=[];break;case"textarea":i=Ac(e,i),n=Ac(e,n),s=[];break;default:typeof i.onClick!="function"&&typeof n.onClick=="function"&&(e.onclick=wl)}Lc(r,n);var o;r=null;for(u in i)if(!n.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var a=i[u];for(o in a)a.hasOwnProperty(o)&&(r||(r={}),r[o]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Eo.hasOwnProperty(u)?s||(s=[]):(s=s||[]).push(u,null));for(u in n){var l=n[u];if(a=i?.[u],n.hasOwnProperty(u)&&l!==a&&(l!=null||a!=null))if(u==="style")if(a){for(o in a)!a.hasOwnProperty(o)||l&&l.hasOwnProperty(o)||(r||(r={}),r[o]="");for(o in l)l.hasOwnProperty(o)&&a[o]!==l[o]&&(r||(r={}),r[o]=l[o])}else r||(s||(s=[]),s.push(u,r)),r=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(s=s||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(s=s||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Eo.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&Pe("scroll",e),s||a===l||(s=[])):(s=s||[]).push(u,l))}r&&(s=s||[]).push("style",r);var u=s;(t.updateQueue=u)&&(t.flags|=4)}};Bv=function(e,t,r,n){r!==n&&(t.flags|=4)};function Ys(e,t){if(!Ae)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;r!==null;)r.alternate!==null&&(n=r),r=r.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function lt(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,n=0;if(t)for(var i=e.child;i!==null;)r|=i.lanes|i.childLanes,n|=i.subtreeFlags&14680064,n|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)r|=i.lanes|i.childLanes,n|=i.subtreeFlags,n|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}function Rb(e,t,r){var n=t.pendingProps;switch(ff(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return lt(t),null;case 1:return Ct(t.type)&&_l(),lt(t),null;case 3:return n=t.stateNode,Ts(),Re(Tt),Re(dt),bf(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Ra(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,dr!==null&&(pd(dr),dr=null))),od(e,t),lt(t),null;case 5:_f(t);var i=ri(jo.current);if(r=t.type,e!==null&&t.stateNode!=null)zv(e,t,r,n,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(t.stateNode===null)throw Error(I(166));return lt(t),null}if(e=ri(Tr.current),Ra(t)){n=t.stateNode,r=t.type;var s=t.memoizedProps;switch(n[xr]=t,n[Lo]=s,e=(t.mode&1)!==0,r){case"dialog":Pe("cancel",n),Pe("close",n);break;case"iframe":case"object":case"embed":Pe("load",n);break;case"video":case"audio":for(i=0;i<ao.length;i++)Pe(ao[i],n);break;case"source":Pe("error",n);break;case"img":case"image":case"link":Pe("error",n),Pe("load",n);break;case"details":Pe("toggle",n);break;case"input":mh(n,s),Pe("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!s.multiple},Pe("invalid",n);break;case"textarea":vh(n,s),Pe("invalid",n)}Lc(r,s),i=null;for(var o in s)if(s.hasOwnProperty(o)){var a=s[o];o==="children"?typeof a=="string"?n.textContent!==a&&(s.suppressHydrationWarning!==!0&&Pa(n.textContent,a,e),i=["children",a]):typeof a=="number"&&n.textContent!==""+a&&(s.suppressHydrationWarning!==!0&&Pa(n.textContent,a,e),i=["children",""+a]):Eo.hasOwnProperty(o)&&a!=null&&o==="onScroll"&&Pe("scroll",n)}switch(r){case"input":_a(n),gh(n,s,!0);break;case"textarea":_a(n),yh(n);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(n.onclick=wl)}n=i,t.updateQueue=n,n!==null&&(t.flags|=4)}else{o=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=gg(r)),e==="http://www.w3.org/1999/xhtml"?r==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=o.createElement(r,{is:n.is}):(e=o.createElement(r),r==="select"&&(o=e,n.multiple?o.multiple=!0:n.size&&(o.size=n.size))):e=o.createElementNS(e,r),e[xr]=t,e[Lo]=n,Fv(e,t,!1,!1),t.stateNode=e;e:{switch(o=Ic(r,n),r){case"dialog":Pe("cancel",e),Pe("close",e),i=n;break;case"iframe":case"object":case"embed":Pe("load",e),i=n;break;case"video":case"audio":for(i=0;i<ao.length;i++)Pe(ao[i],e);i=n;break;case"source":Pe("error",e),i=n;break;case"img":case"image":case"link":Pe("error",e),Pe("load",e),i=n;break;case"details":Pe("toggle",e),i=n;break;case"input":mh(e,n),i=Pc(e,n),Pe("invalid",e);break;case"option":i=n;break;case"select":e._wrapperState={wasMultiple:!!n.multiple},i=Ie({},n,{value:void 0}),Pe("invalid",e);break;
vendor: 31,147 bytes, line 41
41case"textarea":vh(e,n),i=Ac(e,n),Pe("invalid",e);break;default:i=n}Lc(r,i),a=i;for(s in a)if(a.hasOwnProperty(s)){var l=a[s];s==="style"?wg(e,l):s==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&vg(e,l)):s==="children"?typeof l=="string"?(r!=="textarea"||l!=="")&&xo(e,l):typeof l=="number"&&xo(e,""+l):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(Eo.hasOwnProperty(s)?l!=null&&s==="onScroll"&&Pe("scroll",e):l!=null&&Jd(e,s,l,o))}switch(r){case"input":_a(e),gh(e,n,!1);break;case"textarea":_a(e),yh(e);break;case"option":n.value!=null&&e.setAttribute("value",""+On(n.value));break;case"select":e.multiple=!!n.multiple,s=n.value,s!=null?is(e,!!n.multiple,s,!1):n.defaultValue!=null&&is(e,!!n.multiple,n.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=wl)}switch(r){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}}n&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return lt(t),null;case 6:if(e&&t.stateNode!=null)Bv(e,t,e.memoizedProps,n);else{if(typeof n!="string"&&t.stateNode===null)throw Error(I(166));if(r=ri(jo.current),ri(Tr.current),Ra(t)){if(n=t.stateNode,r=t.memoizedProps,n[xr]=t,(s=n.nodeValue!==r)&&(e=Ft,e!==null))switch(e.tag){case 3:Pa(n.nodeValue,r,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Pa(n.nodeValue,r,(e.mode&1)!==0)}s&&(t.flags|=4)}else n=(r.nodeType===9?r:r.ownerDocument).createTextNode(n),n[xr]=t,t.stateNode=n}return lt(t),null;case 13:if(Re(Ne),n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Ae&&Ut!==null&&t.mode&1&&!(t.flags&128))ov(),xs(),t.flags|=98560,s=!1;else if(s=Ra(t),n!==null&&n.dehydrated!==null){if(e===null){if(!s)throw Error(I(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(I(317));s[xr]=t}else xs(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;lt(t),s=!1}else dr!==null&&(pd(dr),dr=null),s=!0;if(!s)return t.flags&65536?t:null}return t.flags&128?(t.lanes=r,t):(n=n!==null,n!==(e!==null&&e.memoizedState!==null)&&n&&(t.child.flags|=8192,t.mode&1&&(e===null||Ne.current&1?Je===0&&(Je=3):Lf())),t.updateQueue!==null&&(t.flags|=4),lt(t),null);case 4:return Ts(),od(e,t),e===null&&Ao(t.stateNode.containerInfo),lt(t),null;case 10:return gf(t.type._context),lt(t),null;case 17:return Ct(t.type)&&_l(),lt(t),null;case 19:if(Re(Ne),s=t.memoizedState,s===null)return lt(t),null;if(n=(t.flags&128)!==0,o=s.rendering,o===null)if(n)Ys(s,!1);else{if(Je!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=Cl(e),o!==null){for(t.flags|=128,Ys(s,!1),n=o.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),t.subtreeFlags=0,n=r,r=t.child;r!==null;)s=r,e=n,s.flags&=14680066,o=s.alternate,o===null?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=o.childLanes,s.lanes=o.lanes,s.child=o.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=o.memoizedProps,s.memoizedState=o.memoizedState,s.updateQueue=o.updateQueue,s.type=o.type,e=o.dependencies,s.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return ke(Ne,Ne.current&1|2),t.child}e=e.sibling}s.tail!==null&&He()>Ps&&(t.flags|=128,n=!0,Ys(s,!1),t.lanes=4194304)}else{if(!n)if(e=Cl(o),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Ys(s,!0),s.tail===null&&s.tailMode==="hidden"&&!o.alternate&&!Ae)return lt(t),null}else 2*He()-s.renderingStartTime>Ps&&r!==1073741824&&(t.flags|=128,n=!0,Ys(s,!1),t.lanes=4194304);s.isBackwards?(o.sibling=t.child,t.child=o):(r=s.last,r!==null?r.sibling=o:t.child=o,s.last=o)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=He(),t.sibling=null,r=Ne.current,ke(Ne,n?r&1|2:r&1),t):(lt(t),null);case 22:case 23:return Nf(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?jt&1073741824&&(lt(t),t.subtreeFlags&6&&(t.flags|=8192)):lt(t),null;case 24:return null;case 25:return null}throw Error(I(156,t.tag))}function Ob(e,t){switch(ff(t),t.tag){case 1:return Ct(t.type)&&_l(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ts(),Re(Tt),Re(dt),bf(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return _f(t),null;case 13:if(Re(Ne),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(I(340));xs()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Re(Ne),null;case 4:return Ts(),null;case 10:return gf(t.type._context),null;case 22:case 23:return Nf(),null;case 24:return null;default:return null}}var Na=!1,ct=!1,Ab=typeof WeakSet=="function"?WeakSet:Set,B=null;function ts(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){Fe(e,t,n)}else r.current=null}function ad(e,t,r){try{r()}catch(n){Fe(e,t,n)}}var ap=!1;function Nb(e,t){if(Hc=gl,e=qg(),cf(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var i=n.anchorOffset,s=n.focusNode;n=n.focusOffset;try{r.nodeType,s.nodeType}catch{r=null;break e}var o=0,a=-1,l=-1,u=0,c=0,f=e,d=null;t:for(;;){for(var h;f!==r||i!==0&&f.nodeType!==3||(a=o+i),f!==s||n!==0&&f.nodeType!==3||(l=o+n),f.nodeType===3&&(o+=f.nodeValue.length),(h=f.firstChild)!==null;)d=f,f=h;for(;;){if(f===e)break t;if(d===r&&++u===i&&(a=o),d===s&&++c===n&&(l=o),(h=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=h}r=a===-1||l===-1?null:{start:a,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(Vc={focusedElem:e,selectionRange:r},gl=!1,B=t;B!==null;)if(t=B,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,B=e;else for(;B!==null;){t=B;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var v=g.memoizedProps,_=g.memoizedState,m=t.stateNode,p=m.getSnapshotBeforeUpdate(t.elementType===t.type?v:ir(t.type,v),_);m.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(I(163))}}catch(S){Fe(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,B=e;break}B=t.return}return g=ap,ap=!1,g}function vo(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var i=n=n.next;do{if((i.tag&e)===e){var s=i.destroy;i.destroy=void 0,s!==void 0&&ad(t,r,s)}i=i.next}while(i!==n)}}function ru(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function ld(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function Wv(e){var t=e.alternate;t!==null&&(e.alternate=null,Wv(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[xr],delete t[Lo],delete t[Gc],delete t[pb],delete t[mb])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Hv(e){return e.tag===5||e.tag===3||e.tag===4}function lp(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Hv(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function ud(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=wl));else if(n!==4&&(e=e.child,e!==null))for(ud(e,t,r),e=e.sibling;e!==null;)ud(e,t,r),e=e.sibling}function cd(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(cd(e,t,r),e=e.sibling;e!==null;)cd(e,t,r),e=e.sibling}var rt=null,lr=!1;function rn(e,t,r){for(r=r.child;r!==null;)Vv(e,t,r),r=r.sibling}function Vv(e,t,r){if(kr&&typeof kr.onCommitFiberUnmount=="function")try{kr.onCommitFiberUnmount(Gl,r)}catch{}switch(r.tag){case 5:ct||ts(r,t);case 6:var n=rt,i=lr;rt=null,rn(e,t,r),rt=n,lr=i,rt!==null&&(lr?(e=rt,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):rt.removeChild(r.stateNode));break;case 18:rt!==null&&(lr?(e=rt,r=r.stateNode,e.nodeType===8?Ju(e.parentNode,r):e.nodeType===1&&Ju(e,r),Po(e)):Ju(rt,r.stateNode));break;case 4:n=rt,i=lr,rt=r.stateNode.containerInfo,lr=!0,rn(e,t,r),rt=n,lr=i;break;case 0:case 11:case 14:case 15:if(!ct&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){i=n=n.next;do{var s=i,o=s.destroy;s=s.tag,o!==void 0&&(s&2||s&4)&&ad(r,t,o),i=i.next}while(i!==n)}rn(e,t,r);break;case 1:if(!ct&&(ts(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(a){Fe(r,t,a)}rn(e,t,r);break;case 21:rn(e,t,r);break;case 22:r.mode&1?(ct=(n=ct)||r.memoizedState!==null,rn(e,t,r),ct=n):rn(e,t,r);break;default:rn(e,t,r)}}function up(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new Ab),t.forEach(function(n){var i=zb.bind(null,e,n);r.has(n)||(r.add(n),n.then(i,i))})}}function rr(e,t){var r=t.deletions;if(r!==null)for(var n=0;n<r.length;n++){var i=r[n];try{var s=e,o=t,a=o;e:for(;a!==null;){switch(a.tag){case 5:rt=a.stateNode,lr=!1;break e;case 3:rt=a.stateNode.containerInfo,lr=!0;break e;case 4:rt=a.stateNode.containerInfo,lr=!0;break e}a=a.return}if(rt===null)throw Error(I(160));Vv(s,o,i),rt=null,lr=!1;var l=i.alternate;l!==null&&(l.return=null),i.return=null}catch(u){Fe(i,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Kv(t,e),t=t.sibling}function Kv(e,t){var r=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(rr(t,e),wr(e),n&4){try{vo(3,e,e.return),ru(3,e)}catch(v){Fe(e,e.return,v)}try{vo(5,e,e.return)}catch(v){Fe(e,e.return,v)}}break;case 1:rr(t,e),wr(e),n&512&&r!==null&&ts(r,r.return);break;case 5:if(rr(t,e),wr(e),n&512&&r!==null&&ts(r,r.return),e.flags&32){var i=e.stateNode;try{xo(i,"")}catch(v){Fe(e,e.return,v)}}if(n&4&&(i=e.stateNode,i!=null)){var s=e.memoizedProps,o=r!==null?r.memoizedProps:s,a=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{a==="input"&&s.type==="radio"&&s.name!=null&&pg(i,s),Ic(a,o);var u=Ic(a,s);for(o=0;o<l.length;o+=2){var c=l[o],f=l[o+1];c==="style"?wg(i,f):c==="dangerouslySetInnerHTML"?vg(i,f):c==="children"?xo(i,f):Jd(i,c,f,u)}switch(a){case"input":Rc(i,s);break;case"textarea":mg(i,s);break;case"select":var d=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!s.multiple;var h=s.value;h!=null?is(i,!!s.multiple,h,!1):d!==!!s.multiple&&(s.defaultValue!=null?is(i,!!s.multiple,s.defaultValue,!0):is(i,!!s.multiple,s.multiple?[]:"",!1))}i[Lo]=s}catch(v){Fe(e,e.return,v)}}break;case 6:if(rr(t,e),wr(e),n&4){if(e.stateNode===null)throw Error(I(162));i=e.stateNode,s=e.memoizedProps;try{i.nodeValue=s}catch(v){Fe(e,e.return,v)}}break;case 3:if(rr(t,e),wr(e),n&4&&r!==null&&r.memoizedState.isDehydrated)try{Po(t.containerInfo)}catch(v){Fe(e,e.return,v)}break;case 4:rr(t,e),wr(e);break;case 13:rr(t,e),wr(e),i=e.child,i.flags&8192&&(s=i.memoizedState!==null,i.stateNode.isHidden=s,!s||i.alternate!==null&&i.alternate.memoizedState!==null||(Of=He())),n&4&&up(e);break;case 22:if(c=r!==null&&r.memoizedState!==null,e.mode&1?(ct=(u=ct)||c,rr(t,e),ct=u):rr(t,e),wr(e),n&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!c&&e.mode&1)for(B=e,c=e.child;c!==null;){for(f=B=c;B!==null;){switch(d=B,h=d.child,d.tag){case 0:case 11:case 14:case 15:vo(4,d,d.return);break;case 1:ts(d,d.return);var g=d.stateNode;if(typeof g.componentWillUnmount=="function"){n=d,r=d.return;try{t=n,g.props=t.memoizedProps,g.state=t.memoizedState,g.componentWillUnmount()}catch(v){Fe(n,r,v)}}break;case 5:ts(d,d.return);break;case 22:if(d.memoizedState!==null){dp(f);continue}}h!==null?(h.return=d,B=h):dp(f)}c=c.sibling}e:for(c=null,f=e;;){if(f.tag===5){if(c===null){c=f;try{i=f.stateNode,u?(s=i.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none"):(a=f.stateNode,l=f.memoizedProps.style,o=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=yg("display",o))}catch(v){Fe(e,e.return,v)}}}else if(f.tag===6){if(c===null)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(v){Fe(e,e.return,v)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;f.sibling===null;){if(f.return===null||f.return===e)break e;c===f&&(c=null),f=f.return}c===f&&(c=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:rr(t,e),wr(e),n&4&&up(e);break;case 21:break;default:rr(t,e),wr(e)}}function wr(e){var t=e.flags;if(t&2){try{e:{for(var r=e.return;r!==null;){if(Hv(r)){var n=r;break e}r=r.return}throw Error(I(160))}switch(n.tag){case 5:var i=n.stateNode;n.flags&32&&(xo(i,""),n.flags&=-33);var s=lp(e);cd(e,s,i);break;case 3:case 4:var o=n.stateNode.containerInfo,a=lp(e);ud(e,a,o);break;default:throw Error(I(161))}}catch(l){Fe(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Lb(e,t,r){B=e,qv(e)}function qv(e,t,r){for(var n=(e.mode&1)!==0;B!==null;){var i=B,s=i.child;if(i.tag===22&&n){var o=i.memoizedState!==null||Na;if(!o){var a=i.alternate,l=a!==null&&a.memoizedState!==null||ct;a=Na;var u=ct;if(Na=o,(ct=l)&&!u)for(B=i;B!==null;)o=B,l=o.child,o.tag===22&&o.memoizedState!==null?fp(i):l!==null?(l.return=o,B=l):fp(i);for(;s!==null;)B=s,qv(s),s=s.sibling;B=i,Na=a,ct=u}cp(e)}else i.subtreeFlags&8772&&s!==null?(s.return=i,B=s):cp(e)}}function cp(e){for(;B!==null;){var t=B;if(t.flags&8772){var r=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:ct||ru(5,t);break;case 1:var n=t.stateNode;if(t.flags&4&&!ct)if(r===null)n.componentDidMount();else{var i=t.elementType===t.type?r.memoizedProps:ir(t.type,r.memoizedProps);n.componentDidUpdate(i,r.memoizedState,n.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;s!==null&&Gh(t,s,n);break;case 3:var o=t.updateQueue;if(o!==null){if(r=null,t.child!==null)switch(t.child.tag){case 5:r=t.child.stateNode;break;case 1:r=t.child.stateNode}Gh(t,o,r)}break;case 5:var a=t.stateNode;if(r===null&&t.flags&4){r=a;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&r.focus();break;case"img":l.src&&(r.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var c=u.memoizedState;if(c!==null){var f=c.dehydrated;f!==null&&Po(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(I(163))}ct||t.flags&512&&ld(t)}catch(d){Fe(t,t.return,d)}}if(t===e){B=null;break}if(r=t.sibling,r!==null){r.return=t.return,B=r;break}B=t.return}}function dp(e){for(;B!==null;){var t=B;if(t===e){B=null;break}var r=t.sibling;if(r!==null){r.return=t.return,B=r;break}B=t.return}}function fp(e){for(;B!==null;){var t=B;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{ru(4,t)}catch(l){Fe(t,r,l)}break;case 1:var n=t.stateNode;if(typeof n.componentDidMount=="function"){var i=t.return;try{n.componentDidMount()}catch(l){Fe(t,i,l)}}var s=t.return;try{ld(t)}catch(l){Fe(t,s,l)}break;case 5:var o=t.return;try{ld(t)}catch(l){Fe(t,o,l)}}}catch(l){Fe(t,t.return,l)}if(t===e){B=null;break}var a=t.sibling;if(a!==null){a.return=t.return,B=a;break}B=t.return}}var Ib=Math.ceil,Ol=Xr.ReactCurrentDispatcher,Pf=Xr.ReactCurrentOwner,Qt=Xr.ReactCurrentBatchConfig,pe=0,Xe=null,qe=null,nt=0,jt=0,rs=Fn(0),Je=0,Uo=null,pi=0,nu=0,Rf=0,yo=null,xt=null,Of=0,Ps=1/0,Mr=null,Al=!1,dd=null,Cn=null,La=!1,_n=null,Nl=0,wo=0,fd=null,il=-1,sl=0;function vt(){return pe&6?He():il!==-1?il:il=He()}function Pn(e){return e.mode&1?pe&2&&nt!==0?nt&-nt:vb.transition!==null?(sl===0&&(sl=Ag()),sl):(e=Se,e!==0||(e=window.event,e=e===void 0?16:Mg(e.type)),e):1}function hr(e,t,r,n){if(50<wo)throw wo=0,fd=null,Error(I(185));na(e,r,n),(!(pe&2)||e!==Xe)&&(e===Xe&&(!(pe&2)&&(nu|=r),Je===4&&fn(e,nt)),Pt(e,n),r===1&&pe===0&&!(t.mode&1)&&(Ps=He()+500,Zl&&zn()))}function Pt(e,t){var r=e.callbackNode;v_(e,t);var n=ml(e,e===Xe?nt:0);if(n===0)r!==null&&bh(r),e.callbackNode=null,e.callbackPriority=0;else if(t=n&-n,e.callbackPriority!==t){if(r!=null&&bh(r),t===1)e.tag===0?gb(hp.bind(null,e)):nv(hp.bind(null,e)),fb(function(){!(pe&6)&&zn()}),r=null;else{switch(Ng(n)){case 1:r=tf;break;case 4:r=Rg;break;case 16:r=pl;break;case 536870912:r=Og;break;default:r=pl}r=ty(r,Gv.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function Gv(e,t){if(il=-1,sl=0,pe&6)throw Error(I(327));var r=e.callbackNode;if(us()&&e.callbackNode!==r)return null;var n=ml(e,e===Xe?nt:0);if(n===0)return null;if(n&30||n&e.expiredLanes||t)t=Ll(e,n);else{t=n;var i=pe;pe|=2;var s=Jv();(Xe!==e||nt!==t)&&(Mr=null,Ps=He()+500,ui(e,t));do try{$b();break}catch(a){Qv(e,a)}while(!0);mf(),Ol.current=s,pe=i,qe!==null?t=0:(Xe=null,nt=0,t=Je)}if(t!==0){if(t===2&&(i=Uc(e),i!==0&&(n=i,t=hd(e,i))),t===1)throw r=Uo,ui(e,0),fn(e,n),Pt(e,He()),r;if(t===6)fn(e,n);else{if(i=e.current.alternate,!(n&30)&&!jb(i)&&(t=Ll(e,n),t===2&&(s=Uc(e),s!==0&&(n=s,t=hd(e,s))),t===1))throw r=Uo,ui(e,0),fn(e,n),Pt(e,He()),r;switch(e.finishedWork=i,e.finishedLanes=n,t){case 0:case 1:throw Error(I(345));case 2:Gn(e,xt,Mr);break;case 3:if(fn(e,n),(n&130023424)===n&&(t=Of+500-He(),10<t)){if(ml(e,0)!==0)break;if(i=e.suspendedLanes,(i&n)!==n){vt(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=qc(Gn.bind(null,e,xt,Mr),t);break}Gn(e,xt,Mr);break;case 4:if(fn(e,n),(n&4194240)===n)break;for(t=e.eventTimes,i=-1;0<n;){var o=31-fr(n);s=1<<o,o=t[o],o>i&&(i=o),n&=~s}if(n=i,n=He()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Ib(n/1960))-n,10<n){e.timeoutHandle=qc(Gn.bind(null,e,xt,Mr),n);break}Gn(e,xt,Mr);break;case 5:Gn(e,xt,Mr);break;default:throw Error(I(329))}}}return Pt(e,He()),e.callbackNode===r?Gv.bind(null,e):null}function hd(e,t){var r=yo;return e.current.memoizedState.isDehydrated&&(ui(e,t).flags|=256),e=Ll(e,t),e!==2&&(t=xt,xt=r,t!==null&&pd(t)),e}function pd(e){xt===null?xt=e:xt.push.apply(xt,e)}function jb(e){for(var t=e;;){if(t.flags&16384){var r=t.updateQueue;if(r!==null&&(r=r.stores,r!==null))for(var n=0;n<r.length;n++){var i=r[n],s=i.getSnapshot;i=i.value;try{if(!pr(s(),i))return!1}catch{return!1}}}if(r=t.child,t.subtreeFlags&16384&&r!==null)r.return=t,t=r;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function fn(e,t){for(t&=~Rf,t&=~nu,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-fr(t),n=1<<r;e[r]=-1,t&=~n}}function hp(e){if(pe&6)throw Error(I(327));us();var t=ml(e,0);if(!(t&1))return Pt(e,He()),null;var r=Ll(e,t);if(e.tag!==0&&r===2){var n=Uc(e);n!==0&&(t=n,r=hd(e,n))}if(r===1)throw r=Uo,ui(e,0),fn(e,t),Pt(e,He()),r;if(r===6)throw Error(I(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Gn(e,xt,Mr),Pt(e,He()),null}function Af(e,t){var r=pe;pe|=1;try{return e(t)}finally{pe=r,pe===0&&(Ps=He()+500,Zl&&zn())}}function mi(e){_n!==null&&_n.tag===0&&!(pe&6)&&us();var t=pe;pe|=1;var r=Qt.transition,n=Se;try{if(Qt.transition=null,Se=1,e)return e()}finally{Se=n,Qt.transition=r,pe=t,!(pe&6)&&zn()}}function Nf(){jt=rs.current,Re(rs)}function ui(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,db(r)),qe!==null)for(r=qe.return;r!==null;){var n=r;switch(ff(n),n.tag){case 1:n=n.type.childContextTypes,n!=null&&_l();break;case 3:Ts(),Re(Tt),Re(dt),bf();break;case 5:_f(n);break;case 4:Ts();break;case 13:Re(Ne);break;case 19:Re(Ne);break;case 10:gf(n.type._context);break;case 22:case 23:Nf()}r=r.return}if(Xe=e,qe=e=Rn(e.current,null),nt=jt=t,Je=0,Uo=null,Rf=nu=pi=0,xt=yo=null,ti!==null){for(t=0;t<ti.length;t++)if(r=ti[t],n=r.interleaved,n!==null){r.interleaved=null;var i=n.next,s=r.pending;if(s!==null){var o=s.next;s.next=i,n.next=o}r.pending=n}ti=null}return e}function Qv(e,t){do{var r=qe;try{if(mf(),tl.current=Rl,Pl){for(var n=Le.memoizedState;n!==null;){var i=n.queue;i!==null&&(i.pending=null),n=n.next}Pl=!1}if(hi=0,Ye=Qe=Le=null,go=!1,Do=0,Pf.current=null,r===null||r.return===null){Je=1,Uo=t,qe=null;break}e:{var s=e,o=r.return,a=r,l=t;if(t=nt,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l,c=a,f=c.tag;if(!(c.mode&1)&&(f===0||f===11||f===15)){var d=c.alternate;d?(c.updateQueue=d.updateQueue,c.memoizedState=d.memoizedState,c.lanes=d.lanes):(c.updateQueue=null,c.memoizedState=null)}var h=ep(o);if(h!==null){h.flags&=-257,tp(h,o,a,s,t),h.mode&1&&Zh(s,u,t),t=h,l=u;var g=t.updateQueue;if(g===null){var v=new Set;v.add(l),t.updateQueue=v}else g.add(l);break e}else{if(!(t&1)){Zh(s,u,t),Lf();break e}l=Error(I(426))}}else if(Ae&&a.mode&1){var _=ep(o);if(_!==null){!(_.flags&65536)&&(_.flags|=256),tp(_,o,a,s,t),hf(Cs(l,a));break e}}s=l=Cs(l,a),Je!==4&&(Je=2),yo===null?yo=[s]:yo.push(s),s=o;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t;var m=Nv(s,l,t);qh(s,m);break e;case 1:a=l;var p=s.type,y=s.stateNode;if(!(s.flags&128)&&(typeof p.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&(Cn===null||!Cn.has(y)))){s.flags|=65536,t&=-t,s.lanes|=t;var S=Lv(s,a,t);qh(s,S);break e}}s=s.return}while(s!==null)}Xv(r)}catch(x){t=x,qe===r&&r!==null&&(qe=r=r.return);continue}break}while(!0)}function Jv(){var e=Ol.current;return Ol.current=Rl,e===null?Rl:e}function Lf(){(Je===0||Je===3||Je===2)&&(Je=4),Xe===null||!(pi&268435455)&&!(nu&268435455)||fn(Xe,nt)}function Ll(e,t){var r=pe;pe|=2;var n=Jv();(Xe!==e||nt!==t)&&(Mr=null,ui(e,t));do try{Db();break}catch(i){Qv(e,i)}while(!0);if(mf(),pe=r,Ol.current=n,qe!==null)throw Error(I(261));return Xe=null,nt=0,Je}function Db(){for(;qe!==null;)Yv(qe)}function $b(){for(;qe!==null&&!l_();)Yv(qe)}function Yv(e){var t=ey(e.alternate,e,jt);e.memoizedProps=e.pendingProps,t===null?Xv(e):qe=t,Pf.current=null}function Xv(e){var t=e;do{var r=t.alternate;if(e=t.return,t.flags&32768){if(r=Ob(r,t),r!==null){r.flags&=32767,qe=r;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Je=6,qe=null;return}}else if(r=Rb(r,t,jt),r!==null){qe=r;return}if(t=t.sibling,t!==null){qe=t;return}qe=t=e}while(t!==null);Je===0&&(Je=5)}function Gn(e,t,r){var n=Se,i=Qt.transition;try{Qt.transition=null,Se=1,Mb(e,t,r,n)}finally{Qt.transition=i,Se=n}return null}function Mb(e,t,r,n){do us();while(_n!==null);if(pe&6)throw Error(I(327));r=e.finishedWork;var i=e.finishedLanes;if(r===null)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(I(177));e.callbackNode=null,e.callbackPriority=0;var s=r.lanes|r.childLanes;if(y_(e,s),e===Xe&&(qe=Xe=null,nt=0),!(r.subtreeFlags&2064)&&!(r.flags&2064)||La||(La=!0,ty(pl,function(){return us(),null})),s=(r.flags&15990)!==0,r.subtreeFlags&15990||s){s=Qt.transition,Qt.transition=null;var o=Se;Se=1;var a=pe;pe|=4,Pf.current=null,Nb(e,r),Kv(r,e),ib(Vc),gl=!!Hc,Vc=Hc=null,e.current=r,Lb(r),u_(),pe=a,Se=o,Qt.transition=s}else e.current=r;if(La&&(La=!1,_n=e,Nl=i),s=e.pendingLanes,s===0&&(Cn=null),f_(r.stateNode),Pt(e,He()),t!==null)for(n=e.onRecoverableError,r=0;r<t.length;r++)i=t[r],n(i.value,{componentStack:i.stack,digest:i.digest});if(Al)throw Al=!1,e=dd,dd=null,e;return Nl&1&&e.tag!==0&&us(),s=e.pendingLanes,s&1?e===fd?wo++:(wo=0,fd=e):wo=0,zn(),null}function us(){if(_n!==null){var e=Ng(Nl),t=Qt.transition,r=Se;try{if(Qt.transition=null,Se=16>e?16:e,_n===null)var n=!1;else{if(e=_n,_n=null,Nl=0,pe&6)throw Error(I(331));var i=pe;for(pe|=4,B=e.current;B!==null;){var s=B,o=s.child;if(B.flags&16){var a=s.deletions;if(a!==null){for(var l=0;l<a.length;l++){var u=a[l];for(B=u;B!==null;){var c=B;switch(c.tag){case 0:case 11:case 15:vo(8,c,s)}var f=c.child;if(f!==null)f.return=c,B=f;else for(;B!==null;){c=B;var d=c.sibling,h=c.return;if(Wv(c),c===u){B=null;break}if(d!==null){d.return=h,B=d;break}B=h}}}var g=s.alternate;if(g!==null){var v=g.child;if(v!==null){g.child=null;do{var _=v.sibling;v.sibling=null,v=_}while(v!==null)}}B=s}}if(s.subtreeFlags&2064&&o!==null)o.return=s,B=o;else e:for(;B!==null;){if(s=B,s.flags&2048)switch(s.tag){case 0:case 11:case 15:vo(9,s,s.return)}var m=s.sibling;if(m!==null){m.return=s.return,B=m;break e}B=s.return}}var p=e.current;for(B=p;B!==null;){o=B;var y=o.child;if(o.subtreeFlags&2064&&y!==null)y.return=o,B=y;else e:for(o=p;B!==null;){if(a=B,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:ru(9,a)}}catch(x){Fe(a,a.return,x)}if(a===o){B=null;break e}var S=a.sibling;if(S!==null){S.return=a.return,B=S;break e}B=a.return}}if(pe=i,zn(),kr&&typeof kr.onPostCommitFiberRoot=="function")try{kr.onPostCommitFiberRoot(Gl,e)}catch{}n=!0}return n}finally{Se=r,Qt.transition=t}}return!1}function pp(e,t,r){t=Cs(r,t),t=Nv(e,t,1),e=Tn(e,t,1),t=vt(),e!==null&&(na(e,1,t),Pt(e,t))}function Fe(e,t,r){if(e.tag===3)pp(e,e,r);else for(;t!==null;){if(t.tag===3){pp(t,e,r);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(Cn===null||!Cn.has(n))){e=Cs(r,e),e=Lv(t,e,1),t=Tn(t,e,1),e=vt(),t!==null&&(na(t,1,e),Pt(t,e));break}}t=t.return}}function Ub(e,t,r){var n=e.pingCache;n!==null&&n.delete(t),t=vt(),e.pingedLanes|=e.suspendedLanes&r,Xe===e&&(nt&r)===r&&(Je===4||Je===3&&(nt&130023424)===nt&&500>He()-Of?ui(e,0):Rf|=r),Pt(e,t)}function Zv(e,t){t===0&&(e.mode&1?(t=Ea,Ea<<=1,!(Ea&130023424)&&(Ea=4194304)):t=1);var r=vt();e=qr(e,t),e!==null&&(na(e,t,r),Pt(e,r))}function Fb(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),Zv(e,r)}function zb(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,i=e.memoizedState;i!==null&&(r=i.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(I(314))}n!==null&&n.delete(t),Zv(e,r)}var ey;ey=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||Tt.current)kt=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return kt=!1,Pb(e,t,r);kt=!!(e.flags&131072)}else kt=!1,Ae&&t.flags&1048576&&iv(t,El,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;nl(e,t),e=t.pendingProps;var i=Es(t,dt.current);ls(t,r),i=Ef(null,t,n,e,i,r);var s=xf();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ct(n)?(s=!0,bl(t)):s=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,yf(t),i.updater=tu,t.stateNode=i,i._reactInternals=t,ed(t,n,e,r),t=nd(null,t,n,!0,s,r)):(t.tag=0,Ae&&s&&df(t),mt(null,t,i,r),t=t.child),t;case 16:n=t.elementType;e:{switch(nl(e,t),e=t.pendingProps,i=n._init,n=i(n._payload),t.type=n,i=t.tag=Wb(n),e=ir(n,e),i){case 0:t=rd(null,t,n,e,r);break e;case 1:t=ip(null,t,n,e,r);break e;case 11:t=rp(null,t,n,e,r);break e;case 14:t=np(null,t,n,ir(n.type,e),r);break e}throw Error(I(306,n,""))}return t;case 0:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:ir(n,i),rd(e,t,n,i,r);case 1:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:ir(n,i),ip(e,t,n,i,r);case 3:e:{if($v(t),e===null)throw Error(I(387));n=t.pendingProps,s=t.memoizedState,i=s.element,cv(e,t),Tl(t,n,null,r);var o=t.memoizedState;if(n=o.element,s.isDehydrated)if(s={element:n,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){i=Cs(Error(I(423)),t),t=sp(e,t,n,r,i);break e}else if(n!==i){i=Cs(Error(I(424)),t),t=sp(e,t,n,r,i);break e}else for(Ut=kn(t.stateNode.containerInfo.firstChild),Ft=t,Ae=!0,dr=null,r=lv(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(xs(),n===i){t=Gr(e,t,r);break e}mt(e,t,n,r)}t=t.child}return t;case 5:return dv(t),e===null&&Yc(t),n=t.type,i=t.pendingProps,s=e!==null?e.memoizedProps:null,o=i.children,Kc(n,i)?o=null:s!==null&&Kc(n,s)&&(t.flags|=32),Dv(e,t),mt(e,t,o,r),t.child;case 6:return e===null&&Yc(t),null;case 13:return Mv(e,t,r);case 4:return wf(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=ks(t,null,n,r):mt(e,t,n,r),t.child;case 11:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:ir(n,i),rp(e,t,n,i,r);case 7:return mt(e,t,t.pendingProps,r),t.child;case 8:return mt(e,t,t.pendingProps.children,r),t.child;case 12:return mt(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,i=t.pendingProps,s=t.memoizedProps,o=i.value,ke(xl,n._currentValue),n._currentValue=o,s!==null)if(pr(s.value,o)){if(s.children===i.children&&!Tt.current){t=Gr(e,t,r);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var a=s.dependencies;if(a!==null){o=s.child;for(var l=a.firstContext;l!==null;){if(l.context===n){if(s.tag===1){l=Wr(-1,r&-r),l.tag=2;var u=s.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}s.lanes|=r,l=s.alternate,l!==null&&(l.lanes|=r),Xc(s.return,r,t),a.lanes|=r;break}l=l.next}}else if(s.tag===10)o=s.type===t.type?null:s.child;else if(s.tag===18){if(o=s.return,o===null)throw Error(I(341));o.lanes|=r,a=o.alternate,a!==null&&(a.lanes|=r),Xc(o,r,t),o=s.sibling}else o=s.child;if(o!==null)o.return=s;else for(o=s;o!==null;){if(o===t){o=null;break}if(s=o.sibling,s!==null){s.return=o.return,o=s;break}o=o.return}s=o}mt(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,n=t.pendingProps.children,ls(t,r),i=Jt(i),n=n(i),t.flags|=1,mt(e,t,n,r),t.child;case 14:return n=t.type,i=ir(n,t.pendingProps),i=ir(n.type,i),np(e,t,n,i,r);case 15:return Iv(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:ir(n,i),nl(e,t),t.tag=1,Ct(n)?(e=!0,bl(t)):e=!1,ls(t,r),Av(t,n,i),ed(t,n,i,r),nd(null,t,n,!0,e,r);case 19:return Uv(e,t,r);case 22:return jv(e,t,r)}throw Error(I(156,t.tag))};function ty(e,t){return Pg(e,t)}function Bb(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Gt(e,t,r,n){return new Bb(e,t,r,n)}function If(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Wb(e){if(typeof e=="function")return If(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Xd)return 11;if(e===Zd)return 14}return 2}function Rn(e,t){var r=e.alternate;return r===null?(r=Gt(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.depen
vendor: 4,905 bytes, line 41
41dencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function ol(e,t,r,n,i,s){var o=2;if(n=e,typeof e=="function")If(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Ki:return ci(r.children,i,s,t);case Yd:o=8,i|=8;break;case xc:return e=Gt(12,r,t,i|2),e.elementType=xc,e.lanes=s,e;case kc:return e=Gt(13,r,t,i),e.elementType=kc,e.lanes=s,e;case Tc:return e=Gt(19,r,t,i),e.elementType=Tc,e.lanes=s,e;case dg:return iu(r,i,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ug:o=10;break e;case cg:o=9;break e;case Xd:o=11;break e;case Zd:o=14;break e;case ln:o=16,n=null;break e}throw Error(I(130,e==null?e:typeof e,""))}return t=Gt(o,r,t,i),t.elementType=e,t.type=n,t.lanes=s,t}function ci(e,t,r,n){return e=Gt(7,e,n,t),e.lanes=r,e}function iu(e,t,r,n){return e=Gt(22,e,n,t),e.elementType=dg,e.lanes=r,e.stateNode={isHidden:!1},e}function ic(e,t,r){return e=Gt(6,e,null,t),e.lanes=r,e}function sc(e,t,r){return t=Gt(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Hb(e,t,r,n,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Uu(0),this.expirationTimes=Uu(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Uu(0),this.identifierPrefix=n,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function jf(e,t,r,n,i,s,o,a,l){return e=new Hb(e,t,r,a,l),t===1?(t=1,s===!0&&(t|=8)):t=0,s=Gt(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},yf(s),e}function Vb(e,t,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Vi,key:n==null?null:""+n,children:e,containerInfo:t,implementation:r}}function ry(e){if(!e)return An;e=e._reactInternals;e:{if(wi(e)!==e||e.tag!==1)throw Error(I(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ct(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(I(171))}if(e.tag===1){var r=e.type;if(Ct(r))return rv(e,r,t)}return t}function ny(e,t,r,n,i,s,o,a,l){return e=jf(r,n,!0,e,i,s,o,a,l),e.context=ry(null),r=e.current,n=vt(),i=Pn(r),s=Wr(n,i),s.callback=t??null,Tn(r,s,i),e.current.lanes=i,na(e,i,n),Pt(e,n),e}function su(e,t,r,n){var i=t.current,s=vt(),o=Pn(i);return r=ry(r),t.context===null?t.context=r:t.pendingContext=r,t=Wr(s,o),t.payload={element:e},n=n===void 0?null:n,n!==null&&(t.callback=n),e=Tn(i,t,o),e!==null&&(hr(e,i,o,s),el(e,i,o)),o}function Il(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function mp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function Df(e,t){mp(e,t),(e=e.alternate)&&mp(e,t)}function Kb(){return null}var iy=typeof reportError=="function"?reportError:function(e){console.error(e)};function $f(e){this._internalRoot=e}ou.prototype.render=$f.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(I(409));su(e,t,null,null)};ou.prototype.unmount=$f.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;mi(function(){su(null,e,null,null)}),t[Kr]=null}};function ou(e){this._internalRoot=e}ou.prototype.unstable_scheduleHydration=function(e){if(e){var t=jg();e={blockedOn:null,target:e,priority:t};for(var r=0;r<dn.length&&t!==0&&t<dn[r].priority;r++);dn.splice(r,0,e),r===0&&$g(e)}};function Mf(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function au(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function gp(){}function qb(e,t,r,n,i){if(i){if(typeof n=="function"){var s=n;n=function(){var u=Il(o);s.call(u)}}var o=ny(t,n,e,0,null,!1,!1,"",gp);return e._reactRootContainer=o,e[Kr]=o.current,Ao(e.nodeType===8?e.parentNode:e),mi(),o}for(;i=e.lastChild;)e.removeChild(i);if(typeof n=="function"){var a=n;n=function(){var u=Il(l);a.call(u)}}var l=jf(e,0,!1,null,null,!1,!1,"",gp);return e._reactRootContainer=l,e[Kr]=l.current,Ao(e.nodeType===8?e.parentNode:e),mi(function(){su(t,l,r,n)}),l}function lu(e,t,r,n,i){var s=r._reactRootContainer;if(s){var o=s;if(typeof i=="function"){var a=i;i=function(){var l=Il(o);a.call(l)}}su(t,o,e,i)}else o=qb(r,t,e,i,n);return Il(o)}Lg=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=oo(t.pendingLanes);
41r!==0&&(rf(t,r|1),Pt(t,He()),!(pe&6)&&(Ps=He()+500,zn()))}break;case 13:mi(function(){var n=qr(e,1);if(n!==null){var i=vt();hr(n,e,1,i)}}),Df(e,1)}};nf=function(e){if(e.tag===13){var t=qr(e,134217728);if(t!==null){var r=vt();hr(t,e,134217728,r)}Df(e,134217728)}};Ig=function(e){if(e.tag===13){var t=Pn(e),r=qr(e,t);if(r!==null){var n=vt();hr(r,e,t,n)}Df(e,t)}};jg=function(){return Se};Dg=function(e,t){var r=Se;try{return Se=e,t()}finally{Se=r}};Dc=function(e,t,r){switch(t){case"input":if(Rc(e,r),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var n=r[t];if(n!==e&&n.form===e.form){var i=Xl(n);if(!i)throw Error(I(90));hg(n),Rc(n,i)}}}break;case"textarea":mg(e,r);break;case"select":t=r.value,t!=null&&is(e,!!r.multiple,t,!1)}};Sg=Af;Eg=mi;var Gb={usingClientEntryPoint:!1,Events:[sa,Ji,Xl,_g,bg,Af]},Xs={findFiberByHostInstance:ei,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Qb={bundleType:Xs.bundleType,version:Xs.version,rendererPackageName:Xs.rendererPackageName,rendererConfig:Xs.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Xr.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Tg(e),e===null?null:e.stateNode},findFiberByHostInstance:Xs.findFiberByHostInstance||Kb,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ia=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ia.isDisabled&&Ia.supportsFiber)try{Gl=Ia.inject(Qb),kr=Ia}catch{}}Wt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Gb;Wt.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Mf(t))throw Error(I(200));return Vb(e,t,null,r)};Wt.createRoot=function(e,t){if(!Mf(e))throw Error(I(299));var r=!1,n="",i=iy;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=jf(e,1,!1,null,null,r,!1,n,i),e[Kr]=t.current,Ao(e.nodeType===8?e.parentNode:e),new $f(t)};Wt.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(I(188)):(e=Object.keys(e).join(","),Error(I(268,e)));return e=Tg(t),e=e===null?null:e.stateNode,e};Wt.flushSync=function(e){return mi(e)};Wt.hydrate=function(e,t,r){if(!au(t))throw Error(I(200));return lu(null,e,t,!0,r)};Wt.hydrateRoot=function(e,t,r){if(!Mf(e))throw Error(I(405));var n=r!=null&&r.hydratedSources||null,i=!1,s="",o=iy;if(r!=null&&(r.unstable_strictMode===!0&&(i=!0),r.identifierPrefix!==void 0&&(s=r.identifierPrefix),r.onRecoverableError!==void 0&&(o=r.onRecoverableError)),t=ny(t,null,e,1,r??null,i,!1,s,o),e[Kr]=t.current,Ao(e),n)for(e=0;e<n.length;e++)r=n[e],i=r._getVersion,i=i(r._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[r,i]:t.mutableSourceEagerHydrationData.push(r,i);return new ou(t)};Wt.render=function(e,t,r){if(!au(t))throw Error(I(200));return lu(null,e,t,!1,r)};Wt.unmountComponentAtNode=function(e){if(!au(e))throw Error(I(40));return e._reactRootContainer?(mi(function(){lu(null,null,e,!1,function(){e._reactRootContainer=null,e[Kr]=null})}),!0):!1};Wt.unstable_batchedUpdates=Af;Wt.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!au(r))throw Error(I(200));if(e==null||e._reactInternals===void 0)throw Error(I(38));return lu(e,t,r,!1,n)};Wt.version="18.3.1-next-f1338f8080-20240426";function sy(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(sy)}catch(e){console.error(e)}}sy(),sg.exports=Wt;var _i=sg.exports;const Uf=qm(_i),Jb=Km({__proto__:null,default:Uf},[_i]);var oy,vp=_i;oy=vp.createRoot,vp.hydrateRoot;const Yb="modulepreload",Xb=function(e){return"/"+e},yp={},Bn=function(t,r,n){let i=Promise.resolve();if(r&&r.length>0){document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),a=o?.nonce||o?.getAttribute("nonce");i=Promise.allSettled(r.map(l=>{if(l=Xb(l),l in yp)return;yp[l]=!0;const u=l.endsWith(".css"),c=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${c}`))return;const f=document.createElement("link");if(f.rel=u?"stylesheet":Yb,u||(f.as="script"),f.crossOrigin="",f.href=l,a&&f.setAttribute("nonce",a),document.head.appendChild(f),u)return new Promise((d,h)=>{f.addEventListener("load",d),f.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${l}`)))})}))}function s(o){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=o,window.dispatchEvent(a),!a.defaultPrevented)throw o}return i.then(o=>{for(const a of o||[])a.status==="rejected"&&s(a.reason);return t().catch(s)})},Zb=1,eS=1e6;let oc=0;function tS(){return oc=(oc+1)%Number.MAX_SAFE_INTEGER,oc.toString()}const ac=new Map,wp=e=>{if(ac.has(e))return;const t=setTimeout(()=>{ac.delete(e),_o({type:"REMOVE_TOAST",toastId:e})},eS);ac.set(e,t)},rS=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,Zb)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(r=>r.id===t.toast.id?{...r,...t.toast}:r)};case"DISMISS_TOAST":{const{toastId:r}=t;
41return r?wp(r):e.toasts.forEach(n=>{wp(n.id)}),{...e,toasts:e.toasts.map(n=>n.id===r||r===void 0?{...n,open:!1}:n)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(r=>r.id!==t.toastId)}}},al=[];let ll={toasts:[]};function _o(e){ll=rS(ll,e),al.forEach(t=>{t(ll)})}function nS({...e}){const t=tS(),r=i=>_o({type:"UPDATE_TOAST",toast:{...i,id:t}}),n=()=>_o({type:"DISMISS_TOAST",toastId:t});return _o({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:i=>{i||n()}}}),{id:t,dismiss:n,update:r}}function iS(){const[e,t]=w.useState(ll);return w.useEffect(()=>(al.push(t),()=>{const r=al.indexOf(t);r>-1&&al.splice(r,1)}),[e]),{...e,toast:nS,dismiss:r=>_o({type:"DISMISS_TOAST",toastId:r})}}function ze(e,t,{checkForDefaultPrevented:r=!0}={}){return function(i){if(e?.(i),r===!1||!i.defaultPrevented)return t?.(i)}}function sS(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function ay(...e){return t=>e.forEach(r=>sS(r,t))}function Rt(...e){return w.useCallback(ay(...e),e)}function oS(e,t=[]){let r=[];function n(s,o){const a=w.createContext(o),l=r.length;r=[...r,o];function u(f){const{scope:d,children:h,...g}=f,v=d?.[e][l]||a,_=w.useMemo(()=>g,Object.values(g));return O.jsx(v.Provider,{value:_,children:h})}function c(f,d){const h=d?.[e][l]||a,g=w.useContext(h);if(g)return g;if(o!==void 0)return o;throw new Error(`\`${f}\` must be used within \`${s}\``)}return u.displayName=s+"Provider",[u,c]}const i=()=>{const s=r.map(o=>w.createContext(o));return function(a){const l=a?.[e]||s;return w.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return i.scopeName=e,[n,aS(i,...t)]}function aS(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(s){const o=n.reduce((a,{useScope:l,scopeName:u})=>{const f=l(s)[`__scope${u}`];return{...a,...f}},{});return w.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return r.scopeName=t.scopeName,r}var jl=w.forwardRef((e,t)=>{const{children:r,...n}=e,i=w.Children.toArray(r),s=i.find(lS);if(s){const o=s.props.children,a=i.map(l=>l===s?w.Children.count(o)>1?w.Children.only(null):w.isValidElement(o)?o.props.children:null:l);return O.jsx(md,{...n,ref:t,children:w.isValidElement(o)?w.cloneElement(o,void 0,a):null})}return O.jsx(md,{...n,ref:t,children:r})});jl.displayName="Slot";var md=w.forwardRef((e,t)=>{const{children:r,...n}=e;if(w.isValidElement(r)){const i=cS(r);return w.cloneElement(r,{...uS(n,r.props),ref:t?ay(t,i):i})}return w.Children.count(r)>1?w.Children.only(null):null});md.displayName="SlotClone";var ly=({children:e})=>O.jsx(O.Fragment,{children:e});function lS(e){return w.isValidElement(e)&&e.type===ly}function uS(e,t){const r={...t};for(const n in t){const i=e[n],s=t[n];/^on[A-Z]/.test(n)?i&&s?r[n]=(...a)=>{s(...a),i(...a)}:i&&(r[n]=i):n==="style"?r[n]={...i,...s}:n==="className"&&(r[n]=[i,s].filter(Boolean).join(" "))}return{...e,...r}}function cS(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function dS(e){const t=e+"CollectionProvider",[r,n]=oS(t),[i,s]=r(t,{collectionRef:{current:null},itemMap:new Map}),o=h=>{const{scope:g,children:v}=h,_=M.useRef(null),m=M.useRef(new Map).current;return O.jsx(i,{scope:g,itemMap:m,collectionRef:_,children:v})};o.displayName=t;const a=e+"CollectionSlot",l=M.forwardRef((h,g)=>{const{scope:v,children:_}=h,m=s(a,v),p=Rt(g,m.collectionRef);return O.jsx(jl,{ref:p,children:_})});l.displayName=a;const u=e+"CollectionItemSlot",c="data-radix-collection-item",f=M.forwardRef((h,g)=>{const{scope:v,children:_,...m}=h,p=M.useRef(null),y=Rt(g,p),S=s(u,v);return M.useEffect(()=>(S.itemMap.set(p,{ref:p,...m}),()=>void S.itemMap.delete(p))),O.jsx(jl,{[c]:"",ref:y,children:_})});f.displayName=u;function d(h){const g=s(e+"CollectionConsumer",h);return M.useCallback(()=>{const _=g.collectionRef.current;if(!_)return[];const m=Array.from(_.querySelectorAll(`[${c}]`));return Array.from(g.itemMap.values()).sort((S,x)=>m.indexOf(S.ref.current)-m.indexOf(x.ref.current))},[g.collectionRef,g.itemMap])}return[{Provider:o,Slot:l,ItemSlot:f},d,n]}function fS(e,t=[]){let r=[];function n(s,o){const a=w.createContext(o),l=r.length;r=[...r,o];function u(f){const{scope:d,children:h,...g}=f,v=d?.[e][l]||a,_=w.useMemo(()=>g,Object.values(g));return O.jsx(v.Provider,{value:_,children:h})}function c(f,d){const h=d?.[e][l]||a,g=w.useContext(h);if(g)return g;if(o!==void 0)return o;throw new Error(`\`${f}\` must be used within \`${s}\``)}return u.displayName=s+"Provider",[u,c]}const i=()=>{const s=r.map(o=>w.createContext(o));return function(a){const l=a?.[e]||s;return w.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return i.scopeName=e,[n,hS(i,...t)]}function hS(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(s){const o=n.reduce((a,{useScope:l,scopeName:u})=>{const f=l(s)[`__scope${u}`];return{...a,...f}},{});return w.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return r.scopeName=t.scopeName,r}var pS=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],ft=pS.reduce((e,t)=>
vendor: 4,869 bytes, line 41
41{const r=w.forwardRef((n,i)=>{const{asChild:s,...o}=n,a=s?jl:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),O.jsx(a,{...o,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Ff(e,t){e&&_i.flushSync(()=>e.dispatchEvent(t))}function Xt(e){const t=w.useRef(e);return w.useEffect(()=>{t.current=e}),w.useMemo(()=>(...r)=>t.current?.(...r),[])}function uy(e,t=globalThis?.document){const r=Xt(e);w.useEffect(()=>{const n=i=>{i.key==="Escape"&&r(i)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var mS="DismissableLayer",gd="dismissableLayer.update",gS="dismissableLayer.pointerDownOutside",vS="dismissableLayer.focusOutside",_p,cy=w.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),dy=w.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:i,onFocusOutside:s,onInteractOutside:o,onDismiss:a,...l}=e,u=w.useContext(cy),[c,f]=w.useState(null),d=c?.ownerDocument??globalThis?.document,[,h]=w.useState({}),g=Rt(t,b=>f(b)),v=Array.from(u.layers),[_]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),m=v.indexOf(_),p=c?v.indexOf(c):-1,y=u.layersWithOutsidePointerEventsDisabled.size>0,S=p>=m,x=wS(b=>{const P=b.target,j=[...u.branches].some(A=>A.contains(P));!S||j||(i?.(b),o?.(b),b.defaultPrevented||a?.())},d),C=_S(b=>{const P=b.target;[...u.branches].some(A=>A.contains(P))||(s?.(b),o?.(b),b.defaultPrevented||a?.())},d);return uy(b=>{p===u.layers.size-1&&(n?.(b),!b.defaultPrevented&&a&&(b.preventDefault(),a()))},d),w.useEffect(()=>{if(c)return r&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(_p=d.body.style.pointerEvents,d.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(c)),u.layers.add(c),bp(),()=>{r&&u.layersWithOutsidePointerEventsDisabled.size===1&&(d.body.style.pointerEvents=_p)}},[c,d,r,u]),w.useEffect(()=>()=>{c&&(u.layers.delete(c),u.layersWithOutsidePointerEventsDisabled.delete(c),bp())},[c,u]),w.useEffect(()=>{const b=()=>h({});return document.addEventListener(gd,b),()=>document.removeEventListener(gd,b)},[]),O.jsx(ft.div,{...l,ref:g,style:{pointerEvents:y?S?"auto":"none":void 0,...e.style},onFocusCapture:ze(e.onFocusCapture,C.onFocusCapture),onBlurCapture:ze(e.onBlurCapture,C.onBlurCapture),onPointerDownCapture:ze(e.onPointerDownCapture,x.onPointerDownCapture)})});dy.displayName=mS;var yS="DismissableLayerBranch",fy=w.forwardRef((e,t)=>{const r=w.useContext(cy),n=w.useRef(null),i=Rt(t,n);return w.useEffect(()=>{const s=n.current;if(s)return r.branches.add(s),()=>{r.branches.delete(s)}},[r.branches]),O.jsx(ft.div,{...e,ref:i})});fy.displayName=yS;function wS(e,t=globalThis?.document){const r=Xt(e),n=w.useRef(!1),i=w.useRef(()=>{});return w.useEffect(()=>{const s=a=>{if(a.target&&!n.current){let l=function(){hy(gS,r,u,{discrete:!0})};const u={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=l,t.addEventListener("click",i.current,{once:!0})):l()}else t.removeEventListener("click",i.current);n.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",s),t.removeEventListener("click",i.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function _S(e,t=globalThis?.document){const r=Xt(e),n=w.useRef(!1);return w.useEffect(()=>{const i=s=>{s.target&&!n.current&&hy(vS,r,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function bp(){const e=new CustomEvent(gd);document.dispatchEvent(e)}function hy(e,t,r,{discrete:n}){const i=r.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&i.addEventListener(e,t,{once:!0}),n?Ff(i,s):i.dispatchEvent(s)}var bS=dy,SS=fy,Qr=globalThis?.document?w.useLayoutEffect:()=>{},ES="Portal",py=w.forwardRef((e,t)=>{const{container:r,...n}=e,[i,s]=w.useState(!1);Qr(()=>s(!0),[]);const o=r||i&&globalThis?.document?.body;return o?Uf.createPortal(O.jsx(ft.div,{...n,ref:t}),o):null});py.displayName=ES;function xS(e,t){return w.useReducer((r,n)=>t[r][n]??r,e)}var my=e=>{const{present:t,children:r}=e,n=kS(t),i=typeof r=="function"?r({present:n.isPresent}):w.Children.only(r),s=Rt(n.ref,TS(i));return typeof r=="function"||n.isPresent?w.cloneElement(i,{ref:s}):null};my.displayName="Presence";function kS(e){const[t,r]=w.useState(),n=w.useRef({}),i=w.useRef(e),s=w.useRef("none"),o=e?"mounted":"unmounted",[a,l]=xS(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return w.useEffect(()=>{const u=ja(n.current);s.current=a==="mounted"?u:"none"},[a]),Qr(()=>
41{const u=n.current,c=i.current;if(c!==e){const d=s.current,h=ja(u);e?l("MOUNT"):h==="none"||u?.display==="none"?l("UNMOUNT"):l(c&&d!==h?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,l]),Qr(()=>{if(t){const u=f=>{const h=ja(n.current).includes(f.animationName);f.target===t&&h&&_i.flushSync(()=>l("ANIMATION_END"))},c=f=>{f.target===t&&(s.current=ja(n.current))};return t.addEventListener("animationstart",c),t.addEventListener("animationcancel",u),t.addEventListener("animationend",u),()=>{t.removeEventListener("animationstart",c),t.removeEventListener("animationcancel",u),t.removeEventListener("animationend",u)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:w.useCallback(u=>{u&&(n.current=getComputedStyle(u)),r(u)},[])}}function ja(e){return e?.animationName||"none"}function TS(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function CS({prop:e,defaultProp:t,onChange:r=()=>{}}){const[n,i]=PS({defaultProp:t,onChange:r}),s=e!==void 0,o=s?e:n,a=Xt(r),l=w.useCallback(u=>{if(s){const f=typeof u=="function"?u(e):u;f!==e&&a(f)}else i(u)},[s,e,i,a]);return[o,l]}function PS({defaultProp:e,onChange:t}){const r=w.useState(e),[n]=r,i=w.useRef(n),s=Xt(t);return w.useEffect(()=>{i.current!==n&&(s(n),i.current=n)},[n,i,s]),r}var RS="VisuallyHidden",uu=w.forwardRef((e,t)=>O.jsx(ft.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));uu.displayName=RS;var OS=uu,zf="ToastProvider",[Bf,AS,NS]=dS("Toast"),[gy,WR]=fS("Toast",[NS]),[LS,cu]=gy(zf),vy=e=>{const{__scopeToast:t,label:r="Notification",duration:n=5e3,swipeDirection:i="right",swipeThreshold:s=50,children:o}=e,[a,l]=w.useState(null),[u,c]=w.useState(0),f=w.useRef(!1),d=w.useRef(!1);return r.trim()||console.error(`Invalid prop \`label\` supplied to \`${zf}\`. Expected non-empty \`string\`.`),O.jsx(Bf.Provider,{scope:t,children:O.jsx(LS,{scope:t,label:r,duration:n,swipeDirection:i,swipeThreshold:s,toastCount:u,viewport:a,onViewportChange:l,onToastAdd:w.useCallback(()=>c(h=>h+1),[]),onToastRemove:w.useCallback(()=>c(h=>h-1),[]),isFocusedToastEscapeKeyDownRef:f,isClosePausedRef:d,children:o})})};vy.displayName=zf;var yy="ToastViewport",IS=["F8"],vd="toast.viewportPause",yd="toast.viewportResume",wy=w.forwardRef((e,t)=>{const{__scopeToast:r,hotkey:n=IS,label:i="Notifications ({hotkey})",...s}=e,o=cu(yy,r),a=AS(r),l=w.useRef(null),u=w.useRef(null),c=w.useRef(null),f=w.useRef(null),d=Rt(t,f,o.onViewportChange),h=n.join("+").replace(/Key/g,"").replace(/Digit/g,""),g=o.toastCount>0;w.useEffect(()=>{const _=m=>{n.every(y=>m[y]||m.code===y)&&f.current?.focus()};return document.addEventListener("keydown",_),()=>document.removeEventListener("keydown",_)},[n]),w.useEffect(()=>{const _=l.current,m=f.current;if(g&&_&&m){const p=()=>{if(!o.isClosePausedRef.current){const C=new CustomEvent(vd);m.dispatchEvent(C),o.isClosePausedRef.current=!0}},y=()=>{if(o.isClosePausedRef.current){const C=new CustomEvent(yd);m.dispatchEvent(C),o.isClosePausedRef.current=!1}},S=C=>{!_.contains(C.relatedTarget)&&y()},x=()=>{_.contains(document.activeElement)||y()};return _.addEventListener("focusin",p),_.addEventListener("focusout",S),_.addEventListener("pointermove",p),_.addEventListener("pointerleave",x),window.addEventListener("blur",p),window.addEventListener("focus",y),()=>{_.removeEventListener("focusin",p),_.removeEventListener("focusout",S),_.removeEventListener("pointermove",p),_.removeEventListener("pointerleave",x),window.removeEventListener("blur",p),window.removeEventListener("focus",y)}}},[g,o.isClosePausedRef]);const v=w.useCallback(({tabbingDirection:_})=>{const p=a().map(y=>{const S=y.ref.current,x=[S,...qS(S)];return _==="forwards"?x:x.reverse()});return(_==="forwards"?p.reverse():p).flat()},[a]);return w.useEffect(()=>{const _=f.current;if(_){const m=p=>{const y=p.altKey||p.ctrlKey||p.metaKey;
vendor: 5,845 bytes, line 41
41if(p.key==="Tab"&&!y){const x=document.activeElement,C=p.shiftKey;if(p.target===_&&C){u.current?.focus();return}const j=v({tabbingDirection:C?"backwards":"forwards"}),A=j.findIndex(W=>W===x);lc(j.slice(A+1))?p.preventDefault():C?u.current?.focus():c.current?.focus()}};return _.addEventListener("keydown",m),()=>_.removeEventListener("keydown",m)}},[a,v]),O.jsxs(SS,{ref:l,role:"region","aria-label":i.replace("{hotkey}",h),tabIndex:-1,style:{pointerEvents:g?void 0:"none"},children:[g&&O.jsx(wd,{ref:u,onFocusFromOutsideViewport:()=>{const _=v({tabbingDirection:"forwards"});lc(_)}}),O.jsx(Bf.Slot,{scope:r,children:O.jsx(ft.ol,{tabIndex:-1,...s,ref:d})}),g&&O.jsx(wd,{ref:c,onFocusFromOutsideViewport:()=>{const _=v({tabbingDirection:"backwards"});lc(_)}})]})});wy.displayName=yy;var _y="ToastFocusProxy",wd=w.forwardRef((e,t)=>{const{__scopeToast:r,onFocusFromOutsideViewport:n,...i}=e,s=cu(_y,r);return O.jsx(uu,{"aria-hidden":!0,tabIndex:0,...i,ref:t,style:{position:"fixed"},onFocus:o=>{const a=o.relatedTarget;!s.viewport?.contains(a)&&n()}})});wd.displayName=_y;var du="Toast",jS="toast.swipeStart",DS="toast.swipeMove",$S="toast.swipeCancel",MS="toast.swipeEnd",by=w.forwardRef((e,t)=>{const{forceMount:r,open:n,defaultOpen:i,onOpenChange:s,...o}=e,[a=!0,l]=CS({prop:n,defaultProp:i,onChange:s});return O.jsx(my,{present:r||a,children:O.jsx(zS,{open:a,...o,ref:t,onClose:()=>l(!1),onPause:Xt(e.onPause),onResume:Xt(e.onResume),onSwipeStart:ze(e.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:ze(e.onSwipeMove,u=>{const{x:c,y:f}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","move"),u.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${c}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${f}px`)}),onSwipeCancel:ze(e.onSwipeCancel,u=>{u.currentTarget.setAttribute("data-swipe","cancel"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:ze(e.onSwipeEnd,u=>{const{x:c,y:f}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","end"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${c}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${f}px`),l(!1)})})})});by.displayName=du;var[US,FS]=gy(du,{onClose(){}}),zS=w.forwardRef((e,t)=>{const{__scopeToast:r,type:n="foreground",duration:i,open:s,onClose:o,onEscapeKeyDown:a,onPause:l,onResume:u,onSwipeStart:c,onSwipeMove:f,onSwipeCancel:d,onSwipeEnd:h,...g}=e,v=cu(du,r),[_,m]=w.useState(null),p=Rt(t,$=>m($)),y=w.useRef(null),S=w.useRef(null),x=i||v.duration,C=w.useRef(0),b=w.useRef(x),P=w.useRef(0),{onToastAdd:j,onToastRemove:A}=v,W=Xt(()=>{_?.contains(document.activeElement)&&v.viewport?.focus(),o()}),U=w.useCallback($=>{!$||$===1/0||(window.clearTimeout(P.current),C.current=new Date().getTime(),P.current=window.setTimeout(W,$))},[W]);w.useEffect(()=>{const $=v.viewport;if($){const ne=()=>{U(b.current),u?.()},X=()=>{const se=new Date().getTime()-C.current;b.current=b.current-se,window.clearTimeout(P.current),l?.()};return $.addEventListener(vd,X),$.addEventListener(yd,ne),()=>{$.removeEventListener(vd,X),$.removeEventListener(yd,ne)}}},[v.viewport,x,l,u,U]),w.useEffect(()=>{s&&!v.isClosePausedRef.current&&U(x)},[s,x,v.isClosePausedRef,U]),w.useEffect(()=>(j(),()=>A()),[j,A]);const Z=w.useMemo(()=>_?Py(_):null,[_]);return v.viewport?O.jsxs(O.Fragment,{children:[Z&&O.jsx(BS,{__scopeToast:r,role:"status","aria-live":n==="foreground"?"assertive":"polite","aria-atomic":!0,children:Z}),O.jsx(US,{scope:r,onClose:W,children:_i.createPortal(O.jsx(Bf.ItemSlot,{scope:r,children:O.jsx(bS,{asChild:!0,onEscapeKeyDown:ze(a,()=>{v.isFocusedToastEscapeKeyDownRef.current||W(),v.isFocusedToastEscapeKeyDownRef.current=!1}),children:O.jsx(ft.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":s?"open":"closed","data-swipe-direction":v.swipeDirection,...g,ref:p,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:ze(e.onKeyDown,$=>{$.key==="Escape"&&(a?.($.nativeEvent),$.nativeEvent.defaultPrevented||(v.isFocusedToastEscapeKeyDownRef.current=!0,W()))}),onPointerDown:ze(e.onPointerDown,$=>{$.button===0&&(y.current={x:$.clientX,y:$.clientY})}),onPointerMove:ze(e.onPointerMove,$=>{if(!y.current)return;const ne=$.clientX-y.current.x,X=$.clientY-y.current.y,se=!!S.current,T=["left","right"].includes(v.swipeDirection),D=["left","up"].includes(v.swipeDirection)?Math.min:Math.max,H=T?D(0,ne):0,z=T?0:D(0,X),q=$.pointerType==="touch"?10:2,oe={x:H,y:z},we={originalEvent:$,delta:oe};se?(S.current=oe,Da(DS,f,we,{discrete:!1})):Sp(oe,v.swipeDirection,q)?(S.current=oe,Da(jS,c,we,{discrete:!1}),$.target.setPointerCapture($.pointerId)):(Math.abs(ne)>q||Math.abs(X)>q)&&(y.current=null)}),onPointerUp:ze(e.onPointerUp,$=>{const ne=S.current,X=$.target;if(X.hasPointerCapture($.pointerId)&&X.releasePointerCapture($.pointerId),S.current=null,y.current=null,ne){const se=$.currentTarget,T={originalEvent:$,delta:ne};Sp(ne,v.swipeDirection,v.swipeThreshold)?Da(MS,h,T,{discrete:!0}):Da($S,d,T,{discrete:!0}),se.addEventListener("click",D=>D.preventDefault(),{once:!0})}})})})}),v.viewport)})]}):null}),BS=e=>{const{__scopeToast:t,children:r,...n}=e,i=cu(du,t),[s,o]=w.useState(!1),[a,l]=w.useState(!1);return VS(()=>o(!0)),w.useEffect(()=>{const u=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(u)},[]),a?null:O.jsx(py,{asChild:!0,children:O.jsx(uu,{...n,children:s&&O.jsxs(O.Fragment,{children:[i.label," ",r]})})})},WS="ToastTitle",Sy=w.forwardRef((e,t)=>
41{const{__scopeToast:r,...n}=e;return O.jsx(ft.div,{...n,ref:t})});Sy.displayName=WS;var HS="ToastDescription",Ey=w.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e;return O.jsx(ft.div,{...n,ref:t})});Ey.displayName=HS;var xy="ToastAction",ky=w.forwardRef((e,t)=>{const{altText:r,...n}=e;return r.trim()?O.jsx(Cy,{altText:r,asChild:!0,children:O.jsx(Wf,{...n,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${xy}\`. Expected non-empty \`string\`.`),null)});ky.displayName=xy;var Ty="ToastClose",Wf=w.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e,i=FS(Ty,r);return O.jsx(Cy,{asChild:!0,children:O.jsx(ft.button,{type:"button",...n,ref:t,onClick:ze(e.onClick,i.onClose)})})});Wf.displayName=Ty;var Cy=w.forwardRef((e,t)=>{const{__scopeToast:r,altText:n,...i}=e;return O.jsx(ft.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":n||void 0,...i,ref:t})});function Py(e){const t=[];return Array.from(e.childNodes).forEach(n=>{if(n.nodeType===n.TEXT_NODE&&n.textContent&&t.push(n.textContent),KS(n)){const i=n.ariaHidden||n.hidden||n.style.display==="none",s=n.dataset.radixToastAnnounceExclude==="";if(!i)if(s){const o=n.dataset.radixToastAnnounceAlt;o&&t.push(o)}else t.push(...Py(n))}}),t}function Da(e,t,r,{discrete:n}){const i=r.originalEvent.currentTarget,s=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:r});t&&i.addEventListener(e,t,{once:!0}),n?Ff(i,s):i.dispatchEvent(s)}var Sp=(e,t,r=0)=>{const n=Math.abs(e.x),i=Math.abs(e.y),s=n>i;return t==="left"||t==="right"?s&&n>r:!s&&i>r};function VS(e=()=>{}){const t=Xt(e);Qr(()=>{let r=0,n=0;return r=window.requestAnimationFrame(()=>n=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(r),window.cancelAnimationFrame(n)}},[t])}function KS(e){return e.nodeType===e.ELEMENT_NODE}function qS(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const i=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||i?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function lc(e){const t=document.activeElement;return e.some(r=>r===t?!0:(r.focus(),document.activeElement!==t))}var GS=vy,Ry=wy,Oy=by,Ay=Sy,Ny=Ey,Ly=ky,Iy=Wf;function jy(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=jy(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Dy(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=jy(e))&&(n&&(n+=" "),n+=t);return n}const Ep=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,xp=Dy,QS=(e,t)=>r=>{var n;if(t?.variants==null)return xp(e,r?.class,r?.className);const{variants:i,defaultVariants:s}=t,o=Object.keys(i).map(u=>{const c=r?.[u],f=s?.[u];if(c===null)return null;const d=Ep(c)||Ep(f);return i[u][d]}),a=r&&Object.entries(r).reduce((u,c)=>{let[f,d]=c;return d===void 0||(u[f]=d),u},{}),l=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((u,c)=>{let{class:f,className:d,...h}=c;return Object.entries(h).every(g=>{let[v,_]=g;return Array.isArray(_)?_.includes({...s,...a}[v]):{...s,...a}[v]===_})?[...u,f,d]:u},[]);return xp(e,o,l,r?.class,r?.className)};/** 42 * @license lucide-react v0.462.0 - ISC 43 * 44 * This source code is licensed under the ISC license. 45 * See the LICENSE file in the root directory of this source tree. 46 */const JS=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),$y=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim();/** 47 * @license lucide-react v0.462.0 - ISC 48 * 49 * This source code is licensed under the ISC license. 50 * See the LICENSE file in the root directory of this source tree. 51 */var YS={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** 52 * @license lucide-react v0.462.0 - ISC 53 * 54 * This source code is licensed under the ISC license. 55 * See the LICENSE file in the root directory of this source tree. 56 */const XS=w.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:i="",children:s,iconNode:o,...a},l)=>w.createElement("svg",{ref:l,...YS,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:$y("lucide",i),...a},[...o.map(([u,c])=>w.createElement(u,c)),...Array.isArray(s)?s:[s]]));/** 57 * @license lucide-react v0.462.0 - ISC 58 * 59 * This source code is licensed under the ISC license. 60 * See the LICENSE file in the root directory of this source tree. 61 */const ZS=(e,t)=>{const r=w.forwardRef(({className:n,...i},s)=>w.createElement(XS,{ref:s,iconNode:t,className:$y(`lucide-${JS(e)}`,n),...i}));return r.displayName=`${e}`,r};/** 62 * @license lucide-react v0.462.0 - ISC 63 * 64 * This source code is licensed under the ISC license. 65 * See the LICENSE file in the root directory of this source tree. 66 */const eE=ZS("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}
vendor: 12,222 bytes, line 66
66],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Hf="-",tE=e=>{const t=nE(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:o=>{const a=o.split(Hf);return a[0]===""&&a.length!==1&&a.shift(),My(a,t)||rE(o)},getConflictingClassGroupIds:(o,a)=>{const l=r[o]||[];return a&&n[o]?[...l,...n[o]]:l}}},My=(e,t)=>{if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),i=n?My(e.slice(1),n):void 0;if(i)return i;if(t.validators.length===0)return;const s=e.join(Hf);return t.validators.find(({validator:o})=>o(s))?.classGroupId},kp=/^\[(.+)\]$/,rE=e=>{if(kp.test(e)){const t=kp.exec(e)[1],r=t?.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},nE=e=>{const{theme:t,prefix:r}=e,n={nextPart:new Map,validators:[]};return sE(Object.entries(e.classGroups),r).forEach(([s,o])=>{_d(o,n,s,t)}),n},_d=(e,t,r,n)=>{e.forEach(i=>{if(typeof i=="string"){const s=i===""?t:Tp(t,i);s.classGroupId=r;return}if(typeof i=="function"){if(iE(i)){_d(i(n),t,r,n);return}t.validators.push({validator:i,classGroupId:r});return}Object.entries(i).forEach(([s,o])=>{_d(o,Tp(t,s),r,n)})})},Tp=(e,t)=>{let r=e;return t.split(Hf).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},iE=e=>e.isThemeGetter,sE=(e,t)=>t?e.map(([r,n])=>{const i=n.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([o,a])=>[t+o,a])):s);return[r,i]}):e,oE=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const i=(s,o)=>{r.set(s,o),t++,t>e&&(t=0,n=r,r=new Map)};return{get(s){let o=r.get(s);if(o!==void 0)return o;if((o=n.get(s))!==void 0)return i(s,o),o},set(s,o){r.has(s)?r.set(s,o):i(s,o)}}},Uy="!",aE=e=>{const{separator:t,experimentalParseClassName:r}=e,n=t.length===1,i=t[0],s=t.length,o=a=>{const l=[];let u=0,c=0,f;for(let _=0;_<a.length;_++){let m=a[_];if(u===0){if(m===i&&(n||a.slice(_,_+s)===t)){l.push(a.slice(c,_)),c=_+s;continue}if(m==="/"){f=_;continue}}m==="["?u++:m==="]"&&u--}const d=l.length===0?a:a.substring(c),h=d.startsWith(Uy),g=h?d.substring(1):d,v=f&&f>c?f-c:void 0;return{modifiers:l,hasImportantModifier:h,baseClassName:g,maybePostfixModifierPosition:v}};return r?a=>r({className:a,parseClassName:o}):o},lE=e=>{if(e.length<=1)return e;const t=[];let r=[];return e.forEach(n=>{n[0]==="["?(t.push(...r.sort(),n),r=[]):r.push(n)}),t.push(...r.sort()),t},uE=e=>({cache:oE(e.cacheSize),parseClassName:aE(e),...tE(e)}),cE=/\s+/,dE=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:i}=t,s=[],o=e.trim().split(cE);let a="";for(let l=o.length-1;l>=0;l-=1){const u=o[l],{modifiers:c,hasImportantModifier:f,baseClassName:d,maybePostfixModifierPosition:h}=r(u);let g=!!h,v=n(g?d.substring(0,h):d);if(!v){if(!g){a=u+(a.length>0?" "+a:a);continue}if(v=n(d),!v){a=u+(a.length>0?" "+a:a);continue}g=!1}const _=lE(c).join(":"),m=f?_+Uy:_,p=m+v;if(s.includes(p))continue;s.push(p);const y=i(v,g);for(let S=0;S<y.length;++S){const x=y[S];s.push(m+x)}a=u+(a.length>0?" "+a:a)}return a};function fE(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=Fy(t))&&(n&&(n+=" "),n+=r);return n}const Fy=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=Fy(e[n]))&&(r&&(r+=" "),r+=t);return r};function hE(e,...t){let r,n,i,s=o;function o(l){const u=t.reduce((c,f)=>f(c),e());return r=uE(u),n=r.cache.get,i=r.cache.set,s=a,a(l)}function a(l){const u=n(l);if(u)return u;const c=dE(l,r);return i(l,c),c}return function(){return s(fE.apply(null,arguments))}}const Ce=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},zy=/^\[(?:([a-z-]+):)?(.+)\]$/i,pE=/^\d+\/\d+$/,mE=new Set(["px","full","screen"]),gE=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,vE=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,yE=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,wE=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,_E=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,jr=e=>cs(e)||mE.has(e)||pE.test(e),nn=e=>js(e,"length",PE),cs=e=>!!e&&!Number.isNaN(Number(e)),uc=e=>js(e,"number",cs),Zs=e=>!!e&&Number.isInteger(Number(e)),bE=e=>e.endsWith("%")&&cs(e.slice(0,-1)),ue=e=>zy.test(e),sn=e=>gE.test(e),SE=new Set(["length","size","percentage"]),EE=e=>js(e,SE,By),xE=e=>js(e,"position",By),kE=new Set(["image","url"]),TE=e=>js(e,kE,OE),CE=e=>js(e,"",RE),eo=()=>!0,js=(e,t,r)=>{const n=zy.exec(e);return n?n[1]?typeof t=="string"?n[1]===t:t.has(n[1]):r(n[2]):!1},PE=e=>vE.test(e)&&!yE.test(e),By=()=>!1,RE=e=>wE.test(e),OE=e=>_E.test(e),AE=()=>{const e=Ce("colors"),t=Ce("spacing"),r=Ce("blur"),n=Ce("brightness"),i=Ce("borderColor"),s=Ce("borderRadius"),o=Ce("borderSpacing"),a=Ce("borderWidth"),l=Ce("contrast"),u=Ce("grayscale"),c=Ce("hueRotate"),f=Ce("invert"),d=Ce("gap"),h=Ce("gradientColorStops"),g=Ce("gradientColorStopPositions"),v=Ce("inset"),_=Ce("margin"),m=Ce("opacity"),p=Ce("padding"),y=Ce("saturate"),S=Ce("scale"),x=Ce("sepia"),C=Ce("skew"),b=Ce("space"),P=Ce("translate"),j=()=>["auto","contain","none"],A=()=>["auto","hidden","clip","visible","scroll"],W=()=>["auto",ue,t],U=()=>[ue,t],Z=()=>["",jr,nn],$=()=>["auto",cs,ue],ne=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],X=()=>["solid","dashed","dotted","double","none"],se=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],T=()=>["start","end","center","between","around","evenly","stretch"],D=()=>["","0",ue],H=()=>["auto","avoid","all","avoid-page","page","left","right","column"],z=()=>[cs,ue];return{cacheSize:500,separator:":",theme:{colors:[eo],spacing:[jr,nn],blur:["none","",sn,ue],brightness:z(),borderColor:[e],borderRadius:["none","","full",sn,ue],borderSpacing:U(),borderWidth:Z(),contrast:z(),grayscale:D(),hueRotate:z(),invert:D(),gap:U(),gradientColorStops:[e],gradientColorStopPositions:[bE,nn],inset:W(),margin:W(),opacity:z(),padding:U(),saturate:z(),scale:z(),sepia:D(),skew:z(),space:U(),translate:U()},classGroups:{aspect:[{aspect:["auto","square","video",ue]}],container:["container"],columns:[{columns:[sn]}],"break-after":[{"break-after":H()}],"break-before":[{"break-before":H()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...ne(),ue]}],overflow:[{overflow:A()}],"overflow-x":[{"overflow-x":A()}],"overflow-y":[{"overflow-y":A()}],overscroll:[{overscroll:j()}],"overscroll-x":[{"overscroll-x":j()}],"overscroll-y":[{"overscroll-y":j()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[v]}],"inset-x":[{"inset-x":[v]}],"inset-y":[{"inset-y":[v]}],start:[{start:[v]}],end:[{end:[v]}],top:[{top:[v]}],right:[{right:[v]}],bottom:[{bottom:[v]}],left:[{left:[v]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Zs,ue]}],basis:[{basis:W()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",ue]}],grow:[{grow:D()}],shrink:[{shrink:D()}],order:[{order:["first","last","none",Zs,ue]}],"grid-cols":[{"grid-cols":[eo]}],"col-start-end":[{col:["auto",{span:["full",Zs,ue]},ue]}],"col-start":[{"col-start":$()}],"col-end":[{"col-end":$()}],"grid-rows":[{"grid-rows":[eo]}],"row-start-end":[{row:["auto",{span:[Zs,ue]},ue]}],"row-start":[{"row-start":$()}],"row-end":[{"row-end":$()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",ue]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",ue]}],gap:[{gap:[d]}],"gap-x":[{"gap-x":[d]}],"gap-y":[{"gap-y":[d]}],"justify-content":[{justify:["normal",...T()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...T(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...T(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[p]}],px:[{px:[p]}],py:[{py:[p]}],ps:[{ps:[p]}],pe:[{pe:[p]}],pt:[{pt:[p]}],pr:[{pr:[p]}],pb:[{pb:[p]}],pl:[{pl:[p]}],m:[{m:[_]}],mx:[{mx:[_]}],my:[{my:[_]}],ms:[{ms:[_]}],me:[{me:[_]}],mt:[{mt:[_]}],mr:[{mr:[_]}],mb:[{mb:[_]}],ml:[{ml:[_]}],"space-x":[{"space-x":[b]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[b]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",ue,t]}],"min-w":[{"min-w":[ue,t,"min","max","fit"]}],"max-w":[{"max-w":[ue,t,"none","full","min","max","fit","prose",{screen:[sn]},sn]}],h:[{h:[ue,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[ue,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[ue,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[ue,t,"auto","min","max","fit"]}],"font-size":[{text:["base",sn,nn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",uc]}],"font-family":[{font:[eo]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",ue]}],"line-clamp":[{"line-clamp":["none",cs,uc]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",jr,ue]}],"list-image":[{"list-image":["none",ue]}],"list-style-type":[{list:["none","disc","decimal",ue]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[m]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[m]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...X(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",jr,nn]}],"underline-offset":[{"underline-offset":["auto",jr,ue]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:U()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ue]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ue]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[m]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...ne(),xE]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",EE]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},TE]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[g]}
vendor: 5,110 bytes, line 66
66],"gradient-via-pos":[{via:[g]}],"gradient-to-pos":[{to:[g]}],"gradient-from":[{from:[h]}],"gradient-via":[{via:[h]}],"gradient-to":[{to:[h]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[m]}],"border-style":[{border:[...X(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[m]}],"divide-style":[{divide:X()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...X()]}],"outline-offset":[{"outline-offset":[jr,ue]}],"outline-w":[{outline:[jr,nn]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Z()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[m]}],"ring-offset-w":[{"ring-offset":[jr,nn]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",sn,CE]}],"shadow-color":[{shadow:[eo]}],opacity:[{opacity:[m]}],"mix-blend":[{"mix-blend":[...se(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":se()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",sn,ue]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[f]}],saturate:[{saturate:[y]}],sepia:[{sepia:[x]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[m]}],"backdrop-saturate":[{"backdrop-saturate":[y]}],"backdrop-sepia":[{"backdrop-sepia":[x]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[o]}],"border-spacing-x":[{"border-spacing-x":[o]}],"border-spacing-y":[{"border-spacing-y":[o]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",ue]}],duration:[{duration:z()}],ease:[{ease:["linear","in","out","in-out",ue]}],delay:[{delay:z()}],animate:[{animate:["none","spin","ping","pulse","bounce",ue]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[Zs,ue]}],"translate-x":[{"translate-x":[P]}],"translate-y":[{"translate-y":[P]}],"skew-x":[{"skew-x":[C]}],"skew-y":[{"skew-y":[C]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",ue]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ue]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":U()}],"scroll-mx":[{"scroll-mx":U()}],"scroll-my":[{"scroll-my":U()}],"scroll-ms":[{"scroll-ms":U()}],"scroll-me":[{"scroll-me":U()}],"scroll-mt":[{"scroll-mt":U()}],"scroll-mr":[{"scroll-mr":U()}],"scroll-mb":[{"scroll-mb":U()}],"scroll-ml":[{"scroll-ml":U()}],"scroll-p":[{"scroll-p":U()}],"scroll-px":[{"scroll-px":U()}],"scroll-py":[{"scroll-py":U()}],"scroll-ps":[{"scroll-ps":U()}],"scroll-pe":[{"scroll-pe":U()}],"scroll-pt":[{"scroll-pt":U()}],"scroll-pr":[{"scroll-pr":U()}],"scroll-pb":[{"scroll-pb":U()}],"scroll-pl":[{"scroll-pl":U()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}
vendor: 4,613 bytes, line 66
66],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ue]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[jr,nn,uc]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},NE=hE(AE);function bi(...e){return NE(Dy(e))}const LE=GS,Wy=w.forwardRef(({className:e,...t},r)=>O.jsx(Ry,{ref:r,className:bi("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));Wy.displayName=Ry.displayName;const IE=QS("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),Hy=w.forwardRef(({className:e,variant:t,...r},n)=>O.jsx(Oy,{ref:n,className:bi(IE({variant:t}),e),...r}));Hy.displayName=Oy.displayName;const jE=w.forwardRef(({className:e,...t},r)=>O.jsx(Ly,{ref:r,className:bi("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",e),...t}));jE.displayName=Ly.displayName;const Vy=w.forwardRef(({className:e,...t},r)=>O.jsx(Iy,{ref:r,className:bi("absolute right-2 top-2 rounded-md p-1 text-foreground
66/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:O.jsx(eE,{className:"h-4 w-4"})}));Vy.displayName=Iy.displayName;const Ky=w.forwardRef(({className:e,...t},r)=>O.jsx(Ay,{ref:r,className:bi("text-sm font-semibold",e),...t}));Ky.displayName=Ay.displayName;const qy=w.forwardRef(({className:e,...t},r)=>O.jsx(Ny,{ref:r,className:bi("text-sm opacity-90",e),...t}));qy.displayName=Ny.displayName;function DE(){const{toasts:e}=iS();return O.jsxs(LE,{children:[e.map(function({id:t,title:r,description:n,action:i,...s}){return O.jsxs(Hy,{...s,children:[O.jsxs("div",{className:"grid gap-1",children:[r&&O.jsx(Ky,{children:r}),n&&O.jsx(qy,{children:n})]}),i,O.jsx(Vy,{})]},t)}),O.jsx(Wy,{})]})}var Cp=["light","dark"],$E="(prefers-color-scheme: dark)",ME=w.createContext(void 0),UE={setTheme:e=>{},themes:[]},FE=()=>{var e;return(e=w.useContext(ME))!=null?e:UE};w.memo(({forcedTheme:e,storageKey:t,attribute:r,enableSystem:n,enableColorScheme:i,defaultTheme:s,value:o,attrs:a,nonce:l})=>{let u=s==="system",c=r==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${a.map(g=>`'${g}'`).join(",")})`};`:`var d=document.documentElement,n='${r}',s='setAttribute';`,f=i?Cp.includes(s)&&s?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${s}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",d=(g,v=!1,_=!0)=>{let m=o?o[g]:g,p=v?g+"|| ''":`'${m}'`,y="";return i&&_&&!v&&Cp.includes(g)&&(y+=`d.style.colorScheme = '${g}';`),r==="class"?v||m?y+=`c.add(${p})`:y+="null":m&&(y+=`d[s](n,${p})`),y},h=e?`!function(){${c}${d(e)}}()`:n?`!function(){try{${c}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${u})){var t='${$E}',m=window.matchMedia(t);if(m.media!==t||m.matches){${d("dark")}}else{${d("light")}}}else if(e){${o?`var x=${JSON.stringify(o)};`:""}${d(o?"x[e]":"e",!0)}}${u?"":"else{"+d(s,!1,!1)+"}"}${f}}catch(e){}}()`:`!function(){try{${c}var e=localStorage.getItem('${t}');if(e){${o?`var x=${JSON.stringify(o)};`:""}${d(o?"x[e]":"e",!0)}}else{${d(s,!1,!1)};}${f}}catch(t){}}();`;return w.createElement("script",{nonce:l,dangerouslySetInnerHTML:{__html:h}})});var zE=e=>{switch(e){case"success":return HE;case"info":return KE;case"warning":return VE;case"error":return qE;default:return null}},BE=Array(12).fill(0),WE=({visible:e})=>M.createElement("div",{className:"sonner-loading-wrapper","data-visible":e},M.createElement("div",{className:"sonner-spinner"},BE.map((t,r)=>M.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),HE=M.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},M.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),VE=M.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},M.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),KE=M.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},M.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),qE=M.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},M.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),GE=()=>
66{let[e,t]=M.useState(document.hidden);return M.useEffect(()=>{let r=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",r),()=>window.removeEventListener("visibilitychange",r)},[]),e},bd=1,QE=class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;let{message:r,...n}=e,i=typeof e?.id=="number"||((t=e.id)==null?void 0:t.length)>0?e.id:bd++,s=this.toasts.find(a=>a.id===i),o=e.dismissible===void 0?!0:e.dismissible;return s?this.toasts=this.toasts.map(a=>a.id===i?(this.publish({...a,...e,id:i,title:r}),{...a,...e,id:i,dismissible:o,title:r}):a):this.addToast({title:r,...n,dismissible:o,id:i}),i},this.dismiss=e=>(e||this.toasts.forEach(t=>{this.subscribers.forEach(r=>r({id:t.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>
66this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let r;t.loading!==void 0&&(r=this.create({...t,promise:e,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));let n=e instanceof Promise?e:e(),i=r!==void 0;return n.then(async s=>{if(YE(s)&&!s.ok){i=!1;let o=typeof t.error=="function"?await t.error(`HTTP error! status: ${s.status}`):t.error,a=typeof t.description=="function"?await t.description(`HTTP error! status: ${s.status}`):t.description;this.create({id:r,type:"error",message:o,description:a})}else if(t.success!==void 0){i=!1;let o=typeof t.success=="function"?await t.success(s):t.success,a=typeof t.description=="function"?await t.description(s):t.description;this.create({id:r,type:"success",message:o,description:a})}}).catch(async s=>{if(t.error!==void 0){i=!1;let o=typeof t.error=="function"?await t.error(s):t.error,a=typeof t.description=="function"?await t.description(s):t.description;this.create({id:r,type:"error",message:o,description:a})}}).finally(()=>{var s;i&&(this.dismiss(r),r=void 0),(s=t.finally)==null||s.call(t)}),r},this.custom=(e,t)=>{let r=t?.id||bd++;return this.create({jsx:e(r),id:r,...t}),r},this.subscribers=[],this.toasts=[]}},It=new QE,JE=(e,t)=>{let r=t?.id||bd++;return It.addToast({title:e,...t,id:r}),r},YE=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",XE=JE,ZE=()=>It.toasts;Object.assign(XE,{success:It.success,info:It.info,warning:It.warning,error:It.error,custom:It.custom,message:It.message,promise:It.promise,dismiss:It.dismiss,loading:It.loading},{getHistory:ZE});function ex(e,{insertAt:t}={}){if(typeof document>"u")return;let r=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t==="top"&&r.firstChild?r.insertBefore(n,r.firstChild):r.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}ex(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999}:where([data-sonner-toaster][data-x-position="right"]){right:max(var(--offset),env(safe-area-inset-right))}:where([data-sonner-toaster][data-x-position="left"]){left:max(var(--offset),env(safe-area-inset-left))}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:max(var(--offset),env(safe-area-inset-top))}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:max(var(--offset),env(safe-area-inset-bottom))}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;
66left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;background:var(--gray1);color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:0;right:0;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}
66:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount, 0px));transition:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation:swipe-out .2s ease-out forwards}@keyframes swipe-out{0%{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount)));opacity:1}to{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount) + var(--lift) * -100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;--mobile-offset: 16px;right:var(--mobile-offset);left:var(--mobile-offset);width:100%}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset)}[data-sonner-toaster][data-y-position=bottom]{bottom:20px}[data-sonner-toaster][data-y-position=top]{top:20px}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset);right:var(--mobile-offset);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);--error-text: hsl(358, 100%, 81%)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)} 67`);function $a(e){return e.label!==void 0}var tx=3,rx="32px",nx=4e3,ix=356,sx=14,ox=20,ax=200;function lx(...e){return e.filter(Boolean).join(" ")}var ux=e=>{var t,r,n,i,s,o,a,l,u,c;let{invert:f,toast:d,unstyled:h,interacting:g,setHeights:v,visibleToasts:_,heights:m,index:p,toasts:y,exp
67anded:S,removeToast:x,defaultRichColors:C,closeButton:b,style:P,cancelButtonStyle:j,actionButtonStyle:A,className:W="",descriptionClassName:U="",duration:Z,position:$,gap:ne,loadingIcon:X,expandByDefault:se,classNames:T,icons:D,closeButtonAriaLabel:H="Close toast",pauseWhenPageIsHidden:z,cn:q}=e,[oe,we]=M.useState(!1),[Te,de]=M.useState(!1),[je,Ot]=M.useState(!1),[Ar,Nr]=M.useState(!1),[Us,Be]=M.useState(0),[At,Fs]=M.useState(0),ua=M.useRef(null),_t=M.useRef(null),Cu=p===0,Pu=p+1<=_,ht=d.type,en=d.dismissible!==!1,Ru=d.className||"",Ou=d.descriptionClassName||"",xi=M.useMemo(()=>m.findIndex(ie=>ie.toastId===d.id)||0,[m,d.id]),Lr=M.useMemo(()=>{var ie;return(ie=d.closeButton)!=null?ie:b},[d.closeButton,b]),tn=M.useMemo(()=>d.duration||Z||nx,[d.duration,Z]),ki=M.useRef(0),vr=M.useRef(0),Zt=M.useRef(0),st=M.useRef(null),[zs,Ti]=$.split("-"),ca=M.useMemo(()=>m.reduce((ie,ve,_e)=>_e>=xi?ie:ie+ve.height,0),[m,xi]),er=GE(),da=d.invert||f,Ci=ht==="loading";vr.current=M.useMemo(()=>xi*ne+ca,[xi,ca]),M.useEffect(()=>{we(!0)},[]),M.useLayoutEffect(()=>{if(!oe)return;let ie=_t.current,ve=ie.style.height;ie.style.height="auto";let _e=ie.getBoundingClientRect().height;ie.style.height=ve,Fs(_e),v(bt=>bt.find(St=>St.toastId===d.id)?bt.map(St=>St.toastId===d.id?{...St,height:_e}:St):[{toastId:d.id,height:_e,position:d.position},...bt])},[oe,d.title,d.description,v,d.id]);let tr=M.useCallback(()=>{de(!0),Be(vr.current),v(ie=>ie.filter(ve=>ve.toastId!==d.id)),setTimeout(()=>{x(d)},ax)},[d,x,v,vr]);M.useEffect(()=>{if(d.promise&&ht==="loading"||d.duration===1/0||d.type==="loading")return;let ie,ve=tn;return S||g||z&&er?(()=>{if(Zt.current<ki.current){let _e=new Date().getTime()-ki.current;ve=ve-_e}Zt.current=new Date().getTime()})():ve!==1/0&&(ki.current=new Date().getTime(),ie=setTimeout(()=>{var _e;(_e=d.onAutoClose)==null||_e.call(d,d),tr()},ve)),()=>clearTimeout(ie)},[S,g,se,d,tn,tr,d.promise,ht,z,er]),M.useEffect(()=>{let ie=_t.current;if(ie){let ve=ie.getBoundingClientRect().height;return Fs(ve),v(_e=>[{toastId:d.id,height:ve,position:d.position},..._e]),()=>v(_e=>_e.filter(bt=>bt.toastId!==d.id))}},[v,d.id]),M.useEffect(()=>{d.delete&&tr()},[tr,d.delete]);function Au(){return D!=null&&D.loading?M.createElement("div",{className:"sonner-loader","data-visible":ht==="loading"},D.loading):X?M.createElement("div",{className:"sonner-loader","data-visible":ht==="loading"},X):M.createElement(WE,{visible:ht==="loading"})}return M.createElement("li",{"aria-live":d.important?"assertive":"polite","aria-atomic":"true",role:"status",tabIndex:0,ref:_t,className:q(W,Ru,T?.toast,(t=d?.classNames)==null?void 0:t.toast,T?.default,T?.[ht],(r=d?.classNames)==null?void 0:r[ht]),"data-sonner-toast":"","data-rich-colors":(n=d.richColors)!=null?n:C,"data-styled":!(d.jsx||d.unstyled||h),"data-mounted":oe,"data-promise":!!d.promise,"data-removed":Te,"data-visible":Pu,"data-y-position":zs,"data-x-position":Ti,"data-index":p,"data-front":Cu,"data-swiping":je,"data-dismissible":en,"data-type":ht,"data-invert":da,"data-swipe-out":Ar,"data-expanded":!!(S||se&&oe),style:{"--index":p,"--toasts-before":p,"--z-index":y.length-p,"--offset":`${Te?Us:vr.current}px`,"--initial-height":se?"auto":`${At}px`,...P,...d.style},onPointerDown:ie=>{Ci||!en||(ua.current=new Date,Be(vr.current),ie.target.setPointerCapture(ie.pointerId),ie.target.tagName!=="BUTTON"&&(Ot(!0),st.current={x:ie.clientX,y:ie.clientY}))},onPointerUp:()=>{var ie,ve,_e,bt;if(Ar||!en)return;st.current=null;let St=Number(((ie=_t.current)==null?void 0:ie.style.getPropertyValue("--swipe-amount").replace("px",""))||0),Pi=new Date().getTime()-((ve=ua.current)==null?void 0:ve.getTime()),fa=Math.abs(St)/Pi;if(Math.abs(St)>=ox||fa>.11){Be(vr.current),(_e=d.onDismiss)==null||_e.call(d,d),tr(),Nr(!0);return}(bt=_t.current)==null||bt.style.setProperty("--swipe-amount","0px"),Ot(!1)},onPointerMove:ie=>{var ve;if(!st.current||!en)return;let _e=ie.clientY-st.current.y,bt=ie.clientX-st.current.x,St=(zs==="top"?Math.min:Math.max)(0,_e),Pi=ie.pointerType==="touch"?10:2;Math.abs(St)>Pi?(ve=_t.current)==null||ve.style.setProperty("--swipe-amount",`${_e}px`):Math.abs(bt)>Pi&&(st.current=null)}},Lr&&!d.jsx?M.createElement("button",{"aria-label":H,"data-disabled":Ci,"data-close-button":!0,onClick:Ci||!en?()=>{}:()=>{var ie;tr(),(ie=d.onDismiss)==null||ie.call(d,d)},className:q(T?.closeButton,(i=d?.classNames)==null?void 0:i.closeButton)},M.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},M.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),M.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"}))):null,d.jsx||M.isValidElement(d.title)?d.jsx||d.title:M.createElement(M.Fragment,null,ht||d.icon||d.promise?M.createElement("div",{"data-icon":"",className:q(T?.icon,(s=d?.classNames)==null?void 0:s.icon)},d.promise||d.type==="loading"&&!d.icon?d.icon||Au():null,d.type!=="loading"?d.icon||D?.[ht]||zE(ht):null):null,M.createElement("div",{"data-content":"",className:q(T?.content,(o=d?.classNames)==null?void 0:o.content)},M.createElement("div",{"data-title":"",className:q(T?.title,(a=d?.classNames)==null?void 0:a.title)},d.title),d.description?M.createElement("div",{"data-description":"",className:q(U,Ou,T?.description,(l=d?.classNames)==null?void 0:l.description)},d.description):null),M.isValidElement(d.cancel)?d.cancel:d.cancel&&$a(d.cancel)?M.createElement("button",{"data-button":!0,"data-cancel":!0,style:d.cancelButtonStyle||j,onClick:ie=>{var ve,_e;$a(d.cancel)&&en&&((_e=(ve=d.cancel).onClick)==null||_e.call(ve,ie),tr())},className:q(T?.cancelButton,(u=d?.classNames)==null?void 0:u.cancelButton)},d.cancel.label):null,M.isValidElement(d.action)?d.action:d.action&&$a(d.action)?M.createElement("button",{"data-button":!0,"data-action":!0,style:d.actionButtonStyle||A,onClick:ie=>{var ve,_e;$a(d.action)&&(ie.defaultPrevented||((_e=(ve=d.action).onClick)==null||_e.call(ve,ie),tr()))},className:q(T?.actionButton,(c=d?.classNames)==null?void 0:c.actionButton)},d.action.label):null))};function Pp(){if(typeof window>"u"||typeof document>"u")return"ltr";let e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}var cx=e=>{let{invert:t,position:r="bottom-right",hotkey:n=["altKey","KeyT"],expand:i,closeButton:s,className:o,offset:a,theme:l="light",richColors:u,duration:c,style:f,visibleToasts:d=tx,toastOptions:h,dir:g=Pp(),gap:v=sx,loadingIcon:_,icons:m,containerAriaLabel:p="Notifications",pauseWhenPageIsHidden:y,cn:S=lx}=e,[x,C]=M.useState([]),b=M.useMemo(()=>Array.from(new Set([r].concat(x.filter(z=>z.position).map(z=>
67z.position)))),[x,r]),[P,j]=M.useState([]),[A,W]=M.useState(!1),[U,Z]=M.useState(!1),[$,ne]=M.useState(l!=="system"?l:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),X=M.useRef(null),se=n.join("+").replace(/Key/g,"").replace(/Digit/g,""),T=M.useRef(null),D=M.useRef(!1),H=M.useCallback(z=>{var q;(q=x.find(oe=>oe.id===z.id))!=null&&q.delete||It.dismiss(z.id),C(oe=>oe.filter(({id:we})=>we!==z.id))},[x]);return M.useEffect(()=>It.subscribe(z=>{if(z.dismiss){C(q=>q.map(oe=>oe.id===z.id?{...oe,delete:!0}:oe));return}setTimeout(()=>{Uf.flushSync(()=>{C(q=>{let oe=q.findIndex(we=>we.id===z.id);return oe!==-1?[...q.slice(0,oe),{...q[oe],...z},...q.slice(oe+1)]:[z,...q]})})})}),[]),M.useEffect(()=>{if(l!=="system"){ne(l);return}l==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?ne("dark"):ne("light")),typeof window<"u"&&window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",({matches:z})=>{ne(z?"dark":"light")})},[l]),M.useEffect(()=>{x.length<=1&&W(!1)},[x]),M.useEffect(()=>{let z=q=>{var oe,we;n.every(Te=>q[Te]||q.code===Te)&&(W(!0),(oe=X.current)==null||oe.focus()),q.code==="Escape"&&(document.activeElement===X.current||(we=X.current)!=null&&we.contains(document.activeElement))&&W(!1)};return document.addEventListener("keydown",z),()=>document.removeEventListener("keydown",z)},[n]),M.useEffect(()=>{if(X.current)return()=>{T.current&&(T.current.focus({preventScroll:!0}),T.current=null,D.current=!1)}},[X.current]),x.length?M.createElement("section",{"aria-label":`${p} ${se}`,tabIndex:-1},b.map((z,q)=>{var oe;let[we,Te]=z.split("-");return M.createElement("ol",{key:z,dir:g==="auto"?Pp():g,tabIndex:-1,ref:X,className:o,"data-sonner-toaster":!0,"data-theme":$,"data-y-position":we,"data-x-position":Te,style:{"--front-toast-height":`${((oe=P[0])==null?void 0:oe.height)||0}px`,"--offset":typeof a=="number"?`${a}px`:a||rx,"--width":`${ix}px`,"--gap":`${v}px`,...f},onBlur:de=>{D.current&&!de.currentTarget.contains(de.relatedTarget)&&(D.current=!1,T.current&&(T.current.focus({preventScroll:!0}),T.current=null))},onFocus:de=>{de.target instanceof HTMLElement&&de.target.dataset.dismissible==="false"||D.current||(D.current=!0,T.current=de.relatedTarget)},onMouseEnter:()=>W(!0),onMouseMove:()=>W(!0),onMouseLeave:()=>{U||W(!1)},onPointerDown:de=>{de.target instanceof HTMLElement&&de.target.dataset.dismissible==="false"||Z(!0)},onPointerUp:()=>Z(!1)},x.filter(de=>!de.position&&q===0||de.position===z).map((de,je)=>{var Ot,Ar;return M.createElement(ux,{key:de.id,icons:m,index:je,toast:de,defaultRichColors:u,duration:(Ot=h?.duration)!=null?Ot:c,className:h?.className,descriptionClassName:h?.descriptionClassName,invert:t,visibleToasts:d,closeButton:(Ar=h?.closeButton)!=null?Ar:s,interacting:U,position:z,style:h?.style,unstyled:h?.unstyled,classNames:h?.classNames,cancelButtonStyle:h?.cancelButtonStyle,actionButtonStyle:h?.actionButtonStyle,removeToast:H,toasts:x.filter(Nr=>Nr.position==de.position),heights:P.filter(Nr=>Nr.position==de.position),setHeights:j,expandByDefault:i,gap:v,loadingIcon:_,expanded:A,pauseWhenPageIsHidden:y,cn:S})}))})):null};const dx=({...e})=>{const{theme:t="system"}=FE();return O.jsx(cx,{theme:t,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...e})};function fx(e,t=[]){let r=[];function n(s,o){const a=w.createContext(o),l=r.length;r=[...r,o];const u=f=>{const{scope:d,children:h,...g}=f,v=d?.[e]?.[l]||a,_=w.useMemo(()=>g,Object.values(g));return O.jsx(v.Provider,{value:_,children:h})};u.displayName=s+"Provider";function c(f,d){const h=d?.[e]?.[l]||a,g=w.useContext(h);if(g)return g;if(o!==void 0)return o;throw new Error(`\`${f}\` must be used within \`${s}\``)}return[u,c]}const i=()=>{const s=r.map(o=>w.createContext(o));return function(a){const l=a?.[e]||s;return w.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return i.scopeName=e,[n,hx(i,...t)]}function hx(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(s){const o=n.reduce((a,{useScope:l,scopeName:u})=>{const f=l(s)[`__scope${u}`];return{...a,...f}},{});return w.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return r.scopeName=t.scopeName,r}var px="DismissableLayer",Sd="dismissableLayer.update",mx="dismissableLayer.pointerDownOutside",gx="dism
67issableLayer.focusOutside",Rp,Gy=w.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Qy=w.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:i,onFocusOutside:s,onInteractOutside:o,onDismiss:a,...l}=e,u=w.useContext(Gy),[c,f]=w.useState(null),d=c?.ownerDocument??globalThis?.document,[,h]=w.useState({}),g=Rt(t,b=>f(b)),v=Array.from(u.layers),[_]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),m=v.indexOf(_),p=c?v.indexOf(c):-1,y=u.layersWithOutsidePointerEventsDisabled.size>0,S=p>=m,x=wx(b=>{const P=b.target,j=[...u.branches].some(A=>A.contains(P));!S||j||(i?.(b),o?.(b),b.defaultPrevented||a?.())},d),C=_x(b=>{const P=b.target;[...u.branches].some(A=>A.contains(P))||(s?.(b),o?.(b),b.defaultPrevented||a?.())},d);return uy(b=>{p===u.layers.size-1&&(n?.(b),!b.defaultPrevented&&a&&(b.preventDefault(),a()))},d),w.useEffect(()=>{if(c)return r&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Rp=d.body.style.pointerEvents,d.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(c)),u.layers.add(c),Op(),()=>{r&&u.layersWithOutsidePointerEventsDisabled.size===1&&(d.body.style.pointerEvents=Rp)}},[c,d,r,u]),w.useEffect(()=>()=>{c&&(u.layers.delete(c),u.layersWithOutsidePointerEventsDisabled.delete(c),Op())},[c,u]),w.useEffect(()=>{const b=()=>h({});return document.addEventListener(Sd,b),()=>document.removeEventListener(Sd,b)},[]),O.jsx(ft.div,{...l,ref:g,style:{pointerEvents:y?S?"auto":"none":void 0,...e.style},onFocusCapture:ze(e.onFocusCapture,C.onFocusCapture),onBlurCapture:ze(e.onBlurCapture,C.onBlurCapture),onPointerDownCapture:ze(e.onPointerDownCapture,x.onPointerDownCapture)})});Qy.displayName=px;var vx="DismissableLayerBranch",yx=w.forwardRef((e,t)=>{const r=w.useContext(Gy),n=w.useRef(null),i=Rt(t,n);return w.useEffect(()=>{const s=n.current;if(s)return r.branches.add(s),()=>{r.branches.delete(s)}},[r.branches]),O.jsx(ft.div,{...e,ref:i})});yx.displayName=vx;function wx(e,t=globalThis?.document){const r=Xt(e),n=w.useRef(!1),i=w.useRef(()=>{});return w.useEffect(()=>{const s=a=>{if(a.target&&!n.current){let l=function(){Jy(mx,r,u,{discrete:!0})};const u={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=l,t.addEventListener("click",i.current,{once:!0})):l()}else t.removeEventListener("click",i.current);n.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",s),t.removeEventListener("click",i.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function _x(e,t=globalThis?.document){const r=Xt(e),n=w.useRef(!1);return w.useEffect(()=>{const i=s=>{s.target&&!n.current&&Jy(gx,r,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function Op(){const e=new CustomEvent(Sd);document.dispatchEvent(e)}function Jy(e,t,r,{discrete:n}){const i=r.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&i.addEventListener(e,t,{once:!0}),n?Ff(i,s):i.dispatchEvent(s)}const bx=["top","right","bottom","left"],Nn=Math.min,$t=Math.max,Dl=Math.round,Ma=Math.floor,Ln=e=>({x:e,y:e}),Sx={left:"right",right:"left",bottom:"top",top:"bottom"},Ex={start:"end",end:"start"};function Ed(e,t,r){return $t(e,Nn(t,r))}function Jr(e,t){return typeof e=="function"?e(t):e}function Yr(e){return e.split("-")[0]}function Ds(e){return e.split("-")[1]}function Vf(e){return e==="x"?"y":"x"}function Kf(e){return e==="y"?"height":"width"}function In(e){return["top","bottom"].includes(Yr(e))?"y":"x"}function qf(e){return Vf(In(e))}function xx(e,t,r){r===void 0&&(r=!1);const n=Ds(e),i=qf(e),s=Kf(i);let o=i==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(o=$l(o)),[o,$l(o)]}function kx(e){const t=$l(e);return[xd(e),t,xd(t)]}function xd(e){return e.replace(/start|end/g,t=>Ex[t])}function Tx(e,t,r){const n=["left","right"],i=["right","left"],s=["top","bottom"],o=["bottom","top"];switch(e){case"top":case"bottom":return r?t?i:n:t?n:i;case"left":case"right":return t?s:o;default:return[]}}function Cx(e,t,r,n){const i=Ds(e);let s=Tx(Yr(e),r==="start",n);return i&&(s=s.map(o=>o+"-"+i),t&&(s=s.concat(s.map(xd)))),s}function $l(e){return e.replace(/left|right|bottom|top/g,t=>Sx[t])}function Px(e){return{top:0,right:0,bottom:0,left:0,...e}}function Yy(e){return typeof e!="number"?Px(e):{top:e,right:e,bottom:e,left:e}}function Ml(e){const{x:t,y:r,width:n,height:i}=e;return{width:n,height:i,top:r,left:t,right:t+n,bottom:r+i,x:t,y:r}}function Ap(e,t,r){let{reference:n,floating:i}=e;const s=In(t),o=qf(t),a=Kf(o),l=Yr(t),u=s==="y",c=n.x+n.width/2-i.width/2,f=n.y+n.height/2-i.height/2,d=n[a]/2-i[a]/2;let h;switch(l){case"top":h={x:c,y:n.y-i.height};break;case"bottom":h={x:c,y:n.y+n.height};break;case"right":h={x:n.x+n.width,y:f};break;case"left":h={x:n.x-i.width,y:f};break;default:h={x:n.x,y:n.y}}switch(Ds(t)){case"start":h[o]-=d*(r&&u?-1:1);break;case"end":h[o]+=d*(r&&u?-1:1);break}return h}const Rx=async(e,t,r)=>{const{placement:n="bottom",strategy:i="absolute",middleware:s=[],platform:o}
vendor: 9,709 bytes, line 67
67=r,a=s.filter(Boolean),l=await(o.isRTL==null?void 0:o.isRTL(t));let u=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:c,y:f}=Ap(u,n,l),d=n,h={},g=0;for(let v=0;v<a.length;v++){const{name:_,fn:m}=a[v],{x:p,y,data:S,reset:x}=await m({x:c,y:f,initialPlacement:n,placement:d,strategy:i,middlewareData:h,rects:u,platform:o,elements:{reference:e,floating:t}});c=p??c,f=y??f,h={...h,[_]:{...h[_],...S}},x&&g<=50&&(g++,typeof x=="object"&&(x.placement&&(d=x.placement),x.rects&&(u=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:c,y:f}=Ap(u,d,l)),v=-1)}return{x:c,y:f,placement:d,strategy:i,middlewareData:h}};async function Fo(e,t){var r;t===void 0&&(t={});const{x:n,y:i,platform:s,rects:o,elements:a,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:f="floating",altBoundary:d=!1,padding:h=0}=Jr(t,e),g=Yy(h),_=a[d?f==="floating"?"reference":"floating":f],m=Ml(await s.getClippingRect({element:(r=await(s.isElement==null?void 0:s.isElement(_)))==null||r?_:_.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:u,rootBoundary:c,strategy:l})),p=f==="floating"?{x:n,y:i,width:o.floating.width,height:o.floating.height}:o.reference,y=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),S=await(s.isElement==null?void 0:s.isElement(y))?await(s.getScale==null?void 0:s.getScale(y))||{x:1,y:1}:{x:1,y:1},x=Ml(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:p,offsetParent:y,strategy:l}):p);return{top:(m.top-x.top+g.top)/S.y,bottom:(x.bottom-m.bottom+g.bottom)/S.y,left:(m.left-x.left+g.left)/S.x,right:(x.right-m.right+g.right)/S.x}}const Ox=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:i,rects:s,platform:o,elements:a,middlewareData:l}=t,{element:u,padding:c=0}=Jr(e,t)||{};if(u==null)return{};const f=Yy(c),d={x:r,y:n},h=qf(i),g=Kf(h),v=await o.getDimensions(u),_=h==="y",m=_?"top":"left",p=_?"bottom":"right",y=_?"clientHeight":"clientWidth",S=s.reference[g]+s.reference[h]-d[h]-s.floating[g],x=d[h]-s.reference[h],C=await(o.getOffsetParent==null?void 0:o.getOffsetParent(u));let b=C?C[y]:0;(!b||!await(o.isElement==null?void 0:o.isElement(C)))&&(b=a.floating[y]||s.floating[g]);const P=S/2-x/2,j=b/2-v[g]/2-1,A=Nn(f[m],j),W=Nn(f[p],j),U=A,Z=b-v[g]-W,$=b/2-v[g]/2+P,ne=Ed(U,$,Z),X=!l.arrow&&Ds(i)!=null&&$!==ne&&s.reference[g]/2-($<U?A:W)-v[g]/2<0,se=X?$<U?$-U:$-Z:0;return{[h]:d[h]+se,data:{[h]:ne,centerOffset:$-ne-se,...X&&{alignmentOffset:se}},reset:X}}}),Ax=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:i,middlewareData:s,rects:o,initialPlacement:a,platform:l,elements:u}=t,{mainAxis:c=!0,crossAxis:f=!0,fallbackPlacements:d,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:v=!0,..._}=Jr(e,t);if((r=s.arrow)!=null&&r.alignmentOffset)return{};const m=Yr(i),p=In(a),y=Yr(a)===a,S=await(l.isRTL==null?void 0:l.isRTL(u.floating)),x=d||(y||!v?[$l(a)]:kx(a)),C=g!=="none";!d&&C&&x.push(...Cx(a,v,g,S));const b=[a,...x],P=await Fo(t,_),j=[];let A=((n=s.flip)==null?void 0:n.overflows)||[];if(c&&j.push(P[m]),f){const $=xx(i,o,S);j.push(P[$[0]],P[$[1]])}if(A=[...A,{placement:i,overflows:j}],!j.every($=>$<=0)){var W,U;const $=(((W=s.flip)==null?void 0:W.index)||0)+1,ne=b[$];if(ne)return{data:{index:$,overflows:A},reset:{placement:ne}};let X=(U=A.filter(se=>se.overflows[0]<=0).sort((se,T)=>se.overflows[1]-T.overflows[1])[0])==null?void 0:U.placement;if(!X)switch(h){case"bestFit":{var Z;const se=(Z=A.filter(T=>{if(C){const D=In(T.placement);return D===p||D==="y"}return!0}).map(T=>[T.placement,T.overflows.filter(D=>D>0).reduce((D,H)=>D+H,0)]).sort((T,D)=>T[1]-D[1])[0])==null?void 0:Z[0];se&&(X=se);break}case"initialPlacement":X=a;break}if(i!==X)return{reset:{placement:X}}}return{}}}};function Np(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Lp(e){return bx.some(t=>e[t]>=0)}const Nx=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...i}=Jr(e,t);switch(n){case"referenceHidden":{const s=await Fo(t,{...i,elementContext:"reference"}),o=Np(s,r.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:Lp(o)}}}case"escaped":{const s=await Fo(t,{...i,altBoundary:!0}),o=Np(s,r.floating);return{data:{escapedOffsets:o,escaped:Lp(o)}}}default:return{}}}}};async function Lx(e,t){const{placement:r,platform:n,elements:i}=e,s=await(n.isRTL==null?void 0:n.isRTL(i.floating)),o=Yr(r),a=Ds(r),l=In(r)==="y",u=["left","top"].includes(o)?-1:1,c=s&&l?-1:1,f=Jr(t,e);let{mainAxis:d,crossAxis:h,alignmentAxis:g}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return a&&typeof g=="number"&&(h=a==="end"?g*-1:g),l?{x:h*c,y:d*u}:{x:d*u,y:h*c}}const Ix=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:i,y:s,placement:o,middlewareData:a}=t,l=await Lx(t,e);return o===((r=a.offset)==null?void 0:r.placement)&&(n=a.arrow)!=null&&n.alignmentOffset?{}:{x:i+l.x,y:s+l.y,data:{...l,placement:o}}}}},jx=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:i}=t,{mainAxis:s=!0,crossAxis:o=!1,limiter:a={fn:_=>{let{x:m,y:p}=_;return{x:m,y:p}}},...l}=Jr(e,t),u={x:r,y:n},c=await Fo(t,l),f=In(Yr(i)),d=Vf(f);let h=u[d],g=u[f];if(s){const _=d==="y"?"top":"left",m=d==="y"?"bottom":"right",p=h+c[_],y=h-c[m];h=Ed(p,h,y)}if(o){const _=f==="y"?"top":"left",m=f==="y"?"bottom":"right",p=g+c[_],y=g-c[m];g=Ed(p,g,y)}const v=a.fn({...t,[d]:h,[f]:g});return{...v,data:{x:v.x-r,y:v.y-n,enabled:{[d]:s,[f]:o}}}}}},Dx=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:i,rects:s,middlewareData:o}=t,{offset:a=0,mainAxis:l=!0,crossAxis:u=!0}=Jr(e,t),c={x:r,y:n},f=In(i),d=Vf(f);let h=c[d],g=c[f];const v=Jr(a,t),_=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(l){const y=d==="y"?"height":"width",S=s.reference[d]-s.floating[y]+_.mainAxis,x=s.reference[d]+s.reference[y]-_.mainAxis;h<S?h=S:h>x&&(h=x)}if(u){var m,p;const y=d==="y"?"width":"height",S=["top","left"].includes(Yr(i)),x=s.reference[f]-s.floating[y]+(S&&((m=o.offset)==null?void 0:m[f])||0)+(S?0:_.crossAxis),C=s.reference[f]+s.reference[y]+(S?0:((p=o.offset)==null?void 0:p[f])||0)-(S?_.crossAxis:0);g<x?g=x:g>C&&(g=C)}return{[d]:h,[f]:g}}}},$x=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:i,rects:s,platform:o,elements:a}=t,{apply:l=()=>{},...u}=Jr(e,t),c=await Fo(t,u),f=Yr(i),d=Ds(i),h=In(i)==="y",{width:g,height:v}=s.floating;let _,m;f==="top"||f==="bottom"?(_=f,m=d===(await(o.isRTL==null?void 0:o.isRTL(a.floating))?"start":"end")?"left":"right"):(m=f,_=d==="end"?"top":"bottom");const p=v-c.top-c.bottom,y=g-c.left-c.right,S=Nn(v-c[_],p),x=Nn(g-c[m],y),C=!t.middlewareData.shift;let b=S,P=x;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(P=y),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(b=p),C&&!d){const A=$t(c.left,0),W=$t(c.right,0),U=$t(c.top,0),Z=$t(c.bottom,0);h?P=g-2*(A!==0||W!==0?A+W:$t(c.left,c.right)):b=v-2*(U!==0||Z!==0?U+Z:$t(c.top,c.bottom))}await l({...t,availableWidth:P,availableHeight:b});const j=await o.getDimensions(a.floating);return g!==j.width||v!==j.height?{reset:{rects:!0}}:{}}}};function fu(){return typeof window<"u"}function $s(e){return Xy(e)?(e.nodeName||"").toLowerCase():"#document"}function zt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Pr(e){var t;return(t=(Xy(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Xy(e){return fu()?e instanceof Node||e instanceof zt(e).Node:!1}function mr(e){return fu()?e instanceof Element||e instanceof zt(e).Element:!1}function Cr(e){return fu()?e instanceof HTMLElement||e instanceof zt(e).HTMLElement:!1}function Ip(e){return!fu()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof zt(e).ShadowRoot}function aa(e){const{overflow:t,overflowX:r,overflowY:n,display:i}=gr(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!["inline","contents"].includes(i)}function Mx(e){return["table","td","th"].includes($s(e))}function hu(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Gf(e){const t=Qf(),r=mr(e)?gr(e):e;return r.transform!=="none"||r.perspective!=="none"||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||["transform","perspective","filter"].some(n=>(r.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(r.contain||"").includes(n))}function Ux(e){let t=jn(e);for(;Cr(t)&&!Rs(t);){if(Gf(t))return t;if(hu(t))return null;t=jn(t)}return null}function Qf(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Rs(e){return["html","body","#document"].includes($s(e))}function gr(e){return zt(e).getComputedStyle(e)}function pu(e){return mr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function jn(e){if($s(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Ip(e)&&e.host||Pr(e);return Ip(t)?t.host:t}function Zy(e){const t=jn(e);return Rs(t)?e.ownerDocument?e.ownerDocument.body:e.body:Cr(t)&&aa(t)?t:Zy(t)}function zo(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const i=Zy(e),s=i===((n=e.ownerDocument)==null?void 0:n.body),o=zt(i);if(s){const a=kd(o);
vendor: 6,192 bytes, line 67
67return t.concat(o,o.visualViewport||[],aa(i)?i:[],a&&r?zo(a):[])}return t.concat(i,zo(i,[],r))}function kd(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function e0(e){const t=gr(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const i=Cr(e),s=i?e.offsetWidth:r,o=i?e.offsetHeight:n,a=Dl(r)!==s||Dl(n)!==o;return a&&(r=s,n=o),{width:r,height:n,$:a}}function Jf(e){return mr(e)?e:e.contextElement}function ds(e){const t=Jf(e);if(!Cr(t))return Ln(1);const r=t.getBoundingClientRect(),{width:n,height:i,$:s}=e0(t);let o=(s?Dl(r.width):r.width)/n,a=(s?Dl(r.height):r.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}const Fx=Ln(0);function t0(e){const t=zt(e);return!Qf()||!t.visualViewport?Fx:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function zx(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==zt(e)?!1:t}function gi(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const i=e.getBoundingClientRect(),s=Jf(e);let o=Ln(1);t&&(n?mr(n)&&(o=ds(n)):o=ds(e));const a=zx(s,r,n)?t0(s):Ln(0);let l=(i.left+a.x)/o.x,u=(i.top+a.y)/o.y,c=i.width/o.x,f=i.height/o.y;if(s){const d=zt(s),h=n&&mr(n)?zt(n):n;let g=d,v=kd(g);for(;v&&n&&h!==g;){const _=ds(v),m=v.getBoundingClientRect(),p=gr(v),y=m.left+(v.clientLeft+parseFloat(p.paddingLeft))*_.x,S=m.top+(v.clientTop+parseFloat(p.paddingTop))*_.y;l*=_.x,u*=_.y,c*=_.x,f*=_.y,l+=y,u+=S,g=zt(v),v=kd(g)}}return Ml({width:c,height:f,x:l,y:u})}function Bx(e){let{elements:t,rect:r,offsetParent:n,strategy:i}=e;const s=i==="fixed",o=Pr(n),a=t?hu(t.floating):!1;if(n===o||a&&s)return r;let l={scrollLeft:0,scrollTop:0},u=Ln(1);const c=Ln(0),f=Cr(n);if((f||!f&&!s)&&(($s(n)!=="body"||aa(o))&&(l=pu(n)),Cr(n))){const d=gi(n);u=ds(n),c.x=d.x+n.clientLeft,c.y=d.y+n.clientTop}return{width:r.width*u.x,height:r.height*u.y,x:r.x*u.x-l.scrollLeft*u.x+c.x,y:r.y*u.y-l.scrollTop*u.y+c.y}}function Wx(e){return Array.from(e.getClientRects())}function Td(e,t){const r=pu(e).scrollLeft;return t?t.left+r:gi(Pr(e)).left+r}function Hx(e){const t=Pr(e),r=pu(e),n=e.ownerDocument.body,i=$t(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),s=$t(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let o=-r.scrollLeft+Td(e);const a=-r.scrollTop;return gr(n).direction==="rtl"&&(o+=$t(t.clientWidth,n.clientWidth)-i),{width:i,height:s,x:o,y:a}}function Vx(e,t){const r=zt(e),n=Pr(e),i=r.visualViewport;let s=n.clientWidth,o=n.clientHeight,a=0,l=0;if(i){s=i.width,o=i.height;const u=Qf();(!u||u&&t==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}return{width:s,height:o,x:a,y:l}}function Kx(e,t){const r=gi(e,!0,t==="fixed"),n=r.top+e.clientTop,i=r.left+e.clientLeft,s=Cr(e)?ds(e):Ln(1),o=e.clientWidth*s.x,a=e.clientHeight*s.y,l=i*s.x,u=n*s.y;return{width:o,height:a,x:l,y:u}}function jp(e,t,r){let n;if(t==="viewport")n=Vx(e,r);else if(t==="document")n=Hx(Pr(e));else if(mr(t))n=Kx(t,r);else{const i=t0(e);n={...t,x:t.x-i.x,y:t.y-i.y}}return Ml(n)}function r0(e,t){const r=jn(e);return r===t||!mr(r)||Rs(r)?!1:gr(r).position==="fixed"||r0(r,t)}function qx(e,t){const r=t.get(e);if(r)return r;let n=zo(e,[],!1).filter(a=>mr(a)&&$s(a)!=="body"),i=null;const s=gr(e).position==="fixed";let o=s?jn(e):e;for(;mr(o)&&!Rs(o);){const a=gr(o),l=Gf(o);!l&&a.position==="fixed"&&(i=null),(s?!l&&!i:!l&&a.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||aa(o)&&!l&&r0(e,o))?n=n.filter(c=>c!==o):i=a,o=jn(o)}return t.set(e,n),n}function Gx(e){let{element:t,boundary:r,rootBoundary:n,strategy:i}=e;const o=[...r==="clippingAncestors"?hu(t)?[]:qx(t,this._c):[].concat(r),n],a=o[0],l=o.reduce((u,c)=>{const f=jp(t,c,i);return u.top=$t(f.top,u.top),u.right=Nn(f.right,u.right),u.bottom=Nn(f.bottom,u.bottom),u.left=$t(f.left,u.left),u},jp(t,a,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function Qx(e){const{width:t,height:r}=e0(e);return{width:t,height:r}}function Jx(e,t,r){const n=Cr(t),i=Pr(t),s=r==="fixed",o=gi(e,!0,s,t);let a={scrollLeft:0,scrollTop:0};const l=Ln(0);if(n||!n&&!s)if(($s(t)!=="body"||aa(i))&&(a=pu(t)),n){const h=gi(t,!0,s,t);l.x=h.x+t.clientLeft,l.y=h.y+t.clientTop}else i&&(l.x=Td(i));let u=0,c=0;if(i&&!n&&!s){const h=i.getBoundingClientRect();c=h.top+a.scrollTop,u=h.left+a.scrollLeft-Td(i,h)}const f=o.left+a.scrollLeft-l.x-u,d=o.top+a.scrollTop-l.y-c;return{x:f,y:d,width:o.width,height:o.height}}function cc(e){return gr(e).position==="static"}function Dp(e,t){if(!Cr(e)||gr(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return Pr(e)===r&&(r=r.ownerDocument.body),r}function n0(e,t){const r=zt(e);if(hu(e))return r;if(!Cr(e)){let i=jn(e);for(;i&&!Rs(i);){if(mr(i)&&!cc(i))return i;i=jn(i)}return r}let n=Dp(e,t);for(;n&&Mx(n)&&cc(n);)n=Dp(n,t);return n&&Rs(n)&&cc(n)&&!Gf(n)?r:n||Ux(e)||r}const Yx=async function(e){const t=this.getOffsetParent||n0,r=this.getDimensions,n=await r(e.floating);return{reference:Jx(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function Xx(e){return gr(e).direction==="rtl"}const Zx={convertOffsetParentRelativeRectToViewportRelativeRect:Bx,getDocumentElement:Pr,getClippingRect:Gx,getOffsetParent:n0,getElementRects:Yx,getClientRects:Wx,getDimensions:Qx,getScale:ds,isElement:mr,isRTL:Xx};function e1(e,t){let r=null,n;const i=Pr(e);function s(){var a;clearTimeout(n),(a=r)==null||a.disconnect(),r=null}function o(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),s();const{left:u,top:c,width:f,height:d}=e.getBoundingClientRect();if(a||t(),!f||!d)return;const h=Ma(c),g=Ma(i.clientWidth-(u+f)),v=Ma(i.clientHeight-(c+d)),_=Ma(u),p={rootMargin:-h+"px "+-g+"px "+-v+"px "+-_+"px",threshold:$t(0,Nn(1,l))||1};let y=!0;function S(x){const C=x[0].intersectionRatio;if(C!==l){if(!y)return o();C?o(!1,C):n=setTimeout(()=>{o(!1,1e-7)},1e3)}y=!1}try{r=new IntersectionObserver(S,{...p,root:i.ownerDocument})}catch{r=new IntersectionObserver(S,p)}r.observe(e)}return o(!0),s}function t1(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=n,u=Jf(e),c=i||s?[...u?zo(u):[],...zo(t)]:[];
vendor: 5,593 bytes, line 67
67c.forEach(m=>{i&&m.addEventListener("scroll",r,{passive:!0}),s&&m.addEventListener("resize",r)});const f=u&&a?e1(u,r):null;let d=-1,h=null;o&&(h=new ResizeObserver(m=>{let[p]=m;p&&p.target===u&&h&&(h.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var y;(y=h)==null||y.observe(t)})),r()}),u&&!l&&h.observe(u),h.observe(t));let g,v=l?gi(e):null;l&&_();function _(){const m=gi(e);v&&(m.x!==v.x||m.y!==v.y||m.width!==v.width||m.height!==v.height)&&r(),v=m,g=requestAnimationFrame(_)}return r(),()=>{var m;c.forEach(p=>{i&&p.removeEventListener("scroll",r),s&&p.removeEventListener("resize",r)}),f?.(),(m=h)==null||m.disconnect(),h=null,l&&cancelAnimationFrame(g)}}const r1=Ix,n1=jx,i1=Ax,s1=$x,o1=Nx,$p=Ox,a1=Dx,l1=(e,t,r)=>{const n=new Map,i={platform:Zx,...r},s={...i.platform,_c:n};return Rx(e,t,{...i,platform:s})};var ul=typeof document<"u"?w.useLayoutEffect:w.useEffect;function Ul(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,n,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;n--!==0;)if(!Ul(e[n],t[n]))return!1;return!0}if(i=Object.keys(e),r=i.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(t,i[n]))return!1;for(n=r;n--!==0;){const s=i[n];if(!(s==="_owner"&&e.$$typeof)&&!Ul(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function i0(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Mp(e,t){const r=i0(e);return Math.round(t*r)/r}function dc(e){const t=w.useRef(e);return ul(()=>{t.current=e}),t}function u1(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:i,elements:{reference:s,floating:o}={},transform:a=!0,whileElementsMounted:l,open:u}=e,[c,f]=w.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[d,h]=w.useState(n);Ul(d,n)||h(n);const[g,v]=w.useState(null),[_,m]=w.useState(null),p=w.useCallback(T=>{T!==C.current&&(C.current=T,v(T))},[]),y=w.useCallback(T=>{T!==b.current&&(b.current=T,m(T))},[]),S=s||g,x=o||_,C=w.useRef(null),b=w.useRef(null),P=w.useRef(c),j=l!=null,A=dc(l),W=dc(i),U=dc(u),Z=w.useCallback(()=>{if(!C.current||!b.current)return;const T={placement:t,strategy:r,middleware:d};W.current&&(T.platform=W.current),l1(C.current,b.current,T).then(D=>{const H={...D,isPositioned:U.current!==!1};$.current&&!Ul(P.current,H)&&(P.current=H,_i.flushSync(()=>{f(H)}))})},[d,t,r,W,U]);ul(()=>{u===!1&&P.current.isPositioned&&(P.current.isPositioned=!1,f(T=>({...T,isPositioned:!1})))},[u]);const $=w.useRef(!1);ul(()=>($.current=!0,()=>{$.current=!1}),[]),ul(()=>{if(S&&(C.current=S),x&&(b.current=x),S&&x){if(A.current)return A.current(S,x,Z);Z()}},[S,x,Z,A,j]);const ne=w.useMemo(()=>({reference:C,floating:b,setReference:p,setFloating:y}),[p,y]),X=w.useMemo(()=>({reference:S,floating:x}),[S,x]),se=w.useMemo(()=>{const T={position:r,left:0,top:0};if(!X.floating)return T;const D=Mp(X.floating,c.x),H=Mp(X.floating,c.y);return a?{...T,transform:"translate("+D+"px, "+H+"px)",...i0(X.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:D,top:H}},[r,a,X.floating,c.x,c.y]);return w.useMemo(()=>({...c,update:Z,refs:ne,elements:X,floatingStyles:se}),[c,Z,ne,X,se])}const c1=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:n,padding:i}=typeof e=="function"?e(r):e;return n&&t(n)?n.current!=null?$p({element:n.current,padding:i}).fn(r):{}:n?$p({element:n,padding:i}).fn(r):{}}}},d1=(e,t)=>({...r1(e),options:[e,t]}),f1=(e,t)=>({...n1(e),options:[e,t]}),h1=(e,t)=>({...a1(e),options:[e,t]}),p1=(e,t)=>({...i1(e),options:[e,t]}),m1=(e,t)=>({...s1(e),options:[e,t]}),g1=(e,t)=>({...o1(e),options:[e,t]}),v1=(e,t)=>({...c1(e),options:[e,t]});var y1="Arrow",s0=w.forwardRef((e,t)=>{const{children:r,width:n=10,height:i=5,...s}=e;return O.jsx(ft.svg,{...s,ref:t,width:n,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:O.jsx("polygon",{points:"0,0 30,0 15,10"})})});s0.displayName=y1;var w1=s0;function _1(e,t=[]){let r=[];function n(s,o){const a=w.createContext(o),l=r.length;r=[...r,o];function u(f){const{scope:d,children:h,...g}=f,v=d?.[e][l]||a,_=w.useMemo(()=>g,Object.values(g));return O.jsx(v.Provider,{value:_,children:h})}function c(f,d){const h=d?.[e][l]||a,g=w.useContext(h);if(g)return g;if(o!==void 0)return o;throw new Error(`\`${f}\` must be used within \`${s}\``)}return u.displayName=s+"Provider",[u,c]}const i=()=>{const s=r.map(o=>w.createContext(o));return function(a){const l=a?.[e]||s;return w.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return i.scopeName=e,[n,b1(i,...t)]}function b1(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(s){const o=n.reduce((a,{useScope:l,scopeName:u})=>{const f=l(s)[`__scope${u}`];return{...a,...f}},{});return w.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return r.scopeName=t.scopeName,r}function S1(e){const[t,r]=w.useState(void 0);return Qr(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const s=i[0];let o,a;if("borderBoxSize"in s){const l=s.borderBoxSize,u=Array.isArray(l)?l[0]:l;o=u.inlineSize,a=u.blockSize}else o=e.offsetWidth,a=e.offsetHeight;r({width:o,height:a})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}var o0="Popper",[a0,l0]=_1(o0),[HR,u0]=a0(o0),c0="PopperAnchor",d0=w.forwardRef((e,t)=>
vendor: 8,641 bytes, line 67
67{const{__scopePopper:r,virtualRef:n,...i}=e,s=u0(c0,r),o=w.useRef(null),a=Rt(t,o);return w.useEffect(()=>{s.onAnchorChange(n?.current||o.current)}),n?null:O.jsx(ft.div,{...i,ref:a})});d0.displayName=c0;var Yf="PopperContent",[E1,x1]=a0(Yf),f0=w.forwardRef((e,t)=>{const{__scopePopper:r,side:n="bottom",sideOffset:i=0,align:s="center",alignOffset:o=0,arrowPadding:a=0,avoidCollisions:l=!0,collisionBoundary:u=[],collisionPadding:c=0,sticky:f="partial",hideWhenDetached:d=!1,updatePositionStrategy:h="optimized",onPlaced:g,...v}=e,_=u0(Yf,r),[m,p]=w.useState(null),y=Rt(t,je=>p(je)),[S,x]=w.useState(null),C=S1(S),b=C?.width??0,P=C?.height??0,j=n+(s!=="center"?"-"+s:""),A=typeof c=="number"?c:{top:0,right:0,bottom:0,left:0,...c},W=Array.isArray(u)?u:[u],U=W.length>0,Z={padding:A,boundary:W.filter(T1),altBoundary:U},{refs:$,floatingStyles:ne,placement:X,isPositioned:se,middlewareData:T}=u1({strategy:"fixed",placement:j,whileElementsMounted:(...je)=>t1(...je,{animationFrame:h==="always"}),elements:{reference:_.anchor},middleware:[d1({mainAxis:i+P,alignmentAxis:o}),l&&f1({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?h1():void 0,...Z}),l&&p1({...Z}),m1({...Z,apply:({elements:je,rects:Ot,availableWidth:Ar,availableHeight:Nr})=>{const{width:Us,height:Be}=Ot.reference,At=je.floating.style;At.setProperty("--radix-popper-available-width",`${Ar}px`),At.setProperty("--radix-popper-available-height",`${Nr}px`),At.setProperty("--radix-popper-anchor-width",`${Us}px`),At.setProperty("--radix-popper-anchor-height",`${Be}px`)}}),S&&v1({element:S,padding:a}),C1({arrowWidth:b,arrowHeight:P}),d&&g1({strategy:"referenceHidden",...Z})]}),[D,H]=m0(X),z=Xt(g);Qr(()=>{se&&z?.()},[se,z]);const q=T.arrow?.x,oe=T.arrow?.y,we=T.arrow?.centerOffset!==0,[Te,de]=w.useState();return Qr(()=>{m&&de(window.getComputedStyle(m).zIndex)},[m]),O.jsx("div",{ref:$.setFloating,"data-radix-popper-content-wrapper":"",style:{...ne,transform:se?ne.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Te,"--radix-popper-transform-origin":[T.transformOrigin?.x,T.transformOrigin?.y].join(" "),...T.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:O.jsx(E1,{scope:r,placedSide:D,onArrowChange:x,arrowX:q,arrowY:oe,shouldHideArrow:we,children:O.jsx(ft.div,{"data-side":D,"data-align":H,...v,ref:y,style:{...v.style,animation:se?void 0:"none"}})})})});f0.displayName=Yf;var h0="PopperArrow",k1={top:"bottom",right:"left",bottom:"top",left:"right"},p0=w.forwardRef(function(t,r){const{__scopePopper:n,...i}=t,s=x1(h0,n),o=k1[s.placedSide];return O.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:O.jsx(w1,{...i,ref:r,style:{...i.style,display:"block"}})})});p0.displayName=h0;function T1(e){return e!==null}var C1=e=>({name:"transformOrigin",options:e,fn(t){const{placement:r,rects:n,middlewareData:i}=t,o=i.arrow?.centerOffset!==0,a=o?0:e.arrowWidth,l=o?0:e.arrowHeight,[u,c]=m0(r),f={start:"0%",center:"50%",end:"100%"}[c],d=(i.arrow?.x??0)+a/2,h=(i.arrow?.y??0)+l/2;let g="",v="";return u==="bottom"?(g=o?f:`${d}px`,v=`${-l}px`):u==="top"?(g=o?f:`${d}px`,v=`${n.floating.height+l}px`):u==="right"?(g=`${-l}px`,v=o?f:`${h}px`):u==="left"&&(g=`${n.floating.width+l}px`,v=o?f:`${h}px`),{data:{x:g,y:v}}}});function m0(e){const[t,r="center"]=e.split("-");return[t,r]}var P1=d0,R1=f0,O1=p0;function A1(e,t){return w.useReducer((r,n)=>t[r][n]??r,e)}var g0=e=>{const{present:t,children:r}=e,n=N1(t),i=typeof r=="function"?r({present:n.isPresent}):w.Children.only(r),s=Rt(n.ref,L1(i));return typeof r=="function"||n.isPresent?w.cloneElement(i,{ref:s}):null};g0.displayName="Presence";function N1(e){const[t,r]=w.useState(),n=w.useRef({}),i=w.useRef(e),s=w.useRef("none"),o=e?"mounted":"unmounted",[a,l]=A1(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return w.useEffect(()=>{const u=Ua(n.current);s.current=a==="mounted"?u:"none"},[a]),Qr(()=>{const u=n.current,c=i.current;if(c!==e){const d=s.current,h=Ua(u);e?l("MOUNT"):h==="none"||u?.display==="none"?l("UNMOUNT"):l(c&&d!==h?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,l]),Qr(()=>{if(t){let u;const c=t.ownerDocument.defaultView??window,f=h=>{const v=Ua(n.current).includes(h.animationName);if(h.target===t&&v&&(l("ANIMATION_END"),!i.current)){const _=t.style.animationFillMode;t.style.animationFillMode="forwards",u=c.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=_)})}},d=h=>{h.target===t&&(s.current=Ua(n.current))};return t.addEventListener("animationstart",d),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{c.clearTimeout(u),t.removeEventListener("animationstart",d),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:w.useCallback(u=>{u&&(n.current=getComputedStyle(u)),r(u)},[])}}function Ua(e){return e?.animationName||"none"}function L1(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var[mu,VR]=fx("Tooltip",[l0]),Xf=l0(),v0="TooltipProvider",I1=700,Up="tooltip.open",[j1,y0]=mu(v0),w0=e=>{const{__scopeTooltip:t,delayDuration:r=I1,skipDelayDuration:n=300,disableHoverableContent:i=!1,children:s}=e,[o,a]=w.useState(!0),l=w.useRef(!1),u=w.useRef(0);return w.useEffect(()=>{const c=u.current;return()=>window.clearTimeout(c)},[]),O.jsx(j1,{scope:t,isOpenDelayed:o,delayDuration:r,onOpen:w.useCallback(()=>{window.clearTimeout(u.current),a(!1)},[]),onClose:w.useCallback(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>a(!0),n)},[n]),isPointerInTransitRef:l,onPointerInTransitChange:w.useCallback(c=>{l.current=c},[]),disableHoverableContent:i,children:s})};w0.displayName=v0;var _0="Tooltip",[KR,gu]=mu(_0),Cd="TooltipTrigger",D1=w.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,i=gu(Cd,r),s=y0(Cd,r),o=Xf(r),a=w.useRef(null),l=Rt(t,a,i.onTriggerChange),u=w.useRef(!1),c=w.useRef(!1),f=w.useCallback(()=>u.current=!1,[]);return w.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),O.jsx(P1,{asChild:!0,...o,children:O.jsx(ft.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...n,ref:l,onPointerMove:ze(e.onPointerMove,d=>{d.pointerType!=="touch"&&!c.current&&!s.isPointerInTransitRef.current&&(i.onTriggerEnter(),c.current=!0)}),onPointerLeave:ze(e.onPointerLeave,()=>{i.onTriggerLeave(),c.current=!1}),onPointerDown:ze(e.onPointerDown,()=>{u.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:ze(e.onFocus,()=>{u.current||i.onOpen()}),onBlur:ze(e.onBlur,i.onClose),onClick:ze(e.onClick,i.onClose)})})});D1.displayName=Cd;var $1="TooltipPortal",[qR,M1]=mu($1,{forceMount:void 0}),Os="TooltipContent",b0=w.forwardRef((e,t)=>{const r=M1(Os,e.__scopeTooltip),{forceMount:n=r.forceMount,side:i="top",...s}=e,o=gu(Os,e.__scopeTooltip);return O.jsx(g0,{present:n||o.open,children:o.disableHoverableContent?O.jsx(S0,{side:i,...s,ref:t}):O.jsx(U1,{side:i,...s,ref:t})})}),U1=w.forwardRef((e,t)=>{const r=gu(Os,e.__scopeTooltip),n=y0(Os,e.__scopeTooltip),i=w.useRef(null),s=Rt(t,i),[o,a]=w.useState(null),{trigger:l,onClose:u}=r,c=i.current,{onPointerInTransitChange:f}=n,d=w.useCallback(()=>{a(null),f(!1)},[f]),h=w.useCallback((g,v)=>{const _=g.currentTarget,m={x:g.clientX,y:g.clientY},p=W1(m,_.getBoundingClientRect()),y=H1(m,p),S=V1(v.getBoundingClientRect()),x=q1([...y,...S]);a(x),f(!0)},[f]);return w.useEffect(()=>()=>d(),[d]),w.useEffect(()=>{if(l&&c){const g=_=>h(_,c),v=_=>h(_,l);return l.addEventListener("pointerleave",g),c.addEventListener("pointerleave",v),()=>{l.removeEventListener("pointerleave",g),c.removeEventListener("pointerleave",v)}}},[l,c,h,d]),w.useEffect(()=>{if(o){const g=v=>{const _=v.target,m={x:v.clientX,y:v.clientY},p=l?.contains(_)||c?.contains(_),y=!K1(m,o);p?d():y&&(d(),u())};return document.addEventListener("pointermove",g),()=>document.removeEventListener("pointermove",g)}},[l,c,o,u,d]),O.jsx(S0,{...e,ref:s})}),[F1,z1]=mu(_0,{isInside:!1}),S0=w.forwardRef((e,t)=>
67{const{__scopeTooltip:r,children:n,"aria-label":i,onEscapeKeyDown:s,onPointerDownOutside:o,...a}=e,l=gu(Os,r),u=Xf(r),{onClose:c}=l;return w.useEffect(()=>(document.addEventListener(Up,c),()=>document.removeEventListener(Up,c)),[c]),w.useEffect(()=>{if(l.trigger){const f=d=>{d.target?.contains(l.trigger)&&c()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[l.trigger,c]),O.jsx(Qy,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:o,onFocusOutside:f=>f.preventDefault(),onDismiss:c,children:O.jsxs(R1,{"data-state":l.stateAttribute,...u,...a,ref:t,style:{...a.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[O.jsx(ly,{children:n}),O.jsx(F1,{scope:r,isInside:!0,children:O.jsx(OS,{id:l.contentId,role:"tooltip",children:i||n})})]})})});b0.displayName=Os;var E0="TooltipArrow",B1=w.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,i=Xf(r);return z1(E0,r).isInside?null:O.jsx(O1,{...i,...n,ref:t})});B1.displayName=E0;function W1(e,t){const r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(r,n,i,s)){case s:return"left";case i:return"right";case r:return"top";case n:return"bottom";default:throw new Error("unreachable")}}function H1(e,t,r=5){const n=[];switch(t){case"top":n.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":n.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":n.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":n.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r});break}return n}function V1(e){const{top:t,right:r,bottom:n,left:i}=e;return[{x:i,y:t},{x:r,y:t},{x:r,y:n},{x:i,y:n}]}function K1(e,t){const{x:r,y:n}=e;let i=!1;for(let s=0,o=t.length-1;s<t.length;o=s++){const a=t[s].x,l=t[s].y,u=t[o].x,c=t[o].y;l>n!=c>n&&r<(u-a)*(n-l)/(c-l)+a&&(i=!i)}return i}function q1(e){const t=e.slice();return t.sort((r,n)=>r.x<n.x?-1:r.x>n.x?1:r.y<n.y?-1:r.y>n.y?1:0),G1(t)}function G1(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const i=e[n];for(;t.length>=2;){const s=t[t.length-1],o=t[t.length-2];if((s.x-o.x)*(i.y-o.y)>=(s.y-o.y)*(i.x-o.x))t.pop();else break}t.push(i)}t.pop();const r=[];for(let n=e.length-1;n>=0;n--){const i=e[n];for(;r.length>=2;){const s=r[r.length-1],o=r[r.length-2];if((s.x-o.x)*(i.y-o.y)>=(s.y-o.y)*(i.x-o.x))r.pop();else break}r.push(i)}return r.pop(),t.length===1&&r.length===1&&t[0].x===r[0].x&&t[0].y===r[0].y?t:t.concat(r)}var Q1=w0,x0=b0;const J1=Q1,Y1=w.forwardRef(({className:e,sideOffset:t=4,...r},n)=>O.jsx(x0,{ref:n,sideOffset:t,className:bi("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...r}));Y1.displayName=x0.displayName;var vu=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},yu=typeof window>"u"||"Deno"in globalThis;function sr(){}function X1(e,t){return typeof e=="function"?e(t):e}function Z1(e){return typeof e=="number"&&e>=0&&e!==1/0}function ek(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Fp(e,t){return typeof e=="function"?e(t):e}function tk(e,t){return typeof e=="function"?e(t):e}function zp(e,t){const{type:r="all",exact:n,fetchStatus:i,predicate:s,queryKey:o,stale:a}=e;if(o){if(n){if(t.queryHash!==Zf(o,t.options))return!1}else if(!Wo(t.queryKey,o))return!1}if(r!=="all"){const l=t.isActive();if(r==="active"&&!l||r==="inactive"&&l)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||i&&i!==t.state.fetchStatus||s&&!s(t))}function Bp(e,t){const{exact:r,status:n,predicate:i,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(r){if(Bo(t.options.mutationKey)!==Bo(s))return!1}else if(!Wo(t.options.mutationKey,s))return!1}return!(n&&t.state.status!==n||i&&!i(t))}function Zf(e,t){return(t?.queryKeyHashFn||Bo)(e)}function Bo(e){return JSON.stringify(e,(t,r)=>Pd(r)?Object.keys(r).sort().reduce((n,i)=>(n[i]=r[i],n),{}):r)}function Wo(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(r=>!Wo(e[r],t[r])):!1}function k0(e,t){if(e===t)return e;const r=Wp(e)&&Wp(t);if(r||Pd(e)&&Pd(t)){const n=r?e:Object.keys(e),i=n.length,s=r?t:Object.keys(t),o=s.length,a=r?[]:{};let l=0;for(let u=0;u<o;u++){const c=r?u:s[u];(!r&&n.includes(c)||r)&&e[c]===void 0&&t[c]===void 0?(a[c]=void 0,l++):(a[c]=k0(e[c],t[c]),a[c]===e[c]&&e[c]!==void 0&&l++)}return i===o&&l===i?e:a}return t}function GR(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(e[r]!==t[r])return!1;return!0}function Wp(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Pd(e){if(!Hp(e))return!1;const t=e.constructor;if(t===void 0)return!0;const r=t.prototype;return!(!Hp(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Hp(e){return Object.prototype.toString.call(e)==="[object Object]"}function rk(e){return new Promise(t=>{setTimeout(t,e)})}function nk(e,t,r){return typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?k0(e,t):t}function ik(e,t,r=0){const n=[...e,t];return r&&n.length>r?n.slice(1):n}function sk(e,t,r=0){const n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var T0=Symbol();function C0(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===T0?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var si,pn,hs,Mm,ok=(Mm=class extends vu{constructor(){super();ye(this,si);ye(this,pn);ye(this,hs);ce(this,hs,t=>{if(!yu&&window.addEventListener){const r=()=>t();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){N(this,pn)||this.setEventListener(N(this,hs))}onUnsubscribe(){var t;this.hasListeners()||((t=N(this,pn))==null||t.call(this),ce(this,pn,void 0))}setEventListener(t){var r;ce(this,hs,t),(r=N(this,pn))==null||r.call(this),ce(this,pn,t(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()}))}setFocused(t){N(this,si)!==t&&(ce(this,si,t),this.onFocus())}onFocus(){const t=this.isFocused();
67this.listeners.forEach(r=>{r(t)})}isFocused(){return typeof N(this,si)=="boolean"?N(this,si):globalThis.document?.visibilityState!=="hidden"}},si=new WeakMap,pn=new WeakMap,hs=new WeakMap,Mm),P0=new ok,ps,mn,ms,Um,ak=(Um=class extends vu{constructor(){super();ye(this,ps,!0);ye(this,mn);ye(this,ms);ce(this,ms,t=>{if(!yu&&window.addEventListener){const r=()=>t(!0),n=()=>t(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",n)}}})}onSubscribe(){N(this,mn)||this.setEventListener(N(this,ms))}onUnsubscribe(){var t;this.hasListeners()||((t=N(this,mn))==null||t.call(this),ce(this,mn,void 0))}setEventListener(t){var r;ce(this,ms,t),(r=N(this,mn))==null||r.call(this),ce(this,mn,t(this.setOnline.bind(this)))}setOnline(t){N(this,ps)!==t&&(ce(this,ps,t),this.listeners.forEach(n=>{n(t)}))}isOnline(){return N(this,ps)}},ps=new WeakMap,mn=new WeakMap,ms=new WeakMap,Um),Fl=new ak;function lk(e){return Math.min(1e3*2**e,3e4)}function R0(e){return(e??"online")==="online"?Fl.isOnline():!0}var O0=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function fc(e){return e instanceof O0}function A0(e){let t=!1,r=0,n=!1,i,s,o;const a=new Promise((m,p)=>{s=m,o=p}),l=m=>{n||(g(new O0(m)),e.abort?.())},u=()=>{t=!0},c=()=>{t=!1},f=()=>P0.isFocused()&&(e.networkMode==="always"||Fl.isOnline())&&e.canRun(),d=()=>R0(e.networkMode)&&e.canRun(),h=m=>{n||(n=!0,e.onSuccess?.(m),i?.(),s(m))},g=m=>{n||(n=!0,e.onError?.(m),i?.(),o(m))},v=()=>new Promise(m=>{i=p=>{(n||f())&&m(p)},e.onPause?.()}).then(()=>{i=void 0,n||e.onContinue?.()}),_=()=>{if(n)return;let m;const p=r===0?e.initialPromise:void 0;try{m=p??e.fn()}catch(y){m=Promise.reject(y)}Promise.resolve(m).then(h).catch(y=>{if(n)return;const S=e.retry??(yu?0:3),x=e.retryDelay??lk,C=typeof x=="function"?x(r,y):x,b=S===!0||typeof S=="number"&&r<S||typeof S=="function"&&S(r,y);if(t||!b){g(y);return}r++,e.onFail?.(r,y),rk(C).then(()=>f()?void 0:v()).then(()=>{t?g(y):_()})})};return{promise:a,cancel:l,continue:()=>(i?.(),a),cancelRetry:u,continueRetry:c,canStart:d,start:()=>(d()?_():v().then(_),a)}}function uk(){let e=[],t=0,r=a=>{a()},n=a=>{a()},i=a=>setTimeout(a,0);const s=a=>{t?e.push(a):i(()=>{r(a)})},o=()=>{const a=e;e=[],a.length&&i(()=>{n(()=>{a.forEach(l=>{r(l)})})})};return{batch:a=>{let l;t++;try{l=a()}finally{t--,t||o()}return l},batchCalls:a=>(...l)=>{s(()=>{a(...l)})},schedule:s,setNotifyFunction:a=>{r=a},setBatchNotifyFunction:a=>{n=a},setScheduler:a=>{i=a}}}var gt=uk(),oi,Fm,N0=(Fm=class{constructor(){ye(this,oi)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Z1(this.gcTime)&&ce(this,oi,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(yu?1/0:5*60*1e3))}clearGcTimeout(){N(this,oi)&&(clearTimeout(N(this,oi)),ce(this,oi,void 0))}},oi=new WeakMap,Fm),gs,vs,Vt,ut,ea,ai,ar,Dr,zm,ck=(zm=class extends N0{constructor(t){super();ye(this,ar);ye(this,gs);ye(this,vs);ye(this,Vt);ye(this,ut);ye(this,ea);ye(this,ai);ce(this,ai,!1),ce(this,ea,t.defaultOptions),this.setOptions(t.options),this.observers=[],ce(this,Vt,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,ce(this,gs,fk(this.options)),this.state=t.state??N(this,gs),this.scheduleGc()}get meta(){return this.options.meta}get promise(){return N(this,ut)?.promise}setOptions(t){this.options={...N(this,ea),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&N(this,Vt).remove(this)}setData(t,r){const n=nk(this.state.data,t,this.options);return ot(this,ar,Dr).call(this,{data:n,type:"success",dataUpdatedAt:r?.updatedAt,manual:r?.manual}),n}setState(t,r){ot(this,ar,Dr).call(this,{type:"setState",state:t,setStateOptions:r})}cancel(t){const r=N(this,ut)?.promise;return N(this,ut)?.cancel(t),r?r.then(sr).catch(sr):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(N(this,gs))}isActive(){return this.observers.some(t=>tk(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!ek(this.state.dataUpdatedAt,t)}onFocus(){this.observers.find(r=>r.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),N(this,ut)?.continue()}onOnline(){this.observers.find(r=>r.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),N(this,ut)?.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),N(this,Vt).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(r=>r!==t),this.observers.length||(N(this,ut)&&(N(this,ai)?N(this,ut).cancel({revert:!0}):N(this,ut).cancelRetry()),this.scheduleGc()),N(this,Vt).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||ot(this,ar,Dr).call(this,{type:"invalidate"})}fetch(t,r){if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&r?.cancelRefetch)this.cancel({silent:!0});else if(N(this,ut))return N(this,ut).continueRetry(),N(this,ut).promise}if(t&&this.setOptions(t),!this.options.queryFn){const l=this.observers.find(u=>u.options.queryFn);l&&this.setOptions(l.options)}const n=new AbortController,i=l=>{Object.defineProperty(l,"signal",{enumerable:!0,get:()=>(ce(this,ai,!0),n.signal)}
vendor: 4,088 bytes, line 67
67)},s=()=>{const l=C0(this.options,r),u={queryKey:this.queryKey,meta:this.meta};return i(u),ce(this,ai,!1),this.options.persister?this.options.persister(l,u,this):l(u)},o={fetchOptions:r,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:s};i(o),this.options.behavior?.onFetch(o,this),ce(this,vs,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==o.fetchOptions?.meta)&&ot(this,ar,Dr).call(this,{type:"fetch",meta:o.fetchOptions?.meta});const a=l=>{fc(l)&&l.silent||ot(this,ar,Dr).call(this,{type:"error",error:l}),fc(l)||(N(this,Vt).config.onError?.(l,this),N(this,Vt).config.onSettled?.(this.state.data,l,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return ce(this,ut,A0({initialPromise:r?.initialPromise,fn:o.fetchFn,abort:n.abort.bind(n),onSuccess:l=>{if(l===void 0){a(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(l)}catch(u){a(u);return}N(this,Vt).config.onSuccess?.(l,this),N(this,Vt).config.onSettled?.(l,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:a,onFail:(l,u)=>{ot(this,ar,Dr).call(this,{type:"failed",failureCount:l,error:u})},onPause:()=>{ot(this,ar,Dr).call(this,{type:"pause"})},onContinue:()=>{ot(this,ar,Dr).call(this,{type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode,canRun:()=>!0})),N(this,ut).start()}},gs=new WeakMap,vs=new WeakMap,Vt=new WeakMap,ut=new WeakMap,ea=new WeakMap,ai=new WeakMap,ar=new WeakSet,Dr=function(t){const r=n=>{switch(t.type){case"failed":return{...n,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...dk(n.data,this.options),fetchMeta:t.meta??null};case"success":return{...n,data:t.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const i=t.error;return fc(i)&&i.revert&&N(this,vs)?{...N(this,vs),fetchStatus:"idle"}:{...n,error:i,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...t.state}}};this.state=r(this.state),gt.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),N(this,Vt).notify({query:this,type:"updated",action:t})})},zm);function dk(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:R0(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function fk(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,r=t!==void 0,n=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var br,Bm,hk=(Bm=class extends vu{constructor(t={}){super();ye(this,br);this.config=t,ce(this,br,new Map)}build(t,r,n){const i=r.queryKey,s=r.queryHash??Zf(i,r);let o=this.get(s);return o||(o=new ck({cache:this,queryKey:i,queryHash:s,options:t.defaultQueryOptions(r),state:n,defaultOptions:t.getQueryDefaults(i)}),this.add(o)),o}add(t){N(this,br).has(t.queryHash)||(N(this,br).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const r=N(this,br).get(t.queryHash);r&&(t.destroy(),r===t&&N(this,br).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){gt.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return N(this,br).get(t)}getAll(){return[...N(this,br).values()]}find(t){const r={exact:!0,...t};return this.getAll().find(n=>zp(r,n))}findAll(t={}){const r=this.getAll();return Object.keys(t).length>0?r.filter(n=>zp(t,n)):r}notify(t){gt.batch(()=>
67{this.listeners.forEach(r=>{r(t)})})}onFocus(){gt.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){gt.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},br=new WeakMap,Bm),Sr,pt,li,Er,on,Wm,pk=(Wm=class extends N0{constructor(t){super();ye(this,Er);ye(this,Sr);ye(this,pt);ye(this,li);this.mutationId=t.mutationId,ce(this,pt,t.mutationCache),ce(this,Sr,[]),this.state=t.state||mk(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){N(this,Sr).includes(t)||(N(this,Sr).push(t),this.clearGcTimeout(),N(this,pt).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){ce(this,Sr,N(this,Sr).filter(r=>r!==t)),this.scheduleGc(),N(this,pt).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){N(this,Sr).length||(this.state.status==="pending"?this.scheduleGc():N(this,pt).remove(this))}continue(){return N(this,li)?.continue()??this.execute(this.state.variables)}async execute(t){ce(this,li,A0({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(i,s)=>{ot(this,Er,on).call(this,{type:"failed",failureCount:i,error:s})},onPause:()=>{ot(this,Er,on).call(this,{type:"pause"})},onContinue:()=>{ot(this,Er,on).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>N(this,pt).canRun(this)}));const r=this.state.status==="pending",n=!N(this,li).canStart();try{if(!r){ot(this,Er,on).call(this,{type:"pending",variables:t,isPaused:n}),await N(this,pt).config.onMutate?.(t,this);const s=await this.options.onMutate?.(t);s!==this.state.context&&ot(this,Er,on).call(this,{type:"pending",context:s,variables:t,isPaused:n})}const i=await N(this,li).start();return await N(this,pt).config.onSuccess?.(i,t,this.state.context,this),await this.options.onSuccess?.(i,t,this.state.context),await N(this,pt).config.onSettled?.(i,null,this.state.variables,this.state.context,this),await this.options.onSettled?.(i,null,t,this.state.context),ot(this,Er,on).call(this,{type:"success",data:i}),i}catch(i){try{throw await N(this,pt).config.onError?.(i,t,this.state.context,this),await this.options.onError?.(i,t,this.state.context),await N(this,pt).config.onSettled?.(void 0,i,this.state.variables,this.state.context,this),await this.options.onSettled?.(void 0,i,t,this.state.context),i}finally{ot(this,Er,on).call(this,{type:"error",error:i})}}finally{N(this,pt).runNext(this)}}},Sr=new WeakMap,pt=new WeakMap,li=new WeakMap,Er=new WeakSet,on=function(t){const r=n=>{switch(t.type){case"failed":return{...n,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,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{...n,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:t.error,failureCount:n.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=r(this.state),gt.batch(()=>{N(this,Sr).forEach(n=>{n.onMutationUpdate(t)}),N(this,pt).notify({mutation:this,type:"updated",action:t})})},Wm);function mk(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Lt,ta,Hm,gk=(Hm=class extends vu{constructor(t={}){super();ye(this,Lt);ye(this,ta);this.config=t,ce(this,Lt,new Map),ce(this,ta,Date.now())}build(t,r,n){const i=new pk({mutationCache:this,mutationId:++va(this,ta)._,options:t.defaultMutationOptions(r),state:n});return this.add(i),i}add(t){const r=Fa(t),n=N(this,Lt).get(r)??[];n.push(t),N(this,Lt).set(r,n),this.notify({type:"added",mutation:t})}remove(t){const r=Fa(t);if(N(this,Lt).has(r)){const n=N(this,Lt).get(r)?.filter(i=>i!==t);n&&(n.length===0?N(this,Lt).delete(r):N(this,Lt).set(r,n))}this.notify({type:"removed",mutation:t})}canRun(t){const r=N(this,Lt).get(Fa(t))?.find(n=>n.state.status==="pending");return!r||r===t}runNext(t){return N(this,Lt).get(Fa(t))?.find(n=>
vendor: 4,127 bytes, line 67
67n!==t&&n.state.isPaused)?.continue()??Promise.resolve()}clear(){gt.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}getAll(){return[...N(this,Lt).values()].flat()}find(t){const r={exact:!0,...t};return this.getAll().find(n=>Bp(r,n))}findAll(t={}){return this.getAll().filter(r=>Bp(t,r))}notify(t){gt.batch(()=>{this.listeners.forEach(r=>{r(t)})})}resumePausedMutations(){const t=this.getAll().filter(r=>r.state.isPaused);return gt.batch(()=>Promise.all(t.map(r=>r.continue().catch(sr))))}},Lt=new WeakMap,ta=new WeakMap,Hm);function Fa(e){return e.options.scope?.id??String(e.mutationId)}function Vp(e){return{onFetch:(t,r)=>{const n=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,s=t.state.data?.pages||[],o=t.state.data?.pageParams||[];let a={pages:[],pageParams:[]},l=0;const u=async()=>{let c=!1;const f=g=>{Object.defineProperty(g,"signal",{enumerable:!0,get:()=>(t.signal.aborted?c=!0:t.signal.addEventListener("abort",()=>{c=!0}),t.signal)})},d=C0(t.options,t.fetchOptions),h=async(g,v,_)=>{if(c)return Promise.reject();if(v==null&&g.pages.length)return Promise.resolve(g);const m={queryKey:t.queryKey,pageParam:v,direction:_?"backward":"forward",meta:t.options.meta};f(m);const p=await d(m),{maxPages:y}=t.options,S=_?sk:ik;return{pages:S(g.pages,p,y),pageParams:S(g.pageParams,v,y)}};if(i&&s.length){const g=i==="backward",v=g?vk:Kp,_={pages:s,pageParams:o},m=v(n,_);a=await h(_,m,g)}else{const g=e??s.length;do{const v=l===0?o[0]??n.initialPageParam:Kp(n,a);if(l>0&&v==null)break;a=await h(a,v),l++}while(l<g)}return a};t.options.persister?t.fetchFn=()=>t.options.persister?.(u,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r):t.fetchFn=u}}}function Kp(e,{pages:t,pageParams:r}){const n=t.length-1;return t.length>0?e.getNextPageParam(t[n],t,r[n],r):void 0}function vk(e,{pages:t,pageParams:r}){return t.length>0?e.getPreviousPageParam?.(t[0],t,r[0],r):void 0}var Me,gn,vn,ys,ws,yn,_s,bs,Vm,yk=(Vm=class{constructor(e={}){ye(this,Me);ye(this,gn);ye(this,vn);ye(this,ys);ye(this,ws);ye(this,yn);ye(this,_s);ye(this,bs);ce(this,Me,e.queryCache||new hk),ce(this,gn,e.mutationCache||new gk),ce(this,vn,e.defaultOptions||{}),ce(this,ys,new Map),ce(this,ws,new Map),ce(this,yn,0)}mount(){va(this,yn)._++,N(this,yn)===1&&(ce(this,_s,P0.subscribe(async e=>{e&&(await this.resumePausedMutations(),N(this,Me).onFocus())})),ce(this,bs,Fl.subscribe(async e=>{e&&(await this.resumePausedMutations(),N(this,Me).onOnline())})))}unmount(){var e,t;va(this,yn)._--,N(this,yn)===0&&((e=N(this,_s))==null||e.call(this),ce(this,_s,void 0),(t=N(this,bs))==null||t.call(this),ce(this,bs,void 0))}isFetching(e){return N(this,Me).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return N(this,gn).findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return N(this,Me).get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);if(t===void 0)return this.fetchQuery(e);{const r=this.defaultQueryOptions(e),n=N(this,Me).build(this,r);return e.revalidateIfStale&&n.isStaleByTime(Fp(r.staleTime,n))&&this.prefetchQuery(r),Promise.resolve(t)}}getQueriesData(e){return N(this,Me).findAll(e).map(({queryKey:t,state:r})=>{const n=r.data;return[t,n]})}setQueryData(e,t,r){const n=this.defaultQueryOptions({queryKey:e}),s=N(this,Me).get(n.queryHash)?.state.data,o=X1(t,s);if(o!==void 0)return N(this,Me).build(this,n).setData(o,{...r,manual:!0})}setQueriesData(e,t,r){return gt.batch(()=>N(this,Me).findAll(e).map(({queryKey:n})=>[n,this.setQueryData(n,t,r)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return N(this,Me).get(t.queryHash)?.state}removeQueries(e){const t=N(this,Me);gt.batch(()=>{t.findAll(e).forEach(r=>{t.remove(r)})})}resetQueries(e,t){const r=N(this,Me),n={type:"active",...e};return gt.batch(()=>(r.findAll(e).forEach(i=>{i.reset()}),this.refetchQueries(n,t)))}cancelQueries(e={},t={}){const r={revert:!0,...t},n=gt.batch(()=>N(this,Me).findAll(e).map(i=>i.cancel(r)));return Promise.all(n).then(sr).catch(sr)}invalidateQueries(e={},t={}){return gt.batch(()=>{if(N(this,Me).findAll(e).forEach(n=>
67{n.invalidate()}),e.refetchType==="none")return Promise.resolve();const r={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(r,t)})}refetchQueries(e={},t){const r={...t,cancelRefetch:t?.cancelRefetch??!0},n=gt.batch(()=>N(this,Me).findAll(e).filter(i=>!i.isDisabled()).map(i=>{let s=i.fetch(void 0,r);return r.throwOnError||(s=s.catch(sr)),i.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(n).then(sr)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const r=N(this,Me).build(this,t);return r.isStaleByTime(Fp(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(sr).catch(sr)}fetchInfiniteQuery(e){return e.behavior=Vp(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(sr).catch(sr)}ensureInfiniteQueryData(e){return e.behavior=Vp(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Fl.isOnline()?N(this,gn).resumePausedMutations():Promise.resolve()}getQueryCache(){return N(this,Me)}getMutationCache(){return N(this,gn)}getDefaultOptions(){return N(this,vn)}setDefaultOptions(e){ce(this,vn,e)}setQueryDefaults(e,t){N(this,ys).set(Bo(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...N(this,ys).values()];let r={};return t.forEach(n=>{Wo(e,n.queryKey)&&(r={...r,...n.defaultOptions})}),r}setMutationDefaults(e,t){N(this,ws).set(Bo(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...N(this,ws).values()];let r={};return t.forEach(n=>{Wo(e,n.mutationKey)&&(r={...r,...n.defaultOptions})}),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...N(this,vn).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Zf(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.enabled!==!0&&t.queryFn===T0&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...N(this,vn).mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){N(this,Me).clear(),N(this,gn).clear()}},Me=new WeakMap,gn=new WeakMap,vn=new WeakMap,ys=new WeakMap,ws=new WeakMap,yn=new WeakMap,_s=new WeakMap,bs=new WeakMap,Vm),L0=w.createContext(void 0),QR=e=>{const t=w.useContext(L0);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},wk=({client:e,children:t})=>(w.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),O.jsx(L0.Provider,{value:e,children:t}));/** 68 * @remix-run/router v1.23.2 69 * 70 * Copyright (c) Remix Software Inc. 71 * 72 * This source code is licensed under the MIT license found in the 73 * LICENSE.md file in the root directory of this source tree. 74 * 75 * @license MIT 76 */function Oe(){return Oe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Oe.apply(this,arguments)}var We;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(We||(We={}));const qp="popstate";function _k(e){e===void 0&&(e={});function t(n,i){let{pathname:s,search:o,hash:a}=n.location;return As("",{pathname:s,search:o,hash:a},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function r(n,i){return typeof i=="string"?i:$n(i)}return I0(t,r,null,e)}function bk(e){e===void 0&&(e={});function t(i,s){let{pathname:o="/",search:a="",hash:l=""}=Rr(i.location.hash.substr(1));return!o.startsWith("/")&&!o.startsWith(".")&&(o="/"+o),As("",{pathname:o,search:a,hash:l},s.state&&s.state.usr||null,s.state&&s.state.key||"default")}function r(i,s){let o=i.document.querySelector("base"),a="";if(o&&o.getAttribute("href")){let l=i.location.href,u=l.indexOf("#");a=u===-1?l:l.slice(0,u)}return a+"#"+(typeof s=="string"?s:$n(s))}function n(i,s){Dn(i.pathname.charAt(0)==="/","relative pathnames are not supported in hash history.push("+JSON.stringify(s)+")")}return I0(t,r,n,e)}function ae(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Dn(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Sk(){return Math.random().toString(36).substr(2,8)}function Gp(e,t){return{usr:e.state,key:e.key,idx:t}}function As(e,t,r,n){return r===void 0&&(r=null),Oe({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Rr(t):t,{state:r,key:t&&t.key||n||Sk()})}function $n(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function Rr(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function I0(e,t,r,n){n===void 0&&(n={});let{window:i=document.defaultView,v5Compat:s=!1}=n,o=i.history,a=We.Pop,l=null,u=c();u==null&&(u=0,o.replaceState(Oe({},o.state,{idx:u}),""));function c(){return(o.state||{idx:null}).idx}function f(){a=We.Pop;let _=c(),m=_==null?null:_-u;u=_,l&&l({action:a,location:v.location,delta:m})}function d(_,m){a=We.Push;let p=As(v.location,_,m);r&&r(p,_),u=c()+1;let y=Gp(p,u),S=v.createHref(p);try{o.pushState(y,"",S)}
vendor: 1,418 bytes, line 76
76catch(x){if(x instanceof DOMException&&x.name==="DataCloneError")throw x;i.location.assign(S)}s&&l&&l({action:a,location:v.location,delta:1})}function h(_,m){a=We.Replace;let p=As(v.location,_,m);r&&r(p,_),u=c();let y=Gp(p,u),S=v.createHref(p);o.replaceState(y,"",S),s&&l&&l({action:a,location:v.location,delta:0})}function g(_){let m=i.location.origin!=="null"?i.location.origin:i.location.href,p=typeof _=="string"?_:$n(_);return p=p.replace(/ $/,"%20"),ae(m,"No window.location.(origin|href) available to create URL for href: "+p),new URL(p,m)}let v={get action(){return a},get location(){return e(i,o)},listen(_){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(qp,f),l=_,()=>{i.removeEventListener(qp,f),l=null}},createHref(_){return t(i,_)},createURL:g,encodeLocation(_){let m=g(_);return{pathname:m.pathname,search:m.search,hash:m.hash}},push:d,replace:h,go(_){return o.go(_)}};return v}var be;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(be||(be={}));const Ek=new Set(["lazy","caseSensitive","path","id","index","children"]);function xk(e){return e.index===!0}function zl(e,t,r,n){return r===void 0&&(r=[]),n===void 0&&(n={}),e.map((i,s)=>{let o=[...r,String(s)],a=typeof i.id=="string"?i.id:o.join("-");if(ae(i.index!==!0||!i.children,"Cannot specify children on an index route"),ae(!n[a],'Found a route id collision on i
76d "'+a+`". Route id's must be globally unique within Data Router usages`),xk(i)){let l=Oe({},i,t(i),{id:a});return n[a]=l,l}else{let l=Oe({},i,t(i),{id:a,children:void 0});return n[a]=l,i.children&&(l.children=zl(i.children,t,o,n)),l}})}function Jn(e,t,r){return r===void 0&&(r="/"),cl(e,t,r,!1)}function cl(e,t,r,n){let i=typeof t=="string"?Rr(t):t,s=Mn(i.pathname||"/",r);if(s==null)return null;let o=j0(e);Tk(o);let a=null;for(let l=0;a==null&&l<o.length;++l){let u=$0(s);a=jk(o[l],u,n)}return a}function kk(e,t){let{route:r,pathname:n,params:i}=e;return{id:r.id,pathname:n,params:i,data:t[r.id],handle:r.handle}}function j0(e,t,r,n){t===void 0&&(t=[]),r===void 0&&(r=[]),n===void 0&&(n="");let i=(s,o,a)=>{let l={relativePath:a===void 0?s.path||"":a,caseSensitive:s.caseSensitive===!0,childrenIndex:o,route:s};l.relativePath.startsWith("/")&&(ae(l.relativePath.startsWith(n),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(n.length));let u=Hr([n,l.relativePath]),c=r.concat(l);s.children&&s.children.length>0&&(ae(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),j0(s.children,t,c,u)),!(s.path==null&&!s.index)&&t.push({path:u,score:Lk(u,s.index),routesMeta:c})};return e.forEach((s,o)=>{var a;if(s.path===""||!((a=s.path)!=null&&a.includes("?")))i(s,o);else for(let l of D0(s.path))i(s,o,l)}),t}function D0(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,i=r.endsWith("?"),s=r.replace(/\?$/,"");if(n.length===0)return i?[s,""]:[s];let o=D0(n.join("/")),a=[];return a.push(...o.map(l=>l===""?s:[s,l].join("/"))),i&&a.push(...o),a.map(l=>e.startsWith("/")&&l===""?"/":l)}function Tk(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:Ik(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const Ck=/^:[\w-]+$/,Pk=3,Rk=2,Ok=1,Ak=10,Nk=-2,Qp=e=>e==="*";function Lk(e,t){let r=e.split("/"),n=r.length;return r.some(Qp)&&(n+=Nk),t&&(n+=Rk),r.filter(i=>!Qp(i)).reduce((i,s)=>i+(Ck.test(s)?Pk:s===""?Ok:Ak),n)}function Ik(e,t){return e.length===t.length&&e.slice(0,-1).every((n,i)=>n===t[i])?e[e.length-1]-t[t.length-1]:0}function jk(e,t,r){r===void 0&&(r=!1);let{routesMeta:n}=e,i={},s="/",o=[];for(let a=0;a<n.length;++a){let l=n[a],u=a===n.length-1,c=s==="/"?t:t.slice(s.length)||"/",f=Rd({path:l.relativePath,caseSensitive:l.caseSensitive,end:u},c),d=l.route;if(!f&&u&&r&&!n[n.length-1].route.index&&(f=Rd({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},c)),!f)return null;
vendor: 42,629 bytes, lines 76-86
76Object.assign(i,f.params),o.push({params:i,pathname:Hr([s,f.pathname]),pathnameBase:Fk(Hr([s,f.pathnameBase])),route:d}),f.pathnameBase!=="/"&&(s=Hr([s,f.pathnameBase]))}return o}function Rd(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=Dk(e.path,e.caseSensitive,e.end),i=t.match(r);if(!i)return null;let s=i[0],o=s.replace(/(.)\/+$/,"$1"),a=i.slice(1);return{params:n.reduce((u,c,f)=>{let{paramName:d,isOptional:h}=c;if(d==="*"){let v=a[f]||"";o=s.slice(0,s.length-v.length).replace(/(.)\/+$/,"$1")}const g=a[f];return h&&!g?u[d]=void 0:u[d]=(g||"").replace(/%2F/g,"/"),u},{}),pathname:s,pathnameBase:o,pattern:e}}function Dk(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),Dn(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let n=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,a,l)=>(n.push({paramName:a,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),n]}function $0(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Dn(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Mn(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}const $k=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Mk=e=>$k.test(e);function Uk(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:i=""}=typeof e=="string"?Rr(e):e,s;if(r)if(Mk(r))s=r;else{if(r.includes("//")){let o=r;r=r.replace(/\/\/+/g,"/"),Dn(!1,"Pathnames cannot have embedded double slashes - normalizing "+(o+" -> "+r))}r.startsWith("/")?s=Jp(r.substring(1),"/"):s=Jp(r,t)}else s=t;return{pathname:s,search:zk(n),hash:Bk(i)}}function Jp(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?r.length>1&&r.pop():i!=="."&&r.push(i)}),r.length>1?r.join("/"):"/"}function hc(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function M0(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function wu(e,t){let r=M0(e);return t?r.map((n,i)=>i===r.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function _u(e,t,r,n){n===void 0&&(n=!1);let i;typeof e=="string"?i=Rr(e):(i=Oe({},e),ae(!i.pathname||!i.pathname.includes("?"),hc("?","pathname","search",i)),ae(!i.pathname||!i.pathname.includes("#"),hc("#","pathname","hash",i)),ae(!i.search||!i.search.includes("#"),hc("#","search","hash",i)));let s=e===""||i.pathname==="",o=s?"/":i.pathname,a;if(o==null)a=r;else{let f=t.length-1;if(!n&&o.startsWith("..")){let d=o.split("/");for(;d[0]==="..";)d.shift(),f-=1;i.pathname=d.join("/")}a=f>=0?t[f]:"/"}let l=Uk(i,a),u=o&&o!=="/"&&o.endsWith("/"),c=(s||o===".")&&r.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}const Hr=e=>e.join("/").replace(/\/\/+/g,"/"),Fk=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),zk=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Bk=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class Bl{constructor(t,r,n,i){i===void 0&&(i=!1),this.status=t,this.statusText=r||"",this.internal=i,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}}function Ho(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const U0=["post","put","patch","delete"],Wk=new Set(U0),Hk=["get",...U0],Vk=new Set(Hk),Kk=new Set([301,302,303,307,308]),qk=new Set([307,308]),pc={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Gk={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},zi={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},eh=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Qk=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),F0="remix-router-transitions";function Jk(e){const t=e.window?e.window:typeof window<"u"?window:void 0,r=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",n=!r;ae(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let i;if(e.mapRouteProperties)i=e.mapRouteProperties;else if(e.detectErrorBoundary){let E=e.detectErrorBoundary;i=k=>({hasErrorBoundary:E(k)})}else i=Qk;let s={},o=zl(e.routes,i,void 0,s),a,l=e.basename||"/",u=e.dataStrategy||eT,c=e.patchRoutesOnNavigation,f=Oe({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),d=null,h=new Set,g=null,v=null,_=null,m=e.hydrationData!=null,p=Jn(o,e.history.location,l),y=!1,S=null;if(p==null&&!c){let E=Et(404,{pathname:e.history.location.pathname}),{matches:k,route:R}=am(o);p=k,S={[R.id]:E}}p&&!e.hydrationData&&ha(p,o,e.history.location.pathname).active&&(p=null);let x;if(p)if(p.some(E=>E.route.lazy))x=!1;else if(!p.some(E=>E.route.loader))x=!0;else if(f.v7_partialHydration){let E=e.hydrationData?e.hydrationData.loaderData:null,k=e.hydrationData?e.hydrationData.errors:null;if(k){let R=p.findIndex(L=>k[L.route.id]!==void 0);x=p.slice(0,R+1).every(L=>!Ad(L.route,E,k))}else x=p.every(R=>!Ad(R.route,E,k))}else x=e.hydrationData!=null;else if(x=!1,p=[],f.v7_partialHydration){let E=ha(null,o,e.history.location.pathname);E.active&&E.matches&&(y=!0,p=E.matches)}let C,b={historyAction:e.history.action,location:e.history.location,matches:p,initialized:x,navigation:pc,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||S,fetchers:new Map,blockers:new Map},P=We.Pop,j=!1,A,W=!1,U=new Map,Z=null,$=!1,ne=!1,X=[],se=new Set,T=new Map,D=0,H=-1,z=new Map,q=new Set,oe=new Map,we=new Map,Te=new Set,de=new Map,je=new Map,Ot;function Ar(){if(d=e.history.listen(E=>{let{action:k,location:R,delta:L}=E;if(Ot){Ot(),Ot=void 0;return}Dn(je.size===0||L!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let F=_e({currentLocation:b.location,nextLocation:R,historyAction:k});if(F&&L!=null){let Y=new Promise(re=>{Ot=re});e.history.go(L*-1),ve(F,{state:"blocked",location:R,proceed(){ve(F,{state:"proceeding",proceed:void 0,reset:void 0,location:R}),Y.then(()=>e.history.go(L))},reset(){let re=new Map(b.blockers);re.set(F,zi),Be({blockers:re})}});return}return _t(k,R)}),r){pT(t,U);let E=()=>mT(t,U);t.addEventListener("pagehide",E),Z=()=>t.removeEventListener("pagehide",E)}return b.initialized||_t(We.Pop,b.location,{initialHydration:!0}),C}function Nr(){d&&d(),Z&&Z(),h.clear(),A&&A.abort(),b.fetchers.forEach((E,k)=>Ti(k)),b.blockers.forEach((E,k)=>ie(k))}function Us(E){return h.add(E),()=>h.delete(E)}function Be(E,k){k===void 0&&(k={}),b=Oe({},b,E);let R=[],L=[];f.v7_fetcherPersist&&b.fetchers.forEach((F,Y)=>{F.state==="idle"&&(Te.has(Y)?L.push(Y):R.push(Y))}),Te.forEach(F=>{!b.fetchers.has(F)&&!T.has(F)&&L.push(F)}),[...h].forEach(F=>F(b,{deletedFetchers:L,viewTransitionOpts:k.viewTransitionOpts,flushSync:k.flushSync===!0})),f.v7_fetcherPersist?(R.forEach(F=>b.fetchers.delete(F)),L.forEach(F=>Ti(F))):L.forEach(F=>Te.delete(F))}function At(E,k,R){var L,F;let{flushSync:Y}=R===void 0?{}:R,re=b.actionData!=null&&b.navigation.formMethod!=null&&ur(b.navigation.formMethod)&&b.navigation.state==="loading"&&((L=E.state)==null?void 0:L._isRedirect)!==!0,K;k.actionData?Object.keys(k.actionData).length>0?K=k.actionData:K=null:re?K=b.actionData:K=null;let G=k.loaderData?sm(b.loaderData,k.loaderData,k.matches||[],k.errors):b.loaderData,V=b.blockers;V.size>0&&(V=new Map(V),V.forEach((he,Ze)=>V.set(Ze,zi)));let J=j===!0||b.navigation.formMethod!=null&&ur(b.navigation.formMethod)&&((F=E.state)==null?void 0:F._isRedirect)!==!0;a&&(o=a,a=void 0),$||P===We.Pop||(P===We.Push?e.history.push(E,E.state):P===We.Replace&&e.history.replace(E,E.state));let le;if(P===We.Pop){let he=U.get(b.location.pathname);he&&he.has(E.pathname)?le={currentLocation:b.location,nextLocation:E}:U.has(E.pathname)&&(le={currentLocation:E,nextLocation:b.location})}else if(W){let he=U.get(b.location.pathname);he?he.add(E.pathname):(he=new Set([E.pathname]),U.set(b.location.pathname,he)),le={currentLocation:b.location,nextLocation:E}}Be(Oe({},k,{actionData:K,loaderData:G,historyAction:P,location:E,initialized:!0,navigation:pc,revalidation:"idle",restoreScrollPosition:oh(E,k.matches||b.matches),preventScrollReset:J,blockers:V}),{viewTransitionOpts:le,flushSync:Y===!0}),P=We.Pop,j=!1,W=!1,$=!1,ne=!1,X=[]}async function Fs(E,k){if(typeof E=="number"){e.history.go(E);return}let R=Od(b.location,b.matches,l,f.v7_prependBasename,E,f.v7_relativeSplatPath,k?.fromRouteId,k?.relative),{path:L,submission:F,error:Y}=Yp(f.v7_normalizeFormMethod,!1,R,k),re=b.location,K=As(b.location,L,k&&k.state);K=Oe({},K,e.history.encodeLocation(K));let G=k&&k.replace!=null?k.replace:void 0,V=We.Push;G===!0?V=We.Replace:G===!1||F!=null&&ur(F.formMethod)&&F.formAction===b.location.pathname+b.location.search&&(V=We.Replace);let J=k&&"preventScrollReset"in k?k.preventScrollReset===!0:void 0,le=(k&&k.flushSync)===!0,he=_e({currentLocation:re,nextLocation:K,historyAction:V});if(he){ve(he,{state:"blocked",location:K,proceed(){ve(he,{state:"proceeding",proceed:void 0,reset:void 0,location:K}),Fs(E,k)},reset(){let Ze=new Map(b.blockers);Ze.set(he,zi),Be({blockers:Ze})}});return}return await _t(V,K,{submission:F,pendingError:Y,preventScrollReset:J,replace:k&&k.replace,enableViewTransition:k&&k.viewTransition,flushSync:le})}function ua(){if(vr(),Be({revalidation:"loading"}),b.navigation.state!=="submitting"){if(b.navigation.state==="idle"){_t(b.historyAction,b.location,{startUninterruptedRevalidation:!0});return}_t(P||b.historyAction,b.navigation.location,{overrideNavigation:b.navigation,enableViewTransition:W===!0})}}async function _t(E,k,R){A&&A.abort(),A=null,P=E,$=(R&&R.startUninterruptedRevalidation)===!0,_w(b.location,b.matches),j=(R&&R.preventScrollReset)===!0,W=(R&&R.enableViewTransition)===!0;let L=a||o,F=R&&R.overrideNavigation,Y=R!=null&&R.initialHydration&&b.matches&&b.matches.length>0&&!y?b.matches:Jn(L,k,l),re=(R&&R.flushSync)===!0;if(Y&&b.initialized&&!ne&&oT(b.location,k)&&!(R&&R.submission&&ur(R.submission.formMethod))){At(k,{matches:Y},{flushSync:re});return}let K=ha(Y,L,k.pathname);if(K.active&&K.matches&&(Y=K.matches),!Y){let{error:Ee,notFoundMatches:ge,route:De}=bt(k.pathname);At(k,{matches:ge,loaderData:{},errors:{[De.id]:Ee}},{flushSync:re});return}A=new AbortController;let G=Li(e.history,k,A.signal,R&&R.submission),V;if(R&&R.pendingError)V=[Yn(Y).route.id,{type:be.error,error:R.pendingError}];else if(R&&R.submission&&ur(R.submission.formMethod)){let Ee=await Cu(G,k,R.submission,Y,K.active,{replace:R.replace,flushSync:re});if(Ee.shortCircuited)return;if(Ee.pendingActionResult){let[ge,De]=Ee.pendingActionResult;if(Dt(De)&&Ho(De.error)&&De.error.status===404){A=null,At(k,{matches:Ee.matches,loaderData:{},errors:{[ge]:De.error}});return}}Y=Ee.matches||Y,V=Ee.pendingActionResult,F=mc(k,R.submission),re=!1,K.active=!1,G=Li(e.history,G.url,G.signal)}let{shortCircuited:J,matches:le,loaderData:he,errors:Ze}=await Pu(G,k,Y,K.active,F,R&&R.submission,R&&R.fetcherSubmission,R&&R.replace,R&&R.initialHydration===!0,re,V);J||(A=null,At(k,Oe({matches:le||Y},om(V),{loaderData:he,errors:Ze})))}async function Cu(E,k,R,L,F,Y){Y===void 0&&(Y={}),vr();let re=fT(k,R);if(Be({navigation:re},{flushSync:Y.flushSync===!0}),F){let V=await pa(L,k.pathname,E.signal);if(V.type==="aborted")return{shortCircuited:!0};if(V.type==="error"){let J=Yn(V.partialMatches).route.id;return{matches:V.partialMatches,pendingActionResult:[J,{type:be.error,error:V.error}]}}else if(V.matches)L=V.matches;else{let{notFoundMatches:J,error:le,route:he}=bt(k.pathname);return{matches:J,pendingActionResult:[he.id,{type:be.error,error:le}]}}}let K,G=lo(L,k);if(!G.route.action&&!G.route.lazy)K={type:be.error,error:Et(405,{method:E.method,pathname:k.pathname,routeId:G.route.id})};else if(K=(await tn("action",b,E,[G],L,null))[G.route.id],E.signal.aborted)return{shortCircuited:!0};if(ni(K)){let V;return Y&&Y.replace!=null?V=Y.replace:V=rm(K.response.headers.get("Location"),new URL(E.url),l,e.history)===b.location.pathname+b.location.search,await Lr(E,K,!0,{submission:R,replace:V}),{shortCircuited:!0}}if(bn(K))throw Et(400,{type:"defer-action"});if(Dt(K)){let V=Yn(L,G.route.id);return(Y&&Y.replace)!==!0&&(P=We.Push),{matches:L,pendingActionResult:[V.route.id,K]}}return{matches:L,pendingActionResult:[G.route.id,K]}}async function Pu(E,k,R,L,F,Y,re,K,G,V,J){let le=F||mc(k,Y),he=Y||re||um(le),Ze=!$&&(!f.v7_partialHydration||!G);if(L){if(Ze){let $e=ht(J);Be(Oe({navigation:le},$e!==void 0?{actionData:$e}:{}),{flushSync:V})}let me=await pa(R,k.pathname,E.signal);if(me.type==="aborted")return{shortCircuited:!0};if(me.type==="error"){let $e=Yn(me.partialMatches).route.id;return{matches:me.partialMatches,loaderData:{},errors:{[$e]:me.error}}}else if(me.matches)R=me.matches;else{let{error:$e,notFoundMatches:Oi,route:Hs}=bt(k.pathname);return{matches:Oi,loaderData:{},errors:{[Hs.id]:$e}}}}let Ee=a||o,[ge,De]=Zp(e.history,b,R,he,k,f.v7_partialHydration&&G===!0,f.v7_skipActionErrorRevalidation,ne,X,se,Te,oe,q,Ee,l,J);if(St(me=>!(R&&R.some($e=>$e.route.id===me))||ge&&ge.some($e=>$e.route.id===me)),H=++D,ge.length===0&&De.length===0){let me=Ci();return At(k,Oe({matches:R,loaderData:{},errors:J&&Dt(J[1])?{[J[0]]:J[1].error}:null},om(J),me?{fetchers:new Map(b.fetchers)}:{}),{flushSync:V}),{shortCircuited:!0}}if(Ze){let me={};if(!L){me.navigation=le;let $e=ht(J);$e!==void 0&&(me.actionData=$e)}De.length>0&&(me.fetchers=en(De)),Be(me,{flushSync:V})}De.forEach(me=>{er(me.key),me.controller&&T.set(me.key,me.controller)});let Ri=()=>De.forEach(me=>er(me.key));A&&A.signal.addEventListener("abort",Ri);let{loaderResults:Bs,fetcherResults:Ir}=await ki(b,R,ge,De,E);if(E.signal.aborted)return{shortCircuited:!0};A&&A.signal.removeEventListener("abort",Ri),De.forEach(me=>T.delete(me.key));let yr=za(Bs);if(yr)return await Lr(E,yr.result,!0,{replace:K}),{shortCircuited:!0};if(yr=za(Ir),yr)return q.add(yr.key),await Lr(E,yr.result,!0,{replace:K}),{shortCircuited:!0};let{loaderData:Nu,errors:Ws}=im(b,R,Bs,J,De,Ir,de);de.forEach((me,$e)=>{me.subscribe(Oi=>{(Oi||me.done)&&de.delete($e)})}),f.v7_partialHydration&&G&&b.errors&&(Ws=Oe({},b.errors,Ws));let Hn=Ci(),ma=tr(H),ga=Hn||ma||De.length>0;return Oe({matches:R,loaderData:Nu,errors:Ws},ga?{fetchers:new Map(b.fetchers)}:{})}function ht(E){if(E&&!Dt(E[1]))return{[E[0]]:E[1].data};if(b.actionData)return Object.keys(b.actionData).length===0?null:b.actionData}function en(E){return E.forEach(k=>{let R=b.fetchers.get(k.key),L=to(void 0,R?R.data:void 0);b.fetchers.set(k.key,L)}),new Map(b.fetchers)}function Ru(E,k,R,L){if(n)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");er(E);let F=(L&&L.flushSync)===!0,Y=a||o,re=Od(b.location,b.matches,l,f.v7_prependBasename,R,f.v7_relativeSplatPath,k,L?.relative),K=Jn(Y,re,l),G=ha(K,Y,re);if(G.active&&G.matches&&(K=G.matches),!K){st(E,k,Et(404,{pathname:re}),{flushSync:F});return}let{path:V,submission:J,error:le}=Yp(f.v7_normalizeFormMethod,!0,re,L);if(le){st(E,k,le,{flushSync:F});return}let he=lo(K,V),Ze=(L&&L.preventScrollReset)===!0;if(J&&ur(J.formMethod)){Ou(E,k,V,he,K,G.active,F,Ze,J);return}oe.set(E,{routeId:k,path:V}),xi(E,k,V,he,K,G.active,F,Ze,J)}async function Ou(E,k,R,L,F,Y,re,K,G){vr(),oe.delete(E);function V(Ve){if(!Ve.route.action&&!Ve.route.lazy){let Ai=Et(405,{method:G.formMethod,pathname:R,routeId:k});return st(E,k,Ai,{flushSync:re}),!0}return!1}if(!Y&&V(L))return;let J=b.fetchers.get(E);Zt(E,hT(G,J),{flushSync:re});let le=new AbortController,he=Li(e.history,R,le.signal,G);if(Y){let Ve=await pa(F,new URL(he.url).pathname,he.signal,E);if(Ve.type==="aborted")return;if(Ve.type==="error"){st(E,k,Ve.error,{flushSync:re});return}else if(Ve.matches){if(F=Ve.matches,L=lo(F,R),V(L))return}else{st(E,k,Et(404,{pathname:R}),{flushSync:re});return}}T.set(E,le);let Ze=D,ge=(await tn("action",b,he,[L],F,E))[L.route.id];if(he.signal.aborted){T.get(E)===le&&T.delete(E);return}if(f.v7_fetcherPersist&&Te.has(E)){if(ni(ge)||Dt(ge)){Zt(E,an(void 0));return}}else{if(ni(ge))if(T.delete(E),H>Ze){Zt(E,an(void 0));return}else return q.add(E),Zt(E,to(G)),Lr(he,ge,!1,{fetcherSubmission:G,preventScrollReset:K});if(Dt(ge)){st(E,k,ge.error);return}}if(bn(ge))throw Et(400,{type:"defer-action"});let De=b.navigation.location||b.location,Ri=Li(e.history,De,le.signal),Bs=a||o,Ir=b.navigation.state!=="idle"?Jn(Bs,b.navigation.location,l):b.matches;ae(Ir,"Didn't find any matches after fetcher action");let yr=++D;z.set(E,yr);let Nu=to(G,ge.data);b.fetchers.set(E,Nu);let[Ws,Hn]=Zp(e.history,b,Ir,G,De,!1,f.v7_skipActionErrorRevalidation,ne,X,se,Te,oe,q,Bs,l,[L.route.id,ge]);Hn.filter(Ve=>Ve.key!==E).forEach(Ve=>{let Ai=Ve.key,ah=b.fetchers.get(Ai),Ew=to(void 0,ah?ah.data:void 0);b.fetchers.set(Ai,Ew),er(Ai),Ve.controller&&T.set(Ai,Ve.controller)}),Be({fetchers:new Map(b.fetchers)});let ma=()=>Hn.forEach(Ve=>er(Ve.key));le.signal.addEventListener("abort",ma);let{loaderResults:ga,fetcherResults:me}=await ki(b,Ir,Ws,Hn,Ri);if(le.signal.aborted)return;le.signal.removeEventListener("abort",ma),z.delete(E),T.delete(E),Hn.forEach(Ve=>T.delete(Ve.key));let $e=za(ga);if($e)return Lr(Ri,$e.result,!1,{preventScrollReset:K});if($e=za(me),$e)return q.add($e.key),Lr(Ri,$e.result,!1,{preventScrollReset:K});let{loaderData:Oi,errors:Hs}=im(b,Ir,ga,void 0,Hn,me,de);if(b.fetchers.has(E)){let Ve=an(ge.data);b.fetchers.set(E,Ve)}tr(yr),b.navigation.state==="loading"&&yr>H?(ae(P,"Expected pending action"),A&&A.abort(),At(b.navigation.location,{matches:Ir,loaderData:Oi,errors:Hs,fetchers:new Map(b.fetchers)})):(Be({errors:Hs,loaderData:sm(b.loaderData,Oi,Ir,Hs),fetchers:new Map(b.fetchers)}),ne=!1)}async function xi(E,k,R,L,F,Y,re,K,G){let V=b.fetchers.get(E);Zt(E,to(G,V?V.data:void 0),{flushSync:re});let J=new AbortController,le=Li(e.history,R,J.signal);if(Y){let ge=await pa(F,new URL(le.url).pathname,le.signal,E);if(ge.type==="aborted")return;if(ge.type==="error"){st(E,k,ge.error,{flushSync:re});return}else if(ge.matches)F=ge.matches,L=lo(F,R);else{st(E,k,Et(404,{pathname:R}),{flushSync:re});return}}T.set(E,J);let he=D,Ee=(await tn("loader",b,le,[L],F,E))[L.route.id];if(bn(Ee)&&(Ee=await th(Ee,le.signal,!0)||Ee),T.get(E)===J&&T.delete(E),!le.signal.aborted){if(Te.has(E)){Zt(E,an(void 0));return}if(ni(Ee))if(H>he){Zt(E,an(void 0));return}else{q.add(E),await Lr(le,Ee,!1,{preventScrollReset:K});return}if(Dt(Ee)){st(E,k,Ee.error);return}ae(!bn(Ee),"Unhandled fetcher deferred data"),Zt(E,an(Ee.data))}}async function Lr(E,k,R,L){let{submission:F,fetcherSubmission:Y,preventScrollReset:re,replace:K}=L===void 0?{}:L;k.response.headers.has("X-Remix-Revalidate")&&(ne=!0);let G=k.response.headers.get("Location");ae(G,"Expected a Location header on the redirect Response"),G=rm(G,new URL(E.url),l,e.history);let V=As(b.location,G,{_isRedirect:!0});if(r){let ge=!1;if(k.response.headers.has("X-Remix-Reload-Document"))ge=!0;else if(eh.test(G)){const De=e.history.createURL(G);ge=De.origin!==t.location.origin||Mn(De.pathname,l)==null}if(ge){K?t.location.replace(G):t.location.assign(G);return}}A=null;let J=K===!0||k.response.headers.has("X-Remix-Replace")?We.Replace:We.Push,{formMethod:le,formAction:he,formEncType:Ze}=b.navigation;!F&&!Y&&le&&he&&Ze&&(F=um(b.navigation));let Ee=F||Y;if(qk.has(k.response.status)&&Ee&&ur(Ee.formMethod))await _t(J,V,{submission:Oe({},Ee,{formAction:G}),preventScrollReset:re||j,enableViewTransition:R?W:void 0});else{let ge=mc(V,F);await _t(J,V,{overrideNavigation:ge,fetcherSubmission:Y,preventScrollReset:re||j,enableViewTransition:R?W:void 0})}}async function tn(E,k,R,L,F,Y){let re,K={};try{re=await tT(u,E,k,R,L,F,Y,s,i)}catch(G){return L.forEach(V=>{K[V.route.id]={type:be.error,error:G}}),K}for(let[G,V]of Object.entries(re))if(aT(V)){let J=V.result;K[G]={type:be.redirect,response:iT(J,R,G,F,l,f.v7_relativeSplatPath)}}else K[G]=await nT(V);return K}async function ki(E,k,R,L,F){let Y=E.matches,re=tn("loader",E,F,R,k,null),K=Promise.all(L.map(async J=>{if(J.matches&&J.match&&J.controller){let he=(await tn("loader",E,Li(e.history,J.path,J.controller.signal),[J.match],J.matches,J.key))[J.match.route.id];return{[J.key]:he}}else return Promise.resolve({[J.key]:{type:be.error,error:Et(404,{pathname:J.path})}})})),G=await re,V=(await K).reduce((J,le)=>Object.assign(J,le),{});return await Promise.all([cT(k,G,F.signal,Y,E.loaderData),dT(k,V,L)]),{loaderResults:G,fetcherResults:V}}function vr(){ne=!0,X.push(...St()),oe.forEach((E,k)=>{T.has(k)&&se.add(k),er(k)})}function Zt(E,k,R){R===void 0&&(R={}),b.fetchers.set(E,k),Be({fetchers:new Map(b.fetchers)},{flushSync:(R&&R.flushSync)===!0})}function st(E,k,R,L){L===void 0&&(L={});let F=Yn(b.matches,k);Ti(E),Be({errors:{[F.route.id]:R},fetchers:new Map(b.fetchers)},{flushSync:(L&&L.flushSync)===!0})}function zs(E){return we.set(E,(we.get(E)||0)+1),Te.has(E)&&Te.delete(E),b.fetchers.get(E)||Gk}function Ti(E){let k=b.fetchers.get(E);T.has(E)&&!(k&&k.state==="loading"&&z.has(E))&&er(E),oe.delete(E),z.delete(E),q.delete(E),f.v7_fetcherPersist&&Te.delete(E),se.delete(E),b.fetchers.delete(E)}function ca(E){let k=(we.get(E)||0)-1;k<=0?(we.delete(E),Te.add(E),f.v7_fetcherPersist||Ti(E)):we.set(E,k),Be({fetchers:new Map(b.fetchers)})}function er(E){let k=T.get(E);k&&(k.abort(),T.delete(E))}function da(E){for(let k of E){let R=zs(k),L=an(R.data);b.fetchers.set(k,L)}}function Ci(){let E=[],k=!1;for(let R of q){let L=b.fetchers.get(R);ae(L,"Expected fetcher: "+R),L.state==="loading"&&(q.delete(R),E.push(R),k=!0)}return da(E),k}function tr(E){let k=[];for(let[R,L]of z)if(L<E){let F=b.fetchers.get(R);ae(F,"Expected fetcher: "+R),F.state==="loading"&&(er(R),z.delete(R),k.push(R))}return da(k),k.length>0}function Au(E,k){let R=b.blockers.get(E)||zi;return je.get(E)!==k&&je.set(E,k),R}function ie(E){b.blockers.delete(E),je.delete(E)}function ve(E,k){let R=b.blockers.get(E)||zi;ae(R.state==="unblocked"&&k.state==="blocked"||R.state==="blocked"&&k.state==="blocked"||R.state==="blocked"&&k.state==="proceeding"||R.state==="blocked"&&k.state==="unblocked"||R.state==="proceeding"&&k.state==="unblocked","Invalid blocker state transition: "+R.state+" -> "+k.state);let L=new Map(b.blockers);L.set(E,k),Be({blockers:L})}function _e(E){let{currentLocation:k,nextLocation:R,historyAction:L}=E;if(je.size===0)return;je.size>1&&Dn(!1,"A router only supports one blocker at a time");let F=Array.from(je.entries()),[Y,re]=F[F.length-1],K=b.blockers.get(Y);if(!(K&&K.state==="proceeding")&&re({currentLocation:k,nextLocation:R,historyAction:L}))return Y}function bt(E){let k=Et(404,{pathname:E}),R=a||o,{matches:L,route:F}=am(R);return St(),{notFoundMatches:L,route:F,error:k}}function St(E){let k=[];return de.forEach((R,L)=>{(!E||E(L))&&(R.cancel(),k.push(L),de.delete(L))}),k}function Pi(E,k,R){if(g=E,_=k,v=R||null,!m&&b.navigation===pc){m=!0;let L=oh(b.location,b.matches);L!=null&&Be({restoreScrollPosition:L})}return()=>{g=null,_=null,v=null}}function fa(E,k){return v&&v(E,k.map(L=>kk(L,b.loaderData)))||E.key}function _w(E,k){if(g&&_){let R=fa(E,k);g[R]=_()}}function oh(E,k){if(g){let R=fa(E,k),L=g[R];if(typeof L=="number")return L}return null}function ha(E,k,R){if(c)if(E){if(Object.keys(E[0].params).length>0)return{active:!0,matches:cl(k,R,l,!0)}}else return{active:!0,matches:cl(k,R,l,!0)||[]};return{active:!1,matches:null}}async function pa(E,k,R,L){if(!c)return{type:"success",matches:E};let F=E;for(;;){let Y=a==null,re=a||o,K=s;try{await c({signal:R,path:k,matches:F,fetcherKey:L,patch:(J,le)=>{R.aborted||tm(J,le,re,K,i)}})}catch(J){return{type:"error",error:J,partialMatches:F}}finally{Y&&!R.aborted&&(o=[...o])}if(R.aborted)return{type:"aborted"};let G=Jn(re,k,l);if(G)return{type:"success",matches:G};let V=cl(re,k,l,!0);if(!V||F.length===V.length&&F.every((J,le)=>J.route.id===V[le].route.id))return{type:"success",matches:null};F=V}}function bw(E){s={},a=zl(E,i,void 0,s)}function Sw(E,k){let R=a==null;tm(E,k,a||o,s,i),R&&(o=[...o],Be({}))}return C={get basename(){return l},get future(){return f},get state(){return b},get routes(){return o},get window(){return t},initialize:Ar,subscribe:Us,enableScrollRestoration:Pi,navigate:Fs,fetch:Ru,revalidate:ua,createHref:E=>e.history.createHref(E),encodeLocation:E=>e.history.encodeLocation(E),getFetcher:zs,deleteFetcher:ca,dispose:Nr,getBlocker:Au,deleteBlocker:ie,patchRoutes:Sw,_internalFetchControllers:T,_internalActiveDeferreds:de,_internalSetRoutes:bw},C}function Yk(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function Od(e,t,r,n,i,s,o,a){let l,u;if(o){l=[];for(let f of t)if(l.push(f),f.route.id===o){u=f;break}}else l=t,u=t[t.length-1];let c=_u(i||".",wu(l,s),Mn(e.pathname,r)||e.pathname,a==="path");if(i==null&&(c.search=e.search,c.hash=e.hash),(i==null||i===""||i===".")&&u){let f=rh(c.search);if(u.route.index&&!f)c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index";else if(!u.route.index&&f){let d=new URLSearchParams(c.search),h=d.getAll("index");d.delete("index"),h.filter(v=>v).forEach(v=>d.append("index",v));let g=d.toString();c.search=g?"?"+g:""}}return n&&r!=="/"&&(c.pathname=c.pathname==="/"?r:Hr([r,c.pathname])),$n(c)}function Yp(e,t,r,n){if(!n||!Yk(n))return{path:r};if(n.formMethod&&!uT(n.formMethod))return{path:r,error:Et(405,{method:n.formMethod})};let i=()=>({path:r,error:Et(400,{type:"invalid-body"})}),s=n.formMethod||"get",o=e?s.toUpperCase():s.toLowerCase(),a=W0(r);if(n.body!==void 0){if(n.formEncType==="text/plain"){if(!ur(o))return i();let d=typeof n.body=="string"?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((h,g)=>{let[v,_]=g;return""+h+v+"="+_+` 77`},""):String(n.body);return{path:r,submission:{formMethod:o,formAction:a,formEncType:n.formEncType,formData:void 0,json:void 0,text:d}}}else if(n.formEncType==="application/json"){if(!ur(o))return i();try{let d=typeof n.body=="string"?JSON.parse(n.body):n.body;return{path:r,submission:{formMethod:o,formAction:a,formEncType:n.formEncType,formData:void 0,json:d,text:void 0}}}catch{return i()}}}ae(typeof FormData=="function","FormData is not available in this environment");let l,u;if(n.formData)l=Nd(n.formData),u=n.formData;else if(n.body instanceof FormData)l=Nd(n.body),u=n.body;else if(n.body instanceof URLSearchParams)l=n.body,u=nm(l);else if(n.body==null)l=new URLSearchParams,u=new FormData;else try{l=new URLSearchParams(n.body),u=nm(l)}catch{return i()}let c={formMethod:o,formAction:a,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:u,json:void 0,text:void 0};if(ur(c.formMethod))return{path:r,submission:c};let f=Rr(r);return t&&f.search&&rh(f.search)&&l.append("index",""),f.search="?"+l,{path:$n(f),submission:c}}function Xp(e,t,r){r===void 0&&(r=!1);let n=e.findIndex(i=>i.route.id===t);return n>=0?e.slice(0,r?n+1:n):e}function Zp(e,t,r,n,i,s,o,a,l,u,c,f,d,h,g,v){let _=v?Dt(v[1])?v[1].error:v[1].data:void 0,m=e.createURL(t.location),p=e.createURL(i),y=r;s&&t.errors?y=Xp(r,Object.keys(t.errors)[0],!0):v&&Dt(v[1])&&(y=Xp(r,v[0]));let S=v?v[1].statusCode:void 0,x=o&&S&&S>=400,C=y.filter((P,j)=>{let{route:A}=P;if(A.lazy)return!0;if(A.loader==null)return!1;if(s)return Ad(A,t.loaderData,t.errors);if(Xk(t.loaderData,t.matches[j],P)||l.some(Z=>Z===P.route.id))return!0;let W=t.matches[j],U=P;return em(P,Oe({currentUrl:m,currentParams:W.params,nextUrl:p,nextParams:U.params},n,{actionResult:_,actionStatus:S,defaultShouldRevalidate:x?!1:a||m.pathname+m.search===p.pathname+p.search||m.search!==p.search||z0(W,U)}))}),b=[];return f.forEach((P,j)=>{if(s||!r.some($=>$.route.id===P.routeId)||c.has(j))return;let A=Jn(h,P.path,g);if(!A){b.push({key:j,routeId:P.routeId,path:P.path,matches:null,match:null,controller:null});return}let W=t.fetchers.get(j),U=lo(A,P.path),Z=!1;d.has(j)?Z=!1:u.has(j)?(u.delete(j),Z=!0):W&&W.state!=="idle"&&W.data===void 0?Z=a:Z=em(U,Oe({currentUrl:m,currentParams:t.matches[t.matches.length-1].params,nextUrl:p,nextParams:r[r.length-1].params},n,{actionResult:_,actionStatus:S,defaultShouldRevalidate:x?!1:a})),Z&&b.push({key:j,routeId:P.routeId,path:P.path,matches:A,match:U,controller:new AbortController})}),[C,b]}function Ad(e,t,r){if(e.lazy)return!0;if(!e.loader)return!1;let n=t!=null&&t[e.id]!==void 0,i=r!=null&&r[e.id]!==void 0;return!n&&i?!1:typeof e.loader=="function"&&e.loader.hydrate===!0?!0:!n&&!i}function Xk(e,t,r){let n=!t||r.route.id!==t.route.id,i=e[r.route.id]===void 0;return n||i}function z0(e,t){let r=e.route.path;return e.pathname!==t.pathname||r!=null&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}function em(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if(typeof r=="boolean")return r}return t.defaultShouldRevalidate}function tm(e,t,r,n,i){var s;let o;if(e){let u=n[e];ae(u,"No route found to patch children into: routeId = "+e),u.children||(u.children=[]),o=u.children}else o=r;let a=t.filter(u=>!o.some(c=>B0(u,c))),l=zl(a,i,[e||"_","patch",String(((s=o)==null?void 0:s.length)||"0")],n);o.push(...l)}function B0(e,t){return"id"in e&&"id"in t&&e.id===t.id?!0:e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive?(!e.children||e.children.length===0)&&(!t.children||t.children.length===0)?!0:e.children.every((r,n)=>{var i;return(i=t.children)==null?void 0:i.some(s=>B0(r,s))}):!1}async function Zk(e,t,r){if(!e.lazy)return;let n=await e.lazy();if(!e.lazy)return;let i=r[e.id];ae(i,"No route found in manifest");let s={};for(let o in n){let l=i[o]!==void 0&&o!=="hasErrorBoundary";Dn(!l,'Route "'+i.id+'" has a static property "'+o+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+o+'" will be ignored.')),!l&&!Ek.has(o)&&(s[o]=n[o])}Object.assign(i,s),Object.assign(i,Oe({},t(i),{lazy:void 0}))}async function eT(e){let{matches:t}=e,r=t.filter(i=>i.shouldLoad);return(await Promise.all(r.map(i=>i.resolve()))).reduce((i,s,o)=>Object.assign(i,{[r[o].route.id]:s}),{})}async function tT(e,t,r,n,i,s,o,a,l,u){let c=s.map(h=>h.route.lazy?Zk(h.route,l,a):void 0),f=s.map((h,g)=>{let v=c[g],_=i.some(p=>p.route.id===h.route.id);return Oe({},h,{shouldLoad:_,resolve:async p=>(p&&n.method==="GET"&&(h.route.lazy||h.route.loader)&&(_=!0),_?rT(t,n,h,v,p,u):Promise.resolve({type:be.data,result:void 0}))})}),d=await e({matches:f,request:n,params:s[0].params,fetcherKey:o,context:u});try{await Promise.all(c)}catch{}return d}async function rT(e,t,r,n,i,s){let o,a,l=u=>{let c,f=new Promise((g,v)=>c=v);a=()=>c(),t.signal.addEventListener("abort",a);let d=g=>typeof u!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: '+r.route.id+"]"))):u({request:t,params:r.params,context:s},...g!==void 0?[g]:[]),h=(async()=>{try{return{type:"data",result:await(i?i(v=>d(v)):d())}}catch(g){return{type:"error",result:g}}})();return Promise.race([h,f])};try{let u=r.route[e];if(n)if(u){let c,[f]=await Promise.all([l(u).catch(d=>{c=d}),n]);if(c!==void 0)throw c;o=f}else if(await n,u=r.route[e],u)o=await l(u);else if(e==="action"){let c=new URL(t.url),f=c.pathname+c.search;throw Et(405,{method:t.method,pathname:f,routeId:r.route.id})}else return{type:be.data,result:void 0};else if(u)o=await l(u);else{let c=new URL(t.url),f=c.pathname+c.search;throw Et(404,{pathname:f})}ae(o.result!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+r.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(u){return{type:be.error,result:u}}finally{a&&t.signal.removeEventListener("abort",a)}return o}async function nT(e){let{result:t,type:r}=e;if(H0(t)){let f;try{let d=t.headers.get("Content-Type");d&&/\bapplication\/json\b/.test(d)?t.body==null?f=null:f=await t.json():f=await t.text()}catch(d){return{type:be.error,error:d}}return r===be.error?{type:be.error,error:new Bl(t.status,t.statusText,f),statusCode:t.status,headers:t.headers}:{type:be.data,data:f,statusCode:t.status,headers:t.headers}}if(r===be.error){if(lm(t)){var n,i;if(t.data instanceof Error){var s,o;return{type:be.error,error:t.data,statusCode:(s=t.init)==null?void 0:s.status,headers:(o=t.init)!=null&&o.headers?new Headers(t.init.headers):void 0}}return{type:be.error,error:new Bl(((n=t.init)==null?void 0:n.status)||500,void 0,t.data),statusCode:Ho(t)?t.status:void 0,headers:(i=t.init)!=null&&i.headers?new Headers(t.init.headers):void 0}}return{type:be.error,error:t,statusCode:Ho(t)?t.status:void 0}}if(lT(t)){var a,l;return{type:be.deferred,deferredData:t,statusCode:(a=t.init)==null?void 0:a.status,headers:((l=t.init)==null?void 0:l.headers)&&new Headers(t.init.headers)}}if(lm(t)){var u,c;return{type:be.data,data:t.data,statusCode:(u=t.init)==null?void 0:u.status,headers:(c=t.init)!=null&&c.headers?new Headers(t.init.headers):void 0}}return{type:be.data,data:t}}function iT(e,t,r,n,i,s){let o=e.headers.get("Location");if(ae(o,"Redirects returned/thrown from loaders/actions must have a Location header"),!eh.test(o)){let a=n.slice(0,n.findIndex(l=>l.route.id===r)+1);o=Od(new URL(t.url),a,i,!0,o,s),e.headers.set("Location",o)}return e}function rm(e,t,r,n){let i=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];if(eh.test(e)){let s=e,o=s.startsWith("//")?new URL(t.protocol+s):new URL(s);if(i.includes(o.protocol))throw new Error("Invalid redirect location");let a=Mn(o.pathname,r)!=null;if(o.origin===t.origin&&a)return o.pathname+o.search+o.hash}try{let s=n.createURL(e);if(i.includes(s.protocol))throw new Error("Invalid redirect location")}catch{}return e}function Li(e,t,r,n){let i=e.createURL(W0(t)).toString(),s={signal:r};if(n&&ur(n.formMethod)){let{formMethod:o,formEncType:a}=n;s.method=o.toUpperCase(),a==="application/json"?(s.headers=new Headers({"Content-Type":a}),s.body=JSON.stringify(n.json)):a==="text/plain"?s.body=n.text:a==="application/x-www-form-urlencoded"&&n.formData?s.body=Nd(n.formData):s.body=n.formData}return new Request(i,s)}function Nd(e){let t=new URLSearchParams;for(let[r,n]of e.entries())t.append(r,typeof n=="string"?n:n.name);return t}function nm(e){let t=new FormData;for(let[r,n]of e.entries())t.append(r,n);return t}function sT(e,t,r,n,i){let s={},o=null,a,l=!1,u={},c=r&&Dt(r[1])?r[1].error:void 0;return e.forEach(f=>{if(!(f.route.id in t))return;let d=f.route.id,h=t[d];if(ae(!ni(h),"Cannot handle redirect results in processLoaderData"),Dt(h)){let g=h.error;c!==void 0&&(g=c,c=void 0),o=o||{};{let v=Yn(e,d);o[v.route.id]==null&&(o[v.route.id]=g)}s[d]=void 0,l||(l=!0,a=Ho(h.error)?h.error.status:500),h.headers&&(u[d]=h.headers)}else bn(h)?(n.set(d,h.deferredData),s[d]=h.deferredData.data,h.statusCode!=null&&h.statusCode!==200&&!l&&(a=h.statusCode),h.headers&&(u[d]=h.headers)):(s[d]=h.data,h.statusCode&&h.statusCode!==200&&!l&&(a=h.statusCode),h.headers&&(u[d]=h.headers))}),c!==void 0&&r&&(o={[r[0]]:c},s[r[0]]=void 0),{loaderData:s,errors:o,statusCode:a||200,loaderHeaders:u}}function im(e,t,r,n,i,s,o){let{loaderData:a,errors:l}=sT(t,r,n,o);return i.forEach(u=>{let{key:c,match:f,controller:d}=u,h=s[c];if(ae(h,"Did not find corresponding fetcher result"),!(d&&d.signal.aborted))if(Dt(h)){let g=Yn(e.matches,f?.route.id);l&&l[g.route.id]||(l=Oe({},l,{[g.route.id]:h.error})),e.fetchers.delete(c)}else if(ni(h))ae(!1,"Unhandled fetcher revalidation redirect");else if(bn(h))ae(!1,"Unhandled fetcher deferred data");else{let g=an(h.data);e.fetchers.set(c,g)}}),{loaderData:a,errors:l}}function sm(e,t,r,n){let i=Oe({},t);for(let s of r){let o=s.route.id;if(t.hasOwnProperty(o)?t[o]!==void 0&&(i[o]=t[o]):e[o]!==void 0&&s.route.loader&&(i[o]=e[o]),n&&n.hasOwnProperty(o))break}return i}function om(e){return e?Dt(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function Yn(e,t){return(t?e.slice(0,e.findIndex(n=>n.route.id===t)+1):[...e]).reverse().find(n=>n.route.hasErrorBoundary===!0)||e[0]}function am(e){let t=e.length===1?e[0]:e.find(r=>r.index||!r.path||r.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function Et(e,t){let{pathname:r,routeId:n,method:i,type:s,message:o}=t===void 0?{}:t,a="Unknown Server Error",l="Unknown @remix-run/router error";return e===400?(a="Bad Request",i&&r&&n?l="You made a "+i+' request to "'+r+'" but '+('did not provide a `loader` for route "'+n+'", ')+"so there is no way to handle the request.":s==="defer-action"?l="defer() is not supported in actions":s==="invalid-body"&&(l="Unable to encode submission body")):e===403?(a="Forbidden",l='Route "'+n+'" does not match URL "'+r+'"'):e===404?(a="Not Found",l='No route matches URL "'+r+'"'):e===405&&(a="Method Not Allowed",i&&r&&n?l="You made a "+i.toUpperCase()+' request to "'+r+'" but '+('did not provide an `action` for route "'+n+'", ')+"so there is no way to handle the request.":i&&(l='Invalid request method "'+i.toUpperCase()+'"')),new Bl(e||500,a,new Error(l),!0)}function za(e){let t=Object.entries(e);for(let r=t.length-1;r>=0;r--){let[n,i]=t[r];if(ni(i))return{key:n,result:i}}}function W0(e){let t=typeof e=="string"?Rr(e):e;return $n(Oe({},t,{hash:""}))}function oT(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function aT(e){return H0(e.result)&&Kk.has(e.result.status)}function bn(e){return e.type===be.deferred}function Dt(e){return e.type===be.error}function ni(e){return(e&&e.type)===be.redirect}function lm(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function lT(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function H0(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function uT(e){return Vk.has(e.toLowerCase())}function ur(e){return Wk.has(e.toLowerCase())}async function cT(e,t,r,n,i){let s=Object.entries(t);for(let o=0;o<s.length;o++){let[a,l]=s[o],u=e.find(d=>d?.route.id===a);if(!u)continue;let c=n.find(d=>d.route.id===u.route.id),f=c!=null&&!z0(c,u)&&(i&&i[u.route.id])!==void 0;bn(l)&&f&&await th(l,r,!1).then(d=>{d&&(t[a]=d)})}}async function dT(e,t,r){for(let n=0;n<r.length;n++){let{key:i,routeId:s,controller:o}=r[n],a=t[i];e.find(u=>u?.route.id===s)&&bn(a)&&(ae(o,"Expected an AbortController for revalidating fetcher deferred result"),await th(a,o.signal,!0).then(u=>{u&&(t[i]=u)}))}}async function th(e,t,r){if(r===void 0&&(r=!1),!await e.deferredData.resolveData(t)){if(r)try{return{type:be.data,data:e.deferredData.unwrappedData}}catch(i){return{type:be.error,error:i}}return{type:be.data,data:e.deferredData.data}}}function rh(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function lo(e,t){let r=typeof t=="string"?Rr(t).search:t.search;if(e[e.length-1].route.index&&rh(r||""))return e[e.length-1];let n=M0(e);return n[n.length-1]}function um(e){let{formMethod:t,formAction:r,formEncType:n,text:i,formData:s,json:o}=e;if(!(!t||!r||!n)){if(i!=null)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:void 0,text:i};if(s!=null)return{formMethod:t,formAction:r,formEncType:n,formData:s,json:void 0,text:void 0};if(o!==void 0)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:o,text:void 0}}}function mc(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function fT(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function to(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function hT(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function an(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function pT(e,t){try{let r=e.sessionStorage.getItem(F0);if(r){let n=JSON.parse(r);for(let[i,s]of Object.entries(n||{}))s&&Array.isArray(s)&&t.set(i,new Set(s||[]))}}catch{}}function mT(e,t){if(t.size>0){let r={};for(let[n,i]of t)r[n]=[...i];try{e.sessionStorage.setItem(F0,JSON.stringify(r))}catch(n){Dn(!1,"Failed to save applied view transitions in sessionStorage ("+n+").")}}}/** 78 * React Router v6.30.3 79 * 80 * Copyright (c) Remix Software Inc. 81 * 82 * This source code is licensed under the MIT license found in the 83 * LICENSE.md file in the root directory of this source tree. 84 * 85 * @license MIT 86 */function vi(){return vi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
vendor: 6,688 bytes, line 86
86for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},vi.apply(this,arguments)}const bu=w.createContext(null),V0=w.createContext(null),Wn=w.createContext(null),Su=w.createContext(null),Or=w.createContext({outlet:null,matches:[],isDataRoute:!1}),K0=w.createContext(null);function gT(e,t){let{relative:r}=t===void 0?{}:t;Si()||ae(!1);let{basename:n,navigator:i}=w.useContext(Wn),{hash:s,pathname:o,search:a}=Q0(e,{relative:r}),l=o;return n!=="/"&&(l=o==="/"?n:Hr([n,o])),i.createHref({pathname:l,search:a,hash:s})}function Si(){return w.useContext(Su)!=null}function Ei(){return Si()||ae(!1),w.useContext(Su).location}function JR(e){Si()||ae(!1);let{pathname:t}=Ei();return w.useMemo(()=>Rd(e,$0(t)),[t,e])}function q0(e){w.useContext(Wn).static||w.useLayoutEffect(e)}function G0(){let{isDataRoute:e}=w.useContext(Or);return e?RT():vT()}function vT(){Si()||ae(!1);let e=w.useContext(bu),{basename:t,future:r,navigator:n}=w.useContext(Wn),{matches:i}=w.useContext(Or),{pathname:s}=Ei(),o=JSON.stringify(wu(i,r.v7_relativeSplatPath)),a=w.useRef(!1);return q0(()=>{a.current=!0}),w.useCallback(function(u,c){if(c===void 0&&(c={}),!a.current)return;if(typeof u=="number"){n.go(u);return}let f=_u(u,JSON.parse(o),s,c.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:Hr([t,f.pathname])),(c.replace?n.replace:n.push)(f,c.state,c)},[t,n,o,s,e])}const yT=w.createContext(null);function wT(e){let t=w.useContext(Or).outlet;return t&&w.createElement(yT.Provider,{value:e},t)}function YR(){let{matches:e}=w.useContext(Or),t=e[e.length-1];return t?t.params:{}}function Q0(e,t){let{relative:r}=t===void 0?{}:t,{future:n}=w.useContext(Wn),{matches:i}=w.useContext(Or),{pathname:s}=Ei(),o=JSON.stringify(wu(i,n.v7_relativeSplatPath));return w.useMemo(()=>_u(e,JSON.parse(o),s,r==="path"),[e,o,s,r])}function _T(e,t){return J0(e,t)}function J0(e,t,r,n){Si()||ae(!1);let{navigator:i}=w.useContext(Wn),{matches:s}=w.useContext(Or),o=s[s.length-1],a=o?o.params:{};o&&o.pathname;let l=o?o.pathnameBase:"/";o&&o.route;let u=Ei(),c;if(t){var f;let _=typeof t=="string"?Rr(t):t;l==="/"||(f=_.pathname)!=null&&f.startsWith(l)||ae(!1),c=_}else c=u;let d=c.pathname||"/",h=d;if(l!=="/"){let _=l.replace(/^\//,"").split("/");h="/"+d.replace(/^\//,"").split("/").slice(_.length).join("/")}let g=Jn(e,{pathname:h}),v=kT(g&&g.map(_=>Object.assign({},_,{params:Object.assign({},a,_.params),pathname:Hr([l,i.encodeLocation?i.encodeLocation(_.pathname).pathname:_.pathname]),pathnameBase:_.pathnameBase==="/"?l:Hr([l,i.encodeLocation?i.encodeLocation(_.pathnameBase).pathname:_.pathnameBase])})),s,r,n);return t&&v?w.createElement(Su.Provider,{value:{location:vi({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:We.Pop}},v):v}function bT(){let e=CT(),t=Ho(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return w.createElement(w.Fragment,null,w.createElement("h2",null,"Unexpected Application Error!"),w.createElement("h3",{style:{fontStyle:"italic"}},t),r?w.createElement("pre",{style:i},r):null,null)}const ST=w.createElement(bT,null);class ET extends w.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error!==void 0?w.createElement(Or.Provider,{value:this.props.routeContext},w.createElement(K0.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function xT(e){let{routeContext:t,match:r,children:n}=e,i=w.useContext(bu);return i&&i.static&&i.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=r.route.id),w.createElement(Or.Provider,{value:t},n)}function kT(e,t,r,n){var i;if(t===void 0&&(t=[]),r===void 0&&(r=null),n===void 0&&(n=null),e==null){var s;if(!r)return null;if(r.errors)e=r.matches;else if((s=n)!=null&&s.v7_partialHydration&&t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let o=e,a=(i=r)==null?void 0:i.errors;if(a!=null){let c=o.findIndex(f=>f.route.id&&a?.[f.route.id]!==void 0);c>=0||ae(!1),o=o.slice(0,Math.min(o.length,c+1))}let l=!1,u=-1;if(r&&n&&n.v7_partialHydration)for(let c=0;c<o.length;c++){let f=o[c];if((f.route.HydrateFallback||f.route.hydrateFallbackElement)&&(u=c),f.route.id){let{loaderData:d,errors:h}=r,g=f.route.loader&&d[f.route.id]===void 0&&(!h||h[f.route.id]===void 0);if(f.route.lazy||g){l=!0,u>=0?o=o.slice(0,u+1):o=[o[0]];break}}}return o.reduceRight((c,f,d)=>{let h,g=!1,v=null,_=null;r&&(h=a&&f.route.id?a[f.route.id]:void 0,v=f.route.errorElement||ST,l&&(u<0&&d===0?(g=!0,_=null):u===d&&(g=!0,_=f.route.hydrateFallbackElement||null)));let m=t.concat(o.slice(0,d+1)),p=()=>{let y;return h?y=v:g?y=_:f.route.Component?y=w.createElement(f.route.Component,null):f.route.element?y=f.route.element:y=c,w.createElement(xT,{match:f,routeContext:{outlet:c,matches:m,isDataRoute:r!=null},children:y})};return r&&(f.route.ErrorBoundary||f.route.errorElement||d===0)?w.createElement(ET,{location:r.location,revalidation:r.revalidation,component:v,error:h,children:p(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):p()},null)}var nh=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(nh||{}),Vo=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Vo||{});function Y0(e){let t=w.useContext(bu);return t||ae(!1),t}function X0(e){let t=w.useContext(V0);return t||ae(!1),t}function TT(e){let t=w.useContext(Or);return t||ae(!1),t}function Z0(e){let t=TT(),r=t.matches[t.matches.length-1];return r.route.id||ae(!1),r.route.id}function CT(){var e;let t=w.useContext(K0),r=X0(Vo.UseRouteError),n=Z0(Vo.UseRouteError);return t!==void 0?t:(e=r.errors)==null?void 0:e[n]}let PT=0;function XR(e){let{router:t,basename:r}=Y0(nh.UseBlocker),n=X0(Vo.UseBlocker),[i,s]=w.useState(""),o=w.useCallback(a=>
86{if(typeof e!="function")return!!e;if(r==="/")return e(a);let{currentLocation:l,nextLocation:u,historyAction:c}=a;return e({currentLocation:vi({},l,{pathname:Mn(l.pathname,r)||l.pathname}),nextLocation:vi({},u,{pathname:Mn(u.pathname,r)||u.pathname}),historyAction:c})},[r,e]);return w.useEffect(()=>{let a=String(++PT);return s(a),()=>t.deleteBlocker(a)},[t]),w.useEffect(()=>{i!==""&&t.getBlocker(i,o)},[t,i,o]),i&&n.blockers.has(i)?n.blockers.get(i):zi}function RT(){let{router:e}=Y0(nh.UseNavigateStable),t=Z0(Vo.UseNavigateStable),r=w.useRef(!1);return q0(()=>{r.current=!0}),w.useCallback(function(i,s){s===void 0&&(s={}),r.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,vi({fromRouteId:t},s)))},[e,t])}function ew(e,t){e?.v7_startTransition,e?.v7_relativeSplatPath===void 0&&(!t||t.v7_relativeSplatPath),t&&(t.v7_fetcherPersist,t.v7_normalizeFormMethod,t.v7_partialHydration,t.v7_skipActionErrorRevalidation)}function ZR(e){let{to:t,replace:r,state:n,relative:i}=e;Si()||ae(!1);let{future:s,static:o}=w.useContext(Wn),{matches:a}=w.useContext(Or),{pathname:l}=Ei(),u=G0(),c=_u(t,wu(a,s.v7_relativeSplatPath),l,i==="path"),f=JSON.stringify(c);return w.useEffect(()=>u(JSON.parse(f),{replace:r,state:n,relative:i}),[u,f,i,r,n]),null}function eO(e){return wT(e.context)}function $r(e){ae(!1)}function tw(e){let{basename:t="/",children:r=null,location:n,navigationType:i=We.Pop,navigator:s,static:o=!1,future:a}=e;Si()&&ae(!1);let l=t.replace(/^\/*/,"/"),u=w.useMemo(()=>({basename:l,navigator:s,static:o,future:vi({v7_relativeSplatPath:!1},a)}),[l,a,s,o]);typeof n=="string"&&(n=Rr(n));let{pathname:c="/",search:f="",hash:d="",state:h=null,key:g="default"}=n,v=w.useMemo(()=>{let _=Mn(c,l);return _==null?null:{location:{pathname:_,search:f,hash:d,state:h,key:g},navigationType:i}},[l,c,f,d,h,g,i]);return v==null?null:w.createElement(Wn.Provider,{value:u},w.createElement(Su.Provider,{children:r,value:v}))}function OT(e){let{children:t,location:r}=e;return _T(Ld(t),r)}new Promise(()=>{});function Ld(e,t){t===void 0&&(t=[]);let r=[];return w.Children.forEach(e,(n,i)=>{if(!w.isValidElement(n))return;let s=[...t,i];if(n.type===w.Fragment){r.push.apply(r,Ld(n.props.children,s));return}n.type!==$r&&ae(!1),!n.props.index||!n.props.children||ae(!1);let o={id:n.props.id||s.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(o.children=Ld(n.props.children,s)),r.push(o)}),r}function AT(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:w.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:w.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:w.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** 87 * React Router DOM v6.30.3 88 * 89 * Copyright (c) Remix Software Inc. 90 * 91 * This source code is licensed under the MIT license found in the 92 * LICENSE.md file in the root directory of this source tree. 93 * 94 * @license MIT 95 */function Ko(){return Ko=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ko.apply(this,arguments)}function NT(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,s;for(s=0;s<n.length;s++)i=n[s],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function LT(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function IT(e,t){return e.button===0&&(!t||t==="_self")&&!LT(e)}const jT=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],DT="6";try{window.__reactRouterVersion=DT}catch{}function tO(e,t){return Jk({basename:t?.basename,future:Ko({}
vendor: 5,786 bytes, line 95
95,t?.future,{v7_prependBasename:!0}),history:bk({window:t?.window}),hydrationData:t?.hydrationData||$T(),routes:e,mapRouteProperties:AT,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation,window:t?.window}).initialize()}function $T(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=Ko({},t,{errors:MT(t.errors)})),t}function MT(e){if(!e)return null;let t=Object.entries(e),r={};for(let[n,i]of t)if(i&&i.__type==="RouteErrorResponse")r[n]=new Bl(i.status,i.statusText,i.data,i.internal===!0);else if(i&&i.__type==="Error"){if(i.__subType){let s=window[i.__subType];if(typeof s=="function")try{let o=new s(i.message);o.stack="",r[n]=o}catch{}}if(r[n]==null){let s=new Error(i.message);s.stack="",r[n]=s}}else r[n]=i;return r}const UT=w.createContext({isTransitioning:!1}),FT=w.createContext(new Map),zT="startTransition",Wl=Uw[zT],BT="flushSync",cm=Jb[BT];function WT(e){Wl?Wl(e):e()}function ro(e){cm?cm(e):e()}let HT=class{constructor(){this.status="pending",this.promise=new Promise((t,r)=>{this.resolve=n=>{this.status==="pending"&&(this.status="resolved",t(n))},this.reject=n=>{this.status==="pending"&&(this.status="rejected",r(n))}})}};function nO(e){let{fallbackElement:t,router:r,future:n}=e,[i,s]=w.useState(r.state),[o,a]=w.useState(),[l,u]=w.useState({isTransitioning:!1}),[c,f]=w.useState(),[d,h]=w.useState(),[g,v]=w.useState(),_=w.useRef(new Map),{v7_startTransition:m}=n||{},p=w.useCallback(P=>{m?WT(P):P()},[m]),y=w.useCallback((P,j)=>{let{deletedFetchers:A,flushSync:W,viewTransitionOpts:U}=j;P.fetchers.forEach(($,ne)=>{$.data!==void 0&&_.current.set(ne,$.data)}),A.forEach($=>_.current.delete($));let Z=r.window==null||r.window.document==null||typeof r.window.document.startViewTransition!="function";if(!U||Z){W?ro(()=>s(P)):p(()=>s(P));return}if(W){ro(()=>{d&&(c&&c.resolve(),d.skipTransition()),u({isTransitioning:!0,flushSync:!0,currentLocation:U.currentLocation,nextLocation:U.nextLocation})});let $=r.window.document.startViewTransition(()=>{ro(()=>s(P))});$.finished.finally(()=>{ro(()=>{f(void 0),h(void 0),a(void 0),u({isTransitioning:!1})})}),ro(()=>h($));return}d?(c&&c.resolve(),d.skipTransition(),v({state:P,currentLocation:U.currentLocation,nextLocation:U.nextLocation})):(a(P),u({isTransitioning:!0,flushSync:!1,currentLocation:U.currentLocation,nextLocation:U.nextLocation}))},[r.window,d,c,_,p]);w.useLayoutEffect(()=>r.subscribe(y),[r,y]),w.useEffect(()=>{l.isTransitioning&&!l.flushSync&&f(new HT)},[l]),w.useEffect(()=>{if(c&&o&&r.window){let P=o,j=c.promise,A=r.window.document.startViewTransition(async()=>{p(()=>s(P)),await j});A.finished.finally(()=>{f(void 0),h(void 0),a(void 0),u({isTransitioning:!1})}),h(A)}},[p,o,c,r.window]),w.useEffect(()=>{c&&o&&i.location.key===o.location.key&&c.resolve()},[c,d,i.location,o]),w.useEffect(()=>{!l.isTransitioning&&g&&(a(g.state),u({isTransitioning:!0,flushSync:!1,currentLocation:g.currentLocation,nextLocation:g.nextLocation}),v(void 0))},[l.isTransitioning,g]),w.useEffect(()=>{},[]);let S=w.useMemo(()=>({createHref:r.createHref,encodeLocation:r.encodeLocation,go:P=>r.navigate(P),push:(P,j,A)=>r.navigate(P,{state:j,preventScrollReset:A?.preventScrollReset}),replace:(P,j,A)=>r.navigate(P,{replace:!0,state:j,preventScrollReset:A?.preventScrollReset})}),[r]),x=r.basename||"/",C=w.useMemo(()=>({router:r,navigator:S,static:!1,basename:x}),[r,S,x]),b=w.useMemo(()=>({v7_relativeSplatPath:r.future.v7_relativeSplatPath}),[r.future.v7_relativeSplatPath]);return w.useEffect(()=>ew(n,r.future),[n,r.future]),w.createElement(w.Fragment,null,w.createElement(bu.Provider,{value:C},w.createElement(V0.Provider,{value:i},w.createElement(FT.Provider,{value:_.current},w.createElement(UT.Provider,{value:l},w.createElement(tw,{basename:x,location:i.location,navigationType:i.historyAction,navigator:S,future:b},i.initialized||r.future.v7_partialHydration?w.createElement(VT,{routes:r.routes,future:r.future,state:i}):t))))),null)}const VT=w.memo(KT);function KT(e){let{routes:t,future:r,state:n}=e;return J0(t,void 0,n,r)}function qT(e){let{basename:t,children:r,future:n,window:i}=e,s=w.useRef();s.current==null&&(s.current=_k({window:i,v5Compat:!0}));let o=s.current,[a,l]=w.useState({action:o.action,location:o.location}),{v7_startTransition:u}=n||{},c=w.useCallback(f=>{u&&Wl?Wl(()=>l(f)):l(f)},[l,u]);return w.useLayoutEffect(()=>o.listen(c),[o,c]),w.useEffect(()=>ew(n),[n]),w.createElement(tw,{basename:t,children:r,location:a.location,navigationType:a.action,navigator:o,future:n})}const GT=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",QT=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,iO=w.forwardRef(function(t,r){let{onClick:n,relative:i,reloadDocument:s,replace:o,state:a,target:l,to:u,preventScrollReset:c,viewTransition:f}=t,d=NT(t,jT),{basename:h}=w.useContext(Wn),g,v=!1;if(typeof u=="string"&&QT.test(u)&&(g=u,GT))try{let y=new URL(window.location.href),S=u.startsWith("//")?new URL(y.protocol+u):new URL(u),x=Mn(S.pathname,h);S.origin===y.origin&&x!=null?u=x+S.search+S.hash:v=!0}catch{}let _=gT(u,{relative:i}),m=JT(u,{replace:o,state:a,target:l,preventScrollReset:c,relative:i,viewTransition:f});function p(y){n&&n(y),y.defaultPrevented||m(y)}return w.createElement("a",Ko({},d,{href:g||_,onClick:v||s?n:p,ref:r,target:l}))});var dm;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(dm||(dm={}));var fm;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(fm||(fm={}));function JT(e,t){let{target:r,replace:n,state:i,preventScrollReset:s,relative:o,viewTransition:a}=t===void 0?{}
95:t,l=G0(),u=Ei(),c=Q0(e,{relative:o});return w.useCallback(f=>{if(IT(f,r)){f.preventDefault();let d=n!==void 0?n:$n(u)===$n(c);l(e,{replace:d,state:i,preventScrollReset:s,relative:o,viewTransition:a})}},[u,l,c,n,i,r,e,s,o,a])}function YT(e,t,r,n){function i(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(c){try{u(n.next(c))}catch(f){o(f)}}function l(c){try{u(n.throw(c))}catch(f){o(f)}}function u(c){c.done?s(c.value):i(c.value).then(a,l)}u((n=n.apply(e,t||[])).next())})}const XT=e=>e?(...t)=>e(...t):(...t)=>fetch(...t);class ih extends Error{constructor(t,r="FunctionsError",n){super(t),this.name=r,this.context=n}}class ZT extends ih{constructor(t){super("Failed to send a request to the Edge Function","FunctionsFetchError",t)}}class hm extends ih{constructor(t){super("Relay Error invoking the Edge Function","FunctionsRelayError",t)}}class pm extends ih{constructor(t){super("Edge Function returned a non-2xx status code","FunctionsHttpError",t)}}var Id;(function(e){e.Any="any",e.ApNortheast1="ap-northeast-1",e.ApNortheast2="ap-northeast-2",e.ApSouth1="ap-south-1",e.ApSoutheast1="ap-southeast-1",e.ApSoutheast2="ap-southeast-2",e.CaCentral1="ca-central-1",e.EuCentral1="eu-central-1",e.EuWest1="eu-west-1",e.EuWest2="eu-west-2",e.EuWest3="eu-west-3",e.SaEast1="sa-east-1",e.UsEast1="us-east-1",e.UsWest1="us-west-1",e.UsWest2="us-west-2"})(Id||(Id={}));class eC{constructor(t,{headers:r={},customFetch:n,region:i=Id.Any}={}){this.url=t,this.headers=r,this.region=i,this.fetch=XT(n)}setAuth(t){this.headers.Authorization=`Bearer ${t}`}invoke(t){return YT(this,arguments,void 0,function*(r,n={}){var i;let s,o;try{const{headers:a,method:l,body:u,signal:c,timeout:f}=n;let d={},{region:h}=n;h||(h=this.region);const g=new URL(`${this.url}/${r}`);h&&h!=="any"&&(d["x-region"]=h,g.searchParams.set("forceFunctionRegion",h));let v;u&&(a&&!Object.prototype.hasOwnProperty.call(a,"Content-Type")||!a)?typeof Blob<"u"&&u instanceof Blob||u instanceof ArrayBuffer?(d["Content-Type"]="application/octet-stream",v=u):typeof u=="string"?(d["Content-Type"]="text/plain",v=u):typeof FormData<"u"&&u instanceof FormData?v=u:(d["Content-Type"]="application/json",v=JSON.stringify(u)):u&&typeof u!="string"&&!(typeof Blob<"u"&&u instanceof Blob)&&!(u instanceof ArrayBuffer)&&!(typeof FormData<"u"&&u instanceof FormData)?v=JSON.stringify(u):v=u;let _=c;f&&(o=new AbortController,s=setTimeout(()=>o.abort(),f),c?(_=o.signal,c.addEventListener("abort",()=>o.abort())):_=o.signal);const m=yield this.fetch(g.toString(),{method:l||"POST",headers:Object.assign(Object.assign(Object.assign({},d),this.headers),a),body:v,signal:_}).catch(x=>{throw new ZT(x)}),p=m.headers.get("x-relay-error");if(p&&p==="true")throw new hm(m);if(!m.ok)throw new pm(m);let y=((i=m.headers.get("Content-Type"))!==null&&i!==void 0?i:"text/plain").split(";")[0].trim(),S;return y==="application/json"?S=yield m.json():y==="application/octet-stream"||y==="application/pdf"?S=yield m.blob():y==="text/event-stream"?S=m:y==="multipart/form-data"?S=yield m.formData():S=yield m.text(),{data:S,error:null,response:m}}catch(a){return{data:null,error:a,response:a instanceof pm||a instanceof hm?a.context:void 0}}finally{s&&clearTimeout(s)}})}}var tC=class extends Error{constructor(e){super(e.message),this.name="PostgrestError",this.details=e.details,this.hint=e.hint,this.co
95de=e.code}},rC=class{constructor(e){var t,r,n;this.shouldThrowOnError=!1,this.method=e.method,this.url=e.url,this.headers=new Headers(e.headers),this.schema=e.schema,this.body=e.body,this.shouldThrowOnError=(t=e.shouldThrowOnError)!==null&&t!==void 0?t:!1,this.signal=e.signal,this.isMaybeSingle=(r=e.isMaybeSingle)!==null&&r!==void 0?r:!1,this.urlLengthLimit=(n=e.urlLengthLimit)!==null&&n!==void 0?n:8e3,e.fetch?this.fetch=e.fetch:this.fetch=fetch}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(e,t){return this.headers=new Headers(this.headers),this.headers.set(e,t),this}then(e,t){var r=this;this.schema===void 0||(["GET","HEAD"].includes(this.method)?this.headers.set("Accept-Profile",this.schema):this.headers.set("Content-Profile",this.schema)),this.method!=="GET"&&this.method!=="HEAD"&&this.headers.set("Content-Type","application/json");const n=this.fetch;let i=n(this.url.toString(),{method:this.method,headers:this.headers,body:JSON.stringify(this.body),signal:this.signal}).then(async s=>{let o=null,a=null,l=null,u=s.status,c=s.statusText;if(s.ok){var f,d;if(r.method!=="HEAD"){var h;const m=await s.text();m===""||(r.headers.get("Accept")==="text/csv"||r.headers.get("Accept")&&(!((h=r.headers.get("Accept"))===null||h===void 0)&&h.includes("application/vnd.pgrst.plan+text"))?a=m:a=JSON.parse(m))}const v=(f=r.headers.get("Prefer"))===null||f===void 0?void 0:f.match(/count=(exact|planned|estimated)/),_=(d=s.headers.get("content-range"))===null||d===void 0?void 0:d.split("/");v&&_&&_.length>1&&(l=parseInt(_[1])),r.isMaybeSingle&&r.method==="GET"&&Array.isArray(a)&&(a.length>1?(o={code:"PGRST116",details:`Results contain ${a.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:"JSON object requested, multiple (or no) rows returned"},a=null,l=null,u=406,c="Not Acceptable"):a.length===1?a=a[0]:a=null)}else{var g;const v=await s.text();try{o=JSON.parse(v),Array.isArray(o)&&s.status===404&&(a=[],o=null,u=200,c="OK")}catch{s.status===404&&v===""?(u=204,c="No Content"):o={message:v}}if(o&&r.isMaybeSingle&&(!(o==null||(g=o.details)===null||g===void 0)&&g.includes("0 rows"))&&(o=null,u=200,c="OK"),o&&r.shouldThrowOnError)throw new tC(o)}return{error:o,data:a,count:l,status:u,statusText:c}});return this.shouldThrowOnError||(i=i.catch(s=>{var o;let a="",l="",u="";const c=s?.cause;if(c){var f,d,h,g;const m=(f=c?.message)!==null&&f!==void 0?f:"",p=(d=c?.code)!==null&&d!==void 0?d:"";a=`${(h=s?.name)!==null&&h!==void 0?h:"FetchError"}: ${s?.message}`,a+=` 96 97Caused by: ${(g=c?.name)!==null&&g!==void 0?g:"Error"}: ${m}`,p&&(a+=` (${p})`),c?.stack&&(a+=` 98${c.stack}`)}else{var v;a=(v=s?.stack)!==null&&v!==void 0?v:""}const _=this.url.toString().length;return s?.name==="AbortError"||s?.code==="ABORT_ERR"?(u="",l="Request was aborted (timeout or manual cancellation)",_>this.urlLengthLimit&&(l+=`. Note: Your request URL is ${_} 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.`)):(c?.name==="HeadersOverflowError"||c?.code==="UND_ERR_HEADERS_OVERFLOW")&&(u="",l="HTTP headers exceeded server limits (typically 16KB)",_>this.urlLengthLimit&&(l+=`. Your request URL is ${_} 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.`)),{error:{message:`${(o=s?.name)!==null&&o!==void 0?o:"FetchError"}: ${s?.message}`,details:a,hint:l,code:u},data:null,count:null,status:0,statusText:""}})),i.then(e,t)}returns(){return this}overrideTypes(){return this}},nC=class extends rC{select(e){let t=!1;const r=(e??"*").split("").map(n=>/\s/.test(n)&&!t?"":(n==='"'&&(t=!t),n)).join("");return this.url.searchParams.set("select",r),this.headers.append("Prefer","return=representation"),this}order(e,{ascending:t=!0,nullsFirst:r,foreignTable:n,referencedTable:i=n}={}){const s=i?`${i}.order`:"order",o=this.url.searchParams.get(s);return this.url.searchParams.set(s,`${o?`${o},`:""}${e}.${t?"asc":"desc"}${r===void 0?"":r?".nullsfirst":".nullslast"}`),this}limit(e,{foreignTable:t,referencedTable:r=t}={}){const n=typeof r>"u"?"limit":`${r}.limit`;return this.url.searchParams.set(n,`${e}`),this}range(e,t,{foreignTable:r,referencedTable:n=r}={}){const i=typeof n>"u"?"offset":`${n}.offset`,s=typeof n>"u"?"limit":`${n}.limit`;return this.url.searchParams.set(i,`${e}`),this.url.searchParams.set(s,`${t-e+1}`),this}abortSignal(e){return this.signal=e,this}single(){return this.headers.set("Accept","application/vnd.pgrst.object+json"),this}maybeSingle(){return this.method==="GET"?this.headers.set("Accept","application/json"):this.headers.set("Accept","application/vnd.pgrst.object+json"),this.isMaybeSingle=!0,this}csv(){return this.headers.set("Accept","text/csv"),this}geojson(){return this.headers.set("Accept","application/geo+json"),this}
98explain({analyze:e=!1,verbose:t=!1,settings:r=!1,buffers:n=!1,wal:i=!1,format:s="text"}={}){var o;const a=[e?"analyze":null,t?"verbose":null,r?"settings":null,n?"buffers":null,i?"wal":null].filter(Boolean).join("|"),l=(o=this.headers.get("Accept"))!==null&&o!==void 0?o:"application/json";return this.headers.set("Accept",`application/vnd.pgrst.plan+${s}; for="${l}"; options=${a};`),s==="json"?this:this}rollback(){return this.headers.append("Prefer","tx=rollback"),this}returns(){return this}maxAffected(e){return this.headers.append("Prefer","handling=strict"),this.headers.append("Prefer",`max-affected=${e}`),this}};const mm=new RegExp("[,()]");var Bi=class extends nC{eq(e,t){return this.url.searchParams.append(e,`eq.${t}`),this}neq(e,t){return this.url.searchParams.append(e,`neq.${t}`),this}gt(e,t){return this.url.searchParams.append(e,`gt.${t}`),this}gte(e,t){return this.url.searchParams.append(e,`gte.${t}`),this}lt(e,t){return this.url.searchParams.append(e,`lt.${t}`),this}lte(e,t){return this.url.searchParams.append(e,`lte.${t}`),this}like(e,t){return this.url.searchParams.append(e,`like.${t}`),this}likeAllOf(e,t){return this.url.searchParams.append(e,`like(all).{${t.join(",")}}`),this}likeAnyOf(e,t){return this.url.searchParams.append(e,`like(any).{${t.join(",")}}`),this}ilike(e,t){return this.url.searchParams.append(e,`ilike.${t}`),this}ilikeAllOf(e,t){return this.url.searchParams.append(e,`ilike(all).{${t.join(",")}}`),this}ilikeAnyOf(e,t){return this.url.searchParams.append(e,`ilike(any).{${t.join(",")}}`),this}regexMatch(e,t){return this.url.searchParams.append(e,`match.${t}`),this}regexIMatch(e,t){return this.url.searchParams.append(e,`imatch.${t}`),this}is(e,t){return this.url.searchParams.append(e,`is.${t}`),this}isDistinct(e,t){return this.url.searchParams.append(e,`isdistinct.${t}`),this}in(e,t){const r=Array.from(new Set(t)).map(n=>typeof n=="string"&&mm.test(n)?`"${n}"`:`${n}`).join(",");return this.url.searchParams.append(e,`in.(${r})`),this}notIn(e,t){const r=Array.from(new Set(t)).map(n=>typeof n=="string"&&mm.test(n)?`"${n}"`:`${n}`).join(",");return this.url.searchParams.append(e,`not.in.(${r})`),this}contains(e,t){return typeof t=="string"?this.url.searchParams.append(e,`cs.${t}`):Array.isArray(t)?this.url.searchParams.append(e,`cs.{${t.join(",")}}`):this.url.searchParams.append(e,`cs.${JSON.stringify(t)}`),this}containedBy(e,t){return typeof t=="string"?this.url.searchParams.append(e,`cd.${t}`):Array.isArray(t)?this.url.searchParams.append(e,`cd.{${t.join(",")}}`):this.url.searchParams.append(e,`cd.${JSON.stringify(t)}`),this}rangeGt(e,t){return this.url.searchParams.append(e,`sr.${t}`),this}rangeGte(e,t){return this.url.searchParams.append(e,`nxl.${t}`),this}rangeLt(e,t){return this.url.searchParams.append(e,`sl.${t}`),this}rangeLte(e,t){return this.url.searchParams.append(e,`nxr.${t}`),this}rangeAdjacent(e,t){return this.url.searchParams.append(e,`adj.${t}`),this}overlaps(e,t){return typeof t=="string"?this.url.searchParams.append(e,`ov.${t}`):this.url.searchParams.append(e,`ov.{${t.join(",")}}`),this}textSearch(e,t,{config:r,type:n}={}){let i="";n==="plain"?i="pl":n==="phrase"?i="ph":n==="websearch"&&(i="w");const s=r===void 0?"":`(${r})`;return this.url.searchParams.append(e,`${i}fts${s}.${t}`),this}match(e){return Object.entries(e).forEach(([t,r])=>{this.url.searchParams.append(t,`eq.${r}`)}),this}not(e,t,r){return this.url.searchParams.append(e,`not.${t}.${r}`),this}or(e,{foreignTable:t,referencedTable:r=t}={}){const n=r?`${r}.or`:"or";return this.url.searchParams.append(n,`(${e})`),this}filter(e,t,r){return this.url.searchParams.append(e,`${t}.${r}`),this}},iC=class{constructor(e,{headers:t={},schema:r,fetch:n,urlLengthLimit:i=8e3}){this.url=e,this.headers=new Headers(t),this.schema=r,this.fetch=n,this.urlLengthLimit=i}cloneRequestState(){return{url:new URL(this.url.toString()),headers:new Headers(this.headers)}}select(e,t){const{head:r=!1,count:n}=t??{},i=r?"HEAD":"GET";let s=!1;const o=(e??"*").split("").map(u=>/\s/.test(u)&&!s?"":(u==='"'&&(s=!s),u)).join(""),{url:a,headers:l}=this.cloneRequestState();return a.searchParams.set("select",o),n&&l.append("Prefer",`count=${n}`),new Bi({method:i,url:a,headers:l,schema:this.schema,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit})}insert(e,{count:t,defaultToNull:r=!0}={}){var n;const i="POST",{url:s,headers:o}=this.cloneRequestState();if(t&&o.append("Prefer",`count=${t}`),r||o.append("Prefer","missing=default"),Array.isArray(e)){const a=e.reduce((l,u)=>l.concat(Object.keys(u)),[]);if(a.length>
980){const l=[...new Set(a)].map(u=>`"${u}"`);s.searchParams.set("columns",l.join(","))}}return new Bi({method:i,url:s,headers:o,schema:this.schema,body:e,fetch:(n=this.fetch)!==null&&n!==void 0?n:fetch,urlLengthLimit:this.urlLengthLimit})}upsert(e,{onConflict:t,ignoreDuplicates:r=!1,count:n,defaultToNull:i=!0}={}){var s;const o="POST",{url:a,headers:l}=this.cloneRequestState();if(l.append("Prefer",`resolution=${r?"ignore":"merge"}-duplicates`),t!==void 0&&a.searchParams.set("on_conflict",t),n&&l.append("Prefer",`count=${n}`),i||l.append("Prefer","missing=default"),Array.isArray(e)){const u=e.reduce((c,f)=>c.concat(Object.keys(f)),[]);if(u.length>0){const c=[...new Set(u)].map(f=>`"${f}"`);a.searchParams.set("columns",c.join(","))}}return new Bi({method:o,url:a,headers:l,schema:this.schema,body:e,fetch:(s=this.fetch)!==null&&s!==void 0?s:fetch,urlLengthLimit:this.urlLengthLimit})}update(e,{count:t}={}){var r;const n="PATCH",{url:i,headers:s}=this.cloneRequestState();return t&&s.append("Prefer",`count=${t}`),new Bi({method:n,url:i,headers:s,schema:this.schema,body:e,fetch:(r=this.fetch)!==null&&r!==void 0?r:fetch,urlLengthLimit:this.urlLengthLimit})}delete({count:e}={}){var t;const r="DELETE",{url:n,headers:i}=this.cloneRequestState();return e&&i.append("Prefer",`count=${e}`),new Bi({method:r,url:n,headers:i,schema:this.schema,fetch:(t=this.fetch)!==null&&t!==void 0?t:fetch,urlLengthLimit:this.urlLengthLimit})}};function qo(e){"@babel/helpers - typeof";return qo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qo(e)}function sC(e,t){if(qo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(qo(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function oC(e){var t=sC(e,"string");return qo(t)=="symbol"?t:t+""}function aC(e,t,r){return(t=oC(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ba(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?gm(Object(r),!0).forEach(function(n){aC(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var lC=class rw{constructor(t,{headers:r={},schema:n,fetch:i,timeout:s,urlLengthLimit:o=8e3}={}){this.url=t,this.headers=new Headers(r),this.schemaName=n,this.urlLengthLimit=o;const a=i??globalThis.fetch;s!==void 0&&s>0?this.fetch=(l,u)=>{const c=new AbortController,f=setTimeout(()=>c.abort(),s),d=u?.signal;if(d){if(d.aborted)return clearTimeout(f),a(l,u);const h=()=>{clearTimeout(f),c.abort()};return d.addEventListener("abort",h,{once:!0}),a(l,Ba(Ba({},u),{},{signal:c.signal})).finally(()=>{clearTimeout(f),d.removeEventListener("abort",h)})}return a(l,Ba(Ba({},u),{},{signal:c.signal})).finally(()=>clearTimeout(f))}:this.fetch=a}from(t){if(!t||typeof t!="string"||t.trim()==="")throw new Error("Invalid relation name: relation must be a non-empty string.");return new iC(new URL(`${this.url}/${t}`),{headers:new Headers(this.headers),schema:this.schemaName,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit})}schema(t){return new rw(this.url,{headers:this.headers,schema:t,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit})}rpc(t,r={},{head:n=!1,get:i=!1,count:s}={}){var o;let a;const l=new URL(`${this.url}/rpc/${t}`);let u;const c=h=>h!==null&&typeof h=="object"&&(!Array.isArray(h)||h.some(c)),f=n&&Object.values(r).some(c);f?(a="POST",u=r):n||i?(a=n?"HEAD":"GET",Object.entries(r).filter(([h,g])=>g!==void 0).map(([h,g])=>[h,Array.isArray(g)?`{${g.join(",")}}`:`${g}
98`]).forEach(([h,g])=>{l.searchParams.append(h,g)})):(a="POST",u=r);const d=new Headers(this.headers);return f?d.set("Prefer",s?`count=${s},return=minimal`:"return=minimal"):s&&d.set("Prefer",`count=${s}`),new Bi({method:a,url:l,headers:d,schema:this.schemaName,body:u,fetch:(o=this.fetch)!==null&&o!==void 0?o:fetch,urlLengthLimit:this.urlLengthLimit})}};class uC{constructor(){}static detectEnvironment(){var t;if(typeof WebSocket<"u")return{type:"native",constructor:WebSocket};if(typeof globalThis<"u"&&typeof globalThis.WebSocket<"u")return{type:"native",constructor:globalThis.WebSocket};if(typeof global<"u"&&typeof global.WebSocket<"u")return{type:"native",constructor:global.WebSocket};if(typeof globalThis<"u"&&typeof globalThis.WebSocketPair<"u"&&typeof globalThis.WebSocket>"u")return{type:"cloudflare",error:"Cloudflare Workers detected. WebSocket clients are not supported in Cloudflare Workers.",workaround:"Use Cloudflare Workers WebSocket API for server-side WebSocket handling, or deploy to a different runtime."};if(typeof globalThis<"u"&&globalThis.EdgeRuntime||typeof navigator<"u"&&(!((t=navigator.userAgent)===null||t===void 0)&&t.includes("Vercel-Edge")))return{type:"unsupported",error:"Edge runtime detected (Vercel Edge/Netlify Edge). WebSockets are not supported in edge functions.",workaround:"Use serverless functions or a different deployment target for WebSocket functionality."};const r=globalThis.process;if(r){const n=r.versions;if(n&&n.node){const i=n.node,s=parseInt(i.replace(/^v/,"").split(".")[0]);return s>=22?typeof globalThis.WebSocket<"u"?{type:"native",constructor:globalThis.WebSocket}:{type:"unsupported",error:`Node.js ${s} detected but native WebSocket not found.`,workaround:"Provide a WebSocket implementation via the transport option."}:{type:"unsupported",error:`Node.js ${s} detected without native WebSocket support.`,workaround:`For Node.js < 22, install "ws" package and provide it via the transport option: 99import ws from "ws" 100new RealtimeClient(url, { transport: ws })`}}}return{type:"unsupported",error:"Unknown JavaScript runtime without WebSocket support.",workaround:"Ensure you're running in a supported environment (browser, Node.js, Deno) or provide a custom WebSocket implementation."}}static getWebSocketConstructor(){const t=this.detectEnvironment();if(t.constructor)return t.constructor;let r=t.error||"WebSocket not supported in this environment.";throw t.workaround&&(r+=` 101 102Suggested solution: ${t.workaround}`),new Error(r)}static createWebSocket(t,r){const n=this.getWebSocketConstructor();return new n(t,r)}static isWebSocketSupported(){try{const t=this.detectEnvironment();return t.type==="native"||t.type==="ws"}catch{return!1}}}const cC="2.97.0",dC=`realtime-js/${cC}`,fC="1.0.0",nw="2.0.0",vm=nw,jd=1e4,hC=1e3,pC=100;var cn;(function(e){e[e.connecting=0]="connecting",e[e.open=1]="open",e[e.closing=2]="closing",e[e.closed=3]="closed"})(cn||(cn={}));var Ge;(function(e){e.closed="closed",e.errored="errored",e.joined="joined",e.joining="joining",e.leaving="leaving"})(Ge||(Ge={}));var cr;(function(e){e.close="phx_close",e.error="phx_error",e.join="phx_join",e.reply="phx_reply",e.leave="phx_leave",e.access_token="access_token"})(cr||(cr={}));var Dd;(function(e){e.websocket="websocket"})(Dd||(Dd={}));var Xn;(function(e){e.Connecting="connecting",e.Open="open",e.Closing="closing",e.Closed="closed"})(Xn||(Xn={}));class mC{constructor(t){this.HEADER_LENGTH=1,this.USER_BROADCAST_PUSH_META_LENGTH=6,this.KINDS={userBroadcastPush:3,userBroadcast:4},this.BINARY_ENCODING=0,this.JSON_ENCODING=1,this.BROADCAST_EVENT="broadcast",this.allowedMetadataKeys=[],this.allowedMetadataKeys=t??[]}encode(t,r){if(t.event===this.BROADCAST_EVENT&&!(t.payload instanceof ArrayBuffer)&&typeof t.payload.event=="string")return r(this._binaryEncodeUserBroadcastPush(t));let n=[t.join_ref,t.ref,t.topic,t.event,t.payload];return r(JSON.stringify(n))}_binaryEncodeUserBroadcastPush(t){var r;return this._isArrayBuffer((r=t.payload)===null||r===void 0?void 0:r.payload)?this._encodeBinaryUserBroadcastPush(t):this._encodeJsonUserBroadcastPush(t)}_encodeBinaryUserBroadcastPush(t){var r,n;const i=(n=(r=t.payload)===null||r===void 0?void 0:r.payload)!==null&&n!==void 0?n:new ArrayBuffer(0);return this._encodeUserBroadcastPush(t,this.BINARY_ENCODING,i)}_encodeJsonUserBroadcastPush(t){var r,n;const i=(n=(r=t.payload)===null||r===void 0?void 0:r.payload)!==null&&n!==void 0?n:{},o=new TextEncoder().encode(JSON.stringify(i)).buffer;return this._encodeUserBroadcastPush(t,this.JSON_ENCODING,o)}_encodeUserBroadcastPush(t,r,n){var i,s;const o=t.topic,a=(i=t.ref)!==null&&i!==void 0?i:"",l=(s=t.join_ref)!==null&&s!==void 0?s:"",u=t.payload.event,c=this.allowedMetadataKeys?this._pick(t.payload,this.allowedMetadataKeys):{},f=Object.keys(c).length===0?"":JSON.stringify(c);if(l.length>255)throw new Error(`joinRef length ${l.length} exceeds maximum of 255`);if(a.length>255)throw new Error(`ref length ${a.length} exceeds maximum of 255`);if(o.length>255)throw new Error(`topic length ${o.length} exceeds maximum of 255`);if(u.length>255)throw new Error(`userEvent length ${u.length} exceeds maximum of 255`);if(f.length>255)throw new Error(`metadata length ${f.length} exceeds maximum of 255`);const d=this.USER_BROADCAST_PUSH_META_LENGTH+l.length+a.length+o.length+u.length+f.length,h=new ArrayBuffer(this.HEADER_LENGTH+d);
102let g=new DataView(h),v=0;g.setUint8(v++,this.KINDS.userBroadcastPush),g.setUint8(v++,l.length),g.setUint8(v++,a.length),g.setUint8(v++,o.length),g.setUint8(v++,u.length),g.setUint8(v++,f.length),g.setUint8(v++,r),Array.from(l,m=>g.setUint8(v++,m.charCodeAt(0))),Array.from(a,m=>g.setUint8(v++,m.charCodeAt(0))),Array.from(o,m=>g.setUint8(v++,m.charCodeAt(0))),Array.from(u,m=>g.setUint8(v++,m.charCodeAt(0))),Array.from(f,m=>g.setUint8(v++,m.charCodeAt(0)));var _=new Uint8Array(h.byteLength+n.byteLength);return _.set(new Uint8Array(h),0),_.set(new Uint8Array(n),h.byteLength),_.buffer}decode(t,r){if(this._isArrayBuffer(t)){let n=this._binaryDecode(t);return r(n)}if(typeof t=="string"){const n=JSON.parse(t),[i,s,o,a,l]=n;return r({join_ref:i,ref:s,topic:o,event:a,payload:l})}return r({})}_binaryDecode(t){const r=new DataView(t),n=r.getUint8(0),i=new TextDecoder;switch(n){case this.KINDS.userBroadcast:return this._decodeUserBroadcast(t,r,i)}}_decodeUserBroadcast(t,r,n){const i=r.getUint8(1),s=r.getUint8(2),o=r.getUint8(3),a=r.getUint8(4);let l=this.HEADER_LENGTH+4;const u=n.decode(t.slice(l,l+i));l=l+i;const c=n.decode(t.slice(l,l+s));l=l+s;const f=n.decode(t.slice(l,l+o));l=l+o;const d=t.slice(l,t.byteLength),h=a===this.JSON_ENCODING?JSON.parse(n.decode(d)):d,g={type:this.BROADCAST_EVENT,event:c,payload:h};return o>0&&(g.meta=JSON.parse(f)),{join_ref:null,ref:null,topic:u,event:this.BROADCAST_EVENT,payload:g}}_isArrayBuffer(t){var r;return t instanceof ArrayBuffer||((r=t?.constructor)===null||r===void 0?void 0:r.name)==="ArrayBuffer"}_pick(t,r){return!t||typeof t!="object"?{}:Object.fromEntries(Object.entries(t).filter(([n])=>r.includes(n)))}}class iw{constructor(t,r){this.callback=t,this.timerCalc=r,this.timer=void 0,this.tries=0,this.callback=t,this.timerCalc=r}reset(){this.tries=0,clearTimeout(this.timer),this.timer=void 0}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries=this.tries+1,this.callback()},this.timerCalc(this.tries+1))}}var xe;(function(e){e.abstime="abstime",e.bool="bool",e.date="date",e.daterange="daterange",e.float4="float4",e.float8="float8",e.int2="int2",e.int4="int4",e.int4range="int4range",e.int8="int8",e.int8range="int8range",e.json="json",e.jsonb="jsonb",e.money="money",e.numeric="numeric",e.oid="oid",e.reltime="reltime",e.text="text",e.time="time",e.timestamp="timestamp",e.timestamptz="timestamptz",e.timetz="timetz",e.tsrange="tsrange",e.tstzrange="tstzrange"})(xe||(xe={}));const ym=(e,t,r={})=>{var n;const i=(n=r.skipTypes)!==null&&n!==void 0?n:[];return t?Object.keys(t).reduce((s,o)=>(s[o]=gC(o,e,t,i),s),{}):{}},gC=(e,t,r,n)=>{const i=t.find(a=>a.name===e),s=i?.type,o=r[e];return s&&!n.includes(s)?sw(s,o):$d(o)},sw=(e,t)=>{if(e.charAt(0)==="_"){const r=e.slice(1,e.length);return _C(t,r)}switch(e){case xe.bool:return vC(t);case xe.float4:case xe.float8:case xe.int2:case xe.int4:case xe.int8:case xe.numeric:case xe.oid:return yC(t);case xe.json:case xe.jsonb:return wC(t);case xe.timestamp:return bC(t);case xe.abstime:case xe.date:case xe.daterange:case xe.int4range:case xe.int8range:case xe.money:case xe.reltime:case xe.text:case xe.time:case xe.timestamptz:case xe.timetz:case xe.tsrange:case xe.tstzrange:return $d(t);default:return $d(t)}},$d=e=>e,vC=e=>{switch(e){case"t":return!0;case"f":return!1;default:return e}},yC=e=>{if(typeof e=="string"){const t=parseFloat(e);if(!Number.isNaN(t))return t}return e},wC=e=>{if(typeof e=="string")try{return JSON.parse(e)}catch{return e}return e},_C=(e,t)=>{if(typeof e!="string")return e;const r=e.length-1,n=e[r];if(e[0]==="{"&&n==="}"){let s;const o=e.slice(1,r);try{s=JSON.parse("["+o+"]")}catch{s=o?o.split(","):[]}return s.map(a=>sw(t,a))}return e},bC=e=>typeof e=="string"?e.replace(" ","T"):e,ow=e=>{const t=new URL(e);return t.protocol=t.protocol.replace(/^ws/i,"http"),t.pathname=t.pathname.replace(/\/+$/,"").replace(/\/socket\/websocket$/i,"").replace(/\/socket$/i,"").replace(/\/websocket$/i,""),t.pathname===""||t.pathname==="/"?t.pathname="/api/broadcast":t.pathname=t.pathname+"/api/broadcast",t.href};class gc{constructor(t,r,n={},i=jd){this.channel=t,this.event=r,this.payload=n,this.timeout=i,this.sent=!1,this.timeoutTimer=void 0,this.ref="",this.receivedResp=null,this.recHo
vendor: 4,302 bytes, line 102
102oks=[],this.refEvent=null}resend(t){this.timeout=t,this._cancelRefEvent(),this.ref="",this.refEvent=null,this.receivedResp=null,this.sent=!1,this.send()}send(){this._hasReceived("timeout")||(this.startTimeout(),this.sent=!0,this.channel.socket.push({topic:this.channel.topic,event:this.event,payload:this.payload,ref:this.ref,join_ref:this.channel._joinRef()}))}updatePayload(t){this.payload=Object.assign(Object.assign({},this.payload),t)}receive(t,r){var n;return this._hasReceived(t)&&r((n=this.receivedResp)===null||n===void 0?void 0:n.response),this.recHooks.push({status:t,callback:r}),this}startTimeout(){if(this.timeoutTimer)return;this.ref=this.channel.socket._makeRef(),this.refEvent=this.channel._replyEventName(this.ref);const t=r=>{this._cancelRefEvent(),this._cancelTimeout(),this.receivedResp=r,this._matchReceive(r)};this.channel._on(this.refEvent,{},t),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}trigger(t,r){this.refEvent&&this.channel._trigger(this.refEvent,{status:t,response:r})}destroy(){this._cancelRefEvent(),this._cancelTimeout()}_cancelRefEvent(){this.refEvent&&this.channel._off(this.refEvent,{})}_cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=void 0}_matchReceive({status:t,response:r}){this.recHooks.filter(n=>n.status===t).forEach(n=>n.callback(r))}_hasReceived(t){return this.receivedResp&&this.receivedResp.status===t}}var wm;(function(e){e.SYNC="sync",e.JOIN="join",e.LEAVE="leave"})(wm||(wm={}));class bo{constructor(t,r){this.channel=t,this.state={},this.pendingDiffs=[],this.joinRef=null,this.enabled=!1,this.caller={onJoin:()=>{},onLeave:()=>{},onSync:()=>{}};const n=r?.events||{state:"presence_state",diff:"presence_diff"};this.channel._on(n.state,{},i=>{const{onJoin:s,onLeave:o,onSync:a}=this.caller;this.joinRef=this.channel._joinRef(),this.state=bo.syncState(this.state,i,s,o),this.pendingDiffs.forEach(l=>{this.state=bo.syncDiff(this.state,l,s,o)}),this.pendingDiffs=[],a()}),this.channel._on(n.diff,{},i=>{const{onJoin:s,onLeave:o,onSync:a}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(i):(this.state=bo.syncDiff(this.state,i,s,o),a())}),this.onJoin((i,s,o)=>{this.channel._trigger("presence",{event:"join",key:i,currentPresences:s,newPresences:o})}),this.onLeave((i,s,o)=>{this.channel._trigger("presence",{event:"leave",key:i,currentPresences:s,leftPresences:o})}),this.onSync(()=>{this.channel._trigger("presence",{event:"sync"})})}static syncState(t,r,n,i){const s=this.cloneDeep(t),o=this.transformState(r),a={},l={};return this.map(s,(u,c)=>{o[u]||(l[u]=c)}),this.map(o,(u,c)=>{const f=s[u];if(f){const d=c.map(_=>_.presence_ref),h=f.map(_=>_.presence_ref),g=c.filter(_=>h.indexOf(_.presence_ref)<0),v=f.filter(_=>d.indexOf(_.presence_ref)<0);g.length>0&&(a[u]=g),v.length>0&&(l[u]=v)}else a[u]=c}),this.syncDiff(s,{joins:a,leaves:l},n,i)}static syncDiff(t,r,n,i){const{joins:s,leaves:o}={joins:this.transformState(r.joins),leaves:this.transformState(r.leaves)};return n||(n=()=>{}),i||(i=()=>{}),this.map(s,(a,l)=>{var u;const c=(u=t[a])!==null&&u!==void 0?u:[];if(t[a]=this.cloneDeep(l),c.length>0){const f=t[a].map(h=>h.presence_ref),d=c.filter(h=>f.indexOf(h.presence_ref)<0);t[a].unshift(...d)}n(a,c,l)}),this.map(o,(a,l)=>{let u=t[a];if(!u)return;const c=l.map(f=>f.presence_ref);u=u.filter(f=>c.indexOf(f.presence_ref)<0),t[a]=u,i(a,u,l),u.length===0&&delete t[a]}),t}static map(t,r){return Object.getOwnPropertyNames(t).map(n=>r(n,t[n]))}static transformState(t){return t=this.cloneDeep(t),Object.getOwnPropertyNames(t).reduce((r,n)=>{const i=t[n];return"metas"in i?r[n]=i.metas.map(s=>(s.presence_ref=s.phx_ref,delete s.phx_ref,delete s.phx_ref_prev,s)):r[n]=i,r},{})}static cloneDeep(t){return JSON.parse(JSON.stringify(t))}onJoin(t){this.caller.onJoin=t}onLeave(t){this.caller.onLeave=t}onSync(t){this.caller.onSync=t}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel._joinRef()}}var _m;(function(e){e.ALL="*",e.INSERT="INSERT",e.UPDATE="UPDATE",e.DELETE="DELETE"})(_m||(_m={}));var So;(function(e){e.BROADCAST="broadcast",e.PRESENCE="presence",e.POSTGRES_CHANGES="postgres_changes",e.SYSTEM="system"})(So||(So={}));var Ur;(function(e){e.SUBSCRIBED="SUBSCRIBED",e.TIMED_OUT="TIMED_OUT",e.CLOSED="CLOSED",e.CHANNEL_ERROR="CHANNEL_ERROR"})(Ur||(Ur={}));
102class ns{constructor(t,r={config:{}},n){var i,s;if(this.topic=t,this.params=r,this.socket=n,this.bindings={},this.state=Ge.closed,this.joinedOnce=!1,this.pushBuffer=[],this.subTopic=t.replace(/^realtime:/i,""),this.params.config=Object.assign({broadcast:{ack:!1,self:!1},presence:{key:"",enabled:!1},private:!1},r.config),this.timeout=this.socket.timeout,this.joinPush=new gc(this,cr.join,this.params,this.timeout),this.rejoinTimer=new iw(()=>this._rejoinUntilConnected(),this.socket.reconnectAfterMs),this.joinPush.receive("ok",()=>{this.state=Ge.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(o=>o.send()),this.pushBuffer=[]}),this._onClose(()=>{this.rejoinTimer.reset(),this.socket.log("channel",`close ${this.topic} ${this._joinRef()}`),this.state=Ge.closed,this.socket._remove(this)}),this._onError(o=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,o),this.state=Ge.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("timeout",()=>{this._isJoining()&&(this.socket.log("channel",`timeout ${this.topic}`,this.joinPush.timeout),this.state=Ge.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("error",o=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,o),this.state=Ge.errored,this.rejoinTimer.scheduleTimeout())}),this._on(cr.reply,{},(o,a)=>{this._trigger(this._replyEventName(a),o)}),this.presence=new bo(this),this.broadcastEndpointURL=ow(this.socket.endPoint),this.private=this.params.config.private||!1,!this.private&&(!((s=(i=this.params.config)===null||i===void 0?void 0:i.broadcast)===null||s===void 0)&&s.replay))throw`tried to use replay on public channel '${this.topic}'. It must be a private channel.`}subscribe(t,r=this.timeout){var n,i,s;if(this.socket.isConnected()||this.socket.connect(),this.state==Ge.closed){const{config:{broadcast:o,presence:a,private:l}}=this.params,u=(i=(n=this.bindings.postgres_changes)===null||n===void 0?void 0:n.map(h=>h.filter))!==null&&i!==void 0?i:[],c=!!this.bindings[So.PRESENCE]&&this.bindings[So.PRESENCE].length>0||((s=this.params.config.presence)===null||s===void 0?void 0:s.enabled)===!0,f={},d={broadcast:o,presence:Object.assign(Object.assign({},a),{enabled:c}),postgres_changes:u,private:l};this.socket.accessTokenValue&&(f.access_token=this.socket.accessTokenValue),this._onError(h=>t?.(Ur.CHANNEL_ERROR,h)),this._onClose(()=>t?.(Ur.CLOSED)),this.updateJoinPayload(Object.assign({config:d},f)),this.joinedOnce=!0,this._rejoin(r),this.joinPush.receive("ok",async({postgres_changes:h})=>{var g;if(this.socket._isManualToken()||this.socket.setAuth(),h===void 0){t?.(Ur.SUBSCRIBED);return}else{const v=this.bindings.postgres_changes,_=(g=v?.length)!==null&&g!==void 0?g:0,m=[];for(let p=0;p<_;p++){const y=v[p],{filter:{event:S,schema:x,table:C,filter:b}}=y,P=h&&h[p];if(P&&P.event===S&&ns.isFilterValueEqual(P.schema,x)&&ns.isFilterValueEqual(P.table,C)&&ns.isFilterValueEqual(P.filter,b))m.push(Object.assign(Object.assign({},y),{id:P.id}));else{this.unsubscribe(),this.state=Ge.errored,t?.(Ur.CHANNEL_ERROR,new Error("mismatch between server and client bindings for postgres changes"));return}}this.bindings.postgres_changes=m,t&&t(Ur.SUBSCRIBED);return}}).receive("error",h=>{this.state=Ge.errored,t?.(Ur.CHANNEL_ERROR,new Error(JSON.stringify(Object.values(h).join(", ")||"error")))}).receive("timeout",()=>{t?.(Ur.TIMED_OUT)})}return this}presenceState(){return this.presence.state}async track(t,r={}){return await this.send({type:"presence",event:"track",payload:t},r.timeout||this.timeout)}async untrack(t={}){return await this.send({type:"presence",event:"untrack"},t)}on(t,r,n){return this.state===Ge.joined&&t===So.PRESENCE&&(this.socket.log("channel",`resubscribe to ${this.topic} due to change in presence callbacks on joined channel`),this.unsubscribe().then(async()=>await this.subscribe())),this._on(t,r,n)}async httpSend(t,r,n={}){var i;if(r==null)return Promise.reject("Payload is required for httpSend()");const s={apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"};this.socket.accessTokenValue&&(s.Authorization=`Bearer ${this.socket.accessTokenValue}`);const o={method:"POST",headers:s,body:JSON.stringify({messages:[{topic:this.subTopic,event:t,payload:r,private:this.private}]})},a=await this._fetchWithTimeout(this.broadcastEndpointURL,o,(i=n.timeout)!==null&&i!==void 0?i:this.timeout);if(a.status===202)return{success:!0};let l=a.statusText;
102try{const u=await a.json();l=u.error||u.message||l}catch{}return Promise.reject(new Error(l))}async send(t,r={}){var n,i;if(!this._canPush()&&t.type==="broadcast"){console.warn("Realtime send() is automatically falling back to REST API. This behavior will be deprecated in the future. Please use httpSend() explicitly for REST delivery.");const{event:s,payload:o}=t,a={apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"};this.socket.accessTokenValue&&(a.Authorization=`Bearer ${this.socket.accessTokenValue}`);const l={method:"POST",headers:a,body:JSON.stringify({messages:[{topic:this.subTopic,event:s,payload:o,private:this.private}]})};try{const u=await this._fetchWithTimeout(this.broadcastEndpointURL,l,(n=r.timeout)!==null&&n!==void 0?n:this.timeout);return await((i=u.body)===null||i===void 0?void 0:i.cancel()),u.ok?"ok":"error"}catch(u){return u.name==="AbortError"?"timed out":"error"}}else return new Promise(s=>{var o,a,l;const u=this._push(t.type,t,r.timeout||this.timeout);t.type==="broadcast"&&!(!((l=(a=(o=this.params)===null||o===void 0?void 0:o.config)===null||a===void 0?void 0:a.broadcast)===null||l===void 0)&&l.ack)&&s("ok"),u.receive("ok",()=>s("ok")),u.receive("error",()=>s("error")),u.receive("timeout",()=>s("timed out"))})}updateJoinPayload(t){this.joinPush.updatePayload(t)}unsubscribe(t=this.timeout){this.state=Ge.leaving;const r=()=>{this.socket.log("channel",`leave ${this.topic}`),this._trigger(cr.close,"leave",this._joinRef())};this.joinPush.destroy();let n=null;return new Promise(i=>{n=new gc(this,cr.leave,{},t),n.receive("ok",()=>{r(),i("ok")}).receive("timeout",()=>{r(),i("timed out")}).receive("error",()=>{i("error")}),n.send(),this._canPush()||n.trigger("ok",{})}).finally(()=>{n?.destroy()})}teardown(){this.pushBuffer.forEach(t=>t.destroy()),this.pushBuffer=[],this.rejoinTimer.reset(),this.joinPush.destroy(),this.state=Ge.closed,this.bindings={}}async _fetchWithTimeout(t,r,n){const i=new AbortController,s=setTimeout(()=>i.abort(),n),o=await this.socket.fetch(t,Object.assign(Object.assign({},r),{signal:i.signal}));return clearTimeout(s),o}_push(t,r,n=this.timeout){if(!this.joinedOnce)throw`tried to push '${t}' to '${this.topic}' before joining. Use channel.subscribe() before pushing events`;let i=new gc(this,t,r,n);return this._canPush()?i.send():this._addToPushBuffer(i),i}_addToPushBuffer(t){if(t.startTimeout(),this.pushBuffer.push(t),this.pushBuffer.length>pC){const r=this.pushBuffer.shift();r&&(r.destroy(),this.socket.log("channel",`discarded push due to buffer overflow: ${r.event}`,r.payload))}}_onMessage(t,r,n){return r}_isMember(t){return this.topic===t}_joinRef(){return this.joinPush.ref}_trigger(t,r,n){var i,s;const o=t.toLocaleLowerCase(),{close:a,error:l,leave:u,join:c}=cr;if(n&&[a,l,u,c].indexOf(o)>=0&&n!==this._joinRef())return;let d=this._onMessage(o,r,n);if(r&&!d)throw"channel onMessage callbacks must return the payload, modified or unmodified";["insert","update","delete"].includes(o)?(i=this.bindings.postgres_changes)===null||i===void 0||i.filter(h=>{var g,v,_;return((g=h.filter)===null||g===void 0?void 0:g.event)==="*"||((_=(v=h.filter)===null||v===void 0?void 0:v.event)===null||_===void 0?void 0:_.toLocaleLowerCase())===o}).map(h=>h.callback(d,n)):(s=this.bindings[o])===null||s===void 0||s.filter(h=>{var g,v,_,m,p,y;if(["broadcast","presence","postgres_changes"].includes(o))if("id"in h){const S=h.id,x=(g=h.filter)===null||g===void 0?void 0:g.event;return S&&((v=r.ids)===null||v===void 0?void 0:v.includes(S))&&(x==="*"||x?.toLocaleLowerCase()===((_=r.data)===null||_===void 0?void 0:_.type.toLocaleLowerCase()))}else{const S=(p=(m=h?.filter)===null||m===void 0?void 0:m.event)===null||p===void 0?void 0:p.toLocaleLowerCase();return S==="*"||S===((y=r?.event)===null||y===void 0?void 0:y.toLocaleLowerCase())}else return h.type.toLocaleLowerCase()===o}).map(h=>{if(typeof d=="object"&&"ids"in d){const g=d.data,{schema:v,table:_,commit_timestamp:m,type:p,errors:y}=g;d=Object.assign(Object.assign({},{schema:v,table:_,commit_timestamp:m,eventType:p,new:{},old:{},errors:y}),this._getPayloadRecords(g))}h.callback(d,n)})}_isClosed(){return this.state===Ge.closed}_isJoined(){return this.state===Ge.joined}_isJoining(){return this.state===Ge.joining}_isLeaving(){return this.state===Ge.leaving}_replyEventName(t){return`chan_reply_${t}`}_on(t,r,n){const i=t.toLocaleLowerCase(),s={type:i,filter:r,callback:n};return this.bindings[i]?this.bindings[i].push(s):this.bindings[i]=[s],this}_off(t,r){const n=t.toLocaleLowerCase();return this.bindings[n]&&(this.bindings[n]=this.bindings[n].filter(i=>{var s;return!(((s=i.type)===null||s===void 0?void 0:s.toLocaleLowerCase())===n&&ns.isEqual(i.filter,r))})),this}static isEqual(t,r){if(Object.keys(t).length!==Object.keys(r).length)return!1;for(const n in t)if(t[n]!==r[n])return!1;return!0}static isFilterValueEqual(t,r){return(t??void 0)===(r??void 0)}_rejoinUntilConnected(){this.rejoinTimer.scheduleTimeout(),this.socket.isConnected()&&this._rejoin()}_onClose(t){this._on(cr.close,{},t)}_onError(t){this._on(cr.error,{},r=>t(r))}_canPush(){return this.socket.isConnected()&&this._isJoined()}_rejoin(t=this.timeout){this._isLeaving()||(this.socket._leaveOpenTopic(this.topic),this.state=Ge.joining,this.joinPush.resend(t))}_getPayloadRecords(t){const r={new:{},old:{}};return(t.type==="INSERT"||t.type==="UPDATE")&&(r.new=ym(t.columns,t.record)),(t.type==="UPDATE"||t.type==="DELETE")&&(r.old=ym(t.columns,t.old_record)),r}}const vc=()=>{},Wa={HEARTBEAT_INTERVAL:25e3,RECONNECT_DELAY:10,HEARTBEAT_TIMEOUT_FALLBACK:100},SC=[1e3,2e3,5e3,1e4],EC=1e4,xC=` 103 addEventListener("message", (e) => { 104 if (e.data.event === "start") { 105 setInterval(() => postMessage({ event: "keepAlive" }), e.data.interval); 106 } 107 });`;class kC{constructor(t,r){var n;if(this.accessTokenValue=null,this.apiKey=null,this._manuallySetToken=!1,this.channels=new Array,this.endPoint="",this.httpEndpoint="",this.headers={},this.params={},this.timeout=jd,this.transport=null,this.heartbeatIntervalMs=Wa.HEARTBEAT_INTERVAL,this.heartbeatTimer=void 0,this.pendingHeartbeatRef=null,this.heartbeatCallback=vc,this.ref=0,this.reconnectTimer=null,this.vsn=vm,this.logger=vc,this.conn=null,this.sendBuffer=[],this.serializer
107=new mC,this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.accessToken=null,this._connectionState="disconnected",this._wasManualDisconnect=!1,this._authPromise=null,this._heartbeatSentAt=null,this._resolveFetch=i=>i?(...s)=>i(...s):(...s)=>fetch(...s),!(!((n=r?.params)===null||n===void 0)&&n.apikey))throw new Error("API key is required to connect to Realtime");this.apiKey=r.params.apikey,this.endPoint=`${t}/${Dd.websocket}`,this.httpEndpoint=ow(t),this._initializeOptions(r),this._setupReconnectionTimer(),this.fetch=this._resolveFetch(r?.fetch)}connect(){if(!(this.isConnecting()||this.isDisconnecting()||this.conn!==null&&this.isConnected())){if(this._setConnectionState("connecting"),this.accessToken&&!this._authPromise&&this._setAuthSafely("connect"),this.transport)this.conn=new this.transport(this.endpointURL());else try{this.conn=uC.createWebSocket(this.endpointURL())}catch(t){this._setConnectionState("disconnected");const r=t.message;throw r.includes("Node.js")?new Error(`${r} 108 109To use Realtime in Node.js, you need to provide a WebSocket implementation: 110 111Option 1: Use Node.js 22+ which has native WebSocket support 112Option 2: Install and provide the "ws" package: 113 114 npm install ws 115 116 import ws from "ws" 117 const client = new RealtimeClient(url, { 118 ...options, 119 transport: ws 120 })`):new Error(`WebSocket not available: ${r}`)}this._setupConnectionHandlers()}}endpointURL(){return this._appendParams(this.endPoint,Object.assign({},this.params,{vsn:this.vsn}))}disconnect(t,r){if(!this.isDisconnecting())if(this._setConnectionState("disconnecting",!0),this.conn){const n=setTimeout(()=>{this._setConnectionState("disconnected")},100);this.conn.onclose=()=>{clearTimeout(n),this._setConnectionState("disconnected")},typeof this.conn.close=="function"&&(t?this.conn.close(t,r??""):this.conn.close()),this._teardownConnection()}else this._setConnectionState("disconnected")}getChannels(){return this.channels}async removeChannel(t){const r=await t.unsubscribe();return this.channels.length===0&&this.disconnect(),r}async removeAllChannels(){const t=await Promise.all(this.channels.map(r=>r.unsubscribe()));return this.channels=[],this.disconnect(),t}log(t,r,n){this.logger(t,r,n)}connectionState(){switch(this.conn&&this.conn.readyState){case cn.connecting:return Xn.Connecting;case cn.open:return Xn.Open;case cn.closing:return Xn.Closing;default:return Xn.Closed}}isConnected(){return this.connectionState()===Xn.Open}isConnecting(){return this._connectionState==="connecting"}isDisconnecting(){return this._connectionState==="disconnecting"}channel(t,r={config:{}}){const n=`realtime:${t}`,i=this.getChannels().find(s=>s.topic===n);if(i)return i;{const s=new ns(`realtime:${t}`,r,this);return this.channels.push(s),s}}push(t){const{topic:r,event:n,payload:i,ref:s}=t,o=()=>{this.encode(t,a=>{var l;(l=this.conn)===null||l===void 0||l.send(a)})};this.log("push",`${r} ${n} (${s})`,i),this.isConnected()?o():this.sendBuffer.push(o)}async setAuth(t=null){this._authPromise=this._performAuth(t);try{await this._authPromise}finally{this._authPromise=null}}_isManualToken(){return this._manuallySetToken}async sendHeartbeat(){var t;if(!this.isConnected()){try{this.heartbeatCallback("disconnected")}catch(r){this.log("error","error in heartbeat callback",r)}return}if(this.pendingHeartbeatRef){this.pendingHeartbeatRef=null,this._heartbeatSentAt=null,this.log("transport","heartbeat timeout. Attempting to re-establish connection");try{this.heartbeatCallback("timeout")}catch(r){this.log("error","error in heartbeat callback",r)}this._wasManualDisconnect=!1,(t=this.conn)===null||t===void 0||t.close(hC,"heartbeat timeout"),setTimeout(()=>{var r;this.isConnected()||(r=this.reconnectTimer)===null||r===void 0||r.sc
vendor: 3,886 bytes, line 120
120heduleTimeout()},Wa.HEARTBEAT_TIMEOUT_FALLBACK);return}this._heartbeatSentAt=Date.now(),this.pendingHeartbeatRef=this._makeRef(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef});try{this.heartbeatCallback("sent")}catch(r){this.log("error","error in heartbeat callback",r)}this._setAuthSafely("heartbeat")}onHeartbeat(t){this.heartbeatCallback=t}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(t=>t()),this.sendBuffer=[])}_makeRef(){let t=this.ref+1;return t===this.ref?this.ref=0:this.ref=t,this.ref.toString()}_leaveOpenTopic(t){let r=this.channels.find(n=>n.topic===t&&(n._isJoined()||n._isJoining()));r&&(this.log("transport",`leaving duplicate topic "${t}"`),r.unsubscribe())}_remove(t){this.channels=this.channels.filter(r=>r.topic!==t.topic)}_onConnMessage(t){this.decode(t.data,r=>{if(r.topic==="phoenix"&&r.event==="phx_reply"&&r.ref&&r.ref===this.pendingHeartbeatRef){const u=this._heartbeatSentAt?Date.now()-this._heartbeatSentAt:void 0;try{this.heartbeatCallback(r.payload.status==="ok"?"ok":"error",u)}catch(c){this.log("error","error in heartbeat callback",c)}this._heartbeatSentAt=null,this.pendingHeartbeatRef=null}const{topic:n,event:i,payload:s,ref:o}=r,a=o?`(${o})`:"",l=s.status||"";this.log("receive",`${l} ${n} ${i} ${a}`.trim(),s),this.channels.filter(u=>u._isMember(n)).forEach(u=>u._trigger(i,s,o)),this._triggerStateCallbacks("message",r)})}_clearTimer(t){var r;t==="heartbeat"&&this.heartbeatTimer?(clearInterval(this.heartbeatTimer),this.heartbeatTimer=void 0):t==="reconnect"&&((r=this.reconnectTimer)===null||r===void 0||r.reset())}_clearAllTimers(){this._clearTimer("heartbeat"),this._clearTimer("reconnect")}_setupConnectionHandlers(){this.conn&&("binaryType"in this.conn&&(this.conn.binaryType="arraybuffer"),this.conn.onopen=()=>this._onConnOpen(),this.conn.onerror=t=>this._onConnError(t),this.conn.onmessage=t=>this._onConnMessage(t),this.conn.onclose=t=>this._onConnClose(t),this.conn.readyState===cn.open&&this._onConnOpen())}_teardownConnection(){if(this.conn){if(this.conn.readyState===cn.open||this.conn.readyState===cn.connecting)try{this.conn.close()}catch(t){this.log("error","Error closing connection",t)}this.conn.onopen=null,this.conn.onerror=null,this.conn.onmessage=null,this.conn.onclose=null,this.conn=null}this._clearAllTimers(),this._terminateWorker(),this.channels.forEach(t=>t.teardown())}_onConnOpen(){this._setConnectionState("connected"),this.log("transport",`connected to ${this.endpointURL()}`),(this._authPromise||(this.accessToken&&!this.accessTokenValue?this.setAuth():Promise.resolve())).then(()=>{this.flushSendBuffer()}).catch(r=>{this.log("error","error waiting for auth on connect",r),this.flushSendBuffer()}),this._clearTimer("reconnect"),this.worker?this.workerRef||this._startWorkerHeartbeat():this._startHeartbeat(),this._triggerStateCallbacks("open")}_startHeartbeat(){this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.heartbeatTimer=setInterval(()=>this.sendHeartbeat(),this.heartbeatIntervalMs)}_startWorkerHeartbeat(){this.workerUrl?this.log("worker",`starting worker for from ${this.workerUrl}`):this.log("worker","starting default worker");const t=this._workerObjectUrl(this.workerUrl);this.workerRef=new Worker(t),this.workerRef.onerror=r=>{this.log("worker","worker error",r.message),this._terminateWorker()},this.workerRef.onmessage=r=>{r.data.event==="keepAlive"&&this.sendHeartbeat()},this.workerRef.postMessage({event:"start",interval:this.heartbeatIntervalMs})}_terminateWorker(){this.workerRef&&(this.log("worker","terminating worker"),this.workerRef.terminate(),this.workerRef=void 0)}_onConnClose(t){var r;this._setConnectionState("disconnected"),this.log("transport","close",t),this._triggerChanError(),this._clearTimer("heartbeat"),this._wasManualDisconnect||(r=this.reconnectTimer)===null||r===void 0||r.sc
120heduleTimeout(),this._triggerStateCallbacks("close",t)}_onConnError(t){this._setConnectionState("disconnected"),this.log("transport",`${t}`),this._triggerChanError(),this._triggerStateCallbacks("error",t);try{this.heartbeatCallback("error")}catch(r){this.log("error","error in heartbeat callback",r)}}_triggerChanError(){this.channels.forEach(t=>t._trigger(cr.error))}_appendParams(t,r){if(Object.keys(r).length===0)return t;const n=t.match(/\?/)?"&":"?",i=new URLSearchParams(r);return`${t}${n}${i}`}_workerObjectUrl(t){let r;if(t)r=t;else{const n=new Blob([xC],{type:"application/javascript"});r=URL.createObjectURL(n)}return r}_setConnectionState(t,r=!1){this._connectionState=t,t==="connecting"?this._wasManualDisconnect=!1:t==="disconnecting"&&(this._wasManualDisconnect=r)}async _performAuth(t=null){let r,n=!1;if(t)r=t,n=!0;else if(this.accessToken)try{r=await this.accessToken()}catch(i){this.log("error","Error fetching access token from callback",i),r=this.accessTokenValue}else r=this.accessTokenValue;n?this._manuallySetToken=!0:this.accessToken&&(this._manuallySetToken=!1),this.accessTokenValue!=r&&(this.accessTokenValue=r,this.channels.forEach(i=>{const s={access_token:r,version:dC};r&&i.updateJoinPayload(s),i.joinedOnce&&i._isJoined()&&i._push(cr.access_token,{access_token:r})}))}async _waitForAuthIfNeeded(){this._authPromise&&await this._authPromise}_setAuthSafely(t="general"){this._isManualToken()||this.setAuth().catch(r=>{this.log("error",`Error setting auth in ${t}`,r)})}_triggerStateCallbacks(t,r){try{this.stateChangeCallbacks[t].forEach(n=>{try{n(r)}catch(i){this.log("error",`error in ${t} callback`,i)}})}catch(n){this.log("error",`error triggering ${t} callbacks`,n)}}_setupReconnectionTimer(){this.reconnectTimer=new iw(async()=>{setTimeout(async()=>{await this._waitForAuthIfNeeded(),this.isConnected()||this.connect()},Wa.RECONNECT_DELAY)},this.reconnectAfterMs)}_initializeOptions(t){var r,n,i,s,o,a,l,u,c,f,d,h;switch(this.transport=(r=t?.transport)!==null&&r!==void 0?r:null,this.timeout=(n=t?.timeout)!==null&&n!==void 0?n:jd,this.heartbeatIntervalMs=(i=t?.heartbeatIntervalMs)!==null&&i!==void 0?i:Wa.HEARTBEAT_INTERVAL,this.worker=(s=t?.worker)!==null&&s!==void 0?s:!1,this.accessToken=(o=t?.accessToken)!==null&&o!==void 0?o:null,this.heartbeatCallback=(a=t?.heartbeatCallback)!==null&&a!==void 0?a:vc,this.vsn=(l=t?.vsn)!==null&&l!==void 0?l:vm,t?.params&&(this.params=t.params),t?.logger&&(this.logger=t.logger),(t?.logLevel||t?.log_level)&&(this.logLevel=t.logLevel||t.log_level,this.params=Object.assign(Object.assign({},this.params),{log_level:this.logLevel})),this.reconnectAfterMs=(u=t?.reconnectAfterMs)!==null&&u!==void 0?u:g=>SC[g-1]||EC,this.vsn){case fC:this.encode=(c=t?.encode)!==null&&c!==void 0?c:(g,v)=>v(JSON.stringify(g)),this.decode=(f=t?.decode)!==null&&f!==void 0?f:(g,v)=>v(JSON.parse(g));break;case nw:this.encode=(d=t?.encode)!==null&&d!==void 0?d:this.serializer.encode.bind(this.serializer),this.decode=(h=t?.decode)!==null&&h!==void 0?h:this.serializer.decode.bind(this.serializer);break;default:throw new Error(`Unsupported serializer version: ${this.vsn}`)}if(this.worker){if(typeof window<"u"&&!window.Worker)throw new Error("Web Worker is not supported");this.workerUrl=t?.workerUrl}}}var Go=class extends Error{constructor(e,t){super(e),this.name="IcebergError",this.status=t.status,this.icebergType=t.icebergType,this.icebergCode=t.icebergCode,this.details=t.details,this.isCommitStateUnknown=t.icebergType==="CommitStateUnknownException"||[500,502,504].includes(t.status)&&t.icebergType?.includes("CommitState")===!0}isNotFound(){return this.status===404}isConflict(){return this.status===409}isAuthenticationTimeout(){return this.status===419}};function TC(e,t,r){const n=new URL(t,e);if(r)for(const[i,s]of Object.entries(r))s!==void 0&&n.searchParams.set(i,s);return n.toString()}async function CC(e){return!e||e.type==="none"?{}:e.type==="bearer"?{Authorization:`Bearer ${e.token}`}:e.type==="header"?{[e.name]:e.value}:e.type==="custom"?await e.getHeaders():{}}function PC(e){const t=e.fetchImpl??globalThis.fetch;return{async request({method:r,path:n,query:i,body:s,headers:o}){const a=TC(e.baseUrl,n,i),l=await CC(e.auth),u=await t(a,{method:r,headers:{...s?{"Content-Type":"application/json"}:{},...l,...o},body:s?JSON.stringify(s):void 0}),c=await u.text(),f=(u.headers.get("content-type")||"").includes("application/json"),d=f&&c?JSON.parse(c):c;if(!u.ok){const h=f?d:void 0,g=h?.error;throw new Go(g?.message??`Request failed with status ${u.status}`,{status:u.status,icebergType:g?.type,icebergCode:g?.code,details:h})}return{status:u.status,headers:u.headers,data:d}}}}function Ha(e){return e.join("�")}var RC=class{constructor(e,t=""){this.client=e,this.prefix=t}async listNamespaces(e){const t=e?{parent:Ha(e.namespace)}:void 0;return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces`,query:t})).data.namespaces.map(n=>({namespace:n}))}async createNamespace(e,t){const r={namespace:e.namespace,properties:t?.properties};return(await this.client.request({method:"POST",path:`${this.prefix}/namespaces`,body:r})).data}async dropNamespace(e){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${Ha(e.namespace)}`})}async loadNamespaceMetadata(e){return{properties:(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${Ha(e.namespace)}`})).data.properties}}async namespaceExists(e){try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${Ha(e.namespace)}`}),!0}catch(t){if(t instanceof Go&&t.status===404)return!1;throw t}}async createNamespaceIfNotExists(e,t){try{return await this.createNamespace(e,t)}catch(r){if(r instanceof Go&&r.status===409)return;throw r}}};function Ii(e){return e.join("�")}var OC=class{constructor(e,t="",r){this.client=e,this.prefix=t,this.accessDelegation=r}async listTables(e){return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${Ii(e.namespace)}/tables`})).data.identifiers}async createTable(e,t){const r={};return this.accessDelegation&&(r["X-Iceberg-Access-Delegation"]=this.accessDelegation),(await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${Ii(e.namespace)}/tables`,body:t,headers:r})).data.metadata}async updateTable(e,t){const r=await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${Ii(e.namespace)}/tables/${e.name}`,body:t});return{"metadata-location":r.data["metadata-location"],metadata:r.data.metadata}}async dropTable(e,t){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${Ii(e.namespace)}/tables/${e.name}`,query:{purgeRequested:String(t?.purge??!1)}})}async loadTable(e){const t={};return this.accessDelegation&&(t["X-Iceberg-Access-Delegation"]=this.accessDelegation),(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${Ii(e.namespace)}/tables/${e.name}`,headers:t})).data.metadata}async tableExists(e){const t={};this.accessDelegation&&(t["X-Iceberg-Access-Delegation"]=this.accessDelegation);try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${Ii(e.namespace)}/tables/${e.name}`,headers:t}),!0}catch(r){if(r instanceof Go&&r.status===404)return!1;throw r}}async createTableIfNotExists(e,t){try{return await this.createTable(e,t)}catch(r){if(r instanceof Go&&r.status===409)return await this.loadTable({namespace:e.namespace,name:t.name});throw r}}},AC=class{constructor(e){let t="v1";e.catalogName&&(t+=`/${e.catalogName}`);const r=e.baseUrl.endsWith("/")?e.baseUrl:`${e.baseUrl}/`;this.client=PC({baseUrl:r,auth:e.auth,fetchImpl:e.fetch}),this.accessDelegation=e.accessDelegation?.join(","),this.namespaceOps=new RC(this.client,t),this.tableOps=new OC(this.client,t,this.accessDelegation)}async listNamespaces(e){return this.namespaceOps.listNamespaces(e)}async createNamespace(e,t){return this.namespaceOps.createNamespace(e,t)}async dropNamespace(e){await this.namespaceOps.dropNamespace(e)}async loadNamespaceMetadata(e){return this.namespaceOps.loadNamespaceMetadata(e)}async listTables(e){return this.tableOps.listTables(e)}
120async createTable(e,t){return this.tableOps.createTable(e,t)}async updateTable(e,t){return this.tableOps.updateTable(e,t)}async dropTable(e,t){await this.tableOps.dropTable(e,t)}async loadTable(e){return this.tableOps.loadTable(e)}async namespaceExists(e){return this.namespaceOps.namespaceExists(e)}async tableExists(e){return this.tableOps.tableExists(e)}async createNamespaceIfNotExists(e,t){return this.namespaceOps.createNamespaceIfNotExists(e,t)}async createTableIfNotExists(e,t){return this.tableOps.createTableIfNotExists(e,t)}},Eu=class extends Error{constructor(e,t="storage",r,n){super(e),this.__isStorageError=!0,this.namespace=t,this.name=t==="vectors"?"StorageVectorsError":"StorageError",this.status=r,this.statusCode=n}};function xu(e){return typeof e=="object"&&e!==null&&"__isStorageError"in e}var Va=class extends Eu{constructor(e,t,r,n="storage"){super(e,n,t,r),this.name=n==="vectors"?"StorageVectorsApiError":"StorageApiError",this.status=t,this.statusCode=r}toJSON(){return{name:this.name,message:this.message,status:this.status,statusCode:this.statusCode}}},aw=class extends Eu{constructor(e,t,r="storage"){super(e,r),this.name=r==="vectors"?"StorageVectorsUnknownError":"StorageUnknownError",this.originalError=t}};const NC=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),LC=e=>{if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Md=e=>{if(Array.isArray(e))return e.map(r=>Md(r));if(typeof e=="function"||e!==Object(e))return e;const t={};return Object.entries(e).forEach(([r,n])=>{const i=r.replace(/([-_][a-z])/gi,s=>s.toUpperCase().replace(/[-_]/g,""));t[i]=Md(n)}),t},IC=e=>!e||typeof e!="string"||e.length===0||e.length>100||e.trim()!==e||e.includes("/")||e.includes("\\")?!1:/^[\w!.\*'() &$@=;:+,?-]+$/.test(e);function Qo(e){"@babel/helpers - typeof";return Qo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qo(e)}function jC(e,t){if(Qo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Qo(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function DC(e){var t=jC(e,"string");return Qo(t)=="symbol"?t:t+""}function $C(e,t,r){return(t=DC(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ee(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?bm(Object(r),!0).forEach(function(n){$C(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}const Sm=e=>{var t;return e.msg||e.message||e.error_description||(typeof e.error=="string"?e.error:(t=e.error)===null||t===void 0?void 0:t.message)||JSON.stringify(e)},MC=async(e,t,r,n)=>{if(e&&typeof e=="object"&&"status"in e&&"ok"in e&&typeof e.status=="number"&&!r?.noResolveJson){const i=e,s=i.status||500;if(typeof i.json=="function")i.json().then(o=>{const a=o?.statusCode||o?.code||s+"";t(new Va(Sm(o),s,a,n))}).catch(()=>{if(n==="vectors"){const o=s+"";t(new Va(i.statusText||`HTTP ${s} error`,s,o,n))}else{const o=s+"";t(new Va(i.statusText||`HTTP ${s} error`,s,o,n))}});else{const o=s+"";t(new Va(i.statusText||`HTTP ${s} error`,s,o,n))}}else t(new aw(Sm(e),e,n))},UC=(e,t,r,n)=>{const i={method:e,headers:t?.headers||{}};return e==="GET"||e==="HEAD"||!n?ee(ee({},i),r):(LC(n)?(i.headers=ee({"Content-Type":"application/json"},t?.headers),i.body=JSON.stringify(n)):i.body=n,t?.duplex&&(i.duplex=t.duplex),ee(ee({},i),r))};async function no(e,t,r,n,i,s,o){return new Promise((a,l)=>
120{e(r,UC(t,n,i,s)).then(u=>{if(!u.ok)throw u;if(n?.noResolveJson)return u;if(o==="vectors"){const c=u.headers.get("content-type");if(u.headers.get("content-length")==="0"||u.status===204)return{};if(!c||!c.includes("application/json"))return{}}return u.json()}).then(u=>a(u)).catch(u=>MC(u,l,n,o))})}function lw(e="storage"){return{get:async(t,r,n,i)=>no(t,"GET",r,n,i,void 0,e),post:async(t,r,n,i,s)=>no(t,"POST",r,i,s,n,e),put:async(t,r,n,i,s)=>no(t,"PUT",r,i,s,n,e),head:async(t,r,n,i)=>no(t,"HEAD",r,ee(ee({},n),{},{noResolveJson:!0}),i,void 0,e),remove:async(t,r,n,i,s)=>no(t,"DELETE",r,i,s,n,e)}}const FC=lw("storage"),{get:Jo,post:or,put:Ud,head:zC,remove:sh}=FC,Mt=lw("vectors");var Ms=class{constructor(e,t={},r,n="storage"){this.shouldThrowOnError=!1,this.url=e,this.headers=t,this.fetch=NC(r),this.namespace=n}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(e,t){return this.headers=ee(ee({},this.headers),{},{[e]:t}),this}async handleOperation(e){var t=this;try{return{data:await e(),error:null}}catch(r){if(t.shouldThrowOnError)throw r;if(xu(r))return{data:null,error:r};throw r}}},BC=class{constructor(e,t){this.downloadFn=e,this.shouldThrowOnError=t}then(e,t){return this.execute().then(e,t)}async execute(){var e=this;try{return{data:(await e.downloadFn()).body,error:null}}catch(t){if(e.shouldThrowOnError)throw t;if(xu(t))return{data:null,error:t};throw t}}};let uw;uw=Symbol.toStringTag;var WC=class{constructor(e,t){this.downloadFn=e,this.shouldThrowOnError=t,this[uw]="BlobDownloadBuilder",this.promise=null}asStream(){return new BC(this.downloadFn,this.shouldThrowOnError)}then(e,t){return this.getPromise().then(e,t)}catch(e){return this.getPromise().catch(e)}finally(e){return this.getPromise().finally(e)}getPromise(){return this.promise||(this.promise=this.execute()),this.promise}async execute(){var e=this;try{return{data:await(await e.downloadFn()).blob(),error:null}}catch(t){if(e.shouldThrowOnError)throw t;if(xu(t))return{data:null,error:t};throw t}}};const HC={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},Em={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};var VC=class extends Ms{constructor(e,t={},r,n){super(e,t,n,"storage"),this.bucketId=r}async uploadOrUpdate(e,t,r,n){var i=this;return i.handleOperation(async()=>{let s;const o=ee(ee({},Em),n);let a=ee(ee({},i.headers),e==="POST"&&{"x-upsert":String(o.upsert)});const l=o.metadata;typeof Blob<"u"&&r instanceof Blob?(s=new FormData,s.append("cacheControl",o.cacheControl),l&&s.append("metadata",i.encodeMetadata(l)),s.append("",r)):typeof FormData<"u"&&r instanceof FormData?(s=r,s.has("cacheControl")||s.append("cacheControl",o.cacheControl),l&&!s.has("metadata")&&s.append("metadata",i.encodeMetadata(l))):(s=r,a["cache-control"]=`max-age=${o.cacheControl}`,a["content-type"]=o.contentType,l&&(a["x-metadata"]=i.toBase64(i.encodeMetadata(l))),(typeof ReadableStream<"u"&&s instanceof ReadableStream||s&&typeof s=="object"&&"pipe"in s&&typeof s.pipe=="function")&&!o.duplex&&(o.duplex="half")),n?.headers&&(a=ee(ee({},a),n.headers));const u=i._removeEmptyFolders(t),c=i._getFinalPath(u),f=await(e=="PUT"?Ud:or)(i.fetch,`${i.url}/object/${c}`,s,ee({headers:a},o?.duplex?{duplex:o.duplex}:{}));return{path:u,id:f.Id,fullPath:f.Key}})}async upload(e,t,r){return this.uploadOrUpdate("POST",e,t,r)}async uploadToSignedUrl(e,t,r,n){var i=this;const s=i._removeEmptyFolders(e),o=i._getFinalPath(s),a=new URL(i.url+`/object/upload/sign/${o}`);return a.searchParams.set("token",t),i.handleOperation(async()=>{let l;const u=ee({upsert:Em.upsert},n),c=ee(ee({},i.headers),{"x-upsert":String(u.upsert)});return typeof Blob<"u"&&r instanceof Blob?(l=new FormData,l.append("cacheControl",u.cacheControl),l.append("",r)):typeof FormData<"u"&&r instanceof FormData?(l=r,l.append("cacheControl",u.cacheControl)):(l=r,c["cache-control"]=`max-age=${u.cacheControl}`,c["content-type"]=u.contentType),{path:s,fullPath:(await Ud(i.fetch,a.toString(),l,{headers:c})).Key}})}async createSignedUploadUrl(e,t){var r=this;return r.handleOperation(async()=>{let n=r._getFinalPath(e);const i=ee({},r.headers);t?.upsert&&(i["x-upsert"]="true");const s=await or(r.fetch,`${r.url}/object/upload/sign/${n}`,{},{headers:i}),o=new URL(r.url+s.url),a=o.searchParams.get("token");if(!a)throw new Eu("No token returned by API");return{signedUrl:o.toString(),path:e,token:a}})}async update(e,t,r){return this.uploadOrUpdate("PUT",e,t,r)}async move(e,t,r){var n=this;return n.handleOperation(async()=>await or(n.fetch,`${n.url}/object/move`,{bucketId:n.bucketId,sourceKey:e,destinationKey:t,de
120stinationBucket:r?.destinationBucket},{headers:n.headers}))}async copy(e,t,r){var n=this;return n.handleOperation(async()=>({path:(await or(n.fetch,`${n.url}/object/copy`,{bucketId:n.bucketId,sourceKey:e,destinationKey:t,destinationBucket:r?.destinationBucket},{headers:n.headers})).Key}))}async createSignedUrl(e,t,r){var n=this;return n.handleOperation(async()=>{let i=n._getFinalPath(e),s=await or(n.fetch,`${n.url}/object/sign/${i}`,ee({expiresIn:t},r?.transform?{transform:r.transform}:{}),{headers:n.headers});const o=r?.download?`&download=${r.download===!0?"":r.download}`:"";return{signedUrl:encodeURI(`${n.url}${s.signedURL}${o}`)}})}async createSignedUrls(e,t,r){var n=this;return n.handleOperation(async()=>{const i=await or(n.fetch,`${n.url}/object/sign/${n.bucketId}`,{expiresIn:t,paths:e},{headers:n.headers}),s=r?.download?`&download=${r.download===!0?"":r.download}`:"";return i.map(o=>ee(ee({},o),{},{signedUrl:o.signedURL?encodeURI(`${n.url}${o.signedURL}${s}`):null}))})}download(e,t,r){const n=typeof t?.transform<"u"?"render/image/authenticated":"object",i=this.transformOptsToQueryString(t?.transform||{}),s=i?`?${i}`:"",o=this._getFinalPath(e),a=()=>Jo(this.fetch,`${this.url}/${n}/${o}${s}`,{headers:this.headers,noResolveJson:!0},r);return new WC(a,this.shouldThrowOnError)}async info(e){var t=this;const r=t._getFinalPath(e);return t.handleOperation(async()=>Md(await Jo(t.fetch,`${t.url}/object/info/${r}`,{headers:t.headers})))}async exists(e){var t=this;const r=t._getFinalPath(e);try{return await zC(t.fetch,`${t.url}/object/${r}`,{headers:t.headers}),{data:!0,error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(xu(n)&&n instanceof aw){const i=n.originalError;if([400,404].includes(i?.status))return{data:!1,error:n}}throw n}}getPublicUrl(e,t){const r=this._getFinalPath(e),n=[],i=t?.download?`download=${t.download===!0?"":t.download}`:"";i!==""&&n.push(i);const s=typeof t?.transform<"u"?"render/image":"object",o=this.transformOptsToQueryString(t?.transform||{});o!==""&&n.push(o);let a=n.join("&");return a!==""&&(a=`?${a}`),{data:{publicUrl:encodeURI(`${this.url}/${s}/public/${r}${a}`)}}}async remove(e){var t=this;return t.handleOperation(async()=>await sh(t.fetch,`${t.url}/object/${t.bucketId}`,{prefixes:e},{headers:t.headers}))}async list(e,t,r){var n=this;return n.handleOperation(async()=>{const i=ee(ee(ee({},HC),t),{},{prefix:e||""});return await or(n.fetch,`${n.url}/object/list/${n.bucketId}`,i,{headers:n.headers},r)})}async listV2(e,t){var r=this;return r.handleOperation(async()=>{const n=ee({},e);return await or(r.fetch,`${r.url}/object/list-v2/${r.bucketId}`,n,{headers:r.headers},t)})}encodeMetadata(e){return JSON.stringify(e)}toBase64(e){return typeof Buffer<"u"?Buffer.from(e).toString("base64"):btoa(e)}_getFinalPath(e){return`${this.bucketId}/${e.replace(/^\/+/,"")}`}_removeEmptyFolders(e){return e.replace(/^\/|\/$/g,"").replace(/\/+/g,"/")}transformOptsToQueryString(e){const t=[];return e.width&&t.push(`width=${e.width}`),e.height&&t.push(`height=${e.height}`),e.resize&&t.push(`resize=${e.resize}`),e.format&&t.push(`format=${e.format}`),e.quality&&t.push(`quality=${e.quality}`),t.join("&")}};const KC="2.97.0",la={"X-Client-Info":`storage-js/${KC}`};var qC=class extends Ms{constructor(e,t={},r,n){const i=new URL(e);n?.useNewHostname&&/supabase\.(co|in|red)$/.test(i.hostname)&&!i.hostname.includes("storage.supabase.")&&(i.hostname=i.hostname.replace("supabase.","storage.supabase."));const s=i.href.replace(/\/$/,""),o=ee(ee({},la),t);super(s,o,r,"storage")}async listBuckets(e){var t=this;return t.handleOperation(async()=>{const r=t.listBucketOptionsToQueryString(e);return await Jo(t.fetch,`${t.url}/bucket${r}`,{headers:t.headers})})}async getBucket(e){var t=this;return t.handleOperation(async()=>await Jo(t.fetch,`${t.url}/bucket/${e}`,{headers:t.headers}))}async createBucket(e,t={public:!1}){var r=this;return r.handleOperation(async()=>await or(r.fetch,`${r.url}/bucket`,{id:e,name:e,type:t.type,public:t.public,file_size_limit:t.fileSizeLimit,allowed_mime_types:t.allowedMimeTypes},{headers:r.headers}))}async updateBucket(e,t){var r=this;return r.handleOperation(async()=>await Ud(r.fetch,`${r.url}/bucket/${e}`,{id:e,name:e,public:t.public,file_size_limit:t.fileSizeLimit,allowed_mime_types:t.allowedMimeTypes},{headers:r.headers}))}async emptyBucket(e){var t=this;return t.handleOperation(async()=>await or(t.fetch,`${t.url}/bucket/${e}/empty`,{},{headers:t.headers}))}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await sh(t.fetch,`${t.url}/bucket/${e}`,{},{headers:t.headers}))}listBucketOptionsToQueryString(e){const t={};return e&&("limit"in e&&(t.limit=String(e.limit)),"offset"in e&&(t.offset=String(e.offset)),e.search&&(t.search=e.search),e.sortColumn&&(t.sortColumn=e.sortColumn),e.sortOrder&&(t.sortOrder=e.sortOrder)),Object.keys(t).length>0?"?"+new URLSearchParams(t).toString():""}},GC=class extends Ms{constructor(e,t={},r){const n=e.replace(/\/$/,""),i=ee(ee({},la),t);super(n,i,r,"storage")}async createBucket(e){var t=this;return t.handleOperation(async()=>await or(t.fetch,`${t.url}/bucket`,{name:e},{headers:t.headers}))}async listBuckets(e){var t=this;return t.handleOperation(async()=>
120{const r=new URLSearchParams;e?.limit!==void 0&&r.set("limit",e.limit.toString()),e?.offset!==void 0&&r.set("offset",e.offset.toString()),e?.sortColumn&&r.set("sortColumn",e.sortColumn),e?.sortOrder&&r.set("sortOrder",e.sortOrder),e?.search&&r.set("search",e.search);const n=r.toString(),i=n?`${t.url}/bucket?${n}`:`${t.url}/bucket`;return await Jo(t.fetch,i,{headers:t.headers})})}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await sh(t.fetch,`${t.url}/bucket/${e}`,{},{headers:t.headers}))}from(e){var t=this;if(!IC(e))throw new Eu("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 r=new AC({baseUrl:this.url,catalogName:e,auth:{type:"custom",getHeaders:async()=>t.headers},fetch:this.fetch}),n=this.shouldThrowOnError;return new Proxy(r,{get(i,s){const o=i[s];return typeof o!="function"?o:async(...a)=>{try{return{data:await o.apply(i,a),error:null}}catch(l){if(n)throw l;return{data:null,error:l}}}}})}},QC=class extends Ms{constructor(e,t={},r){const n=e.replace(/\/$/,""),i=ee(ee({},la),{},{"Content-Type":"application/json"},t);super(n,i,r,"vectors")}async createIndex(e){var t=this;return t.handleOperation(async()=>await Mt.post(t.fetch,`${t.url}/CreateIndex`,e,{headers:t.headers})||{})}async getIndex(e,t){var r=this;return r.handleOperation(async()=>await Mt.post(r.fetch,`${r.url}/GetIndex`,{vectorBucketName:e,indexName:t},{headers:r.headers}))}async listIndexes(e){var t=this;return t.handleOperation(async()=>await Mt.post(t.fetch,`${t.url}/ListIndexes`,e,{headers:t.headers}))}async deleteIndex(e,t){var r=this;return r.handleOperation(async()=>await Mt.post(r.fetch,`${r.url}/DeleteIndex`,{vectorBucketName:e,indexName:t},{headers:r.headers})||{})}},JC=class extends Ms{constructor(e,t={},r){const n=e.replace(/\/$/,""),i=ee(ee({},la),{},{"Content-Type":"application/json"},t);super(n,i,r,"vectors")}async putVectors(e){var t=this;if(e.vectors.length<1||e.vectors.length>500)throw new Error("Vector batch size must be between 1 and 500 items");return t.handleOperation(async()=>await Mt.post(t.fetch,`${t.url}/PutVectors`,e,{headers:t.headers})||{})}async getVectors(e){var t=this;return t.handleOperation(async()=>await Mt.post(t.fetch,`${t.url}/GetVectors`,e,{headers:t.headers}))}async listVectors(e){var t=this;if(e.segmentCount!==void 0){if(e.segmentCount<1||e.segmentCount>16)throw new Error("segmentCount must be between 1 and 16");if(e.segmentIndex!==void 0&&(e.segmentIndex<0||e.segmentIndex>=e.segmentCount))throw new Error(`segmentIndex must be between 0 and ${e.segmentCount-1}`)}return t.handleOperation(async()=>await Mt.post(t.fetch,`${t.url}/ListVectors`,e,{headers:t.headers}))}async queryVectors(e){var t=this;return t.handleOperation(async()=>await Mt.post(t.fetch,`${t.url}/QueryVectors`,e,{headers:t.headers}))}async deleteVectors(e){var t=this;if(e.keys.length<1||e.keys.length>500)throw new Error("Keys batch size must be between 1 and 500 items");return t.handleOperation(async()=>await Mt.post(t.fetch,`${t.url}/DeleteVectors`,e,{headers:t.headers})||{})}},YC=class extends Ms{constructor(e,t={},r){const n=e.replace(/\/$/,""),i=ee(ee({},la),{},{"Content-Type":"application/json"},t);super(n,i,r,"vectors")}async createBucket(e){var t=this;return t.handleOperation(async()=>await Mt.post(t.fetch,`${t.url}/CreateVectorBucket`,{vectorBucketName:e},{headers:t.headers})||{})}async getBucket(e){var t=this;return t.handleOperation(async()=>await Mt.post(t.fetch,`${t.url}/GetVectorBucket`,{vectorBucketName:e},{headers:t.headers}))}async listBuckets(e={}){var t=this;return t.handleOperation(async()=>await Mt.post(t.fetch,`${t.url}/ListVectorBuckets`,e,{headers:t.headers}))}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await Mt.post(t.fetch,`${t.url}/DeleteVectorBucket`,{vectorBucketName:e},{headers:t.headers})||{})}},XC=class extends YC{constructor(e,t={}){super(e,t.headers||{},t.fetch)}from(e){return new ZC(this.url,this.headers,e,this.fetch)}async createBucket(e){var t=()=>super.createBucket,r=this;return t().call(r,e)}async getBucket(e){var t=()=>super.getBucket,r=this;return t().call(r,e)}async listBuckets(e={}){var t=()=>super.listBuckets,r=this;return t().call(r,e)}async deleteBucket(e){var t=()=>super.deleteBucket,r=this;return t().call(r,e)}},ZC=class extends QC{constructor(e,t,r,n){super(e,t,n),this.vectorBucketName=r}async createIndex(e){var t=()=>super.createIndex,r=this;return t().call(r,ee(ee({},e),{},{vectorBucketName:r.vectorBucketName}))}
120async listIndexes(e={}){var t=()=>super.listIndexes,r=this;return t().call(r,ee(ee({},e),{},{vectorBucketName:r.vectorBucketName}))}async getIndex(e){var t=()=>super.getIndex,r=this;return t().call(r,r.vectorBucketName,e)}async deleteIndex(e){var t=()=>super.deleteIndex,r=this;return t().call(r,r.vectorBucketName,e)}index(e){return new eP(this.url,this.headers,this.vectorBucketName,e,this.fetch)}},eP=class extends JC{constructor(e,t,r,n,i){super(e,t,i),this.vectorBucketName=r,this.indexName=n}async putVectors(e){var t=()=>super.putVectors,r=this;return t().call(r,ee(ee({},e),{},{vectorBucketName:r.vectorBucketName,indexName:r.indexName}))}async getVectors(e){var t=()=>super.getVectors,r=this;return t().call(r,ee(ee({},e),{},{vectorBucketName:r.vectorBucketName,indexName:r.indexName}))}async listVectors(e={}){var t=()=>super.listVectors,r=this;return t().call(r,ee(ee({},e),{},{vectorBucketName:r.vectorBucketName,indexName:r.indexName}))}async queryVectors(e){var t=()=>super.queryVectors,r=this;return t().call(r,ee(ee({},e),{},{vectorBucketName:r.vectorBucketName,indexName:r.indexName}))}async deleteVectors(e){var t=()=>super.deleteVectors,r=this;return t().call(r,ee(ee({},e),{},{vectorBucketName:r.vectorBucketName,indexName:r.indexName}))}},tP=class extends qC{constructor(e,t={},r,n){super(e,t,r,n)}from(e){return new VC(this.url,this.headers,e,this.fetch)}get vectors(){return new XC(this.url+"/vector",{headers:this.headers,fetch:this.fetch})}get analytics(){return new GC(this.url+"/iceberg",this.headers,this.fetch)}};function ku(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}const cw="2.97.0",Wi=30*1e3,Fd=3,yc=Fd*Wi,rP="http://localhost:9999",nP="supabase.auth.token",iP={"X-Client-Info":`gotrue-js/${cw}`},zd="X-Supabase-Api-Version",dw={"2024-01-01":{timestamp:Date.parse("2024-01-01T00:00:00.0Z"),name:"2024-01-01"}},sP=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}$|[a-z0-9_-]{2}$)$/i,oP=10*60*1e3;class Yo extends Error{constructor(t,r,n){super(t),this.__isAuthError=!0,this.name="AuthError",this.status=r,this.code=n}}function Q(e){return typeof e=="object"&&e!==null&&"__isAuthError"in e}class aP extends Yo{constructor(t,r,n){super(t,r,n),this.name="AuthApiError",this.status=r,this.code=n}}function lP(e){return Q(e)&&e.name==="AuthApiError"}class Zn extends Yo{constructor(t,r){super(t),this.name="AuthUnknownError",this.originalError=r}}class Zr extends Yo{constructor(t,r,n,i){super(t,n,i),this.name=r,this.status=n}}class Nt extends Zr{constructor(){super("Auth session missing!","AuthSessionMissingError",400,void 0)}}function wc(e){return Q(e)&&e.name==="AuthSessionMissingError"}class ji extends Zr{constructor(){super("Auth session or user missing","AuthInvalidToken
120ResponseError",500,void 0)}}class Ka extends Zr{constructor(t){super(t,"AuthInvalidCredentialsError",400,void 0)}}class qa extends Zr{constructor(t,r=null){super(t,"AuthImplicitGrantRedirectError",500,void 0),this.details=null,this.details=r}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}function uP(e){return Q(e)&&e.name==="AuthImplicitGrantRedirectError"}class xm extends Zr{constructor(t,r=null){super(t,"AuthPKCEGrantCodeExchangeError",500,void 0),this.details=null,this.details=r}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}class cP extends Zr{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 Bd extends Zr{constructor(t,r){super(t,"AuthRetryableFetchError",r,void 0)}}function _c(e){return Q(e)&&e.name==="AuthRetryableFetchError"}class km extends Zr{constructor(t,r,n){super(t,"AuthWeakPasswordError",r,"weak_password"),this.reasons=n}}class Wd extends Zr{constructor(t){super(t,"AuthInvalidJwtError",400,"invalid_jwt")}}const Hl="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),Tm=` 121\r=`.split(""),dP=(()=>{const e=new Array(128);for(let t=0;t<e.length;t+=1)e[t]=-1;for(let t=0;t<Tm.length;t+=1)e[Tm[t].charCodeAt(0)]=-2;for(let t=0;t<Hl.length;t+=1)e[Hl[t].charCodeAt(0)]=t;return e})();function Cm(e,t,r){if(e!==null)for(t.queue=t.queue<<8|e,t.queuedBits+=8;t.queuedBits>=6;){const n=t.queue>>t.queuedBits-6&63;r(Hl[n]),t.queuedBits-=6}else if(t.queuedBits>0)for(t.queue=t.queue<<6-t.queuedBits,t.queuedBits=6;t.queuedBits>=6;){const n=t.queue>>t.queuedBits-6&63;r(Hl[n]),t.queuedBits-=6}}function fw(e,t,r){const n=dP[e];if(n>-1)for(t.queue=t.queue<<6|n,t.queuedBits+=6;t.queuedBits>=8;)r(t.queue>>t.queuedBits-8&255),t.queuedBits-=8;else{if(n===-2)return;throw new Error(`Invalid Base64-URL character "${String.fromCharCode(e)}"`)}}function Pm(e){const t=[],r=o=>{t.push(String.fromCodePoint(o))},n={utf8seq:0,codepoint:0},i={queue:0,queuedBits:0},s=o=>{pP(o,n,r)};for(let o=0;o<e.length;o+=1)fw(e.charCodeAt(o),i,s);return t.join("")}function fP(e,t){if(e<=127){t(e);return}else if(e<=2047){t(192|e>>6),t(128|e&63);return}else if(e<=65535){t(224|e>>12),t(128|e>>6&63),t(128|e&63);return}else if(e<=1114111){t(240|e>>18),t(128|e>>12&63),t(128|e>>6&63),t(128|e&63);return}throw new Error(`Unrecognized Unicode codepoint: ${e.toString(16)}`)}function hP(e,t){for(let r=0;r<e.length;r+=1){let n=e.charCodeAt(r);if(n>55295&&n<=56319){const i=(n-55296)*1024&65535;n=(e.charCodeAt(r+1)-56320&65535|i)+65536,r+=1}fP(n,t)}}function pP(e,t,r){if(t.utf8seq===0){if(e<=127){r(e);return}for(let n=1;n<6;n+=1)if(!(e>>7-n&1)){t.utf8seq=n;break}if(t.utf8seq===2)t.codepoint=e&31;else if(t.utf8seq===3)t.codepoint=e&15;else if(t.utf8seq===4)t.codepoint=e&7;else throw new Error("Invalid UTF-8 sequence");t.utf8seq-=1}else if(t.utf8seq>0){if(e<=127)throw new Error("Invalid UTF-8 sequence");t.codepoint=t.codepoint<<6|e&63,t.utf8seq-=1,t.utf8seq===0&&r(t.codepoint)}}function fs(e){const t=[],r={queue:0,queuedBits:0},n=i=>{t.push(i)};for(let i=0;i<e.length;i+=1)fw(e.charCodeAt(i),r,n);return new Uint8Array(t)}function mP(e){const t=[];return hP(e,r=>t.push(r)),new Uint8Array(t)}function ii(e){const t=[],r={queue:0,queuedBits:0},n=i=>{t.push(i)};return e.forEach(i=>Cm(i,r,n)),Cm(null,r,n),t.join("")}function gP(e){return Math.round(Date.now()/1e3)+e}function vP(){return Symbol("auth-callback")}const tt=()=>typeof window<"u"&&typeof document<"u",Vn={tested:!1,writable:!1},hw=()=>{if(!tt())return!1;try{if(typeof globalThis.localStorage!="object")return!1}catch{return!1}if(Vn.tested)return Vn.writable;const e=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(e,e),globalThis.localStorage.removeItem(e),Vn.tested=!0,Vn.writable=!0}catch{Vn.tested=!0,Vn.writable=!1}return Vn.writable};function yP(e){const t={},r=new URL(e);if(r.hash&&r.hash[0]==="#")try{new URLSearchParams(r.hash.substring(1)).forEac
121h((i,s)=>{t[s]=i})}catch{}return r.searchParams.forEach((n,i)=>{t[i]=n}),t}const pw=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),wP=e=>typeof e=="object"&&e!==null&&"status"in e&&"ok"in e&&"json"in e&&typeof e.json=="function",Hi=async(e,t,r)=>{await e.setItem(t,JSON.stringify(r))},Kn=async(e,t)=>{const r=await e.getItem(t);if(!r)return null;try{return JSON.parse(r)}catch{return r}},et=async(e,t)=>{await e.removeItem(t)};class Tu{constructor(){this.promise=new Tu.promiseConstructor((t,r)=>{this.resolve=t,this.reject=r})}}Tu.promiseConstructor=Promise;function Ga(e){const t=e.split(".");if(t.length!==3)throw new Wd("Invalid JWT structure");for(let n=0;n<t.length;n++)if(!sP.test(t[n]))throw new Wd("JWT not in base64url format");return{header:JSON.parse(Pm(t[0])),payload:JSON.parse(Pm(t[1])),signature:fs(t[2]),raw:{header:t[0],payload:t[1]}}}async function _P(e){return await new Promise(t=>{setTimeout(()=>t(null),e)})}function bP(e,t){return new Promise((n,i)=>{(async()=>{for(let s=0;s<1/0;s++)try{const o=await e(s);if(!t(s,null,o)){n(o);return}}catch(o){if(!t(s,o)){i(o);return}}})()})}function SP(e){return("0"+e.toString(16)).substr(-2)}function EP(){const t=new Uint32Array(56);if(typeof crypto>"u"){const r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",n=r.length;let i="";for(let s=0;s<56;s++)i+=r.charAt(Math.floor(Math.random()*n));return i}return crypto.getRandomValues(t),Array.from(t,SP).join("")}async function xP(e){const r=new TextEncoder().encode(e),n=await crypto.subtle.digest("SHA-256",r),i=new Uint8Array(n);return Array.from(i).map(s=>String.fromCharCode(s)).join("")}async function kP(e){if(!(typeof crypto<"u"&&typeof crypto.subtle<"u"&&typeof TextEncoder<"u"))return console.warn("WebCrypto API is not supported. Code challenge method will default to use plain instead of sha256."),e;const r=await xP(e);return btoa(r).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function Di(e,t,r=!1){const n=EP();let i=n;r&&(i+="/PASSWORD_RECOVERY"),await Hi(e,`${t}-code-verifier`,i);const s=await kP(n);return[s,n===s?"plain":"s256"]}const TP=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;function CP(e){const t=e.headers.get(zd);if(!t||!t.match(TP))return null;try{return new Date(`${t}T00:00:00.0Z`)}catch{return null}}function PP(e){if(!e)throw new Error("Missing exp claim");const t=Math.floor(Date.now()/1e3);if(e<=t)throw new Error("JWT has expired")}function RP(e){switch(e){case"RS256":return{name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}};case"ES256":return{name:"ECDSA",namedCurve:"P-256",hash:{name:"SHA-256"}};default:throw new Error("Invalid alg claim")}}const OP=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;function $i(e){if(!OP.test(e))throw new Error("@supabase/auth-js: Expected parameter to be UUID but is not")}function bc(){const e={};return new Proxy(e,{get:(t,r)=>{if(r==="__isUserNotAvailableProxy")return!0;if(typeof r=="symbol"){const n=r.toString();if(n==="Symbol(Symbol.toPrimitive)"||n==="Symbol(Symbol.toStringTag)"||n==="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 "${r}" property of the session object is not supported. Please use getUser() instead.`)},set:(t,r)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Setting the "${r}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)},deleteProperty:(t,r)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Deleting the "${r}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)}})}function AP(e,t){return new Proxy(e,{get:(r,n,i)=>{if(n==="__isInsecureUserWarningProxy")return!0;if(typeof n=="symbol"){const s=n.toString();if(s==="Symbol(Symbol.toPrimitive)"||s==="Symbol(Symbol.toStringTag)"||s==="Symbol(util.inspect.custom)"||s==="Symbol(nodejs.util.inspect.custom)")return Reflect.get(r,n,i)}return!t.value&&typeof n=="string"&&(console.warn("Using the user object as returned from supabase.auth.getSession() or from some supabase.auth.onAuthStateChange() events could be insecure! This value comes directly from the storage medium (usually cookies on the server) and may not be authentic. Use supabase.auth.getUser() instead which authenticates the data by contacting the Supabase Auth server."),t.value=!0),Reflect.get(r,n,i)}})}function Rm(e){return JSON.parse(JSON.stringify(e))}const Qn=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e),NP=[502,503,504];
vendor: 5,077 bytes, line 121
121async function Om(e){var t;if(!wP(e))throw new Bd(Qn(e),0);if(NP.includes(e.status))throw new Bd(Qn(e),e.status);let r;try{r=await e.json()}catch(s){throw new Zn(Qn(s),s)}let n;const i=CP(e);if(i&&i.getTime()>=dw["2024-01-01"].timestamp&&typeof r=="object"&&r&&typeof r.code=="string"?n=r.code:typeof r=="object"&&r&&typeof r.error_code=="string"&&(n=r.error_code),n){if(n==="weak_password")throw new km(Qn(r),e.status,((t=r.weak_password)===null||t===void 0?void 0:t.reasons)||[]);if(n==="session_not_found")throw new Nt}else if(typeof r=="object"&&r&&typeof r.weak_password=="object"&&r.weak_password&&Array.isArray(r.weak_password.reasons)&&r.weak_password.reasons.length&&r.weak_password.reasons.reduce((s,o)=>s&&typeof o=="string",!0))throw new km(Qn(r),e.status,r.weak_password.reasons);throw new aP(Qn(r),e.status||500,n)}const LP=(e,t,r,n)=>{const i={method:e,headers:t?.headers||{}};return e==="GET"?i:(i.headers=Object.assign({"Content-Type":"application/json;charset=UTF-8"},t?.headers),i.body=JSON.stringify(n),Object.assign(Object.assign({},i),r))};async function te(e,t,r,n){var i;const s=Object.assign({},n?.headers);s[zd]||(s[zd]=dw["2024-01-01"].name),n?.jwt&&(s.Authorization=`Bearer ${n.jwt}`);const o=(i=n?.query)!==null&&i!==void 0?i:{};n?.redirectTo&&(o.redirect_to=n.redirectTo);const a=Object.keys(o).length?"?"+new URLSearchParams(o).toString():"",l=await IP(e,t,r+a,{headers:s,noResolveJson:n?.noResolveJson},{},n?.body);return n?.xform?n?.xform(l):{data:Object.assign({},l),error:null}}async function IP(e,t,r,n,i,s){const o=LP(t,n,i,s);let a;try{a=await e(r,Object.assign({},o))}catch(l){throw console.error(l),new Bd(Qn(l),0)}if(a.ok||await Om(a),n?.noResolveJson)return a;try{return await a.json()}catch(l){await Om(l)}}function nr(e){var t;let r=null;$P(e)&&(r=Object.assign({},e),e.expires_at||(r.expires_at=gP(e.expires_in)));const n=(t=e.user)!==null&&t!==void 0?t:e;return{data:{session:r,user:n},error:null}}function Am(e){const t=nr(e);return!t.error&&e.weak_password&&typeof e.weak_password=="object"&&Array.isArray(e.weak_password.reasons)&&e.weak_password.reasons.length&&e.weak_password.message&&typeof e.weak_password.message=="string"&&e.weak_password.reasons.reduce((r,n)=>r&&typeof n=="string",!0)&&(t.data.weak_password=e.weak_password),t}function hn(e){var t;return{data:{user:(t=e.user)!==null&&t!==void 0?t:e},error:null}}function jP(e){return{data:e,error:null}}function DP(e){const{action_link:t,email_otp:r,hashed_token:n,redirect_to:i,verification_type:s}=e,o=ku(e,["action_link","email_otp","hashed_token","redirect_to","verification_type"]),a={action_link:t,email_otp:r,hashed_token:n,redirect_to:i,verification_type:s},l=Object.assign({},o);return{data:{properties:a,user:l},error:null}}function Nm(e){return e}function $P(e){return e.access_token&&e.refresh_token&&e.expires_in}const Sc=["global","local","others"];class MP{constructor({url:t="",headers:r={},fetch:n}){this.url=t,this.headers=r,this.fetch=pw(n),this.mfa={listFactors:this._listFactors.bind(this),deleteFactor:this._deleteFactor.bind(this)},this.oauth={listClients:this._listOAuthClients.bind(this),createClient:this._createOAuthClient.bind(this),getClient:this._getOAuthClient.bind(this),updateClient:this._updateOAuthClient.bind(this),deleteClient:this._deleteOAuthClient.bind(this),regenerateClientSecret:this._regenerateOAuthClientSecret.bind(this)}}async signOut(t,r=Sc[0]){if(Sc.indexOf(r)<0)throw new Error(`@supabase/auth-js: Parameter scope must be one of ${Sc.join(", ")}`);try{return await te(this.fetch,"POST",`${this.url}/logout?scope=${r}`,{headers:this.headers,jwt:t,noResolveJson:!0}),{data:null,error:null}}catch(n){if(Q(n))return{data:null,error:n};throw n}}async inviteUserByEmail(t,r={}){try{return await te(this.fetch,"POST",`${this.url}/invite`,{body:{email:t,data:r.data},headers:this.headers,redirectTo:r.redirectTo,xform:hn})}catch(n){if(Q(n))return{data:{user:null},error:n};throw n}}async generateLink(t){try{const{options:r}=t,n=ku(t,["options"]),i=Object.assign(Object.assign({},n),r);return"newEmail"in n&&(i.new_email=n?.newEmail,delete i.newEmail),await te(this.fetch,"POST",`${this.url}/admin/generate_link`,{body:i,headers:this.headers,xform:DP,redirectTo:r?.redirectTo})}catch(r){if(Q(r))return{data:{properties:null,user:null},error:r};throw r}}async createUser(t){try{return await te(this.fetch,"POST",`${this.url}/admin/users`,{body:t,headers:this.headers,xform:hn})}catch(r){if(Q(r))return{data:{user:null},error:r};throw r}}async listUsers(t){var r,n,i,s,o,a,l;try{const u={nextPage:null,lastPage:0,total:0},c=await te(this.fetch,"GET",`${this.url}/admin/users`,{headers:this.headers,noResolveJson:!0,query:{page:(n=(r=t?.page)===null||r===void 0?void 0:r.toString())!==null&&n!==void 0?n:"",per_page:(s=(i=t?.perPage)===null||i===void 0?void 0:i.toString())!==null&&s!==void 0?s:""},xform:Nm});if(c.error)throw c.error;const f=await c.json(),d=(o=c.headers.get("x-total-count"))!==null&&o!==void 0?o:0,h=(l=(a=c.headers.get("link"))===null||a===void 0?void 0:a.split(","))!==null&&l!==void 0?l:[];return h.length>
1210&&(h.forEach(g=>{const v=parseInt(g.split(";")[0].split("=")[1].substring(0,1)),_=JSON.parse(g.split(";")[1].split("=")[1]);u[`${_}Page`]=v}),u.total=parseInt(d)),{data:Object.assign(Object.assign({},f),u),error:null}}catch(u){if(Q(u))return{data:{users:[]},error:u};throw u}}async getUserById(t){$i(t);try{return await te(this.fetch,"GET",`${this.url}/admin/users/${t}`,{headers:this.headers,xform:hn})}catch(r){if(Q(r))return{data:{user:null},error:r};throw r}}async updateUserById(t,r){$i(t);try{return await te(this.fetch,"PUT",`${this.url}/admin/users/${t}`,{body:r,headers:this.headers,xform:hn})}catch(n){if(Q(n))return{data:{user:null},error:n};throw n}}async deleteUser(t,r=!1){$i(t);try{return await te(this.fetch,"DELETE",`${this.url}/admin/users/${t}`,{headers:this.headers,body:{should_soft_delete:r},xform:hn})}catch(n){if(Q(n))return{data:{user:null},error:n};throw n}}async _listFactors(t){$i(t.userId);try{const{data:r,error:n}=await te(this.fetch,"GET",`${this.url}/admin/users/${t.userId}/factors`,{headers:this.headers,xform:i=>({data:{factors:i},error:null})});return{data:r,error:n}}catch(r){if(Q(r))return{data:null,error:r};throw r}}async _deleteFactor(t){$i(t.userId),$i(t.id);try{return{data:await te(this.fetch,"DELETE",`${this.url}/admin/users/${t.userId}/factors/${t.id}`,{headers:this.headers}),error:null}}catch(r){if(Q(r))return{data:null,error:r};throw r}}async _listOAuthClients(t){var r,n,i,s,o,a,l;try{const u={nextPage:null,lastPage:0,total:0},c=await te(this.fetch,"GET",`${this.url}/admin/oauth/clients`,{headers:this.headers,noResolveJson:!0,query:{page:(n=(r=t?.page)===null||r===void 0?void 0:r.toString())!==null&&n!==void 0?n:"",per_page:(s=(i=t?.perPage)===null||i===void 0?void 0:i.toString())!==null&&s!==void 0?s:""},xform:Nm});if(c.error)throw c.error;const f=await c.json(),d=(o=c.headers.get("x-total-count"))!==null&&o!==void 0?o:0,h=(l=(a=c.headers.get("link"))===null||a===void 0?void 0:a.split(","))!==null&&l!==void 0?l:[];return h.length>0&&(h.forEach(g=>{const v=parseInt(g.split(";")[0].split("=")[1].substring(0,1)),_=JSON.parse(g.split(";")[1].split("=")[1]);u[`${_}Page`]=v}),u.total=parseInt(d)),{data:Object.assign(Object.assign({},f),u),error:null}}catch(u){if(Q(u))return{data:{clients:[]},error:u};throw u}}async _createOAuthClient(t){try{return await te(this.fetch,"POST",`${this.url}/admin/oauth/clients`,{body:t,headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(Q(r))return{data:null,error:r};throw r}}async _getOAuthClient(t){try{return await te(this.fetch,"GET",`${this.url}/admin/oauth/clients/${t}`,{headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(Q(r))return{data:null,error:r};throw r}}async _updateOAuthClient(t,r){try{return await te(this.fetch,"PUT",`${this.url}/admin/oauth/clients/${t}`,{body:r,headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(Q(n))return{data:null,error:n};throw n}}async _deleteOAuthClient(t){try{return await te(this.fetch,"DELETE",`${this.url}/admin/oauth/clients/${t}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(r){if(Q(r))return{data:null,error:r};throw r}}async _regenerateOAuthClientSecret(t){try{return await te(this.fetch,"POST",`${this.url}/admin/oauth/clients/${t}/regenerate_secret`,{headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(Q(r))return{data:null,error:r};throw r}}}function Lm(e={}){return{getItem:t=>e[t]||null,setItem:(t,r)=>{e[t]=r},removeItem:t=>{delete e[t]}}}const Mi={debug:!!(globalThis&&hw()&&globalThis.localStorage&&globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug")==="true")};class mw extends Error{constructor(t){super(t),this.isAcquireTimeout=!0}}class Im extends mw{}async function UP(e,t,r){Mi.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquire lock",e,t);const n=new globalThis.AbortController;t>0&&setTimeout(()=>{n.abort(),Mi.debug&&console.log("@supabase/gotrue-js: navigatorLock acquire timed out",e)},t),await Promise.resolve();try{return await globalThis.navigator.locks.request(e,t===0?{mode:"exclusive",ifAvailable:!0}:{mode:"exclusive",signal:n.signal}
121,async i=>{if(i){Mi.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquired",e,i.name);try{return await r()}finally{Mi.debug&&console.log("@supabase/gotrue-js: navigatorLock: released",e,i.name)}}else{if(t===0)throw Mi.debug&&console.log("@supabase/gotrue-js: navigatorLock: not immediately available",e),new Im(`Acquiring an exclusive Navigator LockManager lock "${e}" immediately failed`);if(Mi.debug)try{const s=await globalThis.navigator.locks.query();console.log("@supabase/gotrue-js: Navigator LockManager state",JSON.stringify(s,null," "))}catch(s){console.warn("@supabase/gotrue-js: Error when querying Navigator LockManager state",s)}return console.warn("@supabase/gotrue-js: Navigator LockManager returned a null lock when using #request without ifAvailable set to true, it appears this browser is not following the LockManager spec https://developer.mozilla.org/en-US/docs/Web/API/LockManager/request"),await r()}})}catch(i){throw i?.name==="AbortError"?new Im(`Acquiring an exclusive Navigator LockManager lock "${e}" timed out waiting ${t}ms`):i}}function FP(){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 gw(e){if(!/^0x[a-fA-F0-9]{40}$/.test(e))throw new Error(`@supabase/auth-js: Address "${e}" is invalid.`);return e.toLowerCase()}function zP(e){return parseInt(e,16)}function BP(e){const t=new TextEncoder().encode(e);return"0x"+Array.from(t,n=>n.toString(16).padStart(2,"0")).join("")}function WP(e){var t;const{chainId:r,domain:n,expirationTime:i,issuedAt:s=new Date,nonce:o,notBefore:a,requestId:l,resources:u,scheme:c,uri:f,version:d}=e;{if(!Number.isInteger(r))throw new Error(`@supabase/auth-js: Invalid SIWE message field "chainId". Chain ID must be a EIP-155 chain ID. Provided value: ${r}`);if(!n)throw new Error('@supabase/auth-js: Invalid SIWE message field "domain". Domain must be provided.');if(o&&o.length<8)throw new Error(`@supabase/auth-js: Invalid SIWE message field "nonce". Nonce must be at least 8 characters. Provided value: ${o}`);if(!f)throw new Error('@supabase/auth-js: Invalid SIWE message field "uri". URI must be provided.');if(d!=="1")throw new Error(`@supabase/auth-js: Invalid SIWE message field "version". Version must be '1'. Provided value: ${d}`);if(!((t=e.statement)===null||t===void 0)&&t.includes(` 122`))throw new Error(`@supabase/auth-js: Invalid SIWE message field "statement". Statement must not include '\\n'. Provided value: ${e.statement}`)}const h=gw(e.address),g=c?`${c}://${n}`:n,v=e.statement?`${e.statement} 123`:"",_=`${g} wants you to sign in with your Ethereum account: 124${h} 125 126${v}`;let m=`URI: ${f} 127Version: ${d} 128Chain ID: ${r}${o?` 129Nonce: ${o}`:""} 130Issued At: ${s.toISOString()}`;if(i&&(m+=` 131Expiration Time: ${i.toISOString()}`),a&&(m+=` 132Not Before: ${a.toISOString()}`),l&&(m+=` 133Request ID: ${l}`),u){let p=` 134Resources:`;for(const y of u){if(!y||typeof y!="string")throw new Error(`@supabase/auth-js: Invalid SIWE message field "resources". Every resource must be a valid string. Provided value: ${y}`);p+=` 135- ${y}`}m+=p}return`${_} 136${m}`}class Ke extends Error{constructor({message:t,code:r,cause:n,name:i}){var s;super(t,{cause:n}),this.__isWebAuthnError=!0,this.name=(s=i??(n instanceof Error?n.name:void 0))!==null&&s!==void 0?s:"Unknown Error",this.code=r}}class Vl extends Ke{constructor(t,r){super({code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:r,message:t}),this.name="WebAuthnUnknownError",this.originalError=r}}function HP({error:e,options:t}){var r,n,i;const{publicKey:s}=t;if(!s)throw Error("options was missing required publicKey property");if(e.name==="AbortError"){if(t.signal instanceof AbortSignal)return new Ke({message:"Registration ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else if(e.name==="ConstraintError"){if(((r=s.authenticatorSelection)===null||r===void 0?void 0:r.requireResidentKey)===!0)return new Ke({message:"Discoverable credentials were required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_DISCOVERABLE_CREDENTIAL_SUPPORT",cause:e});if(t.mediation==="conditional"&&((n=s.authenticatorSelection)===null||n===void 0?void 0:n.userVerification)==="required")return new Ke({message:"User verification was required during automatic registration but it could not be performed",code:"ERROR_AUTO_REGISTER_USER_VERIFICATION_FAILURE",cause:e});if(((i=s.authenticatorSelection)===null||i===void 0?void 0:i.userVerification)==="required")return new Ke({message:"User verification was required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_USER_VERIFICATION_SUPPORT",cause:e})}else{if(e.name==="InvalidStateError")return new Ke({message:"The authenticator was previously registered",code:"ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED",cause:e});if(e.name==="NotAllowedError")return new Ke({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="NotSupportedError")return s.pubKeyCredParams.filter(a=>a.type==="public-key").length===0?new Ke({message:'No entry in pubKeyCredParams was of type "public-key"',code:"ERROR_MALFORMED_PUBKEYCREDPARAMS",cause:e}):new Ke({message:"No available authenticator supported any of the specified pubKeyCredParams algorithms",code:"ERROR_AUTHENTICATOR_NO_SUPPORTED_PUBKEYCREDPARAMS_ALG",cause:e});if(e.name==="SecurityError"){const o=window.location.hostname;if(vw(o)){if(s.rp.id!==o)return new Ke({message:`The RP ID "${s.rp.id}
136" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new Ke({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e})}else if(e.name==="TypeError"){if(s.user.id.byteLength<1||s.user.id.byteLength>64)return new Ke({message:"User ID was not between 1 and 64 characters",code:"ERROR_INVALID_USER_ID_LENGTH",cause:e})}else if(e.name==="UnknownError")return new Ke({message:"The authenticator was unable to process the specified options, or could not create a new credential",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:e})}return new Ke({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e})}function VP({error:e,options:t}){const{publicKey:r}=t;if(!r)throw Error("options was missing required publicKey property");if(e.name==="AbortError"){if(t.signal instanceof AbortSignal)return new Ke({message:"Authentication ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else{if(e.name==="NotAllowedError")return new Ke({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="SecurityError"){const n=window.location.hostname;if(vw(n)){if(r.rpId!==n)return new Ke({message:`The RP ID "${r.rpId}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new Ke({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e})}else if(e.name==="UnknownError")return new Ke({message:"The authenticator was unable to process the specified options, or could not create a new assertion signature",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:e})}return new Ke({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e})}class KP{createNewAbortSignal(){if(this.controller){const r=new Error("Cancelling existing WebAuthn API call for new one");r.name="AbortError",this.controller.abort(r)}const t=new AbortController;return this.controller=t,t.signal}cancelCeremony(){if(this.controller){const t=new Error("Manually cancelling existing WebAuthn API call");t.name="AbortError",this.controller.abort(t),this.controller=void 0}}}const qP=new KP;function GP(e){if(!e)throw new Error("Credential creation options are required");if(typeof PublicKeyCredential<"u"&&"parseCreationOptionsFromJSON"in PublicKeyCredential&&typeof PublicKeyCredential.parseCreationOptionsFromJSON=="function")return PublicKeyCredential.parseCreationOptionsFromJSON(e);const{challenge:t,user:r,excludeCredentials:n}=e,i=ku(e,["challenge","user","excludeCredentials"]),s=fs(t).buffer,o=Object.assign(Object.assign({},r),{id:fs(r.id).buffer}),a=Object.assign(Object.assign({},i),{challenge:s,user:o});if(n&&n.length>0){a.excludeCredentials=new Array(n.length);for(let l=0;l<n.length;l++){const u=n[l];a.excludeCredentials[l]=Object.assign(Object.assign({},u),{id:fs(u.id).buffer,type:u.type||"public-key",transports:u.transports})}}return a}function QP(e){if(!e)throw new Error("Credential request options are required");if(typeof PublicKeyCredential<"u"&&"parseRequestOptionsFromJSON"in PublicKeyCredential&&typeof PublicKeyCredential.parseRequestOptionsFromJSON=="function")return PublicKeyCredential.parseRequestOptionsFromJSON(e);const{challenge:t,allowCredentials:r}=e,n=ku(e,["challenge","allowCredentials"]),i=fs(t).buffer,s=Object.assign(Object.assign({},n),{challenge:i});if(r&&r.length>0){s.allowCredentials=new Array(r.length);for(let o=0;o<r.length;o++){const a=r[o];s.allowCredentials[o]=Object.assign(Object.assign({},a),{id:fs(a.id).buffer,type:a.type||"public-key",transports:a.transports})}}return s}function JP(e){var t;if("toJSON"in e&&typeof e.toJSON=="function")return e.toJSON();const r=e;return{id:e.id,rawId:e.id,response:{attestationObject:ii(new Uint8Array(e.response.attestationObject)),clientDataJSON:ii(new Uint8Array(e.response.clientDataJSON))},type:"public-key",clientExtensionResults:e.getClientExtensionResults(),authenticatorAttachment:(t=r.authenticatorAttachment)!==null&&t!==void 0?t:void 0}}function YP(e){var t;if("toJSON"in e&&typeof e.toJSON=="function")return e.toJSON();const r=e,n=e.getClientExtensionResults(),i=e.response;return{id:e.id,rawId:e.id,response:{authenticatorData:ii(new Uint8Array(i.authenticatorData)),clientDataJSON:ii(new Uint8Array(i.clientDataJSON)),signature:ii(new Uint8Array(i.signature)),userHandle:i.userHandle?ii(new Uint8Array(i.userHandle)):void 0},type:"public-key",clientExtensionResults:n,authenticatorAttachment:(t=r.authenticatorAttachment)!==null&&t!==void 0?t:void 0}}function vw(e){return e==="localhost"||/^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i.test(e)}function jm(){var e,t;return!!(tt()&&"PublicKeyCredential"in window&&window.PublicKeyCredential&&"credentials"in navigator&&typeof((e=navigator?.credentials)===null||e===void 0?void 0:e.create)=="function"&&typeof((t=navigator?.credentials)===null||t===void 0?void 0:t.get)=="function")}async function XP(e){try{const t=await navigator.credentials.create(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new Vl("Browser returned unexpected credential type",t)}:{data:null,error:new Vl("Empty credential response",t)}}
136catch(t){return{data:null,error:HP({error:t,options:e})}}}async function ZP(e){try{const t=await navigator.credentials.get(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new Vl("Browser returned unexpected credential type",t)}:{data:null,error:new Vl("Empty credential response",t)}}catch(t){return{data:null,error:VP({error:t,options:e})}}}const eR={hints:["security-key"],authenticatorSelection:{authenticatorAttachment:"cross-platform",requireResidentKey:!1,userVerification:"preferred",residentKey:"discouraged"},attestation:"direct"},tR={userVerification:"preferred",hints:["security-key"],attestation:"direct"};function Kl(...e){const t=i=>i!==null&&typeof i=="object"&&!Array.isArray(i),r=i=>i instanceof ArrayBuffer||ArrayBuffer.isView(i),n={};for(const i of e)if(i)for(const s in i){const o=i[s];if(o!==void 0)if(Array.isArray(o))n[s]=o;else if(r(o))n[s]=o;else if(t(o)){const a=n[s];t(a)?n[s]=Kl(a,o):n[s]=Kl(o)}else n[s]=o}return n}function rR(e,t){return Kl(eR,e,t||{})}function nR(e,t){return Kl(tR,e,t||{})}class iR{constructor(t){this.client=t,this.enroll=this._enroll.bind(this),this.challenge=this._challenge.bind(this),this.verify=this._verify.bind(this),this.authenticate=this._authenticate.bind(this),this.register=this._register.bind(this)}async _enroll(t){return this.client.mfa.enroll(Object.assign(Object.assign({},t),{factorType:"webauthn"}))}async _challenge({factorId:t,webauthn:r,friendlyName:n,signal:i},s){var o;try{const{data:a,error:l}=await this.client.mfa.challenge({factorId:t,webauthn:r});if(!a)return{data:null,error:l};const u=i??qP.createNewAbortSignal();if(a.webauthn.type==="create"){const{user:c}=a.webauthn.credential_options.publicKey;if(!c.name){const f=n;if(f)c.name=`${c.id}:${f}`;else{const h=(await this.client.getUser()).data.user,g=((o=h?.user_metadata)===null||o===void 0?void 0:o.name)||h?.email||h?.id||"User";c.name=`${c.id}:${g}`}}c.displayName||(c.displayName=c.name)}switch(a.webauthn.type){case"create":{const c=rR(a.webauthn.credential_options.publicKey,s?.create),{data:f,error:d}=await XP({publicKey:c,signal:u});return f?{data:{factorId:t,challengeId:a.id,webauthn:{type:a.webauthn.type,credential_response:f}},error:null}:{data:null,error:d}}case"request":{const c=nR(a.webauthn.credential_options.publicKey,s?.request),{data:f,error:d}=await ZP(Object.assign(Object.assign({},a.webauthn.credential_options),{publicKey:c,signal:u}));return f?{data:{factorId:t,challengeId:a.id,webauthn:{type:a.webauthn.type,credential_response:f}},error:null}:{data:null,error:d}}}}catch(a){return Q(a)?{data:null,error:a}:{data:null,error:new Zn("Unexpected error in challenge",a)}}}async _verify({challengeId:t,factorId:r,webauthn:n}){return this.client.mfa.verify({factorId:r,challengeId:t,webauthn:n})}async _authenticate({factorId:t,webauthn:{rpId:r=typeof window<"u"?window.location.hostname:void 0,rpOrigins:n=typeof window<"u"?[window.location.origin]:void 0,signal:i}={}},s){if(!r)return{data:null,error:new Yo("rpId is required for WebAuthn authentication")};try{if(!jm())return{data:null,error:new Zn("Browser does not support WebAuthn",null)};const{data:o,error:a}=await this.challenge({factorId:t,webauthn:{rpId:r,rpOrigins:n},signal:i},{request:s});if(!o)return{data:null,error:a};const{webauthn:l}=o;return this._verify({factorId:t,challengeId:o.challengeId,webauthn:{type:l.type,rpId:r,rpOrigins:n,credential_response:l.credential_response}})}catch(o){return Q(o)?{data:null,error:o}:{data:null,error:new Zn("Unexpected error in authenticate",o)}}}async _register({friendlyName:t,webauthn:{rpId:r=typeof window<"u"?window.location.hostname:void 0,rpOrigins:n=typeof window<"u"?[window.location.origin]:void 0,signal:i}={}},s){if(!r)return{data:null,error:new Yo("rpId is required for WebAuthn registration")};try{if(!jm())return{data:null,error:new Zn("Browser does not support WebAuthn",null)};const{data:o,error:a}=await this._enroll({friendlyName:t});if(!o)return await this.client.mfa.listFactors().then(c=>{var f;return(f=c.data)===null||f===void 0?void 0:f.all.find(d=>d.factor_type==="webauthn"&&d.friendly_name===t&&d.status!=="unverified")}).then(c=>c?this.client.mfa.unenroll({factorId:c?.id}):void 0),{data:null,error:a};const{data:l,error:u}=await this._challenge({factorId:o.id,friendlyName:o.friendly_name,webauthn:{rpId:r,rpOrigins:n},signal:i},{create:s});return l?this._verify({factorId:o.id,challengeId:l.challengeId,webauthn:{rpId:r,rpOrigins:n,type:l.webauthn.type,credential_response:l.webauthn.credential_response}}):{data:null,error:u}}catch(o){return Q(o)?{data:null,error:o}:{data:null,error:new Zn("Unexpected error in register",o)}}}}FP();const sR={url:rP,storageKey:nP,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:iP,flowType:"implicit",debug:!1,hasCustomAuthorizationHeader:!1,throwOnError:!1,lockAcquireTimeout:1e4,skipAutoInitialize:!1};async function Dm(e,t,r){return await r()}const Ui={};class Xo{get jwks(){var t,r;return(r=(t=Ui[this.storageKey])===null||t===void 0?void 0:t.jwks)!==null&&r!==void 0?r:{keys:[]}}set jwks(t){Ui[this.storageKey]=Object.assign(Object.assign({},Ui[this.storageKey]),{jwks:t})}get jwks_cached_at(){var t,r;return(r=(t=Ui[this.storageKey])===null||t===void 0?void 0:t.cachedAt)!==null&&r!==void 0?r:Number.MIN_SAFE_INTEGER}set jwks_cached_at(t){Ui[this.storageKey]=Object.assign(Object.assign({},Ui[this.storageKey]),{cachedAt:t})}constructor(t){var r,n,i;this.userStorage=null,this.memoryStorage=null,this.stateChangeEmitters=new Map,this.autoRefreshTicker=null,this.autoRefreshTickTimeout=null,this.visibilityChangedCallback=null,this.refreshingDeferred=null,this.initializePromise=null,this.detectSessionInUrl=!0,this.hasCustomAuthorizationHeader=!1,this.suppressGetSessionWarning=!1,this.lockAcquired=!1,this.pendingInLock=[],this.broadcastChannel=null,this.logger=console.log;const s=Object.assign(Object.assign({},sR),t);if(this.storageKey=s.storageKey,this.instanceID=(r=Xo.nextInstanceID[this.storageKey])!==null&&r!==void 0?r:0,Xo.nextInstanceID[this.storageKey]=this.instanceID+1,this.logDebugMessages=!!s.debug,typeof s.debug=="function"&&(this.logger=s.debug),this.instanceID>0&&tt()){const o=`${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(o),this.logDebugMessages&&console.trace(o)}if(this.persistSession=s.persistSession,this.autoRefreshToken=s.autoRefreshToken,this.admin=new MP({url:s.url,headers:s.headers,fetch:s.fetch}),this.url=s.url,this.headers=s.headers,this.fetch=pw(s.fetch),this.lock=s.lock||Dm,this.detectSessionInUrl=s.detectSessionInUrl,this.flowType=s.flowType,this.hasCustomAuthorizationHeader=s.hasCustomAuthorizationHeader,this.throwOnError=s.throwOnError,this.lockAcquireTimeout=s.lockAcquireTimeout,s.lock?this.lock=s.lock:this.persistSession&&tt()&&(!((n=globalThis?.navigator)===null||n===void 0)&&n.locks)?this.lock=UP:this.lock=Dm,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 iR(this)}
136,this.oauth={getAuthorizationDetails:this._getAuthorizationDetails.bind(this),approveAuthorization:this._approveAuthorization.bind(this),denyAuthorization:this._denyAuthorization.bind(this),listGrants:this._listOAuthGrants.bind(this),revokeGrant:this._revokeOAuthGrant.bind(this)},this.persistSession?(s.storage?this.storage=s.storage:hw()?this.storage=globalThis.localStorage:(this.memoryStorage={},this.storage=Lm(this.memoryStorage)),s.userStorage&&(this.userStorage=s.userStorage)):(this.memoryStorage={},this.storage=Lm(this.memoryStorage)),tt()&&globalThis.BroadcastChannel&&this.persistSession&&this.storageKey){try{this.broadcastChannel=new globalThis.BroadcastChannel(this.storageKey)}catch(o){console.error("Failed to create a new BroadcastChannel, multi-tab state changes will not be available",o)}(i=this.broadcastChannel)===null||i===void 0||i.addEventListener("message",async o=>{this._debug("received broadcast notification from other tab or client",o);try{await this._notifyAllSubscribers(o.data.event,o.data.session,!1)}catch(a){this._debug("#broadcastChannel","error",a)}})}s.skipAutoInitialize||this.initialize().catch(o=>{this._debug("#initialize()","error",o)})}isThrowOnErrorEnabled(){return this.throwOnError}_returnResult(t){if(this.throwOnError&&t&&t.error)throw t.error;return t}_logPrefix(){return`GoTrueClient@${this.storageKey}:${this.instanceID} (${cw}) ${new Date().toISOString()}`}_debug(...t){return this.logDebugMessages&&this.logger(this._logPrefix(),...t),this}async initialize(){return this.initializePromise?await this.initializePromise:(this.initializePromise=(async()=>await this._acquireLock(this.lockAcquireTimeout,async()=>await this._initialize()))(),await this.initializePromise)}async _initialize(){var t;try{let r={},n="none";if(tt()&&(r=yP(window.location.href),this._isImplicitGrantCallback(r)?n="implicit":await this._isPKCECallback(r)&&(n="pkce")),tt()&&this.detectSessionInUrl&&n!=="none"){const{data:i,error:s}=await this._getSessionFromURL(r,n);if(s){if(this._debug("#_initialize()","error detecting session from URL",s),uP(s)){const l=(t=s.details)===null||t===void 0?void 0:t.code;if(l==="identity_already_exists"||l==="identity_not_found"||l==="single_identity_not_deletable")return{error:s}}return{error:s}}const{session:o,redirectType:a}=i;return this._debug("#_initialize()","detected session in URL",o,"redirect type",a),await this._saveSession(o),setTimeout(async()=>{a==="recovery"?await this._notifyAllSubscribers("PASSWORD_RECOVERY",o):await this._notifyAllSubscribers("SIGNED_IN",o)},0),{error:null}}return await this._recoverAndRefresh(),{error:null}}catch(r){return Q(r)?this._returnResult({error:r}):this._returnResult({error:new Zn("Unexpected error during initialization",r)})}finally{await this._handleVisibilityChange(),this._debug("#_initialize()","end")}}async signInAnonymously(t){var r,n,i;try{const s=await te(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{data:(n=(r=t?.options)===null||r===void 0?void 0:r.data)!==null&&n!==void 0?n:{},gotrue_meta_security:{captcha_token:(i=t?.options)===null||i===void 0?void 0:i.captchaToken}},xform:nr}),{data:o,error:a}=s;
136if(a||!o)return this._returnResult({data:{user:null,session:null},error:a});const l=o.session,u=o.user;return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",l)),this._returnResult({data:{user:u,session:l},error:null})}catch(s){if(Q(s))return this._returnResult({data:{user:null,session:null},error:s});throw s}}async signUp(t){var r,n,i;try{let s;if("email"in t){const{email:c,password:f,options:d}=t;let h=null,g=null;this.flowType==="pkce"&&([h,g]=await Di(this.storage,this.storageKey)),s=await te(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,redirectTo:d?.emailRedirectTo,body:{email:c,password:f,data:(r=d?.data)!==null&&r!==void 0?r:{},gotrue_meta_security:{captcha_token:d?.captchaToken},code_challenge:h,code_challenge_method:g},xform:nr})}else if("phone"in t){const{phone:c,password:f,options:d}=t;s=await te(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{phone:c,password:f,data:(n=d?.data)!==null&&n!==void 0?n:{},channel:(i=d?.channel)!==null&&i!==void 0?i:"sms",gotrue_meta_security:{captcha_token:d?.captchaToken}},xform:nr})}else throw new Ka("You must provide either an email or phone number and a password");const{data:o,error:a}=s;
136if(a||!o)return await et(this.storage,`${this.storageKey}-code-verifier`),this._returnResult({data:{user:null,session:null},error:a});const l=o.session,u=o.user;return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",l)),this._returnResult({data:{user:u,session:l},error:null})}catch(s){if(await et(this.storage,`${this.storageKey}-code-verifier`),Q(s))return this._returnResult({data:{user:null,session:null},error:s});throw s}}async signInWithPassword(t){try{let r;if("email"in t){const{email:s,password:o,options:a}=t;r=await te(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{email:s,password:o,gotrue_meta_security:{captcha_token:a?.captchaToken}},xform:Am})}else if("phone"in t){const{phone:s,password:o,options:a}=t;r=await te(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{phone:s,password:o,gotrue_meta_security:{captcha_token:a?.captchaToken}},xform:Am})}else throw new Ka("You must provide either an email or phone number and a password");const{data:n,error:i}=r;if(i)return this._returnResult({data:{user:null,session:null},error:i});if(!n||!n.session||!n.user){const s=new ji;return this._returnResult({data:{user:null,session:null},error:s})}return n.session&&(await this._saveSession(n.session),await this._notifyAllSubscribers("SIGNED_IN",n.session)),this._returnResult({data:Object.assign({user:n.user,session:n.session},n.weak_password?{weakPassword:n.weak_password}:null),error:i})}catch(r){if(Q(r))return this._returnResult({data:{user:null,session:null},error:r});throw r}}async signInWithOAuth(t){var r,n,i,s;return await this._handleProviderSignIn(t.provider,{redirectTo:(r=t.options)===null||r===void 0?void 0:r.redirectTo,scopes:(n=t.options)===null||n===void 0?void 0:n.scopes,queryParams:(i=t.options)===null||i===void 0?void 0:i.queryParams,skipBrowserRedirect:(s=t.options)===null||s===void 0?void 0:s.skipBrowserRedirect})}async exchangeCodeForSession(t){return await this.initializePromise,this._acquireLock(this.lockAcquireTimeout,async()=>this._exchangeCodeForSession(t))}async signInWithWeb3(t){const{chain:r}=t;switch(r){case"ethereum":return await this.signInWithEthereum(t);case"solana":return await this.signInWithSolana(t);default:throw new Error(`@supabase/auth-js: Unsupported chain "${r}"`)}}async signInWithEthereum(t){var r,n,i,s,o,a,l,u,c,f,d;let h,g;if("message"in t)h=t.message,g=t.signature;else{const{chain:v,wallet:_,statement:m,options:p}=t;let y;if(tt())if(typeof _=="object")y=_;else{const j=window;if("ethereum"in j&&typeof j.ethereum=="object"&&"request"in j.ethereum&&typeof j.ethereum.request=="function")y=j.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"||!p?.url)throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");y=_}const S=new URL((r=p?.url)!==null&&r!==void 0?r:window.location.href),x=await y.request({method:"eth_requestAccounts"}).then(j=>j).catch(()=>{throw new Error("@supabase/auth-js: Wallet method eth_requestAccounts is missing or invalid")});if(!x||x.length===0)throw new Error("@supabase/auth-js: No accounts available. Please ensure the wallet is connected.");const C=gw(x[0]);let b=(n=p?.signInWithEthereum)===null||n===void 0?void 0:n.chainId;if(!b){const j=await y.request({method:"eth_chainId"});b=zP(j)}const P={domain:S.host,address:C,statement:m,uri:S.href,version:"1",chainId:b,nonce:(i=p?.signInWithEthereum)===null||i===void 0?void 0:i.nonce,issuedAt:(o=(s=p?.signInWithEthereum)===null||s===void 0?void 0:s.issuedAt)!==null&&o!==void 0?o:new Date,expirationTime:(a=p?.signInWithEthereum)===null||a===void 0?void 0:a.expirationTime,notBefore:(l=p?.signInWithEthereum)===null||l===void 0?void 0:l.notBefore,requestId:(u=p?.signInWithEthereum)===null||u===void 0?void 0:u.requestId,resources:(c=p?.signInWithEthereum)===null||c===void 0?void 0:c.resources};h=WP(P),g=await y.request({method:"personal_sign",params:[BP(h),C]})}try{const{data:v,error:_}=await te(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"ethereum",message:h,signature:g},!((f=t.options)===null||f===void 0)&&f.captchaToken?{gotrue_meta_security:{captcha_token:(d=t.options)===null||d===void 0?void 0:d.captchaToken}}:null),xform:nr});if(_)throw _;if(!v||!v.session||!v.user){const m=new ji;return this._returnResult({data:{user:null,session:null},error:m})}return v.session&&(await this._saveSession(v.session),await this._notifyAllSubscribers("SIGNED_IN",v.session)),this._returnResult({data:Object.assign({},v),error:_})}catch(v){if(Q(v))return this._returnResult({data:{user:null,session:null},error:v});throw v}}async signInWithSolana(t){var r,n,i,s,o,a,l,u,c,f,d,h;let g,v;if("message"in t)g=t.message,v=t.signature;else{const{chain:_,wallet:m,statement:p,options:y}=t;let S;if(tt())if(typeof m=="object")S=m;else{const C=window;if("solana"in C&&typeof C.solana=="object"&&("signIn"in C.solana&&typeof C.solana.signIn=="function"||"signMessage"in C.solana&&typeof C.solana.signMessage=="function"))S=C.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 m!="object"||!y?.url)throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");S=m}const x=new URL((r=y?.url)!==null&&r!==void 0?r:window.location.href);if("signIn"in S&&S.signIn){const C=await S.signIn(Object.assign(Object.assign(Object.assign({issuedAt:new Date().toISOString()},y?.signInWithSolana),{version:"1",domain:x.host,uri:x.href}),p?{statement:p}:null));let b;if(Array.isArray(C)&&C[0]&&typeof C[0]=="object")b=C[0];else if(C&&typeof C=="object"&&"signedMessage"in C&&"signature"in C)b=C;else throw new Error("@supabase/auth-js: Wallet method signIn() returned unrecognized value");if("signedMessage"in b&&"signature"in b&&(typeof b.signedMessage=="string"||b.signedMessage instanceof Uint8Array)&&b.signature instanceof Uint8Array)g=typeof b.signedMessage=="string"?b.signedMessage:new TextDecoder().decode(b.signedMessage),v=b.signature;else throw new Error("@supabase/auth-js: Wallet method signIn() API returned object without signedMessage and signature fields")}else{if(!("signMessage"in S)||typeof S.signMessage!="function"||!("publicKey"in S)||typeof S!="object"||!S.publicKey||!("toBase58"in S.publicKey)||typeof S.publicKey.toBase58!="function")throw new Error("@supabase/auth-js: Wallet does not have a compatible signMessage() and publicKey.toBase58() API");g=[`${x.host} wants you to sign in with your Solana account:`,S.publicKey.toBase58(),...p?["",p,""]:[""],"Version: 1",`URI: ${x.href}`,`Issued At: ${(i=(n=y?.signInWithSolana)===null||n===void 0?void 0:n.issuedAt)!==null&&i!==void 0?i:new Date().toISOString()}`,...!((s=y?.signInWithSolana)===null||s===void 0)&&s.notBefore?[`Not Before: ${y.signInWithSolana.notBefore}`]:[],...!((o=y?.signInWithSolana)===null||o===void 0)&&o.expirationTime?[`Expiration Time: ${y.signInWithSolana.expirationTime}`]:[],...!((a=y?.signInWithSolana)===null||a===void 0)&&a.chainId?[`Chain ID: ${y.signInWithSolana.chainId}`]:[],...!((l=y?.signInWithSolana)===null||l===void 0)&&l.nonce?[`Nonce: ${y.signInWithSolana.nonce}`]:[],...!((u=y?.signInWithSolana)===null||u===void 0)&&u.requestId?[`Request ID: ${y.signInWithSolana.requestId}`]:[],...!((f=(c=y?.signInWithSolana)===null||c===void 0?void 0:c.resources)===null||f===void 0)&&f.length?["Resources",...y.signInWithSolana.resources.map(b=>`- ${b}`)]:[]].join(` 137`);const C=await S.signMessage(new TextEncoder().encode(g),"utf8");if(!C||!(C instanceof Uint8Array))throw new Error("@supabase/auth-js: Wallet signMessage() API returned an recognized value");v=C}}try{const{data:_,error:m}=await te(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"solana",message:g,signature:ii(v)},!((d=t.options)===null||d===void 0)&&d.captchaToken?{gotrue_meta_security:{captcha_token:(h=t.options)===null||h===void 0?void 0:h.captchaToken}}:null),xform:nr});if(m)throw m;if(!_||!_.session||!_.user){const p=new ji;return this._returnResult({data:{user:null,session:null},error:p})}return _.session&&(await this._saveSession(_.session),await this._notifyAllSubscribers("SIGNED_IN",_.session)),this._returnResult({data:Object.assign({},_),error:m})}catch(_){if(Q(_))return this._returnResult({data:{user:null,session:null},error:_});throw _}}async _exchangeCodeForSession(t){const r=await Kn(this.storage,`${this.storageKey}-code-verifier`),[n,i]=(r??"").split("/");try{if(!n&&this.flowType==="pkce")throw new cP;const{data:s,error:o}=await te(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:t,code_verifier:n},xform:nr});if(await et(this.storage,`${this.storageKey}-code-verifier`),o)throw o;if(!s||!s.session||!s.user){const a=new ji;return this._returnResult({data:{user:null,session:null,redirectType:null},error:a})}return s.session&&(await this._saveSession(s.session),await this._notifyAllSubscribers("SIGNED_IN",s.session)),this._returnResult({data:Object.assign(Object.assign({},s),{redirectType:i??null}),error:o})}catch(s){if(await et(this.storage,`${this.storageKey}-code-verifier`),Q(s))return this._returnResult({data:{user:null,session:null,redirectType:null},error:s});throw s}}async signInWithIdToken(t){try{const{options:r,provider:n,token:i,access_token:s,nonce:o}=t,a=await te(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:n,id_token:i,access_token:s,nonce:o,gotrue_meta_security:{captcha_token:r?.captchaToken}},xform:nr}),{data:l,error:u}=a;if(u)return this._returnResult({data:{user:null,session:null},error:u});if(!l||!l.session||!l.user){const c=new ji;return this._returnResult({data:{user:null,session:null},error:c})}return l.session&&(await this._saveSession(l.session),await this._notifyAllSubscribers("SIGNED_IN",l.session)),this._returnResult({data:l,error:u})}catch(r){if(Q(r))return this._returnResult({data:{user:null,session:null},error:r});throw r}}async signInWithOtp(t){var r,n,i,s,o;try{if("email"in t){const{email:a,options:l}=t;let u=null,c=null;this.flowType==="pkce"&&([u,c]=await Di(this.storage,this.storageKey));const{error:f}=await te(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{email:a,data:(r=l?.data)!==null&&r!==void 0?r:{},create_user:(n=l?.shouldCreateUser)!==null&&n!==void 0?n:!0,gotrue_meta_security:{captcha_token:l?.captchaToken},code_challenge:u,code_challenge_method:c},redirectTo:l?.emailRedirectTo});return this._returnResult({data:{user:null,session:null},error:f})}if("phone"in t){const{phone:a,options:l}=t,{data:u,error:c}=await te(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{phone:a,data:(i=l?.data)!==null&&i!==void 0?i:{},create_user:(s=l?.shouldCreateUser)!==null&&s!==void 0?s:!0,gotrue_meta_security:{captcha_token:l?.captchaToken},channel:(o=l?.channel)!==null&&o!==void 0?o:"sms"}});return this._returnResult({data:{user:null,session:null,messageId:u?.message_id},error:c})}throw new Ka("You must provide either an email or phone number.")}catch(a){if(await et(this.storage,`${this.storageKey}-code-verifier`),Q(a))return this._returnResult({data:{user:null,session:null},error:a});throw a}}async verifyOtp(t){var r,n;try{let i,s;"options"in t&&(i=(r=t.options)===null||r===void 0?void 0:r.redirectTo,s=(n=t.options)===null||n===void 0?void 0:n.captchaToken);const{data:o,error:a}=await te(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},t),{gotrue_meta_security:{captcha_token:s}}),redirectTo:i,xform:nr});if(a)throw a;if(!o)throw new Error("An error occurred on token verification.");const l=o.session,u=o.user;return l?.access_token&&(await this._saveSession(l),await this._notifyAllSubscribers(t.type=="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",l)),this._returnResult({data:{user:u,session:l},error:null})}catch(i){if(Q(i))return this._returnResult({data:{user:null,session:null},error:i});throw i}}async signInWithSSO(t){var r,n,i,s,o;try{let a=null,l=null;this.flowType==="pkce"&&([a,l]=await Di(this.storage,this.storageKey));const u=await te(this.fetch,"POST",`${this.url}/sso`,{body:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},"providerId"in t?{provider_id:t.providerId}:null),"domain"in t?{domain:t.domain}:null),{redirect_to:(n=(r=t.options)===null||r===void 0?void 0:r.redirectTo)!==null&&n!==void 0?n:void 0}),!((i=t?.options)===null||i===void 0)&&i.captchaToken?{gotrue_meta_security:{captcha_token:t.options.captchaToken}}:null),{skip_http_redirect:!0,code_challenge:a,code_challenge_method:l}),headers:this.headers,xform:jP});return!((s=u.data)===null||s===void 0)&&s.url&&tt()&&!(!((o=t.options)===null||o===void 0)&&o.skipBrowserRedirect)&&window.location.assign(u.data.url),this._returnResult(u)}catch(a){if(await et(this.storage,`${this.storageKey}-code-verifier`),Q(a))return this._returnResult({data:null,error:a});throw a}}async reauthenticate(){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._reauthenticate())}async _reauthenticate(){try{return await this._useSession(async t=>{const{data:{session:r},error:n}=t;if(n)throw n;if(!r)throw new Nt;const{error:i}=await te(this.fetch,"GET",`${this.url}/reauthenticate`,{headers:this.headers,jwt:r.access_token});return this._returnResult({data:{user:null,session:null},error:i})})}catch(t){if(Q(t))return this._returnResult({data:{user:null,session:null},error:t});throw t}}async resend(t){try{const r=`${this.url}/resend`;if("email"in t){const{email:n,type:i,options:s}=t,{error:o}=await te(this.fetch,"POST",r,{headers:this.headers,body:{email:n,type:i,gotrue_meta_security:{captcha_token:s?.captchaToken}},redirectTo:s?.emailRedirectTo});return this._returnResult({data:{user:null,session:null},error:o})}else if("phone"in t){const{phone:n,type:i,options:s}=t,{data:o,error:a}=await te(this.fetch,"POST",r,{headers:this.headers,body:{phone:n,type:i,gotrue_meta_security:{captcha_token:s?.captchaToken}}});return this._returnResult({data:{user:null,session:null,messageId:o?.message_id},error:a})}throw new Ka("You must provide either an email or phone number and a type")}catch(r){if(Q(r))return this._returnResult({data:{user:null,session:null},error:r});throw r}}async getSession(){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>this._useSession(async r=>r))}async _acquireLock(t,r){this._debug("#_acquireLock","begin",t);try{if(this.lockAcquired){const n=this.pendingInLock.length?this.pendingInLock[this.pendingInLock.length-1]:Promise.resolve(),i=(async()=>(await n,await r()))();return this.pendingInLock.push((async()=>{try{await i}catch{}})()),i}return await this.lock(`lock:${this.storageKey}`,t,async()=>{this._debug("#_acquireLock","lock acquired for storage key",this.storageKey);try{this.lockAcquired=!0;const n=r();for(this.pendingInLock.push((async()=>{try{await n}catch{}})()),await n;this.pendingInLock.length;){const i=[...this.pendingInLock];await Promise.all(i),this.pendingInLock.splice(0,i.length)}return await n}finally{this._debug("#_acquireLock","lock released for storage key",this.storageKey),this.lockAcquired=!1}})}finally{this._debug("#_acquireLock","end")}}async _useSession(t){this._debug("#_useSession","begin");try{const r=await this.__loadSession();return await t(r)}finally{this._debug("#_useSession","end")}}async __loadSession(){this._debug("#__loadSession()","begin"),this.lockAcquired||this._debug("#__loadSession()","used outside of an acquired lock!",new Error().stack);try{let t=null;const r=await Kn(this.storage,this.storageKey);if(this._debug("#getSession()","session from storage",r),r!==null&&(this.
137_isValidSession(r)?t=r:(this._debug("#getSession()","session from storage is not valid"),await this._removeSession())),!t)return{data:{session:null},error:null};const n=t.expires_at?t.expires_at*1e3-Date.now()<yc:!1;if(this._debug("#__loadSession()",`session has${n?"":" not"} expired`,"expires_at",t.expires_at),!n){if(this.userStorage){const o=await Kn(this.userStorage,this.storageKey+"-user");o?.user?t.user=o.user:t.user=bc()}if(this.storage.isServer&&t.user&&!t.user.__isUserNotAvailableProxy){const o={value:this.suppressGetSessionWarning};t.user=AP(t.user,o),o.value&&(this.suppressGetSessionWarning=!0)}return{data:{session:t},error:null}}const{data:i,error:s}=await this._callRefreshToken(t.refresh_token);return s?this._returnResult({data:{session:null},error:s}):this._returnResult({data:{session:i},error:null})}finally{this._debug("#__loadSession()","end")}}async getUser(t){if(t)return await this._getUser(t);await this.initializePromise;const r=await this._acquireLock(this.lockAcquireTimeout,async()=>await this._getUser());return r.data.user&&(this.suppressGetSessionWarning=!0),r}async _getUser(t){try{return t?await te(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:t,xform:hn}):await this._useSession(async r=>{var n,i,s;const{data:o,error:a}=r;if(a)throw a;return!(!((n=o.session)===null||n===void 0)&&n.access_token)&&!this.hasCustomAuthorizationHeader?{data:{user:null},error:new Nt}:await te(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:(s=(i=o.session)===null||i===void 0?void 0:i.access_token)!==null&&s!==void 0?s:void 0,xform:hn})})}catch(r){if(Q(r))return wc(r)&&(await this._removeSession(),await et(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({data:{user:null},error:r});throw r}}async updateUser(t,r={}){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._updateUser(t,r))}async _updateUser(t,r={}){try{return await this._useSession(async n=>{const{data:i,error:s}=n;if(s)throw s;if(!i.session)throw new Nt;const o=i.session;let a=null,l=null;this.flowType==="pkce"&&t.email!=null&&([a,l]=await Di(this.storage,this.storageKey));const{data:u,error:c}=await te(this.fetch,"PUT",`${this.url}/user`,{headers:this.headers,redirectTo:r?.emailRedirectTo,body:Object.assign(Object.assign({},t),{code_challenge:a,code_challenge_method:l}),jwt:o.access_token,xform:hn});if(c)throw c;return o.user=u.user,await this._saveSession(o),await this._notifyAllSubscribers("USER_UPDATED",o),this._returnResult({data:{user:o.user},error:null})})}catch(n){if(await et(this.storage,`${this.storageKey}-code-verifier`),Q(n))return this._returnResult({data:{user:null},error:n});throw n}}async setSession(t){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._setSession(t))}async _setSession(t){try{if(!t.access_token||!t.refresh_token)throw new Nt;const r=Date.now()/1e3;let n=r,i=!0,s=null;const{payload:o}=Ga(t.access_token);if(o.exp&&(n=o.exp,i=n<=r),i){const{data:a,error:l}=await this._callRefreshToken(t.refresh_token);if(l)return this._returnResult({data:{user:null,session:null},error:l});if(!a)return{data:{user:null,session:null},error:null};s=a}else{const{data:a,error:l}=await this._getUser(t.access_token);if(l)return this._returnResult({data:{user:null,session:null},error:l});s={access_token:t.access_token,refresh_token:t.refresh_token,user:a.user,token_type:"bearer",expires_in:n-r,expires_at:n},await this._saveSession(s),await this._notifyAllSubscribers("SIGNED_IN",s)}return this._returnResult({data:{user:s.user,session:s},error:null})}catch(r){if(Q(r))return this._returnResult({data:{session:null,user:null},error:r});throw r}}async refreshSession(t){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._refreshSession(t))}async _refreshSession(t){try{return await this._useSession(async r=>{var n;if(!t){const{data:o,error:a}=r;if(a)throw a;t=(n=o.session)!==null&&n!==void 0?n:void 0}if(!t?.refresh_token)throw new Nt;const{data:i,error:s}=await this._callRefreshToken(t.refresh_token);return s?this._returnResult({data:{user:null,session:null},error:s}):i?this._returnResult({data:{user:i.user,session:i},error:null}):this._returnResult({data:{user:null,session:null},error:null})})}catch(r){if(Q(r))return this._returnResult({data:{user:null,session:null},error:r});throw r}}async _getSessionFromURL(t,r){try{if(!tt())throw new qa("No browser detected.");
137if(t.error||t.error_description||t.error_code)throw new qa(t.error_description||"Error in URL with unspecified error_description",{error:t.error||"unspecified_error",code:t.error_code||"unspecified_code"});switch(r){case"implicit":if(this.flowType==="pkce")throw new xm("Not a valid PKCE flow url.");break;case"pkce":if(this.flowType==="implicit")throw new qa("Not a valid implicit grant flow url.");break;default:}if(r==="pkce"){if(this._debug("#_initialize()","begin","is PKCE flow",!0),!t.code)throw new xm("No code detected.");const{data:p,error:y}=await this._exchangeCodeForSession(t.code);if(y)throw y;const S=new URL(window.location.href);return S.searchParams.delete("code"),window.history.replaceState(window.history.state,"",S.toString()),{data:{session:p.session,redirectType:null},error:null}}const{provider_token:n,provider_refresh_token:i,access_token:s,refresh_token:o,expires_in:a,expires_at:l,token_type:u}=t;if(!s||!a||!o||!u)throw new qa("No session defined in URL");const c=Math.round(Date.now()/1e3),f=parseInt(a);let d=c+f;l&&(d=parseInt(l));const h=d-c;h*1e3<=Wi&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${h}s, should have been closer to ${f}s`);const g=d-f;c-g>=120?console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale",g,d,c):c-g<0&&console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clock for skew",g,d,c);const{data:v,error:_}=await this._getUser(s);if(_)throw _;const m={provider_token:n,provider_refresh_token:i,access_token:s,expires_in:f,expires_at:d,refresh_token:o,token_type:u,user:v.user};return window.location.hash="",this._debug("#_getSessionFromURL()","clearing window.location.hash"),this._returnResult({data:{session:m,redirectType:t.type},error:null})}catch(n){if(Q(n))return this._returnResult({data:{session:null,redirectType:null},error:n});throw n}}_isImplicitGrantCallback(t){return typeof this.detectSessionInUrl=="function"?this.detectSessionInUrl(new URL(window.location.href),t):!!(t.access_token||t.error_description)}async _isPKCECallback(t){const r=await Kn(this.storage,`${this.storageKey}-code-verifier`);return!!(t.code&&r)}async signOut(t={scope:"global"}){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._signOut(t))}async _signOut({scope:t}={scope:"global"}){return await this._useSession(async r=>{var n;const{data:i,error:s}=r;if(s&&!wc(s))return this._returnResult({error:s});const o=(n=i.session)===null||n===void 0?void 0:n.access_token;if(o){const{error:a}=await this.admin.signOut(o,t);if(a&&!(lP(a)&&(a.status===404||a.status===401||a.status===403)||wc(a)))return this._returnResult({error:a})}return t!=="others"&&(await this._removeSession(),await et(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({error:null})})}onAuthStateChange(t){const r=vP(),n={id:r,callback:t,unsubscribe:()=>{this._debug("#unsubscribe()","state change callback with id removed",r),this.stateChangeEmitters.delete(r)}};return this._debug("#onAuthStateChange()","registered callback with id",r),this.stateChangeEmitters.set(r,n),(async()=>(await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>{this._emitInitialSession(r)})))(),{data:{subscription:n}}}async _emitInitialSession(t){return await this._useSession(async r=>{var n,i;try{const{data:{session:s},error:o}=r;if(o)throw o;await((n=this.stateChangeEmitters.get(t))===null||n===void 0?void 0:n.callback("INITIAL_SESSION",s)),this._debug("INITIAL_SESSION","callback id",t,"session",s)}catch(s){await((i=this.stateChangeEmitters.get(t))===null||i===void 0?void 0:i.callback("INITIAL_SESSION",null)),this._debug("INITIAL_SESSION","callback id",t,"error",s),console.error(s)}})}async resetPasswordForEmail(t,r={}){let n=null,i=null;this.flowType==="pkce"&&([n,i]=await Di(this.storage,this.storageKey,!0));try{return await te(this.fetch,"POST",`${this.url}/recover`,{body:{email:t,code_challenge:n,code_challenge_method:i,gotrue_meta_security:{captcha_token:r.captchaToken}},headers:this.headers,redirectTo:r.redirectTo})}catch(s){if(await et(this.storage,`${this.storageKey}-code-verifier`),Q(s))return this._returnResult({data:null,error:s});throw s}}async getUserIdentities(){var t;try{const{data:r,error:n}=await this.getUser();if(n)throw n;return this._returnResult({data:{identities:(t=r.user.identities)!==null&&t!==void 0?t:[]},error:null})}catch(r){if(Q(r))return this._returnResult({data:null,error:r});throw r}}async linkIdentity(t){return"token"in t?this.linkIdentityIdToken(t):this.linkIdentityOAuth(t)}async linkIdentityOAuth(t){var r;try{const{data:n,error:i}=await this._useSession(async s=>{var o,a,l,u,c;const{data:f,error:d}=s;
137if(d)throw d;const h=await this._getUrlForProvider(`${this.url}/user/identities/authorize`,t.provider,{redirectTo:(o=t.options)===null||o===void 0?void 0:o.redirectTo,scopes:(a=t.options)===null||a===void 0?void 0:a.scopes,queryParams:(l=t.options)===null||l===void 0?void 0:l.queryParams,skipBrowserRedirect:!0});return await te(this.fetch,"GET",h,{headers:this.headers,jwt:(c=(u=f.session)===null||u===void 0?void 0:u.access_token)!==null&&c!==void 0?c:void 0})});if(i)throw i;return tt()&&!(!((r=t.options)===null||r===void 0)&&r.skipBrowserRedirect)&&window.location.assign(n?.url),this._returnResult({data:{provider:t.provider,url:n?.url},error:null})}catch(n){if(Q(n))return this._returnResult({data:{provider:t.provider,url:null},error:n});throw n}}async linkIdentityIdToken(t){return await this._useSession(async r=>{var n;try{const{error:i,data:{session:s}}=r;if(i)throw i;const{options:o,provider:a,token:l,access_token:u,nonce:c}=t,f=await te(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,jwt:(n=s?.access_token)!==null&&n!==void 0?n:void 0,body:{provider:a,id_token:l,access_token:u,nonce:c,link_identity:!0,gotrue_meta_security:{captcha_token:o?.captchaToken}},xform:nr}),{data:d,error:h}=f;return h?this._returnResult({data:{user:null,session:null},error:h}):!d||!d.session||!d.user?this._returnResult({data:{user:null,session:null},error:new ji}):(d.session&&(await this._saveSession(d.session),await this._notifyAllSubscribers("USER_UPDATED",d.session)),this._returnResult({data:d,error:h}))}catch(i){if(await et(this.storage,`${this.storageKey}-code-verifier`),Q(i))return this._returnResult({data:{user:null,session:null},error:i});throw i}})}async unlinkIdentity(t){try{return await this._useSession(async r=>{var n,i;const{data:s,error:o}=r;if(o)throw o;return await te(this.fetch,"DELETE",`${this.url}/user/identities/${t.identity_id}`,{headers:this.headers,jwt:(i=(n=s.session)===null||n===void 0?void 0:n.access_token)!==null&&i!==void 0?i:void 0})})}catch(r){if(Q(r))return this._returnResult({data:null,error:r});throw r}}async _refreshAccessToken(t){const r=`#_refreshAccessToken(${t.substring(0,5)}...)`;this._debug(r,"begin");try{const n=Date.now();return await bP(async i=>(i>0&&await _P(200*Math.pow(2,i-1)),this._debug(r,"refreshing attempt",i),await te(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:t},headers:this.headers,xform:nr})),(i,s)=>{const o=200*Math.pow(2,i);return s&&_c(s)&&Date.now()+o-n<Wi})}catch(n){if(this._debug(r,"error",n),Q(n))return this._returnResult({data:{session:null,user:null},error:n});throw n}finally{this._debug(r,"end")}}_isValidSession(t){return typeof t=="object"&&t!==null&&"access_token"in t&&"refresh_token"in t&&"expires_at"in t}async _handleProviderSignIn(t,r){const n=await this._getUrlForProvider(`${this.url}/authorize`,t,{redirectTo:r.redirectTo,scopes:r.scopes,queryParams:r.queryParams});return this._debug("#_handleProviderSignIn()","provider",t,"options",r,"url",n),tt()&&!r.skipBrowserRedirect&&window.location.assign(n),{data:{provider:t,url:n},error:null}}async _recoverAndRefresh(){var t,r;const n="#_recoverAndRefresh()";this._debug(n,"begin");try{const i=await Kn(this.storage,this.storageKey);if(i&&this.userStorage){let o=await Kn(this.userStorage,this.storageKey+"-user");!this.storage.isServer&&Object.is(this.storage,this.userStorage)&&!o&&(o={user:i.user},await Hi(this.userStorage,this.storageKey+"-user",o)),i.user=(t=o?.user)!==null&&t!==void 0?t:bc()}else if(i&&!i.user&&!i.user){const o=await Kn(this.storage,this.storageKey+"-user");o&&o?.user?(i.user=o.user,await et(this.storage,this.storageKey+"-user"),await Hi(this.storage,this.storageKey,i)):i.user=bc()}if(this._debug(n,"session from storage",i),!this._isValidSession(i)){this._debug(n,"session is not valid"),i!==null&&await this._removeSession();return}const s=((r=i.expires_at)!==null&&r!==void 0?r:1/0)*1e3-Date.now()<yc;if(this._debug(n,`session has${s?"":" not"} expired with margin of ${yc}s`),s){if(this.autoRefreshToken&&i.refresh_token){const{error:o}=await this._callRefreshToken(i.refresh_token);o&&(console.error(o),_c(o)||(this._debug(n,"refresh failed with a non-retryable error, remov
137ing the session",o),await this._removeSession()))}}else if(i.user&&i.user.__isUserNotAvailableProxy===!0)try{const{data:o,error:a}=await this._getUser(i.access_token);!a&&o?.user?(i.user=o.user,await this._saveSession(i),await this._notifyAllSubscribers("SIGNED_IN",i)):this._debug(n,"could not get user data, skipping SIGNED_IN notification")}catch(o){console.error("Error getting user data:",o),this._debug(n,"error getting user data, skipping SIGNED_IN notification",o)}else await this._notifyAllSubscribers("SIGNED_IN",i)}catch(i){this._debug(n,"error",i),console.error(i);return}finally{this._debug(n,"end")}}async _callRefreshToken(t){var r,n;if(!t)throw new Nt;if(this.refreshingDeferred)return this.refreshingDeferred.promise;const i=`#_callRefreshToken(${t.substring(0,5)}...)`;this._debug(i,"begin");try{this.refreshingDeferred=new Tu;const{data:s,error:o}=await this._refreshAccessToken(t);if(o)throw o;if(!s.session)throw new Nt;await this._saveSession(s.session),await this._notifyAllSubscribers("TOKEN_REFRESHED",s.session);const a={data:s.session,error:null};return this.refreshingDeferred.resolve(a),a}catch(s){if(this._debug(i,"error",s),Q(s)){const o={data:null,error:s};return _c(s)||await this._removeSession(),(r=this.refreshingDeferred)===null||r===void 0||r.resolve(o),o}throw(n=this.refreshingDeferred)===null||n===void 0||n.reject(s),s}finally{this.refreshingDeferred=null,this._debug(i,"end")}}async _notifyAllSubscribers(t,r,n=!0){const i=`#_notifyAllSubscribers(${t})`;this._debug(i,"begin",r,`broadcast = ${n}`);try{this.broadcastChannel&&n&&this.broadcastChannel.postMessage({event:t,session:r});const s=[],o=Array.from(this.stateChangeEmitters.values()).map(async a=>{try{await a.callback(t,r)}catch(l){s.push(l)}});if(await Promise.all(o),s.length>0){for(let a=0;a<s.length;a+=1)console.error(s[a]);throw s[0]}}finally{this._debug(i,"end")}}async _saveSession(t){this._debug("#_saveSession()",t),this.suppressGetSessionWarning=!0,await et(this.storage,`${this.storageKey}-code-verifier`);const r=Object.assign({},t),n=r.user&&r.user.__isUserNotAvailableProxy===!0;if(this.userStorage){!n&&r.user&&await Hi(this.userStorage,this.storageKey+"-user",{user:r.user});const i=Object.assign({},r);delete i.user;const s=Rm(i);await Hi(this.storage,this.storageKey,s)}else{const i=Rm(r);await Hi(this.storage,this.storageKey,i)}}async _removeSession(){this._debug("#_removeSession()"),this.suppressGetSessionWarning=!1,await et(this.storage,this.storageKey),await et(this.storage,this.storageKey+"-code-verifier"),await et(this.storage,this.storageKey+"-user"),this.userStorage&&await et(this.userStorage,this.storageKey+"-user"),await this._notifyAllSubscribers("SIGNED_OUT",null)}_removeVisibilityChangedCallback(){this._debug("#_removeVisibilityChangedCallback()");const t=this.visibilityChangedCallback;this.visibilityChangedCallback=null;try{t&&tt()&&window?.removeEventListener&&window.removeEventListener("visibilitychange",t)}catch(r){console.error("removing visibilitychange callback failed",r)}}async _startAutoRefresh(){await this._stopAutoRefresh(),this._debug("#_startAutoRefresh()");const t=setInterval(()=>this._autoRefreshTokenTick(),Wi);this.autoRefreshTicker=t,t&&typeof t=="object"&&typeof t.unref=="function"?t.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(t);const r=setTimeout(async()=>{await this.initializePromise,await this._autoRefreshTokenTick()},0);this.autoRefreshTickTimeout=r,r&&typeof r=="object"&&typeof r.unref=="function"?r.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(r)}async _stopAutoRefresh(){this._debug("#_stopAutoRefresh()");const t=this.autoRefreshTicker;this.autoRefreshTicker=null,t&&clearInterval(t);const r=this.autoRefreshTickTimeout;this.autoRefreshTickTimeout=null,r&&clearTimeout(r)}async startAutoRefresh(){this._removeVisibilityChangedCallback(),await this._startAutoRefresh()}async stopAutoRefresh(){this._removeVisibilityChangedCallback(),await this._stopAutoRefresh()}async _autoRefreshTokenTick(){this._debug("#_autoRefreshTokenTick()","begin");try{await this._acquireLock(0,async()=>{try{const t=Date.now();try{return await this._useSession(async r=>{const{data:{session:n}}=r;if(!n||!n.refresh_token||!n.expires_at){this._debug("#_autoRefreshTokenTick()","no session");return}const i=Math.floor((n.expires_at*1e3-t)/Wi);this._debug("#_autoRefreshTokenTick()",`access token expires in ${i} ticks, a tick lasts ${Wi}ms, refresh threshold is ${Fd} ticks`),i<=Fd&&await this._callRefreshToken(n.refresh_token)})}catch(r){console.error("Auto refresh tick failed with error. This is likely a transient error.",r)}}finally{this._debug("#_autoRefreshTokenTick()","end")}})}catch(t){if(t.isAcquireTimeout||t instanceof mw)this._debug("auto refresh token tick lock not available");else throw t}}async _handleVisibilityChange(){if(this._debug("#_handleVisibilityChange()"),!tt()||!window?.addEventListener)return this.autoRefreshToken&&this.startAutoRefresh(),!1;try{this.visibilityChangedCallback=async()=>{try{await this._onVisibilityChanged(!1)}catch(t){this._debug("#visibilityChangedCallback","error",t)}},window?.addEventListener("visibilitychange",this.visibilityChangedCallback),await this._onVisibilityChanged(!0)}catch(t){console.error("_handleVisibilityChange",t)}}async _onVisibilityChanged(t){const r=`#_onVisibilityChanged(${t})`;this._debug(r,"visibilityState",document.visibilityState),document.visibilityState==="visible"?(this.autoRefreshToken&&this._startAutoRefresh(),t||(await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>
137{if(document.visibilityState!=="visible"){this._debug(r,"acquired the lock to recover the session, but the browser visibilityState is no longer visible, aborting");return}await this._recoverAndRefresh()}))):document.visibilityState==="hidden"&&this.autoRefreshToken&&this._stopAutoRefresh()}async _getUrlForProvider(t,r,n){const i=[`provider=${encodeURIComponent(r)}`];if(n?.redirectTo&&i.push(`redirect_to=${encodeURIComponent(n.redirectTo)}`),n?.scopes&&i.push(`scopes=${encodeURIComponent(n.scopes)}`),this.flowType==="pkce"){const[s,o]=await Di(this.storage,this.storageKey),a=new URLSearchParams({code_challenge:`${encodeURIComponent(s)}`,code_challenge_method:`${encodeURIComponent(o)}`});i.push(a.toString())}if(n?.queryParams){const s=new URLSearchParams(n.queryParams);i.push(s.toString())}return n?.skipBrowserRedirect&&i.push(`skip_http_redirect=${n.skipBrowserRedirect}`),`${t}?${i.join("&")}`}async _unenroll(t){try{return await this._useSession(async r=>{var n;const{data:i,error:s}=r;return s?this._returnResult({data:null,error:s}):await te(this.fetch,"DELETE",`${this.url}/factors/${t.factorId}`,{headers:this.headers,jwt:(n=i?.session)===null||n===void 0?void 0:n.access_token})})}catch(r){if(Q(r))return this._returnResult({data:null,error:r});throw r}}async _enroll(t){try{return await this._useSession(async r=>{var n,i;const{data:s,error:o}=r;if(o)return this._returnResult({data:null,error:o});const a=Object.assign({friendly_name:t.friendlyName,factor_type:t.factorType},t.factorType==="phone"?{phone:t.phone}:t.factorType==="totp"?{issuer:t.issuer}:{}),{data:l,error:u}=await te(this.fetch,"POST",`${this.url}/factors`,{body:a,headers:this.headers,jwt:(n=s?.session)===null||n===void 0?void 0:n.access_token});return u?this._returnResult({data:null,error:u}):(t.factorType==="totp"&&l.type==="totp"&&(!((i=l?.totp)===null||i===void 0)&&i.qr_code)&&(l.totp.qr_code=`data:image/svg+xml;utf-8,${l.totp.qr_code}`),this._returnResult({data:l,error:null}))})}catch(r){if(Q(r))return this._returnResult({data:null,error:r});throw r}}async _verify(t){return this._acquireLock(this.lockAcquireTimeout,async()=>{try{return await this._useSession(async r=>{var n;const{data:i,error:s}=r;if(s)return this._returnResult({data:null,error:s});const o=Object.assign({challenge_id:t.challengeId},"webauthn"in t?{webauthn:Object.assign(Object.assign({},t.webauthn),{credential_response:t.webauthn.type==="create"?JP(t.webauthn.credential_response):YP(t.webauthn.credential_response)})}:{code:t.code}),{data:a,error:l}=await te(this.fetch,"POST",`${this.url}/factors/${t.factorId}/verify`,{body:o,headers:this.headers,jwt:(n=i?.session)===null||n===void 0?void 0:n.access_token});return l?this._returnResult({data:null,error:l}):(await this._saveSession(Object.assign({expires_at:Math.round(Date.now()/1e3)+a.expires_in},a)),await this._notifyAllSubscribers("MFA_CHALLENGE_VERIFIED",a),this._returnResult({data:a,error:l}))})}catch(r){if(Q(r))return this._returnResult({data:null,error:r});throw r}})}async _challenge(t){return this._acquireLock(this.lockAcquireTimeout,async()=>{try{return await this._useSession(async r=>{var n;const{data:i,error:s}=r;if(s)return this._returnResult({data:null,error:s});const o=await te(this.fetch,"POST",`${this.url}/factors/${t.factorId}/challenge`,{body:t,headers:this.headers,jwt:(n=i?.session)===null||n===void 0?void 0:n.access_token});if(o.error)return o;const{data:a}=o;if(a.type!=="webauthn")return{data:a,error:null};switch(a.webauthn.type){case"create":return{data:Object.assign(Object.assign({},a),{webauthn:Object.assign(Object.assign({},a.webauthn),{credential_options:Object.assign(Object.assign({},a.webauthn.credential_options),{publicKey:GP(a.webauthn.credential_options.publicKey)})})}),error:null};case"request":return{data:Object.assign(Object.assign({},a),{webauthn:Object.assign(Object.assign({},a.webauthn),{credential_options:Object.assign(Object.assign({},a.webauthn.credential_options),{publicKey:QP(a.webauthn.credential_options.publicKey)})})}),error:null}}})}catch(r){if(Q(r))return this._returnResult({data:null,error:r});throw r}})}async _challengeAndVerify(t){const{data:r,error:n}=await this._challenge({factorId:t.factorId});return n?this._returnResult({data:null,error:n}):await this._verify({factorId:t.factorId,challengeId:r.id,code:t.code})}async _listFactors(){var t;const{data:{user:r},error:n}=await this.getUser();if(n)return{data:null,error:n};const i={all:[],phone:[],totp:[],webauthn:[]};for(const s of(t=r?.factors)!==null&&t!==void 0?t:[])i.all.push(s),s.status==="verified"&&i[s.factor_type].push(s);return{data:i,error:null}}async _getAuthenticatorAssuranceLevel(t){var r,n,i,s;if(t)try{const{payload:h}=Ga(t);let g=null;h.aal&&(g=h.aal);let v=g;const{data:{user:_},error:m}=await this.getUser(t);if(m)return this._returnResult({data:null,error:m});((n=(r=_?.factors)===null||r===void 0?void 0:r.filter(S=>S.status==="verified"))!==null&&n!==void 0?n:[]).length>0&&(v="aal2");const y=h.amr||[];return{data:{currentLevel:g,nextLevel:v,currentAuthenticationMethods:y},error:null}}catch(h){if(Q(h))return this._returnResult({data:null,error:h});throw h}const{data:{session:o},error:a}
137=await this.getSession();if(a)return this._returnResult({data:null,error:a});if(!o)return{data:{currentLevel:null,nextLevel:null,currentAuthenticationMethods:[]},error:null};const{payload:l}=Ga(o.access_token);let u=null;l.aal&&(u=l.aal);let c=u;((s=(i=o.user.factors)===null||i===void 0?void 0:i.filter(h=>h.status==="verified"))!==null&&s!==void 0?s:[]).length>0&&(c="aal2");const d=l.amr||[];return{data:{currentLevel:u,nextLevel:c,currentAuthenticationMethods:d},error:null}}async _getAuthorizationDetails(t){try{return await this._useSession(async r=>{const{data:{session:n},error:i}=r;return i?this._returnResult({data:null,error:i}):n?await te(this.fetch,"GET",`${this.url}/oauth/authorizations/${t}`,{headers:this.headers,jwt:n.access_token,xform:s=>({data:s,error:null})}):this._returnResult({data:null,error:new Nt})})}catch(r){if(Q(r))return this._returnResult({data:null,error:r});throw r}}async _approveAuthorization(t,r){try{return await this._useSession(async n=>{const{data:{session:i},error:s}=n;if(s)return this._returnResult({data:null,error:s});if(!i)return this._returnResult({data:null,error:new Nt});const o=await te(this.fetch,"POST",`${this.url}/oauth/authorizations/${t}/consent`,{headers:this.headers,jwt:i.access_token,body:{action:"approve"},xform:a=>({data:a,error:null})});return o.data&&o.data.redirect_url&&tt()&&!r?.skipBrowserRedirect&&window.location.assign(o.data.redirect_url),o})}catch(n){if(Q(n))return this._returnResult({data:null,error:n});throw n}}async _denyAuthorization(t,r){try{return await this._useSession(async n=>{const{data:{session:i},error:s}=n;if(s)return this._returnResult({data:null,error:s});if(!i)return this._returnResult({data:null,error:new Nt});const o=await te(this.fetch,"POST",`${this.url}/oauth/authorizations/${t}/consent`,{headers:this.headers,jwt:i.access_token,body:{action:"deny"},xform:a=>({data:a,error:null})});return o.data&&o.data.redirect_url&&tt()&&!r?.skipBrowserRedirect&&window.location.assign(o.data.redirect_url),o})}catch(n){if(Q(n))return this._returnResult({data:null,error:n});throw n}}async _listOAuthGrants(){try{return await this._useSession(async t=>{const{data:{session:r},error:n}=t;return n?this._returnResult({data:null,error:n}):r?await te(this.fetch,"GET",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:r.access_token,xform:i=>({data:i,error:null})}):this._returnResult({data:null,error:new Nt})})}catch(t){if(Q(t))return this._returnResult({data:null,error:t});throw t}}async _revokeOAuthGrant(t){try{return await this._useSession(async r=>{const{data:{session:n},error:i}=r;return i?this._returnResult({data:null,error:i}):n?(await te(this.fetch,"DELETE",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:n.access_token,query:{client_id:t.clientId},noResolveJson:!0}),{data:{},error:null}):this._returnResult({data:null,error:new Nt})})}catch(r){if(Q(r))return this._returnResult({data:null,error:r});throw r}}async fetchJwk(t,r={keys:[]}){let n=r.keys.find(a=>a.kid===t);if(n)return n;const i=Date.now();if(n=this.jwks.keys.find(a=>a.kid===t),n&&this.jwks_cached_at+oP>i)return n;const{data:s,error:o}=await te(this.fetch,"GET",`${this.url}/.well-known/jwks.json`,{headers:this.headers});if(o)throw o;return!s.keys||s.keys.length===0||(this.jwks=s,this.jwks_cached_at=i,n=s.keys.find(a=>a.kid===t),!n)?null:n}async getClaims(t,r={}){try{let n=t;if(!n){const{data:h,error:g}
137=await this.getSession();if(g||!h.session)return this._returnResult({data:null,error:g});n=h.session.access_token}const{header:i,payload:s,signature:o,raw:{header:a,payload:l}}=Ga(n);r?.allowExpired||PP(s.exp);const u=!i.alg||i.alg.startsWith("HS")||!i.kid||!("crypto"in globalThis&&"subtle"in globalThis.crypto)?null:await this.fetchJwk(i.kid,r?.keys?{keys:r.keys}:r?.jwks);if(!u){const{error:h}=await this.getUser(n);if(h)throw h;return{data:{claims:s,header:i,signature:o},error:null}}const c=RP(i.alg),f=await crypto.subtle.importKey("jwk",u,c,!0,["verify"]);if(!await crypto.subtle.verify(c,f,o,mP(`${a}.${l}`)))throw new Wd("Invalid JWT signature");return{data:{claims:s,header:i,signature:o},error:null}}catch(n){if(Q(n))return this._returnResult({data:null,error:n});throw n}}}Xo.nextInstanceID={};const oR=Xo,aR="2.97.0";let uo="";typeof Deno<"u"?uo="deno":typeof document<"u"?uo="web":typeof navigator<"u"&&navigator.product==="ReactNative"?uo="react-native":uo="node";const lR={"X-Client-Info":`supabase-js-${uo}/${aR}`},uR={headers:lR},cR={schema:"public"},dR={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},fR={};function Zo(e){"@babel/helpers - typeof";return Zo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Zo(e)}function hR(e,t){if(Zo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Zo(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function pR(e){var t=hR(e,"string");return Zo(t)=="symbol"?t:t+""}function mR(e,t,r){return(t=pR(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $m(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ue(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?$m(Object(r),!0).forEach(function(n){mR(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$m(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}const gR=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),vR=()=>Headers,yR=(e,t,r)=>{const n=gR(r),i=vR();return async(s,o)=>{var a;const l=(a=await t())!==null&&a!==void 0?a:e;let u=new i(o?.headers);return u.has("apikey")||u.set("apikey",e),u.has("Authorization")||u.set("Authorization",`Bearer ${l}`),n(s,Ue(Ue({},o),{},{headers:u}))}};function wR(e){return e.endsWith("/")?e:e+"/"}function _R(e,t){var r,n;const{db:i,auth:s,realtime:o,global:a}=e,{db:l,auth:u,realtime:c,global:f}=t,d={db:Ue(Ue({},l),i),auth:Ue(Ue({},u),s),realtime:Ue(Ue({},c),o),storage:{},global:Ue(Ue(Ue({},f),a),{},{headers:Ue(Ue({},(r=f?.headers)!==null&&r!==void 0?r:{}),(n=a?.headers)!==null&&n!==void 0?n:{})}),accessToken:async()=>""};return e.accessToken?d.accessToken=e.accessToken:delete d.accessToken,d}function bR(e){const t=e?.trim();if(!t)throw new Error("supabaseUrl is required.");if(!t.match(/^https?:\/\//i))throw new Error("Invalid supabaseUrl: Must be a valid HTTP or HTTPS URL.");try{return new URL(wR(t))}catch{throw Error("Invalid supabaseUrl: Provided URL is malformed.")}}var SR=class extends oR{constructor(e){super(e)}},ER=class{constructor(e,t,r){var n,i;this.supabaseUrl=e,this.supabaseKey=t;const s=bR(e);if(!t)throw new Error("supabaseKey is required.");this.realtimeUrl=new URL("realtime/v1",s),this.realtimeUrl.protocol=this.realtimeUrl.protocol.replace("http","ws"),this.authUrl=new URL("auth/v1",s),this.storageUrl=new URL("storage/v1",s),this.functionsUrl=new URL("functions/v1",s);const o=`sb-${s.hostname.split(".")[0]}-auth-token`,a={db:cR,realtime:fR,auth:Ue(Ue({},dR),{},{storageKey:o}),global:uR},l=_R(r??{},a);if(this.storageKey=(n=l.auth.storageKey)!==null&&n!==void 0?n:"",this.headers=(i=l.global.headers)!==null&&i!==void 0?i:{},l.accessToken)this.accessToken=l.accessToken,this.auth=new Proxy({},{get:(c,f)=>{throw new Error(`@supabase/supabase-js: Supabase Client is configured with the accessToken option, accessing supabase.auth.${String(f)} is not possible`)}});else{var u;this.auth=this._initSupabaseAuthClient((u=l.auth)!==null&&u!==void 0?u:{},this.headers,l.global.fetch)}this.fetch=yR(t,this._getAccessToken.bind(this),l.global.fetch),this.realtime=this._initRealtimeClient(Ue({headers:this.headers,accessToken:this._getAccessToken.bind(this)},l.realtime)),this.accessToken&&Promise.resolve(this.accessToken()).then(c=>this.realtime.setAuth(c)).catch(c=>console.warn("Failed to set initial Realtime auth token:",c)),this.rest=new lC(new URL("rest/v1",s).href,{headers:this.headers,schema:l.db.schema,fetch:this.fetch,timeout:l.db.timeout,urlLengthLimit:l.db.urlLengthLimit}),this.storage=new tP(this.storageUrl.href,this.headers,this.fetch,r?.storage),l.accessToken||this._listenForAuthEvents()}get functions(){return new eC(this.functionsUrl.href,{headers:this.headers,customFetch:this.fetch})}from(e){return this.rest.from(e)}schema(e){return this.rest.schema(e)}rpc(e,t={},r={head:!1,get:!1,count:void 0}){return this.rest.rpc(e,t,r)}
137channel(e,t={config:{}}){return this.realtime.channel(e,t)}getChannels(){return this.realtime.getChannels()}removeChannel(e){return this.realtime.removeChannel(e)}removeAllChannels(){return this.realtime.removeAllChannels()}async _getAccessToken(){var e=this,t,r;if(e.accessToken)return await e.accessToken();const{data:n}=await e.auth.getSession();return(t=(r=n.session)===null||r===void 0?void 0:r.access_token)!==null&&t!==void 0?t:e.supabaseKey}_initSupabaseAuthClient({autoRefreshToken:e,persistSession:t,detectSessionInUrl:r,storage:n,userStorage:i,storageKey:s,flowType:o,lock:a,debug:l,throwOnError:u},c,f){const d={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new SR({url:this.authUrl.href,headers:Ue(Ue({},d),c),storageKey:s,autoRefreshToken:e,persistSession:t,detectSessionInUrl:r,storage:n,userStorage:i,flowType:o,lock:a,debug:l,throwOnError:u,fetch:f,hasCustomAuthorizationHeader:Object.keys(this.headers).some(h=>h.toLowerCase()==="authorization")})}_initRealtimeClient(e){return new kC(this.realtimeUrl.href,Ue(Ue({},e),{},{params:Ue(Ue({},{apikey:this.supabaseKey}),e?.params)}))}_listenForAuthEvents(){return this.auth.onAuthStateChange((e,t)=>{this._handleTokenChanged(e,"CLIENT",t?.access_token)})}_handleTokenChanged(e,t,r){(e==="TOKEN_REFRESHED"||e==="SIGNED_IN")&&this.changedAccessToken!==r?(this.changedAccessToken=r,this.realtime.setAuth(r)):e==="SIGNED_OUT"&&(this.realtime.setAuth(),t=="STORAGE"&&this.auth.signOut(),this.changedAccessToken=void 0)}};const xR=(e,t,r)=>new ER(e,t,r);function kR(){if(typeof window<"u")return!1;const e=globalThis.process;if(!e)return!1;const t=e.version;if(t==null)return!1;const r=t.match(/^v(\d+)\./);return r?parseInt(r[1],10)<=18:!1}kR()&&console.warn("â ï¸ Node.js 18 and below are deprecated and will no longer be supported in future versions of @supabase/supabase-js. Please upgrade to Node.js 20 or later. For more information, visit: https://github.com/orgs/supabase/discussions/37217");const TR="https://mmdfynsvqoibydvilksj.supabase.co",CR="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Im1tZGZ5bnN2cW9pYnlkdmlsa3NqIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NTQwNDU0OTgsImV4cCI6MjA2OTYyMTQ5OH0.y5GeIEBU4rMHJZsH6lrJdimrvnRSHXZfjafOlqMcOS4",Fi=xR(TR,CR,{auth:{storage:localStorage,persistSession:!0,autoRefreshToken:!0}}),yw=w.createContext(void 0);function sO(){const e=w.useContext(yw);if(e===void 0)throw new Error("useAuth must be used within an AuthProvider");return e}function PR({children:e}){const[t,r]=w.useState(null),[n,i]=w.useState(null),[s,o]=w.useState(null),[a,l]=w.useState(!0),u=async v=>{console.log("Fetching profile for user:",v);const{data:_,error:m}=await Fi.from("profiles").select("*").eq("id",v).single();console.log("Profile fetch result:",{data:_,error:m}),!m&&_?(o(_),console.log("Profile set:",_)):console.error("Profile fetch error:",m)};w.useEffect(()=>{Fi.auth.getSession().then(({data:{session:_}})=>{i(_),r(_?.user??null),_?.user&&u(_.user.id),l(!1)});const{data:{subscription:v}}=Fi.auth.onAuthStateChange((_,m)=>{i(m),r(m?.user??null),m?.user?u(m.user.id):o(null),l(!1)});return()=>v.unsubscribe()},[]);const c=async(v,_)=>{const{error:m}=await Fi.auth.signInWithPassword({email:v,password:_});if(m)throw m},f=async(v,_)=>{const m=`${window.location.origin}/`,{error:p}=await Fi.auth.signUp({email:v,password:_,options:{emailRedirectTo:m}});if(p)throw p},d=async()=>{const{error:v}=await Fi.auth.signOut();if(v)throw v},h=s?.role==="admin";console.log("Auth state:",{user:!!t,profile:s,isAdmin:h,loading:a});const g={user:t,session:n,profile:s,isAdmin:h,loading:a,signIn:c,signUp:f,signOut:d};return O.jsx(yw.Provider,{value:g,children:e})}const ww=w.createContext(void 0);function RR({children:e}){const[t,r]=w.useState(()=>{const i=localStorage.getItem("language");return i==="hu"||i==="en"?i:"hu"});w.useEffect(()=>{localStorage.setItem("language",t)},[t]);const n=i=>{r(i)};return O.jsx(ww.Provider,{value:{language:t,setLanguage:n},children:e})}function oO(){const e=w.useContext(ww);if(e===void 0)throw new Error("useLanguage must be used within a LanguageProvider");return e}function OR(){const{pathname:e}=Ei();return w.useEffect(()=>{const t=setTimeout(()=>{window.scrollTo({top:0,left:0,behavior:"instant"})},200);return()=>clearTimeout(t)},[e]),null}const AR=w.lazy(()=>Bn(()=>import("./Home-KCg7PVep.js"),__vite__mapDeps([0,1,2,3,4]))),NR=w.lazy(()=>Bn(()=>import("./About-6JZgWxbU.js"),__vite__mapDeps([5,1,3,4]))),LR=w.lazy(()=>Bn(()=>import("./CustomFonts-3u9b1Ggt.js"),__vite__mapDeps([6,1,2,3]))),IR=w.lazy(()=>Bn(()=>import("./Lettering-Dl8kQX30.js"),__vite__mapDeps([7,1,2,3]))),jR=w.lazy(()=>Bn(()=>import("./FontInUse-eQdu3s4p.js"),__vite__mapDeps([8,1,2,3]))),DR=w.lazy(()=>Bn(()=>import("./ProjectDetail-DnVFpFyS.js"),__vite__mapDeps([9,1]))),$R=w.lazy(()=>Bn(()=>import("./NotFound-CUW7RXKv.js"),[])),MR=w.lazy(()=>Bn(()=>import("./AdminApp-OON20nP0.js").then(e=>e.A),__vite__mapDeps([10,1]))),UR=new yk,FR=()=>O.jsx(wk,{client:UR,children:O.jsx(PR,{children:O.jsx(RR,{children:O.jsxs(J1,{children:[O.jsx(DE,{}),O.jsx(dx,{}),O.jsxs(qT,{children:[O.jsx(OR,{}),O.jsx(w.Suspense,{fallback:O.jsx("div",{className:"min-h-screen bg-background flex items-center justify-center",children:"Loading..."}),children:O.jsxs(OT,{children:[O.jsx($r,{path:"/",element:O.jsx(AR,{})}),O.jsx($r,{path:"/about",element:O.jsx(NR,{})}),O.jsx($r,{path:"/custom-fonts",element:O.jsx(LR,{})}),O.jsx($r,{path:"/lettering",element:O.jsx(IR,{})}),O.jsx($r,{path:"/font-in-use",element:O.jsx(jR,{})}),O.jsx($r,{path:"/project/:id",element:O.jsx(DR,{})}),O.jsx($r,{path:"/admin/*",element:O.jsx(MR,{})}),O.jsx($r,{path:"*",element:O.jsx($R,{})})]})})]})]})})})});oy(document.getElementById("root")).render(O.jsx(FR,{}));export{nO as $,P0 as A,dk as B,nk as C,Qy as D,gt as E,Bo as F,mk as G,QR as H,BR as I,qm as J,XR as K,iO as L,JR as M,Si as N,ZR as O,ft as P,$r as Q,Uw as R,jl as S,OT as T,eO as U,Rd as V,bu as W,eE as X,V0 as Y,tO as Z,Bn as _,YR as a,M as a0,yk as a1,wk as a2,Dy as a3,_i as a4,Ei as b,ZS as c,bi as d,QS as e,sO as f,iS as g,G0 as h,Qr as i,O as j,Uf as k,Xt as l,Rt as m,ze as n,CS as o,vu as p,tk as q,w as r,Fi as s,GR as t,oO as u,Fp as v,sr as w,yu as x,Z1 as y,ek as z};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.