vendor: 6,675 bytes, lines 1-9
1var dh=e=>{throw TypeError(e)};var ec=(e,t,n)=>t.has(e)||dh("Cannot "+n);var R=(e,t,n)=>(ec(e,t,"read from private field"),n?n.call(e):t.get(e)),ue=(e,t,n)=>t.has(e)?dh("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),X=(e,t,n,r)=>(ec(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Fe=(e,t,n)=>(ec(e,t,"access private method"),n);var Ri=(e,t,n,r)=>({set _(o){X(e,t,o,n)},get _(){return R(e,t,r)}});function cb(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const s=Object.getOwnPropertyDescriptor(r,o);s&&Object.defineProperty(e,o,s.get?s:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const i of s.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(o){if(o.ep)return;o.ep=!0;const s=n(o);fetch(o.href,s)}})();var Rt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Lm(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function ub(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var Dm={exports:{}},ol={},$m={exports:{}},Z={};/** 2 * @license React 3 * react.production.min.js 4 * 5 * Copyright (c) Facebook, Inc. and its affiliates. 6 * 7 * This source code is licensed under the MIT license found in the 8 * LICENSE file in the root directory of this source tree. 9 */var ci=Symbol.for("react.element"),db=Symbol.for("react.portal"),fb=Symbol.for("react.fragment"),hb=Symbol.for("react.strict_mode"),pb=Symbol.for("react.profiler"),mb=Symbol.for("react.provider"),gb=Symbol.for("react.context"),vb=Symbol.for("react.forward_ref"),yb=Symbol.for("react.suspense"),wb=Symbol.for("react.memo"),xb=Symbol.for("react.lazy"),fh=Symbol.iterator;function bb(e){return e===null||typeof e!="object"?null:(e=fh&&e[fh]||e["@@iterator"],typeof e=="function"?e:null)}var Fm={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Um=Object.assign,zm={};function Ko(e,t,n){this.props=e,this.context=t,this.refs=zm,this.updater=n||Fm}Ko.prototype.isReactComponent={};Ko.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")};Ko.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Bm(){}Bm.prototype=Ko.prototype;function xd(e,t,n){this.props=e,this.context=t,this.refs=zm,this.updater=n||Fm}var bd=xd.prototype=new Bm;bd.constructor=xd;Um(bd,Ko.prototype);bd.isPureReactComponent=!0;var hh=Array.isArray,Vm=Object.prototype.hasOwnProperty,_d={current:null},Hm={key:!0,ref:!0,__self:!0,__source:!0};function Wm(e,t,n){var r,o={},s=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(s=""+t.key),t)Vm.call(t,r)&&!Hm.hasOwnProperty(r)&&(o[r]=t[r]);var a=arguments.length-2;if(a===1)o.children=n;else if(1<a){for(var l=Array(a),c=0;c<a;c++)l[c]=arguments[c+2];o.children=l}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)o[r]===void 0&&(o[r]=a[r]);return{$$typeof:ci,type:e,key:s,ref:i,props:o,_owner:_d.current}}function _b(e,t){return{$$typeof:ci,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Sd(e){return typeof e=="object"&&e!==null&&e.$$typeof===ci}function Sb(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var ph=/\/+/g;function tc(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Sb(""+e.key):t.toString(36)}function ia(e,t,n,r,o){var s=typeof e;(s==="undefined"||s==="boolean")&&(e=null);var i=!1;if(e===null)i=!0;else switch(s){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case ci:case db:i=!0}}if(i)return i=e,o=o(i),e=r===""?"."+tc(i,0):r,hh(o)?(n="",e!=null&&(n=e.replace(ph,"$&/")+"/"),ia(o,t,n,"",function(c){return c})):o!=null&&(Sd(o)&&(o=_b(o,n+(!o.key||i&&i.key===o.key?"":(""+o.key).replace(ph,"$&/")+"/")+e)),t.push(o)),1;if(i=0,r=r===""?".":r+":",hh(e))for(var a=0;a<e.length;a++){s=e[a];var l=r+tc(s,a);i+=ia(s,t,n,l,o)}else if(l=bb(e),typeof l=="function")for(e=l.call(e),a=0;!(s=e.next()).done;)s=s.value,l=r+tc(s,a++),i+=ia(s,t,n,l,o);else if(s==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return i}function Ni(e,t,n){if(e==null)return e;var r=[],o=0;return ia(e,r,"","",function(s){return t.call(n,s,o++)}),r}function Eb(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Xe={current:null},aa={transition:null},kb={ReactCurrentDispatcher:Xe,ReactCurrentBatchConfig:aa,ReactCurrentOwner:_d};function Km(){throw Error("act(...) is not supported in production builds of React.")}Z.Children={map:Ni,forEach:function(e,t,n){Ni(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Ni(e,function(){t++}),t},toArray:function(e){return Ni(e,function(t){return t})||[]},only:function(e){if(!Sd(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Z.Component=Ko;Z.Fragment=fb;Z.Profiler=pb;Z.PureComponent=xd;Z.StrictMode=hb;Z.Suspense=yb;
vendor: 5,019 bytes, lines 9-25
9Z.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=kb;Z.act=Km;Z.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=Um({},e.props),o=e.key,s=e.ref,i=e._owner;if(t!=null){if(t.ref!==void 0&&(s=t.ref,i=_d.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(l in t)Vm.call(t,l)&&!Hm.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&a!==void 0?a[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){a=Array(l);for(var c=0;c<l;c++)a[c]=arguments[c+2];r.children=a}return{$$typeof:ci,type:e.type,key:o,ref:s,props:r,_owner:i}};Z.createContext=function(e){return e={$$typeof:gb,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:mb,_context:e},e.Consumer=e};Z.createElement=Wm;Z.createFactory=function(e){var t=Wm.bind(null,e);return t.type=e,t};Z.createRef=function(){return{current:null}};Z.forwardRef=function(e){return{$$typeof:vb,render:e}};Z.isValidElement=Sd;Z.lazy=function(e){return{$$typeof:xb,_payload:{_status:-1,_result:e},_init:Eb}};Z.memo=function(e,t){return{$$typeof:wb,type:e,compare:t===void 0?null:t}};Z.startTransition=function(e){var t=aa.transition;aa.transition={};try{e()}finally{aa.transition=t}};Z.unstable_act=Km;Z.useCallback=function(e,t){return Xe.current.useCallback(e,t)};Z.useContext=function(e){return Xe.current.useContext(e)};Z.useDebugValue=function(){};Z.useDeferredValue=function(e){return Xe.current.useDeferredValue(e)};Z.useEffect=function(e,t){return Xe.current.useEffect(e,t)};Z.useId=function(){return Xe.current.useId()};Z.useImperativeHandle=function(e,t,n){return Xe.current.useImperativeHandle(e,t,n)};Z.useInsertionEffect=function(e,t){return Xe.current.useInsertionEffect(e,t)};Z.useLayoutEffect=function(e,t){return Xe.current.useLayoutEffect(e,t)};Z.useMemo=function(e,t){return Xe.current.useMemo(e,t)};Z.useReducer=function(e,t,n){return Xe.current.useReducer(e,t,n)};Z.useRef=function(e){return Xe.current.useRef(e)};Z.useState=function(e){return Xe.current.useState(e)};Z.useSyncExternalStore=function(e,t,n){return Xe.current.useSyncExternalStore(e,t,n)};Z.useTransition=function(){return Xe.current.useTransition()};Z.version="18.3.1";$m.exports=Z;var p=$m.exports;const M=Lm(p),Gm=cb({__proto__:null,default:M},[p]);/** 10 * @license React 11 * react-jsx-runtime.production.min.js 12 * 13 * Copyright (c) Facebook, Inc. and its affiliates. 14 * 15 * This source code is licensed under the MIT license found in the 16 * LICENSE file in the root directory of this source tree. 17 */var Cb=p,Pb=Symbol.for("react.element"),Tb=Symbol.for("react.fragment"),Rb=Object.prototype.hasOwnProperty,Nb=Cb.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,jb={key:!0,ref:!0,__self:!0,__source:!0};function qm(e,t,n){var r,o={},s=null,i=null;n!==void 0&&(s=""+n),t.key!==void 0&&(s=""+t.key),t.ref!==void 0&&(i=t.ref);for(r in t)Rb.call(t,r)&&!jb.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:Pb,type:e,key:s,ref:i,props:o,_owner:Nb.current}}ol.Fragment=Tb;ol.jsx=qm;ol.jsxs=qm;Dm.exports=ol;var h=Dm.exports,Qm={exports:{}},wt={},Ym={exports:{}},Jm={};/** 18 * @license React 19 * scheduler.production.min.js 20 * 21 * Copyright (c) Facebook, Inc. and its affiliates. 22 * 23 * This source code is licensed under the MIT license found in the 24 * LICENSE file in the root directory of this source tree. 25 */(function(e){function t(k,T){var D=k.length;k.push(T);e:for(;0<D;){var I=D-1>>>1,B=k[I];if(0<o(B,T))k[I]=T,k[D]=B,D=I;else break e}}function n(k){return k.length===0?null:k[0]}function r(k){if(k.length===0)return null;var T=k[0],D=k.pop();if(D!==T){k[0]=D;e:for(var I=0,B=k.length,G=B>>>1;I<G;){var re=2*(I+1)-1,Ce=k[re],q=re+1,V=k[q];if(0>o(Ce,D))q<B&&0>o(V,Ce)?(k[I]=V,k[q]=D,I=q):(k[I]=Ce,k[re]=D,I=re);else if(q<B&&0>o(V,D))k[I]=V,k[q]=D,I=q;else break e}}return T}function o(k,T){var D=k.sortIndex-T.sortIndex;return D!==0?D:k.id-T.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var i=Date,a=i.now();e.unstable_now=function(){return i.now()-a}}var l=[],c=[],u=1,d=null,f=3,y=!1,x=!1,m=!1,b=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,g=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function w(k){for(var T=n(c);T!==null;){if(T.callback===null)r(c);else if(T.startTime<=k)r(c),T.sortIndex=T.expirationTime,t(l,T);else break;T=n(c)}}function _(k){if(m=!1,w(k),!x)if(n(l)!==null)x=!0,$(S);else{var T=n(c);T!==null&&K(_,T.startTime-k)}}function S(k,T){x=!1,m&&(m=!1,v(P),P=-1),y=!0;var D=f;try{for(w(T),d=n(l);d!==null&&(!(d.expirationTime>T)||k&&!z());){var I=d.callback;
vendor: 9,155 bytes, lines 25-34
25if(typeof I=="function"){d.callback=null,f=d.priorityLevel;var B=I(d.expirationTime<=T);T=e.unstable_now(),typeof B=="function"?d.callback=B:d===n(l)&&r(l),w(T)}else r(l);d=n(l)}if(d!==null)var G=!0;else{var re=n(c);re!==null&&K(_,re.startTime-T),G=!1}return G}finally{d=null,f=D,y=!1}}var C=!1,E=null,P=-1,A=5,j=-1;function z(){return!(e.unstable_now()-j<A)}function L(){if(E!==null){var k=e.unstable_now();j=k;var T=!0;try{T=E(!0,k)}finally{T?H():(C=!1,E=null)}}else C=!1}var H;if(typeof g=="function")H=function(){g(L)};else if(typeof MessageChannel<"u"){var O=new MessageChannel,W=O.port2;O.port1.onmessage=L,H=function(){W.postMessage(null)}}else H=function(){b(L,0)};function $(k){E=k,C||(C=!0,H())}function K(k,T){P=b(function(){k(e.unstable_now())},T)}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(k){k.callback=null},e.unstable_continueExecution=function(){x||y||(x=!0,$(S))},e.unstable_forceFrameRate=function(k){0>k||125<k?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):A=0<k?Math.floor(1e3/k):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(k){switch(f){case 1:case 2:case 3:var T=3;break;default:T=f}var D=f;f=T;try{return k()}finally{f=D}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(k,T){switch(k){case 1:case 2:case 3:case 4:case 5:break;default:k=3}var D=f;f=k;try{return T()}finally{f=D}},e.unstable_scheduleCallback=function(k,T,D){var I=e.unstable_now();switch(typeof D=="object"&&D!==null?(D=D.delay,D=typeof D=="number"&&0<D?I+D:I):D=I,k){case 1:var B=-1;break;case 2:B=250;break;case 5:B=1073741823;break;case 4:B=1e4;break;default:B=5e3}return B=D+B,k={id:u++,callback:T,priorityLevel:k,startTime:D,expirationTime:B,sortIndex:-1},D>I?(k.sortIndex=D,t(c,k),n(l)===null&&k===n(c)&&(m?(v(P),P=-1):m=!0,K(_,D-I))):(k.sortIndex=B,t(l,k),x||y||(x=!0,$(S))),k},e.unstable_shouldYield=z,e.unstable_wrapCallback=function(k){var T=f;return function(){var D=f;f=T;try{return k.apply(this,arguments)}finally{f=D}}}})(Jm);Ym.exports=Jm;var Ob=Ym.exports;/** 26 * @license React 27 * react-dom.production.min.js 28 * 29 * Copyright (c) Facebook, Inc. and its affiliates. 30 * 31 * This source code is licensed under the MIT license found in the 32 * LICENSE file in the root directory of this source tree. 33 */var Ab=p,yt=Ob;function N(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Xm=new Set,Is={};function Mr(e,t){Io(e,t),Io(e+"Capture",t)}function Io(e,t){for(Is[e]=t,e=0;e<t.length;e++)Xm.add(t[e])}var mn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Qc=Object.prototype.hasOwnProperty,Ib=/^[: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]*$/,mh={},gh={};function Mb(e){return Qc.call(gh,e)?!0:Qc.call(mh,e)?!1:Ib.test(e)?gh[e]=!0:(mh[e]=!0,!1)}function Lb(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Db(e,t,n,r){if(t===null||typeof t>"u"||Lb(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Ze(e,t,n,r,o,s,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=i}var $e={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){$e[e]=new Ze(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];$e[t]=new Ze(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){$e[e]=new Ze(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){$e[e]=new Ze(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){$e[e]=new Ze(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){$e[e]=new Ze(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){$e[e]=new Ze(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){$e[e]=new Ze(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){$e[e]=new Ze(e,5,!1,e.toLowerCase(),null,!1,!1)});var Ed=/[\-:]([a-z])/g;function kd(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(Ed,kd);$e[t]=new Ze(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(Ed,kd);$e[t]=new Ze(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(Ed,kd);$e[t]=new Ze(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){$e[e]=new Ze(e,1,!1,e.toLowerCase(),null,!1,!1)});$e.xlinkHref=new Ze("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){$e[e]=new Ze(e,1,!1,e.toLowerCase(),null,!0,!0)});function Cd(e,t,n,r){var o=$e.hasOwnProperty(t)?$e[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Db(t,n,o,r)&&(n=null),r||o===null?Mb(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=n===null?o.type===3?!1:"":n:(t=o.attributeName,r=o.attributeNamespace,n===null?e.removeAttribute(t):(o=o.type,n=o===3||o===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var bn=Ab.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,ji=Symbol.for("react.element"),no=Symbol.for("react.portal"),ro=Symbol.for("react.fragment"),Pd=Symbol.for("react.strict_mode"),Yc=Symbol.for("react.profiler"),Zm=Symbol.for("react.provider"),eg=Symbol.for("react.context"),Td=Symbol.for("react.forward_ref"),Jc=Symbol.for("react.suspense"),Xc=Symbol.for("react.suspense_list"),Rd=Symbol.for("react.memo"),jn=Symbol.for("react.lazy"),tg=Symbol.for("react.offscreen"),vh=Symbol.iterator;function rs(e){return e===null||typeof e!="object"?null:(e=vh&&e[vh]||e["@@iterator"],typeof e=="function"?e:null)}var Se=Object.assign,nc;function ps(e){if(nc===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);nc=t&&t[1]||""}return` 34`+nc+e}var rc=!1;function oc(e,t){if(!e||rc)return"";rc=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}
vendor: 4,297 bytes, lines 34-37
34catch(c){if(c&&r&&typeof c.stack=="string"){for(var o=c.stack.split(` 35`),s=r.stack.split(` 36`),i=o.length-1,a=s.length-1;1<=i&&0<=a&&o[i]!==s[a];)a--;for(;1<=i&&0<=a;i--,a--)if(o[i]!==s[a]){if(i!==1||a!==1)do if(i--,a--,0>a||o[i]!==s[a]){var l=` 37`+o[i].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=i&&0<=a);break}}}finally{rc=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?ps(e):""}function $b(e){switch(e.tag){case 5:return ps(e.type);case 16:return ps("Lazy");case 13:return ps("Suspense");case 19:return ps("SuspenseList");case 0:case 2:case 15:return e=oc(e.type,!1),e;case 11:return e=oc(e.type.render,!1),e;case 1:return e=oc(e.type,!0),e;default:return""}}function Zc(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 ro:return"Fragment";case no:return"Portal";case Yc:return"Profiler";case Pd:return"StrictMode";case Jc:return"Suspense";case Xc:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case eg:return(e.displayName||"Context")+".Consumer";case Zm:return(e._context.displayName||"Context")+".Provider";case Td:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Rd:return t=e.displayName||null,t!==null?t:Zc(e.type)||"Memo";case jn:t=e._payload,e=e._init;try{return Zc(e(t))}catch{}}return null}function Fb(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 Zc(t);case 8:return t===Pd?"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 er(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ng(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Ub(e){var t=ng(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(i){r=""+i,s.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Oi(e){e._valueTracker||(e._valueTracker=Ub(e))}function rg(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ng(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Sa(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 eu(e,t){var n=t.checked;return Se({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function yh(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=er(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function og(e,t){t=t.checked,t!=null&&Cd(e,"checked",t,!1)}function tu(e,t){og(e,t);var n=er(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?nu(e,t.type,n):t.hasOwnProperty("defaultValue")&&nu(e,t.type,er(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}
vendor: 4,180 bytes, line 37
37function wh(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function nu(e,t,n){(t!=="number"||Sa(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ms=Array.isArray;function mo(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+er(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function ru(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(N(91));return Se({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function xh(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(N(92));if(ms(n)){if(1<n.length)throw Error(N(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:er(n)}}function sg(e,t){var n=er(t.value),r=er(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function bh(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function ig(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 ou(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?ig(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Ai,ag=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,o)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Ai=Ai||document.createElement("div"),Ai.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Ai.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ms(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var bs={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},zb=["Webkit","ms","Moz","O"];Object.keys(bs).forEach(function(e){zb.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),bs[t]=bs[e]})});function lg(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||bs.hasOwnProperty(e)&&bs[e]?(""+t).trim():t+"px"}function cg(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=lg(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var Bb=Se({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 su(e,t){if(t){if(Bb[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(N(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(N(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(N(61))}if(t.style!=null&&typeof t.style!="object")throw Error(N(62))}}function iu(e,t){if(e.indexOf("-")===-1)return typeof t.is=="str
37ing";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 au=null;function Nd(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var lu=null,go=null,vo=null;function _h(e){if(e=fi(e)){if(typeof lu!="function")throw Error(N(280));var t=e.stateNode;t&&(t=cl(t),lu(e.stateNode,e.type,t))}}function ug(e){go?vo?vo.push(e):vo=[e]:go=e}function dg(){if(go){var e=go,t=vo;if(vo=go=null,_h(e),t)for(e=0;e<t.length;e++)_h(t[e])}}function fg(e,t){return e(t)}function hg(){}var sc=!1;function pg(e,t,n){if(sc)return e(t,n);sc=!0;try{return fg(e,t,n)}finally{sc=!1,(go!==null||vo!==null)&&(hg(),dg())}}function Ls(e,t){var n=e.stateNode;if(n===null)return null;var r=cl(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(N(231,t,typeof n));return n}var cu=!1;if(mn)try{var os={};Object.defineProperty(os,"passive",{get:function(){cu=!0}}),window.addEventListener("test",os,os),window.removeEventListener("test",os,os)}catch{cu=!1}function Vb(e,t,n,r,o,s,i,a,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(u){this.onError(u)}}var _s=!1,Ea=null,ka=!1,uu=null,Hb={onError:function(e){_s=!0,Ea=e}};function Wb(e,t,n,r,o,s,i,a,l){_s=!1,Ea=null,Vb.apply(Hb,arguments)}function Kb(e,t,n,r,o,s,i,a,l){if(Wb.apply(this,arguments),_s){if(_s){var c=Ea;_s=!1,Ea=null}else throw Error(N(198));ka||(ka=!0,uu=c)}}function Lr(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function mg(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 Sh(e){if(Lr(e)!==e)throw Error(N(188))}function Gb(e){var t=e.alternate;if(!t){if(t=Lr(e),t===null)throw Error(N(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(o===null)break;var s=o.alternate;if(s===null){if(r=o.return,r!==null){n=r;continue}break}if(o.child===s.child){for(s=o.child;s;){if(s===n)return Sh(o),e;if(s===r)return Sh(o),t;s=s.sibling}throw Error(N(188))}if(n.return!==r.return)n=o,r=s;else{for(var i=!1,a=o.child;a;){if(a===n){i=!0,n=o,r=s;break}if(a===r){i=!0,r=o,n=s;break}a=a.sibling}if(!i){for(a=s.child;a;){if(a===n){i=!0,n=s,r=o;break}if(a===r){i=!0,r=s,n=o;break}a=a.sibling}if(!i)throw Error(N(189))}}if(n.alternate!==r)throw Error(N(190))}if(n.tag!==3)throw Error(N(188));return n.stateNode.current===n?e:t}function gg(e){return e=Gb(e),e!==null?vg(e):null}function vg(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=vg(e);if(t!==null)return t;e=e.sibling}return null}var yg=yt.unstable_scheduleCallback,Eh=yt.unstable_cancelCallback,qb=yt.unstable_shouldYield,Qb=yt.unstable_requestPaint,Pe=yt.unstable_now,Yb=yt.unstable_getCurrentPriorityLevel,jd=yt.unstable_ImmediatePriority,wg=yt.unstable_UserBlockingPriority,Ca=yt.unstable_NormalPriority,Jb=yt.unstable_LowPriority,xg=yt.unstable_IdlePriority,sl=null,tn=null;function Xb(e){if(tn&&typeof tn.onCommitFiberRoot=="function")try{tn.onCommitFiberRoot(sl,e,void 0,(e.current.flags&128)===128)}catch{}}var Ut=Math.clz32?Math.clz32:t1,Zb=Math.log,e1=Math.LN2;function t1(e){return e>>>=0,e===0?32:31-(Zb(e)/e1|0)|0}var Ii=64,Mi=4194304;function gs(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 Pa(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,s=e.pingedLanes,i=n&268435455;if(i!==0){var a=i&~o;a!==0?r=gs(a):(s&=i,s!==0&&(r=gs(s)))}else i=n&~o,i!==0?r=gs(i):s!==0&&(r=gs(s));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,s=t&-t,o>=s||o===16&&(s&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Ut(t),o=1<<n,r|=e[n],t&=~o;return r}function n1(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 r1(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,s=e.pendingLanes;0<s;){var i=31-Ut(s),a=1<<i,l=o[i];l===-1?(!(a&n)||a&r)&&(o[i]=n1(a,t)):l<=t&&(e.expiredLanes|=a),s&=~a}}function du(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function bg(){var e=Ii;return Ii<<=1,!(Ii&4194240)&&(Ii=64),e}function ic(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}
vendor: 4,087 bytes, line 37
37function ui(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ut(t),e[t]=n}function o1(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-Ut(n),s=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~s}}function Od(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Ut(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var de=0;function _g(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Sg,Ad,Eg,kg,Cg,fu=!1,Li=[],Wn=null,Kn=null,Gn=null,Ds=new Map,$s=new Map,In=[],s1="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 kh(e,t){switch(e){case"focusin":case"focusout":Wn=null;break;case"dragenter":case"dragleave":Kn=null;break;case"mouseover":case"mouseout":Gn=null;break;case"pointerover":case"pointerout":Ds.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":$s.delete(t.pointerId)}}function ss(e,t,n,r,o,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:s,targetContainers:[o]},t!==null&&(t=fi(t),t!==null&&Ad(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function i1(e,t,n,r,o){switch(t){case"focusin":return Wn=ss(Wn,e,t,n,r,o),!0;case"dragenter":return Kn=ss(Kn,e,t,n,r,o),!0;case"mouseover":return Gn=ss(Gn,e,t,n,r,o),!0;case"pointerover":var s=o.pointerId;return Ds.set(s,ss(Ds.get(s)||null,e,t,n,r,o)),!0;case"gotpointercapture":return s=o.pointerId,$s.set(s,ss($s.get(s)||null,e,t,n,r,o)),!0}return!1}function Pg(e){var t=yr(e.target);if(t!==null){var n=Lr(t);if(n!==null){if(t=n.tag,t===13){if(t=mg(n),t!==null){e.blockedOn=t,Cg(e.priority,function(){Eg(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function la(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=hu(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);au=r,n.target.dispatchEvent(r),au=null}else return t=fi(n),t!==null&&Ad(t),e.blockedOn=n,!1;t.shift()}return!0}function Ch(e,t,n){la(e)&&n.delete(t)}function a1(){fu=!1,Wn!==null&&la(Wn)&&(Wn=null),Kn!==null&&la(Kn)&&(Kn=null),Gn!==null&&la(Gn)&&(Gn=null),Ds.forEach(Ch),$s.forEach(Ch)}function is(e,t){e.blockedOn===t&&(e.blockedOn=null,fu||(fu=!0,yt.unstable_scheduleCallback(yt.unstable_NormalPriority,a1)))}function Fs(e){function t(o){return is(o,e)}if(0<Li.length){is(Li[0],e);for(var n=1;n<Li.length;n++){var r=Li[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Wn!==null&&is(Wn,e),Kn!==null&&is(Kn,e),Gn!==null&&is(Gn,e),Ds.forEach(t),$s.forEach(t),n=0;n<In.length;n++)r=In[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<In.length&&(n=In[0],n.blockedOn===null);)Pg(n),n.blockedOn===null&&In.shift()}var yo=bn.ReactCurrentBatchConfig,Ta=!0;function l1(e,t,n,r){var o=de,s=yo.transition;yo.transition=null;try{de=1,Id(e,t,n,r)}finally{de=o,yo.transition=s}}function c1(e,t,n,r){var o=de,s=yo.transition;yo.transition=null;try{de=4,Id(e,t,n,r)}finally{de=o,yo.transition=s}}function Id(e,t,n,r){if(Ta){var o=hu(e,t,n,r);if(o===null)gc(e,t,r,Ra,n),kh(e,r);else if(i1(o,e,t,n,r))r.stopPropagation();else if(kh(e,r),t&4&&-1<s1.indexOf(e)){for(;o!==null;){var s=fi(o);if(s!==null&&Sg(s),s=hu(e,t,n,r),s===null&&gc(e,t,r,Ra,n),s===o)break;o=s}o!==null&&r.stopPropagation()}else gc(e,t,r,null,n)}}var Ra=null;function hu(e,t,n,r){if(Ra=null,e=Nd(r),e=yr(e),e!==null)if(t=Lr(e),t===null)e=null;else if(n=t.tag,n===13){if(e=mg(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Ra=e,null}
vendor: 10,401 bytes, line 37
37function Tg(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(Yb()){case jd:return 1;case wg:return 4;case Ca:case Jb:return 16;case xg:return 536870912;default:return 16}default:return 16}}var Bn=null,Md=null,ca=null;function Rg(){if(ca)return ca;var e,t=Md,n=t.length,r,o="value"in Bn?Bn.value:Bn.textContent,s=o.length;for(e=0;e<n&&t[e]===o[e];e++);var i=n-e;for(r=1;r<=i&&t[n-r]===o[s-r];r++);return ca=o.slice(e,1<r?1-r:void 0)}function ua(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 Di(){return!0}function Ph(){return!1}function xt(e){function t(n,r,o,s,i){this._reactName=n,this._targetInst=o,this.type=r,this.nativeEvent=s,this.target=i,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(s):s[a]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?Di:Ph,this.isPropagationStopped=Ph,this}return Se(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Di)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Di)},persist:function(){},isPersistent:Di}),t}var Go={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ld=xt(Go),di=Se({},Go,{view:0,detail:0}),u1=xt(di),ac,lc,as,il=Se({},di,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Dd,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!==as&&(as&&e.type==="mousemove"?(ac=e.screenX-as.screenX,lc=e.screenY-as.screenY):lc=ac=0,as=e),ac)},movementY:function(e){return"movementY"in e?e.movementY:lc}}),Th=xt(il),d1=Se({},il,{dataTransfer:0}),f1=xt(d1),h1=Se({},di,{relatedTarget:0}),cc=xt(h1),p1=Se({},Go,{animationName:0,elapsedTime:0,pseudoElement:0}),m1=xt(p1),g1=Se({},Go,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),v1=xt(g1),y1=Se({},Go,{data:0}),Rh=xt(y1),w1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},x1={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"},b1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function _1(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=b1[e])?!!t[e]:!1}function Dd(){return _1}var S1=Se({},di,{key:function(e){if(e.key){var t=w1[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ua(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?x1[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Dd,charCode:function(e){return e.type==="keypress"?ua(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ua(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),E1=xt(S1),k1=Se({},il,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Nh=xt(k1),C1=Se({},di,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Dd}),P1=xt(C1),T1=Se({},Go,{propertyName:0,elapsedTime:0,pseudoElement:0}),R1=xt(T1),N1=Se({},il,{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}),j1=xt(N1),O1=[9,13,27,32],$d=mn&&"CompositionEvent"in window,Ss=null;mn&&"documentMode"in document&&(Ss=document.documentMode);var A1=mn&&"TextEvent"in window&&!Ss,Ng=mn&&(!$d||Ss&&8<Ss&&11>=Ss),jh=" ",Oh=!1;function jg(e,t){switch(e){case"keyup":return O1.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Og(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var oo=!1;function I1(e,t){switch(e){case"compositionend":return Og(t);case"keypress":return t.which!==32?null:(Oh=!0,jh);case"textInput":return e=t.data,e===jh&&Oh?null:e;default:return null}}function M1(e,t){if(oo)return e==="compositionend"||!$d&&jg(e,t)?(e=Rg(),ca=Md=Bn=null,oo=!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 Ng&&t.locale!=="ko"?null:t.data;default:return null}}var L1={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 Ah(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!L1[e.type]:t==="textarea"}function Ag(e,t,n,r){ug(r),t=Na(t,"onChange"),0<t.length&&(n=new Ld("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Es=null,Us=null;function D1(e){Hg(e,0)}function al(e){var t=ao(e);if(rg(t))return e}function $1(e,t){if(e==="change")return t}var Ig=!1;if(mn){var uc;if(mn){var dc="oninput"in document;if(!dc){var Ih=document.createElement("div");Ih.setAttribute("oninput","return;"),dc=typeof Ih.oninput=="function"}uc=dc}else uc=!1;Ig=uc&&(!document.documentMode||9<document.documentMode)}function Mh(){Es&&(Es.detachEvent("onpropertychange",Mg),Us=Es=null)}function Mg(e){if(e.propertyName==="value"&&al(Us)){var t=[];Ag(t,Us,e,Nd(e)),pg(D1,t)}}function F1(e,t,n){e==="focusin"?(Mh(),Es=t,Us=n,Es.attachEvent("onpropertychange",Mg)):e==="focusout"&&Mh()}function U1(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return al(Us)}function z1(e,t){if(e==="click")return al(t)}function B1(e,t){if(e==="input"||e==="change")return al(t)}function V1(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Bt=typeof Object.is=="function"?Object.is:V1;function zs(e,t){if(Bt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!Qc.call(t,o)||!Bt(e[o],t[o]))return!1}return!0}function Lh(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Dh(e,t){var n=Lh(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Lh(n)}}function Lg(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Lg(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Dg(){for(var e=window,t=Sa();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Sa(e.document)}return t}function Fd(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 H1(e){var t=Dg(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Lg(n.ownerDocument.documentElement,n)){if(r!==null&&Fd(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,s=Math.min(r.start,o);r=r.end===void 0?s:Math.min(r.end,o),!e.extend&&s>r&&(o=r,r=s,s=o),o=Dh(n,s);var i=Dh(n,r);o&&i&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),s>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var W1=mn&&"documentMode"in document&&11>=document.documentMode,so=null,pu=null,ks=null,mu=!1;function $h(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;mu||so==null||so!==Sa(r)||(r=so,"selectionStart"in r&&Fd(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focu
vendor: 4,501 bytes, line 37
37sNode:r.focusNode,focusOffset:r.focusOffset}),ks&&zs(ks,r)||(ks=r,r=Na(pu,"onSelect"),0<r.length&&(t=new Ld("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=so)))}function $i(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var io={animationend:$i("Animation","AnimationEnd"),animationiteration:$i("Animation","AnimationIteration"),animationstart:$i("Animation","AnimationStart"),transitionend:$i("Transition","TransitionEnd")},fc={},$g={};mn&&($g=document.createElement("div").style,"AnimationEvent"in window||(delete io.animationend.animation,delete io.animationiteration.animation,delete io.animationstart.animation),"TransitionEvent"in window||delete io.transitionend.transition);function ll(e){if(fc[e])return fc[e];if(!io[e])return e;var t=io[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in $g)return fc[e]=t[n];return e}var Fg=ll("animationend"),Ug=ll("animationiteration"),zg=ll("animationstart"),Bg=ll("transitionend"),Vg=new Map,Fh="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 ir(e,t){Vg.set(e,t),Mr(t,[e])}for(var hc=0;hc<Fh.length;hc++){var pc=Fh[hc],K1=pc.toLowerCase(),G1=pc[0].toUpperCase()+pc.slice(1);ir(K1,"on"+G1)}ir(Fg,"onAnimationEnd");ir(Ug,"onAnimationIteration");ir(zg,"onAnimationStart");ir("dblclick","onDoubleClick");ir("focusin","onFocus");ir("focusout","onBlur");ir(Bg,"onTransitionEnd");Io("onMouseEnter",["mouseout","mouseover"]);Io("onMouseLeave",["mouseout","mouseover"]);Io("onPointerEnter",["pointerout","pointerover"]);Io("onPointerLeave",["pointerout","pointerover"]);Mr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Mr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Mr("onBeforeInput",["compositionend","keypress","textInput","paste"]);Mr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Mr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Mr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var vs="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(" "),q1=new Set("cancel close invalid load scroll toggle".split(" ").concat(vs));function Uh(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Kb(r,t,void 0,e),e.currentTarget=null}function Hg(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var s=void 0;if(t)for(var i=r.length-1;0<=i;i--){var a=r[i],l=a.instance,c=a.currentTarget;if(a=a.listener,l!==s&&o.isPropagationStopped())break e;Uh(o,a,c),s=l}else for(i=0;i<r.length;i++){if(a=r[i],l=a.instance,c=a.currentTarget,a=a.listener,l!==s&&o.isPropagationStopped())break e;Uh(o,a,c),s=l}}}if(ka)throw e=uu,ka=!1,uu=null,e}function ye(e,t){var n=t[xu];n===void 0&&(n=t[xu]=new Set);var r=e+"__bubble";n.has(r)||(Wg(t,e,2,!1),n.add(r))}function mc(e,t,n){var r=0;t&&(r|=4),Wg(n,e,r,t)}var Fi="_reactListening"+Math.random().toString(36).slice(2);function Bs(e){if(!e[Fi]){e[Fi]=!0,Xm.forEach(function(n){n!=="selectionchange"&&(q1.has(n)||mc(n,!1,e),mc(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Fi]||(t[Fi]=!0,mc("selectionchange",!1,t))}}function Wg(e,t,n,r){switch(Tg(t)){case 1:var o=l1;break;case 4:o=c1;break;default:o=Id}n=o.bind(null,t,n,e),o=void 0,!cu||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),r?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function gc(e,t,n,r,o){var s=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var i=r.tag;if(i===3||i===4){var a=r.stateNode.containerInfo;
vendor: 6,064 bytes, lines 37-38
37if(a===o||a.nodeType===8&&a.parentNode===o)break;if(i===4)for(i=r.return;i!==null;){var l=i.tag;if((l===3||l===4)&&(l=i.stateNode.containerInfo,l===o||l.nodeType===8&&l.parentNode===o))return;i=i.return}for(;a!==null;){if(i=yr(a),i===null)return;if(l=i.tag,l===5||l===6){r=s=i;continue e}a=a.parentNode}}r=r.return}pg(function(){var c=s,u=Nd(n),d=[];e:{var f=Vg.get(e);if(f!==void 0){var y=Ld,x=e;switch(e){case"keypress":if(ua(n)===0)break e;case"keydown":case"keyup":y=E1;break;case"focusin":x="focus",y=cc;break;case"focusout":x="blur",y=cc;break;case"beforeblur":case"afterblur":y=cc;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":y=Th;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":y=f1;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":y=P1;break;case Fg:case Ug:case zg:y=m1;break;case Bg:y=R1;break;case"scroll":y=u1;break;case"wheel":y=j1;break;case"copy":case"cut":case"paste":y=v1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":y=Nh}var m=(t&4)!==0,b=!m&&e==="scroll",v=m?f!==null?f+"Capture":null:f;m=[];for(var g=c,w;g!==null;){w=g;var _=w.stateNode;if(w.tag===5&&_!==null&&(w=_,v!==null&&(_=Ls(g,v),_!=null&&m.push(Vs(g,_,w)))),b)break;g=g.return}0<m.length&&(f=new y(f,x,null,n,u),d.push({event:f,listeners:m}))}}if(!(t&7)){e:{if(f=e==="mouseover"||e==="pointerover",y=e==="mouseout"||e==="pointerout",f&&n!==au&&(x=n.relatedTarget||n.fromElement)&&(yr(x)||x[gn]))break e;if((y||f)&&(f=u.window===u?u:(f=u.ownerDocument)?f.defaultView||f.parentWindow:window,y?(x=n.relatedTarget||n.toElement,y=c,x=x?yr(x):null,x!==null&&(b=Lr(x),x!==b||x.tag!==5&&x.tag!==6)&&(x=null)):(y=null,x=c),y!==x)){if(m=Th,_="onMouseLeave",v="onMouseEnter",g="mouse",(e==="pointerout"||e==="pointerover")&&(m=Nh,_="onPointerLeave",v="onPointerEnter",g="pointer"),b=y==null?f:ao(y),w=x==null?f:ao(x),f=new m(_,g+"leave",y,n,u),f.target=b,f.relatedTarget=w,_=null,yr(u)===c&&(m=new m(v,g+"enter",x,n,u),m.target=w,m.relatedTarget=b,_=m),b=_,y&&x)t:{for(m=y,v=x,g=0,w=m;w;w=Gr(w))g++;for(w=0,_=v;_;_=Gr(_))w++;for(;0<g-w;)m=Gr(m),g--;for(;0<w-g;)v=Gr(v),w--;for(;g--;){if(m===v||v!==null&&m===v.alternate)break t;m=Gr(m),v=Gr(v)}m=null}else m=null;y!==null&&zh(d,f,y,m,!1),x!==null&&b!==null&&zh(d,b,x,m,!0)}}e:{if(f=c?ao(c):window,y=f.nodeName&&f.nodeName.toLowerCase(),y==="select"||y==="input"&&f.type==="file")var S=$1;else if(Ah(f))if(Ig)S=B1;else{S=U1;var C=F1}else(y=f.nodeName)&&y.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(S=z1);if(S&&(S=S(e,c))){Ag(d,S,n,u);break e}C&&C(e,f,c),e==="focusout"&&(C=f._wrapperState)&&C.controlled&&f.type==="number"&&nu(f,"number",f.value)}switch(C=c?ao(c):window,e){case"focusin":(Ah(C)||C.contentEditable==="true")&&(so=C,pu=c,ks=null);break;case"focusout":ks=pu=so=null;break;case"mousedown":mu=!0;break;case"contextmenu":case"mouseup":case"dragend":mu=!1,$h(d,n,u);break;case"selectionchange":if(W1)break;case"keydown":case"keyup":$h(d,n,u)}var E;if($d)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 oo?jg(e,n)&&(P="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(P="onCompositionStart");P&&(Ng&&n.locale!=="ko"&&(oo||P!=="onCompositionStart"?P==="onCompositionEnd"&&oo&&(E=Rg()):(Bn=u,Md="value"in Bn?Bn.value:Bn.textContent,oo=!0)),C=Na(c,P),0<C.length&&(P=new Rh(P,e,null,n,u),d.push({event:P,listeners:C}),E?P.data=E:(E=Og(n),E!==null&&(P.data=E)))),(E=A1?I1(e,n):M1(e,n))&&(c=Na(c,"onBeforeInput"),0<c.length&&(u=new Rh("onBeforeInput","beforeinput",null,n,u),d.push({event:u,listeners:c}),u.data=E))}Hg(d,t)})}function Vs(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Na(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,s=o.stateNode;o.tag===5&&s!==null&&(o=s,s=Ls(e,n),s!=null&&r.unshift(Vs(e,s,o)),s=Ls(e,t),s!=null&&r.push(Vs(e,s,o))),e=e.return}return r}function Gr(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function zh(e,t,n,r,o){for(var s=t._reactName,i=[];n!==null&&n!==r;){var a=n,l=a.alternate,c=a.stateNode;if(l!==null&&l===r)break;a.tag===5&&c!==null&&(a=c,o?(l=Ls(n,s),l!=null&&i.unshift(Vs(n,l,a))):o||(l=Ls(n,s),l!=null&&i.push(Vs(n,l,a)))),n=n.return}i.length!==0&&e.push({event:t,listeners:i})}var Q1=/\r\n?/g,Y1=/\u0000|\uFFFD/g;function Bh(e){return(typeof e=="string"?e:""+e).replace(Q1,` 38`).replace(Y1,"")}function Ui(e,t,n){if(t=Bh(t),Bh(e)!==t&&n)throw Error(N(425))}function ja(){}var gu=null,vu=null;function yu(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 wu=typeof setTimeout=="function"?setTimeout:void 0,J1=typeof clearTimeout=="function"?clearTimeout:void 0,Vh=typeof Promise=="function"?Promise:void 0,X1=typeof queueMicrotask=="function"?queueMicrotask:typeof Vh<"u"?function(e){return Vh.resolve(null).then(e).catch(Z1)}:wu;function Z1(e){setTimeout(function(){throw e})}function vc(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"){if(r===0){e.removeChild(o),Fs(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);Fs(t)}function qn(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 Hh(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var qo=Math.random().toString(36).slice(2),Zt="__reactFiber$"+qo,Hs="__reactProps$"+qo,gn="__reactContainer$"+qo,xu
vendor: 2,524 bytes, line 38
38="__reactEvents$"+qo,e_="__reactListeners$"+qo,t_="__reactHandles$"+qo;function yr(e){var t=e[Zt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[gn]||n[Zt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Hh(e);e!==null;){if(n=e[Zt])return n;e=Hh(e)}return t}e=n,n=e.parentNode}return null}function fi(e){return e=e[Zt]||e[gn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function ao(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(N(33))}function cl(e){return e[Hs]||null}var bu=[],lo=-1;function ar(e){return{current:e}}function we(e){0>lo||(e.current=bu[lo],bu[lo]=null,lo--)}function me(e,t){lo++,bu[lo]=e.current,e.current=t}var tr={},He=ar(tr),it=ar(!1),Pr=tr;function Mo(e,t){var n=e.type.contextTypes;if(!n)return tr;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},s;for(s in n)o[s]=t[s];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function at(e){return e=e.childContextTypes,e!=null}function Oa(){we(it),we(He)}function Wh(e,t,n){if(He.current!==tr)throw Error(N(168));me(He,t),me(it,n)}function Kg(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(N(108,Fb(e)||"Unknown",o));return Se({},n,r)}function Aa(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||tr,Pr=He.current,me(He,e),me(it,it.current),!0}function Kh(e,t,n){var r=e.stateNode;if(!r)throw Error(N(169));n?(e=Kg(e,t,Pr),r.__reactInternalMemoizedMergedChildContext=e,we(it),we(He),me(He,e)):we(it),me(it,n)}var dn=null,ul=!1,yc=!1;function Gg(e){dn===null?dn=[e]:dn.push(e)}function n_(e){ul=!0,Gg(e)}function lr(){if(!yc&&dn!==null){yc=!0;var e=0,t=de;try{var n=dn;for(de=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}dn=null,ul=!1}catch(o){throw dn!==null&&(dn=dn.slice(e+1)),yg(jd,lr),o}finally{de=t,yc=!1}}return null}var co=[],uo=0,Ia=null,Ma=0,St=[],Et=0,Tr=null,fn=1,hn="";function pr(e,t){co[uo++]=Ma,co[uo++]=Ia,Ia=e,Ma=t}function qg(e,t,n){St[Et++]=fn,St[Et++]=hn,St[Et++]=Tr,Tr=e;var r=fn;e=hn;var o=32-Ut(r)-1;r&=~(1<<o),n+=1;var s=32-Ut(t)+o;if(30<s){var i=o-o%5;s=(r&(1<<i)-1).toString(32),r>>=i,o-=i,fn=1<<32-Ut(t)+o|n<<o|r,hn=s+e}else fn=1<<s|n<<o|r,hn=e}function Ud(e){e.return!==null&&(pr(e,1),qg(e,1,0))}function zd(e){for(;e===Ia;)Ia=co[--uo],co[uo]=null,Ma=co[--uo],co[uo]=null;for(;e===Tr;
vendor: 15,820 bytes, line 38
38)Tr=St[--Et],St[Et]=null,hn=St[--Et],St[Et]=null,fn=St[--Et],St[Et]=null}var gt=null,mt=null,xe=!1,Ft=null;function Qg(e,t){var n=kt(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Gh(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,gt=e,mt=qn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,gt=e,mt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Tr!==null?{id:fn,overflow:hn}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=kt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,gt=e,mt=null,!0):!1;default:return!1}}function _u(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Su(e){if(xe){var t=mt;if(t){var n=t;if(!Gh(e,t)){if(_u(e))throw Error(N(418));t=qn(n.nextSibling);var r=gt;t&&Gh(e,t)?Qg(r,n):(e.flags=e.flags&-4097|2,xe=!1,gt=e)}}else{if(_u(e))throw Error(N(418));e.flags=e.flags&-4097|2,xe=!1,gt=e}}}function qh(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;gt=e}function zi(e){if(e!==gt)return!1;if(!xe)return qh(e),xe=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!yu(e.type,e.memoizedProps)),t&&(t=mt)){if(_u(e))throw Yg(),Error(N(418));for(;t;)Qg(e,t),t=qn(t.nextSibling)}if(qh(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(N(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){mt=qn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}mt=null}}else mt=gt?qn(e.stateNode.nextSibling):null;return!0}function Yg(){for(var e=mt;e;)e=qn(e.nextSibling)}function Lo(){mt=gt=null,xe=!1}function Bd(e){Ft===null?Ft=[e]:Ft.push(e)}var r_=bn.ReactCurrentBatchConfig;function ls(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(N(309));var r=n.stateNode}if(!r)throw Error(N(147,e));var o=r,s=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===s?t.ref:(t=function(i){var a=o.refs;i===null?delete a[s]:a[s]=i},t._stringRef=s,t)}if(typeof e!="string")throw Error(N(284));if(!n._owner)throw Error(N(290,e))}return e}function Bi(e,t){throw e=Object.prototype.toString.call(t),Error(N(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Qh(e){var t=e._init;return t(e._payload)}function Jg(e){function t(v,g){if(e){var w=v.deletions;w===null?(v.deletions=[g],v.flags|=16):w.push(g)}}function n(v,g){if(!e)return null;for(;g!==null;)t(v,g),g=g.sibling;return null}function r(v,g){for(v=new Map;g!==null;)g.key!==null?v.set(g.key,g):v.set(g.index,g),g=g.sibling;return v}function o(v,g){return v=Xn(v,g),v.index=0,v.sibling=null,v}function s(v,g,w){return v.index=w,e?(w=v.alternate,w!==null?(w=w.index,w<g?(v.flags|=2,g):w):(v.flags|=2,g)):(v.flags|=1048576,g)}function i(v){return e&&v.alternate===null&&(v.flags|=2),v}function a(v,g,w,_){return g===null||g.tag!==6?(g=kc(w,v.mode,_),g.return=v,g):(g=o(g,w),g.return=v,g)}function l(v,g,w,_){var S=w.type;return S===ro?u(v,g,w.props.children,_,w.key):g!==null&&(g.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===jn&&Qh(S)===g.type)?(_=o(g,w.props),_.ref=ls(v,g,w),_.return=v,_):(_=va(w.type,w.key,w.props,null,v.mode,_),_.ref=ls(v,g,w),_.return=v,_)}function c(v,g,w,_){return g===null||g.tag!==4||g.stateNode.containerInfo!==w.containerInfo||g.stateNode.implementation!==w.implementation?(g=Cc(w,v.mode,_),g.return=v,g):(g=o(g,w.children||[]),g.return=v,g)}function u(v,g,w,_,S){return g===null||g.tag!==7?(g=Cr(w,v.mode,_,S),g.return=v,g):(g=o(g,w),g.return=v,g)}function d(v,g,w){if(typeof g=="string"&&g!==""||typeof g=="number")return g=kc(""+g,v.mode,w),g.return=v,g;if(typeof g=="object"&&g!==null){switch(g.$$typeof){case ji:return w=va(g.type,g.key,g.props,null,v.mode,w),w.ref=ls(v,null,g),w.return=v,w;case no:return g=Cc(g,v.mode,w),g.return=v,g;case jn:var _=g._init;return d(v,_(g._payload),w)}if(ms(g)||rs(g))return g=Cr(g,v.mode,w,null),g.return=v,g;Bi(v,g)}return null}function f(v,g,w,_){var S=g!==null?g.key:null;if(typeof w=="string"&&w!==""||typeof w=="number")return S!==null?null:a(v,g,""+w,_);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case ji:return w.key===S?l(v,g,w,_):null;case no:return w.key===S?c(v,g,w,_):null;case jn:return S=w._init,f(v,g,S(w._payload),_)}if(ms(w)||rs(w))return S!==null?null:u(v,g,w,_,null);Bi(v,w)}return null}function y(v,g,w,_,S){if(typeof _=="string"&&_!==""||typeof _=="number")return v=v.get(w)||null,a(g,v,""+_,S);if(typeof _=="object"&&_!==null){switch(_.$$typeof){case ji:return v=v.get(_.key===null?w:_.key)||null,l(g,v,_,S);case no:return v=v.get(_.key===null?w:_.key)||null,c(g,v,_,S);case jn:var C=_._init;return y(v,g,w,C(_._payload),S)}if(ms(_)||rs(_))return v=v.get(w)||null,u(g,v,_,S,null);Bi(g,_)}return null}function x(v,g,w,_){for(var S=null,C=null,E=g,P=g=0,A=null;E!==null&&P<w.length;P++){E.index>P?(A=E,E=null):A=E.sibling;var j=f(v,E,w[P],_);if(j===null){E===null&&(E=A);break}e&&E&&j.alternate===null&&t(v,E),g=s(j,g,P),C===null?S=j:C.sibling=j,C=j,E=A}if(P===w.length)return n(v,E),xe&&pr(v,P),S;if(E===null){for(;P<w.length;P++)E=d(v,w[P],_),E!==null&&(g=s(E,g,P),C===null?S=E:C.sibling=E,C=E);return xe&&pr(v,P),S}for(E=r(v,E);P<w.length;P++)A=y(E,v,P,w[P],_),A!==null&&(e&&A.alternate!==null&&E.delete(A.key===null?P:A.key),g=s(A,g,P),C===null?S=A:C.sibling=A,C=A);return e&&E.forEach(function(z){return t(v,z)}),xe&&pr(v,P),S}function m(v,g,w,_){var S=rs(w);if(typeof S!="function")throw Error(N(150));if(w=S.call(w),w==null)throw Error(N(151));for(var C=S=null,E=g,P=g=0,A=null,j=w.next();E!==null&&!j.done;P++,j=w.next()){E.index>P?(A=E,E=null):A=E.sibling;var z=f(v,E,j.value,_);if(z===null){E===null&&(E=A);break}e&&E&&z.alternate===null&&t(v,E),g=s(z,g,P),C===null?S=z:C.sibling=z,C=z,E=A}if(j.done)return n(v,E),xe&&pr(v,P),S;if(E===null){for(;!j.done;P++,j=w.next())j=d(v,j.value,_),j!==null&&(g=s(j,g,P),C===null?S=j:C.sibling=j,C=j);return xe&&pr(v,P),S}for(E=r(v,E);!j.done;P++,j=w.next())j=y(E,v,P,j.value,_),j!==null&&(e&&j.alternate!==null&&E.delete(j.key===null?P:j.key),g=s(j,g,P),C===null?S=j:C.sibling=j,C=j);return e&&E.forEach(function(L){return t(v,L)}),xe&&pr(v,P),S}function b(v,g,w,_){if(typeof w=="object"&&w!==null&&w.type===ro&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case ji:e:{for(var S=w.key,C=g;C!==null;){if(C.key===S){if(S=w.type,S===ro){if(C.tag===7){n(v,C.sibling),g=o(C,w.props.children),g.return=v,v=g;break e}}else if(C.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===jn&&Qh(S)===C.type){n(v,C.sibling),g=o(C,w.props),g.ref=ls(v,C,w),g.return=v,v=g;break e}n(v,C);break}else t(v,C);C=C.sibling}w.type===ro?(g=Cr(w.props.children,v.mode,_,w.key),g.return=v,v=g):(_=va(w.type,w.key,w.props,null,v.mode,_),_.ref=ls(v,g,w),_.return=v,v=_)}return i(v);case no:e:{for(C=w.key;g!==null;){if(g.key===C)if(g.tag===4&&g.stateNode.containerInfo===w.containerInfo&&g.stateNode.implementation===w.implementation){n(v,g.sibling),g=o(g,w.children||[]),g.return=v,v=g;break e}else{n(v,g);break}else t(v,g);g=g.sibling}g=Cc(w,v.mode,_),g.return=v,v=g}return i(v);case jn:return C=w._init,b(v,g,C(w._payload),_)}if(ms(w))return x(v,g,w,_);if(rs(w))return m(v,g,w,_);Bi(v,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,g!==null&&g.tag===6?(n(v,g.sibling),g=o(g,w),g.return=v,v=g):(n(v,g),g=kc(w,v.mode,_),g.return=v,v=g),i(v)):n(v,g)}return b}var Do=Jg(!0),Xg=Jg(!1),La=ar(null),Da=null,fo=null,Vd=null;function Hd(){Vd=fo=Da=null}function Wd(e){var t=La.current;we(La),e._currentValue=t}function Eu(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function wo(e,t){Da=e,Vd=fo=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(st=!0),e.firstContext=null)}function Nt(e){var t=e._currentValue;if(Vd!==e)if(e={context:e,memoizedValue:t,next:null},fo===null){if(Da===null)throw Error(N(308));fo=e,Da.dependencies={lanes:0,firstContext:e}}else fo=fo.next=e;return t}var wr=null;function Kd(e){wr===null?wr=[e]:wr.push(e)}function Zg(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,Kd(t)):(n.next=o.next,o.next=n),t.interleaved=n,vn(e,r)}function vn(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var On=!1;function Gd(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function ev(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 pn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Qn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,se&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,vn(e,n)}return o=r.interleaved,o===null?(t.next=t,Kd(r)):(t.next=o.next,o.next=t),r.interleaved=t,vn(e,n)}function da(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Od(e,n)}}function Yh(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};s===null?o=s=i:s=s.next=i,n=n.next}while(n!==null);s===null?o=s=t:s=s.next=t}else o=s=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:s,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function $a(e,t,n,r){var o=e.updateQueue;On=!1;var s=o.firstBaseUpdate,i=o.lastBaseUpdate,a=o.shared.pending;if(a!==null){o.shared.pending=null;var l=a,c=l.next;l.next=null,i===null?s=c:i.next=c,i=l;var u=e.alternate;u!==null&&(u=u.updateQueue,a=u.lastBaseUpdate,a!==i&&(a===null?u.firstBaseUpdate=c:a.next=c,u.lastBaseUpdate=l))}if(s!==null){var d=o.baseState;i=0,u=c=l=null,a=s;do{var f=a.lane,y=a.eventTime;if((r&f)===f){u!==null&&(u=u.next={eventTime:y,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var x=e,m=a;switch(f=t,y=n,m.tag){case 1:if(x=m.payload,typeof x=="function"){d=x.call(y,d,f);break e}d=x;break e;case 3:x.flags=x.flags&-65537|128;case 0:if(x=m.payload,f=typeof x=="function"?x.call(y,d,f):x,f==null)break e;d=Se({},d,f);break e;case 2:On=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,f=o.effects,f===null?o.effects=[a]:f.push(a))}else y={eventTime:y,lane:f,tag:a.tag,payload:a.payload,callback:a.callback,next:null},u===null?(c=u=y,l=d):u=u.next=y,i|=f;if(a=a.next,a===null){if(a=o.shared.pending,a===null)break;f=a,a=f.next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}while(!0);if(u===null&&(l=d),o.baseState=l,o.firstBaseUpdate=c,o.lastBaseUpdate=u,t=o.shared.interleaved,t!==null){o=t;do i|=o.lane,o=o.next;while(o!==t)}else s===null&&(o.shared.lanes=0);Nr|=i,e.lanes=i,e.memoizedState=d}}function Jh(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(o!==null){if(r.callback=null,r=n,typeof o!="function")throw Error(N(191,o));o.call(r)}}}var hi={},nn=ar(hi),Ws=ar(hi),Ks=ar(hi);function xr(e){if(e===hi)throw Error(N(174));return e}function qd(e,t){switch(me(Ks,t),me(Ws,e),me(nn,hi),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ou(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=ou(t,e)}we(nn),me(nn,t)}function $o(){we(nn),we(Ws),we(Ks)}function tv(e){xr(Ks.current);var t=xr(nn.current),n=ou(t,e.type);t!==n&&(me(Ws,e),me(nn,n))}function Qd(e){Ws.current===e&&(we(nn),we(Ws))}var be=ar(0);function Fa(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var wc=[];function Yd(){for(var e=0;e<wc.length;e++)wc[e]._workInProgressVersionPrimary=null;wc.length=0}var fa=bn.ReactCurrentDispatcher,xc=bn.ReactCurrentBatchConfig,Rr=0,_e=null,Ne=null,Ae=null,Ua=!1,Cs=!1,Gs=0,o_=0;function Ue(){throw Error(N(321))}function Jd(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Bt(e[n],t[n]))return!1;return!0}function Xd(e,t,n,r,o,s){if(Rr=s,_e=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,fa.current=e===null||e.memoizedState===null?l_:c_,e=n(r,o),Cs){s=0;do{if(Cs=!1,Gs=0,25<=s)throw Error(N(301));s+=1,Ae=Ne=null,t.updateQueue=null,fa.current=u_,e=n(r,o)}while(Cs)}if(fa.current=za,t=Ne!==null&&Ne.next!==null,Rr=0,Ae=Ne=_e=null,Ua=!1,t)throw Error(N(300));return e}function Zd(){var e=Gs!==0;return Gs=0,e}function Qt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ae===null?_e.memoizedState=Ae=e:Ae=Ae.next=e,Ae}function jt(){if(Ne===null){var e=_e.alternate;e=e!==null?e.memoizedState:null}else e=Ne.next;var t=Ae===null?_e.memoizedState:Ae.next;if(t!==null)Ae=t,Ne=e;else{if(e===null)throw Error(N(310));Ne=e,e={memoizedState:Ne.memoizedState,baseState:Ne.baseState,baseQueue:Ne.baseQueue,queue:Ne.queue,next:null},Ae===null?_e.memoizedState=Ae=e:Ae=Ae.next=e}return Ae}function qs(e,t){return typeof t=="function"?t(e):t}function bc(e){var t=jt(),n=t.queue;if(n===null)throw Error(N(311));n.lastRenderedReducer=e;var r=Ne,o=r.baseQueue,s=n.pending;if(s!==null){if(o!==null){var i=o.next;o.next=s.next,s.next=i}r.baseQueue=o=s,n.pending=null}if(o!==null){s=o.next,r=r.baseState;var a=i=null,l=null,c=s;do{var u=c.lane;if((Rr&u)===u)l!==null&&(l=l.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var d={lane:u,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};l===null?(a=l=d,i=r):l=l.next=d,_e.lanes|=u,Nr|=u}c=c.next}while(c!==null&&c!==s);l===null?i=r:l.next=a,Bt(r,t.memoizedState)||(st=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){o=e;do s=o.lane,_e.lanes|=s,Nr|=s,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function _c(e){var t=jt(),n=t.queue;if(n===null)throw Error(N(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,s=t.memoizedState;if(o!==null){n.pending=null;var i=o=o.next;do s=e(s,i.action),i=i.next;while(i!==o);Bt(s,t.memoizedState)||(st=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),n.lastRenderedState=s}return[s,r]}function nv(){}function rv(e,t){var n=_e,r=jt(),o=t(),s=!Bt(r.memoizedState,o);if(s&&(r.memoizedState=o,st=!0),r=r.queue,ef(iv.bind(null,n,r,e),[e]),r.getSnapshot!==t||s||Ae!==null&&Ae.memoizedState.tag&1){if(n.flags|=2048,Qs(9,sv.bind(null,n,r,o,t),void 0,null),Ie===null)throw Error(N(349));Rr&30||ov(n,t,o)}return o}function ov(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=_e.updateQueue,t===null?(t={lastEffect:null,stores:null},_e.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function sv(e,t,n,r){t.value=n,t.getSnapshot=r,av(t)&&lv(e)}function iv(e,t,n){return n(function(){av(t)&&lv(e)}
vendor: 4,100 bytes, line 38
38)}function av(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Bt(e,n)}catch{return!0}}function lv(e){var t=vn(e,1);t!==null&&zt(t,e,1,-1)}function Xh(e){var t=Qt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:qs,lastRenderedState:e},t.queue=e,e=e.dispatch=a_.bind(null,_e,e),[t.memoizedState,e]}function Qs(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=_e.updateQueue,t===null?(t={lastEffect:null,stores:null},_e.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function cv(){return jt().memoizedState}function ha(e,t,n,r){var o=Qt();_e.flags|=e,o.memoizedState=Qs(1|t,n,void 0,r===void 0?null:r)}function dl(e,t,n,r){var o=jt();r=r===void 0?null:r;var s=void 0;if(Ne!==null){var i=Ne.memoizedState;if(s=i.destroy,r!==null&&Jd(r,i.deps)){o.memoizedState=Qs(t,n,s,r);return}}_e.flags|=e,o.memoizedState=Qs(1|t,n,s,r)}function Zh(e,t){return ha(8390656,8,e,t)}function ef(e,t){return dl(2048,8,e,t)}function uv(e,t){return dl(4,2,e,t)}function dv(e,t){return dl(4,4,e,t)}function fv(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 hv(e,t,n){return n=n!=null?n.concat([e]):null,dl(4,4,fv.bind(null,t,e),n)}function tf(){}function pv(e,t){var n=jt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Jd(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function mv(e,t){var n=jt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Jd(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function gv(e,t,n){return Rr&21?(Bt(n,t)||(n=bg(),_e.lanes|=n,Nr|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,st=!0),e.memoizedState=n)}function s_(e,t){var n=de;de=n!==0&&4>n?n:4,e(!0);var r=xc.transition;xc.transition={};try{e(!1),t()}finally{de=n,xc.transition=r}}function vv(){return jt().memoizedState}function i_(e,t,n){var r=Jn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},yv(e))wv(t,n);else if(n=Zg(e,t,n,r),n!==null){var o=Je();zt(n,e,r,o),xv(n,t,r)}}function a_(e,t,n){var r=Jn(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(yv(e))wv(t,o);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var i=t.lastRenderedState,a=s(i,n);if(o.hasEagerState=!0,o.eagerState=a,Bt(a,i)){var l=t.interleaved;l===null?(o.next=o,Kd(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=Zg(e,t,o,r),n!==null&&(o=Je(),zt(n,e,r,o),xv(n,t,r))}}function yv(e){var t=e.alternate;return e===_e||t!==null&&t===_e}function wv(e,t){Cs=Ua=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function xv(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Od(e,n)}}var za={readContext:Nt,useCallback:Ue,useContext:Ue,useEffect:Ue,useImperativeHandle:Ue,useInsertionEffect:Ue,useLayoutEffect:Ue,useMemo:Ue,useReducer:Ue,useRef:Ue,useState:Ue,useDebugValue:Ue,useDeferredValue:Ue,useTransition:Ue,useMutableSource:Ue,useSyncExternalStore:Ue,useId:Ue,unstable_isNewReconciler:!1},l_={readContext:Nt,useCallback:function(e,t){return Qt().memoizedState=[e,t===void 0?null:t],e},useContext:Nt,useEffect:Zh,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ha(4194308,4,fv.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ha(4194308,4,e,t)},useInsertionEffect:function(e,t){return ha(4,2,e,t)},useMemo:function(e,t){var n=Qt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Qt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=i_.bind(null,_e,e),[r.memoizedState,e]},useRef:function(e){var t=Qt();return e={current:e},t.memoizedState=e},useState:Xh,useDebugValue:tf,useDeferredValue:function(e){return Qt().memoizedState=e},useTransition:function(){var e=Xh(!1),t=e[0];
vendor: 4,996 bytes, lines 38-40
38return e=s_.bind(null,e[1]),Qt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=_e,o=Qt();if(xe){if(n===void 0)throw Error(N(407));n=n()}else{if(n=t(),Ie===null)throw Error(N(349));Rr&30||ov(r,t,n)}o.memoizedState=n;var s={value:n,getSnapshot:t};return o.queue=s,Zh(iv.bind(null,r,s,e),[e]),r.flags|=2048,Qs(9,sv.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=Qt(),t=Ie.identifierPrefix;if(xe){var n=hn,r=fn;n=(r&~(1<<32-Ut(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Gs++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=o_++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},c_={readContext:Nt,useCallback:pv,useContext:Nt,useEffect:ef,useImperativeHandle:hv,useInsertionEffect:uv,useLayoutEffect:dv,useMemo:mv,useReducer:bc,useRef:cv,useState:function(){return bc(qs)},useDebugValue:tf,useDeferredValue:function(e){var t=jt();return gv(t,Ne.memoizedState,e)},useTransition:function(){var e=bc(qs)[0],t=jt().memoizedState;return[e,t]},useMutableSource:nv,useSyncExternalStore:rv,useId:vv,unstable_isNewReconciler:!1},u_={readContext:Nt,useCallback:pv,useContext:Nt,useEffect:ef,useImperativeHandle:hv,useInsertionEffect:uv,useLayoutEffect:dv,useMemo:mv,useReducer:_c,useRef:cv,useState:function(){return _c(qs)},useDebugValue:tf,useDeferredValue:function(e){var t=jt();return Ne===null?t.memoizedState=e:gv(t,Ne.memoizedState,e)},useTransition:function(){var e=_c(qs)[0],t=jt().memoizedState;return[e,t]},useMutableSource:nv,useSyncExternalStore:rv,useId:vv,unstable_isNewReconciler:!1};function It(e,t){if(e&&e.defaultProps){t=Se({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function ku(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Se({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var fl={isMounted:function(e){return(e=e._reactInternals)?Lr(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Je(),o=Jn(e),s=pn(r,o);s.payload=t,n!=null&&(s.callback=n),t=Qn(e,s,o),t!==null&&(zt(t,e,o,r),da(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Je(),o=Jn(e),s=pn(r,o);s.tag=1,s.payload=t,n!=null&&(s.callback=n),t=Qn(e,s,o),t!==null&&(zt(t,e,o,r),da(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Je(),r=Jn(e),o=pn(n,r);o.tag=2,t!=null&&(o.callback=t),t=Qn(e,o,r),t!==null&&(zt(t,e,r,n),da(t,e,r))}};function ep(e,t,n,r,o,s,i){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,s,i):t.prototype&&t.prototype.isPureReactComponent?!zs(n,r)||!zs(o,s):!0}function bv(e,t,n){var r=!1,o=tr,s=t.contextType;return typeof s=="object"&&s!==null?s=Nt(s):(o=at(t)?Pr:He.current,r=t.contextTypes,s=(r=r!=null)?Mo(e,o):tr),t=new t(n,s),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=fl,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=s),t}function tp(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&fl.enqueueReplaceState(t,t.state,null)}function Cu(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},Gd(e);var s=t.contextType;typeof s=="object"&&s!==null?o.context=Nt(s):(s=at(t)?Pr:He.current,o.context=Mo(e,s)),o.state=e.memoizedState,s=t.getDerivedStateFromProps,typeof s=="function"&&(ku(e,t,s,n),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&fl.enqueueReplaceState(o,o.state,null),$a(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function Fo(e,t){try{var n="",r=t;do n+=$b(r),r=r.return;while(r);var o=n}catch(s){o=` 39Error generating stack: `+s.message+` 40`+s.stack}return{value:e,source:t,stack:o,digest:null}}function Sc(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Pu(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var d_=typeof WeakMap=="function"?WeakMap:Map;function _v(e,t,n){n=pn(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Va||(Va=!0,Du=r),Pu(e,t)},n}function Sv(e,t,n){n=pn(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){Pu(e,t)}}var s=e.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(n.callback=function(){Pu(e,t),typeof r!="function"&&(Yn===null?Yn=new Set([this]):Yn.add(this));var i=t.stack;this.componentDidCatch(t.value,{componentStack:i!==null?i:""})}),n}
vendor: 8,777 bytes, line 40
40function np(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new d_;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=k_.bind(null,e,t,n),t.then(e,e))}function rp(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 op(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=pn(-1,1),t.tag=2,Qn(n,t,1))),n.lanes|=1),e)}var f_=bn.ReactCurrentOwner,st=!1;function Qe(e,t,n,r){t.child=e===null?Xg(t,null,n,r):Do(t,e.child,n,r)}function sp(e,t,n,r,o){n=n.render;var s=t.ref;return wo(t,o),r=Xd(e,t,n,r,s,o),n=Zd(),e!==null&&!st?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,yn(e,t,o)):(xe&&n&&Ud(t),t.flags|=1,Qe(e,t,r,o),t.child)}function ip(e,t,n,r,o){if(e===null){var s=n.type;return typeof s=="function"&&!uf(s)&&s.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=s,Ev(e,t,s,r,o)):(e=va(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!(e.lanes&o)){var i=s.memoizedProps;if(n=n.compare,n=n!==null?n:zs,n(i,r)&&e.ref===t.ref)return yn(e,t,o)}return t.flags|=1,e=Xn(s,r),e.ref=t.ref,e.return=t,t.child=e}function Ev(e,t,n,r,o){if(e!==null){var s=e.memoizedProps;if(zs(s,r)&&e.ref===t.ref)if(st=!1,t.pendingProps=r=s,(e.lanes&o)!==0)e.flags&131072&&(st=!0);else return t.lanes=e.lanes,yn(e,t,o)}return Tu(e,t,n,r,o)}function kv(e,t,n){var r=t.pendingProps,o=r.children,s=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},me(po,ht),ht|=n;else{if(!(n&1073741824))return e=s!==null?s.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,me(po,ht),ht|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=s!==null?s.baseLanes:n,me(po,ht),ht|=r}else s!==null?(r=s.baseLanes|n,t.memoizedState=null):r=n,me(po,ht),ht|=r;return Qe(e,t,o,n),t.child}function Cv(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Tu(e,t,n,r,o){var s=at(n)?Pr:He.current;return s=Mo(t,s),wo(t,o),n=Xd(e,t,n,r,s,o),r=Zd(),e!==null&&!st?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,yn(e,t,o)):(xe&&r&&Ud(t),t.flags|=1,Qe(e,t,n,o),t.child)}function ap(e,t,n,r,o){if(at(n)){var s=!0;Aa(t)}else s=!1;if(wo(t,o),t.stateNode===null)pa(e,t),bv(t,n,r),Cu(t,n,r,o),r=!0;else if(e===null){var i=t.stateNode,a=t.memoizedProps;i.props=a;var l=i.context,c=n.contextType;typeof c=="object"&&c!==null?c=Nt(c):(c=at(n)?Pr:He.current,c=Mo(t,c));var u=n.getDerivedStateFromProps,d=typeof u=="function"||typeof i.getSnapshotBeforeUpdate=="function";d||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(a!==r||l!==c)&&tp(t,i,r,c),On=!1;var f=t.memoizedState;i.state=f,$a(t,r,i,o),l=t.memoizedState,a!==r||f!==l||it.current||On?(typeof u=="function"&&(ku(t,n,u,r),l=t.memoizedState),(a=On||ep(t,n,a,r,f,l,c))?(d||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),i.props=r,i.state=l,i.context=c,r=a):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,ev(e,t),a=t.memoizedProps,c=t.type===t.elementType?a:It(t.type,a),i.props=c,d=t.pendingProps,f=i.context,l=n.contextType,typeof l=="object"&&l!==null?l=Nt(l):(l=at(n)?Pr:He.current,l=Mo(t,l));var y=n.getDerivedStateFromProps;(u=typeof y=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(a!==d||f!==l)&&tp(t,i,r,l),On=!1,f=t.memoizedState,i.state=f,$a(t,r,i,o);var x=t.memoizedState;a!==d||f!==x||it.current||On?(typeof y=="function"&&(ku(t,n,y,r),x=t.memoizedState),(c=On||ep(t,n,c,r,f,x,l)||!1)?(u||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(r,x,l),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(r,x,l)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=x),i.props=r,i.state=x,i.context=l,r=c):(typeof i.componentDidUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Ru(e,t,n,r,s,o)}function Ru(e,t,n,r,o,s){Cv(e,t);var i=(t.flags&128)!==0;if(!r&&!i)return o&&Kh(t,n,!1),yn(e,t,s);r=t.stateNode,f_.current=t;var a=i&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&i?(t.child=Do(t,e.child,null,s),t.child=Do(t,null,a,s)):Qe(e,t,a,s),t.memoizedState=r.state,o&&Kh(t,n,!0),t.child}function Pv(e){var t=e.stateNode;t.pendingContext?Wh(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Wh(e,t.context,!1),qd(e,t.containerInfo)}function lp(e,t,n,r,o){return Lo(),Bd(o),t.flags|=256,Qe(e,t,n,r),t.child}var Nu={dehydrated:null,treeContext:null,retryLane:0};function ju(e){return{baseLanes:e,cachePool:null,transitions:null}}function Tv(e,t,n){var r=t.pendingProps,o=be.current,s=!1,i=(t.flags&128)!==0,a;if((a=i)||(a=e!==null&&e.memoizedState===null?!1:(o&2)!==0),a?(s=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),me(be,o&1),e===null)return Su(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(i=r.children,e=r.fallback,s?(r=t.mode,s=t.child,i={mode:"hidden",children:i},!(r&1)&&s!==null?(s.childLanes=0,s.pendingProps=i):s=ml(i,r,0,null),e=Cr(e,r,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=ju(n),t.memoizedState=Nu,e):nf(t,i));if(o=e.memoizedState,o!==null&&(a=o.dehydrated,a!==null))return h_(e,t,i,r,a,o,n);if(s){s=r.fallback,i=t.mode,o=e.child,a=o.sibling;var l={mode:"hidden",children:r.children};return!(i&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=Xn(o,l),r.subtreeFlags=o.subtreeFlags&14680064),a!==null?s=Xn(a,s):(s=Cr(s,i,n,null),s.flags|=2),s.return=t,r.return=t,r.sibling=s,t.child=r,r=s,s=t.child,i=e.child.memoizedState,i=i===null?ju(n):{baseLanes:i.baseLanes|n,cachePool:null,transitions:i.transitions},s.memoizedState=i,s.childLanes=e.childLanes&~n,t.memoizedState=Nu,r}return s=e.child,e=s.sibling,r=Xn(s,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function nf(e,t){return t=ml({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Vi(e,t,n,r){return r!==null&&Bd(r),Do(t,e.child,null,n),e=nf(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function h_(e,t,n,r,o,s,i){if(n)return t.flags&256?(t.flags&=-257,r=Sc(Error(N(422))),Vi(e,t,i,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(s=r.fallback,o=t.mode,r=ml({mode:"visible",children:r.children},o,0,null),s=Cr(s,o,i,null),s.flags|=2,r.return=t,s.return=t,r.sibling=s,t.child=r,t.mode&1&&Do(t,e.child,null,i),t.child.memoizedState=ju(i),t.memoizedState=Nu,s);if(!(t.mode&1))return Vi(e,t,i,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var a=r.dgst;return r=a,s=Error(N(419)),r=Sc(s,r,void 0),Vi(e,t,i,r)}if(a=(i&e.childLanes)!==0,st||a){if(r=Ie,r!==null){switch(i&-i){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(r.suspendedLanes|i)?0:o,o!==0&&o!==s.retryLane&&(s.retryLane=o,vn(e,o),zt(r,e,o,-1))}return cf(),r=Sc(Error(N(421))),Vi(e,t,i,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=C_.bind(null,e),o._reactRetry=t,null):(e=s.treeContext,mt=qn(o.nextSibling),gt=t,xe=!0,Ft=null,e!==null&&(St[Et++
vendor: 6,379 bytes, line 40
40]=fn,St[Et++]=hn,St[Et++]=Tr,fn=e.id,hn=e.overflow,Tr=t),t=nf(t,r.children),t.flags|=4096,t)}function cp(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Eu(e.return,t,n)}function Ec(e,t,n,r,o){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=r,s.tail=n,s.tailMode=o)}function Rv(e,t,n){var r=t.pendingProps,o=r.revealOrder,s=r.tail;if(Qe(e,t,r.children,n),r=be.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&cp(e,n,t);else if(e.tag===19)cp(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(me(be,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&Fa(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Ec(t,!1,o,n,s);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Fa(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Ec(t,!0,n,null,s);break;case"together":Ec(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function pa(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function yn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Nr|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(N(153));if(t.child!==null){for(e=t.child,n=Xn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Xn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function p_(e,t,n){switch(t.tag){case 3:Pv(t),Lo();break;case 5:tv(t);break;case 1:at(t.type)&&Aa(t);break;case 4:qd(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;me(La,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(me(be,be.current&1),t.flags|=128,null):n&t.child.childLanes?Tv(e,t,n):(me(be,be.current&1),e=yn(e,t,n),e!==null?e.sibling:null);me(be,be.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Rv(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),me(be,be.current),r)break;return null;case 22:case 23:return t.lanes=0,kv(e,t,n)}return yn(e,t,n)}var Nv,Ou,jv,Ov;Nv=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Ou=function(){};jv=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,xr(nn.current);var s=null;switch(n){case"input":o=eu(e,o),r=eu(e,r),s=[];break;case"select":o=Se({},o,{value:void 0}),r=Se({},r,{value:void 0}),s=[];break;case"textarea":o=ru(e,o),r=ru(e,r),s=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=ja)}su(n,r);var i;n=null;for(c in o)if(!r.hasOwnProperty(c)&&o.hasOwnProperty(c)&&o[c]!=null)if(c==="style"){var a=o[c];for(i in a)a.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(Is.hasOwnProperty(c)?s||(s=[]):(s=s||[]).push(c,null));for(c in r){var l=r[c];if(a=o!=null?o[c]:void 0,r.hasOwnProperty(c)&&l!==a&&(l!=null||a!=null))if(c==="style")if(a){for(i in a)!a.hasOwnProperty(i)||l&&l.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in l)l.hasOwnProperty(i)&&a[i]!==l[i]&&(n||(n={}),n[i]=l[i])}else n||(s||(s=[]),s.push(c,n)),n=l;else c==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(s=s||[]).push(c,l)):c==="children"?typeof l!="string"&&typeof l!="number"||(s=s||[]).push(c,""+l):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(Is.hasOwnProperty(c)?(l!=null&&c==="onScroll"&&ye("scroll",e),s||a===l||(s=[])):(s=s||[]).push(c,l))}n&&(s=s||[]).push("style",n);var c=s;(t.updateQueue=c)&&(t.flags|=4)}};Ov=function(e,t,n,r){n!==r&&(t.flags|=4)};function cs(e,t){if(!xe)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ze(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function m_(e,t,n){var r=t.pendingProps;switch(zd(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ze(t),null;case 1:return at(t.type)&&Oa(),ze(t),null;case 3:return r=t.stateNode,$o(),we(it),we(He),Yd(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(zi(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Ft!==null&&(Uu(Ft),Ft=null))),Ou(e,t),ze(t),null;case 5:Qd(t);var o=xr(Ks.current);if(n=t.type,e!==null&&t.stateNode!=null)jv(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(N(166));return ze(t),null}if(e=xr(nn.current),zi(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[Zt]=t,r[Hs]=s,e=(t.mode&1)!==0,n){case"dialog":ye("cancel",r),ye("close",r);break;case"iframe":case"object":case"embed":ye("load",r);break;case"video":case"audio":for(o=0;o<vs.length;o++)ye(vs[o],r);break;case"source":ye("error",r);break;case"img":case"image":case"link":ye("error",r),ye("load",r);break;case"details":ye("toggle",r);break;case"input":yh(r,s),ye("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},ye("invalid",r);break;case"textarea":xh(r,s),ye("invalid",r)}su(n,s),o=null;for(var i in s)if(s.hasOwnProperty(i)){var a=s[i];
vendor: 32,436 bytes, line 40
40i==="children"?typeof a=="string"?r.textContent!==a&&(s.suppressHydrationWarning!==!0&&Ui(r.textContent,a,e),o=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(s.suppressHydrationWarning!==!0&&Ui(r.textContent,a,e),o=["children",""+a]):Is.hasOwnProperty(i)&&a!=null&&i==="onScroll"&&ye("scroll",r)}switch(n){case"input":Oi(r),wh(r,s,!0);break;case"textarea":Oi(r),bh(r);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(r.onclick=ja)}r=o,t.updateQueue=r,r!==null&&(t.flags|=4)}else{i=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=ig(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=i.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[Zt]=t,e[Hs]=r,Nv(e,t,!1,!1),t.stateNode=e;e:{switch(i=iu(n,r),n){case"dialog":ye("cancel",e),ye("close",e),o=r;break;case"iframe":case"object":case"embed":ye("load",e),o=r;break;case"video":case"audio":for(o=0;o<vs.length;o++)ye(vs[o],e);o=r;break;case"source":ye("error",e),o=r;break;case"img":case"image":case"link":ye("error",e),ye("load",e),o=r;break;case"details":ye("toggle",e),o=r;break;case"input":yh(e,r),o=eu(e,r),ye("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=Se({},r,{value:void 0}),ye("invalid",e);break;case"textarea":xh(e,r),o=ru(e,r),ye("invalid",e);break;default:o=r}su(n,o),a=o;for(s in a)if(a.hasOwnProperty(s)){var l=a[s];s==="style"?cg(e,l):s==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&ag(e,l)):s==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&Ms(e,l):typeof l=="number"&&Ms(e,""+l):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(Is.hasOwnProperty(s)?l!=null&&s==="onScroll"&&ye("scroll",e):l!=null&&Cd(e,s,l,i))}switch(n){case"input":Oi(e),wh(e,r,!1);break;case"textarea":Oi(e),bh(e);break;case"option":r.value!=null&&e.setAttribute("value",""+er(r.value));break;case"select":e.multiple=!!r.multiple,s=r.value,s!=null?mo(e,!!r.multiple,s,!1):r.defaultValue!=null&&mo(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=ja)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return ze(t),null;case 6:if(e&&t.stateNode!=null)Ov(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(N(166));if(n=xr(Ks.current),xr(nn.current),zi(t)){if(r=t.stateNode,n=t.memoizedProps,r[Zt]=t,(s=r.nodeValue!==n)&&(e=gt,e!==null))switch(e.tag){case 3:Ui(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Ui(r.nodeValue,n,(e.mode&1)!==0)}s&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Zt]=t,t.stateNode=r}return ze(t),null;case 13:if(we(be),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(xe&&mt!==null&&t.mode&1&&!(t.flags&128))Yg(),Lo(),t.flags|=98560,s=!1;else if(s=zi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!s)throw Error(N(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(N(317));s[Zt]=t}else Lo(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;ze(t),s=!1}else Ft!==null&&(Uu(Ft),Ft=null),s=!0;if(!s)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||be.current&1?je===0&&(je=3):cf())),t.updateQueue!==null&&(t.flags|=4),ze(t),null);case 4:return $o(),Ou(e,t),e===null&&Bs(t.stateNode.containerInfo),ze(t),null;case 10:return Wd(t.type._context),ze(t),null;case 17:return at(t.type)&&Oa(),ze(t),null;case 19:if(we(be),s=t.memoizedState,s===null)return ze(t),null;if(r=(t.flags&128)!==0,i=s.rendering,i===null)if(r)cs(s,!1);else{if(je!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(i=Fa(e),i!==null){for(t.flags|=128,cs(s,!1),r=i.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)s=n,e=r,s.flags&=14680066,i=s.alternate,i===null?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=i.childLanes,s.lanes=i.lanes,s.child=i.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=i.memoizedProps,s.memoizedState=i.memoizedState,s.updateQueue=i.updateQueue,s.type=i.type,e=i.dependencies,s.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return me(be,be.current&1|2),t.child}e=e.sibling}s.tail!==null&&Pe()>Uo&&(t.flags|=128,r=!0,cs(s,!1),t.lanes=4194304)}else{if(!r)if(e=Fa(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),cs(s,!0),s.tail===null&&s.tailMode==="hidden"&&!i.alternate&&!xe)return ze(t),null}else 2*Pe()-s.renderingStartTime>Uo&&n!==1073741824&&(t.flags|=128,r=!0,cs(s,!1),t.lanes=4194304);s.isBackwards?(i.sibling=t.child,t.child=i):(n=s.last,n!==null?n.sibling=i:t.child=i,s.last=i)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Pe(),t.sibling=null,n=be.current,me(be,r?n&1|2:n&1),t):(ze(t),null);case 22:case 23:return lf(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?ht&1073741824&&(ze(t),t.subtreeFlags&6&&(t.flags|=8192)):ze(t),null;case 24:return null;case 25:return null}throw Error(N(156,t.tag))}function g_(e,t){switch(zd(t),t.tag){case 1:return at(t.type)&&Oa(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return $o(),we(it),we(He),Yd(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Qd(t),null;case 13:if(we(be),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(N(340));Lo()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return we(be),null;case 4:return $o(),null;case 10:return Wd(t.type._context),null;case 22:case 23:return lf(),null;case 24:return null;default:return null}}var Hi=!1,Ve=!1,v_=typeof WeakSet=="function"?WeakSet:Set,U=null;function ho(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ke(e,t,r)}else n.current=null}function Au(e,t,n){try{n()}catch(r){ke(e,t,r)}}var up=!1;function y_(e,t){if(gu=Ta,e=Dg(),Fd(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var i=0,a=-1,l=-1,c=0,u=0,d=e,f=null;t:for(;;){for(var y;d!==n||o!==0&&d.nodeType!==3||(a=i+o),d!==s||r!==0&&d.nodeType!==3||(l=i+r),d.nodeType===3&&(i+=d.nodeValue.length),(y=d.firstChild)!==null;)f=d,d=y;for(;;){if(d===e)break t;if(f===n&&++c===o&&(a=i),f===s&&++u===r&&(l=i),(y=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=y}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(vu={focusedElem:e,selectionRange:n},Ta=!1,U=t;U!==null;)if(t=U,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,U=e;else for(;U!==null;){t=U;try{var x=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(x!==null){var m=x.memoizedProps,b=x.memoizedState,v=t.stateNode,g=v.getSnapshotBeforeUpdate(t.elementType===t.type?m:It(t.type,m),b);v.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var w=t.stateNode.containerInfo;w.nodeType===1?w.textContent="":w.nodeType===9&&w.documentElement&&w.removeChild(w.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(N(163))}}catch(_){ke(t,t.return,_)}if(e=t.sibling,e!==null){e.return=t.return,U=e;break}U=t.return}return x=up,up=!1,x}function Ps(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var s=o.destroy;o.destroy=void 0,s!==void 0&&Au(t,n,s)}o=o.next}while(o!==r)}}function hl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Iu(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Av(e){var t=e.alternate;t!==null&&(e.alternate=null,Av(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Zt],delete t[Hs],delete t[xu],delete t[e_],delete t[t_])),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 Iv(e){return e.tag===5||e.tag===3||e.tag===4}function dp(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Iv(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 Mu(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=ja));else if(r!==4&&(e=e.child,e!==null))for(Mu(e,t,n),e=e.sibling;e!==null;)Mu(e,t,n),e=e.sibling}function Lu(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Lu(e,t,n),e=e.sibling;e!==null;)Lu(e,t,n),e=e.sibling}var Le=null,Dt=!1;function En(e,t,n){for(n=n.child;n!==null;)Mv(e,t,n),n=n.sibling}function Mv(e,t,n){if(tn&&typeof tn.onCommitFiberUnmount=="function")try{tn.onCommitFiberUnmount(sl,n)}catch{}switch(n.tag){case 5:Ve||ho(n,t);case 6:var r=Le,o=Dt;Le=null,En(e,t,n),Le=r,Dt=o,Le!==null&&(Dt?(e=Le,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Le.removeChild(n.stateNode));break;case 18:Le!==null&&(Dt?(e=Le,n=n.stateNode,e.nodeType===8?vc(e.parentNode,n):e.nodeType===1&&vc(e,n),Fs(e)):vc(Le,n.stateNode));break;case 4:r=Le,o=Dt,Le=n.stateNode.containerInfo,Dt=!0,En(e,t,n),Le=r,Dt=o;break;case 0:case 11:case 14:case 15:if(!Ve&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var s=o,i=s.destroy;s=s.tag,i!==void 0&&(s&2||s&4)&&Au(n,t,i),o=o.next}while(o!==r)}En(e,t,n);break;case 1:if(!Ve&&(ho(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){ke(n,t,a)}En(e,t,n);break;case 21:En(e,t,n);break;case 22:n.mode&1?(Ve=(r=Ve)||n.memoizedState!==null,En(e,t,n),Ve=r):En(e,t,n);break;default:En(e,t,n)}}function fp(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new v_),t.forEach(function(r){var o=P_.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Ot(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var o=n[r];try{var s=e,i=t,a=i;e:for(;a!==null;){switch(a.tag){case 5:Le=a.stateNode,Dt=!1;break e;case 3:Le=a.stateNode.containerInfo,Dt=!0;break e;case 4:Le=a.stateNode.containerInfo,Dt=!0;break e}a=a.return}if(Le===null)throw Error(N(160));Mv(s,i,o),Le=null,Dt=!1;var l=o.alternate;l!==null&&(l.return=null),o.return=null}catch(c){ke(o,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Lv(t,e),t=t.sibling}function Lv(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Ot(t,e),Gt(e),r&4){try{Ps(3,e,e.return),hl(3,e)}catch(m){ke(e,e.return,m)}try{Ps(5,e,e.return)}catch(m){ke(e,e.return,m)}}break;case 1:Ot(t,e),Gt(e),r&512&&n!==null&&ho(n,n.return);break;case 5:if(Ot(t,e),Gt(e),r&512&&n!==null&&ho(n,n.return),e.flags&32){var o=e.stateNode;try{Ms(o,"")}catch(m){ke(e,e.return,m)}}if(r&4&&(o=e.stateNode,o!=null)){var s=e.memoizedProps,i=n!==null?n.memoizedProps:s,a=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{a==="input"&&s.type==="radio"&&s.name!=null&&og(o,s),iu(a,i);var c=iu(a,s);for(i=0;i<l.length;i+=2){var u=l[i],d=l[i+1];u==="style"?cg(o,d):u==="dangerouslySetInnerHTML"?ag(o,d):u==="children"?Ms(o,d):Cd(o,u,d,c)}switch(a){case"input":tu(o,s);break;case"textarea":sg(o,s);break;case"select":var f=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!s.multiple;var y=s.value;y!=null?mo(o,!!s.multiple,y,!1):f!==!!s.multiple&&(s.defaultValue!=null?mo(o,!!s.multiple,s.defaultValue,!0):mo(o,!!s.multiple,s.multiple?[]:"",!1))}o[Hs]=s}catch(m){ke(e,e.return,m)}}break;case 6:if(Ot(t,e),Gt(e),r&4){if(e.stateNode===null)throw Error(N(162));o=e.stateNode,s=e.memoizedProps;try{o.nodeValue=s}catch(m){ke(e,e.return,m)}}break;case 3:if(Ot(t,e),Gt(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Fs(t.containerInfo)}catch(m){ke(e,e.return,m)}break;case 4:Ot(t,e),Gt(e);break;case 13:Ot(t,e),Gt(e),o=e.child,o.flags&8192&&(s=o.memoizedState!==null,o.stateNode.isHidden=s,!s||o.alternate!==null&&o.alternate.memoizedState!==null||(sf=Pe())),r&4&&fp(e);break;case 22:if(u=n!==null&&n.memoizedState!==null,e.mode&1?(Ve=(c=Ve)||u,Ot(t,e),Ve=c):Ot(t,e),Gt(e),r&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!u&&e.mode&1)for(U=e,u=e.child;u!==null;){for(d=U=u;U!==null;){switch(f=U,y=f.child,f.tag){case 0:case 11:case 14:case 15:Ps(4,f,f.return);break;case 1:ho(f,f.return);var x=f.stateNode;if(typeof x.componentWillUnmount=="function"){r=f,n=f.return;try{t=r,x.props=t.memoizedProps,x.state=t.memoizedState,x.componentWillUnmount()}catch(m){ke(r,n,m)}}break;case 5:ho(f,f.return);break;case 22:if(f.memoizedState!==null){pp(d);continue}}y!==null?(y.return=f,U=y):pp(d)}u=u.sibling}e:for(u=null,d=e;;){if(d.tag===5){if(u===null){u=d;try{o=d.stateNode,c?(s=o.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none"):(a=d.stateNode,l=d.memoizedProps.style,i=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=lg("display",i))}catch(m){ke(e,e.return,m)}}}else if(d.tag===6){if(u===null)try{d.stateNode.nodeValue=c?"":d.memoizedProps}catch(m){ke(e,e.return,m)}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===e)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;d.sibling===null;){if(d.return===null||d.return===e)break e;u===d&&(u=null),d=d.return}u===d&&(u=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:Ot(t,e),Gt(e),r&4&&fp(e);break;case 21:break;default:Ot(t,e),Gt(e)}}function Gt(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Iv(n)){var r=n;break e}n=n.return}throw Error(N(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(Ms(o,""),r.flags&=-33);var s=dp(e);Lu(e,s,o);break;case 3:case 4:var i=r.stateNode.containerInfo,a=dp(e);Mu(e,a,i);break;default:throw Error(N(161))}}catch(l){ke(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function w_(e,t,n){U=e,Dv(e)}function Dv(e,t,n){for(var r=(e.mode&1)!==0;U!==null;){var o=U,s=o.child;if(o.tag===22&&r){var i=o.memoizedState!==null||Hi;if(!i){var a=o.alternate,l=a!==null&&a.memoizedState!==null||Ve;a=Hi;var c=Ve;if(Hi=i,(Ve=l)&&!c)for(U=o;U!==null;)i=U,l=i.child,i.tag===22&&i.memoizedState!==null?mp(o):l!==null?(l.return=i,U=l):mp(o);for(;s!==null;)U=s,Dv(s),s=s.sibling;U=o,Hi=a,Ve=c}hp(e)}else o.subtreeFlags&8772&&s!==null?(s.return=o,U=s):hp(e)}}function hp(e){for(;U!==null;){var t=U;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Ve||hl(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Ve)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:It(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;s!==null&&Jh(t,s,r);break;case 3:var i=t.updateQueue;if(i!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Jh(t,i,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var c=t.alternate;if(c!==null){var u=c.memoizedState;if(u!==null){var d=u.dehydrated;d!==null&&Fs(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(N(163))}Ve||t.flags&512&&Iu(t)}catch(f){ke(t,t.return,f)}}if(t===e){U=null;break}if(n=t.sibling,n!==null){n.return=t.return,U=n;break}U=t.return}}function pp(e){for(;U!==null;){var t=U;if(t===e){U=null;break}var n=t.sibling;if(n!==null){n.return=t.return,U=n;break}U=t.return}}function mp(e){for(;U!==null;){var t=U;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{hl(4,t)}catch(l){ke(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(l){ke(t,o,l)}}var s=t.return;try{Iu(t)}catch(l){ke(t,s,l)}break;case 5:var i=t.return;try{Iu(t)}catch(l){ke(t,i,l)}}}catch(l){ke(t,t.return,l)}if(t===e){U=null;break}var a=t.sibling;if(a!==null){a.return=t.return,U=a;break}U=t.return}}var x_=Math.ceil,Ba=bn.ReactCurrentDispatcher,rf=bn.ReactCurrentOwner,Ct=bn.ReactCurrentBatchConfig,se=0,Ie=null,Te=null,De=0,ht=0,po=ar(0),je=0,Ys=null,Nr=0,pl=0,of=0,Ts=null,rt=null,sf=0,Uo=1/0,cn=null,Va=!1,Du=null,Yn=null,Wi=!1,Vn=null,Ha=0,Rs=0,$u=null,ma=-1,ga=0;function Je(){return se&6?Pe():ma!==-1?ma:ma=Pe()}function Jn(e){return e.mode&1?se&2&&De!==0?De&-De:r_.transition!==null?(ga===0&&(ga=bg()),ga):(e=de,e!==0||(e=window.event,e=e===void 0?16:Tg(e.type)),e):1}function zt(e,t,n,r){if(50<Rs)throw Rs=0,$u=null,Error(N(185));ui(e,n,r),(!(se&2)||e!==Ie)&&(e===Ie&&(!(se&2)&&(pl|=n),je===4&&Mn(e,De)),lt(e,r),n===1&&se===0&&!(t.mode&1)&&(Uo=Pe()+500,ul&&lr()))}function lt(e,t){var n=e.callbackNode;r1(e,t);var r=Pa(e,e===Ie?De:0);if(r===0)n!==null&&Eh(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Eh(n),t===1)e.tag===0?n_(gp.bind(null,e)):Gg(gp.bind(null,e)),X1(function(){!(se&6)&&lr()}),n=null;else{switch(_g(r)){case 1:n=jd;break;case 4:n=wg;break;case 16:n=Ca;break;case 536870912:n=xg;break;default:n=Ca}n=Wv(n,$v.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function $v(e,t){if(ma=-1,ga=0,se&6)throw Error(N(327));var n=e.callbackNode;if(xo()&&e.callbackNode!==n)return null;var r=Pa(e,e===Ie?De:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Wa(e,r);else{t=r;var o=se;se|=2;var s=Uv();(Ie!==e||De!==t)&&(cn=null,Uo=Pe()+500,kr(e,t));do try{S_();break}catch(a){Fv(e,a)}while(!0);Hd(),Ba.current=s,se=o,Te!==null?t=0:(Ie=null,De=0,t=je)}if(t!==0){if(t===2&&(o=du(e),o!==0&&(r=o,t=Fu(e,o))),t===1)throw n=Ys,kr(e,0),Mn(e,r),lt(e,Pe()),n;if(t===6)Mn(e,r);else{if(o=e.current.alternate,!(r&30)&&!b_(o)&&(t=Wa(e,r),t===2&&(s=du(e),s!==0&&(r=s,t=Fu(e,s))),t===1))throw n=Ys,kr(e,0),Mn(e,r),lt(e,Pe()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(N(345));case 2:mr(e,rt,cn);break;case 3:if(Mn(e,r),(r&130023424)===r&&(t=sf+500-Pe(),10<t)){if(Pa(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){Je(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=wu(mr.bind(null,e,rt,cn),t);break}mr(e,rt,cn);break;case 4:if(Mn(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var i=31-Ut(r);s=1<<i,i=t[i],i>o&&(o=i),r&=~s}if(r=o,r=Pe()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*x_(r/1960))-r,10<r){e.timeoutHandle=wu(mr.bind(null,e,rt,cn),r);break}mr(e,rt,cn);break;case 5:mr(e,rt,cn);break;default:throw Error(N(329))}}}return lt(e,Pe()),e.callbackNode===n?$v.bind(null,e):null}function Fu(e,t){var n=Ts;return e.current.memoizedState.isDehydrated&&(kr(e,t).flags|=256),e=Wa(e,t),e!==2&&(t=rt,rt=n,t!==null&&Uu(t)),e}function Uu(e){rt===null?rt=e:rt.push.apply(rt,e)}function b_(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var o=n[r],s=o.getSnapshot;o=o.value;try{if(!Bt(s(),o))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Mn(e,t){for(t&=~of,t&=~pl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Ut(t),r=1<<n;e[n]=-1,t&=~r}}function gp(e){if(se&6)throw Error(N(327));xo();var t=Pa(e,0);if(!(t&1))return lt(e,Pe()),null;var n=Wa(e,t);if(e.tag!==0&&n===2){var r=du(e);r!==0&&(t=r,n=Fu(e,r))}if(n===1)throw n=Ys,kr(e,0),Mn(e,t),lt(e,Pe()),n;if(n===6)throw Error(N(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,mr(e,rt,cn),lt(e,Pe()),null}function af(e,t){var n=se;se|=1;try{return e(t)}finally{se=n,se===0&&(Uo=Pe()+500,ul&&lr())}}function jr(e){Vn!==null&&Vn.tag===0&&!(se&6)&&xo();var t=se;se|=1;var n=Ct.transition,r=de;try{if(Ct.transition=null,de=1,e)return e()}finally{de=r,Ct.transition=n,se=t,!(se&6)&&lr()}}function lf(){ht=po.current,we(po)}function kr(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,J1(n)),Te!==null)for(n=Te.return;n!==null;){var r=n;switch(zd(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Oa();break;case 3:$o(),we(it),we(He),Yd();break;case 5:Qd(r);break;case 4:$o();break;case 13:we(be);break;case 19:we(be);break;case 10:Wd(r.type._context);break;case 22:case 23:lf()}n=n.return}if(Ie=e,Te=e=Xn(e.current,null),De=ht=t,je=0,Ys=null,of=pl=Nr=0,rt=Ts=null,wr!==null){for(t=0;t<wr.length;t++)if(n=wr[t],r=n.interleaved,r!==null){n.interleaved=null;var o=r.next,s=n.pending;if(s!==null){var i=s.next;s.next=o,r.next=i}n.pending=r}wr=null}return e}function Fv(e,t){do{var n=Te;try{if(Hd(),fa.current=za,Ua){for(var r=_e.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}Ua=!1}if(Rr=0,Ae=Ne=_e=null,Cs=!1,Gs=0,rf.current=null,n===null||n.return===null){je=1,Ys=t,Te=null;break}e:{var s=e,i=n.return,a=n,l=t;if(t=De,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var c=l,u=a,d=u.tag;if(!(u.mode&1)&&(d===0||d===11||d===15)){var f=u.alternate;f?(u.updateQueue=f.updateQueue,u.memoizedState=f.memoizedState,u.lanes=f.lanes):(u.updateQueue=null,u.memoizedState=null)}var y=rp(i);if(y!==null){y.flags&=-257,op(y,i,a,s,t),y.mode&1&&np(s,c,t),t=y,l=c;var x=t.updateQueue;if(x===null){var m=new Set;m.add(l),t.updateQueue=m}else x.add(l);break e}else{if(!(t&1)){np(s,c,t),cf();break e}l=Error(N(426))}}else if(xe&&a.mode&1){var b=rp(i);if(b!==null){!(b.flags&65536)&&(b.flags|=256),op(b,i,a,s,t),Bd(Fo(l,a));break e}}s=l=Fo(l,a),je!==4&&(je=2),Ts===null?Ts=[s]:Ts.push(s),s=i;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t;var v=_v(s,l,t);Yh(s,v);break e;case 1:a=l;var g=s.type,w=s.stateNode;if(!(s.flags&128)&&(typeof g.getDerivedStateFromError=="function"||w!==null&&typeof w.componentDidCatch=="function"&&(Yn===null||!Yn.has(w)))){s.flags|=65536,t&=-t,s.lanes|=t;var _=Sv(s,a,t);Yh(s,_);break e}}s=s.return}while(s!==null)}Bv(n)}catch(S){t=S,Te===n&&n!==null&&(Te=n=n.return);continue}break}while(!0)}function Uv(){var e=Ba.current;return Ba.current=za,e===null?za:e}function cf(){(je===0||je===3||je===2)&&(je=4),Ie===null||!(Nr&268435455)&&!(pl&268435455)||Mn(Ie,De)}function Wa(e,t){var n=se;se|=2;var r=Uv();(Ie!==e||De!==t)&&(cn=null,kr(e,t));do try{__();break}catch(o){Fv(e,o)}while(!0);if(Hd(),se=n,Ba.current=r,Te!==null)throw Error(N(261));return Ie=null,De=0,je}function __(){for(;Te!==null;)zv(Te)}function S_(){for(;Te!==null&&!qb();)zv(Te)}function zv(e){var t=Hv(e.alternate,e,ht);e.memoizedProps=e.pendingProps,t===null?Bv(e):Te=t,rf.current=null}function Bv(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=g_(n,t),n!==null){n.flags&=32767,Te=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{je=6,Te=null;return}}else if(n=m_(n,t,ht),n!==null){Te=n;return}if(t=t.sibling,t!==null){Te=t;return}Te=t=e}while(t!==null);je===0&&(je=5)}function mr(e,t,n){var r=de,o=Ct.transition;try{Ct.transition=null,de=1,E_(e,t,n,r)}finally{Ct.transition=o,de=r}return null}function E_(e,t,n,r){do xo();while(Vn!==null);if(se&6)throw Error(N(327));n=e.finishedWork;var o=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(N(177));e.callbackNode=null,e.callbackPriority=0;var s=n.lanes|n.childLanes;if(o1(e,s),e===Ie&&(Te=Ie=null,De=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Wi||(Wi=!0,Wv(Ca,function(){return xo(),null})),s=(n.flags&15990)!==0,n.subtreeFlags&15990||s){s=Ct.transition,Ct.transition=null;var i=de;de=1;var a=se;se|=4,rf.current=null,y_(e,n),Lv(n,e),H1(vu),Ta=!!gu,vu=gu=null,e.current=n,w_(n),Qb(),se=a,de=i,Ct.transition=s}else e.current=n;if(Wi&&(Wi=!1,Vn=e,Ha=o),s=e.pendingLanes,s===0&&(Yn=null),Xb(n.stateNode),lt(e,Pe()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(Va)throw Va=!1,e=Du,Du=null,e;return Ha&1&&e.tag!==0&&xo(),s=e.pendingLanes,s&1?e===$u?Rs++:(Rs=0,$u=e):Rs=0,lr(),null}function xo(){if(Vn!==null){var e=_g(Ha),t=Ct.transition,n=de;try{if(Ct.transition=null,de=16>e?16:e,Vn===null)var r=!1;else{if(e=Vn,Vn=null,Ha=0,se&6)throw Error(N(331));var o=se;for(se|=4,U=e.current;U!==null;){var s=U,i=s.child;if(U.flags&16){var a=s.deletions;if(a!==null){for(var l=0;l<a.length;l++){var c=a[l];for(U=c;U!==null;){var u=U;switch(u.tag){case 0:case 11:case 15:Ps(8,u,s)}var d=u.child;if(d!==null)d.return=u,U=d;else for(;U!==null;){u=U;var f=u.sibling,y=u.return;if(Av(u),u===c){U=null;break}if(f!==null){f.return=y,U=f;break}U=y}}}var x=s.alternate;if(x!==null){var m=x.child;if(m!==null){x.child=null;do{var b=m.sibling;m.sibling=null,m=b}while(m!==null)}}U=s}}if(s.subtreeFlags&2064&&i!==null)i.return=s,U=i;else e:for(;U!==null;){if(s=U,s.flags&2048)switch(s.tag){case 0:case 11:case 15:Ps(9,s,s.return)}var v=s.sibling;if(v!==null){v.return=s.return,U=v;break e}U=s.return}}var g=e.current;for(U=g;U!==null;){i=U;var w=i.child;if(i.subtreeFlags&2064&&w!==null)w.return=i,U=w;else e:for(i=g;U!==null;){if(a=U,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:hl(9,a)}}catch(S){ke(a,a.return,S)}if(a===i){U=null;break e}var _=a.sibling;if(_!==null){_.return=a.return,U=_;break e}U=a.return}}if(se=o,lr(),tn&&typeof tn.onPostCommitFiberRoot=="function")try{tn.onPostCommitFiberRoot(sl,e)}catch{}r=!0}return r}finally{de=n,Ct.transition=t}}return!1}function vp(e,t,n){t=Fo(n,t),t=_v(e,t,1),e=Qn(e,t,1),t=Je(),e!==null&&(ui(e,1,t),lt(e,t))}function ke(e,t,n){if(e.tag===3)vp(e,e,n);else for(;t!==null;){if(t.tag===3){vp(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Yn===null||!Yn.has(r))){e=Fo(n,e),e=Sv(t,e,1),t=Qn(t,e,1),e=Je(),t!==null&&(ui(t,1,e),lt(t,e));break}}t=t.return}}function k_(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Je(),e.pingedLanes|=e.suspendedLanes&n,Ie===e&&(De&n)===n&&(je===4||je===3&&(De&130023424)===De&&500>Pe()-sf?kr(e,0):of|=n),lt(e,t)}function Vv(e,t){t===0&&(e.mode&1?(t=Mi,Mi<<=1,!(Mi&130023424)&&(Mi=4194304)):t=1);var n=Je();e=vn(e,t),e!==null&&(ui(e,t,n),lt(e,n))}function C_(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Vv(e,n)}function P_(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(N(314))}r!==null&&r.delete(t),Vv(e,n)}var Hv;Hv=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||it.current)st=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return st=!1,p_(e,t,n);st=!!(e.flags&131072)}else st=!1,xe&&t.flags&1048576&&qg(t,Ma,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;pa(e,t),e=t.pendingProps;var o=Mo(t,He.current);wo(t,n),o=Xd(null,t,r,e,o,n);var s=Zd();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,at(r)?(s=!0,Aa(t)):s=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Gd(t),o.updater=fl,t.stateNode=o,o._reactInternals=t,Cu(t,r,e,n),t=Ru(null,t,r,!0,s,n)):(t.tag=0,xe&&s&&Ud(t),Qe(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(pa(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=R_(r),e=It(r,e),o){case 0:t=Tu(null,t,r,e,n);break e;case 1:t=ap(null,t,r,e,n);break e;case 11:t=sp(null,t,r,e,n);break e;case 14:t=ip(null,t,r,It(r.type,e),n);break e}throw Error(N(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:It(r,o),Tu(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:It(r,o),ap(e,t,r,o,n);case 3:e:{if(Pv(t),e===null)throw Error(N(387));r=t.pendingProps,s=t.memoizedState,o=s.element,ev(e,t),$a(t,r,null,n);var i=t.memoizedState;if(r=i.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){o=Fo(Error(N(423)),t),t=lp(e,t,r,n,o);break e}else if(r!==o){o=Fo(Error(N(424)),t),t=lp(e,t,r,n,o);break e}else for(mt=qn(t.stateNode.containerInfo.firstChild),gt=t,xe=!0,Ft=null,n=Xg(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Lo(),r===o){t=yn(e,t,n);break e}Qe(e,t,r,n)}t=t.child}return t;case 5:return tv(t),e===null&&Su(t),r=t.type,o=t.pendingProps,s=e!==null?e.memoizedProps:null,i=o.children,yu(r,o)?i=null:s!==null&&yu(r,s)&&(t.flags|=32),Cv(e,t),Qe(e,t,i,n),t.child;case 6:return e===null&&Su(t),null;case 13:return Tv(e,t,n);case 4:return qd(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Do(t,null,r,n):Qe(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:It(r,o),sp(e,t,r,o,n);case 7:return Qe(e,t,t.pendingProps,n),t.child;case 8:return Qe(e,t,t.pendingProps.children,n),t.child;case 12:return Qe(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,s=t.memoizedProps,i=o.value,me(La,r._currentValue),r._currentValue=i,s!==null)if(Bt(s.value,i)){if(s.children===o.children&&!it.current){t=yn(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var a=s.dependencies;if(a!==null){i=s.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(s.tag===1){l=pn(-1,n&-n),l.tag=2;var c=s.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),Eu(s.return,n,t),a.lanes|=n;break}l=l.next}}else if(s.tag===10)i=s.type===t.type?null:s.child;else if(s.tag===18){if(i=s.return,i===null)throw Error(N(341));i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),Eu(i,n,t),i=s.sibling}else i=s.child;if(i!==null)i.return=s;else for(i=s;i!==null;){if(i===t){i=null;break}if(s=i.sibling,s!==null){s.return=i.return,i=s;break}i=i.return}s=i}Qe(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,wo(t,n),o=Nt(o),r=r(o),t.flags|=1,Qe(e,t,r,n),t.child;case 14:return r=t.type,o=It(r,t.pendingProps),o=It(r.type,o),ip(e,t,r,o,n);case 15:return Ev(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:It(r,o),pa(e,t),t.tag=1,at(r)?(e=!0,Aa(t)):e=!1,wo(t,n),bv(t,r,o),Cu(t,r,o,n),Ru(null,t,r,!0,e,n);case 19:return Rv(e,t,n);case 22:return kv(e,t,n)}throw Error(N(156,t.tag))};function Wv(e,t){return yg(e,t)}function T_(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function kt(e,t,n,r){return new T_(e,t,n,r)}function uf(e){return e=e.prototype,!(!e||!e.isReactComponent)}function R_(e){if(typeof e=="function")return uf(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Td)return 11;if(e===Rd)return 14}return 2}function Xn(e,t){var n=e.alternate;return n===null?(n=kt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deleti
vendor: 4,548 bytes, line 40
40ons=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function va(e,t,n,r,o,s){var i=2;if(r=e,typeof e=="function")uf(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case ro:return Cr(n.children,o,s,t);case Pd:i=8,o|=8;break;case Yc:return e=kt(12,n,t,o|2),e.elementType=Yc,e.lanes=s,e;case Jc:return e=kt(13,n,t,o),e.elementType=Jc,e.lanes=s,e;case Xc:return e=kt(19,n,t,o),e.elementType=Xc,e.lanes=s,e;case tg:return ml(n,o,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Zm:i=10;break e;case eg:i=9;break e;case Td:i=11;break e;case Rd:i=14;break e;case jn:i=16,r=null;break e}throw Error(N(130,e==null?e:typeof e,""))}return t=kt(i,n,t,o),t.elementType=e,t.type=r,t.lanes=s,t}function Cr(e,t,n,r){return e=kt(7,e,r,t),e.lanes=n,e}function ml(e,t,n,r){return e=kt(22,e,r,t),e.elementType=tg,e.lanes=n,e.stateNode={isHidden:!1},e}function kc(e,t,n){return e=kt(6,e,null,t),e.lanes=n,e}function Cc(e,t,n){return t=kt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function N_(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ic(0),this.expirationTimes=ic(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ic(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function df(e,t,n,r,o,s,i,a,l){return e=new N_(e,t,n,a,l),t===1?(t=1,s===!0&&(t|=8)):t=0,s=kt(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Gd(s),e}function j_(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:no,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Kv(e){if(!e)return tr;e=e._reactInternals;e:{if(Lr(e)!==e||e.tag!==1)throw Error(N(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(at(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(N(171))}if(e.tag===1){var n=e.type;if(at(n))return Kg(e,n,t)}return t}function Gv(e,t,n,r,o,s,i,a,l){return e=df(n,r,!0,e,o,s,i,a,l),e.context=Kv(null),n=e.current,r=Je(),o=Jn(n),s=pn(r,o),s.callback=t??null,Qn(n,s,o),e.current.lanes=o,ui(e,o,r),lt(e,r),e}function gl(e,t,n,r){var o=t.current,s=Je(),i=Jn(o);return n=Kv(n),t.context===null?t.context=n:t.pendingContext=n,t=pn(s,i),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Qn(o,t,i),e!==null&&(zt(e,o,i,s),da(e,o,i)),i}function Ka(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 yp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function ff(e,t){yp(e,t),(e=e.alternate)&&yp(e,t)}function O_(){return null}var qv=typeof reportError=="function"?reportError:function(e){console.error(e)};function hf(e){this._internalRoot=e}vl.prototype.render=hf.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(N(409));gl(e,t,null,null)};vl.prototype.unmount=hf.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;jr(function(){gl(null,e,null,null)}),t[gn]=null}};function vl(e){this._internalRoot=e}vl.prototype.unstable_scheduleHydration=function(e){if(e){var t=kg();e={blockedOn:null,target:e,priority:t};for(var n=0;n<In.length&&t!==0&&t<In[n].priority;n++);In.splice(n,0,e),n===0&&Pg(e)}};function pf(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function yl(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function wp(){}function A_(e,t,n,r,o){if(o){if(typeof r=="function"){var s=r;r=function(){var c=Ka(i);s.call(c)}}var i=Gv(t,r,e,0,null,!1,!1,"",wp);return e._reactRootContainer=i,e[gn]=i.current,Bs(e.nodeType===8?e.parentNode:e),jr(),i}for(;
vendor: 5,149 bytes, line 40
40o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var a=r;r=function(){var c=Ka(l);a.call(c)}}var l=df(e,0,!1,null,null,!1,!1,"",wp);return e._reactRootContainer=l,e[gn]=l.current,Bs(e.nodeType===8?e.parentNode:e),jr(function(){gl(t,l,n,r)}),l}function wl(e,t,n,r,o){var s=n._reactRootContainer;if(s){var i=s;if(typeof o=="function"){var a=o;o=function(){var l=Ka(i);a.call(l)}}gl(t,i,e,o)}else i=A_(n,t,e,o,r);return Ka(i)}Sg=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=gs(t.pendingLanes);n!==0&&(Od(t,n|1),lt(t,Pe()),!(se&6)&&(Uo=Pe()+500,lr()))}break;case 13:jr(function(){var r=vn(e,1);if(r!==null){var o=Je();zt(r,e,1,o)}}),ff(e,1)}};Ad=function(e){if(e.tag===13){var t=vn(e,134217728);if(t!==null){var n=Je();zt(t,e,134217728,n)}ff(e,134217728)}};Eg=function(e){if(e.tag===13){var t=Jn(e),n=vn(e,t);if(n!==null){var r=Je();zt(n,e,t,r)}ff(e,t)}};kg=function(){return de};Cg=function(e,t){var n=de;try{return de=e,t()}finally{de=n}};lu=function(e,t,n){switch(t){case"input":if(tu(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=cl(r);if(!o)throw Error(N(90));rg(r),tu(r,o)}}}break;case"textarea":sg(e,n);break;case"select":t=n.value,t!=null&&mo(e,!!n.multiple,t,!1)}};fg=af;hg=jr;var I_={usingClientEntryPoint:!1,Events:[fi,ao,cl,ug,dg,af]},us={findFiberByHostInstance:yr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},M_={bundleType:us.bundleType,version:us.version,rendererPackageName:us.rendererPackageName,rendererConfig:us.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:bn.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=gg(e),e===null?null:e.stateNode},findFiberByHostInstance:us.findFiberByHostInstance||O_,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 Ki=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ki.isDisabled&&Ki.supportsFiber)try{sl=Ki.inject(M_),tn=Ki}catch{}}wt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=I_;wt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!pf(t))throw Error(N(200));return j_(e,t,null,n)};wt.createRoot=function(e,t){if(!pf(e))throw Error(N(299));var n=!1,r="",o=qv;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=df(e,1,!1,null,null,n,!1,r,o),e[gn]=t.current,Bs(e.nodeType===8?e.parentNode:e),new hf(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(N(188)):(e=Object.keys(e).join(","),Error(N(268,e)));return e=gg(t),e=e===null?null:e.stateNode,e};wt.flushSync=function(e){return jr(e)};wt.hydrate=function(e,t,n){if(!yl(t))throw Error(N(200));return wl(null,e,t,!0,n)};wt.hydrateRoot=function(e,t,n){if(!pf(e))throw Error(N(405));var r=n!=null&&n.hydratedSources||null,o=!1,s="",i=qv;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onRecoverableError!==void 0&&(i=n.onRecoverableError)),t=Gv(t,null,e,1,n??null,o,!1,s,i),e[gn]=t.current,Bs(e),r)for(e=0;e<r.length;e++)n=r[e],o=n._getVersion,o=o(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new vl(t)};wt.render=function(e,t,n){if(!yl(t))throw Error(N(200));return wl(null,e,t,!1,n)};wt.unmountComponentAtNode=function(e){if(!yl(e))throw Error(N(40));return e._reactRootContainer?(jr(function(){wl(null,null,e,!1,function(){e._reactRootContainer=null,e[gn]=null})}),!0):!1};wt.unstable_batchedUpdates=af;wt.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!yl(n))throw Error(N(200));if(e==null||e._reactInternals===void 0)throw Error(N(38));return wl(e,t,n,!1,r)};wt.version="18.3.1-next-f1338f8080-20240426";function Qv(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Qv)}catch(e){console.error(e)}}Qv(),Qm.exports=wt;var Dr=Qm.exports;const Yv=Lm(Dr);var Jv,xp=Dr;Jv=xp.createRoot,xp.hydrateRoot;const L_=1,D_=1e6;let Pc=0;function $_(){return Pc=(Pc+1)%Number.MAX_SAFE_INTEGER,Pc.toString()}const Tc=new Map,bp=e=>{if(Tc.has(e))return;const t=setTimeout(()=>{Tc.delete(e),Ns({type:"REMOVE_TOAST",toastId:e})},D_);Tc.set(e,t)},F_=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,L_)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=t;
40return n?bp(n):e.toasts.forEach(r=>{bp(r.id)}),{...e,toasts:e.toasts.map(r=>r.id===n||n===void 0?{...r,open:!1}:r)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},ya=[];let wa={toasts:[]};function Ns(e){wa=F_(wa,e),ya.forEach(t=>{t(wa)})}function U_({...e}){const t=$_(),n=o=>Ns({type:"UPDATE_TOAST",toast:{...o,id:t}}),r=()=>Ns({type:"DISMISS_TOAST",toastId:t});return Ns({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:o=>{o||r()}}}),{id:t,dismiss:r,update:n}}function Xv(){const[e,t]=p.useState(wa);return p.useEffect(()=>(ya.push(t),()=>{const n=ya.indexOf(t);n>-1&&ya.splice(n,1)}),[e]),{...e,toast:U_,dismiss:n=>Ns({type:"DISMISS_TOAST",toastId:n})}}function F(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function z_(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function xl(...e){return t=>e.forEach(n=>z_(n,t))}function fe(...e){return p.useCallback(xl(...e),e)}function B_(e,t=[]){let n=[];function r(s,i){const a=p.createContext(i),l=n.length;n=[...n,i];function c(d){const{scope:f,children:y,...x}=d,m=(f==null?void 0:f[e][l])||a,b=p.useMemo(()=>x,Object.values(x));return h.jsx(m.Provider,{value:b,children:y})}function u(d,f){const y=(f==null?void 0:f[e][l])||a,x=p.useContext(y);if(x)return x;if(i!==void 0)return i;throw new Error(`\`${d}\` must be used within \`${s}\``)}return c.displayName=s+"Provider",[c,u]}const o=()=>{const s=n.map(i=>p.createContext(i));return function(a){const l=(a==null?void 0:a[e])||s;return p.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return o.scopeName=e,[r,V_(o,...t)]}function V_(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const i=r.reduce((a,{useScope:l,scopeName:c})=>{const d=l(s)[`__scope${c}`];return{...a,...d}},{});return p.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}var Or=p.forwardRef((e,t)=>{const{children:n,...r}=e,o=p.Children.toArray(n),s=o.find(H_);if(s){const i=s.props.children,a=o.map(l=>l===s?p.Children.count(i)>1?p.Children.only(null):p.isValidElement(i)?i.props.children:null:l);return h.jsx(zu,{...r,ref:t,children:p.isValidElement(i)?p.cloneElement(i,void 0,a):null})}return h.jsx(zu,{...r,ref:t,children:n})});Or.displayName="Slot";var zu=p.forwardRef((e,t)=>{const{children:n,...r}=e;if(p.isValidElement(n)){const o=K_(n);return p.cloneElement(n,{...W_(r,n.props),ref:t?xl(t,o):o})}return p.Children.count(n)>1?p.Children.only(null):null});zu.displayName="SlotClone";var Zv=({children:e})=>h.jsx(h.Fragment,{children:e});function H_(e){return p.isValidElement(e)&&e.type===Zv}function W_(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...a)=>{s(...a),o(...a)}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function K_(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function bl(e){const t=e+"CollectionProvider",[n,r]=B_(t),[o,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=y=>{const{scope:x,children:m}=y,b=M.useRef(null),v=M.useRef(new Map).current;return h.jsx(o,{scope:x,itemMap:v,collectionRef:b,children:m})};i.displayName=t;const a=e+"CollectionSlot",l=M.forwardRef((y,x)=>{const{scope:m,children:b}=y,v=s(a,m),g=fe(x,v.collectionRef);return h.jsx(Or,{ref:g,children:b})});l.displayName=a;const c=e+"CollectionItemSlot",u="data-radix-collection-item",d=M.forwardRef((y,x)=>{const{scope:m,children:b,...v}=y,g=M.useRef(null),w=fe(x,g),_=s(c,m);return M.useEffect(()=>(_.itemMap.set(g,{ref:g,...v}),()=>void _.itemMap.delete(g))),h.jsx(Or,{[u]:"",ref:w,children:b})});d.displayName=c;function f(y){const x=s(e+"CollectionConsumer",y);return M.useCallback(()=>{const b=x.collectionRef.current;if(!b)return[];const v=Array.from(b.querySelectorAll(`[${u}]`));return Array.from(x.itemMap.values()).sort((_,S)=>v.indexOf(_.ref.current)-v.indexOf(S.ref.current))},[x.collectionRef,x.itemMap])}return[{Provider:i,Slot:l,ItemSlot:d},f,r]}function pi(e,t=[]){let n=[];function r(s,i){const a=p.createContext(i),l=n.length;n=[...n,i];const c=d=>{var v;const{scope:f,children:y,...x}=d,m=((v=f==null?void 0:f[e])==null?void 0:v[l])||a,b=p.useMemo(()=>x,Object.values(x));return h.jsx(m.Provider,{value:b,children:y})};c.displayName=s+"Provider";function u(d,f){var m;const y=((m=f==null?void 0:f[e])==null?void 0:m[l])||a,x=p.useContext(y);if(x)return x;if(i!==void 0)return i;throw new Error(`\`${d}\` must be used within \`${s}\``)}return[c,u]}const o=()=>{const s=n.map(i=>p.createContext(i));return function(a){const l=(a==null?void 0:a[e])||s;return p.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return o.scopeName=e,[r,G_(o,...t)]}function G_(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const i=r.reduce((a,{useScope:l,scopeName:c}
vendor: 4,505 bytes, line 40
40)=>{const d=l(s)[`__scope${c}`];return{...a,...d}},{});return p.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}var q_=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],te=q_.reduce((e,t)=>{const n=p.forwardRef((r,o)=>{const{asChild:s,...i}=r,a=s?Or:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),h.jsx(a,{...i,ref:o})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function mf(e,t){e&&Dr.flushSync(()=>e.dispatchEvent(t))}function We(e){const t=p.useRef(e);return p.useEffect(()=>{t.current=e}),p.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function Q_(e,t=globalThis==null?void 0:globalThis.document){const n=We(e);p.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var Y_="DismissableLayer",Bu="dismissableLayer.update",J_="dismissableLayer.pointerDownOutside",X_="dismissableLayer.focusOutside",_p,ey=p.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),mi=p.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:i,onDismiss:a,...l}=e,c=p.useContext(ey),[u,d]=p.useState(null),f=(u==null?void 0:u.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,y]=p.useState({}),x=fe(t,E=>d(E)),m=Array.from(c.layers),[b]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),v=m.indexOf(b),g=u?m.indexOf(u):-1,w=c.layersWithOutsidePointerEventsDisabled.size>0,_=g>=v,S=eS(E=>{const P=E.target,A=[...c.branches].some(j=>j.contains(P));!_||A||(o==null||o(E),i==null||i(E),E.defaultPrevented||a==null||a())},f),C=tS(E=>{const P=E.target;[...c.branches].some(j=>j.contains(P))||(s==null||s(E),i==null||i(E),E.defaultPrevented||a==null||a())},f);return Q_(E=>{g===c.layers.size-1&&(r==null||r(E),!E.defaultPrevented&&a&&(E.preventDefault(),a()))},f),p.useEffect(()=>{if(u)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(_p=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(u)),c.layers.add(u),Sp(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=_p)}},[u,f,n,c]),p.useEffect(()=>()=>{u&&(c.layers.delete(u),c.layersWithOutsidePointerEventsDisabled.delete(u),Sp())},[u,c]),p.useEffect(()=>{const E=()=>y({});return document.addEventListener(Bu,E),()=>document.removeEventListener(Bu,E)},[]),h.jsx(te.div,{...l,ref:x,style:{pointerEvents:w?_?"auto":"none":void 0,...e.style},onFocusCapture:F(e.onFocusCapture,C.onFocusCapture),onBlurCapture:F(e.onBlurCapture,C.onBlurCapture),onPointerDownCapture:F(e.onPointerDownCapture,S.onPointerDownCapture)})});mi.displayName=Y_;var Z_="DismissableLayerBranch",ty=p.forwardRef((e,t)=>{const n=p.useContext(ey),r=p.useRef(null),o=fe(t,r);return p.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),h.jsx(te.div,{...e,ref:o})});ty.displayName=Z_;function eS(e,t=globalThis==null?void 0:globalThis.document){const n=We(e),r=p.useRef(!1),o=p.useRef(()=>{});return p.useEffect(()=>{const s=a=>{if(a.target&&!r.current){let l=function(){ny(J_,n,c,{discrete:!0})};const c={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=l,t.addEventListener("click",o.current,{once:!0})):l()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function tS(e,t=globalThis==null?void 0:globalThis.document){const n=We(e),r=p.useRef(!1);return p.useEffect(()=>{const o=s=>{s.target&&!r.current&&ny(X_,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Sp(){const e=new CustomEvent(Bu);document.dispatchEvent(e)}function ny(e,t,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?mf(o,s):o.dispatchEvent(s)}var nS=mi,rS=ty,Ke=globalThis!=null&&globalThis.document?p.useLayoutEffect:()=>{},oS="Portal",_l=p.forwardRef((e,t)=>
40{var a;const{container:n,...r}=e,[o,s]=p.useState(!1);Ke(()=>s(!0),[]);const i=n||o&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return i?Yv.createPortal(h.jsx(te.div,{...r,ref:t}),i):null});_l.displayName=oS;function sS(e,t){return p.useReducer((n,r)=>t[n][r]??n,e)}var $r=e=>{const{present:t,children:n}=e,r=iS(t),o=typeof n=="function"?n({present:r.isPresent}):p.Children.only(n),s=fe(r.ref,aS(o));return typeof n=="function"||r.isPresent?p.cloneElement(o,{ref:s}):null};$r.displayName="Presence";function iS(e){const[t,n]=p.useState(),r=p.useRef({}),o=p.useRef(e),s=p.useRef("none"),i=e?"mounted":"unmounted",[a,l]=sS(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return p.useEffect(()=>{const c=Gi(r.current);s.current=a==="mounted"?c:"none"},[a]),Ke(()=>{const c=r.current,u=o.current;if(u!==e){const f=s.current,y=Gi(c);e?l("MOUNT"):y==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(u&&f!==y?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),Ke(()=>{if(t){let c;const u=t.ownerDocument.defaultView??window,d=y=>{const m=Gi(r.current).includes(y.animationName);if(y.target===t&&m&&(l("ANIMATION_END"),!o.current)){const b=t.style.animationFillMode;t.style.animationFillMode="forwards",c=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=b)})}},f=y=>{y.target===t&&(s.current=Gi(r.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{u.clearTimeout(c),t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:p.useCallback(c=>{c&&(r.current=getComputedStyle(c)),n(c)},[])}}function Gi(e){return(e==null?void 0:e.animationName)||"none"}function aS(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Js({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=lS({defaultProp:t,onChange:n}),s=e!==void 0,i=s?e:r,a=We(n),l=p.useCallback(c=>{if(s){const d=typeof c=="function"?c(e):c;d!==e&&a(d)}else o(c)},[s,e,o,a]);return[i,l]}function lS({defaultProp:e,onChange:t}){const n=p.useState(e),[r]=n,o=p.useRef(r),s=We(t);return p.useEffect(()=>{o.current!==r&&(s(r),o.current=r)},[r,o,s]),n}var cS="VisuallyHidden",gi=p.forwardRef((e,t)=>h.jsx(te.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}}));gi.displayName=cS;var uS=gi,gf="ToastProvider",[vf,dS,fS]=bl("Toast"),[ry,VO]=pi("Toast",[fS]),[hS,Sl]=ry(gf),oy=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:o="right",swipeThreshold:s=50,children:i}=e,[a,l]=p.useState(null),[c,u]=p.useState(0),d=p.useRef(!1),f=p.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${gf}\`. Expected non-empty \`string\`.`),h.jsx(vf.Provider,{scope:t,children:h.jsx(hS,{scope:t,label:n,duration:r,swipeDirection:o,swipeThreshold:s,toastCount:c,viewport:a,onViewportChange:l,onToastAdd:p.useCallback(()=>u(y=>y+1),[]),onToastRemove:p.useCallback(()=>u(y=>y-1),[]),isFocusedToastEscapeKeyDownRef:d,isClosePausedRef:f,children:i})})};oy.displayName=gf;var sy="ToastViewport",pS=["F8"],Vu="toast.viewportPause",Hu="toast.viewportResume",iy=p.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=pS,label:o="Notifications ({hotkey})",...s}=e,i=Sl(sy,n),a=dS(n),l=p.useRef(null),c=p.useRef(null),u=p.useRef(null),d=p.useRef(null),f=fe(t,d,i.onViewportChange),y=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),x=i.toastCount>0;p.useEffect(()=>{const b=v=>{var w;r.length!==0&&r.every(_=>v[_]||v.code===_)&&((w=d.current)==null||w.focus())};return document.addEventListener("keydown",b),()=>document.removeEventListener("keydown",b)},[r]),p.useEffect(()=>{const b=l.current,v=d.current;if(x&&b&&v){const g=()=>{if(!i.isClosePausedRef.current){const C=new CustomEvent(Vu);v.dispatchEvent(C),i.isClosePausedRef.current=!0}},w=()=>
40{if(i.isClosePausedRef.current){const C=new CustomEvent(Hu);v.dispatchEvent(C),i.isClosePausedRef.current=!1}},_=C=>{!b.contains(C.relatedTarget)&&w()},S=()=>{b.contains(document.activeElement)||w()};return b.addEventListener("focusin",g),b.addEventListener("focusout",_),b.addEventListener("pointermove",g),b.addEventListener("pointerleave",S),window.addEventListener("blur",g),window.addEventListener("focus",w),()=>{b.removeEventListener("focusin",g),b.removeEventListener("focusout",_),b.removeEventListener("pointermove",g),b.removeEventListener("pointerleave",S),window.removeEventListener("blur",g),window.removeEventListener("focus",w)}}},[x,i.isClosePausedRef]);const m=p.useCallback(({tabbingDirection:b})=>{const g=a().map(w=>{const _=w.ref.current,S=[_,...PS(_)];return b==="forwards"?S:S.reverse()});return(b==="forwards"?g.reverse():g).flat()},[a]);return p.useEffect(()=>{const b=d.current;if(b){const v=g=>{var S,C,E;const w=g.altKey||g.ctrlKey||g.metaKey;if(g.key==="Tab"&&!w){const P=document.activeElement,A=g.shiftKey;if(g.target===b&&A){(S=c.current)==null||S.focus();return}const L=m({tabbingDirection:A?"backwards":"forwards"}),H=L.findIndex(O=>O===P);Rc(L.slice(H+1))?g.preventDefault():A?(C=c.current)==null||C.focus():(E=u.current)==null||E.focus()}};return b.addEventListener("keydown",v),()=>b.removeEventListener("keydown",v)}},[a,m]),h.jsxs(rS,{ref:l,role:"region","aria-label":o.replace("{hotkey}",y),tabIndex:-1,style:{pointerEvents:x?void 0:"none"},children:[x&&h.jsx(Wu,{ref:c,onFocusFromOutsideViewport:()=>{const b=m({tabbingDirection:"forwards"});Rc(b)}}),h.jsx(vf.Slot,{scope:n,children:h.jsx(te.ol,{tabIndex:-1,...s,ref:f})}),x&&h.jsx(Wu,{ref:u,onFocusFromOutsideViewport:()=>{const b=m({tabbingDirection:"backwards"});Rc(b)}})]})});iy.displayName=sy;var ay="ToastFocusProxy",Wu=p.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...o}=e,s=Sl(ay,n);return h.jsx(gi,{"aria-hidden":!0,tabIndex:0,...o,ref:t,style:{position:"fixed"},onFocus:i=>{var c;const a=i.relatedTarget;!((c=s.viewport)!=null&&c.contains(a))&&r()}})});Wu.displayName=ay;var El="Toast",mS="toast.swipeStart",gS="toast.swipeMove",vS="toast.swipeCancel",yS="toast.swipeEnd",ly=p.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:o,onOpenChange:s,...i}=e,[a=!0,l]=Js({prop:r,defaultProp:o,onChange:s});return h.jsx($r,{present:n||a,children:h.jsx(bS,{open:a,...i,ref:t,onClose:()=>l(!1),onPause:We(e.onPause),onResume:We(e.onResume),onSwipeStart:F(e.onSwipeStart,c=>{c.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:F(e.onSwipeMove,c=>{const{x:u,y:d}=c.detail.delta;c.currentTarget.setAttribute("data-swipe","move"),c.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${u}px`),c.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${d}px`)}),onSwipeCancel:F(e.onSwipeCancel,c=>{c.currentTarget.setAttribute("data-swipe","cancel"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),c.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:F(e.onSwipeEnd,c=>{const{x:u,y:d}=c.detail.delta;c.currentTarget.setAttribute("data-swipe","end"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),c.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${u}px`),c.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${d}px`),l(!1)})})})});ly.displayName=El;var[wS,xS]=ry(El,{onClose(){}}),bS=p.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:o,open:s,onClose:i,onEscapeKeyDown:a,onPause:l,onResume:c,onSwipeStart:u,onSwipeMove:d,onSwipeCancel:f,onSwipeEnd:y,...x}=e,m=Sl(El,n),[b,v]=p.useState(null),g=fe(t,O=>v(O)),w=p.useRef(null),_=p.useRef(null),S=o||m.duration,C=p.useRef(0),E=p.useRef(S),P=p.useRef(0),{onToastAdd:A,onToastRemove:j}=m,z=We(()=>{var W;(b==null?void 0:b.contains(document.activeElement))&&((W=m.viewport)==null||W.focus()),i()}),L=p.useCallback(O=>
vendor: 4,518 bytes, line 40
40{!O||O===1/0||(window.clearTimeout(P.current),C.current=new Date().getTime(),P.current=window.setTimeout(z,O))},[z]);p.useEffect(()=>{const O=m.viewport;if(O){const W=()=>{L(E.current),c==null||c()},$=()=>{const K=new Date().getTime()-C.current;E.current=E.current-K,window.clearTimeout(P.current),l==null||l()};return O.addEventListener(Vu,$),O.addEventListener(Hu,W),()=>{O.removeEventListener(Vu,$),O.removeEventListener(Hu,W)}}},[m.viewport,S,l,c,L]),p.useEffect(()=>{s&&!m.isClosePausedRef.current&&L(S)},[s,S,m.isClosePausedRef,L]),p.useEffect(()=>(A(),()=>j()),[A,j]);const H=p.useMemo(()=>b?my(b):null,[b]);return m.viewport?h.jsxs(h.Fragment,{children:[H&&h.jsx(_S,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:H}),h.jsx(wS,{scope:n,onClose:z,children:Dr.createPortal(h.jsx(vf.ItemSlot,{scope:n,children:h.jsx(nS,{asChild:!0,onEscapeKeyDown:F(a,()=>{m.isFocusedToastEscapeKeyDownRef.current||z(),m.isFocusedToastEscapeKeyDownRef.current=!1}),children:h.jsx(te.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":s?"open":"closed","data-swipe-direction":m.swipeDirection,...x,ref:g,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:F(e.onKeyDown,O=>{O.key==="Escape"&&(a==null||a(O.nativeEvent),O.nativeEvent.defaultPrevented||(m.isFocusedToastEscapeKeyDownRef.current=!0,z()))}),onPointerDown:F(e.onPointerDown,O=>{O.button===0&&(w.current={x:O.clientX,y:O.clientY})}),onPointerMove:F(e.onPointerMove,O=>{if(!w.current)return;const W=O.clientX-w.current.x,$=O.clientY-w.current.y,K=!!_.current,k=["left","right"].includes(m.swipeDirection),T=["left","up"].includes(m.swipeDirection)?Math.min:Math.max,D=k?T(0,W):0,I=k?0:T(0,$),B=O.pointerType==="touch"?10:2,G={x:D,y:I},re={originalEvent:O,delta:G};K?(_.current=G,qi(gS,d,re,{discrete:!1})):Ep(G,m.swipeDirection,B)?(_.current=G,qi(mS,u,re,{discrete:!1}),O.target.setPointerCapture(O.pointerId)):(Math.abs(W)>B||Math.abs($)>B)&&(w.current=null)}),onPointerUp:F(e.onPointerUp,O=>{const W=_.current,$=O.target;if($.hasPointerCapture(O.pointerId)&&$.releasePointerCapture(O.pointerId),_.current=null,w.current=null,W){const K=O.currentTarget,k={originalEvent:O,delta:W};Ep(W,m.swipeDirection,m.swipeThreshold)?qi(yS,y,k,{discrete:!0}):qi(vS,f,k,{discrete:!0}),K.addEventListener("click",T=>T.preventDefault(),{once:!0})}})})})}),m.viewport)})]}):null}),_S=e=>{const{__scopeToast:t,children:n,...r}=e,o=Sl(El,t),[s,i]=p.useState(!1),[a,l]=p.useState(!1);return kS(()=>i(!0)),p.useEffect(()=>{const c=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(c)},[]),a?null:h.jsx(_l,{asChild:!0,children:h.jsx(gi,{...r,children:s&&h.jsxs(h.Fragment,{children:[o.label," ",n]})})})},SS="ToastTitle",cy=p.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return h.jsx(te.div,{...r,ref:t})});cy.displayName=SS;var ES="ToastDescription",uy=p.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return h.jsx(te.div,{...r,ref:t})});uy.displayName=ES;var dy="ToastAction",fy=p.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?h.jsx(py,{altText:n,asChild:!0,children:h.jsx(yf,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${dy}\`. Expected non-empty \`string\`.`),null)});fy.displayName=dy;var hy="ToastClose",yf=p.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,o=xS(hy,n);return h.jsx(py,{asChild:!0,children:h.jsx(te.button,{type:"button",...r,ref:t,onClick:F(e.onClick,o.onClose)})})});yf.displayName=hy;var py=p.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...o}=e;return h.jsx(te.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...o,ref:t})});function my(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),CS(r)){const o=r.ariaHidden||r.hidden||r.style.display==="none",s=r.dataset.radixToastAnnounceExclude==="";if(!o)if(s){const i=r.dataset.radixToastAnnounceAlt;i&&t.push(i)}else t.push(...my(r))}}),t}function qi(e,t,n,{discrete:r}){const o=n.originalEvent.currentTarget,s=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?mf(o,s):o.dispatchEvent(s)}var Ep=(e,t,n=0)=>{const r=Math.abs(e.x),o=Math.abs(e.y),s=r>o;return t==="left"||t==="right"?s&&r>n:!s&&o>n};function kS(e=()=>{}){const t=We(e);Ke(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}
vendor: 7,116 bytes, lines 40-120
40function CS(e){return e.nodeType===e.ELEMENT_NODE}function PS(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Rc(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var TS=oy,gy=iy,vy=ly,yy=cy,wy=uy,xy=fy,by=yf;function _y(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=_y(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Sy(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=_y(e))&&(r&&(r+=" "),r+=t);return r}const kp=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Cp=Sy,wf=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return Cp(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:s}=t,i=Object.keys(o).map(c=>{const u=n==null?void 0:n[c],d=s==null?void 0:s[c];if(u===null)return null;const f=kp(u)||kp(d);return o[c][f]}),a=n&&Object.entries(n).reduce((c,u)=>{let[d,f]=u;return f===void 0||(c[d]=f),c},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((c,u)=>{let{class:d,className:f,...y}=u;return Object.entries(y).every(x=>{let[m,b]=x;return Array.isArray(b)?b.includes({...s,...a}[m]):{...s,...a}[m]===b})?[...c,d,f]:c},[]);return Cp(e,i,l,n==null?void 0:n.class,n==null?void 0:n.className)};/** 41 * @license lucide-react v0.462.0 - ISC 42 * 43 * This source code is licensed under the ISC license. 44 * See the LICENSE file in the root directory of this source tree. 45 */const RS=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Ey=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/** 46 * @license lucide-react v0.462.0 - ISC 47 * 48 * This source code is licensed under the ISC license. 49 * See the LICENSE file in the root directory of this source tree. 50 */var NS={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"};/** 51 * @license lucide-react v0.462.0 - ISC 52 * 53 * This source code is licensed under the ISC license. 54 * See the LICENSE file in the root directory of this source tree. 55 */const jS=p.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:s,iconNode:i,...a},l)=>p.createElement("svg",{ref:l,...NS,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Ey("lucide",o),...a},[...i.map(([c,u])=>p.createElement(c,u)),...Array.isArray(s)?s:[s]]));/** 56 * @license lucide-react v0.462.0 - ISC 57 * 58 * This source code is licensed under the ISC license. 59 * See the LICENSE file in the root directory of this source tree. 60 */const et=(e,t)=>{const n=p.forwardRef(({className:r,...o},s)=>p.createElement(jS,{ref:s,iconNode:t,className:Ey(`lucide-${RS(e)}`,r),...o}));return n.displayName=`${e}`,n};/** 61 * @license lucide-react v0.462.0 - ISC 62 * 63 * This source code is licensed under the ISC license. 64 * See the LICENSE file in the root directory of this source tree. 65 */const kl=et("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/** 66 * @license lucide-react v0.462.0 - ISC 67 * 68 * This source code is licensed under the ISC license. 69 * See the LICENSE file in the root directory of this source tree. 70 */const OS=et("Brain",[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z",key:"ep3f8r"}],["path",{d:"M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4",key:"1p4c4q"}],["path",{d:"M17.599 6.5a3 3 0 0 0 .399-1.375",key:"tmeiqw"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M19.938 10.5a4 4 0 0 1 .585.396",key:"1qfode"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M19.967 17.484A4 4 0 0 1 18 18",key:"159ez6"}]]);/** 71 * @license lucide-react v0.462.0 - ISC 72 * 73 * This source code is licensed under the ISC license. 74 * See the LICENSE file in the root directory of this source tree. 75 */const ky=et("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/** 76 * @license lucide-react v0.462.0 - ISC 77 * 78 * This source code is licensed under the ISC license. 79 * See the LICENSE file in the root directory of this source tree. 80 */const xf=et("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/** 81 * @license lucide-react v0.462.0 - ISC 82 * 83 * This source code is licensed under the ISC license. 84 * See the LICENSE file in the root directory of this source tree. 85 */const AS=et("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/** 86 * @license lucide-react v0.462.0 - ISC 87 * 88 * This source code is licensed under the ISC license. 89 * See the LICENSE file in the root directory of this source tree. 90 */const IS=et("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/** 91 * @license lucide-react v0.462.0 - ISC 92 * 93 * This source code is licensed under the ISC license. 94 * See the LICENSE file in the root directory of this source tree. 95 */const MS=et("Chrome",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["line",{x1:"21.17",x2:"12",y1:"8",y2:"8",key:"a0cw5f"}],["line",{x1:"3.95",x2:"8.54",y1:"6.06",y2:"14",key:"1kftof"}],["line",{x1:"10.88",x2:"15.46",y1:"21.94",y2:"14",key:"1ymyh8"}]]);/** 96 * @license lucide-react v0.462.0 - ISC 97 * 98 * This source code is licensed under the ISC license. 99 * See the LICENSE file in the root directory of this source tree. 100 */const LS=et("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/** 101 * @license lucide-react v0.462.0 - ISC 102 * 103 * This source code is licensed under the ISC license. 104 * See the LICENSE file in the root directory of this source tree. 105 */const DS=et("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/** 106 * @license lucide-react v0.462.0 - ISC 107 * 108 * This source code is licensed under the ISC license. 109 * See the LICENSE file in the root directory of this source tree. 110 */const $S=et("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);/** 111 * @license lucide-react v0.462.0 - ISC 112 * 113 * This source code is licensed under the ISC license. 114 * See the LICENSE file in the root directory of this source tree. 115 */const FS=et("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/** 116 * @license lucide-react v0.462.0 - ISC 117 * 118 * This source code is licensed under the ISC license. 119 * See the LICENSE file in the root directory of this source tree. 120 */const US=et("ShoppingCart",[["circle",{cx:"8",cy:"21",r:"1",key:"jimo8o"}
vendor: 9,076 bytes, lines 120-135
120],["circle",{cx:"19",cy:"21",r:"1",key:"13723u"}],["path",{d:"M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12",key:"9zh506"}]]);/** 121 * @license lucide-react v0.462.0 - ISC 122 * 123 * This source code is licensed under the ISC license. 124 * See the LICENSE file in the root directory of this source tree. 125 */const Cy=et("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]);/** 126 * @license lucide-react v0.462.0 - ISC 127 * 128 * This source code is licensed under the ISC license. 129 * See the LICENSE file in the root directory of this source tree. 130 */const zS=et("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);/** 131 * @license lucide-react v0.462.0 - ISC 132 * 133 * This source code is licensed under the ISC license. 134 * See the LICENSE file in the root directory of this source tree. 135 */const BS=et("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),bf="-",VS=e=>{const t=WS(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:i=>{const a=i.split(bf);return a[0]===""&&a.length!==1&&a.shift(),Py(a,t)||HS(i)},getConflictingClassGroupIds:(i,a)=>{const l=n[i]||[];return a&&r[i]?[...l,...r[i]]:l}}},Py=(e,t)=>{var i;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?Py(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const s=e.join(bf);return(i=t.validators.find(({validator:a})=>a(s)))==null?void 0:i.classGroupId},Pp=/^\[(.+)\]$/,HS=e=>{if(Pp.test(e)){const t=Pp.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},WS=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return GS(Object.entries(e.classGroups),n).forEach(([s,i])=>{Ku(i,r,s,t)}),r},Ku=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const s=o===""?t:Tp(t,o);s.classGroupId=n;return}if(typeof o=="function"){if(KS(o)){Ku(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([s,i])=>{Ku(i,Tp(t,s),n,r)})})},Tp=(e,t)=>{let n=e;return t.split(bf).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},KS=e=>e.isThemeGetter,GS=(e,t)=>t?e.map(([n,r])=>{const o=r.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([i,a])=>[t+i,a])):s);return[n,o]}):e,qS=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(s,i)=>{n.set(s,i),t++,t>e&&(t=0,r=n,n=new Map)};return{get(s){let i=n.get(s);if(i!==void 0)return i;if((i=r.get(s))!==void 0)return o(s,i),i},set(s,i){n.has(s)?n.set(s,i):o(s,i)}}},Ty="!",QS=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,o=t[0],s=t.length,i=a=>{const l=[];let c=0,u=0,d;for(let b=0;b<a.length;b++){let v=a[b];if(c===0){if(v===o&&(r||a.slice(b,b+s)===t)){l.push(a.slice(u,b)),u=b+s;continue}if(v==="/"){d=b;continue}}v==="["?c++:v==="]"&&c--}const f=l.length===0?a:a.substring(u),y=f.startsWith(Ty),x=y?f.substring(1):f,m=d&&d>u?d-u:void 0;return{modifiers:l,hasImportantModifier:y,baseClassName:x,maybePostfixModifierPosition:m}};return n?a=>n({className:a,parseClassName:i}):i},YS=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},JS=e=>({cache:qS(e.cacheSize),parseClassName:QS(e),...VS(e)}),XS=/\s+/,ZS=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,s=[],i=e.trim().split(XS);let a="";for(let l=i.length-1;l>=0;l-=1){const c=i[l],{modifiers:u,hasImportantModifier:d,baseClassName:f,maybePostfixModifierPosition:y}=n(c);let x=!!y,m=r(x?f.substring(0,y):f);if(!m){if(!x){a=c+(a.length>0?" "+a:a);continue}if(m=r(f),!m){a=c+(a.length>0?" "+a:a);continue}x=!1}const b=YS(u).join(":"),v=d?b+Ty:b,g=v+m;if(s.includes(g))continue;s.push(g);const w=o(m,x);for(let _=0;_<w.length;++_){const S=w[_];s.push(v+S)}a=c+(a.length>0?" "+a:a)}return a};function eE(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=Ry(t))&&(r&&(r+=" "),r+=n);return r}const Ry=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Ry(e[r]))&&(n&&(n+=" "),n+=t);return n};function tE(e,...t){let n,r,o,s=i;function i(l){const c=t.reduce((u,d)=>d(u),e());return n=JS(c),r=n.cache.get,o=n.cache.set,s=a,a(l)}function a(l){const c=r(l);if(c)return c;const u=ZS(l,n);return o(l,u),u}return function(){return s(eE.apply(null,arguments))}}const ve=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Ny=/^\[(?:([a-z-]+):)?(.+)\]$/i,nE=/^\d+\/\d+$/,rE=new Set(["px","full","screen"]),oE=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,sE=/\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$/,iE=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,aE=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,lE=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,an=e=>bo(e)||rE.has(e)||nE.test(e),kn=e=>Qo(e,"length",gE),bo=e=>!!e&&!Number.isNaN(Number(e)),Nc=e=>Qo(e,"number",bo),ds=e=>!!e&&Number.isInteger(Number(e)),cE=e=>e.endsWith("%")&&bo(e.slice(0,-1)),Y=e=>Ny.test(e),Cn=e=>oE.test(e),uE=new Set(["length","size","percentage"]),dE=e=>Qo(e,uE,jy),fE=e=>Qo(e,"position",jy),hE=new Set(["image","url"]),pE=e=>Qo(e,hE,yE),mE=e=>Qo(e,"",vE),fs=()=>!0,Qo=(e,t,n)=>{const r=Ny.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},gE=e=>sE.test(e)&&!iE.test(e),jy=()=>!1,vE=e=>aE.test(e),yE=e=>lE.test(e),wE=()=>{const e=ve("colors"),t=ve("spacing"),n=ve("blur"),r=ve("brightness"),o=ve("borderColor"),s=ve("borderRadius"),i=ve("borderSpacing"),a=ve("borderWidth"),l=ve("contrast"),c=ve("grayscale"),u=ve("hueRotate"),d=ve("invert"),f=ve("gap"),y=ve("gradientColorStops"),x=ve("gradientColorStopPositions"),m=ve("inset"),b=ve("margin"),v=ve("opacity"),g=ve("padding"),w=ve("saturate"),_=ve("scale"),S=ve("sepia"),C=ve("skew"),E=ve("space"),P=ve("translate"),A=()=>["auto","contain","none"],j=()=>["auto","hidden","clip","visible","scroll"],z=()=>["auto",Y,t],L=()=>[Y,t],H=()=>["",an,kn],O=()=>["auto",bo,Y],W=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],$=()=>["solid","dashed","dotted","double","none"],K=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],k=()=>["start","end","center","between","around","evenly","stretch"],T=()=>["","0",Y],D=()=>["auto","avoid","all","avoid-page","page","left","right","column"],I=()=>[bo,Y];return{cacheSize:500,separator:":",theme:{colors:[fs],spacing:[an,kn],blur:["none","",Cn,Y],brightness:I(),borderColor:[e],borderRadius:["none","","full",Cn,Y],borderSpacing:L(),borderWidth:H(),contrast:I(),grayscale:T(),hueRotate:I(),invert:T(),gap:L(),gradientColorStops:[e],gradientColorStopPositions:[cE,kn],inset:z(),margin:z(),opacity:I(),padding:L(),saturate:I(),scale:I(),sepia:T(),skew:I(),space:L(),translate:L()},classGroups:{aspect:[{aspect:["auto","square","video",Y]}],container:["container"],columns:[{columns:[Cn]}],"break-after":[{"break-after":D()}],"break-before":[{"break-before":D()}],"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:[...W(),Y]}],overflow:[{overflow:j()}],"overflow-x":[{"overflow-x":j()}],"overflow-y":[{"overflow-y":j()}],overscroll:[{overscroll:A()}],"overscroll-x":[{"overscroll-x":A()}],"overscroll-y":[{"overscroll-y":A()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}
vendor: 9,915 bytes, line 135
135],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",ds,Y]}],basis:[{basis:z()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Y]}],grow:[{grow:T()}],shrink:[{shrink:T()}],order:[{order:["first","last","none",ds,Y]}],"grid-cols":[{"grid-cols":[fs]}],"col-start-end":[{col:["auto",{span:["full",ds,Y]},Y]}],"col-start":[{"col-start":O()}],"col-end":[{"col-end":O()}],"grid-rows":[{"grid-rows":[fs]}],"row-start-end":[{row:["auto",{span:[ds,Y]},Y]}],"row-start":[{"row-start":O()}],"row-end":[{"row-end":O()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Y]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Y]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...k()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...k(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...k(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[g]}],px:[{px:[g]}],py:[{py:[g]}],ps:[{ps:[g]}],pe:[{pe:[g]}],pt:[{pt:[g]}],pr:[{pr:[g]}],pb:[{pb:[g]}],pl:[{pl:[g]}],m:[{m:[b]}],mx:[{mx:[b]}],my:[{my:[b]}],ms:[{ms:[b]}],me:[{me:[b]}],mt:[{mt:[b]}],mr:[{mr:[b]}],mb:[{mb:[b]}],ml:[{ml:[b]}],"space-x":[{"space-x":[E]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[E]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Y,t]}],"min-w":[{"min-w":[Y,t,"min","max","fit"]}],"max-w":[{"max-w":[Y,t,"none","full","min","max","fit","prose",{screen:[Cn]},Cn]}],h:[{h:[Y,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Y,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Y,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Y,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Cn,kn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Nc]}],"font-family":[{font:[fs]}],"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",Y]}],"line-clamp":[{"line-clamp":["none",bo,Nc]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",an,Y]}],"list-image":[{"list-image":["none",Y]}],"list-style-type":[{list:["none","disc","decimal",Y]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[v]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...$(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",an,kn]}],"underline-offset":[{"underline-offset":["auto",an,Y]}],"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:L()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Y]}],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",Y]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[v]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...W(),fE]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",dE]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},pE]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[x]}],"gradient-via-pos":[{via:[x]}],"gradient-to-pos":[{to:[x]}],"gradient-from":[{from:[y]}],"gradient-via":[{via:[y]}],"gradient-to":[{to:[y]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[v]}],"border-style":[{border:[...$(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[v]}],"divide-style":[{divide:$()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...$()]}],"outline-offset":[{"outline-offset":[an,Y]}],"outline-w":[{outline:[an,kn]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:H()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[an,kn]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Cn,mE]}],"shadow-color":[{shadow:[fs]}],opacity:[{opacity:[v]}],"mix-blend":[{"mix-blend":[...K(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":K()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Cn,Y]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[d]}],saturate:[{saturate:[w]}],sepia:[{sepia:[S]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],"backdrop-saturate":[{"backdrop-saturate":[w]}],"backdrop-sepia":[{"backdrop-sepia":[S]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Y]}],duration:[{duration:I()}],ease:[{ease:["linear","in","out","in-out",Y]}],delay:[{delay:I()}],animate:[{animate:["none","spin","ping","pulse","bounce",Y]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[_]}],"scale-x":[{"scale-x":[_]}],"scale-y":[{"scale-y":[_]}],rotate:[{rotate:[ds,Y]}],"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",Y]}],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",Y]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":L()}],"scroll-mx":[{"scroll-mx":L()}],"scroll-my":[{"scroll-my":L()}],"scroll-ms":[{"scroll-ms":L()}],"scroll-me":[{"scroll-me":L()}],"scroll-mt":[{"scroll-mt":L()}],"scroll-mr":[{"scroll-mr":L()}],"scroll-mb":[{"scroll-mb":L()}],"scroll-ml":[{"scroll-ml":L()}],"scroll-p":[{"scroll-p":L()}],"scroll-px":[{"scroll-px":L()}],"scroll-py":[{"scroll-py":L()}],"scroll-ps":[{"scroll-ps":L()}],"scroll-pe":[{"scroll-pe":L()}],"scroll-pt":[{"scroll-pt":L()}],"scroll-pr":[{"scroll-pr":L()}],"scroll-pb":[{"scroll-pb":L()}],"scroll-pl":[{"scroll-pl":L()}],"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,646 bytes, line 135
135],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",Y]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[an,kn,Nc]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},xE=tE(wE);function le(...e){return xE(Sy(e))}const bE=TS,Oy=p.forwardRef(({className:e,...t},n)=>h.jsx(gy,{ref:n,className:le("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}));Oy.displayName=gy.displayName;const _E=wf("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"}}),Ay=p.forwardRef(({className:e,variant:t,...n},r)=>h.jsx(vy,{ref:r,className:le(_E({variant:t}),e),...n}));Ay.displayName=vy.displayName;const SE=p.forwardRef(({className:e,...t},n)=>h.jsx(xy,{ref:n,className:le("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}));SE.displayName=xy.displayName;const Iy=p.forwardRef(({className:e,...t},n)=>h.jsx(by,{ref:n,className:le("absolute right-2 top-2 rounded-md p-1 text-foreground
135/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:h.jsx(BS,{className:"h-4 w-4"})}));Iy.displayName=by.displayName;const My=p.forwardRef(({className:e,...t},n)=>h.jsx(yy,{ref:n,className:le("text-sm font-semibold",e),...t}));My.displayName=yy.displayName;const Ly=p.forwardRef(({className:e,...t},n)=>h.jsx(wy,{ref:n,className:le("text-sm opacity-90",e),...t}));Ly.displayName=wy.displayName;function EE(){const{toasts:e}=Xv();return h.jsxs(bE,{children:[e.map(function({id:t,title:n,description:r,action:o,...s}){return h.jsxs(Ay,{...s,children:[h.jsxs("div",{className:"grid gap-1",children:[n&&h.jsx(My,{children:n}),r&&h.jsx(Ly,{children:r})]}),o,h.jsx(Iy,{})]},t)}),h.jsx(Oy,{})]})}var Rp=["light","dark"],kE="(prefers-color-scheme: dark)",CE=p.createContext(void 0),PE={setTheme:e=>{},themes:[]},TE=()=>{var e;return(e=p.useContext(CE))!=null?e:PE};p.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:o,defaultTheme:s,value:i,attrs:a,nonce:l})=>{let c=s==="system",u=n==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${a.map(x=>`'${x}'`).join(",")})`};`:`var d=document.documentElement,n='${n}',s='setAttribute';`,d=o?Rp.includes(s)&&s?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${s}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",f=(x,m=!1,b=!0)=>{let v=i?i[x]:x,g=m?x+"|| ''":`'${v}'`,w="";return o&&b&&!m&&Rp.includes(x)&&(w+=`d.style.colorScheme = '${x}';`),n==="class"?m||v?w+=`c.add(${g})`:w+="null":v&&(w+=`d[s](n,${g})`),w},y=e?`!function(){${u}${f(e)}}()`:r?`!function(){try{${u}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${c})){var t='${kE}',m=window.matchMedia(t);if(m.media!==t||m.matches){${f("dark")}}else{${f("light")}}}else if(e){${i?`var x=${JSON.stringify(i)};`:""}${f(i?"x[e]":"e",!0)}}${c?"":"else{"+f(s,!1,!1)+"}"}${d}}catch(e){}}()`:`!function(){try{${u}var e=localStorage.getItem('${t}');if(e){${i?`var x=${JSON.stringify(i)};`:""}${f(i?"x[e]":"e",!0)}}else{${f(s,!1,!1)};}${d}}catch(t){}}();`;return p.createElement("script",{nonce:l,dangerouslySetInnerHTML:{__html:y}})});var RE=e=>{switch(e){case"success":return OE;case"info":return IE;case"warning":return AE;case"error":return ME;default:return null}},NE=Array(12).fill(0),jE=({visible:e})=>M.createElement("div",{className:"sonner-loading-wrapper","data-visible":e},M.createElement("div",{className:"sonner-spinner"},NE.map((t,n)=>M.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${n}`})))),OE=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"})),AE=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"})),IE=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"})),ME=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"})),LE=()=>
135{let[e,t]=M.useState(document.hidden);return M.useEffect(()=>{let n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e},Gu=1,DE=class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;let{message:n,...r}=e,o=typeof(e==null?void 0:e.id)=="number"||((t=e.id)==null?void 0:t.length)>0?e.id:Gu++,s=this.toasts.find(a=>a.id===o),i=e.dismissible===void 0?!0:e.dismissible;return s?this.toasts=this.toasts.map(a=>a.id===o?(this.publish({...a,...e,id:o,title:n}),{...a,...e,id:o,dismissible:i,title:n}):a):this.addToast({title:n,...r,dismissible:i,id:o}),o},this.dismiss=e=>(e||this.toasts.forEach(t=>{this.subscribers.forEach(n=>n({id:t.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>
135this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));let r=e instanceof Promise?e:e(),o=n!==void 0;return r.then(async s=>{if(FE(s)&&!s.ok){o=!1;let i=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:n,type:"error",message:i,description:a})}else if(t.success!==void 0){o=!1;let i=typeof t.success=="function"?await t.success(s):t.success,a=typeof t.description=="function"?await t.description(s):t.description;this.create({id:n,type:"success",message:i,description:a})}}).catch(async s=>{if(t.error!==void 0){o=!1;let i=typeof t.error=="function"?await t.error(s):t.error,a=typeof t.description=="function"?await t.description(s):t.description;this.create({id:n,type:"error",message:i,description:a})}}).finally(()=>{var s;o&&(this.dismiss(n),n=void 0),(s=t.finally)==null||s.call(t)}),n},this.custom=(e,t)=>{let n=(t==null?void 0:t.id)||Gu++;return this.create({jsx:e(n),id:n,...t}),n},this.subscribers=[],this.toasts=[]}},ft=new DE,$E=(e,t)=>{let n=(t==null?void 0:t.id)||Gu++;return ft.addToast({title:e,...t,id:n}),n},FE=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",UE=$E,zE=()=>ft.toasts;Object.assign(UE,{success:ft.success,info:ft.info,warning:ft.warning,error:ft.error,custom:ft.custom,message:ft.message,promise:ft.promise,dismiss:ft.dismiss,loading:ft.loading},{getHistory:zE});function BE(e,{insertAt:t}={}){if(typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t==="top"&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}BE(`: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;
135left: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}
135: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%)} 136`);function Qi(e){return e.label!==void 0}var VE=3,HE="32px",WE=4e3,KE=356,GE=14,qE=20,QE=200;function YE(...e){return e.filter(Boolean).join(" ")}var JE=e=>{var t,n,r,o,s,i,a,l,c,u;let{invert:d,toast:f,unstyled:y,interacting:x,setHeights:m,visibleToasts:b,heights:v,index:g,toasts:w,expanded:_,removeToast:S,defaultRichColors:C,closeButton:E,style:P,cancelButtonStyle:A,actionButtonStyle:j,className:z="",descriptionClassName:L="",duration:H,position:O,gap:W,loadingIcon:$,expandByDefault:K,classNames:k,icons:T,closeButtonAriaLabel:D="Close toast",pauseWhenPageIsHidden:I,cn:B}
136=e,[G,re]=M.useState(!1),[Ce,q]=M.useState(!1),[V,oe]=M.useState(!1),[ie,ne]=M.useState(!1),[ce,ae]=M.useState(0),[Ge,ct]=M.useState(0),_n=M.useRef(null),bt=M.useRef(null),fr=g===0,Jl=g+1<=b,Me=f.type,Hr=f.dismissible!==!1,nb=f.className||"",rb=f.descriptionClassName||"",Pi=M.useMemo(()=>v.findIndex(Q=>Q.toastId===f.id)||0,[v,f.id]),ob=M.useMemo(()=>{var Q;return(Q=f.closeButton)!=null?Q:E},[f.closeButton,E]),ih=M.useMemo(()=>f.duration||H||WE,[f.duration,H]),Xl=M.useRef(0),Wr=M.useRef(0),ah=M.useRef(0),Kr=M.useRef(null),[lh,sb]=O.split("-"),ch=M.useMemo(()=>v.reduce((Q,ge,he)=>he>=Pi?Q:Q+ge.height,0),[v,Pi]),uh=LE(),ib=f.invert||d,Zl=Me==="loading";Wr.current=M.useMemo(()=>Pi*W+ch,[Pi,ch]),M.useEffect(()=>{re(!0)},[]),M.useLayoutEffect(()=>{if(!G)return;let Q=bt.current,ge=Q.style.height;Q.style.height="auto";let he=Q.getBoundingClientRect().height;Q.style.height=ge,ct(he),m(Wt=>Wt.find(Kt=>Kt.toastId===f.id)?Wt.map(Kt=>Kt.toastId===f.id?{...Kt,height:he}:Kt):[{toastId:f.id,height:he,position:f.position},...Wt])},[G,f.title,f.description,m,f.id]);let Sn=M.useCallback(()=>{q(!0),ae(Wr.current),m(Q=>Q.filter(ge=>ge.toastId!==f.id)),setTimeout(()=>{S(f)},QE)},[f,S,m,Wr]);M.useEffect(()=>{if(f.promise&&Me==="loading"||f.duration===1/0||f.type==="loading")return;let Q,ge=ih;return _||x||I&&uh?(()=>{if(ah.current<Xl.current){let he=new Date().getTime()-Xl.current;ge=ge-he}ah.current=new Date().getTime()})():ge!==1/0&&(Xl.current=new Date().getTime(),Q=setTimeout(()=>{var he;(he=f.onAutoClose)==null||he.call(f,f),Sn()},ge)),()=>clearTimeout(Q)},[_,x,K,f,ih,Sn,f.promise,Me,I,uh]),M.useEffect(()=>{let Q=bt.current;if(Q){let ge=Q.getBoundingClientRect().height;return ct(ge),m(he=>[{toastId:f.id,height:ge,position:f.position},...he]),()=>m(he=>he.filter(Wt=>Wt.toastId!==f.id))}},[m,f.id]),M.useEffect(()=>{f.delete&&Sn()},[Sn,f.delete]);function ab(){return T!=null&&T.loading?M.createElement("div",{className:"sonner-loader","data-visible":Me==="loading"},T.loading):$?M.createElement("div",{className:"sonner-loader","data-visible":Me==="loading"},$):M.createElement(jE,{visible:Me==="loading"})}return M.createElement("li",{"aria-live":f.important?"assertive":"polite","aria-atomic":"true",role:"status",tabIndex:0,ref:bt,className:B(z,nb,k==null?void 0:k.toast,(t=f==null?void 0:f.classNames)==null?void 0:t.toast,k==null?void 0:k.default,k==null?void 0:k[Me],(n=f==null?void 0:f.classNames)==null?void 0:n[Me]),"data-sonner-toast":"","data-rich-colors":(r=f.richColors)!=null?r:C,"data-styled":!(f.jsx||f.unstyled||y),"data-mounted":G,"data-promise":!!f.promise,"data-removed":Ce,"data-visible":Jl,"data-y-position":lh,"data-x-position":sb,"data-index":g,"data-front":fr,"data-swiping":V,"data-dismissible":Hr,"data-type":Me,"data-invert":ib,"data-swipe-out":ie,"data-expanded":!!(_||K&&G),style:{"--index":g,"--toasts-before":g,"--z-index":w.length-g,"--offset":`${Ce?ce:Wr.current}px`,"--initial-height":K?"auto":`${Ge}px`,...P,...f.style},onPointerDown:Q=>{Zl||!Hr||(_n.current=new Date,ae(Wr.current),Q.target.setPointerCapture(Q.pointerId),Q.target.tagName!=="BUTTON"&&(oe(!0),Kr.current={x:Q.clientX,y:Q.clientY}))},onPointerUp:()=>{var Q,ge,he,Wt;if(ie||!Hr)return;Kr.current=null;let Kt=Number(((Q=bt.current)==null?void 0:Q.style.getPropertyValue("--swipe-amount").replace("px",""))||0),Ti=new Date().getTime()-((ge=_n.current)==null?void 0:ge.getTime()),lb=Math.abs(Kt)/Ti;if(Math.abs(Kt)>=qE||lb>.11){ae(Wr.current),(he=f.onDismiss)==null||he.call(f,f),Sn(),ne(!0);return}(Wt=bt.current)==null||Wt.style.setProperty("--swipe-amount","0px"),oe(!1)},onPointerMove:Q=>{var ge;if(!Kr.current||!Hr)return;let he=Q.clientY-Kr.current.y,Wt=Q.clientX-Kr.current.x,Kt=(lh==="top"?Math.min:Math.max)(0,he),Ti=Q.pointerType==="touch"?10:2;Math.abs(Kt)>Ti?(ge=bt.current)==null||ge.style.setProperty("--swipe-amount",`${he}px`):Math.abs(Wt)>Ti&&(Kr.current=null)}},ob&&!f.jsx?M.createElement("button",{"aria-label":D,"data-disabled":Zl,"data-close-button":!0,onClick:Zl||!Hr?()=>{}:()=>{var Q;Sn(),(Q=f.onDismiss)==null||Q.call(f,f)},className:B(k==null?void 0:k.closeButton,(o=f==null?void 0:f.classNames)==null?void 0:o.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,f.jsx||M.isValidElement(f.title)?f.jsx||f.title:M.createElement(M.Fragment,null,Me||f.icon||f.promise?M.createElement("div",{"data-icon":"",className:B(k==null?void 0:k.icon,(s=f==null?void 0:f.classNames)==null?void 0:s.icon)},f.promise||f.type==="loading"&&!f.icon?f.icon||ab():null,f.type!=="loading"?f.icon||(T==null?void 0:T[Me])||RE(Me):null):null,M.createElement("div",{"data-content":"",className:B(k==null?void 0:k.content,(i=f==null?void 0:f.classNames)==null?void 0:i.content)},M.createElement("div",{"data-title":"",className:B(k==null?void 0:k.title,(a=f==null?void 0:f.classNames)==null?void 0:a.title)},f.title),f.description?M.createElement("div",{"data-description":"",className:B(L,rb,k==null?void 0:k.description,(l=f==null?void 0:f.classNames)==null?void 0:l.description)},f.description):null),M.isValidElement(f.cancel)?f.cancel:f.cancel&&Qi(f.cancel)?M.createElement("button",{"data-button":!0,"data-cancel":!0,style:f.cancelButtonStyle||A,onClick:Q=>{var ge,he;Qi(f.cancel)&&Hr&&((he=(ge=f.cancel).onClick)==null||he.call(ge,Q),Sn())},className:B(k==null?void 0:k.cancelButton,(c=f==null?void 0:f.classNames)==null?void 0:c.cancelButton)},f.cancel.label):null,M.isValidElement(f.action)?f.action:f.action&&Qi(f.action)?M.createElement("button",{"data-button":!0,"data-action":!0,style:f.actionButtonStyle||j,onClick:Q=>{var ge,he;Qi(f.action)&&(Q.defaultPrevented||((he=(ge=f.action).onClick)==null||he.call(ge,Q),Sn()))},className:B(k==null?void 0:k.actionButton,(u=f==null?void 0:f.classNames)==null?void 0:u.actionButton)},f.action.label):null))};function Np(){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 XE=e=>{let{invert:t,position:n="bottom-right",hotkey:r=["altKey","KeyT"],expand:o,closeButton:s,className:i,offset:a,theme:l="light",richColors:c,duration:u,style:d,visibleToasts:f=VE,toastOptions:y,dir:x=Np(),gap:m=GE,loadingIcon:b,icons:v,containerAriaLabel:g="Notifications",pauseWhenPageIsHidden:w,cn:_=YE}=e,[S,C]=M.useState([]),E=M.useMemo(()=>Array.from(new Set([n].concat(S.filter(I=>I.position).map(I=>
136I.position)))),[S,n]),[P,A]=M.useState([]),[j,z]=M.useState(!1),[L,H]=M.useState(!1),[O,W]=M.useState(l!=="system"?l:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),$=M.useRef(null),K=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),k=M.useRef(null),T=M.useRef(!1),D=M.useCallback(I=>{var B;(B=S.find(G=>G.id===I.id))!=null&&B.delete||ft.dismiss(I.id),C(G=>G.filter(({id:re})=>re!==I.id))},[S]);return M.useEffect(()=>ft.subscribe(I=>{if(I.dismiss){C(B=>B.map(G=>G.id===I.id?{...G,delete:!0}:G));return}setTimeout(()=>{Yv.flushSync(()=>{C(B=>{let G=B.findIndex(re=>re.id===I.id);return G!==-1?[...B.slice(0,G),{...B[G],...I},...B.slice(G+1)]:[I,...B]})})})}),[]),M.useEffect(()=>{if(l!=="system"){W(l);return}l==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?W("dark"):W("light")),typeof window<"u"&&window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",({matches:I})=>{W(I?"dark":"light")})},[l]),M.useEffect(()=>{S.length<=1&&z(!1)},[S]),M.useEffect(()=>{let I=B=>{var G,re;r.every(Ce=>B[Ce]||B.code===Ce)&&(z(!0),(G=$.current)==null||G.focus()),B.code==="Escape"&&(document.activeElement===$.current||(re=$.current)!=null&&re.contains(document.activeElement))&&z(!1)};return document.addEventListener("keydown",I),()=>document.removeEventListener("keydown",I)},[r]),M.useEffect(()=>{if($.current)return()=>{k.current&&(k.current.focus({preventScroll:!0}),k.current=null,T.current=!1)}},[$.current]),S.length?M.createElement("section",{"aria-label":`${g} ${K}`,tabIndex:-1},E.map((I,B)=>{var G;let[re,Ce]=I.split("-");return M.createElement("ol",{key:I,dir:x==="auto"?Np():x,tabIndex:-1,ref:$,className:i,"data-sonner-toaster":!0,"data-theme":O,"data-y-position":re,"data-x-position":Ce,style:{"--front-toast-height":`${((G=P[0])==null?void 0:G.height)||0}px`,"--offset":typeof a=="number"?`${a}px`:a||HE,"--width":`${KE}px`,"--gap":`${m}px`,...d},onBlur:q=>{T.current&&!q.currentTarget.contains(q.relatedTarget)&&(T.current=!1,k.current&&(k.current.focus({preventScroll:!0}),k.current=null))},onFocus:q=>{q.target instanceof HTMLElement&&q.target.dataset.dismissible==="false"||T.current||(T.current=!0,k.current=q.relatedTarget)},onMouseEnter:()=>z(!0),onMouseMove:()=>z(!0),onMouseLeave:()=>{L||z(!1)},onPointerDown:q=>{q.target instanceof HTMLElement&&q.target.dataset.dismissible==="false"||H(!0)},onPointerUp:()=>H(!1)},S.filter(q=>!q.position&&B===0||q.position===I).map((q,V)=>{var oe,ie;return M.createElement(JE,{key:q.id,icons:v,index:V,toast:q,defaultRichColors:c,duration:(oe=y==null?void 0:y.duration)!=null?oe:u,className:y==null?void 0:y.className,descriptionClassName:y==null?void 0:y.descriptionClassName,invert:t,visibleToasts:f,closeButton:(ie=y==null?void 0:y.closeButton)!=null?ie:s,interacting:L,position:I,style:y==null?void 0:y.style,unstyled:y==null?void 0:y.unstyled,classNames:y==null?void 0:y.classNames,cancelButtonStyle:y==null?void 0:y.cancelButtonStyle,actionButtonStyle:y==null?void 0:y.actionButtonStyle,removeToast:D,toasts:S.filter(ne=>ne.position==q.position),heights:P.filter(ne=>ne.position==q.position),setHeights:A,expandByDefault:o,gap:m,loadingIcon:b,expanded:j,pauseWhenPageIsHidden:w,cn:_})}))})):null};const ZE=({...e})=>{const{theme:t="system"}=TE();return h.jsx(XE,{theme:t,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...e})};var ek=Gm.useId||(()=>{}),tk=0;function zo(e){const[t,n]=p.useState(ek());return Ke(()=>{n(r=>r??String(tk++))},[e]),t?`radix-${t}`:""}const nk=["top","right","bottom","left"],nr=Math.min,pt=Math.max,Ga=Math.round,Yi=Math.floor,rr=e=>({x:e,y:e}),rk={left:"right",right:"left",bottom:"top",top:"bottom"},ok={start:"end",end:"start"};function qu(e,t,n){return pt(e,nr(t,n))}function wn(e,t){return typeof e=="function"?e(t):e}function xn(e){return e.split("-")[0]}function Yo(e){return e.split("-")[1]}function _f(e){return e==="x"?"y":"x"}function Sf(e){return e==="y"?"height":"width"}function or(e){return["top","bottom"].includes(xn(e))?"y":"x"}function Ef(e){return _f(or(e))}function sk(e,t,n){n===void 0&&(n=!1);const r=Yo(e),o=Ef(e),s=Sf(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=qa(i)),[i,qa(i)]}function ik(e){const t=qa(e);return[Qu(e),t,Qu(t)]}function Qu(e){return e.replace(/start|end/g,t=>ok[t])}function ak(e,t,n){const r=["left","right"],o=["right","left"],s=["top","bottom"],i=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?s:i;default:return[]}}function lk(e,t,n,r){const o=Yo(e);let s=ak(xn(e),n==="start",r);return o&&(s=s.map(i=>i+"-"+o),t&&(s=s.concat(s.map(Qu)))),s}function qa(e){return e.replace(/left|right|bottom|top/g,t=>rk[t])}function ck(e){return{top:0,right:0,bottom:0,left:0,...e}}function Dy(e){return typeof e!="number"?ck(e):{top:e,right:e,bottom:e,left:e}}function Qa(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}
vendor: 4,373 bytes, line 136
136function jp(e,t,n){let{reference:r,floating:o}=e;const s=or(t),i=Ef(t),a=Sf(i),l=xn(t),c=s==="y",u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[a]/2-o[a]/2;let y;switch(l){case"top":y={x:u,y:r.y-o.height};break;case"bottom":y={x:u,y:r.y+r.height};break;case"right":y={x:r.x+r.width,y:d};break;case"left":y={x:r.x-o.width,y:d};break;default:y={x:r.x,y:r.y}}switch(Yo(t)){case"start":y[i]-=f*(n&&c?-1:1);break;case"end":y[i]+=f*(n&&c?-1:1);break}return y}const uk=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:i}=n,a=s.filter(Boolean),l=await(i.isRTL==null?void 0:i.isRTL(t));let c=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=jp(c,r,l),f=r,y={},x=0;for(let m=0;m<a.length;m++){const{name:b,fn:v}=a[m],{x:g,y:w,data:_,reset:S}=await v({x:u,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:y,rects:c,platform:i,elements:{reference:e,floating:t}});u=g??u,d=w??d,y={...y,[b]:{...y[b],..._}},S&&x<=50&&(x++,typeof S=="object"&&(S.placement&&(f=S.placement),S.rects&&(c=S.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):S.rects),{x:u,y:d}=jp(c,f,l)),m=-1)}return{x:u,y:d,placement:f,strategy:o,middlewareData:y}};async function Xs(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:s,rects:i,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:y=0}=wn(t,e),x=Dy(y),b=a[f?d==="floating"?"reference":"floating":d],v=Qa(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(b)))==null||n?b:b.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),g=d==="floating"?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,w=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),_=await(s.isElement==null?void 0:s.isElement(w))?await(s.getScale==null?void 0:s.getScale(w))||{x:1,y:1}:{x:1,y:1},S=Qa(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:g,offsetParent:w,strategy:l}):g);return{top:(v.top-S.top+x.top)/_.y,bottom:(S.bottom-v.bottom+x.bottom)/_.y,left:(v.left-S.left+x.left)/_.x,right:(S.right-v.right+x.right)/_.x}}const dk=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:i,elements:a,middlewareData:l}=t,{element:c,padding:u=0}=wn(e,t)||{};if(c==null)return{};const d=Dy(u),f={x:n,y:r},y=Ef(o),x=Sf(y),m=await i.getDimensions(c),b=y==="y",v=b?"top":"left",g=b?"bottom":"right",w=b?"clientHeight":"clientWidth",_=s.reference[x]+s.reference[y]-f[y]-s.floating[x],S=f[y]-s.reference[y],C=await(i.getOffsetParent==null?void 0:i.getOffsetParent(c));let E=C?C[w]:0;(!E||!await(i.isElement==null?void 0:i.isElement(C)))&&(E=a.floating[w]||s.floating[x]);const P=_/2-S/2,A=E/2-m[x]/2-1,j=nr(d[v],A),z=nr(d[g],A),L=j,H=E-m[x]-z,O=E/2-m[x]/2+P,W=qu(L,O,H),$=!l.arrow&&Yo(o)!=null&&O!==W&&s.reference[x]/2-(O<L?j:z)-m[x]/2<0,K=$?O<L?O-L:O-H:0;return{[y]:f[y]+K,data:{[y]:W,centerOffset:O-W-K,...$&&{alignmentOffset:K}},reset:$}}}),fk=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:s,rects:i,initialPlacement:a,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:y="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:m=!0,...b}=wn(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const v=xn(o),g=or(a),w=xn(a)===a,_=await(l.isRTL==null?void 0:l.isRTL(c.floating)),S=f||(w||!m?[qa(a)]:ik(a)),C=x!=="none";!f&&C&&S.push(...lk(a,m,x,_));const E=[a,...S],P=await Xs(t,b),A=[];let j=((r=s.flip)==null?void 0:r.overflows)||[];if(u&&A.push(P[v]),d){const O=sk(o,i,_);A.push(P[O[0]],P[O[1]])}if(j=[...j,{placement:o,overflows:A}],!A.every(O=>O<=0)){var z,L;const O=(((z=s.flip)==null?void 0:z.index)||0)+1,W=E[O];if(W)return{data:{index:O,overflows:j},reset:{placement:W}};let $=(L=j.filter(K=>K.overflows[0]<=0).sort((K,k)=>K.overflows[1]-k.overflows[1])[0])==null?void 0:L.placement;if(!$)switch(y){case"bestFit":{var H;const K=(H=j.filter(k=>{if(C){const T=or(k.placement);return T===g||T==="y"}return!0}).map(k=>[k.placement,k.overflows.filter(T=>T>0).reduce((T,D)=>T+D,0)]).sort((k,T)=>k[1]-T[1])[0])==null?void 0:H[0];
vendor: 4,428 bytes, line 136
136K&&($=K);break}case"initialPlacement":$=a;break}if(o!==$)return{reset:{placement:$}}}return{}}}};function Op(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ap(e){return nk.some(t=>e[t]>=0)}const hk=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=wn(e,t);switch(r){case"referenceHidden":{const s=await Xs(t,{...o,elementContext:"reference"}),i=Op(s,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:Ap(i)}}}case"escaped":{const s=await Xs(t,{...o,altBoundary:!0}),i=Op(s,n.floating);return{data:{escapedOffsets:i,escaped:Ap(i)}}}default:return{}}}}};async function pk(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),i=xn(n),a=Yo(n),l=or(n)==="y",c=["left","top"].includes(i)?-1:1,u=s&&l?-1:1,d=wn(t,e);let{mainAxis:f,crossAxis:y,alignmentAxis:x}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&typeof x=="number"&&(y=a==="end"?x*-1:x),l?{x:y*u,y:f*c}:{x:f*c,y:y*u}}const mk=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:i,middlewareData:a}=t,l=await pk(t,e);return i===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:s+l.y,data:{...l,placement:i}}}}},gk=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:s=!0,crossAxis:i=!1,limiter:a={fn:b=>{let{x:v,y:g}=b;return{x:v,y:g}}},...l}=wn(e,t),c={x:n,y:r},u=await Xs(t,l),d=or(xn(o)),f=_f(d);let y=c[f],x=c[d];if(s){const b=f==="y"?"top":"left",v=f==="y"?"bottom":"right",g=y+u[b],w=y-u[v];y=qu(g,y,w)}if(i){const b=d==="y"?"top":"left",v=d==="y"?"bottom":"right",g=x+u[b],w=x-u[v];x=qu(g,x,w)}const m=a.fn({...t,[f]:y,[d]:x});return{...m,data:{x:m.x-n,y:m.y-r,enabled:{[f]:s,[d]:i}}}}}},vk=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:i}=t,{offset:a=0,mainAxis:l=!0,crossAxis:c=!0}=wn(e,t),u={x:n,y:r},d=or(o),f=_f(d);let y=u[f],x=u[d];const m=wn(a,t),b=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){const w=f==="y"?"height":"width",_=s.reference[f]-s.floating[w]+b.mainAxis,S=s.reference[f]+s.reference[w]-b.mainAxis;y<_?y=_:y>S&&(y=S)}if(c){var v,g;const w=f==="y"?"width":"height",_=["top","left"].includes(xn(o)),S=s.reference[d]-s.floating[w]+(_&&((v=i.offset)==null?void 0:v[d])||0)+(_?0:b.crossAxis),C=s.reference[d]+s.reference[w]+(_?0:((g=i.offset)==null?void 0:g[d])||0)-(_?b.crossAxis:0);x<S?x=S:x>C&&(x=C)}return{[f]:y,[d]:x}}}},yk=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:s,platform:i,elements:a}=t,{apply:l=()=>{},...c}=wn(e,t),u=await Xs(t,c),d=xn(o),f=Yo(o),y=or(o)==="y",{width:x,height:m}=s.floating;let b,v;d==="top"||d==="bottom"?(b=d,v=f===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(v=d,b=f==="end"?"top":"bottom");const g=m-u.top-u.bottom,w=x-u.left-u.right,_=nr(m-u[b],g),S=nr(x-u[v],w),C=!t.middlewareData.shift;let E=_,P=S;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(P=w),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(E=g),C&&!f){const j=pt(u.left,0),z=pt(u.right,0),L=pt(u.top,0),H=pt(u.bottom,0);y?P=x-2*(j!==0||z!==0?j+z:pt(u.left,u.right)):E=m-2*(L!==0||H!==0?L+H:pt(u.top,u.bottom))}await l({...t,availableWidth:P,availableHeight:E});const A=await i.getDimensions(a.floating);return x!==A.width||m!==A.height?{reset:{rects:!0}}:{}}}};function Cl(){return typeof window<"u"}function Jo(e){return $y(e)?(e.nodeName||"").toLowerCase():"#document"}function vt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function on(e){var t;return(t=($y(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function $y(e){return Cl()?e instanceof Node||e instanceof vt(e).Node:!1}function Vt(e){return Cl()?e instanceof Element||e instanceof vt(e).Element:!1}function rn(e){return Cl()?e instanceof HTMLElement||e instanceof vt(e).HTMLElement:!1}function Ip(e){return!Cl()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof vt(e).ShadowRoot}function vi(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Ht(e);
vendor: 8,581 bytes, line 136
136return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function wk(e){return["table","td","th"].includes(Jo(e))}function Pl(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function kf(e){const t=Cf(),n=Vt(e)?Ht(e):e;return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function xk(e){let t=sr(e);for(;rn(t)&&!Bo(t);){if(kf(t))return t;if(Pl(t))return null;t=sr(t)}return null}function Cf(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Bo(e){return["html","body","#document"].includes(Jo(e))}function Ht(e){return vt(e).getComputedStyle(e)}function Tl(e){return Vt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function sr(e){if(Jo(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Ip(e)&&e.host||on(e);return Ip(t)?t.host:t}function Fy(e){const t=sr(e);return Bo(t)?e.ownerDocument?e.ownerDocument.body:e.body:rn(t)&&vi(t)?t:Fy(t)}function Zs(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Fy(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),i=vt(o);if(s){const a=Yu(i);return t.concat(i,i.visualViewport||[],vi(o)?o:[],a&&n?Zs(a):[])}return t.concat(o,Zs(o,[],n))}function Yu(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Uy(e){const t=Ht(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=rn(e),s=o?e.offsetWidth:n,i=o?e.offsetHeight:r,a=Ga(n)!==s||Ga(r)!==i;return a&&(n=s,r=i),{width:n,height:r,$:a}}function Pf(e){return Vt(e)?e:e.contextElement}function _o(e){const t=Pf(e);if(!rn(t))return rr(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=Uy(t);let i=(s?Ga(n.width):n.width)/r,a=(s?Ga(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!a||!Number.isFinite(a))&&(a=1),{x:i,y:a}}const bk=rr(0);function zy(e){const t=vt(e);return!Cf()||!t.visualViewport?bk:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function _k(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==vt(e)?!1:t}function Ar(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=Pf(e);let i=rr(1);t&&(r?Vt(r)&&(i=_o(r)):i=_o(e));const a=_k(s,n,r)?zy(s):rr(0);let l=(o.left+a.x)/i.x,c=(o.top+a.y)/i.y,u=o.width/i.x,d=o.height/i.y;if(s){const f=vt(s),y=r&&Vt(r)?vt(r):r;let x=f,m=Yu(x);for(;m&&r&&y!==x;){const b=_o(m),v=m.getBoundingClientRect(),g=Ht(m),w=v.left+(m.clientLeft+parseFloat(g.paddingLeft))*b.x,_=v.top+(m.clientTop+parseFloat(g.paddingTop))*b.y;l*=b.x,c*=b.y,u*=b.x,d*=b.y,l+=w,c+=_,x=vt(m),m=Yu(x)}}return Qa({width:u,height:d,x:l,y:c})}function Sk(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",i=on(r),a=t?Pl(t.floating):!1;if(r===i||a&&s)return n;let l={scrollLeft:0,scrollTop:0},c=rr(1);const u=rr(0),d=rn(r);if((d||!d&&!s)&&((Jo(r)!=="body"||vi(i))&&(l=Tl(r)),rn(r))){const f=Ar(r);c=_o(r),u.x=f.x+r.clientLeft,u.y=f.y+r.clientTop}return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x,y:n.y*c.y-l.scrollTop*c.y+u.y}}function Ek(e){return Array.from(e.getClientRects())}function Ju(e,t){const n=Tl(e).scrollLeft;return t?t.left+n:Ar(on(e)).left+n}function kk(e){const t=on(e),n=Tl(e),r=e.ownerDocument.body,o=pt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=pt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+Ju(e);const a=-n.scrollTop;return Ht(r).direction==="rtl"&&(i+=pt(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:i,y:a}}function Ck(e,t){const n=vt(e),r=on(e),o=n.visualViewport;let s=r.clientWidth,i=r.clientHeight,a=0,l=0;if(o){s=o.width,i=o.height;const c=Cf();(!c||c&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:s,height:i,x:a,y:l}}function Pk(e,t){const n=Ar(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=rn(e)?_o(e):rr(1),i=e.clientWidth*s.x,a=e.clientHeight*s.y,l=o*s.x,c=r*s.y;return{width:i,height:a,x:l,y:c}}function Mp(e,t,n){let r;if(t==="viewport")r=Ck(e,n);else if(t==="document")r=kk(on(e));else if(Vt(t))r=Pk(t,n);else{const o=zy(e);r={...t,x:t.x-o.x,y:t.y-o.y}}return Qa(r)}function By(e,t){const n=sr(e);return n===t||!Vt(n)||Bo(n)?!1:Ht(n).position==="fixed"||By(n,t)}function Tk(e,t){const n=t.get(e);if(n)return n;let r=Zs(e,[],!1).filter(a=>Vt(a)&&Jo(a)!=="body"),o=null;const s=Ht(e).position==="fixed";let i=s?sr(e):e;for(;Vt(i)&&!Bo(i);){const a=Ht(i),l=kf(i);!l&&a.position==="fixed"&&(o=null),(s?!l&&!o:!l&&a.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||vi(i)&&!l&&By(e,i))?r=r.filter(u=>u!==i):o=a,i=sr(i)}return t.set(e,r),r}function Rk(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?Pl(t)?[]:Tk(t,this._c):[].concat(n),r],a=i[0],l=i.reduce((c,u)=>{const d=Mp(t,u,o);return c.top=pt(d.top,c.top),c.right=nr(d.right,c.right),c.bottom=nr(d.bottom,c.bottom),c.left=pt(d.left,c.left),c},Mp(t,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function Nk(e){const{width:t,height:n}=Uy(e);return{width:t,height:n}}function jk(e,t,n){const r=rn(t),o=on(t),s=n==="fixed",i=Ar(e,!0,s,t);let a={scrollLeft:0,scrollTop:0};const l=rr(0);if(r||!r&&!s)if((Jo(t)!=="body"||vi(o))&&(a=Tl(t)),r){const y=Ar(t,!0,s,t);l.x=y.x+t.clientLeft,l.y=y.y+t.clientTop}else o&&(l.x=Ju(o));let c=0,u=0;if(o&&!r&&!s){const y=o.getBoundingClientRect();u=y.top+a.scrollTop,c=y.left+a.scrollLeft-Ju(o,y)}const d=i.left+a.scrollLeft-l.x-c,f=i.top+a.scrollTop-l.y-u;return{x:d,y:f,width:i.width,height:i.height}}function jc(e){return Ht(e).position==="static"}function Lp(e,t){if(!rn(e)||Ht(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return on(e)===n&&(n=n.ownerDocument.body),n}function Vy(e,t){const n=vt(e);if(Pl(e))return n;if(!rn(e)){let o=sr(e);for(;o&&!Bo(o);){if(Vt(o)&&!jc(o))return o;o=sr(o)}return n}let r=Lp(e,t);for(;r&&wk(r)&&jc(r);)r=Lp(r,t);return r&&Bo(r)&&jc(r)&&!kf(r)?n:r||xk(e)||n}const Ok=async function(e){const t=this.getOffsetParent||Vy,n=this.getDimensions,r=await n(e.floating);return{reference:jk(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Ak(e){return Ht(e).direction==="rtl"}const Ik={convertOffsetParentRelativeRectToViewportRelativeRect:Sk,getDocumentElement:on,getClippingRect:Rk,getOffsetParent:Vy,getElementRects:Ok,getClientRects:Ek,getDimensions:Nk,getScale:_o,isElement:Vt,isRTL:Ak};function Mk(e,t){let n=null,r;const o=on(e);function s(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function i(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),s();const{left:c,top:u,width:d,height:f}=e.getBoundingClientRect();if(a||t(),!d||!f)return;const y=Yi(u),x=Yi(o.clientWidth-(c+d)),m=Yi(o.clientHeight-(u+f)),b=Yi(c),g={rootMargin:-y+"px "+-x+"px "+-m+"px "+-b+"px",threshold:pt(0,nr(1,l))||1};let w=!0;function _(S){const C=S[0].intersectionRatio;if(C!==l){if(!w)return i();C?i(!1,C):r=setTimeout(()=>{i(!1,1e-7)},1e3)}w=!1}try{n=new IntersectionObserver(_,{...g,root:o.ownerDocument})}catch{n=new IntersectionObserver(_,g)}n.observe(e)}return i(!0),s}function Lk(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=Pf(e),u=o||s?[...c?Zs(c):[],...Zs(t)]:[];u.forEach(v=>{o&&v.addEventListener("scroll",n,{passive:!0}),s&&v.addEventListener("resize",n)});const d=c&&a?Mk(c,n):null;let f=-1,y=null;i&&(y=new ResizeObserver(v=>{let[g]=v;g&&g.target===c&&y&&(y.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var w;(w=y)==null||w.observe(t)})),n()}),c&&!l&&y.observe(c),y.observe(t));let x,m=l?Ar(e):null;l&&b();function b(){const v=Ar(e);m&&(v.x!==m.x||v.y!==m.y||v.width!==m.width||v.height!==m.height)&&n(),m=v,x=requestAnimationFrame(b)}return n(),()=>{var v;u.forEach(g=>{o&&g.removeEventListener("scroll",n),s&&g.removeEventListener("resize",n)}),d==null||d(),(v=y)==null||v.disconnect(),y=null,l&&cancelAnimationFrame(x)}}const Dk=mk,$k=gk,Fk=fk,Uk=yk,zk=hk,Dp=dk,Bk=vk,Vk=(e,t,n)=>{const r=new Map,o={platform:Ik,...n},s={...o.platform,_c:r};return uk(e,t,{...o,platform:s})};var xa=typeof document<"u"?p.useLayoutEffect:p.useEffect;function Ya(e,t){if(e===t)return!0;
vendor: 9,575 bytes, line 136
136if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Ya(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const s=o[r];if(!(s==="_owner"&&e.$$typeof)&&!Ya(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function Hy(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function $p(e,t){const n=Hy(e);return Math.round(t*n)/n}function Oc(e){const t=p.useRef(e);return xa(()=>{t.current=e}),t}function Hk(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:i}={},transform:a=!0,whileElementsMounted:l,open:c}=e,[u,d]=p.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,y]=p.useState(r);Ya(f,r)||y(r);const[x,m]=p.useState(null),[b,v]=p.useState(null),g=p.useCallback(k=>{k!==C.current&&(C.current=k,m(k))},[]),w=p.useCallback(k=>{k!==E.current&&(E.current=k,v(k))},[]),_=s||x,S=i||b,C=p.useRef(null),E=p.useRef(null),P=p.useRef(u),A=l!=null,j=Oc(l),z=Oc(o),L=Oc(c),H=p.useCallback(()=>{if(!C.current||!E.current)return;const k={placement:t,strategy:n,middleware:f};z.current&&(k.platform=z.current),Vk(C.current,E.current,k).then(T=>{const D={...T,isPositioned:L.current!==!1};O.current&&!Ya(P.current,D)&&(P.current=D,Dr.flushSync(()=>{d(D)}))})},[f,t,n,z,L]);xa(()=>{c===!1&&P.current.isPositioned&&(P.current.isPositioned=!1,d(k=>({...k,isPositioned:!1})))},[c]);const O=p.useRef(!1);xa(()=>(O.current=!0,()=>{O.current=!1}),[]),xa(()=>{if(_&&(C.current=_),S&&(E.current=S),_&&S){if(j.current)return j.current(_,S,H);H()}},[_,S,H,j,A]);const W=p.useMemo(()=>({reference:C,floating:E,setReference:g,setFloating:w}),[g,w]),$=p.useMemo(()=>({reference:_,floating:S}),[_,S]),K=p.useMemo(()=>{const k={position:n,left:0,top:0};if(!$.floating)return k;const T=$p($.floating,u.x),D=$p($.floating,u.y);return a?{...k,transform:"translate("+T+"px, "+D+"px)",...Hy($.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:T,top:D}},[n,a,$.floating,u.x,u.y]);return p.useMemo(()=>({...u,update:H,refs:W,elements:$,floatingStyles:K}),[u,H,W,$,K])}const Wk=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Dp({element:r.current,padding:o}).fn(n):{}:r?Dp({element:r,padding:o}).fn(n):{}}}},Kk=(e,t)=>({...Dk(e),options:[e,t]}),Gk=(e,t)=>({...$k(e),options:[e,t]}),qk=(e,t)=>({...Bk(e),options:[e,t]}),Qk=(e,t)=>({...Fk(e),options:[e,t]}),Yk=(e,t)=>({...Uk(e),options:[e,t]}),Jk=(e,t)=>({...zk(e),options:[e,t]}),Xk=(e,t)=>({...Wk(e),options:[e,t]});var Zk="Arrow",Wy=p.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return h.jsx(te.svg,{...s,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:h.jsx("polygon",{points:"0,0 30,0 15,10"})})});Wy.displayName=Zk;var eC=Wy;function tC(e,t=[]){let n=[];function r(s,i){const a=p.createContext(i),l=n.length;n=[...n,i];function c(d){const{scope:f,children:y,...x}=d,m=(f==null?void 0:f[e][l])||a,b=p.useMemo(()=>x,Object.values(x));return h.jsx(m.Provider,{value:b,children:y})}function u(d,f){const y=(f==null?void 0:f[e][l])||a,x=p.useContext(y);if(x)return x;if(i!==void 0)return i;throw new Error(`\`${d}\` must be used within \`${s}\``)}return c.displayName=s+"Provider",[c,u]}const o=()=>{const s=n.map(i=>p.createContext(i));return function(a){const l=(a==null?void 0:a[e])||s;return p.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return o.scopeName=e,[r,nC(o,...t)]}function nC(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const i=r.reduce((a,{useScope:l,scopeName:c})=>{const d=l(s)[`__scope${c}`];return{...a,...d}},{});return p.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function rC(e){const[t,n]=p.useState(void 0);return Ke(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];let i,a;if("borderBoxSize"in s){const l=s.borderBoxSize,c=Array.isArray(l)?l[0]:l;i=c.inlineSize,a=c.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Tf="Popper",[Ky,Xo]=tC(Tf),[oC,Gy]=Ky(Tf),qy=e=>{const{__scopePopper:t,children:n}=e,[r,o]=p.useState(null);return h.jsx(oC,{scope:t,anchor:r,onAnchorChange:o,children:n})};qy.displayName=Tf;var Qy="PopperAnchor",Yy=p.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=Gy(Qy,n),i=p.useRef(null),a=fe(t,i);return p.useEffect(()=>{s.onAnchorChange((r==null?void 0:r.current)||i.current)}),r?null:h.jsx(te.div,{...o,ref:a})});Yy.displayName=Qy;var Rf="PopperContent",[sC,iC]=Ky(Rf),Jy=p.forwardRef((e,t)=>{var V,oe,ie,ne,ce,ae;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:s="center",alignOffset:i=0,arrowPadding:a=0,avoidCollisions:l=!0,collisionBoundary:c=[],collisionPadding:u=0,sticky:d="partial",hideWhenDetached:f=!1,updatePositionStrategy:y="optimized",onPlaced:x,...m}=e,b=Gy(Rf,n),[v,g]=p.useState(null),w=fe(t,Ge=>g(Ge)),[_,S]=p.useState(null),C=rC(_),E=(C==null?void 0:C.width)??0,P=(C==null?void 0:C.height)??0,A=r+(s!=="center"?"-"+s:""),j=typeof u=="number"?u:{top:0,right:0,bottom:0,left:0,...u},z=Array.isArray(c)?c:[c],L=z.length>0,H={padding:j,boundary:z.filter(lC),altBoundary:L},{refs:O,floatingStyles:W,placement:$,isPositioned:K,middlewareData:k}=Hk({strategy:"fixed",placement:A,whileElementsMounted:(...Ge)=>Lk(...Ge,{animationFrame:y==="always"}),elements:{reference:b.anchor},middleware:[Kk({mainAxis:o+P,alignmentAxis:i}),l&&Gk({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?qk():void 0,...H}),l&&Qk({...H}),Yk({...H,apply:({elements:Ge,rects:ct,availableWidth:_n,availableHeight:bt})=>{const{width:fr,height:Jl}=ct.reference,Me=Ge.floating.style;Me.setProperty("--radix-popper-available-width",`${_n}px`),Me.setProperty("--radix-popper-available-height",`${bt}px`),Me.setProperty("--radix-popper-anchor-width",`${fr}px`),Me.setProperty("--radix-popper-anchor-height",`${Jl}px`)}}),_&&Xk({element:_,padding:a}),cC({arrowWidth:E,arrowHeight:P}),f&&Jk({strategy:"referenceHidden",...H})]}),[T,D]=e0($),I=We(x);Ke(()=>{K&&(I==null||I())},[K,I]);const B=(V=k.arrow)==null?void 0:V.x,G=(oe=k.arrow)==null?void 0:oe.y,re=((ie=k.arrow)==null?void 0:ie.centerOffset)!==0,[Ce,q]=p.useState();return Ke(()=>{v&&q(window.getComputedStyle(v).zIndex)},[v]),h.jsx("div",{ref:O.setFloating,"data-radix-popper-content-wrapper":"",style:{...W,transform:K?W.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Ce,"--radix-popper-transform-origin":[(ne=k.transformOrigin)==null?void 0:ne.x,(ce=k.transformOrigin)==null?void 0:ce.y].join(" "),...((ae=k.hide)==null?void 0:ae.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:h.jsx(sC,{scope:n,placedSide:T,onArrowChange:S,arrowX:B,arrowY:G,shouldHideArrow:re,children:h.jsx(te.div,{"data-side":T,"data-align":D,...m,ref:w,style:{...m.style,animation:K?void 0:"none"}})})})});Jy.displayName=Rf;var Xy="PopperArrow",aC={top:"bottom",right:"left",bottom:"top",left:"right"},Zy=p.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=iC(Xy,r),i=aC[s.placedSide];return h.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:h.jsx(eC,{...o,ref:n,style:{...o.style,display:"block"}})})});Zy.displayName=Xy;function lC(e){return e!==null}var cC=e=>({name:"transformOrigin",options:e,fn(t){var b,v,g;const{placement:n,rects:r,middlewareData:o}=t,i=((b=o.arrow)==null?void 0:b.centerOffset)!==0,a=i?0:e.arrowWidth,l=i?0:e.arrowHeight,[c,u]=e0(n),d={start:"0%",center:"50%",end:"100%"}[u],f=(((v=o.arrow)==null?void 0:v.x)??0)+a/2,y=(((g=o.arrow)==null?void 0:g.y)??0)+l/2;let x="",m="";return c==="bottom"?(x=i?d:`${f}px`,m=`${-l}px`):c==="top"?(x=i?d:`${f}px`,m=`${r.floating.height+l}px`):c==="right"?(x=`${-l}px`,m=i?d:`${y}px`):c==="left"&&(x=`${r.floating.width+l}px`,m=i?d:`${y}px`),{data:{x,y:m}}}});function e0(e){const[t,n="center"]=e.split("-");return[t,n]}var t0=qy,Nf=Yy,jf=Jy,Of=Zy,[Rl,HO]=pi("Tooltip",[Xo]),Af=Xo(),n0="TooltipProvider",uC=700,Fp="tooltip.open",[dC,r0]=Rl(n0),o0=e=>{const{__scopeTooltip:t,delayDuration:n=uC,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:s}=e,[i,a]=p.useState(!0),l=p.useRef(!1),c=p.useRef(0);return p.useEffect(()=>{const u=c.current;return()=>window.clearTimeout(u)},[]),h.jsx(dC,{scope:t,isOpenDelayed:i,delayDuration:n,onOpen:p.useCallback(()=>{window.clearTimeout(c.current),a(!1)},[]),onClose:p.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>a(!0),r)},[r]),isPointerInTransitRef:l,onPointerInTransitChange:p.useCallback(u=>{l.current=u},[]),disableHoverableContent:o,children:s})};o0.displayName=n0;var s0="Tooltip",[WO,Nl]=Rl(s0),Xu="TooltipTrigger",fC=p.forwardRef((e,t)=>
vendor: 5,547 bytes, line 136
136{const{__scopeTooltip:n,...r}=e,o=Nl(Xu,n),s=r0(Xu,n),i=Af(n),a=p.useRef(null),l=fe(t,a,o.onTriggerChange),c=p.useRef(!1),u=p.useRef(!1),d=p.useCallback(()=>c.current=!1,[]);return p.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),h.jsx(Nf,{asChild:!0,...i,children:h.jsx(te.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:l,onPointerMove:F(e.onPointerMove,f=>{f.pointerType!=="touch"&&!u.current&&!s.isPointerInTransitRef.current&&(o.onTriggerEnter(),u.current=!0)}),onPointerLeave:F(e.onPointerLeave,()=>{o.onTriggerLeave(),u.current=!1}),onPointerDown:F(e.onPointerDown,()=>{c.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:F(e.onFocus,()=>{c.current||o.onOpen()}),onBlur:F(e.onBlur,o.onClose),onClick:F(e.onClick,o.onClose)})})});fC.displayName=Xu;var hC="TooltipPortal",[KO,pC]=Rl(hC,{forceMount:void 0}),Vo="TooltipContent",i0=p.forwardRef((e,t)=>{const n=pC(Vo,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...s}=e,i=Nl(Vo,e.__scopeTooltip);return h.jsx($r,{present:r||i.open,children:i.disableHoverableContent?h.jsx(a0,{side:o,...s,ref:t}):h.jsx(mC,{side:o,...s,ref:t})})}),mC=p.forwardRef((e,t)=>{const n=Nl(Vo,e.__scopeTooltip),r=r0(Vo,e.__scopeTooltip),o=p.useRef(null),s=fe(t,o),[i,a]=p.useState(null),{trigger:l,onClose:c}=n,u=o.current,{onPointerInTransitChange:d}=r,f=p.useCallback(()=>{a(null),d(!1)},[d]),y=p.useCallback((x,m)=>{const b=x.currentTarget,v={x:x.clientX,y:x.clientY},g=wC(v,b.getBoundingClientRect()),w=xC(v,g),_=bC(m.getBoundingClientRect()),S=SC([...w,..._]);a(S),d(!0)},[d]);return p.useEffect(()=>()=>f(),[f]),p.useEffect(()=>{if(l&&u){const x=b=>y(b,u),m=b=>y(b,l);return l.addEventListener("pointerleave",x),u.addEventListener("pointerleave",m),()=>{l.removeEventListener("pointerleave",x),u.removeEventListener("pointerleave",m)}}},[l,u,y,f]),p.useEffect(()=>{if(i){const x=m=>{const b=m.target,v={x:m.clientX,y:m.clientY},g=(l==null?void 0:l.contains(b))||(u==null?void 0:u.contains(b)),w=!_C(v,i);g?f():w&&(f(),c())};return document.addEventListener("pointermove",x),()=>document.removeEventListener("pointermove",x)}},[l,u,i,c,f]),h.jsx(a0,{...e,ref:s})}),[gC,vC]=Rl(s0,{isInside:!1}),a0=p.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:s,onPointerDownOutside:i,...a}=e,l=Nl(Vo,n),c=Af(n),{onClose:u}=l;return p.useEffect(()=>(document.addEventListener(Fp,u),()=>document.removeEventListener(Fp,u)),[u]),p.useEffect(()=>{if(l.trigger){const d=f=>{const y=f.target;y!=null&&y.contains(l.trigger)&&u()};return window.addEventListener("scroll",d,{capture:!0}),()=>window.removeEventListener("scroll",d,{capture:!0})}},[l.trigger,u]),h.jsx(mi,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:d=>d.preventDefault(),onDismiss:u,children:h.jsxs(jf,{"data-state":l.stateAttribute,...c,...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:[h.jsx(Zv,{children:r}),h.jsx(gC,{scope:n,isInside:!0,children:h.jsx(uS,{id:l.contentId,role:"tooltip",children:o||r})})]})})});i0.displayName=Vo;var l0="TooltipArrow",yC=p.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Af(n);return vC(l0,n).isInside?null:h.jsx(Of,{...o,...r,ref:t})});yC.displayName=l0;function wC(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(n,r,o,s)){case s:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function xC(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function bC(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function _C(e,t){const{x:n,y:r}=e;let o=!1;for(let s=0,i=t.length-1;s<t.length;i=s++){const a=t[s].x,l=t[s].y,c=t[i].x,u=t[i].y;l>r!=u>r&&n<(c-a)*(r-l)/(u-l)+a&&(o=!o)}return o}function SC(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),EC(t)}function EC(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const s=t[t.length-1],i=t[t.length-2];if((s.x-i.x)*(o.y-i.y)>=(s.y-i.y)*(o.x-i.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const s=n[n.length-1],i=n[n.length-2];if((s.x-i.x)*(o.y-i.y)>=(s.y-i.y)*(o.x-i.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var kC=o0,c0=i0;const CC=kC,PC=p.forwardRef(({className:e,sideOffset:t=4,...n},r)=>h.jsx(c0,{ref:r,sideOffset:t,className:le("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]:sli
136de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n}));PC.displayName=c0.displayName;var jl=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(){}},Ol=typeof window>"u"||"Deno"in globalThis;function Mt(){}function TC(e,t){return typeof e=="function"?e(t):e}function RC(e){return typeof e=="number"&&e>=0&&e!==1/0}function NC(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Up(e,t){return typeof e=="function"?e(t):e}function jC(e,t){return typeof e=="function"?e(t):e}function zp(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:s,queryKey:i,stale:a}=e;if(i){if(r){if(t.queryHash!==If(i,t.options))return!1}else if(!ti(t.queryKey,i))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||o&&o!==t.state.fetchStatus||s&&!s(t))}function Bp(e,t){const{exact:n,status:r,predicate:o,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(n){if(ei(t.options.mutationKey)!==ei(s))return!1}else if(!ti(t.options.mutationKey,s))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function If(e,t){return((t==null?void 0:t.queryKeyHashFn)||ei)(e)}function ei(e){return JSON.stringify(e,(t,n)=>Zu(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function ti(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!ti(e[n],t[n])):!1}function u0(e,t){if(e===t)return e;const n=Vp(e)&&Vp(t);if(n||Zu(e)&&Zu(t)){const r=n?e:Object.keys(e),o=r.length,s=n?t:Object.keys(t),i=s.length,a=n?[]:{};let l=0;for(let c=0;c<i;c++){const u=n?c:s[c];(!n&&r.includes(u)||n)&&e[u]===void 0&&t[u]===void 0?(a[u]=void 0,l++):(a[u]=u0(e[u],t[u]),a[u]===e[u]&&e[u]!==void 0&&l++)}return o===i&&l===o?e:a}return t}function Vp(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Zu(e){if(!Hp(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!Hp(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Hp(e){return Object.prototype.toString.call(e)==="[object Object]"}function OC(e){return new Promise(t=>{setTimeout(t,e)})}function AC(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?u0(e,t):t}function IC(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function MC(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Mf=Symbol();function d0(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Mf?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var br,Dn,ko,Tm,LC=(Tm=class extends jl{constructor(){super();ue(this,br);ue(this,Dn);ue(this,ko);X(this,ko,t=>{if(!Ol&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){R(this,Dn)||this.setEventListener(R(this,ko))}onUnsubscribe(){var t;this.hasListeners()||((t=R(this,Dn))==null||t.call(this),X(this,Dn,void 0))}setEventListener(t){var n;X(this,ko,t),(n=R(this,Dn))==null||n.call(this),X(this,Dn,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){R(this,br)!==t&&(X(this,br,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof R(this,br)=="boolean"?R(this,br):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},br=new WeakMap,Dn=new WeakMap,ko=new WeakMap,Tm),f0=new LC,Co,$n,Po,Rm,DC=(Rm=class extends jl{constructor(){super();ue(this,Co,!0);ue(this,$n);ue(this,Po);X(this,Po,t=>{if(!Ol&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){R(this,$n)||this.setEventListener(R(this,Po))}onUnsubscribe(){var t;this.hasListeners()||((t=R(this,$n))==null||t.call(this),X(this,$n,void 0))}setEventListener(t){var n;X(this,Po,t),(n=R(this,$n))==null||n.call(this),X(this,$n,t(this.setOnline.bind(this)))}setOnline(t){R(this,Co)!==t&&(X(this,Co,t),this.listeners.forEac
vendor: 18,098 bytes, line 136
136h(r=>{r(t)}))}isOnline(){return R(this,Co)}},Co=new WeakMap,$n=new WeakMap,Po=new WeakMap,Rm),Ja=new DC;function $C(){let e,t;const n=new Promise((o,s)=>{e=o,t=s});n.status="pending",n.catch(()=>{});function r(o){Object.assign(n,o),delete n.resolve,delete n.reject}return n.resolve=o=>{r({status:"fulfilled",value:o}),e(o)},n.reject=o=>{r({status:"rejected",reason:o}),t(o)},n}function FC(e){return Math.min(1e3*2**e,3e4)}function h0(e){return(e??"online")==="online"?Ja.isOnline():!0}var p0=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Ac(e){return e instanceof p0}function m0(e){let t=!1,n=0,r=!1,o;const s=$C(),i=m=>{var b;r||(f(new p0(m)),(b=e.abort)==null||b.call(e))},a=()=>{t=!0},l=()=>{t=!1},c=()=>f0.isFocused()&&(e.networkMode==="always"||Ja.isOnline())&&e.canRun(),u=()=>h0(e.networkMode)&&e.canRun(),d=m=>{var b;r||(r=!0,(b=e.onSuccess)==null||b.call(e,m),o==null||o(),s.resolve(m))},f=m=>{var b;r||(r=!0,(b=e.onError)==null||b.call(e,m),o==null||o(),s.reject(m))},y=()=>new Promise(m=>{var b;o=v=>{(r||c())&&m(v)},(b=e.onPause)==null||b.call(e)}).then(()=>{var m;o=void 0,r||(m=e.onContinue)==null||m.call(e)}),x=()=>{if(r)return;let m;const b=n===0?e.initialPromise:void 0;try{m=b??e.fn()}catch(v){m=Promise.reject(v)}Promise.resolve(m).then(d).catch(v=>{var C;if(r)return;const g=e.retry??(Ol?0:3),w=e.retryDelay??FC,_=typeof w=="function"?w(n,v):w,S=g===!0||typeof g=="number"&&n<g||typeof g=="function"&&g(n,v);if(t||!S){f(v);return}n++,(C=e.onFail)==null||C.call(e,n,v),OC(_).then(()=>c()?void 0:y()).then(()=>{t?f(v):x()})})};return{promise:s,cancel:i,continue:()=>(o==null||o(),s),cancelRetry:a,continueRetry:l,canStart:u,start:()=>(u()?x():y().then(x),s)}}function UC(){let e=[],t=0,n=a=>{a()},r=a=>{a()},o=a=>setTimeout(a,0);const s=a=>{t?e.push(a):o(()=>{n(a)})},i=()=>{const a=e;e=[],a.length&&o(()=>{r(()=>{a.forEach(l=>{n(l)})})})};return{batch:a=>{let l;t++;try{l=a()}finally{t--,t||i()}return l},batchCalls:a=>(...l)=>{s(()=>{a(...l)})},schedule:s,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{o=a}}}var Ye=UC(),_r,Nm,g0=(Nm=class{constructor(){ue(this,_r)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),RC(this.gcTime)&&X(this,_r,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Ol?1/0:5*60*1e3))}clearGcTimeout(){R(this,_r)&&(clearTimeout(R(this,_r)),X(this,_r,void 0))}},_r=new WeakMap,Nm),To,Ro,_t,Be,ai,Sr,Lt,ln,jm,zC=(jm=class extends g0{constructor(t){super();ue(this,Lt);ue(this,To);ue(this,Ro);ue(this,_t);ue(this,Be);ue(this,ai);ue(this,Sr);X(this,Sr,!1),X(this,ai,t.defaultOptions),this.setOptions(t.options),this.observers=[],X(this,_t,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,X(this,To,VC(this.options)),this.state=t.state??R(this,To),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=R(this,Be))==null?void 0:t.promise}setOptions(t){this.options={...R(this,ai),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&R(this,_t).remove(this)}setData(t,n){const r=AC(this.state.data,t,this.options);return Fe(this,Lt,ln).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){Fe(this,Lt,ln).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,o;const n=(r=R(this,Be))==null?void 0:r.promise;return(o=R(this,Be))==null||o.cancel(t),n?n.then(Mt).catch(Mt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(R(this,To))}isActive(){return this.observers.some(t=>jC(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Mf||this.state.dataUpdateCount+this.state.errorUpdateCount===0}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||!NC(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=R(this,Be))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=R(this,Be))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),R(this,_t).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(R(this,Be)&&(R(this,Sr)?R(this,Be).cancel({revert:!0}):R(this,Be).cancelRetry()),this.scheduleGc()),R(this,_t).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Fe(this,Lt,ln).call(this,{type:"invalidate"})}fetch(t,n){var l,c,u;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(R(this,Be))return R(this,Be).continueRetry(),R(this,Be).promise}if(t&&this.setOptions(t),!this.options.queryFn){const d=this.observers.find(f=>f.options.queryFn);d&&this.setOptions(d.options)}const r=new AbortController,o=d=>{Object.defineProperty(d,"signal",{enumerable:!0,get:()=>(X(this,Sr,!0),r.signal)})},s=()=>{const d=d0(this.options,n),f={queryKey:this.queryKey,meta:this.meta};return o(f),X(this,Sr,!1),this.options.persister?this.options.persister(d,f,this):d(f)},i={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:s};o(i),(l=this.options.behavior)==null||l.onFetch(i,this),X(this,Ro,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((c=i.fetchOptions)==null?void 0:c.meta))&&Fe(this,Lt,ln).call(this,{type:"fetch",meta:(u=i.fetchOptions)==null?void 0:u.meta});const a=d=>{var f,y,x,m;Ac(d)&&d.silent||Fe(this,Lt,ln).call(this,{type:"error",error:d}),Ac(d)||((y=(f=R(this,_t).config).onError)==null||y.call(f,d,this),(m=(x=R(this,_t).config).onSettled)==null||m.call(x,this.state.data,d,this)),this.scheduleGc()};return X(this,Be,m0({initialPromise:n==null?void 0:n.initialPromise,fn:i.fetchFn,abort:r.abort.bind(r),onSuccess:d=>{var f,y,x,m;if(d===void 0){a(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(d)}catch(b){a(b);return}(y=(f=R(this,_t).config).onSuccess)==null||y.call(f,d,this),(m=(x=R(this,_t).config).onSettled)==null||m.call(x,d,this.state.error,this),this.scheduleGc()},onError:a,onFail:(d,f)=>{Fe(this,Lt,ln).call(this,{type:"failed",failureCount:d,error:f})},onPause:()=>{Fe(this,Lt,ln).call(this,{type:"pause"})},onContinue:()=>{Fe(this,Lt,ln).call(this,{type:"continue"})},retry:i.options.retry,retryDelay:i.options.retryDelay,networkMode:i.options.networkMode,canRun:()=>!0})),R(this,Be).start()}},To=new WeakMap,Ro=new WeakMap,_t=new WeakMap,Be=new WeakMap,ai=new WeakMap,Sr=new WeakMap,Lt=new WeakSet,ln=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...BC(r.data,this.options),fetchMeta:t.meta??null};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const o=t.error;return Ac(o)&&o.revert&&R(this,Ro)?{...R(this,Ro),fetchStatus:"idle"}:{...r,error:o,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),Ye.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),R(this,_t).notify({query:this,type:"updated",action:t})})},jm);function BC(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:h0(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function VC(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Yt,Om,HC=(Om=class extends jl{constructor(t={}){super();ue(this,Yt);this.config=t,X(this,Yt,new Map)}build(t,n,r){const o=n.queryKey,s=n.queryHash??If(o,n);let i=this.get(s);return i||(i=new zC({cache:this,queryKey:o,queryHash:s,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(o)}),this.add(i)),i}add(t){R(this,Yt).has(t.queryHash)||(R(this,Yt).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=R(this,Yt).get(t.queryHash);n&&(t.destroy(),n===t&&R(this,Yt).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Ye.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return R(this,Yt).get(t)}getAll(){return[...R(this,Yt).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>zp(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>zp(t,r)):n}notify(t){Ye.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Ye.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Ye.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Yt=new WeakMap,Om),Jt,qe,Er,Xt,Pn,Am,WC=(Am=class extends g0{constructor(t){super();ue(this,Xt);ue(this,Jt);ue(this,qe);ue(this,Er);this.mutationId=t.mutationId,X(this,qe,t.mutationCache),X(this,Jt,[]),this.state=t.state||KC(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){R(this,Jt).includes(t)||(R(this,Jt).push(t),this.clearGcTimeout(),R(this,qe).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){X(this,Jt,R(this,Jt).filter(n=>n!==t)),this.scheduleGc(),R(this,qe).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){R(this,Jt).length||(this.state.status==="pending"?this.scheduleGc():R(this,qe).remove(this))}continue(){var t;return((t=R(this,Er))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var o,s,i,a,l,c,u,d,f,y,x,m,b,v,g,w,_,S,C,E;X(this,Er,m0({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(P,A)=>{Fe(this,Xt,Pn).call(this,{type:"failed",failureCount:P,error:A})},onPause:()=>{Fe(this,Xt,Pn).call(this,{type:"pause"})},onContinue:()=>{Fe(this,Xt,Pn).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>R(this,qe).canRun(this)}));const n=this.state.status==="pending",r=!R(this,Er).canStart();try{if(!n){Fe(this,Xt,Pn).call(this,{type:"pending",variables:t,isPaused:r}),await((s=(o=R(this,qe).config).onMutate)==null?void 0:s.call(o,t,this));const A=await((a=(i=this.options).onMutate)==null?void 0:a.call(i,t));A!==this.state.context&&Fe(this,Xt,Pn).call(this,{type:"pending",context:A,variables:t,isPaused:r})}const P=await R(this,Er).start();return await((c=(l=R(this,qe).config).onSuccess)==null?void 0:c.call(l,P,t,this.state.context,this)),await((d=(u=this.options).onSuccess)==null?void 0:d.call(u,P,t,this.state.context)),await((y=(f=R(this,qe).config).onSettled)==null?void 0:y.call(f,P,null,this.state.variables,this.state.context,this)),await((m=(x=this.options).onSettled)==null?void 0:m.call(x,P,null,t,this.state.context)),Fe(this,Xt,Pn).call(this,{type:"success",data:P}),P}catch(P){try{throw await((v=(b=R(this,qe).config).onError)==null?void 0:v.call(b,P,t,this.state.context,this)),await((w=(g=this.options).onError)==null?void 0:w.call(g,P,t,this.state.context)),await((S=(_=R(this,qe).config).onSettled)==null?void 0:S.call(_,void 0,P,this.state.variables,this.state.context,this)),await((E=(C=this.options).onSettled)==null?void 0:E.call(C,void 0,P,t,this.state.context)),P}finally{Fe(this,Xt,Pn).call(this,{type:"error",error:P})}}finally{R(this,qe).runNext(this)}}},Jt=new WeakMap,qe=new WeakMap,Er=new WeakMap,Xt=new WeakSet,Pn=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),Ye.batch(()=>{R(this,Jt).forEach(r=>{r.onMutationUpdate(t)}),R(this,qe).notify({mutation:this,type:"updated",action:t})})},Am);function KC(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var dt,li,Im,GC=(Im=class extends jl{constructor(t={}){super();ue(this,dt);ue(this,li);this.config=t,X(this,dt,new Map),X(this,li,Date.now())}build(t,n,r){const o=new WC({mutationCache:this,mutationId:++Ri(this,li)._,options:t.defaultMutationOptions(n),state:r});return this.add(o),o}add(t){const n=Ji(t),r=R(this,dt).get(n)??[];r.push(t),R(this,dt).set(n,r),this.notify({type:"added",mutation:t})}remove(t){var r;const n=Ji(t);if(R(this,dt).has(n)){const o=(r=R(this,dt).get(n))==null?void 0:r.filter(s=>s!==t);o&&(o.length===0?R(this,dt).delete(n):R(this,dt).set(n,o))}this.notify({type:"removed",mutation:t})}canRun(t){var r;const n=(r=R(this,dt).get(Ji(t)))==null?void 0:r.find(o=>o.state.status==="pending");return!n||n===t}runNext(t){var r;const n=(r=R(this,dt).get(Ji(t)))==null?void 0:r.find(o=>o!==t&&o.state.isPaused);return(n==null?void 0:n.continue())??Promise.resolve()}clear(){Ye.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}getAll(){return[...R(this,dt).values()].flat()}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Bp(n,r))}findAll(t={}){return this.getAll().filter(n=>Bp(t,n))}notify(t){Ye.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return Ye.batch(()=>Promise.all(t.map(n=>n.continue().catch(Mt))))}},dt=new WeakMap,li=new WeakMap,Im);function Ji(e){var t;return((t=e.options.scope)==null?void 0:t.id)??String(e.mutationId)}function Wp(e){return{onFetch:(t,n)=>{var u,d,f,y,x;const r=t.options,o=(f=(d=(u=t.fetchOptions)==null?void 0:u.meta)==null?void 0:d.fetchMore)==null?void 0:f.direction,s=((y=t.state.data)==null?void 0:y.pages)||[],i=((x=t.state.data)==null?void 0:x.pageParams)||[];let a={pages:[],pageParams:[]},l=0;const c=async()=>{let m=!1;const b=w=>{Object.defineProperty(w,"signal",{enumerable:!0,get:()=>(t.signal.aborted?m=!0:t.signal.addEventListener("abort",()=>{m=!0}),t.signal)})},v=d0(t.options,t.fetchOptions),g=async(w,_,S)=>{if(m)return Promise.reject();if(_==null&&w.pages.length)return Promise.resolve(w);const C={queryKey:t.queryKey,pageParam:_,direction:S?"backward":"forward",meta:t.options.meta};b(C);const E=await v(C),{maxPages:P}=t.options,A=S?MC:IC;return{pages:A(w.pages,E,P),pageParams:A(w.pageParams,_,P)}};if(o&&s.length){const w=o==="backward",_=w?qC:Kp,S={pages:s,pageParams:i},C=_(r,S);a=await g(S,C,w)}else{const w=e??s.length;do{const _=l===0?i[0]??r.initialPageParam:Kp(r,a);if(l>0&&_==null)break;a=await g(a,_),l++}while(l<w)}return a};t.options.persister?t.fetchFn=()=>{var m,b;return(b=(m=t.options).persister)==null?void 0:b.call(m,c,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=c}}}function Kp(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function qC(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var Ee,Fn,Un,No,jo,zn,Oo,Ao,Mm,QC=(Mm=class{constructor(e={}){ue(this,Ee);ue(this,Fn);ue(this,Un);ue(this,No);ue(this,jo);ue(this,zn);ue(this,Oo);ue(this,Ao);X(this,Ee,e.queryCache||new HC),X(this,Fn,e.mutationCache||new GC),X(this,Un,e.defaultOptions||{}),X(this,No,new Map),X(this,jo,new Map),X(this,zn,0)}mount(){Ri(this,zn)._++,R(this,zn)===1&&(X(this,Oo,f0.subscribe(async e=>{e&&(await this.resumePausedMutations(),R(this,Ee).onFocus())})),X(this,Ao,Ja.subscribe(async e=>{e&&(await this.resumePausedMutations(),R(this,Ee).onOnline())})))}unmount(){var e,t;Ri(this,zn)._--,R(this,zn)===0&&((e=R(this,Oo))==null||e.call(this),X(this,Oo,void 0),(t=R(this,Ao))==null||t.call(this),X(this,Ao,void 0))}isFetching(e){return R(this,Ee).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return R(this,Fn).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=R(this,Ee).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);if(t===void 0)return this.fetchQuery(e);{const n=this.defaultQueryOptions(e),r=R(this,Ee).build(this,n);return e.revalidateIfStale&&r.isStaleByTime(Up(n.staleTime,r))&&this.prefetchQuery(n),Promise.resolve(t)}}getQueriesData(e){return R(this,Ee).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),o=R(this,Ee).get(r.queryHash),s=o==null?void 0:o.state.data,i=TC(t,s);if(i!==void 0)return R(this,Ee).build(this,r).setData(i,{...n,manual:!0})}
136setQueriesData(e,t,n){return Ye.batch(()=>R(this,Ee).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=R(this,Ee).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=R(this,Ee);Ye.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=R(this,Ee),r={type:"active",...e};return Ye.batch(()=>(n.findAll(e).forEach(o=>{o.reset()}),this.refetchQueries(r,t)))}cancelQueries(e={},t={}){const n={revert:!0,...t},r=Ye.batch(()=>R(this,Ee).findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(Mt).catch(Mt)}invalidateQueries(e={},t={}){return Ye.batch(()=>{if(R(this,Ee).findAll(e).forEach(r=>{r.invalidate()}),e.refetchType==="none")return Promise.resolve();const n={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(n,t)})}refetchQueries(e={},t){const n={...t,cancelRefetch:(t==null?void 0:t.cancelRefetch)??!0},r=Ye.batch(()=>R(this,Ee).findAll(e).filter(o=>!o.isDisabled()).map(o=>{let s=o.fetch(void 0,n);return n.throwOnError||(s=s.catch(Mt)),o.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(r).then(Mt)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=R(this,Ee).build(this,t);return n.isStaleByTime(Up(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Mt).catch(Mt)}fetchInfiniteQuery(e){return e.behavior=Wp(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Mt).catch(Mt)}ensureInfiniteQueryData(e){return e.behavior=Wp(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Ja.isOnline()?R(this,Fn).resumePausedMutations():Promise.resolve()}getQueryCache(){return R(this,Ee)}getMutationCache(){return R(this,Fn)}getDefaultOptions(){return R(this,Un)}setDefaultOptions(e){X(this,Un,e)}setQueryDefaults(e,t){R(this,No).set(ei(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...R(this,No).values()];let n={};return t.forEach(r=>{ti(e,r.queryKey)&&(n={...n,...r.defaultOptions})}),n}setMutationDefaults(e,t){R(this,jo).set(ei(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...R(this,jo).values()];let n={};return t.forEach(r=>{ti(e,r.mutationKey)&&(n={...n,...r.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...R(this,Un).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=If(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===Mf&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...R(this,Un).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){R(this,Ee).clear(),R(this,Fn).clear()}},Ee=new WeakMap,Fn=new WeakMap,Un=new WeakMap,No=new WeakMap,jo=new WeakMap,zn=new WeakMap,Oo=new WeakMap,Ao=new WeakMap,Mm),YC=p.createContext(void 0),JC=({client:e,children:t})=>(p.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),h.jsx(YC.Provider,{value:e,children:t}));/** 137 * @remix-run/router v1.20.0 138 * 139 * Copyright (c) Remix Software Inc. 140 * 141 * This source code is licensed under the MIT license found in the 142 * LICENSE.md file in the root directory of this source tree. 143 * 144 * @license MIT 145 */function ni(){return ni=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ni.apply(this,arguments)}var Hn;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Hn||(Hn={}));const Gp="popstate";function XC(e){e===void 0&&(e={});function t(r,o){let{pathname:s,search:i,hash:a}=r.location;return ed("",{pathname:s,search:i,hash:a},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function n(r,o){return typeof o=="string"?o:Xa(o)}return eP(t,n,null,e)}function Re(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function v0(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function ZC(){return Math.random().toString(36).substr(2,8)}function qp(e,t){return{usr:e.state,key:e.key,idx:t}}function ed(e,t,n,r){return n===void 0&&(n=null),ni({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Zo(t):t,{state:n,key:t&&t.key||r||ZC()})}function Xa(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Zo(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function eP(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:s=!1}=r,i=o.history,a=Hn.Pop,l=null,c=u();c==null&&(c=0,i.replaceState(ni({},i.state,{idx:c}),""));function u(){return(i.state||{idx:null}).idx}function d(){a=Hn.Pop;let b=u(),v=b==null?null:b-c;c=b,l&&l({action:a,location:m.location,delta:v})}function f(b,v){a=Hn.Push;let g=ed(m.location,b,v);c=u()+1;let w=qp(g,c),_=m.createHref(g);try{i.pushState(w,"",_)}catch(S){if(S instanceof DOMException&&S.name==="DataCloneError")throw S;o.location.assign(_)}s&&l&&l({action:a,location:m.location,delta:1})}function y(b,v){a=Hn.Replace;let g=ed(m.location,b,v);c=u();let w=qp(g,c),_=m.createHref(g);i.replaceState(w,"",_),s&&l&&l({action:a,location:m.location,delta:0})}function x(b){let v=o.location.origin!=="null"?o.location.origin:o.location.href,g=typeof b=="string"?b:Xa(b);return g=g.replace(/ $/,"%20"),Re(v,"No window.location.(origin|href) available to create URL for href: "+g),new URL(g,v)}let m={get action(){return a},get location(){return e(o,i)},listen(b){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(Gp,d),l=b,()=>{o.removeEventListener(Gp,d),l=null}},createHref(b){return t(o,b)},createURL:x,encodeLocation(b){let v=x(b);return{pathname:v.pathname,search:v.search,hash:v.hash}},push:f,replace:y,go(b){return i.go(b)}};return m}var Qp;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Qp||(Qp={}));
vendor: 16,031 bytes, lines 145-163
145function tP(e,t,n){return n===void 0&&(n="/"),nP(e,t,n,!1)}function nP(e,t,n,r){let o=typeof t=="string"?Zo(t):t,s=Lf(o.pathname||"/",n);if(s==null)return null;let i=y0(e);rP(i);let a=null;for(let l=0;a==null&&l<i.length;++l){let c=pP(s);a=fP(i[l],c,r)}return a}function y0(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let o=(s,i,a)=>{let l={relativePath:a===void 0?s.path||"":a,caseSensitive:s.caseSensitive===!0,childrenIndex:i,route:s};l.relativePath.startsWith("/")&&(Re(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let c=Zn([r,l.relativePath]),u=n.concat(l);s.children&&s.children.length>0&&(Re(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),y0(s.children,t,u,c)),!(s.path==null&&!s.index)&&t.push({path:c,score:uP(c,s.index),routesMeta:u})};return e.forEach((s,i)=>{var a;if(s.path===""||!((a=s.path)!=null&&a.includes("?")))o(s,i);else for(let l of w0(s.path))o(s,i,l)}),t}function w0(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),s=n.replace(/\?$/,"");if(r.length===0)return o?[s,""]:[s];let i=w0(r.join("/")),a=[];return a.push(...i.map(l=>l===""?s:[s,l].join("/"))),o&&a.push(...i),a.map(l=>e.startsWith("/")&&l===""?"/":l)}function rP(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:dP(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const oP=/^:[\w-]+$/,sP=3,iP=2,aP=1,lP=10,cP=-2,Yp=e=>e==="*";function uP(e,t){let n=e.split("/"),r=n.length;return n.some(Yp)&&(r+=cP),t&&(r+=iP),n.filter(o=>!Yp(o)).reduce((o,s)=>o+(oP.test(s)?sP:s===""?aP:lP),r)}function dP(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function fP(e,t,n){let{routesMeta:r}=e,o={},s="/",i=[];for(let a=0;a<r.length;++a){let l=r[a],c=a===r.length-1,u=s==="/"?t:t.slice(s.length)||"/",d=Jp({path:l.relativePath,caseSensitive:l.caseSensitive,end:c},u),f=l.route;if(!d&&c&&n&&!r[r.length-1].route.index&&(d=Jp({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},u)),!d)return null;Object.assign(o,d.params),i.push({params:o,pathname:Zn([s,d.pathname]),pathnameBase:yP(Zn([s,d.pathnameBase])),route:f}),d.pathnameBase!=="/"&&(s=Zn([s,d.pathnameBase]))}return i}function Jp(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=hP(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let s=o[0],i=s.replace(/(.)\/+$/,"$1"),a=o.slice(1);return{params:r.reduce((c,u,d)=>{let{paramName:f,isOptional:y}=u;if(f==="*"){let m=a[d]||"";i=s.slice(0,s.length-m.length).replace(/(.)\/+$/,"$1")}const x=a[d];return y&&!x?c[f]=void 0:c[f]=(x||"").replace(/%2F/g,"/"),c},{}),pathname:s,pathnameBase:i,pattern:e}}function hP(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),v0(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,a,l)=>(r.push({paramName:a,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function pP(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return v0(!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 Lf(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function mP(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?Zo(e):e;return{pathname:n?n.startsWith("/")?n:gP(n,t):t,search:wP(r),hash:xP(o)}}function gP(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function Ic(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function vP(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function x0(e,t){let n=vP(e);return t?n.map((r,o)=>o===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function b0(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=Zo(e):(o=ni({},e),Re(!o.pathname||!o.pathname.includes("?"),Ic("?","pathname","search",o)),Re(!o.pathname||!o.pathname.includes("#"),Ic("#","pathname","hash",o)),Re(!o.search||!o.search.includes("#"),Ic("#","search","hash",o)));let s=e===""||o.pathname==="",i=s?"/":o.pathname,a;if(i==null)a=n;else{let d=t.length-1;if(!r&&i.startsWith("..")){let f=i.split("/");for(;f[0]==="..";)f.shift(),d-=1;o.pathname=f.join("/")}a=d>=0?t[d]:"/"}let l=mP(o,a),c=i&&i!=="/"&&i.endsWith("/"),u=(s||i===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||u)&&(l.pathname+="/"),l}const Zn=e=>e.join("/").replace(/\/\/+/g,"/"),yP=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),wP=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,xP=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function bP(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const _0=["post","put","patch","delete"];new Set(_0);const _P=["get",..._0];new Set(_P);/** 146 * React Router v6.27.0 147 * 148 * Copyright (c) Remix Software Inc. 149 * 150 * This source code is licensed under the MIT license found in the 151 * LICENSE.md file in the root directory of this source tree. 152 * 153 * @license MIT 154 */function ri(){return ri=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ri.apply(this,arguments)}const Df=p.createContext(null),SP=p.createContext(null),Fr=p.createContext(null),Al=p.createContext(null),Ur=p.createContext({outlet:null,matches:[],isDataRoute:!1}),S0=p.createContext(null);function EP(e,t){let{relative:n}=t===void 0?{}:t;yi()||Re(!1);let{basename:r,navigator:o}=p.useContext(Fr),{hash:s,pathname:i,search:a}=k0(e,{relative:n}),l=i;return r!=="/"&&(l=i==="/"?r:Zn([r,i])),o.createHref({pathname:l,search:a,hash:s})}function yi(){return p.useContext(Al)!=null}function wi(){return yi()||Re(!1),p.useContext(Al).location}function E0(e){p.useContext(Fr).static||p.useLayoutEffect(e)}function kP(){let{isDataRoute:e}=p.useContext(Ur);return e?$P():CP()}function CP(){yi()||Re(!1);let e=p.useContext(Df),{basename:t,future:n,navigator:r}=p.useContext(Fr),{matches:o}=p.useContext(Ur),{pathname:s}=wi(),i=JSON.stringify(x0(o,n.v7_relativeSplatPath)),a=p.useRef(!1);return E0(()=>{a.current=!0}),p.useCallback(function(c,u){if(u===void 0&&(u={}),!a.current)return;if(typeof c=="number"){r.go(c);return}let d=b0(c,JSON.parse(i),s,u.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:Zn([t,d.pathname])),(u.replace?r.replace:r.push)(d,u.state,u)},[t,r,i,s,e])}function k0(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=p.useContext(Fr),{matches:o}=p.useContext(Ur),{pathname:s}=wi(),i=JSON.stringify(x0(o,r.v7_relativeSplatPath));return p.useMemo(()=>b0(e,JSON.parse(i),s,n==="path"),[e,i,s,n])}function PP(e,t){return TP(e,t)}function TP(e,t,n,r){yi()||Re(!1);let{navigator:o}=p.useContext(Fr),{matches:s}=p.useContext(Ur),i=s[s.length-1],a=i?i.params:{};i&&i.pathname;let l=i?i.pathnameBase:"/";i&&i.route;let c=wi(),u;if(t){var d;let b=typeof t=="string"?Zo(t):t;l==="/"||(d=b.pathname)!=null&&d.startsWith(l)||Re(!1),u=b}else u=c;let f=u.pathname||"/",y=f;if(l!=="/"){let b=l.replace(/^\//,"").split("/");y="/"+f.replace(/^\//,"").split("/").slice(b.length).join("/")}let x=tP(e,{pathname:y}),m=AP(x&&x.map(b=>Object.assign({},b,{params:Object.assign({},a,b.params),pathname:Zn([l,o.encodeLocation?o.encodeLocation(b.pathname).pathname:b.pathname]),pathnameBase:b.pathnameBase==="/"?l:Zn([l,o.encodeLocation?o.encodeLocation(b.pathnameBase).pathname:b.pathnameBase])})),s,n,r);return t&&m?p.createElement(Al.Provider,{value:{location:ri({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:Hn.Pop}},m):m}function RP(){let e=DP(),t=bP(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return p.createElement(p.Fragment,null,p.createElement("h2",null,"Unexpected Application Error!"),p.createElement("h3",{style:{fontStyle:"italic"}},t),n?p.createElement("pre",{style:o},n):null,null)}const NP=p.createElement(RP,null);class jP extends p.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,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?p.createElement(Ur.Provider,{value:this.props.routeContext},p.createElement(S0.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function OP(e){let{routeContext:t,match:n,children:r}=e,o=p.useContext(Df);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),p.createElement(Ur.Provider,{value:t},r)}function AP(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var s;if(!n)return null;if(n.errors)e=n.matches;else if((s=r)!=null&&s.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let i=e,a=(o=n)==null?void 0:o.errors;if(a!=null){let u=i.findIndex(d=>d.route.id&&(a==null?void 0:a[d.route.id])!==void 0);u>=0||Re(!1),i=i.slice(0,Math.min(i.length,u+1))}let l=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let u=0;u<i.length;u++){let d=i[u];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(c=u),d.route.id){let{loaderData:f,errors:y}=n,x=d.route.loader&&f[d.route.id]===void 0&&(!y||y[d.route.id]===void 0);if(d.route.lazy||x){l=!0,c>=0?i=i.slice(0,c+1):i=[i[0]];break}}}return i.reduceRight((u,d,f)=>{let y,x=!1,m=null,b=null;n&&(y=a&&d.route.id?a[d.route.id]:void 0,m=d.route.errorElement||NP,l&&(c<0&&f===0?(x=!0,b=null):c===f&&(x=!0,b=d.route.hydrateFallbackElement||null)));let v=t.concat(i.slice(0,f+1)),g=()=>{let w;return y?w=m:x?w=b:d.route.Component?w=p.createElement(d.route.Component,null):d.route.element?w=d.route.element:w=u,p.createElement(OP,{match:d,routeContext:{outlet:u,matches:v,isDataRoute:n!=null},children:w})};return n&&(d.route.ErrorBoundary||d.route.errorElement||f===0)?p.createElement(jP,{location:n.location,revalidation:n.revalidation,component:m,error:y,children:g(),routeContext:{outlet:null,matches:v,isDataRoute:!0}}):g()},null)}var C0=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(C0||{}),Za=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}(Za||{});function IP(e){let t=p.useContext(Df);return t||Re(!1),t}function MP(e){let t=p.useContext(SP);return t||Re(!1),t}function LP(e){let t=p.useContext(Ur);return t||Re(!1),t}function P0(e){let t=LP(),n=t.matches[t.matches.length-1];return n.route.id||Re(!1),n.route.id}function DP(){var e;let t=p.useContext(S0),n=MP(Za.UseRouteError),r=P0(Za.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function $P(){let{router:e}=IP(C0.UseNavigateStable),t=P0(Za.UseNavigateStable),n=p.useRef(!1);return E0(()=>{n.current=!0}),p.useCallback(function(o,s){s===void 0&&(s={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,ri({fromRouteId:t},s)))},[e,t])}function eo(e){Re(!1)}function FP(e){let{basename:t="/",children:n=null,location:r,navigationType:o=Hn.Pop,navigator:s,static:i=!1,future:a}=e;yi()&&Re(!1);let l=t.replace(/^\/*/,"/"),c=p.useMemo(()=>({basename:l,navigator:s,static:i,future:ri({v7_relativeSplatPath:!1},a)}),[l,a,s,i]);typeof r=="string"&&(r=Zo(r));let{pathname:u="/",search:d="",hash:f="",state:y=null,key:x="default"}=r,m=p.useMemo(()=>{let b=Lf(u,l);return b==null?null:{location:{pathname:b,search:d,hash:f,state:y,key:x},navigationType:o}},[l,u,d,f,y,x,o]);return m==null?null:p.createElement(Fr.Provider,{value:c},p.createElement(Al.Provider,{children:n,value:m}))}function UP(e){let{children:t,location:n}=e;return PP(td(t),n)}new Promise(()=>{});function td(e,t){t===void 0&&(t=[]);let n=[];return p.Children.forEach(e,(r,o)=>{if(!p.isValidElement(r))return;let s=[...t,o];if(r.type===p.Fragment){n.push.apply(n,td(r.props.children,s));return}r.type!==eo&&Re(!1),!r.props.index||!r.props.children||Re(!1);let i={id:r.props.id||s.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(i.children=td(r.props.children,s)),n.push(i)}),n}/** 155 * React Router DOM v6.27.0 156 * 157 * Copyright (c) Remix Software Inc. 158 * 159 * This source code is licensed under the MIT license found in the 160 * LICENSE.md file in the root directory of this source tree. 161 * 162 * @license MIT 163 */function nd(){return nd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nd.apply(this,arguments)}function zP(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,s;for(s=0;s<r.length;s++)o=r[s],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function BP(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function VP(e,t){return e.button===0&&(!t||t==="_self")&&!BP(e)}const HP=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],WP="6";try{window.__reactRouterVersion=WP}catch{}const KP="startTransition",Xp=Gm[KP];function GP(e){let{basename:t,children:n,future:r,window:o}=e,s=p.useRef();s.current==null&&(s.current=XC({window:o,v5Compat:!0}));let i=s.current,[a,l]=p.useState({action:i.action,location:i.location}),{v7_startTransition:c}=r||{},u=p.useCallback(d=>{c&&Xp?Xp(()=>l(d)):l(d)},[l,c]);return p.useLayoutEffect(()=>i.listen(u),[i,u]),p.createElement(FP,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:i,future:r})}const qP=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",QP=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,xi=p.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:s,replace:i,state:a,target:l,to:c,preventScrollReset:u,viewTransition:d}
163=t,f=zP(t,HP),{basename:y}=p.useContext(Fr),x,m=!1;if(typeof c=="string"&&QP.test(c)&&(x=c,qP))try{let w=new URL(window.location.href),_=c.startsWith("//")?new URL(w.protocol+c):new URL(c),S=Lf(_.pathname,y);_.origin===w.origin&&S!=null?c=S+_.search+_.hash:m=!0}catch{}let b=EP(c,{relative:o}),v=YP(c,{replace:i,state:a,target:l,preventScrollReset:u,relative:o,viewTransition:d});function g(w){r&&r(w),w.defaultPrevented||v(w)}return p.createElement("a",nd({},f,{href:x||b,onClick:m||s?r:g,ref:n,target:l}))});var Zp;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Zp||(Zp={}));var em;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(em||(em={}));function YP(e,t){let{target:n,replace:r,state:o,preventScrollReset:s,relative:i,viewTransition:a}=t===void 0?{}:t,l=kP(),c=wi(),u=k0(e,{relative:i});return p.useCallback(d=>{if(VP(d,n)){d.preventDefault();let f=r!==void 0?r:Xa(c)===Xa(u);l(e,{replace:f,state:o,preventScrollReset:s,relative:i,viewTransition:a})}},[c,l,u,r,o,n,e,s,i,a])}const JP=wf("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),Pt=p.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},s)=>{const i=r?Or:"button";return h.jsx(i,{className:le(JP({variant:t,size:n,className:e})),ref:s,...o})});Pt.displayName="Button";var XP=p.createContext(void 0);function $f(e){const t=p.useContext(XP);return e||t||"ltr"}var Mc=0;function T0(){p.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??tm()),document.body.insertAdjacentElement("beforeend",e[1]??tm()),Mc++,()=>{Mc===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Mc--}},[])}function tm(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Lc="focusScope.autoFocusOnMount",Dc="focusScope.autoFocusOnUnmount",nm={bubbles:!1,cancelable:!0},ZP="FocusScope",Ff=p.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...i}=e,[a,l]=p.useState(null),c=We(o),u=We(s),d=p.useRef(null),f=fe(t,m=>l(m)),y=p.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;p.useEffect(()=>{if(r){let m=function(w){if(y.paused||!a)return;const _=w.target;a.contains(_)?d.current=_:Tn(d.current,{select:!0})},b=function(w){if(y.paused||!a)return;const _=w.relatedTarget;_!==null&&(a.contains(_)||Tn(d.current,{select:!0}))},v=function(w){if(document.activeElement===document.body)for(const S of w)S.removedNodes.length>0&&Tn(a)};document.addEventListener("focusin",m),document.addEventListener("focusout",b);const g=new MutationObserver(v);return a&&g.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",b),g.disconnect()}}},[r,a,y.paused]),p.useEffect(()=>{if(a){om.add(y);const m=document.activeElement;if(!a.contains(m)){const v=new CustomEvent(Lc,nm);a.addEventListener(Lc,c),a.dispatchEvent(v),v.defaultPrevented||(eT(sT(R0(a)),{select:!0}
vendor: 4,201 bytes, line 163
163),document.activeElement===m&&Tn(a))}return()=>{a.removeEventListener(Lc,c),setTimeout(()=>{const v=new CustomEvent(Dc,nm);a.addEventListener(Dc,u),a.dispatchEvent(v),v.defaultPrevented||Tn(m??document.body,{select:!0}),a.removeEventListener(Dc,u),om.remove(y)},0)}}},[a,c,u,y]);const x=p.useCallback(m=>{if(!n&&!r||y.paused)return;const b=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,v=document.activeElement;if(b&&v){const g=m.currentTarget,[w,_]=tT(g);w&&_?!m.shiftKey&&v===_?(m.preventDefault(),n&&Tn(w,{select:!0})):m.shiftKey&&v===w&&(m.preventDefault(),n&&Tn(_,{select:!0})):v===g&&m.preventDefault()}},[n,r,y.paused]);return h.jsx(te.div,{tabIndex:-1,...i,ref:f,onKeyDown:x})});Ff.displayName=ZP;function eT(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Tn(r,{select:t}),document.activeElement!==n)return}function tT(e){const t=R0(e),n=rm(t,e),r=rm(t.reverse(),e);return[n,r]}function R0(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function rm(e,t){for(const n of e)if(!nT(n,{upTo:t}))return n}function nT(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function rT(e){return e instanceof HTMLInputElement&&"select"in e}function Tn(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&rT(e)&&t&&e.select()}}var om=oT();function oT(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=sm(e,t),e.unshift(t)},remove(t){var n;e=sm(e,t),(n=e[0])==null||n.resume()}}}function sm(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function sT(e){return e.filter(t=>t.tagName!=="A")}function iT(e,t=[]){let n=[];function r(s,i){const a=p.createContext(i),l=n.length;n=[...n,i];function c(d){const{scope:f,children:y,...x}=d,m=(f==null?void 0:f[e][l])||a,b=p.useMemo(()=>x,Object.values(x));return h.jsx(m.Provider,{value:b,children:y})}function u(d,f){const y=(f==null?void 0:f[e][l])||a,x=p.useContext(y);if(x)return x;if(i!==void 0)return i;throw new Error(`\`${d}\` must be used within \`${s}\``)}return c.displayName=s+"Provider",[c,u]}const o=()=>{const s=n.map(i=>p.createContext(i));return function(a){const l=(a==null?void 0:a[e])||s;return p.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return o.scopeName=e,[r,aT(o,...t)]}function aT(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const i=r.reduce((a,{useScope:l,scopeName:c})=>{const d=l(s)[`__scope${c}`];return{...a,...d}},{});return p.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}var $c="rovingFocusGroup.onEntryFocus",lT={bubbles:!1,cancelable:!0},Il="RovingFocusGroup",[rd,N0,cT]=bl(Il),[uT,j0]=iT(Il,[cT]),[dT,fT]=uT(Il),O0=p.forwardRef((e,t)=>h.jsx(rd.Provider,{scope:e.__scopeRovingFocusGroup,children:h.jsx(rd.Slot,{scope:e.__scopeRovingFocusGroup,children:h.jsx(hT,{...e,ref:t})})}));O0.displayName=Il;var hT=p.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:s,currentTabStopId:i,defaultCurrentTabStopId:a,onCurrentTabStopIdChange:l,onEntryFocus:c,preventScrollOnEntryFocus:u=!1,...d}=e,f=p.useRef(null),y=fe(t,f),x=$f(s),[m=null,b]=Js({prop:i,defaultProp:a,onChange:l}),[v,g]=p.useState(!1),w=We(c),_=N0(n),S=p.useRef(!1),[C,E]=p.useState(0);return p.useEffect(()=>{const P=f.current;if(P)return P.addEventListener($c,w),()=>P.removeEventListener($c,w)},[w]),h.jsx(dT,{scope:n,orientation:r,dir:x,loop:o,currentTabStopId:m,onItemFocus:p.useCallback(P=>b(P),[b]),onItemShiftTab:p.useCallback(()=>g(!0),[]),onFocusableItemAdd:p.useCallback(()=>E(P=>P+1),[]),onFocusableItemRemove:p.useCallback(()=>E(P=>P-1),[]),children:h.jsx(te.div,{tabIndex:v||C===0?-1:0,"data-orientation":r,...d,ref:y,style:{outline:"none",...e.style},onMouseDown:F(e.onMouseDown,()=>{S.current=!0}
vendor: 9,038 bytes, lines 163-178
163),onFocus:F(e.onFocus,P=>{const A=!S.current;if(P.target===P.currentTarget&&A&&!v){const j=new CustomEvent($c,lT);if(P.currentTarget.dispatchEvent(j),!j.defaultPrevented){const z=_().filter($=>$.focusable),L=z.find($=>$.active),H=z.find($=>$.id===m),W=[L,H,...z].filter(Boolean).map($=>$.ref.current);M0(W,u)}}S.current=!1}),onBlur:F(e.onBlur,()=>g(!1))})})}),A0="RovingFocusGroupItem",I0=p.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:s,...i}=e,a=zo(),l=s||a,c=fT(A0,n),u=c.currentTabStopId===l,d=N0(n),{onFocusableItemAdd:f,onFocusableItemRemove:y}=c;return p.useEffect(()=>{if(r)return f(),()=>y()},[r,f,y]),h.jsx(rd.ItemSlot,{scope:n,id:l,focusable:r,active:o,children:h.jsx(te.span,{tabIndex:u?0:-1,"data-orientation":c.orientation,...i,ref:t,onMouseDown:F(e.onMouseDown,x=>{r?c.onItemFocus(l):x.preventDefault()}),onFocus:F(e.onFocus,()=>c.onItemFocus(l)),onKeyDown:F(e.onKeyDown,x=>{if(x.key==="Tab"&&x.shiftKey){c.onItemShiftTab();return}if(x.target!==x.currentTarget)return;const m=gT(x,c.orientation,c.dir);if(m!==void 0){if(x.metaKey||x.ctrlKey||x.altKey||x.shiftKey)return;x.preventDefault();let v=d().filter(g=>g.focusable).map(g=>g.ref.current);if(m==="last")v.reverse();else if(m==="prev"||m==="next"){m==="prev"&&v.reverse();const g=v.indexOf(x.currentTarget);v=c.loop?vT(v,g+1):v.slice(g+1)}setTimeout(()=>M0(v))}})})})});I0.displayName=A0;var pT={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function mT(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function gT(e,t,n){const r=mT(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return pT[r]}function M0(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function vT(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var yT=O0,wT=I0,xT=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},qr=new WeakMap,Xi=new WeakMap,Zi={},Fc=0,L0=function(e){return e&&(e.host||L0(e.parentNode))},bT=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=L0(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},_T=function(e,t,n,r){var o=bT(t,Array.isArray(e)?e:[e]);Zi[n]||(Zi[n]=new WeakMap);var s=Zi[n],i=[],a=new Set,l=new Set(o),c=function(d){!d||a.has(d)||(a.add(d),c(d.parentNode))};o.forEach(c);var u=function(d){!d||l.has(d)||Array.prototype.forEach.call(d.children,function(f){if(a.has(f))u(f);else try{var y=f.getAttribute(r),x=y!==null&&y!=="false",m=(qr.get(f)||0)+1,b=(s.get(f)||0)+1;qr.set(f,m),s.set(f,b),i.push(f),m===1&&x&&Xi.set(f,!0),b===1&&f.setAttribute(n,"true"),x||f.setAttribute(r,"true")}catch(v){console.error("aria-hidden: cannot operate on ",f,v)}})};return u(t),a.clear(),Fc++,function(){i.forEach(function(d){var f=qr.get(d)-1,y=s.get(d)-1;qr.set(d,f),s.set(d,y),f||(Xi.has(d)||d.removeAttribute(r),Xi.delete(d)),y||d.removeAttribute(n)}),Fc--,Fc||(qr=new WeakMap,qr=new WeakMap,Xi=new WeakMap,Zi={})}},D0=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=xT(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),_T(r,o,n,"aria-hidden")):function(){return null}},en=function(){return en=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},en.apply(this,arguments)};function $0(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function ST(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,s;r<o;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}var ba="right-scroll-bar-position",_a="width-before-scroll-bar",ET="with-scroll-bars-hidden",kT="--removed-body-scroll-bar-size";function Uc(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function CT(e,t){var n=p.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var PT=typeof window<"u"?p.useLayoutEffect:p.useEffect,im=new WeakMap;function TT(e,t){var n=CT(null,function(r){return e.forEach(function(o){return Uc(o,r)})});return PT(function(){var r=im.get(n);if(r){var o=new Set(r),s=new Set(e),i=n.current;o.forEach(function(a){s.has(a)||Uc(a,null)}),s.forEach(function(a){o.has(a)||Uc(a,i)})}im.set(n,e)},[e]),n}function RT(e){return e}function NT(e,t){t===void 0&&(t=RT);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(s){var i=t(s,r);return n.push(i),function(){n=n.filter(function(a){return a!==i})}},assignSyncMedium:function(s){for(r=!0;n.length;){var i=n;n=[],i.forEach(s)}n={push:function(a){return s(a)},filter:function(){return n}}},assignMedium:function(s){r=!0;var i=[];if(n.length){var a=n;n=[],a.forEach(s),i=n}var l=function(){var u=i;i=[],u.forEach(s)},c=function(){return Promise.resolve().then(l)};c(),n={push:function(u){i.push(u),c()},filter:function(u){return i=i.filter(u),n}}}};return o}function jT(e){e===void 0&&(e={});var t=NT(null);return t.options=en({async:!0,ssr:!1},e),t}var F0=function(e){var t=e.sideCar,n=$0(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return p.createElement(r,en({},n))};F0.isSideCarExport=!0;function OT(e,t){return e.useMedium(t),F0}var U0=jT(),zc=function(){},Ml=p.forwardRef(function(e,t){var n=p.useRef(null),r=p.useState({onScrollCapture:zc,onWheelCapture:zc,onTouchMoveCapture:zc}),o=r[0],s=r[1],i=e.forwardProps,a=e.children,l=e.className,c=e.removeScrollBar,u=e.enabled,d=e.shards,f=e.sideCar,y=e.noIsolation,x=e.inert,m=e.allowPinchZoom,b=e.as,v=b===void 0?"div":b,g=e.gapMode,w=$0(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),_=f,S=TT([n,t]),C=en(en({},w),o);return p.createElement(p.Fragment,null,u&&p.createElement(_,{sideCar:U0,removeScrollBar:c,shards:d,noIsolation:y,inert:x,setCallbacks:s,allowPinchZoom:!!m,lockRef:n,gapMode:g}),i?p.cloneElement(p.Children.only(a),en(en({},C),{ref:S})):p.createElement(v,en({},C,{className:l,ref:S}),a))});Ml.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Ml.classNames={fullWidth:_a,zeroRight:ba};var AT=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function IT(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=AT();return t&&e.setAttribute("nonce",t),e}function MT(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function LT(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var DT=function(){var e=0,t=null;return{add:function(n){e==0&&(t=IT())&&(MT(t,n),LT(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},$T=function(){var e=DT();return function(t,n){p.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},z0=function(){var e=$T(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},FT={left:0,top:0,right:0,gap:0},Bc=function(e){return parseInt(e||"",10)||0},UT=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Bc(n),Bc(r),Bc(o)]},zT=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return FT;var t=UT(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},BT=z0(),So="data-scroll-locked",VT=function(e,t,n,r){var o=e.left,s=e.top,i=e.right,a=e.gap;return n===void 0&&(n="margin"),` 164 .`.concat(ET,` { 165 overflow: hidden `).concat(r,`; 166 padding-right: `).concat(a,"px ").concat(r,`; 167 } 168 body[`).concat(So,`] { 169 overflow: hidden `).concat(r,`; 170 overscroll-behavior: contain; 171 `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&` 172 padding-left: `.concat(o,`px; 173 padding-top: `).concat(s,`px; 174 padding-right: `).concat(i,`px; 175 margin-left:0; 176 margin-top:0; 177 margin-right: `).concat(a,"px ").concat(r,`; 178 `),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";
178")].filter(Boolean).join(""),` 179 } 180 181 .`).concat(ba,` { 182 right: `).concat(a,"px ").concat(r,`; 183 } 184 185 .`).concat(_a,` { 186 margin-right: `).concat(a,"px ").concat(r,`; 187 } 188 189 .`).concat(ba," .").concat(ba,` { 190 right: 0 `).concat(r,`; 191 } 192 193 .`).concat(_a," .").concat(_a,` { 194 margin-right: 0 `).concat(r,`; 195 } 196 197 body[`).concat(So,`] { 198 `).concat(kT,": ").concat(a,`px; 199 } 200`)},am=function(){var e=parseInt(document.body.getAttribute(So)||"0",10);return isFinite(e)?e:0},HT=function(){p.useEffect(function(){return document.body.setAttribute(So,(am()+1).toString()),function(){var e=am()-1;e<=0?document.body.removeAttribute(So):document.body.setAttribute(So,e.toString())}},[])},WT=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;HT();var s=p.useMemo(function(){return zT(o)},[o]);return p.createElement(BT,{styles:VT(s,!t,o,n?"":"!important")})},od=!1;if(typeof window<"u")try{var ea=Object.defineProperty({},"passive",{get:function(){return od=!0,!0}});window.addEventListener("test",ea,ea),window.removeEventListener("test",ea,ea)}catch{od=!1}var Qr=od?{passive:!1}:!1,KT=function(e){return e.tagName==="TEXTAREA"},B0=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!KT(e)&&n[t]==="visible")},GT=function(e){return B0(e,"overflowY")},qT=function(e){return B0(e,"overflowX")},lm=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=V0(e,r);if(o){var s=H0(e,r),i=s[1],a=s[2];if(i>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},QT=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},YT=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},V0=function(e,t){return e==="v"?GT(t):qT(t)},H0=function(e,t){return e==="v"?QT(t):YT(t)},JT=function(e,t){return e==="h"&&t==="rtl"?-1:1},XT=function(e,t,n,r,o){var s=JT(e,window.getComputedStyle(t).direction),i=s*r,a=n.target,l=t.contains(a),c=!1,u=i>0,d=0,f=0;do{var y=H0(e,a),x=y[0],m=y[1],b=y[2],v=m-b-s*x;(x||v)&&V0(e,a)&&(d+=v,f+=x),a instanceof ShadowRoot?a=a.host:a=a.parentNode}while(!l&&a!==document.body||l&&(t.contains(a)||t===a));return(u&&(Math.abs(d)<1||!o)||!u&&(Math.abs(f)<1||!o))&&(c=!0),c},ta=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},cm=function(e){return[e.deltaX,e.deltaY]},um=function(e){return e&&"current"in e?e.current:e},ZT=function(e,t){return e[0]===t[0]&&e[1]===t[1]},eR=function(e){return` 201 .block-interactivity-`.concat(e,` {pointer-events: none;} 202 .allow-interactivity-`).concat(e,` {pointer-events: all;} 203`)},tR=0,Yr=[];function nR(e){var t=p.useRef([]),n=p.useRef([0,0]),r=p.useRef(),o=p.useState(tR++)[0],s=p.useState(z0)[0],i=p.useRef(e);p.useEffect(function(){i.current=e},[e]),p.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var m=ST([e.lockRef.current],(e.shards||[]).map(um),!0).filter(Boolean);return m.forEach(function(b){return b.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),m.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=p.useCallback(function(m,b){if("touches"in m&&m.touches.length===2||m.type==="wheel"&&m.ctrlKey)return!i.current.allowPinchZoom;var v=ta(m),g=n.current,w="deltaX"in m?m.deltaX:g[0]-v[0],_="deltaY"in m?m.deltaY:g[1]-v[1],S,C=m.target,E=Math.abs(w)>Math.abs(_)?"h":"v";if("touches"in m&&E==="h"&&C.type==="range")return!1;var P=lm(E,C);if(!P)return!0;if(P?S=E:(S=E==="v"?"h":"v",P=lm(E,C)),!P)return!1;if(!r.current&&"changedTouches"in m&&(w||_)&&(r.current=S),!S)return!0;var A=r.current||S;return XT(A,b,m,A==="h"?w:_,!0)},[]),l=p.useCallback(function(m){var b=m;if(!(!Yr.length||Yr[Yr.length-1]!==s)){var v="deltaY"in b?cm(b):ta(b),g=t.current.filter(function(S){return S.name===b.type&&(S.target===b.target||b.target===S.shadowParent)&&ZT(S.delta,v)}
vendor: 19,399 bytes, line 203
203)[0];if(g&&g.should){b.cancelable&&b.preventDefault();return}if(!g){var w=(i.current.shards||[]).map(um).filter(Boolean).filter(function(S){return S.contains(b.target)}),_=w.length>0?a(b,w[0]):!i.current.noIsolation;_&&b.cancelable&&b.preventDefault()}}},[]),c=p.useCallback(function(m,b,v,g){var w={name:m,delta:b,target:v,should:g,shadowParent:rR(v)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(_){return _!==w})},1)},[]),u=p.useCallback(function(m){n.current=ta(m),r.current=void 0},[]),d=p.useCallback(function(m){c(m.type,cm(m),m.target,a(m,e.lockRef.current))},[]),f=p.useCallback(function(m){c(m.type,ta(m),m.target,a(m,e.lockRef.current))},[]);p.useEffect(function(){return Yr.push(s),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",l,Qr),document.addEventListener("touchmove",l,Qr),document.addEventListener("touchstart",u,Qr),function(){Yr=Yr.filter(function(m){return m!==s}),document.removeEventListener("wheel",l,Qr),document.removeEventListener("touchmove",l,Qr),document.removeEventListener("touchstart",u,Qr)}},[]);var y=e.removeScrollBar,x=e.inert;return p.createElement(p.Fragment,null,x?p.createElement(s,{styles:eR(o)}):null,y?p.createElement(WT,{gapMode:e.gapMode}):null)}function rR(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const oR=OT(U0,nR);var Uf=p.forwardRef(function(e,t){return p.createElement(Ml,en({},e,{ref:t,sideCar:oR}))});Uf.classNames=Ml.classNames;var sd=["Enter"," "],sR=["ArrowDown","PageUp","Home"],W0=["ArrowUp","PageDown","End"],iR=[...sR,...W0],aR={ltr:[...sd,"ArrowRight"],rtl:[...sd,"ArrowLeft"]},lR={ltr:["ArrowLeft"],rtl:["ArrowRight"]},bi="Menu",[oi,cR,uR]=bl(bi),[zr,K0]=pi(bi,[uR,Xo,j0]),Ll=Xo(),G0=j0(),[dR,Br]=zr(bi),[fR,_i]=zr(bi),q0=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:s,modal:i=!0}=e,a=Ll(t),[l,c]=p.useState(null),u=p.useRef(!1),d=We(s),f=$f(o);return p.useEffect(()=>{const y=()=>{u.current=!0,document.addEventListener("pointerdown",x,{capture:!0,once:!0}),document.addEventListener("pointermove",x,{capture:!0,once:!0})},x=()=>u.current=!1;return document.addEventListener("keydown",y,{capture:!0}),()=>{document.removeEventListener("keydown",y,{capture:!0}),document.removeEventListener("pointerdown",x,{capture:!0}),document.removeEventListener("pointermove",x,{capture:!0})}},[]),h.jsx(t0,{...a,children:h.jsx(dR,{scope:t,open:n,onOpenChange:d,content:l,onContentChange:c,children:h.jsx(fR,{scope:t,onClose:p.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:u,dir:f,modal:i,children:r})})})};q0.displayName=bi;var hR="MenuAnchor",zf=p.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=Ll(n);return h.jsx(Nf,{...o,...r,ref:t})});zf.displayName=hR;var Bf="MenuPortal",[pR,Q0]=zr(Bf,{forceMount:void 0}),Y0=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,s=Br(Bf,t);return h.jsx(pR,{scope:t,forceMount:n,children:h.jsx($r,{present:n||s.open,children:h.jsx(_l,{asChild:!0,container:o,children:r})})})};Y0.displayName=Bf;var Tt="MenuContent",[mR,Vf]=zr(Tt),J0=p.forwardRef((e,t)=>{const n=Q0(Tt,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,s=Br(Tt,e.__scopeMenu),i=_i(Tt,e.__scopeMenu);return h.jsx(oi.Provider,{scope:e.__scopeMenu,children:h.jsx($r,{present:r||s.open,children:h.jsx(oi.Slot,{scope:e.__scopeMenu,children:i.modal?h.jsx(gR,{...o,ref:t}):h.jsx(vR,{...o,ref:t})})})})}),gR=p.forwardRef((e,t)=>{const n=Br(Tt,e.__scopeMenu),r=p.useRef(null),o=fe(t,r);return p.useEffect(()=>{const s=r.current;if(s)return D0(s)},[]),h.jsx(Hf,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:F(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),vR=p.forwardRef((e,t)=>{const n=Br(Tt,e.__scopeMenu);return h.jsx(Hf,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),Hf=p.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:s,onCloseAutoFocus:i,disableOutsidePointerEvents:a,onEntryFocus:l,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:f,onDismiss:y,disableOutsideScroll:x,...m}=e,b=Br(Tt,n),v=_i(Tt,n),g=Ll(n),w=G0(n),_=cR(n),[S,C]=p.useState(null),E=p.useRef(null),P=fe(t,E,b.onContentChange),A=p.useRef(0),j=p.useRef(""),z=p.useRef(0),L=p.useRef(null),H=p.useRef("right"),O=p.useRef(0),W=x?Uf:p.Fragment,$=x?{as:Or,allowPinchZoom:!0}:void 0,K=T=>{var V,oe;const D=j.current+T,I=_().filter(ie=>!ie.disabled),B=document.activeElement,G=(V=I.find(ie=>ie.ref.current===B))==null?void 0:V.textValue,re=I.map(ie=>ie.textValue),Ce=RR(re,D,G),q=(oe=I.find(ie=>ie.textValue===Ce))==null?void 0:oe.ref.current;(function ie(ne){j.current=ne,window.clearTimeout(A.current),ne!==""&&(A.current=window.setTimeout(()=>ie(""),1e3))})(D),q&&setTimeout(()=>q.focus())};p.useEffect(()=>()=>window.clearTimeout(A.current),[]),T0();const k=p.useCallback(T=>{var I,B;return H.current===((I=L.current)==null?void 0:I.side)&&jR(T,(B=L.current)==null?void 0:B.area)},[]);return h.jsx(mR,{scope:n,searchRef:j,onItemEnter:p.useCallback(T=>{k(T)&&T.preventDefault()},[k]),onItemLeave:p.useCallback(T=>{var D;k(T)||((D=E.current)==null||D.focus(),C(null))},[k]),onTriggerLeave:p.useCallback(T=>{k(T)&&T.preventDefault()},[k]),pointerGraceTimerRef:z,onPointerGraceIntentChange:p.useCallback(T=>{L.current=T},[]),children:h.jsx(W,{...$,children:h.jsx(Ff,{asChild:!0,trapped:o,onMountAutoFocus:F(s,T=>{var D;T.preventDefault(),(D=E.current)==null||D.focus({preventScroll:!0})}),onUnmountAutoFocus:i,children:h.jsx(mi,{asChild:!0,disableOutsidePointerEvents:a,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:f,onDismiss:y,children:h.jsx(yT,{asChild:!0,...w,dir:v.dir,orientation:"vertical",loop:r,currentTabStopId:S,onCurrentTabStopIdChange:C,onEntryFocus:F(l,T=>{v.isUsingKeyboardRef.current||T.preventDefault()}),preventScrollOnEntryFocus:!0,children:h.jsx(jf,{role:"menu","aria-orientation":"vertical","data-state":hw(b.open),"data-radix-menu-content":"",dir:v.dir,...g,...m,ref:P,style:{outline:"none",...m.style},onKeyDown:F(m.onKeyDown,T=>{const I=T.target.closest("[data-radix-menu-content]")===T.currentTarget,B=T.ctrlKey||T.altKey||T.metaKey,G=T.key.length===1;I&&(T.key==="Tab"&&T.preventDefault(),!B&&G&&K(T.key));const re=E.current;if(T.target!==re||!iR.includes(T.key))return;T.preventDefault();const q=_().filter(V=>!V.disabled).map(V=>V.ref.current);W0.includes(T.key)&&q.reverse(),PR(q)}),onBlur:F(e.onBlur,T=>{T.currentTarget.contains(T.target)||(window.clearTimeout(A.current),j.current="")}),onPointerMove:F(e.onPointerMove,si(T=>{const D=T.target,I=O.current!==T.clientX;if(T.currentTarget.contains(D)&&I){const B=T.clientX>O.current?"right":"left";H.current=B,O.current=T.clientX}}))})})})})})})});J0.displayName=Tt;var yR="MenuGroup",Wf=p.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return h.jsx(te.div,{role:"group",...r,ref:t})});Wf.displayName=yR;var wR="MenuLabel",X0=p.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return h.jsx(te.div,{...r,ref:t})});X0.displayName=wR;var el="MenuItem",dm="menu.itemSelect",Dl=p.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,s=p.useRef(null),i=_i(el,e.__scopeMenu),a=Vf(el,e.__scopeMenu),l=fe(t,s),c=p.useRef(!1),u=()=>{const d=s.current;if(!n&&d){const f=new CustomEvent(dm,{bubbles:!0,cancelable:!0});d.addEventListener(dm,y=>r==null?void 0:r(y),{once:!0}),mf(d,f),f.defaultPrevented?c.current=!1:i.onClose()}};return h.jsx(Z0,{...o,ref:l,disabled:n,onClick:F(e.onClick,u),onPointerDown:d=>{var f;(f=e.onPointerDown)==null||f.call(e,d),c.current=!0},onPointerUp:F(e.onPointerUp,d=>{var f;c.current||(f=d.currentTarget)==null||f.click()}),onKeyDown:F(e.onKeyDown,d=>{const f=a.searchRef.current!=="";n||f&&d.key===" "||sd.includes(d.key)&&(d.currentTarget.click(),d.preventDefault())})})});Dl.displayName=el;var Z0=p.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...s}=e,i=Vf(el,n),a=G0(n),l=p.useRef(null),c=fe(t,l),[u,d]=p.useState(!1),[f,y]=p.useState("");return p.useEffect(()=>{const x=l.current;x&&y((x.textContent??"").trim())},[s.children]),h.jsx(oi.ItemSlot,{scope:n,disabled:r,textValue:o??f,children:h.jsx(wT,{asChild:!0,...a,focusable:!r,children:h.jsx(te.div,{role:"menuitem","data-highlighted":u?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...s,ref:c,onPointerMove:F(e.onPointerMove,si(x=>{r?i.onItemLeave(x):(i.onItemEnter(x),x.defaultPrevented||x.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:F(e.onPointerLeave,si(x=>i.onItemLeave(x))),onFocus:F(e.onFocus,()=>d(!0)),onBlur:F(e.onBlur,()=>d(!1))})})})}),xR="MenuCheckboxItem",ew=p.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return h.jsx(sw,{scope:e.__scopeMenu,checked:n,children:h.jsx(Dl,{role:"menuitemcheckbox","aria-checked":tl(n)?"mixed":n,...o,ref:t,"data-state":Gf(n),onSelect:F(o.onSelect,()=>r==null?void 0:r(tl(n)?!0:!n),{checkForDefaultPrevented:!1})})})});ew.displayName=xR;var tw="MenuRadioGroup",[bR,_R]=zr(tw,{value:void 0,onValueChange:()=>{}}),nw=p.forwardRef((e,t)=>{const{value:n,onValueChange:r,...o}=e,s=We(r);return h.jsx(bR,{scope:e.__scopeMenu,value:n,onValueChange:s,children:h.jsx(Wf,{...o,ref:t})})});nw.displayName=tw;var rw="MenuRadioItem",ow=p.forwardRef((e,t)=>{const{value:n,...r}=e,o=_R(rw,e.__scopeMenu),s=n===o.value;return h.jsx(sw,{scope:e.__scopeMenu,checked:s,children:h.jsx(Dl,{role:"menuitemradio","aria-checked":s,...r,ref:t,"data-state":Gf(s),onSelect:F(r.onSelect,()=>{var i;return(i=o.onValueChange)==null?void 0:i.call(o,n)},{checkForDefaultPrevented:!1})})})});ow.displayName=rw;var Kf="MenuItemIndicator",[sw,SR]=zr(Kf,{checked:!1}),iw=p.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,s=SR(Kf,n);return h.jsx($r,{present:r||tl(s.checked)||s.checked===!0,children:h.jsx(te.span,{...o,ref:t,"data-state":Gf(s.checked)})})});iw.displayName=Kf;var ER="MenuSeparator",aw=p.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return h.jsx(te.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});aw.displayName=ER;var kR="MenuArrow",lw=p.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=Ll(n);return h.jsx(Of,{...o,...r,ref:t})});lw.displayName=kR;var CR="MenuSub",[GO,cw]=zr(CR),ys="MenuSubTrigger",uw=p.forwardRef((e,t)=>{const n=Br(ys,e.__scopeMenu),r=_i(ys,e.__scopeMenu),o=cw(ys,e.__scopeMenu),s=Vf(ys,e.__scopeMenu),i=p.useRef(null),{pointerGraceTimerRef:a,onPointerGraceIntentChange:l}=s,c={__scopeMenu:e.__scopeMenu},u=p.useCallback(()=>{i.current&&window.clearTimeout(i.current),i.current=null},[]);return p.useEffect(()=>u,[u]),p.useEffect(()=>{const d=a.current;return()=>{window.clearTimeout(d),l(null)}},[a,l]),h.jsx(zf,{asChild:!0,...c,children:h.jsx(Z0,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":hw(n.open),...e,ref:xl(t,o.onTriggerChange),onClick:d=>{var f;(f=e.onClick)==null||f.call(e,d),!(e.disabled||d.defaultPrevented)&&(d.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:F(e.onPointerMove,si(d=>{s.onItemEnter(d),!d.defaultPrevented&&!e.disabled&&!n.open&&!i.current&&(s.onPointerGraceIntentChange(null),i.current=window.setTimeout(()=>{n.onOpenChange(!0),u()},100))})),onPointerLeave:F(e.onPointerLeave,si(d=>{var y,x;u();const f=(y=n.content)==null?void 0:y.getBoundingClientRect();if(f){const m=(x=n.content)==null?void 0:x.dataset.side,b=m==="right",v=b?-5:5,g=f[b?"left":"right"],w=f[b?"right":"left"];s.onPointerGraceIntentChange({area:[{x:d.clientX+v,y:d.clientY},{x:g,y:f.top},{x:w,y:f.top},{x:w,y:f.bottom},{x:g,y:f.bottom}],side:m}),window.clearTimeout(a.current),a.current=window.setTimeout(()=>s.onPointerGraceIntentChange(null),300)}else{if(s.onTriggerLeave(d),d.defaultPrevented)return;s.onPointerGraceIntentChange(null)}})),onKeyDown:F(e.onKeyDown,d=>{var y;const f=s.searchRef.current!=="";e.disabled||f&&d.key===" "||aR[r.dir].includes(d.key)&&(n.onOpenChange(!0),(y=n.content)==null||y.focus(),d.preventDefault())})})})});uw.displayName=ys;var dw="MenuSubContent",fw=p.forwardRef((e,t)=>{const n=Q0(Tt,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,s=Br(Tt,e.__scopeMenu),i=_i(Tt,e.__scopeMenu),a=cw(dw,e.__scopeMenu),l=p.useRef(null),c=fe(t,l);return h.jsx(oi.Provider,{scope:e.__scopeMenu,children:h.jsx($r,{present:r||s.open,children:h.jsx(oi.Slot,{scope:e.__scopeMenu,children:h.jsx(Hf,{id:a.contentId,"aria-labelledby":a.triggerId,...o,ref:c,align:"start",side:i.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:u=>{var d;i.isUsingKeyboardRef.current&&((d=l.current)==null||d.focus()),u.preventDefault()},onCloseAutoFocus:u=>u.preventDefault(),onFocusOutside:F(e.onFocusOutside,u=>{u.target!==a.trigger&&s.onOpenChange(!1)}),onEscapeKeyDown:F(e.onEscapeKeyDown,u=>{i.onClose(),u.preventDefault()}),onKeyDown:F(e.onKeyDown,u=>{var y;const d=u.currentTarget.contains(u.target),f=lR[i.dir].includes(u.key);d&&f&&(s.onOpenChange(!1),(y=a.trigger)==null||y.focus(),u.preventDefault())})})})})})});fw.displayName=dw;function hw(e){return e?"open":"closed"}function tl(e){return e==="indeterminate"}function Gf(e){return tl(e)?"indeterminate":e?"checked":"unchecked"}function PR(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function TR(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function RR(e,t,n){const o=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let i=TR(e,Math.max(s,0));o.length===1&&(i=i.filter(c=>c!==n));const l=i.find(c=>c.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}function NR(e,t){const{x:n,y:r}=e;let o=!1;for(let s=0,i=t.length-1;s<t.length;i=s++){const a=t[s].x,l=t[s].y,c=t[i].x,u=t[i].y;l>r!=u>r&&n<(c-a)*(r-l)/(u-l)+a&&(o=!o)}return o}function jR(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return NR(n,t)}function si(e){return t=>t.pointerType==="mouse"?e(t):void 0}var OR=q0,AR=zf,IR=Y0,MR=J0,LR=Wf,DR=X0,$R=Dl,FR=ew,UR=nw,zR=ow,BR=iw,VR=aw,HR=lw,WR=uw,KR=fw,qf="DropdownMenu",[GR,qO]=pi(qf,[K0]),tt=K0(),[qR,pw]=GR(qf),mw=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:s,onOpenChange:i,modal:a=!0}=e,l=tt(t),c=p.useRef(null),[u=!1,d]=Js({prop:o,defaultProp:s,onChange:i});return h.jsx(qR,{scope:t,triggerId:zo(),triggerRef:c,contentId:zo(),open:u,onOpenChange:d,onOpenToggle:p.useCallback(()=>d(f=>!f),[d]),modal:a,children:h.jsx(OR,{...l,open:u,onOpenChange:d,dir:r,modal:a,children:n})})};mw.displayName=qf;var gw="DropdownMenuTrigger",vw=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,s=pw(gw,n),i=tt(n);return h.jsx(AR,{asChild:!0,...i,children:h.jsx(te.button,{type:"button",id:s.triggerId,"aria-haspopup":"menu","aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":s.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:xl(t,s.triggerRef),onPointerDown:F(e.onPointerDown,a=>{!r&&a.button===0&&a.ctrlKey===!1&&(s.onOpenToggle(),s.open||a.preventDefault())}),onKeyDown:F(e.onKeyDown,a=>{r||(["Enter"," "].includes(a.key)&&s.onOpenToggle(),a.key==="ArrowDown"&&s.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(a.key)&&a.preventDefault())})})})});vw.displayName=gw;var QR="DropdownMenuPortal",yw=e=>{const{__scopeDropdownMenu:t,...n}=e,r=tt(t);return h.jsx(IR,{...r,...n})};yw.displayName=QR;var ww="DropdownMenuContent",xw=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=pw(ww,n),s=tt(n),i=p.useRef(!1);return h.jsx(MR,{id:o.contentId,"aria-labelledby":o.triggerId,...s,...r,ref:t,onCloseAutoFocus:F(e.onCloseAutoFocus,a=>{var l;i.current||(l=o.triggerRef.current)==null||l.focus(),i.current=!1,a.preventDefault()}),onInteractOutside:F(e.onInteractOutside,a=>{const l=a.detail.originalEvent,c=l.button===0&&l.ctrlKey===!0,u=l.button===2||c;(!o.modal||u)&&(i.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});xw.displayName=ww;var YR="DropdownMenuGroup",JR=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=tt(n);return h.jsx(LR,{...o,...r,ref:t})});JR.displayName=YR;var XR="DropdownMenuLabel",bw=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=tt(n);return h.jsx(DR,{...o,...r,ref:t})});bw.displayName=XR;var ZR="DropdownMenuItem",_w=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=tt(n);return h.jsx($R,{...o,...r,ref:t})});_w.displayName=ZR;var eN="DropdownMenuCheckboxItem",Sw=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=tt(n);return h.jsx(FR,{...o,...r,ref:t})});Sw.displayName=eN;var tN="DropdownMenuRadioGroup",nN=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=tt(n);return h.jsx(UR,{...o,...r,ref:t})});nN.displayName=tN;var rN="DropdownMenuRadioItem",Ew=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=tt(n);return h.jsx(zR,{...o,...r,ref:t})});Ew.displayName=rN;var oN="DropdownMenuItemIndicator",kw=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=tt(n);return h.jsx(BR,{...o,...r,ref:t})});kw.displayName=oN;var sN="DropdownMenuSeparator",Cw=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=tt(n);return h.jsx(VR,{...o,...r,ref:t})});Cw.displayName=sN;var iN="DropdownMenuArrow",aN=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=tt(n);return h.jsx(HR,{...o,...r,ref:t})});aN.displayName=iN;var lN="DropdownMenuSubTrigger",Pw=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=tt(n);return h.jsx(WR,{...o,...r,ref:t})});Pw.displayName=lN;var cN="DropdownMenuSubContent",Tw=p.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=tt(n);return h.jsx(KR,{...o,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Tw.displayName=cN;var uN=mw,dN=vw,fN=yw,Rw=xw,Nw=bw,jw=_w,Ow=Sw,Aw=Ew,Iw=kw,Mw=Cw,Lw=Pw,Dw=Tw;const hN=uN,pN=dN,mN=p.forwardRef(({className:e,inset:t,children:n,...r},o)=>h.jsxs(Lw,{ref:o,className:le("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",t&&"pl-8",e),...r,children:[n,h.jsx(AS,{className:"ml-auto h-4 w-4"})]}));mN.displayName=Lw.displayName;const gN=p.forwardRef(({className:e,...t},n)=>h.jsx(Dw,{ref:n,className:le("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
203de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));gN.displayName=Dw.displayName;const $w=p.forwardRef(({className:e,sideOffset:t=4,...n},r)=>h.jsx(fN,{children:h.jsx(Rw,{ref:r,sideOffset:t,className:le("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n})}));$w.displayName=Rw.displayName;const Fw=p.forwardRef(({className:e,inset:t,...n},r)=>h.jsx(jw,{ref:r,className:le("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t&&"pl-8",e),...n}));Fw.displayName=jw.displayName;const vN=p.forwardRef(({className:e,children:t,checked:n,...r},o)=>h.jsxs(Ow,{ref:o,className:le("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:n,...r,children:[h.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:h.jsx(Iw,{children:h.jsx(ky,{className:"h-4 w-4"})})}),t]}));vN.displayName=Ow.displayName;const yN=p.forwardRef(({className:e,children:t,...n},r)=>h.jsxs(Aw,{ref:r,className:le("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[h.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:h.jsx(Iw,{children:h.jsx(DS,{className:"h-2 w-2 fill-current"})})}),t]}));yN.displayName=Aw.displayName;const wN=p.forwardRef(({className:e,inset:t,...n},r)=>h.jsx(Nw,{ref:r,className:le("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...n}));wN.displayName=Nw.displayName;const xN=p.forwardRef(({className:e,...t},n)=>h.jsx(Mw,{ref:n,className:le("-mx-1 my-1 h-px bg-muted",e),...t}));xN.displayName=Mw.displayName;const id=[{code:"en",name:"English",flag:"ðºð¸"},{code:"es",name:"Español",flag:"ðªð¸"},{code:"fr",name:"Français",flag:"ð«ð·"},{code:"de",name:"Deutsch",flag:"ð©ðª"}],Uw=p.createContext(void 0),bN=()=>{const e=navigator.language.split("-")[0];return id.find(t=>t.code===e)||id[0]},_N=async e=>{try{const t=await fetch(`/lang/${e}.json`);if(!t.ok)throw new Error(`Failed to load ${e} translations`);return await t.json()}catch{return console.warn(`Failed to load ${e} translations, falling back to English`),await(await fetch("/lang/en.json")).json()}},$l=({children:e})=>{const[t,n]=p.useState(()=>{const a=localStorage.getItem("selectedLanguage");return a?JSON.parse(a):bN()}),[r,o]=p.useState({});p.useEffect(()=>{_N(t.code).then(o)},[t]);const s=a=>{n(a),localStorage.setItem("selectedLanguage",JSON.stringify(a))},i=a=>{const l=a.split(".");let c=r;for(const u of l)if(c=c==null?void 0:c[u],c===void 0)break;return typeof c=="string"?c:a};return h.jsx(Uw.Provider,{value:{currentLanguage:t,translations:r,changeLanguage:s,t:i},children:e})},sn=()=>{const e=p.useContext(Uw);if(e===void 0)throw new Error("useLanguage must be used within a LanguageProvider");return e},Fl=()=>{const[e,t]=p.useState(!1),{currentLanguage:n,changeLanguage:r,t:o}=sn();p.useEffect(()=>{e?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark")},[e]);const s=()=>{t(!e)};return h.jsx("header",{className:"bg-white/80 dark:bg-gray-900/80 backdrop-blur-md border-b border-gray-200 dark:border-gray-700 sticky top-0 z-50 transition-colors duration-300",children:h.jsxs("div",{className:"container mx-auto px-2 sm:px-4 lg:px-8 py-2 sm:py-3 lg:py-4 flex items-center justify-between",children:[h.jsx("div",{className:"text-sm sm:text-lg lg:text-xl xl:text-2xl font-bold bg-gradient-to-r from-blue-600 to-purple-600 bg-clip-text text-transparent truncate flex-1 mr-2",children:o("title")}),h.jsxs("div",{className:"flex items-center gap-1 sm:gap-2 lg:gap-4",children:[h.jsxs(hN,{children:[h.jsx(pN,{asChild:!0,children:h.jsxs(Pt,{variant:"outline",className:"flex items-center gap-1 bg-white/50 dark:bg-gray-800/50 hover:bg-white dark:hover:bg-gray-800 transition-colors px-1 sm:px-2 lg:px-3 py-1 sm:py-2 text-xs sm:text-sm h-7 sm:h-8 lg:h-10",children:[h.jsx("span",{className:"text-xs sm:text-sm lg:text-lg",children:n.flag}),h.jsx("span",{className:"hidden lg:inline text-xs sm:text-sm",children:n.name}),h.jsx(xf,{className:"h-2 w-2 sm:h-3 sm:w-3 lg:h-4 lg:w-4"})]})}),h.jsx($w,{align:"end",className:"bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700 z-[60] min-w-[100px] sm:min-w-[120px]",children:id.map(i=>h.jsxs(Fw,{onClick:()=>r(i),className:"flex items-center gap-1 sm:gap-2 cursor-pointer hover:bg-gray-100 dark:hover:bg-gray-700 text-xs sm:text-sm py-1 sm:py-2",children:[h.jsx("span",{className:"text-xs sm:text-sm lg:text-lg",children:i.flag}),h.jsx("span",{className:"text-xs sm:text-sm",children:i.name})]},i.code))})]}),h.jsx(Pt,{variant:"outline",size:"icon",onClick:s,className:"bg-white/50 dark:bg-gray-800/50 hover:bg-white dark:hover:bg-gray-800 transition-all duration-300 w-7 h-7 sm:w-8 sm:h-8 lg:w-10 lg:h-10",children:e?h.jsx(zS,{className:"h-3 w-3 sm:h-4 sm:w-4 lg:h-5 lg:w-5 text-yellow-500 transition-transform duration-300 rotate-0"}):h.jsx(FS,{className:"h-3 w-3 sm:h-4 sm:w-4 lg:h-5 lg:w-5 text-blue-600 transition-transform duration-300 rotate-0"})})]})]})})},Qf=p.forwardRef(({className:e,...t},n)=>h.jsx("div",{ref:n,className:le("rounded-lg border bg-card text-card-foreground shadow-sm",e),...t}));
203Qf.displayName="Card";const zw=p.forwardRef(({className:e,...t},n)=>h.jsx("div",{ref:n,className:le("flex flex-col space-y-1.5 p-6",e),...t}));zw.displayName="CardHeader";const Bw=p.forwardRef(({className:e,...t},n)=>h.jsx("h3",{ref:n,className:le("text-2xl font-semibold leading-none tracking-tight",e),...t}));Bw.displayName="CardTitle";const SN=p.forwardRef(({className:e,...t},n)=>h.jsx("p",{ref:n,className:le("text-sm text-muted-foreground",e),...t}));SN.displayName="CardDescription";const Yf=p.forwardRef(({className:e,...t},n)=>h.jsx("div",{ref:n,className:le("p-6 pt-0",e),...t}));Yf.displayName="CardContent";const EN=p.forwardRef(({className:e,...t},n)=>h.jsx("div",{ref:n,className:le("flex items-center p-6 pt-0",e),...t}));EN.displayName="CardFooter";const kN="modulepreload",CN=function(e){return"/"+e},fm={},Ho=function(t,n,r){let o=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const i=document.querySelector("meta[property=csp-nonce]"),a=(i==null?void 0:i.nonce)||(i==null?void 0:i.getAttribute("nonce"));o=Promise.allSettled(n.map(l=>{if(l=CN(l),l in fm)return;fm[l]=!0;const c=l.endsWith(".css"),u=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${u}`))return;const d=document.createElement("link");if(d.rel=c?"stylesheet":kN,c||(d.as="script"),d.crossOrigin="",d.href=l,a&&d.setAttribute("nonce",a),document.head.appendChild(d),c)return new Promise((f,y)=>{d.addEventListener("load",f),d.addEventListener("error",()=>y(new Error(`Unable to preload CSS for ${l}`)))})}))}function s(i){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=i,window.dispatchEvent(a),!a.defaultPrevented)throw i}return o.then(i=>{for(const a of i||[])a.status==="rejected"&&s(a.reason);return t().catch(s)})},PN=e=>{let t;return e?t=e:typeof fetch>"u"?t=(...n)=>Ho(async()=>{const{default:r}=await Promise.resolve().then(()=>es);return{default:r}},void 0).then(({default:r})=>r(...n)):t=fetch,(...n)=>t(...n)};class Jf extends Error{constructor(t,n="FunctionsError",r){super(t),this.name=n,this.context=r}}class TN extends Jf{constructor(t){super("Failed to send a request to the Edge Function","FunctionsFetchError",t)}}class RN extends Jf{constructor(t){super("Relay Error invoking the Edge Function","FunctionsRelayError",t)}}class NN extends Jf{constructor(t){super("Edge Function returned a non-2xx status code","FunctionsHttpError",t)}}var ad;(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"})(ad||(ad={}));var jN=function(e,t,n,r){function o(s){return s instanceof n?s:new n(function(i){i(s)})}return new(n||(n=Promise))(function(s,i){function a(u){try{c(r.next(u))}catch(d){i(d)}}function l(u){try{c(r.throw(u))}catch(d){i(d)}}function c(u){u.done?s(u.value):o(u.value).then(a,l)}c((r=r.apply(e,t||[])).next())})};class ON{constructor(t,{headers:n={},customFetch:r,region:o=ad.Any}={}){this.url=t,this.headers=n,this.region=o,this.fetch=PN(r)}setAuth(t){this.headers.Authorization=`Bearer ${t}`}invoke(t,n={}){var r;return jN(this,void 0,void 0,function*(){try{const{headers:o,method:s,body:i}=n;let a={},{region:l}=n;l||(l=this.region),l&&l!=="any"&&(a["x-region"]=l);let c;i&&(o&&!Object.prototype.hasOwnProperty.call(o,"Content-Type")||!o)&&(typeof Blob<"u"&&i instanceof Blob||i instanceof ArrayBuffer?(a["Content-Type"]="application/octet-stream",c=i):typeof i=="string"?(a["Content-Type"]="text/plain",c=i):typeof FormData<"u"&&i instanceof FormData?c=i:(a["Content-Type"]="application/json",c=JSON.stringify(i)));const u=yield this.fetch(`${this.url}/${t}`,{method:s||"POST",headers:Object.assign(Object.assign(Object.assign({},a),this.headers),o),body:c}).catch(x=>{throw new TN(x)}),d=u.headers.get("x-relay-error");if(d&&d==="true")throw new RN(u);if(!u.ok)throw new NN(u);let f=((r=u.headers.get("Content-Type"))!==null&&r!==void 0?r:"text/plain").split(";")[0].trim(),y;return f==="application/json"?y=yield u.json():f==="application/octet-stream"?y=yield u.blob():f==="text/event-stream"?y=u:f==="multipart/form-data"?y=yield u.formData():y=yield u.text(),{data:y,error:null}}catch(o){return{data:null,error:o}}})}}var ot={},Xf={},Ul={},Si={},zl={},Bl={},AN=function(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")},Wo=AN();const IN=Wo.fetch,Vw=Wo.fetch.bind(Wo),Hw=Wo.Headers,MN=Wo.Request,LN=Wo.Response,es=Object.freeze(Object.defineProperty({__proto__:null,Headers:Hw,Request:MN,Response:LN,default:Vw,fetch:IN},Symbol.toStringTag,{value:"Module"})),DN=ub(es);var Vl={};
203Object.defineProperty(Vl,"__esModule",{value:!0});let $N=class extends Error{constructor(t){super(t.message),this.name="PostgrestError",this.details=t.details,this.hint=t.hint,this.code=t.code}};Vl.default=$N;var Ww=Rt&&Rt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Bl,"__esModule",{value:!0});const FN=Ww(DN),UN=Ww(Vl);let zN=class{constructor(t){this.shouldThrowOnError=!1,this.method=t.method,this.url=t.url,this.headers=t.headers,this.schema=t.schema,this.body=t.body,this.shouldThrowOnError=t.shouldThrowOnError,this.signal=t.signal,this.isMaybeSingle=t.isMaybeSingle,t.fetch?this.fetch=t.fetch:typeof fetch>"u"?this.fetch=FN.default:this.fetch=fetch}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(t,n){return this.headers=Object.assign({},this.headers),this.headers[t]=n,this}then(t,n){this.schema===void 0||(["GET","HEAD"].includes(this.method)?this.headers["Accept-Profile"]=this.schema:this.headers["Content-Profile"]=this.schema),this.method!=="GET"&&this.method!=="HEAD"&&(this.headers["Content-Type"]="application/json");const r=this.fetch;let o=r(this.url.toString(),{method:this.method,headers:this.headers,body:JSON.stringify(this.body),signal:this.signal}).then(async s=>{var i,a,l;let c=null,u=null,d=null,f=s.status,y=s.statusText;if(s.ok){if(this.method!=="HEAD"){const v=await s.text();v===""||(this.headers.Accept==="text/csv"||this.headers.Accept&&this.headers.Accept.includes("application/vnd.pgrst.plan+text")?u=v:u=JSON.parse(v))}const m=(i=this.headers.Prefer)===null||i===void 0?void 0:i.match(/count=(exact|planned|estimated)/),b=(a=s.headers.get("content-range"))===null||a===void 0?void 0:a.split("/");m&&b&&b.length>1&&(d=parseInt(b[1])),this.isMaybeSingle&&this.method==="GET"&&Array.isArray(u)&&(u.length>1?(c={code:"PGRST116",details:`Results contain ${u.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:"JSON object requested, multiple (or no) rows returned"},u=null,d=null,f=406,y="Not Acceptable"):u.length===1?u=u[0]:u=null)}else{const m=await s.text();try{c=JSON.parse(m),Array.isArray(c)&&s.status===404&&(u=[],c=null,f=200,y="OK")}catch{s.status===404&&m===""?(f=204,y="No Content"):c={message:m}}if(c&&this.isMaybeSingle&&(!((l=c==null?void 0:c.details)===null||l===void 0)&&l.includes("0 rows"))&&(c=null,f=200,y="OK"),c&&this.shouldThrowOnError)throw new UN.default(c)}return{error:c,data:u,count:d,status:f,statusText:y}});return this.shouldThrowOnError||(o=o.catch(s=>{var i,a,l;return{error:{message:`${(i=s==null?void 0:s.name)!==null&&i!==void 0?i:"FetchError"}: ${s==null?void 0:s.message}`,details:`${(a=s==null?void 0:s.stack)!==null&&a!==void 0?a:""}`,hint:"",code:`${(l=s==null?void 0:s.code)!==null&&l!==void 0?l:""}`},data:null,count:null,status:0,statusText:""}})),o.then(t,n)}returns(){return this}overrideTypes(){return this}};Bl.default=zN;var BN=Rt&&Rt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(zl,"__esModule",{value:!0});const VN=BN(Bl);let HN=class extends VN.default{select(t){let n=!1;const r=(t??"*").split("").map(o=>/\s/.test(o)&&!n?"":(o==='"'&&(n=!n),o)).join("");return this.url.searchParams.set("select",r),this.headers.Prefer&&(this.headers.Prefer+=","),this.headers.Prefer+="return=representation",this}order(t,{ascending:n=!0,nullsFirst:r,foreignTable:o,referencedTable:s=o}={}){const i=s?`${s}.order`:"order",a=this.url.searchParams.get(i);return this.url.searchParams.set(i,`${a?`${a},`:""}${t}.${n?"asc":"desc"}${r===void 0?"":r?".nullsfirst":".nullslast"}`),this}limit(t,{foreignTable:n,referencedTable:r=n}={}){const o=typeof r>"u"?"limit":`${r}.limit`;return this.url.searchParams.set(o,`${t}`),this}range(t,n,{foreignTable:r,referencedTable:o=r}={}){const s=typeof o>"u"?"offset":`${o}.offset`,i=typeof o>"u"?"limit":`${o}.limit`;return this.url.searchParams.set(s,`${t}`),this.url.searchParams.set(i,`${n-t+1}`),this}abortSignal(t){return this.signal=t,this}single(){return this.headers.Accept="application/vnd.pgrst.object+json",this}maybeSingle(){return this.method==="GET"?this.headers.Accept="application/json":this.headers.Accept="application/vnd.pgrst.object+json",this.isMaybeSingle=!0,this}csv(){return this.headers.Accept="text/csv",this}geojson(){return this.headers.Accept="application/geo+json",this}
203explain({analyze:t=!1,verbose:n=!1,settings:r=!1,buffers:o=!1,wal:s=!1,format:i="text"}={}){var a;const l=[t?"analyze":null,n?"verbose":null,r?"settings":null,o?"buffers":null,s?"wal":null].filter(Boolean).join("|"),c=(a=this.headers.Accept)!==null&&a!==void 0?a:"application/json";return this.headers.Accept=`application/vnd.pgrst.plan+${i}; for="${c}"; options=${l};`,i==="json"?this:this}rollback(){var t;return((t=this.headers.Prefer)!==null&&t!==void 0?t:"").trim().length>0?this.headers.Prefer+=",tx=rollback":this.headers.Prefer="tx=rollback",this}returns(){return this}};zl.default=HN;var WN=Rt&&Rt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Si,"__esModule",{value:!0});const KN=WN(zl);let GN=class extends KN.default{eq(t,n){return this.url.searchParams.append(t,`eq.${n}`),this}neq(t,n){return this.url.searchParams.append(t,`neq.${n}`),this}gt(t,n){return this.url.searchParams.append(t,`gt.${n}`),this}gte(t,n){return this.url.searchParams.append(t,`gte.${n}`),this}lt(t,n){return this.url.searchParams.append(t,`lt.${n}`),this}lte(t,n){return this.url.searchParams.append(t,`lte.${n}`),this}like(t,n){return this.url.searchParams.append(t,`like.${n}`),this}likeAllOf(t,n){return this.url.searchParams.append(t,`like(all).{${n.join(",")}}`),this}likeAnyOf(t,n){return this.url.searchParams.append(t,`like(any).{${n.join(",")}}`),this}ilike(t,n){return this.url.searchParams.append(t,`ilike.${n}`),this}ilikeAllOf(t,n){return this.url.searchParams.append(t,`ilike(all).{${n.join(",")}}`),this}ilikeAnyOf(t,n){return this.url.searchParams.append(t,`ilike(any).{${n.join(",")}}`),this}is(t,n){return this.url.searchParams.append(t,`is.${n}`),this}in(t,n){const r=Array.from(new Set(n)).map(o=>typeof o=="string"&&new RegExp("[,()]").test(o)?`"${o}"`:`${o}`).join(",");return this.url.searchParams.append(t,`in.(${r})`),this}contains(t,n){return typeof n=="string"?this.url.searchParams.append(t,`cs.${n}`):Array.isArray(n)?this.url.searchParams.append(t,`cs.{${n.join(",")}}`):this.url.searchParams.append(t,`cs.${JSON.stringify(n)}`),this}containedBy(t,n){return typeof n=="string"?this.url.searchParams.append(t,`cd.${n}`):Array.isArray(n)?this.url.searchParams.append(t,`cd.{${n.join(",")}}`):this.url.searchParams.append(t,`cd.${JSON.stringify(n)}`),this}rangeGt(t,n){return this.url.searchParams.append(t,`sr.${n}`),this}rangeGte(t,n){return this.url.searchParams.append(t,`nxl.${n}`),this}rangeLt(t,n){return this.url.searchParams.append(t,`sl.${n}`),this}rangeLte(t,n){return this.url.searchParams.append(t,`nxr.${n}`),this}rangeAdjacent(t,n){return this.url.searchParams.append(t,`adj.${n}`),this}overlaps(t,n){return typeof n=="string"?this.url.searchParams.append(t,`ov.${n}`):this.url.searchParams.append(t,`ov.{${n.join(",")}}`),this}textSearch(t,n,{config:r,type:o}={}){let s="";o==="plain"?s="pl":o==="phrase"?s="ph":o==="websearch"&&(s="w");const i=r===void 0?"":`(${r})`;return this.url.searchParams.append(t,`${s}fts${i}.${n}`),this}match(t){return Object.entries(t).forEach(([n,r])=>{this.url.searchParams.append(n,`eq.${r}`)}),this}not(t,n,r){return this.url.searchParams.append(t,`not.${n}.${r}`),this}or(t,{foreignTable:n,referencedTable:r=n}={}){const o=r?`${r}.or`:"or";return this.url.searchParams.append(o,`(${t})`),this}filter(t,n,r){return this.url.searchParams.append(t,`${n}.${r}`),this}};Si.default=GN;var qN=Rt&&Rt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ul,"__esModule",{value:!0});const hs=qN(Si);let QN=class{constructor(t,{headers:n={},schema:r,fetch:o}){this.url=t,this.headers=n,this.schema=r,this.fetch=o}select(t,{head:n=!1,count:r}={}){const o=n?"HEAD":"GET";let s=!1;const i=(t??"*").split("").map(a=>/\s/.test(a)&&!s?"":(a==='"'&&(s=!s),a)).join("");return this.url.searchParams.set("select",i),r&&(this.headers.Prefer=`count=${r}`),new hs.default({method:o,url:this.url,headers:this.headers,schema:this.schema,fetch:this.fetch,allowEmpty:!1})}insert(t,{count:n,defaultToNull:r=!0}={}){const o="POST",s=[];if(this.headers.Prefer&&s.push(this.headers.Prefer),n&&s.push(`count=${n}`),r||s.push("missing=default"),this.headers.Prefer=s.join(","),Array.isArray(t)){const i=t.reduce((a,l)=>a.concat(Object.keys(l)),[]);if(i.length>
2030){const a=[...new Set(i)].map(l=>`"${l}"`);this.url.searchParams.set("columns",a.join(","))}}return new hs.default({method:o,url:this.url,headers:this.headers,schema:this.schema,body:t,fetch:this.fetch,allowEmpty:!1})}upsert(t,{onConflict:n,ignoreDuplicates:r=!1,count:o,defaultToNull:s=!0}={}){const i="POST",a=[`resolution=${r?"ignore":"merge"}-duplicates`];if(n!==void 0&&this.url.searchParams.set("on_conflict",n),this.headers.Prefer&&a.push(this.headers.Prefer),o&&a.push(`count=${o}`),s||a.push("missing=default"),this.headers.Prefer=a.join(","),Array.isArray(t)){const l=t.reduce((c,u)=>c.concat(Object.keys(u)),[]);if(l.length>0){const c=[...new Set(l)].map(u=>`"${u}"`);this.url.searchParams.set("columns",c.join(","))}}return new hs.default({method:i,url:this.url,headers:this.headers,schema:this.schema,body:t,fetch:this.fetch,allowEmpty:!1})}update(t,{count:n}={}){const r="PATCH",o=[];return this.headers.Prefer&&o.push(this.headers.Prefer),n&&o.push(`count=${n}`),this.headers.Prefer=o.join(","),new hs.default({method:r,url:this.url,headers:this.headers,schema:this.schema,body:t,fetch:this.fetch,allowEmpty:!1})}delete({count:t}={}){const n="DELETE",r=[];return t&&r.push(`count=${t}`),this.headers.Prefer&&r.unshift(this.headers.Prefer),this.headers.Prefer=r.join(","),new hs.default({method:n,url:this.url,headers:this.headers,schema:this.schema,fetch:this.fetch,allowEmpty:!1})}};Ul.default=QN;var Hl={},Wl={};Object.defineProperty(Wl,"__esModule",{value:!0});Wl.version=void 0;Wl.version="0.0.0-automated";Object.defineProperty(Hl,"__esModule",{value:!0});Hl.DEFAULT_HEADERS=void 0;const YN=Wl;Hl.DEFAULT_HEADERS={"X-Client-Info":`postgrest-js/${YN.version}`};var Kw=Rt&&Rt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Xf,"__esModule",{value:!0});const JN=Kw(Ul),XN=Kw(Si),ZN=Hl;let ej=class Gw{constructor(t,{headers:n={},schema:r,fetch:o}={}){this.url=t,this.headers=Object.assign(Object.assign({},ZN.DEFAULT_HEADERS),n),this.schemaName=r,this.fetch=o}from(t){const n=new URL(`${this.url}/${t}`);return new JN.default(n,{headers:Object.assign({},this.headers),schema:this.schemaName,fetch:this.fetch})}schema(t){return new Gw(this.url,{headers:this.headers,schema:t,fetch:this.fetch})}rpc(t,n={},{head:r=!1,get:o=!1,count:s}={}){let i;const a=new URL(`${this.url}/rpc/${t}`);let l;r||o?(i=r?"HEAD":"GET",Object.entries(n).filter(([u,d])=>d!==void 0).map(([u,d])=>[u,Array.isArray(d)?`{${d.join(",")}}`:`${d}`]).forEach(([u,d])=>{a.searchParams.append(u,d)})):(i="POST",l=n);const c=Object.assign({},this.headers);return s&&(c.Prefer=`count=${s}`),new XN.default({method:i,url:a,headers:c,schema:this.schemaName,body:l,fetch:this.fetch,allowEmpty:!1})}};Xf.default=ej;var ts=Rt&&Rt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};
203Object.defineProperty(ot,"__esModule",{value:!0});ot.PostgrestError=ot.PostgrestBuilder=ot.PostgrestTransformBuilder=ot.PostgrestFilterBuilder=ot.PostgrestQueryBuilder=ot.PostgrestClient=void 0;const qw=ts(Xf);ot.PostgrestClient=qw.default;const Qw=ts(Ul);ot.PostgrestQueryBuilder=Qw.default;const Yw=ts(Si);ot.PostgrestFilterBuilder=Yw.default;const Jw=ts(zl);ot.PostgrestTransformBuilder=Jw.default;const Xw=ts(Bl);ot.PostgrestBuilder=Xw.default;const Zw=ts(Vl);ot.PostgrestError=Zw.default;var tj=ot.default={PostgrestClient:qw.default,PostgrestQueryBuilder:Qw.default,PostgrestFilterBuilder:Yw.default,PostgrestTransformBuilder:Jw.default,PostgrestBuilder:Xw.default,PostgrestError:Zw.default};const{PostgrestClient:nj,PostgrestQueryBuilder:eA,PostgrestFilterBuilder:tA,PostgrestTransformBuilder:nA,PostgrestBuilder:rA,PostgrestError:oA}=tj,rj="2.11.2",oj={"X-Client-Info":`realtime-js/${rj}`},sj="1.0.0",ex=1e4,ij=1e3;var Eo;(function(e){e[e.connecting=0]="connecting",e[e.open=1]="open",e[e.closing=2]="closing",e[e.closed=3]="closed"})(Eo||(Eo={}));var ut;(function(e){e.closed="closed",e.errored="errored",e.joined="joined",e.joining="joining",e.leaving="leaving"})(ut||(ut={}));var $t;(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"})($t||($t={}));var ld;(function(e){e.websocket="websocket"})(ld||(ld={}));var vr;(function(e){e.Connecting="connecting",e.Open="open",e.Closing="closing",e.Closed="closed"})(vr||(vr={}));class aj{constructor(){this.HEADER_LENGTH=1}decode(t,n){return t.constructor===ArrayBuffer?n(this._binaryDecode(t)):n(typeof t=="string"?JSON.parse(t):{})}_binaryDecode(t){const n=new DataView(t),r=new TextDecoder;return this._decodeBroadcast(t,n,r)}_decodeBroadcast(t,n,r){const o=n.getUint8(1),s=n.getUint8(2);let i=this.HEADER_LENGTH+2;const a=r.decode(t.slice(i,i+o));i=i+o;const l=r.decode(t.slice(i,i+s));i=i+s;const c=JSON.parse(r.decode(t.slice(i,t.byteLength)));return{ref:null,topic:a,event:l,payload:c}}}class tx{constructor(t,n){this.callback=t,this.timerCalc=n,this.timer=void 0,this.tries=0,this.callback=t,this.timerCalc=n}reset(){this.tries=0,clearTimeout(this.timer)}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries=this.tries+1,this.callback()},this.timerCalc(this.tries+1))}}var pe;(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"})(pe||(pe={}));const hm=(e,t,n={})=>{var r;const o=(r=n.skipTypes)!==null&&r!==void 0?r:[];return Object.keys(t).reduce((s,i)=>(s[i]=lj(i,e,t,o),s),{})},lj=(e,t,n,r)=>{const o=t.find(a=>a.name===e),s=o==null?void 0:o.type,i=n[e];return s&&!r.includes(s)?nx(s,i):cd(i)},nx=(e,t)=>{if(e.charAt(0)==="_"){const n=e.slice(1,e.length);return fj(t,n)}switch(e){case pe.bool:return cj(t);case pe.float4:case pe.float8:case pe.int2:case pe.int4:case pe.int8:case pe.numeric:case pe.oid:return uj(t);case pe.json:case pe.jsonb:return dj(t);case pe.timestamp:return hj(t);case pe.abstime:case pe.date:case pe.daterange:case pe.int4range:case pe.int8range:case pe.money:case pe.reltime:case pe.text:case pe.time:case pe.timestamptz:case pe.timetz:case pe.tsrange:case pe.tstzrange:return cd(t);default:return cd(t)}},cd=e=>e,cj=e=>{switch(e){case"t":return!0;case"f":return!1;default:return e}},uj=e=>{if(typeof e=="string"){const t=parseFloat(e);if(!Number.isNaN(t))return t}return e},dj=e=>{if(typeof e=="string")try{return JSON.parse(e)}catch(t){return console.log(`JSON parse error: ${t}`),e}return e},fj=(e,t)=>{if(typeof e!="string")return e;const n=e.length-1,r=e[n];if(e[0]==="{"&&r==="}"){let s;const i=e.slice(1,n);try{s=JSON.parse("["+i+"]")}catch{s=i?i.split(","):[]}return s.map(a=>nx(t,a))}return e},hj=e=>
vendor: 6,037 bytes, line 203
203typeof e=="string"?e.replace(" ","T"):e,rx=e=>{let t=e;return t=t.replace(/^ws/i,"http"),t=t.replace(/(\/socket\/websocket|\/socket|\/websocket)\/?$/i,""),t.replace(/\/+$/,"")};class Vc{constructor(t,n,r={},o=ex){this.channel=t,this.event=n,this.payload=r,this.timeout=o,this.sent=!1,this.timeoutTimer=void 0,this.ref="",this.receivedResp=null,this.recHooks=[],this.refEvent=null}resend(t){this.timeout=t,this._cancelRefEvent(),this.ref="",this.refEvent=null,this.receivedResp=null,this.sent=!1,this.send()}send(){this._hasReceived("timeout")||(this.startTimeout(),this.sent=!0,this.channel.socket.push({topic:this.channel.topic,event:this.event,payload:this.payload,ref:this.ref,join_ref:this.channel._joinRef()}))}updatePayload(t){this.payload=Object.assign(Object.assign({},this.payload),t)}receive(t,n){var r;return this._hasReceived(t)&&n((r=this.receivedResp)===null||r===void 0?void 0:r.response),this.recHooks.push({status:t,callback:n}),this}startTimeout(){if(this.timeoutTimer)return;this.ref=this.channel.socket._makeRef(),this.refEvent=this.channel._replyEventName(this.ref);const t=n=>{this._cancelRefEvent(),this._cancelTimeout(),this.receivedResp=n,this._matchReceive(n)};this.channel._on(this.refEvent,{},t),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}trigger(t,n){this.refEvent&&this.channel._trigger(this.refEvent,{status:t,response:n})}destroy(){this._cancelRefEvent(),this._cancelTimeout()}_cancelRefEvent(){this.refEvent&&this.channel._off(this.refEvent,{})}_cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=void 0}_matchReceive({status:t,response:n}){this.recHooks.filter(r=>r.status===t).forEach(r=>r.callback(n))}_hasReceived(t){return this.receivedResp&&this.receivedResp.status===t}}var pm;(function(e){e.SYNC="sync",e.JOIN="join",e.LEAVE="leave"})(pm||(pm={}));class js{constructor(t,n){this.channel=t,this.state={},this.pendingDiffs=[],this.joinRef=null,this.caller={onJoin:()=>{},onLeave:()=>{},onSync:()=>{}};const r=(n==null?void 0:n.events)||{state:"presence_state",diff:"presence_diff"};this.channel._on(r.state,{},o=>{const{onJoin:s,onLeave:i,onSync:a}=this.caller;this.joinRef=this.channel._joinRef(),this.state=js.syncState(this.state,o,s,i),this.pendingDiffs.forEach(l=>{this.state=js.syncDiff(this.state,l,s,i)}),this.pendingDiffs=[],a()}),this.channel._on(r.diff,{},o=>{const{onJoin:s,onLeave:i,onSync:a}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(o):(this.state=js.syncDiff(this.state,o,s,i),a())}),this.onJoin((o,s,i)=>{this.channel._trigger("presence",{event:"join",key:o,currentPresences:s,newPresences:i})}),this.onLeave((o,s,i)=>{this.channel._trigger("presence",{event:"leave",key:o,currentPresences:s,leftPresences:i})}),this.onSync(()=>{this.channel._trigger("presence",{event:"sync"})})}static syncState(t,n,r,o){const s=this.cloneDeep(t),i=this.transformState(n),a={},l={};return this.map(s,(c,u)=>{i[c]||(l[c]=u)}),this.map(i,(c,u)=>{const d=s[c];if(d){const f=u.map(b=>b.presence_ref),y=d.map(b=>b.presence_ref),x=u.filter(b=>y.indexOf(b.presence_ref)<0),m=d.filter(b=>f.indexOf(b.presence_ref)<0);x.length>0&&(a[c]=x),m.length>0&&(l[c]=m)}else a[c]=u}),this.syncDiff(s,{joins:a,leaves:l},r,o)}static syncDiff(t,n,r,o){const{joins:s,leaves:i}={joins:this.transformState(n.joins),leaves:this.transformState(n.leaves)};return r||(r=()=>{}),o||(o=()=>{}),this.map(s,(a,l)=>{var c;const u=(c=t[a])!==null&&c!==void 0?c:[];if(t[a]=this.cloneDeep(l),u.length>0){const d=t[a].map(y=>y.presence_ref),f=u.filter(y=>d.indexOf(y.presence_ref)<0);t[a].unshift(...f)}r(a,u,l)}),this.map(i,(a,l)=>{let c=t[a];if(!c)return;const u=l.map(d=>d.presence_ref);c=c.filter(d=>u.indexOf(d.presence_ref)<0),t[a]=c,o(a,c,l),c.length===0&&delete t[a]}),t}static map(t,n){return Object.getOwnPropertyNames(t).map(r=>n(r,t[r]))}static transformState(t){return t=this.cloneDeep(t),Object.getOwnPropertyNames(t).reduce((n,r)=>{const o=t[r];return"metas"in o?n[r]=o.metas.map(s=>(s.presence_ref=s.phx_ref,delete s.phx_ref,delete s.phx_ref_prev,s)):n[r]=o,n},{})}static cloneDeep(t){return JSON.parse(JSON.stringify(t))}onJoin(t){this.caller.onJoin=t}onLeave(t){this.caller.onLeave=t}onSync(t){this.caller.onSync=t}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel._joinRef()}}var mm;(function(e){e.ALL="*",e.INSERT="INSERT",e.UPDATE="UPDATE",e.DELETE="DELETE"})(mm||(mm={}));var gm;(function(e){e.BROADCAST="broadcast",e.PRESENCE="presence",e.POSTGRES_CHANGES="postgres_changes",e.SYSTEM="system"})(gm||(gm={}));var un;(function(e){e.SUBSCRIBED="SUBSCRIBED",e.TIMED_OUT="TIMED_OUT",e.CLOSED="CLOSED",e.CHANNEL_ERROR="CHANNEL_ERROR"})(un||(un={}));class Zf{constructor(t,n={config:{}},r){this.topic=t,this.params=n,this.socket=r,this.bindings={},this.state=ut.closed,this.joinedOnce=!1,this.pushBuffer=[],this.subTopic=t.replace(/^realtime:/i,""),this.params.config=Object.assign({broadcast:{ack:!1,self:!1},presence:{key:""},private:!1},n.config),this.timeout=this.socket.timeout,this.joinPush=new Vc(this,$t.join,this.params,this.timeout),this.rejoinTimer=new tx(()=>this._rejoinUntilConnected(),this.socket.reconnectAfterMs),this.joinPush.receive("ok",()=>{this.state=ut.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=ut.closed,this.socket._remove(this)}),this._onError(o=>{this._isLeaving()||this._isClosed()||(this.socket.log("channel",`error ${this.topic}`,o),this.state=ut.errored,this.rejoinTimer.scheduleTimeout())}),this.joinPush.receive("timeout",()=>{this._isJoining()&&(this.socket.log("channel",`timeout ${this.topic}`,this.joinPush.timeout),this.state=ut.errored,this.rejoinTimer.scheduleTimeout())}),this._on($t.reply,{},(o,s)=>{this._trigger(this._replyEventName(s),o)}),this.presence=new js(this),this.broadcastEndpointURL=rx(this.socket.endPoint)+"/api/broadcast",this.private=this.params.config.private||!1}subscribe(t,n=this.timeout){var r,o;
203if(this.socket.isConnected()||this.socket.connect(),this.joinedOnce)throw"tried to subscribe multiple times. 'subscribe' can only be called a single time per channel instance";{const{config:{broadcast:s,presence:i,private:a}}=this.params;this._onError(u=>t==null?void 0:t(un.CHANNEL_ERROR,u)),this._onClose(()=>t==null?void 0:t(un.CLOSED));const l={},c={broadcast:s,presence:i,postgres_changes:(o=(r=this.bindings.postgres_changes)===null||r===void 0?void 0:r.map(u=>u.filter))!==null&&o!==void 0?o:[],private:a};this.socket.accessTokenValue&&(l.access_token=this.socket.accessTokenValue),this.updateJoinPayload(Object.assign({config:c},l)),this.joinedOnce=!0,this._rejoin(n),this.joinPush.receive("ok",async({postgres_changes:u})=>{var d;if(this.socket.setAuth(),u===void 0){t==null||t(un.SUBSCRIBED);return}else{const f=this.bindings.postgres_changes,y=(d=f==null?void 0:f.length)!==null&&d!==void 0?d:0,x=[];for(let m=0;m<y;m++){const b=f[m],{filter:{event:v,schema:g,table:w,filter:_}}=b,S=u&&u[m];if(S&&S.event===v&&S.schema===g&&S.table===w&&S.filter===_)x.push(Object.assign(Object.assign({},b),{id:S.id}));else{this.unsubscribe(),t==null||t(un.CHANNEL_ERROR,new Error("mismatch between server and client bindings for postgres changes"));return}}this.bindings.postgres_changes=x,t&&t(un.SUBSCRIBED);return}}).receive("error",u=>{t==null||t(un.CHANNEL_ERROR,new Error(JSON.stringify(Object.values(u).join(", ")||"error")))}).receive("timeout",()=>{t==null||t(un.TIMED_OUT)})}return this}presenceState(){return this.presence.state}async track(t,n={}){return await this.send({type:"presence",event:"track",payload:t},n.timeout||this.timeout)}async untrack(t={}){return await this.send({type:"presence",event:"untrack"},t)}on(t,n,r){return this._on(t,n,r)}async send(t,n={}){var r,o;if(!this._canPush()&&t.type==="broadcast"){const{event:s,payload:i}=t,l={method:"POST",headers:{Authorization:this.socket.accessTokenValue?`Bearer ${this.socket.accessTokenValue}`:"",apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"},body:JSON.stringify({messages:[{topic:this.subTopic,event:s,payload:i,private:this.private}]})};try{const c=await this._fetchWithTimeout(this.broadcastEndpointURL,l,(r=n.timeout)!==null&&r!==void 0?r:this.timeout);return await((o=c.body)===null||o===void 0?void 0:o.cancel()),c.ok?"ok":"error"}catch(c){return c.name==="AbortError"?"timed out":"error"}}else return new Promise(s=>{var i,a,l;const c=this._push(t.type,t,n.timeout||this.timeout);t.type==="broadcast"&&!(!((l=(a=(i=this.params)===null||i===void 0?void 0:i.config)===null||a===void 0?void 0:a.broadcast)===null||l===void 0)&&l.ack)&&s("ok"),c.receive("ok",()=>s("ok")),c.receive("error",()=>s("error")),c.receive("timeout",()=>s("timed out"))})}updateJoinPayload(t){this.joinPush.updatePayload(t)}unsubscribe(t=this.timeout){this.state=ut.leaving;const n=()=>{this.socket.log("channel",`leave ${this.topic}`),this._trigger($t.close,"leave",this._joinRef())};return this.rejoinTimer.reset(),this.joinPush.destroy(),new Promise(r=>{const o=new Vc(this,$t.leave,{},t);o.receive("ok",()=>{n(),r("ok")}).receive("timeout",()=>{n(),r("timed out")}).receive("error",()=>{r("error")}),o.send(),this._canPush()||o.trigger("ok",{})})}async _fetchWithTimeout(t,n,r){const o=new AbortController,s=setTimeout(()=>o.abort(),r),i=await this.socket.fetch(t,Object.assign(Object.assign({},n),{signal:o.signal}));return clearTimeout(s),i}_push(t,n,r=this.timeout){if(!this.joinedOnce)throw`tried to push '${t}' to '${this.topic}' before joining. Use channel.subscribe() before pushing events`;let o=new Vc(this,t,n,r);return this._canPush()?o.send():(o.startTimeout(),this.pushBuffer.push(o)),o}_onMessage(t,n,r){return n}_isMember(t){return this.topic===t}_joinRef(){return this.joinPush.ref}_trigger(t,n,r){var o,s;const i=t.toLocaleLowerCase(),{close:a,error:l,leave:c,join:u}=$t;if(r&&[a,l,c,u].indexOf(i)>=0&&r!==this._joinRef())return;let f=this._onMessage(i,n,r);if(n&&!f)throw"channel onMessage callbacks must return the payload, modified or unmodified";["insert","update","delete"].includes(i)?(o=this.bindings.postgres_changes)===null||o===void 0||o.filter(y=>{var x,m,b;return((x=y.filter)===null||x===void 0?void 0:x.event)==="*"||((b=(m=y.filter)===null||m===void 0?void 0:m.event)===null||b===void 0?void 0:b.toLocaleLowerCase())===i}).map(y=>y.callback(f,r)):(s=this.bindings[i])===null||s===void 0||s.filter(y=>{var x,m,b,v,g,w;if(["broadcast","presence","postgres_changes"].includes(i))if("id"in y){const _=y.id,S=(x=y.filter)===null||x===void 0?void 0:x.event;return _&&((m=n.ids)===null||m===void 0?void 0:m.includes(_))&&(S==="*"||(S==null?void 0:S.toLocaleLowerCase())===((b=n.data)===null||b===void 0?void 0:b.type.toLocaleLowerCase()))}else{const _=(g=(v=y==null?void 0:y.filter)===null||v===void 0?void 0:v.event)===null||g===void 0?void 0:g.toLocaleLowerCase();return _==="*"||_===((w=n==null?void 0:n.event)===null||w===void 0?void 0:w.toLocaleLowerCase())}else return y.type.toLocaleLowerCase()===i}).map(y=>{if(typeof f=="object"&&"ids"in f){const x=f.data,{schema:m,table:b,commit_timestamp:v,type:g,errors:w}=x;f=Object.assign(Object.assign({},{schema:m,table:b,commit_timestamp:v,eventType:g,new:{},old:{},errors:w}),this._getPayloadRecords(x))}y.callback(f,r)}
vendor: 1,237 bytes, line 203
203)}_isClosed(){return this.state===ut.closed}_isJoined(){return this.state===ut.joined}_isJoining(){return this.state===ut.joining}_isLeaving(){return this.state===ut.leaving}_replyEventName(t){return`chan_reply_${t}`}_on(t,n,r){const o=t.toLocaleLowerCase(),s={type:o,filter:n,callback:r};return this.bindings[o]?this.bindings[o].push(s):this.bindings[o]=[s],this}_off(t,n){const r=t.toLocaleLowerCase();return this.bindings[r]=this.bindings[r].filter(o=>{var s;return!(((s=o.type)===null||s===void 0?void 0:s.toLocaleLowerCase())===r&&Zf.isEqual(o.filter,n))}),this}static isEqual(t,n){if(Object.keys(t).length!==Object.keys(n).length)return!1;for(const r in t)if(t[r]!==n[r])return!1;return!0}_rejoinUntilConnected(){this.rejoinTimer.scheduleTimeout(),this.socket.isConnected()&&this._rejoin()}_onClose(t){this._on($t.close,{},t)}_onError(t){this._on($t.error,{},n=>t(n))}_canPush(){return this.socket.isConnected()&&this._isJoined()}_rejoin(t=this.timeout){this._isLeaving()||(this.socket._leaveOpenTopic(this.topic),this.state=ut.joining,this.joinPush.resend(t))}_getPayloadRecords(t){const n={new:{},old:{}};return(t.type==="INSERT"||t.type==="UPDATE")&&(n.new=hm(t.columns,t.record)),(t.type==="UPDATE"||t.type==="DELETE")&&(n.old=
203hm(t.columns,t.old_record)),n}}const pj=()=>{},mj=typeof WebSocket<"u",gj=` 204 addEventListener("message", (e) => { 205 if (e.data.event === "start") { 206 setInterval(() => postMessage({ event: "keepAlive" }), e.data.interval); 207 } 208 });`;class vj{constructor(t,n){var r;this.accessTokenValue=null,this.apiKey=null,this.channels=[],this.endPoint="",this.httpEndpoint="",this.headers=oj,this.params={},this.timeout=ex,this.heartbeatIntervalMs=3e4,this.heartbeatTimer=void 0,this.pendingHeartbeatRef=null,this.ref=0,this.logger=pj,this.conn=null,this.sendBuffer=[],this.serializer=new aj,this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.accessToken=null,this._resolveFetch=s=>{let i;return s?i=s:typeof fetch>"u"?i=(...a)=>Ho(async()=>{const{default:l}=await Promise.resolve().then(()=>es);return{default:l}},void 0).then(({default:l})=>l(...a)):i=fetch,(...a)=>i(...a)},this.endPoint=`${t}/${ld.websocket}`,this.httpEndpoint=rx(t),n!=null&&n.transport?this.transport=n.transport:this.transport=null,n!=null&&n.params&&(this.params=n.params),n!=null&&n.headers&&(this.headers=Object.assign(Object.assign({},this.headers),n.headers)),n!=null&&n.timeout&&(this.timeout=n.timeout),n!=null&&n.logger&&(this.logger=n.logger),n!=null&&n.heartbeatIntervalMs&&(this.heartbeatIntervalMs=n.heartbeatIntervalMs);const o=(r=n==null?void 0:n.params)===null||r===void 0?void 0:r.apikey;if(o&&(this.accessTokenValue=o,this.apiKey=o),this.reconnectAfterMs=n!=null&&n.reconnectAfterMs?n.reconnectAfterMs:s=>[1e3,2e3,5e3,1e4][s-1]||1e4,this.encode=n!=null&&n.encode?n.encode:(s,i)=>i(JSON.stringify(s)),this.decode=n!=null&&n.decode?n.decode:this.serializer.decode.bind(this.serializer),this.reconnectTimer=new tx(async()=>{this.disconnect(),this.connect()},this.reconnectAfterMs),this.fetch=this._resolveFetch(n==null?void 0:n.fetch),n!=null&&n.worker){if(typeof window<"u"&&!window.Worker)throw new Error("Web Worker is not supported");this.worker=(n==null?void 0:n.worker)||!1,this.workerUrl=n==null?void 0:n.workerUrl}this.accessToken=(n==null?void 0:n.accessToken)||null}connect(){if(!this.conn){if(this.transport){this.conn=new this.transport(this.endpointURL(),void 0,{headers:this.headers});return}if(mj){this.conn=new WebSocket(this.endpointURL()),this.setupConnection();return}this.conn=new yj(this.endpointURL(),void 0,{close:()=>{this.conn=null}}),Ho(async()=>{const{default:t}=await import("./browser-up8QhT-1.js").then(n=>n.b);return{default:t}},[]).then(({default:t})=>{this.conn=new t(this.endpointURL(),void 0,{headers:this.headers}),this.setupConnection()})}}endpointURL(){return this._appendParams(this.endPoint,Object.assign({},this.params,{vsn:sj}))}disconnect(t,n){this.conn&&(this.conn.onclose=function(){},t?this.conn.close(t,n??""):this.conn.close(),this.conn=null,this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.reconnectTimer.reset())}getChannels(){return this.channels}async removeChannel(t){const n=await t.unsubscribe();return this.channels.length===0&&this.disconnect(),n}async removeAllChannels(){const t=await Promise.all(this.channels.map(n=>n.unsubscribe()));return this.disconnect(),t}log(t,n,r){this.logger(t,n,r)}connectionState(){switch(this.conn&&this.conn.readyState){case Eo.connecting:return vr.Connecting;case Eo.open:return vr.Open;case Eo.closing:return vr.Closing;default:return vr.Closed}}isConnected(){return this.connectionState()===vr.Open}channel(t,n={config:{}}){const r=new Zf(`realtime:${t}`,n,this);return this.channels.push(r),r}push(t){const{topic:n,event:r,payload:o,ref:s}=t,i=()=>{this.encode(t,a=>{var l;(l=this.conn)===null||l===void 0||l.send(a)})};this.log("push",`${n} ${r} (${s})`,o),this.isConnected()?i():this.sendBuffer.push(i)}async setAuth(t=null){let n=t||this.accessToken&&await this.accessToken()||this.accessTokenValue;if(n){let r=null;try{r=JSON.parse(atob(n.split(".")[1]))}catch{}if(r&&r.exp&&!(Math.floor(Date.now()/1e3)-r.exp<0))return this.log("auth",`InvalidJWTToken: Invalid value for JWT claim "exp" with value ${r.exp}`),Promise.reject(`InvalidJWTToken: Invalid value for JWT claim "exp" with value ${r.exp}`);
208this.accessTokenValue=n,this.channels.forEach(o=>{n&&o.updateJoinPayload({access_token:n}),o.joinedOnce&&o._isJoined()&&o._push($t.access_token,{access_token:n})})}}async sendHeartbeat(){var t;if(this.isConnected()){if(this.pendingHeartbeatRef){this.pendingHeartbeatRef=null,this.log("transport","heartbeat timeout. Attempting to re-establish connection"),(t=this.conn)===null||t===void 0||t.close(ij,"hearbeat timeout");return}this.pendingHeartbeatRef=this._makeRef(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef}),this.setAuth()}}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(t=>t()),this.sendBuffer=[])}_makeRef(){let t=this.ref+1;return t===this.ref?this.ref=0:this.ref=t,this.ref.toString()}_leaveOpenTopic(t){let n=this.channels.find(r=>r.topic===t&&(r._isJoined()||r._isJoining()));n&&(this.log("transport",`leaving duplicate topic "${t}"`),n.unsubscribe())}_remove(t){this.channels=this.channels.filter(n=>n._joinRef()!==t._joinRef())}setupConnection(){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))}_onConnMessage(t){this.decode(t.data,n=>{let{topic:r,event:o,payload:s,ref:i}=n;i&&i===this.pendingHeartbeatRef&&(this.pendingHeartbeatRef=null),this.log("receive",`${s.status||""} ${r} ${o} ${i&&"("+i+")"||""}`,s),this.channels.filter(a=>a._isMember(r)).forEach(a=>a._trigger(o,s,i)),this.stateChangeCallbacks.message.forEach(a=>a(n))})}async _onConnOpen(){if(this.log("transport",`connected to ${this.endpointURL()}`),this.flushSendBuffer(),this.reconnectTimer.reset(),!this.worker)this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.heartbeatTimer=setInterval(()=>this.sendHeartbeat(),this.heartbeatIntervalMs);else{this.workerUrl?this.log("worker",`starting worker for from ${this.workerUrl}`):this.log("worker","starting default worker");const t=this._workerObjectUrl(this.workerUrl);this.workerRef=new Worker(t),this.workerRef.onerror=n=>{this.log("worker","worker error",n.message),this.workerRef.terminate()},this.workerRef.onmessage=n=>{n.data.event==="keepAlive"&&this.sendHeartbeat()},this.workerRef.postMessage({event:"start",interval:this.heartbeatIntervalMs})}this.stateChangeCallbacks.open.forEach(t=>t())}_onConnClose(t){this.log("transport","close",t),this._triggerChanError(),this.heartbeatTimer&&clearInterval(this.heartbeatTimer),this.reconnectTimer.scheduleTimeout(),this.stateChangeCallbacks.close.forEach(n=>n(t))}_onConnError(t){this.log("transport",t.message),this._triggerChanError(),this.stateChangeCallbacks.error.forEach(n=>n(t))}_triggerChanError(){this.channels.forEach(t=>t._trigger($t.error))}_appendParams(t,n){if(Object.keys(n).length===0)return t;const r=t.match(/\?/)?"&":"?",o=new URLSearchParams(n);return`${t}${r}${o}`}_workerObjectUrl(t){let n;if(t)n=t;else{const r=new Blob([gj],{type:"application/javascript"});n=URL.createObjectURL(r)}return n}}class yj{constructor(t,n,r){this.binaryType="arraybuffer",this.onclose=()=>{},this.onerror=()=>{},this.onmessage=()=>{},this.onopen=()=>{},this.readyState=Eo.connecting,this.send=()=>{},this.url=null,this.url=t,this.close=r.close}}class eh extends Error{constructor(t){super(t),this.__isStorageError=!0,this.name="StorageError"}}function Oe(e){return typeof e=="object"&&e!==null&&"__isStorageError"in e}class wj extends eh{constructor(t,n){super(t),this.name="StorageApiError",this.status=n}toJSON(){return{name:this.name,message:this.message,status:this.status}}}class ud extends eh{constructor(t,n){super(t),this.name="StorageUnknownError",this.originalError=n}}var xj=function(e,t,n,r){function o(s){return s instanceof n?s:new n(function(i){i(s)})}return new(n||(n=Promise))(function(s,i){function a(u){try{c(r.next(u))}catch(d){i(d)}}function l(u){try{c(r.throw(u))}catch(d){i(d)}}function c(u){u.done?s(u.value):o(u.value).then(a,l)}c((r=r.apply(e,t||[])).next())})};const ox=e=>{let t;return e?t=e:typeof fetch>"u"?t=(...n)=>Ho(async()=>{const{default:r}=await Promise.resolve().then(()=>es);return{default:r}},void 0).then(({default:r})=>r(...n)):t=fetch,(...n)=>t(...n)},bj=()=>xj(void 0,void 0,void 0,function*(){return typeof Response>"u"?(yield Ho(()=>Promise.resolve().then(()=>es),void 0)).Response:Response}),dd=e=>{if(Array.isArray(e))return e.map(n=>dd(n));if(typeof e=="function"||e!==Object(e))return e;const t={};return Object.entries(e).forEach(([n,r])=>{const o=n.replace(/([-_][a-z])/gi,s=>s.toUpperCase().replace(/[-_]/g,""));t[o]=dd(r)}),t};var Vr=function(e,t,n,r){function o(s){return s instanceof n?s:new n(function(i){i(s)})}
208return new(n||(n=Promise))(function(s,i){function a(u){try{c(r.next(u))}catch(d){i(d)}}function l(u){try{c(r.throw(u))}catch(d){i(d)}}function c(u){u.done?s(u.value):o(u.value).then(a,l)}c((r=r.apply(e,t||[])).next())})};const Hc=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e),_j=(e,t,n)=>Vr(void 0,void 0,void 0,function*(){const r=yield bj();e instanceof r&&!(n!=null&&n.noResolveJson)?e.json().then(o=>{t(new wj(Hc(o),e.status||500))}).catch(o=>{t(new ud(Hc(o),o))}):t(new ud(Hc(e),e))}),Sj=(e,t,n,r)=>{const o={method:e,headers:(t==null?void 0:t.headers)||{}};return e==="GET"?o:(o.headers=Object.assign({"Content-Type":"application/json"},t==null?void 0:t.headers),r&&(o.body=JSON.stringify(r)),Object.assign(Object.assign({},o),n))};function Ei(e,t,n,r,o,s){return Vr(this,void 0,void 0,function*(){return new Promise((i,a)=>{e(n,Sj(t,r,o,s)).then(l=>{if(!l.ok)throw l;return r!=null&&r.noResolveJson?l:l.json()}).then(l=>i(l)).catch(l=>_j(l,a,r))})})}function nl(e,t,n,r){return Vr(this,void 0,void 0,function*(){return Ei(e,"GET",t,n,r)})}function An(e,t,n,r,o){return Vr(this,void 0,void 0,function*(){return Ei(e,"POST",t,r,o,n)})}function Ej(e,t,n,r,o){return Vr(this,void 0,void 0,function*(){return Ei(e,"PUT",t,r,o,n)})}function kj(e,t,n,r){return Vr(this,void 0,void 0,function*(){return Ei(e,"HEAD",t,Object.assign(Object.assign({},n),{noResolveJson:!0}),r)})}function sx(e,t,n,r,o){return Vr(this,void 0,void 0,function*(){return Ei(e,"DELETE",t,r,o,n)})}var nt=function(e,t,n,r){function o(s){return s instanceof n?s:new n(function(i){i(s)})}return new(n||(n=Promise))(function(s,i){function a(u){try{c(r.next(u))}catch(d){i(d)}}function l(u){try{c(r.throw(u))}catch(d){i(d)}}function c(u){u.done?s(u.value):o(u.value).then(a,l)}c((r=r.apply(e,t||[])).next())})};const Cj={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},vm={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};class Pj{constructor(t,n={},r,o){this.url=t,this.headers=n,this.bucketId=r,this.fetch=ox(o)}uploadOrUpdate(t,n,r,o){return nt(this,void 0,void 0,function*(){try{let s;const i=Object.assign(Object.assign({},vm),o);let a=Object.assign(Object.assign({},this.headers),t==="POST"&&{"x-upsert":String(i.upsert)});const l=i.metadata;typeof Blob<"u"&&r instanceof Blob?(s=new FormData,s.append("cacheControl",i.cacheControl),l&&s.append("metadata",this.encodeMetadata(l)),s.append("",r)):typeof FormData<"u"&&r instanceof FormData?(s=r,s.append("cacheControl",i.cacheControl),l&&s.append("metadata",this.encodeMetadata(l))):(s=r,a["cache-control"]=`max-age=${i.cacheControl}`,a["content-type"]=i.contentType,l&&(a["x-metadata"]=this.toBase64(this.encodeMetadata(l)))),o!=null&&o.headers&&(a=Object.assign(Object.assign({},a),o.headers));const c=this._removeEmptyFolders(n),u=this._getFinalPath(c),d=yield this.fetch(`${this.url}/object/${u}`,Object.assign({method:t,body:s,headers:a},i!=null&&i.duplex?{duplex:i.duplex}:{})),f=yield d.json();return d.ok?{data:{path:c,id:f.Id,fullPath:f.Key},error:null}:{data:null,error:f}}catch(s){if(Oe(s))return{data:null,error:s};throw s}})}upload(t,n,r){return nt(this,void 0,void 0,function*(){return this.uploadOrUpdate("POST",t,n,r)})}uploadToSignedUrl(t,n,r,o){return nt(this,void 0,void 0,function*(){const s=this._removeEmptyFolders(t),i=this._getFinalPath(s),a=new URL(this.url+`/object/upload/sign/${i}`);a.searchParams.set("token",n);try{let l;const c=Object.assign({upsert:vm.upsert},o),u=Object.assign(Object.assign({},this.headers),{"x-upsert":String(c.upsert)});typeof Blob<"u"&&r instanceof Blob?(l=new FormData,l.append("cacheControl",c.cacheControl),l.append("",r)):typeof FormData<"u"&&r instanceof FormData?(l=r,l.append("cacheControl",c.cacheControl)):(l=r,u["cache-control"]=`max-age=${c.cacheControl}`,u["content-type"]=c.contentType);const d=yield this.fetch(a.toString(),{method:"PUT",body:l,headers:u}),f=yield d.json();return d.ok?{data:{path:s,fullPath:f.Key},error:null}:{data:null,error:f}}catch(l){if(Oe(l))return{data:null,error:l};throw l}})}createSignedUploadUrl(t,n){return nt(this,void 0,void 0,function*(){try{let r=this._getFinalPath(t);const o=Object.assign({},this.headers);n!=null&&n.upsert&&(o["x-upsert"]="true");const s=yield An(this.fetch,`${this.url}/object/upload/sign/${r}`,{},{headers:o}),i=new URL(this.url+s.url),a=i.searchParams.get("token");if(!a)throw new eh("No token returned by API");return{data:{signedUrl:i.toString(),path:t,token:a},error:null}}catch(r){if(Oe(r))return{data:null,error:r};throw r}})}update(t,n,r){return nt(this,void 0,void 0,function*(){return this.uploadOrUpdate("PUT",t,n,r)})}move(t,n,r){return nt(this,void 0,void 0,function*(){try{return{data:yield An(this.fetch,`${this.url}/object/move`,{bucketId:this.bucketId,sourceKey:t,destinationKey:n,destinationBucket:r==null?void 0:r.destinationBucket},{headers:this.headers}),error:null}}catch(o){if(Oe(o))return{data:null,error:o};throw o}})}copy(t,n,r){return nt(this,void 0,void 0,function*(){try{return{data:{path:(yield An(this.fetch,`${this.url}/object/copy`,{bucketId:this.bucketId,sourceKey:t,destinationKey:n,destinationBucket:r==null?void 0:r.destinationBucket},{headers:this.headers})).Key},error:null}}catch(o){if(Oe(o))return{data:null,error:o};throw o}})}createSignedUrl(t,n,r){return nt(this,void 0,void 0,function*(){try{let o=this._getFinalPath(t),s=yield An(this.fetch,`${this.url}/object/sign/${o}
208`,Object.assign({expiresIn:n},r!=null&&r.transform?{transform:r.transform}:{}),{headers:this.headers});const i=r!=null&&r.download?`&download=${r.download===!0?"":r.download}`:"";return s={signedUrl:encodeURI(`${this.url}${s.signedURL}${i}`)},{data:s,error:null}}catch(o){if(Oe(o))return{data:null,error:o};throw o}})}createSignedUrls(t,n,r){return nt(this,void 0,void 0,function*(){try{const o=yield An(this.fetch,`${this.url}/object/sign/${this.bucketId}`,{expiresIn:n,paths:t},{headers:this.headers}),s=r!=null&&r.download?`&download=${r.download===!0?"":r.download}`:"";return{data:o.map(i=>Object.assign(Object.assign({},i),{signedUrl:i.signedURL?encodeURI(`${this.url}${i.signedURL}${s}`):null})),error:null}}catch(o){if(Oe(o))return{data:null,error:o};throw o}})}download(t,n){return nt(this,void 0,void 0,function*(){const o=typeof(n==null?void 0:n.transform)<"u"?"render/image/authenticated":"object",s=this.transformOptsToQueryString((n==null?void 0:n.transform)||{}),i=s?`?${s}`:"";try{const a=this._getFinalPath(t);return{data:yield(yield nl(this.fetch,`${this.url}/${o}/${a}${i}`,{headers:this.headers,noResolveJson:!0})).blob(),error:null}}catch(a){if(Oe(a))return{data:null,error:a};throw a}})}info(t){return nt(this,void 0,void 0,function*(){const n=this._getFinalPath(t);try{const r=yield nl(this.fetch,`${this.url}/object/info/${n}`,{headers:this.headers});return{data:dd(r),error:null}}catch(r){if(Oe(r))return{data:null,error:r};throw r}})}exists(t){return nt(this,void 0,void 0,function*(){const n=this._getFinalPath(t);try{return yield kj(this.fetch,`${this.url}/object/${n}`,{headers:this.headers}),{data:!0,error:null}}catch(r){if(Oe(r)&&r instanceof ud){const o=r.originalError;if([400,404].includes(o==null?void 0:o.status))return{data:!1,error:r}}throw r}})}getPublicUrl(t,n){const r=this._getFinalPath(t),o=[],s=n!=null&&n.download?`download=${n.download===!0?"":n.download}`:"";s!==""&&o.push(s);const a=typeof(n==null?void 0:n.transform)<"u"?"render/image":"object",l=this.transformOptsToQueryString((n==null?void 0:n.transform)||{});l!==""&&o.push(l);let c=o.join("&");return c!==""&&(c=`?${c}`),{data:{publicUrl:encodeURI(`${this.url}/${a}/public/${r}${c}`)}}}remove(t){return nt(this,void 0,void 0,function*(){try{return{data:yield sx(this.fetch,`${this.url}/object/${this.bucketId}`,{prefixes:t},{headers:this.headers}),error:null}}catch(n){if(Oe(n))return{data:null,error:n};throw n}})}list(t,n,r){return nt(this,void 0,void 0,function*(){try{const o=Object.assign(Object.assign(Object.assign({},Cj),n),{prefix:t||""});return{data:yield An(this.fetch,`${this.url}/object/list/${this.bucketId}`,o,{headers:this.headers},r),error:null}}catch(o){if(Oe(o))return{data:null,error:o};throw o}})}encodeMetadata(t){return JSON.stringify(t)}toBase64(t){return typeof Buffer<"u"?Buffer.from(t).toString("base64"):btoa(t)}_getFinalPath(t){return`${this.bucketId}/${t}`}_removeEmptyFolders(t){return t.replace(/^\/|\/$/g,"").replace(/\/+/g,"/")}transformOptsToQueryString(t){const n=[];return t.width&&n.push(`width=${t.width}`),t.height&&n.push(`height=${t.height}`),t.resize&&n.push(`resize=${t.resize}`),t.format&&n.push(`format=${t.format}`),t.quality&&n.push(`quality=${t.quality}`),n.join("&")}}const Tj="2.7.1",Rj={"X-Client-Info":`storage-js/${Tj}`};var Jr=function(e,t,n,r){function o(s){return s instanceof n?s:new n(function(i){i(s)})}return new(n||(n=Promise))(function(s,i){function a(u){try{c(r.next(u))}catch(d){i(d)}}function l(u){try{c(r.throw(u))}catch(d){i(d)}}function c(u){u.done?s(u.value):o(u.value).then(a,l)}c((r=r.apply(e,t||[])).next())})};class Nj{constructor(t,n={},r){this.url=t,this.headers=Object.assign(Object.assign({},Rj),n),this.fetch=ox(r)}listBuckets(){return Jr(this,void 0,void 0,function*(){try{return{data:yield nl(this.fetch,`${this.url}/bucket`,{headers:this.headers}),error:null}}catch(t){if(Oe(t))return{data:null,error:t};throw t}})}getBucket(t){return Jr(this,void 0,void 0,function*(){try{return{data:yield nl(this.fetch,`${this.url}/bucket/${t}`,{headers:this.headers}),error:null}}catch(n){if(Oe(n))return{data:null,error:n};throw n}})}createBucket(t,n={public:!1}){return Jr(this,void 0,void 0,function*(){try{return{data:yield An(this.fetch,`${this.url}/bucket`,{id:t,name:t,public:n.public,file_size_limit:n.fileSizeLimit,allowed_mime_types:n.allowedMimeTypes},{headers:this.headers}),error:null}}catch(r){if(Oe(r))return{data:null,error:r};throw r}})}updateBucket(t,n){return Jr(this,void 0,void 0,function*(){try{return{data:yield Ej(this.fetch,`${this.url}/bucket/${t}`,{id:t,name:t,public:n.public,file_size_limit:n.fileSizeLimit,allowed_mime_types:n.allowedMimeTypes},{headers:this.headers}),error:null}}catch(r){if(Oe(r))return{data:null,error:r};throw r}})}emptyBucket(t){return Jr(this,void 0,void 0,function*(){try{return{data:yield An(this.fetch,`${this.url}/bucket/${t}/empty`,{},{headers:this.headers}),error:null}}catch(n){if(Oe(n))return{data:null,error:n};throw n}})}deleteBucket(t){return Jr(this,void 0,void 0,function*(){try{return{data:yield sx(this.fetch,`${this.url}/bucket/${t}`,{},{headers:this.headers}),error:null}}catch(n){if(Oe(n))return{data:null,error:n};throw n}})}}class jj extends Nj{constructor(t,n={},r){super(t,n,r)}from(t){return new Pj(this.url,this.headers,t,this.fetch)}}
208const Oj="2.49.8";let ws="";typeof Deno<"u"?ws="deno":typeof document<"u"?ws="web":typeof navigator<"u"&&navigator.product==="ReactNative"?ws="react-native":ws="node";const Aj={"X-Client-Info":`supabase-js-${ws}/${Oj}`},Ij={headers:Aj},Mj={schema:"public"},Lj={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},Dj={};var $j=function(e,t,n,r){function o(s){return s instanceof n?s:new n(function(i){i(s)})}return new(n||(n=Promise))(function(s,i){function a(u){try{c(r.next(u))}catch(d){i(d)}}function l(u){try{c(r.throw(u))}catch(d){i(d)}}function c(u){u.done?s(u.value):o(u.value).then(a,l)}c((r=r.apply(e,t||[])).next())})};const Fj=e=>{let t;return e?t=e:typeof fetch>"u"?t=Vw:t=fetch,(...n)=>t(...n)},Uj=()=>typeof Headers>"u"?Hw:Headers,zj=(e,t,n)=>{const r=Fj(n),o=Uj();return(s,i)=>$j(void 0,void 0,void 0,function*(){var a;const l=(a=yield t())!==null&&a!==void 0?a:e;let c=new o(i==null?void 0:i.headers);return c.has("apikey")||c.set("apikey",e),c.has("Authorization")||c.set("Authorization",`Bearer ${l}`),r(s,Object.assign(Object.assign({},i),{headers:c}))})};var Bj=function(e,t,n,r){function o(s){return s instanceof n?s:new n(function(i){i(s)})}return new(n||(n=Promise))(function(s,i){function a(u){try{c(r.next(u))}catch(d){i(d)}}function l(u){try{c(r.throw(u))}catch(d){i(d)}}function c(u){u.done?s(u.value):o(u.value).then(a,l)}c((r=r.apply(e,t||[])).next())})};function Vj(e){return e.endsWith("/")?e:e+"/"}function Hj(e,t){var n,r;const{db:o,auth:s,realtime:i,global:a}=e,{db:l,auth:c,realtime:u,global:d}=t,f={db:Object.assign(Object.assign({},l),o),auth:Object.assign(Object.assign({},c),s),realtime:Object.assign(Object.assign({},u),i),global:Object.assign(Object.assign(Object.assign({},d),a),{headers:Object.assign(Object.assign({},(n=d==null?void 0:d.headers)!==null&&n!==void 0?n:{}),(r=a==null?void 0:a.headers)!==null&&r!==void 0?r:{})}),accessToken:()=>Bj(this,void 0,void 0,function*(){return""})};return e.accessToken?f.accessToken=e.accessToken:delete f.accessToken,f}const ix="2.69.1",to=30*1e3,fd=3,Wc=fd*to,Wj="http://localhost:9999",Kj="supabase.auth.token",Gj={"X-Client-Info":`gotrue-js/${ix}`},hd="X-Supabase-Api-Version",ax={"2024-01-01":{timestamp:Date.parse("2024-01-01T00:00:00.0Z"),name:"2024-01-01"}},qj=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}$|[a-z0-9_-]{2}$)$/i,Qj=6e5;
208class th extends Error{constructor(t,n,r){super(t),this.__isAuthError=!0,this.name="AuthError",this.status=n,this.code=r}}function J(e){return typeof e=="object"&&e!==null&&"__isAuthError"in e}class Yj extends th{constructor(t,n,r){super(t,n,r),this.name="AuthApiError",this.status=n,this.code=r}}function Jj(e){return J(e)&&e.name==="AuthApiError"}class lx extends th{constructor(t,n){super(t),this.name="AuthUnknownError",this.originalError=n}}class cr extends th{constructor(t,n,r,o){super(t,r,o),this.name=n,this.status=r}}class Rn extends cr{constructor(){super("Auth session missing!","AuthSessionMissingError",400,void 0)}}function Xj(e){return J(e)&&e.name==="AuthSessionMissingError"}class Kc extends cr{constructor(){super("Auth session or user missing","AuthInvalidTokenResponseError",500,void 0)}}class na extends cr{constructor(t){super(t,"AuthInvalidCredentialsError",400,void 0)}}class ra extends cr{constructor(t,n=null){super(t,"AuthImplicitGrantRedirectError",500,void 0),this.details=null,this.details=n}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}function Zj(e){return J(e)&&e.name==="AuthImplicitGrantRedirectError"}class ym extends cr{constructor(t,n=null){super(t,"AuthPKCEGrantCodeExchangeError",500,void 0),this.details=null,this.details=n}toJSON(){return{name:this.name,message:this.message,status:this.status,details:this.details}}}class pd extends cr{constructor(t,n){super(t,"AuthRetryableFetchError",n,void 0)}}function Gc(e){return J(e)&&e.name==="AuthRetryableFetchError"}class wm extends cr{constructor(t,n,r){super(t,"AuthWeakPasswordError",n,"weak_password"),this.reasons=r}}class Os extends cr{constructor(t){super(t,"AuthInvalidJwtError",400,"invalid_jwt")}}const xm="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),bm=` 209\r=`.split(""),e2=(()=>{const e=new Array(128);for(let t=0;t<e.length;t+=1)e[t]=-1;for(let t=0;t<bm.length;t+=1)e[bm[t].charCodeAt(0)]=-2;for(let t=0;t<xm.length;t+=1)e[xm[t].charCodeAt(0)]=t;return e})();function cx(e,t,n){const r=e2[e];if(r>-1)for(t.queue=t.queue<<6|r,t.queuedBits+=6;t.queuedBits>=8;)n(t.queue>>t.queuedBits-8&255),t.queuedBits-=8;else{if(r===-2)return;throw new Error(`Invalid Base64-URL character "${String.fromCharCode(e)}"`)}}function _m(e){const t=[],n=i=>{t.push(String.fromCodePoint(i))},r={utf8seq:0,codepoint:0},o={queue:0,queuedBits:0},s=i=>{r2(i,r,n)};for(let i=0;i<e.length;i+=1)cx(e.charCodeAt(i),o,s);return t.join("")}function t2(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 n2(e,t){for(let n=0;n<e.length;n+=1){let r=e.charCodeAt(n);if(r>55295&&r<=56319){const o=(r-55296)*1024&65535;r=(e.charCodeAt(n+1)-56320&65535|o)+65536,n+=1}t2(r,t)}}function r2(e,t,n){if(t.utf8seq===0){if(e<=127){n(e);return}for(let r=1;r<6;r+=1)if(!(e>>7-r&1)){t.utf8seq=r;break}if(t.utf8seq===2)t.codepoint=e&31;else if(t.utf8seq===3)t.codepoint=e&15;else if(t.utf8seq===4)t.codepoint=e&7;else throw new Error("Invalid UTF-8 sequence");t.utf8seq-=1}else if(t.utf8seq>0){if(e<=127)throw new Error("Invalid UTF-8 sequence");t.codepoint=t.codepoint<<6|e&63,t.utf8seq-=1,t.utf8seq===0&&n(t.codepoint)}}function o2(e){const t=[],n={queue:0,queuedBits:0},r=o=>{t.push(o)};for(let o=0;o<e.length;o+=1)cx(e.charCodeAt(o),n,r);return new Uint8Array(t)}function s2(e){const t=[];return n2(e,n=>t.push(n)),new Uint8Array(t)}function i2(e){return Math.round(Date.now()/1e3)+e}function a2(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){const t=Math.random()*16|0;return(e=="x"?t:t&3|8).toString(16)})}const qt=()=>typeof window<"u"&&typeof document<"u",hr={tested:!1,writable:!1},As=()=>{if(!qt())return!1;try{if(typeof globalThis.localStorage!="object")return!1}catch{return!1}if(hr.tested)return hr.writable;const e=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(e,e),globalThis.localStorage.removeItem(e),hr.tested=!0,hr.writable=!0}catch{hr.tested=!0,hr.writable=!1}return hr.writable};function l2(e){const t={},n=new URL(e);if(n.hash&&n.hash[0]==="#")try{new URLSearchParams(n.hash.substring(1)).forEac
209h((o,s)=>{t[s]=o})}catch{}return n.searchParams.forEach((r,o)=>{t[o]=r}),t}const ux=e=>{let t;return e?t=e:typeof fetch>"u"?t=(...n)=>Ho(async()=>{const{default:r}=await Promise.resolve().then(()=>es);return{default:r}},void 0).then(({default:r})=>r(...n)):t=fetch,(...n)=>t(...n)},c2=e=>typeof e=="object"&&e!==null&&"status"in e&&"ok"in e&&"json"in e&&typeof e.json=="function",dx=async(e,t,n)=>{await e.setItem(t,JSON.stringify(n))},oa=async(e,t)=>{const n=await e.getItem(t);if(!n)return null;try{return JSON.parse(n)}catch{return n}},sa=async(e,t)=>{await e.removeItem(t)};class Kl{constructor(){this.promise=new Kl.promiseConstructor((t,n)=>{this.resolve=t,this.reject=n})}}Kl.promiseConstructor=Promise;function qc(e){const t=e.split(".");if(t.length!==3)throw new Os("Invalid JWT structure");for(let r=0;r<t.length;r++)if(!qj.test(t[r]))throw new Os("JWT not in base64url format");return{header:JSON.parse(_m(t[0])),payload:JSON.parse(_m(t[1])),signature:o2(t[2]),raw:{header:t[0],payload:t[1]}}}async function u2(e){return await new Promise(t=>{setTimeout(()=>t(null),e)})}function d2(e,t){return new Promise((r,o)=>{(async()=>{for(let s=0;s<1/0;s++)try{const i=await e(s);if(!t(s,null,i)){r(i);return}}catch(i){if(!t(s,i)){o(i);return}}})()})}function f2(e){return("0"+e.toString(16)).substr(-2)}function h2(){const t=new Uint32Array(56);if(typeof crypto>"u"){const n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",r=n.length;let o="";for(let s=0;s<56;s++)o+=n.charAt(Math.floor(Math.random()*r));return o}return crypto.getRandomValues(t),Array.from(t,f2).join("")}async function p2(e){const n=new TextEncoder().encode(e),r=await crypto.subtle.digest("SHA-256",n),o=new Uint8Array(r);return Array.from(o).map(s=>String.fromCharCode(s)).join("")}async function m2(e){if(!(typeof crypto<"u"&&typeof crypto.subtle<"u"&&typeof TextEncoder<"u"))return console.warn("WebCrypto API is not supported. Code challenge method will default to use plain instead of sha256."),e;const n=await p2(e);return btoa(n).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function Xr(e,t,n=!1){const r=h2();let o=r;n&&(o+="/PASSWORD_RECOVERY"),await dx(e,`${t}-code-verifier`,o);const s=await m2(r);return[s,r===s?"plain":"s256"]}const g2=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;function v2(e){const t=e.headers.get(hd);if(!t||!t.match(g2))return null;try{return new Date(`${t}T00:00:00.0Z`)}catch{return null}}function y2(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 w2(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")}}var x2=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const gr=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e),b2=[502,503,504];async function Sm(e){var t;if(!c2(e))throw new pd(gr(e),0);if(b2.includes(e.status))throw new pd(gr(e),e.status);let n;try{n=await e.json()}catch(s){throw new lx(gr(s),s)}let r;const o=v2(e);if(o&&o.getTime()>=ax["2024-01-01"].timestamp&&typeof n=="object"&&n&&typeof n.code=="string"?r=n.code:typeof n=="object"&&n&&typeof n.error_code=="string"&&(r=n.error_code),r){if(r==="weak_password")throw new wm(gr(n),e.status,((t=n.weak_password)===null||t===void 0?void 0:t.reasons)||[]);if(r==="session_not_found")throw new Rn}else if(typeof n=="object"&&n&&typeof n.weak_password=="object"&&n.weak_password&&Array.isArray(n.weak_password.reasons)&&n.weak_password.reasons.length&&n.weak_password.reasons.reduce((s,i)=>s&&typeof i=="string",!0))throw new wm(gr(n),e.status,n.weak_password.reasons);throw new Yj(gr(n),e.status||500,r)}const _2=(e,t,n,r)=>{const o={method:e,headers:(t==null?void 0:t.headers)||{}};return e==="GET"?o:(o.headers=Object.assign({"Content-Type":"application/json;charset=UTF-8"},t==null?void 0:t.headers),o.body=JSON.stringify(r),Object.assign(Object.assign({},o),n))};async function ee(e,t,n,r){var o;const s=Object.assign({},r==null?void 0:r.headers);s[hd]||(s[hd]=ax["2024-01-01"].name),r!=null&&r.jwt&&(s.Authorization=`Bearer ${r.jwt}`);const i=(o=r==null?void 0:r.query)!==null&&o!==void 0?o:{};r!=null&&r.redirectTo&&(i.redirect_to=r.redirectTo);const a=Object.keys(i).length?"?"+new URLSearchParams(i).toString():"",l=await S2(e,t,n+a,{headers:s,noResolveJson:r==null?void 0:r.noResolveJson},{},r==null?void 0:r.body);return r!=null&&r.xform?r==null?void 0:r.xform(l):{data:Object.assign({},l),error:null}}async function S2(e,t,n,r,o,s){const i=_2(t,r,o,s);let a;try{a=await e(n,Object.assign({},i))}catch(l){throw console.error(l),new pd(gr(l),0)}if(a.ok||await Sm(a),r!=null&&r.noResolveJson)return a;try{return await a.json()}catch(l){await Sm(l)}}function Nn(e){var t;let n=null;P2(e)&&(n=Object.assign({},e),e.expires_at||(n.expires_at=i2(e.expires_in)));const r=(t=e.user)!==null&&t!==void 0?t:e;return{data:{session:n,user:r},error:null}}function Em(e){const t=Nn(e);return!t.error&&e.weak_password&&typeof e.weak_password=="object"&&Array.isArray(e.weak_password.reasons)&&e.weak_password.reasons.length&&e.weak_password.message&&typeof e.weak_password.message=="string"&&e.weak_password.reasons.reduce((n,r)=>n&&typeof r=="string",!0)&&(t.data.weak_password=e.weak_password),t}function Ln(e){var t;return{data:{user:(t=e.user)!==null&&t!==void 0?t:e},error:null}}function E2(e){return{data:e,error:null}}function k2(e){const{action_link:t,email_otp:n,hashed_token:r,redirect_to:o,verification_type:s}=e,i=x2(e,["action_link","email_otp","hashed_token","redirect_to","verification_type"]),a={action_link:t,email_otp:n,hashed_token:r,redirect_to:o,verification_type:s},l=Object.assign({},i);return{data:{properties:a,user:l},error:null}}function C2(e){return e}function P2(e){return e.access_token&&e.refresh_token&&e.expires_in}var T2=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};class R2{constructor({url:t="",headers:n={},fetch:r}){this.url=t,this.headers=n,this.fetch=ux(r),this.mfa={listFactors:this._listFactors.bind(this),deleteFactor:this._deleteFactor.bind(this)}}async signOut(t,n="global"){try{return await ee(this.fetch,"POST",`${this.url}/logout?scope=${n}`,{headers:this.headers,jwt:t,noResolveJson:!0}),{data:null,error:null}}catch(r){if(J(r))return{data:null,error:r};throw r}}async inviteUserByEmail(t,n={}){try{return await ee(this.fetch,"POST",`${this.url}/invite`,{body:{email:t,data:n.data},headers:this.headers,redirectTo:n.redirectTo,xform:Ln})}catch(r){if(J(r))return{data:{user:null},error:r};throw r}}async generateLink(t){try{const{options:n}=t,r=T2(t,["options"]),o=Object.assign(Object.assign({},r),n);return"newEmail"in r&&(o.new_email=r==null?void 0:r.newEmail,delete o.newEmail),await ee(this.fetch,"POST",`${this.url}/admin/generate_link`,{body:o,headers:this.headers,xform:k2,redirectTo:n==null?void 0:n.redirectTo})}catch(n){if(J(n))return{data:{properties:null,user:null},error:n};throw n}}async createUser(t){try{return await ee(this.fetch,"POST",`${this.url}/admin/users`,{body:t,headers:this.headers,xform:Ln})}catch(n){if(J(n))return{data:{user:null},error:n};throw n}}async listUsers(t){var n,r,o,s,i,a,l;try{const c={nextPage:null,lastPage:0,total:0},u=await ee(this.fetch,"GET",`${this.url}/admin/users`,{headers:this.headers,noResolveJson:!0,query:{page:(r=(n=t==null?void 0:t.page)===null||n===void 0?void 0:n.toString())!==null&&r!==void 0?r:"",per_page:(s=(o=t==null?void 0:t.perPage)===null||o===void 0?void 0:o.toString())!==null&&s!==void 0?s:""},xform:C2});if(u.error)throw u.error;const d=await u.json(),f=(i=u.headers.get("x-total-count"))!==null&&i!==void 0?i:0,y=(l=(a=u.headers.get("link"))===null||a===void 0?void 0:a.split(","))!==null&&l!==void 0?l:[];return y.length>0&&(y.forEach(x=>{const m=parseInt(x.split(";")[0].split("=")[1].substring(0,1)),b=JSON.parse(x.split(";")[1].split("=")[1]);c[`${b}Page`]=m}),c.total=parseInt(f)),{data:Object.assign(Object.assign({},d),c),error:null}}catch(c){if(J(c))return{data:{users:[]},error:c};throw c}}async getUserById(t){try{return await ee(this.fetch,"GET",`${this.url}/admin/users/${t}`,{headers:this.headers,xform:Ln})}catch(n){if(J(n))return{data:{user:null},error:n};throw n}}async updateUserById(t,n){try{return await ee(this.fetch,"PUT",`${this.url}/admin/users/${t}`,{body:n,headers:this.headers,xform:Ln})}catch(r){if(J(r))return{data:{user:null},error:r};throw r}}
209async deleteUser(t,n=!1){try{return await ee(this.fetch,"DELETE",`${this.url}/admin/users/${t}`,{headers:this.headers,body:{should_soft_delete:n},xform:Ln})}catch(r){if(J(r))return{data:{user:null},error:r};throw r}}async _listFactors(t){try{const{data:n,error:r}=await ee(this.fetch,"GET",`${this.url}/admin/users/${t.userId}/factors`,{headers:this.headers,xform:o=>({data:{factors:o},error:null})});return{data:n,error:r}}catch(n){if(J(n))return{data:null,error:n};throw n}}async _deleteFactor(t){try{return{data:await ee(this.fetch,"DELETE",`${this.url}/admin/users/${t.userId}/factors/${t.id}`,{headers:this.headers}),error:null}}catch(n){if(J(n))return{data:null,error:n};throw n}}}const N2={getItem:e=>As()?globalThis.localStorage.getItem(e):null,setItem:(e,t)=>{As()&&globalThis.localStorage.setItem(e,t)},removeItem:e=>{As()&&globalThis.localStorage.removeItem(e)}};function km(e={}){return{getItem:t=>e[t]||null,setItem:(t,n)=>{e[t]=n},removeItem:t=>{delete e[t]}}}function j2(){if(typeof globalThis!="object")try{Object.defineProperty(Object.prototype,"__magic__",{get:function(){return this},configurable:!0}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__}catch{typeof self<"u"&&(self.globalThis=self)}}const Zr={debug:!!(globalThis&&As()&&globalThis.localStorage&&globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug")==="true")};class fx extends Error{constructor(t){super(t),this.isAcquireTimeout=!0}}class O2 extends fx{}async function A2(e,t,n){Zr.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquire lock",e,t);const r=new globalThis.AbortController;return t>0&&setTimeout(()=>{r.abort(),Zr.debug&&console.log("@supabase/gotrue-js: navigatorLock acquire timed out",e)},t),await Promise.resolve().then(()=>globalThis.navigator.locks.request(e,t===0?{mode:"exclusive",ifAvailable:!0}:{mode:"exclusive",signal:r.signal},async o=>{if(o){Zr.debug&&console.log("@supabase/gotrue-js: navigatorLock: acquired",e,o.name);try{return await n()}finally{Zr.debug&&console.log("@supabase/gotrue-js: navigatorLock: released",e,o.name)}}else{if(t===0)throw Zr.debug&&console.log("@supabase/gotrue-js: navigatorLock: not immediately available",e),new O2(`Acquiring an exclusive Navigator LockManager lock "${e}" immediately failed`);if(Zr.debug)try{const s=await globalThis.navigator.locks.query();console.log("@supabase/gotrue-js: Navigator LockManager state",JSON.stringify(s,null," "))}catch(s){console.warn("@supabase/gotrue-js: Error when querying Navigator LockManager state",s)}return console.warn("@supabase/gotrue-js: Navigator LockManager returned a null lock when using #request without ifAvailable set to true, it appears this browser is not following the LockManager spec https://developer.mozilla.org/en-US/docs/Web/API/LockManager/request"),await n()}}))}j2();const I2={url:Wj,storageKey:Kj,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:Gj,flowType:"implicit",debug:!1,hasCustomAuthorizationHeader:!1};async function Cm(e,t,n){return await n()}class ii{constructor(t){var n,r;this.memoryStorage=null,this.stateChangeEmitters=new Map,this.autoRefreshTicker=null,this.visibilityChangedCallback=null,this.refreshingDeferred=null,this.initializePromise=null,this.detectSessionInUrl=!0,this.hasCustomAuthorizationHeader=!1,this.suppressGetSessionWarning=!1,this.lockAcquired=!1,this.pendingInLock=[],this.broadcastChannel=null,this.logger=console.log,this.instanceID=ii.nextInstanceID,ii.nextInstanceID+=1,this.instanceID>0&&qt()&&console.warn("Multiple GoTrueClient instances detected in the same browser context. It is not an error, but this should be avoided as it may produce undefined behavior when used concurrently under the same storage key.");const o=Object.assign(Object.assign({},I2),t);if(this.logDebugMessages=!!o.debug,typeof o.debug=="function"&&(this.logger=o.debug),this.persistSession=o.persistSession,this.storageKey=o.storageKey,this.autoRefreshToken=o.autoRefreshToken,this.admin=new R2({url:o.url,headers:o.headers,fetch:o.fetch}),this.url=o.url,this.headers=o.headers,this.fetch=ux(o.fetch),this.lock=o.lock||Cm,this.detectSessionInUrl=o.detectSessionInUrl,this.flowType=o.flowType,this.hasCustomAuthorizationHeader=o.hasCustomAuthorizationHeader,o.lock?this.lock=o.lock:qt()&&(!((n=globalThis==null?void 0:globalThis.navigator)===null||n===void 0)&&n.locks)?this.lock=A2:this.lock=Cm,this.jwks={keys:[]},this.jwks_cached_at=Number.MIN_SAFE_INTEGER,this.mfa={verify:this._verify.bind(this),enroll:this._enroll.bind(this),unenroll:this._unenroll.bind(this),challenge:this._challenge.bind(this),listFactors:this._listFactors.bind(this),challengeAndVerify:this._challengeAndVerify.bind(this),getAuthenticatorAssuranceLevel:this._getAuthenticatorAssuranceLevel.bind(this)},this.persistSession?o.storage?this.storage=o.storage:As()?this.storage=N2:(this.memoryStorage={},this.storage=km(this.memoryStorage)):(this.memoryStorage={},this.storage=km(this.memoryStorage)),qt()&&globalThis.BroadcastChannel&&this.persistSession&&this.storageKey){try{this.broadcastChannel=new globalThis.BroadcastChannel(this.storageKey)}catch(s){console.error("Failed to create a new BroadcastChannel, multi-tab state changes will not be available",s)}(r=this.broadcastChannel)===null||r===void 0||r.addEventListener("message",async s=>{this._debug("received broadcast notification from other tab or client",s),await this._notifyAllSubscribers(s.data.event,s.data.session,!1)})}this.initialize()}_debug(...t){return this.logDebugMessages&&this.logger(`GoTrueClient@${this.instanceID} (${ix}) ${new Date().toISOString()}`,...t),this}async initialize(){return this.initializePromise?await this.initializePromise:(this.initializePromise=(async()=>await this._acquireLock(-1,async()=>await this._initialize()))(),await this.initializePromise)}async _initialize(){var t;try{const n=l2(window.location.href);let r="none";if(this._isImplicitGrantCallback(n)?r="implicit":await this._isPKCECallback(n)&&(r="pkce"),qt()&&this.detectSessionInUrl&&r!=="none"){const{data:o,error:s}=await this._getSessionFromURL(n,r);if(s){if(this._debug("#_initialize()","error detecting session from URL",s),Zj(s)){const l=(t=s.details)===null||t===void 0?void 0:t.code;if(l==="identity_already_exists"||l==="identity_not_found"||l==="single_identity_not_deletable")return{error:s}}return await this._removeSession(),{error:s}}const{session:i,redirectType:a}=o;return this._debug("#_initialize()","detected session in URL",i,"redirect type",a),await this._saveSession(i),setTimeout(async()=>{a==="recovery"?await this._notifyAllSubscribers("PASSWORD_RECOVERY",i):await this._notifyAllSubscribers("SIGNED_IN",i)},0),{error:null}}return await this._recoverAndRefresh(),{error:null}}catch(n){return J(n)?{error:n}:{error:new lx("Unexpected error during initialization",n)}}finally{await this._handleVisibilityChange(),this._debug("#_initialize()","end")}}async signInAnonymously(t){var n,r,o;try{const s=await ee(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{data:(r=(n=t==null?void 0:t.options)===null||n===void 0?void 0:n.data)!==null&&r!==void 0?r:{},gotrue_meta_security:{captcha_token:(o=t==null?void 0:t.options)===null||o===void 0?void 0:o.captchaToken}},xform:Nn}),{data:i,error:a}=s;
209if(a||!i)return{data:{user:null,session:null},error:a};const l=i.session,c=i.user;return i.session&&(await this._saveSession(i.session),await this._notifyAllSubscribers("SIGNED_IN",l)),{data:{user:c,session:l},error:null}}catch(s){if(J(s))return{data:{user:null,session:null},error:s};throw s}}async signUp(t){var n,r,o;try{let s;if("email"in t){const{email:u,password:d,options:f}=t;let y=null,x=null;this.flowType==="pkce"&&([y,x]=await Xr(this.storage,this.storageKey)),s=await ee(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,redirectTo:f==null?void 0:f.emailRedirectTo,body:{email:u,password:d,data:(n=f==null?void 0:f.data)!==null&&n!==void 0?n:{},gotrue_meta_security:{captcha_token:f==null?void 0:f.captchaToken},code_challenge:y,code_challenge_method:x},xform:Nn})}else if("phone"in t){const{phone:u,password:d,options:f}=t;s=await ee(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{phone:u,password:d,data:(r=f==null?void 0:f.data)!==null&&r!==void 0?r:{},channel:(o=f==null?void 0:f.channel)!==null&&o!==void 0?o:"sms",gotrue_meta_security:{captcha_token:f==null?void 0:f.captchaToken}},xform:Nn})}else throw new na("You must provide either an email or phone number and a password");const{data:i,error:a}=s;
209if(a||!i)return{data:{user:null,session:null},error:a};const l=i.session,c=i.user;return i.session&&(await this._saveSession(i.session),await this._notifyAllSubscribers("SIGNED_IN",l)),{data:{user:c,session:l},error:null}}catch(s){if(J(s))return{data:{user:null,session:null},error:s};throw s}}async signInWithPassword(t){try{let n;if("email"in t){const{email:s,password:i,options:a}=t;n=await ee(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{email:s,password:i,gotrue_meta_security:{captcha_token:a==null?void 0:a.captchaToken}},xform:Em})}else if("phone"in t){const{phone:s,password:i,options:a}=t;n=await ee(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{phone:s,password:i,gotrue_meta_security:{captcha_token:a==null?void 0:a.captchaToken}},xform:Em})}else throw new na("You must provide either an email or phone number and a password");const{data:r,error:o}=n;return o?{data:{user:null,session:null},error:o}:!r||!r.session||!r.user?{data:{user:null,session:null},error:new Kc}:(r.session&&(await this._saveSession(r.session),await this._notifyAllSubscribers("SIGNED_IN",r.session)),{data:Object.assign({user:r.user,session:r.session},r.weak_password?{weakPassword:r.weak_password}:null),error:o})}catch(n){if(J(n))return{data:{user:null,session:null},error:n};throw n}}async signInWithOAuth(t){var n,r,o,s;return await this._handleProviderSignIn(t.provider,{redirectTo:(n=t.options)===null||n===void 0?void 0:n.redirectTo,scopes:(r=t.options)===null||r===void 0?void 0:r.scopes,queryParams:(o=t.options)===null||o===void 0?void 0:o.queryParams,skipBrowserRedirect:(s=t.options)===null||s===void 0?void 0:s.skipBrowserRedirect})}async exchangeCodeForSession(t){return await this.initializePromise,this._acquireLock(-1,async()=>this._exchangeCodeForSession(t))}async _exchangeCodeForSession(t){const n=await oa(this.storage,`${this.storageKey}-code-verifier`),[r,o]=(n??"").split("/");try{const{data:s,error:i}=await ee(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:t,code_verifier:r},xform:Nn});if(await sa(this.storage,`${this.storageKey}-code-verifier`),i)throw i;return!s||!s.session||!s.user?{data:{user:null,session:null,redirectType:null},error:new Kc}:(s.session&&(await this._saveSession(s.session),await this._notifyAllSubscribers("SIGNED_IN",s.session)),{data:Object.assign(Object.assign({},s),{redirectType:o??null}),error:i})}catch(s){if(J(s))return{data:{user:null,session:null,redirectType:null},error:s};throw s}}async signInWithIdToken(t){try{const{options:n,provider:r,token:o,access_token:s,nonce:i}=t,a=await ee(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:r,id_token:o,access_token:s,nonce:i,gotrue_meta_security:{captcha_token:n==null?void 0:n.captchaToken}},xform:Nn}),{data:l,error:c}=a;return c?{data:{user:null,session:null},error:c}:!l||!l.session||!l.user?{data:{user:null,session:null},error:new Kc}:(l.session&&(await this._saveSession(l.session),await this._notifyAllSubscribers("SIGNED_IN",l.session)),{data:l,error:c})}catch(n){if(J(n))return{data:{user:null,session:null},error:n};throw n}}async signInWithOtp(t){var n,r,o,s,i;try{if("email"in t){const{email:a,options:l}=t;let c=null,u=null;this.flowType==="pkce"&&([c,u]=await Xr(this.storage,this.storageKey));const{error:d}=await ee(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{email:a,data:(n=l==null?void 0:l.data)!==null&&n!==void 0?n:{},create_user:(r=l==null?void 0:l.shouldCreateUser)!==null&&r!==void 0?r:!0,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken},code_challenge:c,code_challenge_method:u},redirectTo:l==null?void 0:l.emailRedirectTo});return{data:{user:null,session:null},error:d}}if("phone"in t){const{phone:a,options:l}=t,{data:c,error:u}=await ee(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{phone:a,data:(o=l==null?void 0:l.data)!==null&&o!==void 0?o:{},create_user:(s=l==null?void 0:l.shouldCreateUser)!==null&&s!==void 0?s:!0,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken},channel:(i=l==null?void 0:l.channel)!==null&&i!==void 0?i:"sms"}});return{data:{user:null,session:null,messageId:c==null?void 0:c.message_id},error:u}}throw new na("You must provide either an email or phone number.")}catch(a){if(J(a))return{data:{user:null,session:null},error:a};throw a}}async verifyOtp(t){var n,r;try{let o,s;"options"in t&&(o=(n=t.options)===null||n===void 0?void 0:n.redirectTo,s=(r=t.options)===null||r===void 0?void 0:r.captchaToken);const{data:i,error:a}=await ee(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},t),{gotrue_meta_security:{captcha_token:s}}),redirectTo:o,xform:Nn});if(a)throw a;if(!i)throw new Error("An error occurred on token verification.");const l=i.session,c=i.user;return l!=null&&l.access_token&&(await this._saveSession(l),await this._notifyAllSubscribers(t.type=="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",l)),{data:{user:c,session:l},error:null}}catch(o){if(J(o))return{data:{user:null,session:null},error:o};throw o}}async signInWithSSO(t){var n,r,o;try{let s=null,i=null;return this.flowType==="pkce"&&([s,i]=await Xr(this.storage,this.storageKey)),await ee(this.fetch,"POST",`${this.url}/sso`,{body:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},"providerId"in t?{provider_id:t.providerId}:null),"domain"in t?{domain:t.domain}:null),{redirect_to:(r=(n=t.options)===null||n===void 0?void 0:n.redirectTo)!==null&&r!==void 0?r:void 0}),!((o=t==null?void 0:t.options)===null||o===void 0)&&o.captchaToken?{gotrue_meta_security:{captcha_token:t.options.captchaToken}}:null),{skip_http_redirect:!0,code_challenge:s,code_challenge_method:i}),headers:this.headers,xform:E2})}catch(s){if(J(s))return{data:null,error:s};throw s}}async reauthenticate(){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._reauthenticate())}async _reauthenticate(){try{return await this._useSession(async t=>{const{data:{session:n},error:r}=t;if(r)throw r;if(!n)throw new Rn;const{error:o}=await ee(this.fetch,"GET",`${this.url}/reauthenticate`,{headers:this.headers,jwt:n.access_token});return{data:{user:null,session:null},error:o}})}catch(t){if(J(t))return{data:{user:null,session:null},error:t};throw t}}async resend(t){try{const n=`${this.url}/resend`;if("email"in t){const{email:r,type:o,options:s}=t,{error:i}=await ee(this.fetch,"POST",n,{headers:this.headers,body:{email:r,type:o,gotrue_meta_security:{captcha_token:s==null?void 0:s.captchaToken}},redirectTo:s==null?void 0:s.emailRedirectTo});return{data:{user:null,session:null},error:i}}else if("phone"in t){const{phone:r,type:o,options:s}=t,{data:i,error:a}=await ee(this.fetch,"POST",n,{headers:this.headers,body:{phone:r,type:o,gotrue_meta_security:{captcha_token:s==null?void 0:s.captchaToken}}});return{data:{user:null,session:null,messageId:i==null?void 0:i.message_id},error:a}}throw new na("You must provide either an email or phone number and a type")}catch(n){if(J(n))return{data:{user:null,session:null},error:n};throw n}}async getSession(){return await this.initializePromise,await this._acquireLock(-1,async()=>this._useSession(async n=>n))}async _acquireLock(t,n){this._debug("#_acquireLock","begin",t);try{if(this.lockAcquired){const r=this.pendingInLock.length?this.pendingInLock[this.pendingInLock.length-1]:Promise.resolve(),o=(async()=>(await r,await n()))();return this.pendingInLock.push((async()=>{try{await o}catch{}})()),o}return await this.lock(`lock:${this.storageKey}`,t,async()=>{this._debug("#_acquireLock","lock acquired for storage key",this.storageKey);try{this.lockAcquired=!0;const r=n();for(this.pendingInLock.push((async()=>{try{await r}catch{}})()),await r;this.pendingInLock.length;){const o=[...this.pendingInLock];await Promise.all(o),this.pendingInLock.splice(0,o.length)}return await r}finally{this._debug("#_acquireLock","lock released for storage key",this.storageKey),this.lockAcquired=!1}})}finally{this._debug("#_acquireLock","end")}}async _useSession(t){this._debug("#_useSession","begin");try{const n=await this.__loadSession();return await t(n)}finally{this._debug("#_useSession","end")}}async __loadSession(){this._debug("#__loadSession()","begin"),this.lockAcquired||this._debug("#__loadSession()","used outside of an acquired lock!",new Error().stack);try{let t=null;const n=await oa(this.storage,this.storageKey);if(this._debug("#getSession()","session from storage",n),n!==null&&(this._isValidSession(n)?t=n:(this._debug("#getSession()","session from storage is not val
209id"),await this._removeSession())),!t)return{data:{session:null},error:null};const r=t.expires_at?t.expires_at*1e3-Date.now()<Wc:!1;if(this._debug("#__loadSession()",`session has${r?"":" not"} expired`,"expires_at",t.expires_at),!r){if(this.storage.isServer){let i=this.suppressGetSessionWarning;t=new Proxy(t,{get:(l,c,u)=>(!i&&c==="user"&&(console.warn("Using the user object as returned from supabase.auth.getSession() or from some supabase.auth.onAuthStateChange() events could be insecure! This value comes directly from the storage medium (usually cookies on the server) and may not be authentic. Use supabase.auth.getUser() instead which authenticates the data by contacting the Supabase Auth server."),i=!0,this.suppressGetSessionWarning=!0),Reflect.get(l,c,u))})}return{data:{session:t},error:null}}const{session:o,error:s}=await this._callRefreshToken(t.refresh_token);return s?{data:{session:null},error:s}:{data:{session:o},error:null}}finally{this._debug("#__loadSession()","end")}}async getUser(t){return t?await this._getUser(t):(await this.initializePromise,await this._acquireLock(-1,async()=>await this._getUser()))}async _getUser(t){try{return t?await ee(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:t,xform:Ln}):await this._useSession(async n=>{var r,o,s;const{data:i,error:a}=n;if(a)throw a;return!(!((r=i.session)===null||r===void 0)&&r.access_token)&&!this.hasCustomAuthorizationHeader?{data:{user:null},error:new Rn}:await ee(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:(s=(o=i.session)===null||o===void 0?void 0:o.access_token)!==null&&s!==void 0?s:void 0,xform:Ln})})}catch(n){if(J(n))return Xj(n)&&(await this._removeSession(),await sa(this.storage,`${this.storageKey}-code-verifier`)),{data:{user:null},error:n};throw n}}async updateUser(t,n={}){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._updateUser(t,n))}async _updateUser(t,n={}){try{return await this._useSession(async r=>{const{data:o,error:s}=r;if(s)throw s;if(!o.session)throw new Rn;const i=o.session;let a=null,l=null;this.flowType==="pkce"&&t.email!=null&&([a,l]=await Xr(this.storage,this.storageKey));const{data:c,error:u}=await ee(this.fetch,"PUT",`${this.url}/user`,{headers:this.headers,redirectTo:n==null?void 0:n.emailRedirectTo,body:Object.assign(Object.assign({},t),{code_challenge:a,code_challenge_method:l}),jwt:i.access_token,xform:Ln});if(u)throw u;return i.user=c.user,await this._saveSession(i),await this._notifyAllSubscribers("USER_UPDATED",i),{data:{user:i.user},error:null}})}catch(r){if(J(r))return{data:{user:null},error:r};throw r}}async setSession(t){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._setSession(t))}async _setSession(t){try{if(!t.access_token||!t.refresh_token)throw new Rn;const n=Date.now()/1e3;let r=n,o=!0,s=null;const{payload:i}=qc(t.access_token);if(i.exp&&(r=i.exp,o=r<=n),o){const{session:a,error:l}=await this._callRefreshToken(t.refresh_token);if(l)return{data:{user:null,session:null},error:l};if(!a)return{data:{user:null,session:null},error:null};s=a}else{const{data:a,error:l}=await this._getUser(t.access_token);if(l)throw l;s={access_token:t.access_token,refresh_token:t.refresh_token,user:a.user,token_type:"bearer",expires_in:r-n,expires_at:r},await this._saveSession(s),await this._notifyAllSubscribers("SIGNED_IN",s)}return{data:{user:s.user,session:s},error:null}}catch(n){if(J(n))return{data:{session:null,user:null},error:n};throw n}}async refreshSession(t){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._refreshSession(t))}async _refreshSession(t){try{return await this._useSession(async n=>{var r;if(!t){const{data:i,error:a}=n;if(a)throw a;t=(r=i.session)!==null&&r!==void 0?r:void 0}if(!(t!=null&&t.refresh_token))throw new Rn;const{session:o,error:s}=await this._callRefreshToken(t.refresh_token);return s?{data:{user:null,session:null},error:s}:o?{data:{user:o.user,session:o},error:null}:{data:{user:null,session:null},error:null}})}catch(n){if(J(n))return{data:{user:null,session:null},error:n};throw n}}async _getSessionFromURL(t,n){try{if(!qt())throw new ra("No browser detected.");
209if(t.error||t.error_description||t.error_code)throw new ra(t.error_description||"Error in URL with unspecified error_description",{error:t.error||"unspecified_error",code:t.error_code||"unspecified_code"});switch(n){case"implicit":if(this.flowType==="pkce")throw new ym("Not a valid PKCE flow url.");break;case"pkce":if(this.flowType==="implicit")throw new ra("Not a valid implicit grant flow url.");break;default:}if(n==="pkce"){if(this._debug("#_initialize()","begin","is PKCE flow",!0),!t.code)throw new ym("No code detected.");const{data:g,error:w}=await this._exchangeCodeForSession(t.code);if(w)throw w;const _=new URL(window.location.href);return _.searchParams.delete("code"),window.history.replaceState(window.history.state,"",_.toString()),{data:{session:g.session,redirectType:null},error:null}}const{provider_token:r,provider_refresh_token:o,access_token:s,refresh_token:i,expires_in:a,expires_at:l,token_type:c}=t;if(!s||!a||!i||!c)throw new ra("No session defined in URL");const u=Math.round(Date.now()/1e3),d=parseInt(a);let f=u+d;l&&(f=parseInt(l));const y=f-u;y*1e3<=to&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${y}s, should have been closer to ${d}s`);const x=f-d;u-x>=120?console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale",x,f,u):u-x<0&&console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clock for skew",x,f,u);const{data:m,error:b}=await this._getUser(s);if(b)throw b;const v={provider_token:r,provider_refresh_token:o,access_token:s,expires_in:d,expires_at:f,refresh_token:i,token_type:c,user:m.user};return window.location.hash="",this._debug("#_getSessionFromURL()","clearing window.location.hash"),{data:{session:v,redirectType:t.type},error:null}}catch(r){if(J(r))return{data:{session:null,redirectType:null},error:r};throw r}}_isImplicitGrantCallback(t){return!!(t.access_token||t.error_description)}async _isPKCECallback(t){const n=await oa(this.storage,`${this.storageKey}-code-verifier`);return!!(t.code&&n)}async signOut(t={scope:"global"}){return await this.initializePromise,await this._acquireLock(-1,async()=>await this._signOut(t))}async _signOut({scope:t}={scope:"global"}){return await this._useSession(async n=>{var r;const{data:o,error:s}=n;if(s)return{error:s};const i=(r=o.session)===null||r===void 0?void 0:r.access_token;if(i){const{error:a}=await this.admin.signOut(i,t);if(a&&!(Jj(a)&&(a.status===404||a.status===401||a.status===403)))return{error:a}}return t!=="others"&&(await this._removeSession(),await sa(this.storage,`${this.storageKey}-code-verifier`)),{error:null}})}onAuthStateChange(t){const n=a2(),r={id:n,callback:t,unsubscribe:()=>{this._debug("#unsubscribe()","state change callback with id removed",n),this.stateChangeEmitters.delete(n)}};return this._debug("#onAuthStateChange()","registered callback with id",n),this.stateChangeEmitters.set(n,r),(async()=>(await this.initializePromise,await this._acquireLock(-1,async()=>{this._emitInitialSession(n)})))(),{data:{subscription:r}}}async _emitInitialSession(t){return await this._useSession(async n=>{var r,o;try{const{data:{session:s},error:i}=n;if(i)throw i;await((r=this.stateChangeEmitters.get(t))===null||r===void 0?void 0:r.callback("INITIAL_SESSION",s)),this._debug("INITIAL_SESSION","callback id",t,"session",s)}catch(s){await((o=this.stateChangeEmitters.get(t))===null||o===void 0?void 0:o.callback("INITIAL_SESSION",null)),this._debug("INITIAL_SESSION","callback id",t,"error",s),console.error(s)}})}async resetPasswordForEmail(t,n={}){let r=null,o=null;this.flowType==="pkce"&&([r,o]=await Xr(this.storage,this.storageKey,!0));try{return await ee(this.fetch,"POST",`${this.url}/recover`,{body:{email:t,code_challenge:r,code_challenge_method:o,gotrue_meta_security:{captcha_token:n.captchaToken}},headers:this.headers,redirectTo:n.redirectTo})}catch(s){if(J(s))return{data:null,error:s};throw s}}async getUserIdentities(){var t;try{const{data:n,error:r}=await this.getUser();if(r)throw r;return{data:{identities:(t=n.user.identities)!==null&&t!==void 0?t:[]},error:null}}catch(n){if(J(n))return{data:null,error:n};throw n}}async linkIdentity(t){var n;try{const{data:r,error:o}=await this._useSession(async s=>{var i,a,l,c,u;const{data:d,error:f}=s;if(f)throw f;const y=await this._getUrlForProvider(`${this.url}/user/identities/authorize`,t.provider,{redirectTo:(i=t.options)===null||i===void 0?void 0:i.redirectTo,scopes:(a=t.options)===null||a===void 0?void 0:a.scopes,queryParams:(l=t.options)===null||l===void 0?void 0:l.queryParams,skipBrowserRedirect:!0});return await ee(this.fetch,"GET",y,{headers:this.headers,jwt:(u=(c=d.session)===null||c===void 0?void 0:c.access_token)!==null&&u!==void 0?u:void 0})});if(o)throw o;return qt()&&!(!((n=t.options)===null||n===void 0)&&n.skipBrowserRedirect)&&window.location.assign(r==null?void 0:r.url),{data:{provider:t.provider,url:r==null?void 0:r.url},error:null}}catch(r){if(J(r))return{data:{provider:t.provider,url:null},error:r};throw r}}async unlinkIdentity(t){try{return await this._useSession(async n=>{var r,o;const{data:s,error:i}=n;if(i)throw i;
209return await ee(this.fetch,"DELETE",`${this.url}/user/identities/${t.identity_id}`,{headers:this.headers,jwt:(o=(r=s.session)===null||r===void 0?void 0:r.access_token)!==null&&o!==void 0?o:void 0})})}catch(n){if(J(n))return{data:null,error:n};throw n}}async _refreshAccessToken(t){const n=`#_refreshAccessToken(${t.substring(0,5)}...)`;this._debug(n,"begin");try{const r=Date.now();return await d2(async o=>(o>0&&await u2(200*Math.pow(2,o-1)),this._debug(n,"refreshing attempt",o),await ee(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:t},headers:this.headers,xform:Nn})),(o,s)=>{const i=200*Math.pow(2,o);return s&&Gc(s)&&Date.now()+i-r<to})}catch(r){if(this._debug(n,"error",r),J(r))return{data:{session:null,user:null},error:r};throw r}finally{this._debug(n,"end")}}_isValidSession(t){return typeof t=="object"&&t!==null&&"access_token"in t&&"refresh_token"in t&&"expires_at"in t}async _handleProviderSignIn(t,n){const r=await this._getUrlForProvider(`${this.url}/authorize`,t,{redirectTo:n.redirectTo,scopes:n.scopes,queryParams:n.queryParams});return this._debug("#_handleProviderSignIn()","provider",t,"options",n,"url",r),qt()&&!n.skipBrowserRedirect&&window.location.assign(r),{data:{provider:t,url:r},error:null}}async _recoverAndRefresh(){var t;const n="#_recoverAndRefresh()";this._debug(n,"begin");try{const r=await oa(this.storage,this.storageKey);if(this._debug(n,"session from storage",r),!this._isValidSession(r)){this._debug(n,"session is not valid"),r!==null&&await this._removeSession();return}const o=((t=r.expires_at)!==null&&t!==void 0?t:1/0)*1e3-Date.now()<Wc;if(this._debug(n,`session has${o?"":" not"} expired with margin of ${Wc}s`),o){if(this.autoRefreshToken&&r.refresh_token){const{error:s}=await this._callRefreshToken(r.refresh_token);s&&(console.error(s),Gc(s)||(this._debug(n,"refresh failed with a non-retryable error, removing the session",s),await this._removeSession()))}}else await this._notifyAllSubscribers("SIGNED_IN",r)}catch(r){this._debug(n,"error",r),console.error(r);return}finally{this._debug(n,"end")}}async _callRefreshToken(t){var n,r;if(!t)throw new Rn;if(this.refreshingDeferred)return this.refreshingDeferred.promise;const o=`#_callRefreshToken(${t.substring(0,5)}...)`;this._debug(o,"begin");try{this.refreshingDeferred=new Kl;const{data:s,error:i}=await this._refreshAccessToken(t);if(i)throw i;if(!s.session)throw new Rn;await this._saveSession(s.session),await this._notifyAllSubscribers("TOKEN_REFRESHED",s.session);const a={session:s.session,error:null};return this.refreshingDeferred.resolve(a),a}catch(s){if(this._debug(o,"error",s),J(s)){const i={session:null,error:s};return Gc(s)||await this._removeSession(),(n=this.refreshingDeferred)===null||n===void 0||n.resolve(i),i}throw(r=this.refreshingDeferred)===null||r===void 0||r.reject(s),s}finally{this.refreshingDeferred=null,this._debug(o,"end")}}async _notifyAllSubscribers(t,n,r=!0){const o=`#_notifyAllSubscribers(${t})`;this._debug(o,"begin",n,`broadcast = ${r}`);try{this.broadcastChannel&&r&&this.broadcastChannel.postMessage({event:t,session:n});const s=[],i=Array.from(this.stateChangeEmitters.values()).map(async a=>{try{await a.callback(t,n)}catch(l){s.push(l)}});if(await Promise.all(i),s.length>0){for(let a=0;a<s.length;a+=1)console.error(s[a]);throw s[0]}}finally{this._debug(o,"end")}}async _saveSession(t){this._debug("#_saveSession()",t),this.suppressGetSessionWarning=!0,await dx(this.storage,this.storageKey,t)}async _removeSession(){this._debug("#_removeSession()"),await sa(this.storage,this.storageKey),await this._notifyAllSubscribers("SIGNED_OUT",null)}_removeVisibilityChangedCallback(){this._debug("#_removeVisibilityChangedCallback()");const t=this.visibilityChangedCallback;this.visibilityChangedCallback=null;try{t&&qt()&&(window!=null&&window.removeEventListener)&&window.removeEventListener("visibilitychange",t)}catch(n){console.error("removing visibilitychange callback failed",n)}}async _startAutoRefresh(){await this._stopAutoRefresh(),this._debug("#_startAutoRefresh()");const t=setInterval(()=>this._autoRefreshTokenTick(),to);this.autoRefreshTicker=t,t&&typeof t=="object"&&typeof t.unref=="function"?t.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(t),setTimeout(async()=>{await this.initializePromise,await this._autoRefreshTokenTick()},0)}async _stopAutoRefresh(){this._debug("#_stopAutoRefresh()");const t=this.autoRefreshTicker;this.autoRefreshTicker=null,t&&clearInterval(t)}async startAutoRefresh(){this._removeVisibilityChangedCallback(),await this._startAutoRefresh()}async stopAutoRefresh(){this._removeVisibilityChangedCallback(),await this._stopAutoRefresh()}async _autoRefreshTokenTick(){this._debug("#_autoRefreshTokenTick()","begin");try{await this._acquireLock(0,async()=>{try{const t=Date.now();try{return await this._useSession(async n=>{const{data:{session:r}}=n;if(!r||!r.refresh_token||!r.expires_at){this._debug("#_autoRefreshTokenTick()","no session");return}const o=Math.floor((r.expires_at*1e3-t)/to);this._debug("#_autoRefreshTokenTick()",`access token expires in ${o} ticks, a tick lasts ${to}ms, refresh threshold is ${fd} ticks`),o<=fd&&await this._callRefreshToken(r.refresh_token)})}catch(n){console.error("Auto refresh tick failed with error. This is likely a transient error.",n)}}finally{this._debug("#_autoRefreshTokenTick()","end")}})}catch(t){if(t.isAcquireTimeout||t instanceof fx)this._debug("auto refresh token tick lock not available");else throw t}}async _handleVisibilityChange(){if(this._debug("#_handleVisibilityChange()"),!qt()||!(window!=null&&window.addEventListener))return this.autoRefreshToken&&this.startAutoRefresh(),!1;try{this.visibilityChangedCallback=async()=>await this._onVisibilityChanged(!1),window==null||window.addEventListener("visibilitychange",this.visibilityChangedCallback),await this._onVisibilityChanged(!0)}catch(t){console.error("_handleVisibilityChange",t)}}async _onVisibilityChanged(t){const n=`#_onVisibilityChanged(${t})`;this._debug(n,"visibilityState",document.visibilityState),document.visibilityState==="visible"?(this.autoRefreshToken&&this._startAutoRefresh(),t||(await this.initializePromise,await this._acquireLock(-1,async()=>
209{if(document.visibilityState!=="visible"){this._debug(n,"acquired the lock to recover the session, but the browser visibilityState is no longer visible, aborting");return}await this._recoverAndRefresh()}))):document.visibilityState==="hidden"&&this.autoRefreshToken&&this._stopAutoRefresh()}async _getUrlForProvider(t,n,r){const o=[`provider=${encodeURIComponent(n)}`];if(r!=null&&r.redirectTo&&o.push(`redirect_to=${encodeURIComponent(r.redirectTo)}`),r!=null&&r.scopes&&o.push(`scopes=${encodeURIComponent(r.scopes)}`),this.flowType==="pkce"){const[s,i]=await Xr(this.storage,this.storageKey),a=new URLSearchParams({code_challenge:`${encodeURIComponent(s)}`,code_challenge_method:`${encodeURIComponent(i)}`});o.push(a.toString())}if(r!=null&&r.queryParams){const s=new URLSearchParams(r.queryParams);o.push(s.toString())}return r!=null&&r.skipBrowserRedirect&&o.push(`skip_http_redirect=${r.skipBrowserRedirect}`),`${t}?${o.join("&")}`}async _unenroll(t){try{return await this._useSession(async n=>{var r;const{data:o,error:s}=n;return s?{data:null,error:s}:await ee(this.fetch,"DELETE",`${this.url}/factors/${t.factorId}`,{headers:this.headers,jwt:(r=o==null?void 0:o.session)===null||r===void 0?void 0:r.access_token})})}catch(n){if(J(n))return{data:null,error:n};throw n}}async _enroll(t){try{return await this._useSession(async n=>{var r,o;const{data:s,error:i}=n;if(i)return{data:null,error:i};const a=Object.assign({friendly_name:t.friendlyName,factor_type:t.factorType},t.factorType==="phone"?{phone:t.phone}:{issuer:t.issuer}),{data:l,error:c}=await ee(this.fetch,"POST",`${this.url}/factors`,{body:a,headers:this.headers,jwt:(r=s==null?void 0:s.session)===null||r===void 0?void 0:r.access_token});return c?{data:null,error:c}:(t.factorType==="totp"&&(!((o=l==null?void 0:l.totp)===null||o===void 0)&&o.qr_code)&&(l.totp.qr_code=`data:image/svg+xml;utf-8,${l.totp.qr_code}`),{data:l,error:null})})}catch(n){if(J(n))return{data:null,error:n};throw n}}async _verify(t){return this._acquireLock(-1,async()=>{try{return await this._useSession(async n=>{var r;const{data:o,error:s}=n;if(s)return{data:null,error:s};const{data:i,error:a}=await ee(this.fetch,"POST",`${this.url}/factors/${t.factorId}/verify`,{body:{code:t.code,challenge_id:t.challengeId},headers:this.headers,jwt:(r=o==null?void 0:o.session)===null||r===void 0?void 0:r.access_token});return a?{data:null,error:a}:(await this._saveSession(Object.assign({expires_at:Math.round(Date.now()/1e3)+i.expires_in},i)),await this._notifyAllSubscribers("MFA_CHALLENGE_VERIFIED",i),{data:i,error:a})})}catch(n){if(J(n))return{data:null,error:n};throw n}})}async _challenge(t){return this._acquireLock(-1,async()=>{try{return await this._useSession(async n=>{var r;const{data:o,error:s}=n;return s?{data:null,error:s}:await ee(this.fetch,"POST",`${this.url}/factors/${t.factorId}/challenge`,{body:{channel:t.channel},headers:this.headers,jwt:(r=o==null?void 0:o.session)===null||r===void 0?void 0:r.access_token})})}catch(n){if(J(n))return{data:null,error:n};throw n}})}async _challengeAndVerify(t){const{data:n,error:r}=await this._challenge({factorId:t.factorId});return r?{data:null,error:r}:await this._verify({factorId:t.factorId,challengeId:n.id,code:t.code})}async _listFactors(){const{data:{user:t},error:n}=await this.getUser();if(n)return{data:null,error:n};const r=(t==null?void 0:t.factors)||[],o=r.filter(i=>i.factor_type==="totp"&&i.status==="verified"),s=r.filter(i=>i.factor_type==="phone"&&i.status==="verified");return{data:{all:r,totp:o,phone:s},error:null}}async _getAuthenticatorAssuranceLevel(){return this._acquireLock(-1,async()=>await this._useSession(async t=>{var n,r;const{data:{session:o},error:s}=t;if(s)return{data:null,error:s};if(!o)return{data:{currentLevel:null,nextLevel:null,currentAuthenticationMethods:[]},error:null};const{payload:i}=qc(o.access_token);let a=null;i.aal&&(a=i.aal);let l=a;((r=(n=o.user.factors)===null||n===void 0?void 0:n.filter(d=>d.status==="verified"))!==null&&r!==void 0?r:[]).length>0&&(l="aal2");const u=i.amr||[];return{data:{currentLevel:a,nextLevel:l,currentAuthenticationMethods:u},error:null}}))}async fetchJwk(t,n={keys:[]}){let r=n.keys.find(i=>i.kid===t);if(r||(r=this.jwks.keys.find(i=>i.kid===t),r&&this.jwks_cached_at+Qj>Date.now()))return r;const{data:o,error:s}=await ee(this.fetch,"GET",`${this.url}/.well-known/jwks.json`,{headers:this.headers});if(s)throw s;if(!o.keys||o.keys.length===0)throw new Os("JWKS is empty");if(this.jwks=o,this.jwks_cached_at=Date.now(),r=o.keys.find(i=>i.kid===t),!r)throw new Os("No matching signing key found in JWKS");return r}async getClaims(t,n={keys:[]}){try{let r=t;if(!r){const{data:y,error:x}
209=await this.getSession();if(x||!y.session)return{data:null,error:x};r=y.session.access_token}const{header:o,payload:s,signature:i,raw:{header:a,payload:l}}=qc(r);if(y2(s.exp),!o.kid||o.alg==="HS256"||!("crypto"in globalThis&&"subtle"in globalThis.crypto)){const{error:y}=await this.getUser(r);if(y)throw y;return{data:{claims:s,header:o,signature:i},error:null}}const c=w2(o.alg),u=await this.fetchJwk(o.kid,n),d=await crypto.subtle.importKey("jwk",u,c,!0,["verify"]);if(!await crypto.subtle.verify(c,d,i,s2(`${a}.${l}`)))throw new Os("Invalid JWT signature");return{data:{claims:s,header:o,signature:i},error:null}}catch(r){if(J(r))return{data:null,error:r};throw r}}}ii.nextInstanceID=0;const M2=ii;class L2 extends M2{constructor(t){super(t)}}var D2=function(e,t,n,r){function o(s){return s instanceof n?s:new n(function(i){i(s)})}return new(n||(n=Promise))(function(s,i){function a(u){try{c(r.next(u))}catch(d){i(d)}}function l(u){try{c(r.throw(u))}catch(d){i(d)}}function c(u){u.done?s(u.value):o(u.value).then(a,l)}c((r=r.apply(e,t||[])).next())})};class $2{constructor(t,n,r){var o,s,i;if(this.supabaseUrl=t,this.supabaseKey=n,!t)throw new Error("supabaseUrl is required.");if(!n)throw new Error("supabaseKey is required.");const a=Vj(t),l=new URL(a);this.realtimeUrl=new URL("realtime/v1",l),this.realtimeUrl.protocol=this.realtimeUrl.protocol.replace("http","ws"),this.authUrl=new URL("auth/v1",l),this.storageUrl=new URL("storage/v1",l),this.functionsUrl=new URL("functions/v1",l);const c=`sb-${l.hostname.split(".")[0]}-auth-token`,u={db:Mj,realtime:Dj,auth:Object.assign(Object.assign({},Lj),{storageKey:c}),global:Ij},d=Hj(r??{},u);this.storageKey=(o=d.auth.storageKey)!==null&&o!==void 0?o:"",this.headers=(s=d.global.headers)!==null&&s!==void 0?s:{},d.accessToken?(this.accessToken=d.accessToken,this.auth=new Proxy({},{get:(f,y)=>{throw new Error(`@supabase/supabase-js: Supabase Client is configured with the accessToken option, accessing supabase.auth.${String(y)} is not possible`)}})):this.auth=this._initSupabaseAuthClient((i=d.auth)!==null&&i!==void 0?i:{},this.headers,d.global.fetch),this.fetch=zj(n,this._getAccessToken.bind(this),d.global.fetch),this.realtime=this._initRealtimeClient(Object.assign({headers:this.headers,accessToken:this._getAccessToken.bind(this)},d.realtime)),this.rest=new nj(new URL("rest/v1",l).href,{headers:this.headers,schema:d.db.schema,fetch:this.fetch}),d.accessToken||this._listenForAuthEvents()}get functions(){return new ON(this.functionsUrl.href,{headers:this.headers,customFetch:this.fetch})}get storage(){return new jj(this.storageUrl.href,this.headers,this.fetch)}from(t){return this.rest.from(t)}schema(t){return this.rest.schema(t)}rpc(t,n={},r={}){return this.rest.rpc(t,n,r)}channel(t,n={config:{}}){return this.realtime.channel(t,n)}getChannels(){return this.realtime.getChannels()}removeChannel(t){return this.realtime.removeChannel(t)}removeAllChannels(){return this.realtime.removeAllChannels()}_getAccessToken(){var t,n;return D2(this,void 0,void 0,function*(){if(this.accessToken)return yield this.accessToken();const{data:r}=yield this.auth.getSession();return(n=(t=r.session)===null||t===void 0?void 0:t.access_token)!==null&&n!==void 0?n:null})}_initSupabaseAuthClient({autoRefreshToken:t,persistSession:n,detectSessionInUrl:r,storage:o,storageKey:s,flowType:i,lock:a,debug:l},c,u){const d={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new L2({url:this.authUrl.href,headers:Object.assign(Object.assign({},d),c),storageKey:s,autoRefreshToken:t,persistSession:n,detectSessionInUrl:r,storage:o,flowType:i,lock:a,debug:l,fetch:u,hasCustomAuthorizationHeader:"Authorization"in this.headers})}_initRealtimeClient(t){return new vj(this.realtimeUrl.href,Object.assign(Object.assign({},t),{params:Object.assign({apikey:this.supabaseKey},t==null?void 0:t.params)}))}_listenForAuthEvents(){return this.auth.onAuthStateChange((n,r)=>{this._handleTokenChanged(n,"CLIENT",r==null?void 0:r.access_token)})}_handleTokenChanged(t,n,r){(t==="TOKEN_REFRESHED"||t==="SIGNED_IN")&&this.changedAccessToken!==r?this.changedAccessToken=r:t==="SIGNED_OUT"&&(this.realtime.setAuth(),n=="STORAGE"&&this.auth.signOut(),this.changedAccessToken=void 0)}}
209const F2=(e,t,n)=>new $2(e,t,n),U2="https://zvfxokieqqahupctmyod.supabase.co",z2="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Inp2Znhva2llcXFhaHVwY3RteW9kIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NDg0MTk0NjQsImV4cCI6MjA2Mzk5NTQ2NH0.X_EHTVPrRs_t7ErPADpD6LGnAJr_UBoDGifKaQ5bDzs",hx=F2(U2,z2),B2=e=>/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e),V2=async e=>{if(!B2(e))return{success:!1,message:"Invalid email address!"};try{const{data:t,error:n}=await hx.from("subscribers").insert([{email:e.toLowerCase()}]).select();return n?n.code==="23505"?{success:!0,message:"Thanks for subscribing! (Already registered)"}:(console.error("Supabase error:",n),{success:!1,message:"Subscription failed. Please try again."}):(console.log("Email subscribed to Supabase:",e),{success:!0,message:"Thanks for subscribing!"})}catch(t){return console.error("Error subscribing email:",t),{success:!1,message:"Subscription failed. Please try again."}}};var H2="Label",px=p.forwardRef((e,t)=>h.jsx(te.label,{...e,ref:t,onMouseDown:n=>{var o;n.target.closest("button, input, select, textarea")||((o=e.onMouseDown)==null||o.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));px.displayName=H2;var mx=px;const W2=wf("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),ki=p.forwardRef(({className:e,...t},n)=>h.jsx(mx,{ref:n,className:le(W2(),e),...t}));ki.displayName=mx.displayName;const K2=({value:e,onChange:t,disabled:n})=>{const{t:r}=sn();return h.jsxs("div",{className:"space-y-3",children:[h.jsxs(ki,{htmlFor:"question",className:"text-lg font-medium text-gray-700 dark:text-gray-300 flex items-center gap-2",children:[h.jsx(Cy,{className:"h-5 w-5 text-blue-500"}),r("form.questionLabel")]}),h.jsx("textarea",{id:"question",value:e,onChange:o=>t(o.target.value),placeholder:r("form.questionPlaceholder"),className:"w-full min-h-[120px] px-4 py-3 border border-gray-300 dark:border-gray-600 rounded-lg bg-white dark:bg-gray-900 text-gray-900 dark:text-white placeholder-gray-500 dark:placeholder-gray-400 focus:ring-2 focus:ring-blue-500 focus:border-transparent transition-all duration-200 resize-none shadow-sm",required:!0,disabled:n})]})};function Pm(e,[t,n]){return Math.min(n,Math.max(t,e))}function G2(e){const t=p.useRef({value:e,previous:e});return p.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var q2=[" ","Enter","ArrowUp","ArrowDown"],Q2=[" ","Enter"],Ci="Select",[Gl,ql,Y2]=bl(Ci),[ns,sA]=pi(Ci,[Y2,Xo]),Ql=Xo(),[J2,ur]=ns(Ci),[X2,Z2]=ns(Ci),gx=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:s,value:i,defaultValue:a,onValueChange:l,dir:c,name:u,autoComplete:d,disabled:f,required:y,form:x}=e,m=Ql(t),[b,v]=p.useState(null),[g,w]=p.useState(null),[_,S]=p.useState(!1),C=$f(c),[E=!1,P]=Js({prop:r,defaultProp:o,onChange:s}),[A,j]=Js({prop:i,defaultProp:a,onChange:l}),z=p.useRef(null),L=b?x||!!b.closest("form"):!0,[H,O]=p.useState(new Set),W=Array.from(H).map($=>$.props.value).join(";");return h.jsx(t0,{...m,children:h.jsxs(J2,{required:y,scope:t,trigger:b,onTriggerChange:v,valueNode:g,onValueNodeChange:w,valueNodeHasChildren:_,onValueNodeHasChildrenChange:S,contentId:zo(),value:A,onValueChange:j,open:E,onOpenChange:P,dir:C,triggerPointerDownPosRef:z,disabled:f,children:[h.jsx(Gl.Provider,{scope:t,children:h.jsx(X2,{scope:e.__scopeSelect,onNativeOptionAdd:p.useCallback($=>{O(K=>new Set(K).add($))},[]),onNativeOptionRemove:p.useCallback($=>{O(K=>{const k=new Set(K);return k.delete($),k})},[]),children:n})}),L?h.jsxs(zx,{"aria-hidden":!0,required:y,tabIndex:-1,name:u,autoComplete:d,value:A,onChange:$=>j($.target.value),disabled:f,form:x,children:[A===void 0?h.jsx("option",{value:""}):null,Array.from(H)]},W):null]})})};gx.displayName=Ci;var vx="SelectTrigger",yx=p.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,s=Ql(n),i=ur(vx,n),a=i.disabled||r,l=fe(t,i.onTriggerChange),c=ql(n),u=p.useRef("touch"),[d,f,y]=Bx(m=>{const b=c().filter(w=>!w.disabled),v=b.find(w=>w.value===i.value),g=Vx(b,m,v);g!==void 0&&i.onValueChange(g.value)}),x=m=>{a||(i.onOpenChange(!0),y()),m&&(i.triggerPointerDownPosRef.current={x:Math.round(m.pageX),y:Math.round(m.pageY)})};return h.jsx(Nf,{asChild:!0,...s,children:h.jsx(te.button,{type:"button",role:"combobox","aria-controls":i.contentId,"aria-expanded":i.open,"aria-required":i.required,"aria-autocomplete":"none",dir:i.dir,"data-state":i.open?"open":"closed",disabled:a,"data-disabled":a?"":void 0,"data-placeholder":Ux(i.value)?"":void 0,...o,ref:l,onClick:F(o.onClick,m=>
vendor: 15,982 bytes, line 209
209{m.currentTarget.focus(),u.current!=="mouse"&&x(m)}),onPointerDown:F(o.onPointerDown,m=>{u.current=m.pointerType;const b=m.target;b.hasPointerCapture(m.pointerId)&&b.releasePointerCapture(m.pointerId),m.button===0&&m.ctrlKey===!1&&m.pointerType==="mouse"&&(x(m),m.preventDefault())}),onKeyDown:F(o.onKeyDown,m=>{const b=d.current!=="";!(m.ctrlKey||m.altKey||m.metaKey)&&m.key.length===1&&f(m.key),!(b&&m.key===" ")&&q2.includes(m.key)&&(x(),m.preventDefault())})})})});yx.displayName=vx;var wx="SelectValue",xx=p.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:s,placeholder:i="",...a}=e,l=ur(wx,n),{onValueNodeHasChildrenChange:c}=l,u=s!==void 0,d=fe(t,l.onValueNodeChange);return Ke(()=>{c(u)},[c,u]),h.jsx(te.span,{...a,ref:d,style:{pointerEvents:"none"},children:Ux(l.value)?h.jsx(h.Fragment,{children:i}):s})});xx.displayName=wx;var eO="SelectIcon",bx=p.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return h.jsx(te.span,{"aria-hidden":!0,...o,ref:t,children:r||"â¼"})});bx.displayName=eO;var tO="SelectPortal",_x=e=>h.jsx(_l,{asChild:!0,...e});_x.displayName=tO;var Ir="SelectContent",Sx=p.forwardRef((e,t)=>{const n=ur(Ir,e.__scopeSelect),[r,o]=p.useState();if(Ke(()=>{o(new DocumentFragment)},[]),!n.open){const s=r;return s?Dr.createPortal(h.jsx(Ex,{scope:e.__scopeSelect,children:h.jsx(Gl.Slot,{scope:e.__scopeSelect,children:h.jsx("div",{children:e.children})})}),s):null}return h.jsx(kx,{...e,ref:t})});Sx.displayName=Ir;var At=10,[Ex,dr]=ns(Ir),nO="SelectContentImpl",kx=p.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:s,onPointerDownOutside:i,side:a,sideOffset:l,align:c,alignOffset:u,arrowPadding:d,collisionBoundary:f,collisionPadding:y,sticky:x,hideWhenDetached:m,avoidCollisions:b,...v}=e,g=ur(Ir,n),[w,_]=p.useState(null),[S,C]=p.useState(null),E=fe(t,V=>_(V)),[P,A]=p.useState(null),[j,z]=p.useState(null),L=ql(n),[H,O]=p.useState(!1),W=p.useRef(!1);p.useEffect(()=>{if(w)return D0(w)},[w]),T0();const $=p.useCallback(V=>{const[oe,...ie]=L().map(ae=>ae.ref.current),[ne]=ie.slice(-1),ce=document.activeElement;for(const ae of V)if(ae===ce||(ae==null||ae.scrollIntoView({block:"nearest"}),ae===oe&&S&&(S.scrollTop=0),ae===ne&&S&&(S.scrollTop=S.scrollHeight),ae==null||ae.focus(),document.activeElement!==ce))return},[L,S]),K=p.useCallback(()=>$([P,w]),[$,P,w]);p.useEffect(()=>{H&&K()},[H,K]);const{onOpenChange:k,triggerPointerDownPosRef:T}=g;p.useEffect(()=>{if(w){let V={x:0,y:0};const oe=ne=>{var ce,ae;V={x:Math.abs(Math.round(ne.pageX)-(((ce=T.current)==null?void 0:ce.x)??0)),y:Math.abs(Math.round(ne.pageY)-(((ae=T.current)==null?void 0:ae.y)??0))}},ie=ne=>{V.x<=10&&V.y<=10?ne.preventDefault():w.contains(ne.target)||k(!1),document.removeEventListener("pointermove",oe),T.current=null};return T.current!==null&&(document.addEventListener("pointermove",oe),document.addEventListener("pointerup",ie,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",oe),document.removeEventListener("pointerup",ie,{capture:!0})}}},[w,k,T]),p.useEffect(()=>{const V=()=>k(!1);return window.addEventListener("blur",V),window.addEventListener("resize",V),()=>{window.removeEventListener("blur",V),window.removeEventListener("resize",V)}},[k]);const[D,I]=Bx(V=>{const oe=L().filter(ce=>!ce.disabled),ie=oe.find(ce=>ce.ref.current===document.activeElement),ne=Vx(oe,V,ie);ne&&setTimeout(()=>ne.ref.current.focus())}),B=p.useCallback((V,oe,ie)=>{const ne=!W.current&&!ie;(g.value!==void 0&&g.value===oe||ne)&&(A(V),ne&&(W.current=!0))},[g.value]),G=p.useCallback(()=>w==null?void 0:w.focus(),[w]),re=p.useCallback((V,oe,ie)=>{const ne=!W.current&&!ie;(g.value!==void 0&&g.value===oe||ne)&&z(V)},[g.value]),Ce=r==="popper"?md:Cx,q=Ce===md?{side:a,sideOffset:l,align:c,alignOffset:u,arrowPadding:d,collisionBoundary:f,collisionPadding:y,sticky:x,hideWhenDetached:m,avoidCollisions:b}:{};return h.jsx(Ex,{scope:n,content:w,viewport:S,onViewportChange:C,itemRefCallback:B,selectedItem:P,onItemLeave:G,itemTextRefCallback:re,focusSelectedItem:K,selectedItemText:j,position:r,isPositioned:H,searchRef:D,children:h.jsx(Uf,{as:Or,allowPinchZoom:!0,children:h.jsx(Ff,{asChild:!0,trapped:g.open,onMountAutoFocus:V=>{V.preventDefault()},onUnmountAutoFocus:F(o,V=>{var oe;(oe=g.trigger)==null||oe.focus({preventScroll:!0}),V.preventDefault()}),children:h.jsx(mi,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:V=>V.preventDefault(),onDismiss:()=>g.onOpenChange(!1),children:h.jsx(Ce,{role:"listbox",id:g.contentId,"data-state":g.open?"open":"closed",dir:g.dir,onContextMenu:V=>V.preventDefault(),...v,...q,onPlaced:()=>O(!0),ref:E,style:{display:"flex",flexDirection:"column",outline:"none",...v.style},onKeyDown:F(v.onKeyDown,V=>{const oe=V.ctrlKey||V.altKey||V.metaKey;if(V.key==="Tab"&&V.preventDefault(),!oe&&V.key.length===1&&I(V.key),["ArrowUp","ArrowDown","Home","End"].includes(V.key)){let ne=L().filter(ce=>!ce.disabled).map(ce=>ce.ref.current);if(["ArrowUp","End"].includes(V.key)&&(ne=ne.slice().reverse()),["ArrowUp","ArrowDown"].includes(V.key)){const ce=V.target,ae=ne.indexOf(ce);ne=ne.slice(ae+1)}setTimeout(()=>$(ne)),V.preventDefault()}})})})})})})});kx.displayName=nO;var rO="SelectItemAlignedPosition",Cx=p.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,s=ur(Ir,n),i=dr(Ir,n),[a,l]=p.useState(null),[c,u]=p.useState(null),d=fe(t,E=>u(E)),f=ql(n),y=p.useRef(!1),x=p.useRef(!0),{viewport:m,selectedItem:b,selectedItemText:v,focusSelectedItem:g}=i,w=p.useCallback(()=>{if(s.trigger&&s.valueNode&&a&&c&&m&&b&&v){const E=s.trigger.getBoundingClientRect(),P=c.getBoundingClientRect(),A=s.valueNode.getBoundingClientRect(),j=v.getBoundingClientRect();if(s.dir!=="rtl"){const ce=j.left-P.left,ae=A.left-ce,Ge=E.left-ae,ct=E.width+Ge,_n=Math.max(ct,P.width),bt=window.innerWidth-At,fr=Pm(ae,[At,Math.max(At,bt-_n)]);a.style.minWidth=ct+"px",a.style.left=fr+"px"}else{const ce=P.right-j.right,ae=window.innerWidth-A.right-ce,Ge=window.innerWidth-E.right-ae,ct=E.width+Ge,_n=Math.max(ct,P.width),bt=window.innerWidth-At,fr=Pm(ae,[At,Math.max(At,bt-_n)]);a.style.minWidth=ct+"px",a.style.right=fr+"px"}const z=f(),L=window.innerHeight-At*2,H=m.scrollHeight,O=window.getComputedStyle(c),W=parseInt(O.borderTopWidth,10),$=parseInt(O.paddingTop,10),K=parseInt(O.borderBottomWidth,10),k=parseInt(O.paddingBottom,10),T=W+$+H+k+K,D=Math.min(b.offsetHeight*5,T),I=window.getComputedStyle(m),B=parseInt(I.paddingTop,10),G=parseInt(I.paddingBottom,10),re=E.top+E.height/2-At,Ce=L-re,q=b.offsetHeight/2,V=b.offsetTop+q,oe=W+$+V,ie=T-oe;if(oe<=re){const ce=z.length>0&&b===z[z.length-1].ref.current;a.style.bottom="0px";const ae=c.clientHeight-m.offsetTop-m.offsetHeight,Ge=Math.max(Ce,q+(ce?G:0)+ae+K),ct=oe+Ge;a.style.height=ct+"px"}else{const ce=z.length>0&&b===z[0].ref.current;a.style.top="0px";const Ge=Math.max(re,W+m.offsetTop+(ce?B:0)+q)+ie;a.style.height=Ge+"px",m.scrollTop=oe-re+m.offsetTop}a.style.margin=`${At}px 0`,a.style.minHeight=D+"px",a.style.maxHeight=L+"px",r==null||r(),requestAnimationFrame(()=>y.current=!0)}},[f,s.trigger,s.valueNode,a,c,m,b,v,s.dir,r]);Ke(()=>w(),[w]);const[_,S]=p.useState();Ke(()=>{c&&S(window.getComputedStyle(c).zIndex)},[c]);const C=p.useCallback(E=>{E&&x.current===!0&&(w(),g==null||g(),x.current=!1)},[w,g]);return h.jsx(sO,{scope:n,contentWrapper:a,shouldExpandOnScrollRef:y,onScrollButtonChange:C,children:h.jsx("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:_},children:h.jsx(te.div,{...o,ref:d,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});Cx.displayName=rO;var oO="SelectPopperPosition",md=p.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=At,...s}=e,i=Ql(n);return h.jsx(jf,{...i,...s,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...s.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});md.displayName=oO;var[sO,nh]=ns(Ir,{}),gd="SelectViewport",Px=p.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,s=dr(gd,n),i=nh(gd,n),a=fe(t,s.onViewportChange),l=p.useRef(0);return h.jsxs(h.Fragment,{children:[h.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),h.jsx(Gl.Slot,{scope:n,children:h.jsx(te.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:a,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:F(o.onScroll,c=>{const u=c.currentTarget,{contentWrapper:d,shouldExpandOnScrollRef:f}=i;if(f!=null&&f.current&&d){const y=Math.abs(l.current-u.scrollTop);if(y>0){const x=window.innerHeight-At*2,m=parseFloat(d.style.minHeight),b=parseFloat(d.style.height),v=Math.max(m,b);if(v<x){const g=v+y,w=Math.min(x,g),_=g-w;d.style.height=w+"px",d.style.bottom==="0px"&&(u.scrollTop=_>0?_:0,d.style.justifyContent="flex-end")}}}l.current=u.scrollTop})})})]})});Px.displayName=gd;var Tx="SelectGroup",[iO,aO]=ns(Tx),lO=p.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=zo();return h.jsx(iO,{scope:n,id:o,children:h.jsx(te.div,{role:"group","aria-labelledby":o,...r,ref:t})})});lO.displayName=Tx;var Rx="SelectLabel",Nx=p.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=aO(Rx,n);return h.jsx(te.div,{id:o.id,...r,ref:t})});Nx.displayName=Rx;var rl="SelectItem",[cO,jx]=ns(rl),Ox=p.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:s,...i}=e,a=ur(rl,n),l=dr(rl,n),c=a.value===r,[u,d]=p.useState(s??""),[f,y]=p.useState(!1),x=fe(t,g=>{var w;return(w=l.itemRefCallback)==null?void 0:w.call(l,g,r,o)}),m=zo(),b=p.useRef("touch"),v=()=>{o||(a.onValueChange(r),a.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return h.jsx(cO,{scope:n,value:r,disabled:o,textId:m,isSelected:c,onItemTextChange:p.useCallback(g=>{d(w=>w||((g==null?void 0:g.textContent)??"").trim())},[]),children:h.jsx(Gl.ItemSlot,{scope:n,value:r,disabled:o,textValue:u,children:h.jsx(te.div,{role:"option","aria-labelledby":m,"data-highlighted":f?"":void 0,"aria-selected":c&&f,"data-state":c?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...i,ref:x,onFocus:F(i.onFocus,()=>y(!0)),onBlur:F(i.onBlur,()=>y(!1)),onClick:F(i.onClick,()=>{b.current!=="mouse"&&v()}),onPointerUp:F(i.onPointerUp,()=>{b.current==="mouse"&&v()}),onPointerDown:F(i.onPointerDown,g=>{b.current=g.pointerType}),onPointerMove:F(i.onPointerMove,g=>{var w;b.current=g.pointerType,o?(w=l.onItemLeave)==null||w.call(l):b.current==="mouse"&&g.currentTarget.focus({preventScroll:!0})}),onPointerLeave:F(i.onPointerLeave,g=>{var w;g.currentTarget===document.activeElement&&((w=l.onItemLeave)==null||w.call(l))}),onKeyDown:F(i.onKeyDown,g=>{var _;((_=l.searchRef)==null?void 0:_.current)!==""&&g.key===" "||(Q2.includes(g.key)&&v(),g.key===" "&&g.preventDefault())})})})})});Ox.displayName=rl;var xs="SelectItemText",Ax=p.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...s}=e,i=ur(xs,n),a=dr(xs,n),l=jx(xs,n),c=Z2(xs,n),[u,d]=p.useState(null),f=fe(t,v=>d(v),l.onItemTextChange,v=>{var g;return(g=a.itemTextRefCallback)==null?void 0:g.call(a,v,l.value,l.disabled)}),y=u==null?void 0:u.textContent,x=p.useMemo(()=>h.jsx("option",{value:l.value,disabled:l.disabled,children:y},l.value),[l.disabled,l.value,y]),{onNativeOptionAdd:m,onNativeOptionRemove:b}=c;return Ke(()=>(m(x),()=>b(x)),[m,b,x]),h.jsxs(h.Fragment,{children:[h.jsx(te.span,{id:l.textId,...s,ref:f}),l.isSelected&&i.valueNode&&!i.valueNodeHasChildren?Dr.createPortal(s.children,i.valueNode):null]})});Ax.displayName=xs;var Ix="SelectItemIndicator",Mx=p.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return jx(Ix,n).isSelected?h.jsx(te.span,{"aria-hidden":!0,...r,ref:t}):null});Mx.displayName=Ix;var vd="SelectScrollUpButton",Lx=p.forwardRef((e,t)=>{const n=dr(vd,e.__scopeSelect),r=nh(vd,e.__scopeSelect),[o,s]=p.useState(!1),i=fe(t,r.onScrollButtonChange);return Ke(()=>{if(n.viewport&&n.isPositioned){let a=function(){const c=l.scrollTop>0;s(c)};const l=n.viewport;return a(),l.addEventListener("scroll",a),()=>l.removeEventListener("scroll",a)}},[n.viewport,n.isPositioned]),o?h.jsx($x,{...e,ref:i,onAutoScroll:()=>{const{viewport:a,selectedItem:l}=n;a&&l&&(a.scrollTop=a.scrollTop-l.offsetHeight)}}):null});Lx.displayName=vd;var yd="SelectScrollDownButton",Dx=p.forwardRef((e,t)=>{const n=dr(yd,e.__scopeSelect),r=nh(yd,e.__scopeSelect),[o,s]=p.useState(!1),i=fe(t,r.onScrollButtonChange);return Ke(()=>{if(n.viewport&&n.isPositioned){let a=function(){const c=l.scrollHeight-l.clientHeight,u=Math.ceil(l.scrollTop)<c;s(u)};const l=n.viewport;return a(),l.addEventListener("scroll",a),()=>l.removeEventListener("scroll",a)}},[n.viewport,n.isPositioned]),o?h.jsx($x,{...e,ref:i,onAutoScroll:()=>{const{viewport:a,selectedItem:l}=n;a&&l&&(a.scrollTop=a.scrollTop+l.offsetHeight)}}):null});Dx.displayName=yd;var $x=p.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,s=dr("SelectScrollButton",n),i=p.useRef(null),a=ql(n),l=p.useCallback(()=>{i.current!==null&&(window.clearInterval(i.current),i.current=null)},[]);return p.useEffect(()=>()=>l(),[l]),Ke(()=>{var u;const c=a().find(d=>d.ref.current===document.activeElement);(u=c==null?void 0:c.ref.current)==null||u.scrollIntoView({block:"nearest"})},[a]),h.jsx(te.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:F(o.onPointerDown,()=>{i.current===null&&(i.current=window.setInterval(r,50))}),onPointerMove:F(o.onPointerMove,()=>{var c;(c=s.onItemLeave)==null||c.call(s),i.current===null&&(i.current=window.setInterval(r,50))}),onPointerLeave:F(o.onPointerLeave,()=>{l()})})}),uO="SelectSeparator",Fx=p.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return h.jsx(te.div,{"aria-hidden":!0,...r,ref:t})});Fx.displayName=uO;var wd="SelectArrow",dO=p.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Ql(n),s=ur(wd,n),i=dr(wd,n);return s.open&&i.position==="popper"?h.jsx(Of,{...o,...r,ref:t}):null});dO.displayName=wd;function Ux(e){return e===""||e===void 0}var zx=p.forwardRef((e,t)=>{const{value:n,...r}=e,o=p.useRef(null),s=fe(t,o),i=G2(n);return p.useEffect(()=>{const a=o.current,l=window.HTMLSelectElement.prototype,u=Object.getOwnPropertyDescriptor(l,"value").set;if(i!==n&&u){const d=new Event("change",{bubbles:!0});u.call(a,n),a.dispatchEvent(d)}},[i,n]),h.jsx(gi,{asChild:!0,children:h.jsx("select",{...r,ref:s,defaultValue:n})})});zx.displayName="BubbleSelect";function Bx(e){const t=We(e),n=p.useRef(""),r=p.useRef(0),o=p.useCallback(i=>{const a=n.current+i;t(a),function l(c){n.current=c,window.clearTimeout(r.current),c!==""&&(r.current=window.setTimeout(()=>l(""),1e3))}(a)},[t]),s=p.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return p.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,s]}function Vx(e,t,n){const o=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let i=fO(e,Math.max(s,0));o.length===1&&(i=i.filter(c=>c!==n));const l=i.find(c=>c.textValue.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}function fO(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var hO=gx,Hx=yx,pO=xx,mO=bx,gO=_x,Wx=Sx,vO=Px,Kx=Nx,Gx=Ox,yO=Ax,wO=Mx,qx=Lx,Qx=Dx,Yx=Fx;const Jx=hO,Xx=pO,rh=p.forwardRef(({className:e,children:t,...n},r)=>h.jsxs(Hx,{ref:r,className:le("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm r
209ing-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...n,children:[t,h.jsx(mO,{asChild:!0,children:h.jsx(xf,{className:"h-4 w-4 opacity-50"})})]}));rh.displayName=Hx.displayName;const Zx=p.forwardRef(({className:e,...t},n)=>h.jsx(qx,{ref:n,className:le("flex cursor-default items-center justify-center py-1",e),...t,children:h.jsx(IS,{className:"h-4 w-4"})}));Zx.displayName=qx.displayName;const eb=p.forwardRef(({className:e,...t},n)=>h.jsx(Qx,{ref:n,className:le("flex cursor-default items-center justify-center py-1",e),...t,children:h.jsx(xf,{className:"h-4 w-4"})}));eb.displayName=Qx.displayName;const oh=p.forwardRef(({className:e,children:t,position:n="popper",...r},o)=>h.jsx(gO,{children:h.jsxs(Wx,{ref:o,className:le("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",n==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,...r,children:[h.jsx(Zx,{}),h.jsx(vO,{className:le("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),h.jsx(eb,{})]})}));oh.displayName=Wx.displayName;const xO=p.forwardRef(({className:e,...t},n)=>h.jsx(Kx,{ref:n,className:le("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...t}));xO.displayName=Kx.displayName;const sh=p.forwardRef(({className:e,children:t,...n},r)=>h.jsxs(Gx,{ref:r,className:le("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[h.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:h.jsx(wO,{children:h.jsx(ky,{className:"h-4 w-4"})})}),h.jsx(yO,{children:t})]}));sh.displayName=Gx.displayName;const bO=p.forwardRef(({className:e,...t},n)=>h.jsx(Yx,{ref:n,className:le("-mx-1 my-1 h-px bg-muted",e),...t}));bO.displayName=Yx.displayName;const _O=[{value:"qwen/qwen-2.5-72b-instruct:free",label:"Qwen2.5 72B Instruct",description:"Most powerful ⢠Long detailed explanations ⢠29+ languages",recommended:!0},{value:"meta-llama/llama-3.1-8b-instruct:free",label:"Meta: Llama 3.1 8B Instruct",description:"Fast & efficient ⢠General-purpose explanations ⢠131K context",recommended:!1},{value:"mistralai/mistral-nemo:free",label:"Mistral: Mistral Nemo",description:"Long text explanations ⢠Strong multilingual ⢠128K context",recommended:!1}],SO=({value:e,onChange:t,disabled:n})=>h.jsxs("div",{className:"space-y-3",children:[h.jsxs(ki,{htmlFor:"model",className:"text-lg font-medium text-gray-700 dark:text-gray-300 flex items-center gap-2",children:[h.jsx(OS,{className:"h-5 w-5 text-green-500"}),"Choose AI Model"]}),h.jsxs(Jx,{value:e,onValueChange:t,disabled:n,children:[h.jsx(rh,{className:"w-full h-12 bg-white dark:bg-gray-900 border-gray-300 dark:border-gray-600 shadow-sm",children:h.jsx(Xx,{})}),h.jsx(oh,{className:"bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700 z-[60]",children:_O.map(r=>h.jsx(sh,{value:r.value,className:"cursor-pointer",children:h.jsxs("div",{className:"flex flex-col",children:[h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx("span",{className:"font-medium",children:r.label}),r.recommended&&h.jsx("span",{className:"text-xs bg-green-100 dark:bg-green-900/30 text-green-700 dark:text-green-300 px-2 py-0.5 rounded-full",children:"Recommended"})]}),h.jsx("span",{className:"text-sm text-gray-500 dark:text-gray-400",children:r.description})]})},r.value))})]})]}),EO=[{value:"eli5",labelKey:"tones.eli5.label",descriptionKey:"tones.eli5.description"},{value:"teen",labelKey:"tones.teen.label",descriptionKey:"tones.teen.description"},{value:"expert",labelKey:"tones.expert.label",descriptionKey:"tones.expert.description"}
209],kO=({value:e,onChange:t,disabled:n})=>{const{t:r}=sn();return h.jsxs("div",{className:"space-y-3",children:[h.jsx(ki,{htmlFor:"tone",className:"text-lg font-medium text-gray-700 dark:text-gray-300",children:r("form.toneLabel")}),h.jsxs(Jx,{value:e,onValueChange:t,disabled:n,children:[h.jsx(rh,{className:"w-full h-12 bg-white dark:bg-gray-900 border-gray-300 dark:border-gray-600 shadow-sm",children:h.jsx(Xx,{})}),h.jsx(oh,{className:"bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700 z-[60]",children:EO.map(o=>h.jsx(sh,{value:o.value,className:"cursor-pointer",children:h.jsxs("div",{className:"flex flex-col",children:[h.jsx("span",{className:"font-medium",children:r(o.labelKey)}),h.jsx("span",{className:"text-sm text-gray-500 dark:text-gray-400",children:r(o.descriptionKey)})]})},o.value))})]})]})},tb=p.forwardRef(({className:e,type:t,...n},r)=>h.jsx("input",{type:t,className:le("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:r,...n}));tb.displayName="Input";const CO=({value:e,onChange:t,error:n,subscribed:r,disabled:o})=>{const{t:s}=sn();return h.jsxs("div",{className:"space-y-3",children:[h.jsxs(ki,{htmlFor:"email",className:"text-lg font-medium text-gray-700 dark:text-gray-300 flex items-center gap-2",children:[h.jsx($S,{className:"h-5 w-5 text-purple-500"}),s("form.emailLabel")]}),h.jsxs("div",{className:"relative",children:[h.jsx(tb,{id:"email",type:"email",value:e,onChange:t,placeholder:s("form.emailPlaceholder"),className:`h-12 bg-white dark:bg-gray-900 border-gray-300 dark:border-gray-600 shadow-sm pr-10 ${n?"border-red-500 focus:ring-red-500":r?"border-green-500 focus:ring-green-500":"focus:ring-blue-500"}`,required:!0,disabled:o}),r&&h.jsx(LS,{className:"absolute right-3 top-1/2 transform -translate-y-1/2 h-5 w-5 text-green-500"})]}),n&&h.jsxs("p",{className:"text-red-500 text-sm mt-1 flex items-center gap-1",children:[h.jsx("span",{className:"w-1 h-1 bg-red-500 rounded-full"}),n]})]})},PO=({isLoading:e,isSubscribing:t,disabled:n})=>{const{t:r}=sn();return h.jsx(Pt,{type:"submit",disabled:n,className:"w-full h-14 text-lg font-semibold bg-gradient-to-r from-blue-600 to-purple-600 hover:from-blue-700 hover:to-purple-700 text-white border-0 shadow-lg hover:shadow-xl transition-all duration-300 transform hover:scale-[1.02] disabled:opacity-50 disabled:cursor-not-allowed disabled:transform-none",children:t?h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx("div",{className:"w-5 h-5 border-2 border-white border-t-transparent rounded-full animate-spin"}),"Subscribing..."]}):e?h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx("div",{className:"w-5 h-5 border-2 border-white border-t-transparent rounded-full animate-spin"}),r("form.submitting")]}):h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx(Cy,{className:"h-5 w-5"}),r("form.submitButton")]})})},TO=({onExplain:e,isLoading:t})=>{const{toast:n}=Xv(),[r,o]=p.useState(""),[s,i]=p.useState("eli5"),[a,l]=p.useState("qwen/qwen-2.5-72b-instruct:free"),[c,u]=p.useState(""),[d,f]=p.useState(""),[y,x]=p.useState(!1),[m,b]=p.useState(!1),v=C=>/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(C),g=async C=>{if(C.preventDefault(),!r.trim()){n({title:"Error",description:"Please enter a question to explain.",variant:"destructive"});return}if(!v(c)){f("Please enter a valid email address");return}f(""),x(!0);try{const E=await V2(c);E.success?(b(!0),n({title:"Success!",description:E.message,duration:3e3}),setTimeout(()=>{e(r,s,c,a)},500)):n({title:"Error",description:E.message,variant:"destructive"})}catch{n({title:"Error",description:"Something went wrong. Please try again.",variant:"destructive"})}finally{x(!1)}},w=C=>{u(C.target.value),d&&v(C.target.value)&&f(""),m&&b(!1)},_=t||y,S=_||!r.trim()||!c.trim();return h.jsx(Qf,{className:"w-full max-w-2xl mx-auto bg-white/80 dark:bg-gray-800/80 backdrop-blur-md border-0 shadow-2xl",children:h.jsx(Yf,{className:"p-8",children:h.jsxs("form",{onSubmit:g,className:"space-y-6",children:[h.jsx(K2,{value:r,onChange:o,disabled:_}),h.jsx(SO,{value:a,onChange:l,disabled:_}),h.jsx(kO,{value:s,onChange:i,disabled:_}),h.jsx(CO,{value:c,onChange:w,error:d,subscribed:m,disabled:_}),h.jsx(PO,{isLoading:t,isSubscribing:y,disabled:S}),h.jsx("p",{className:"text-xs text-gray-500 dark:text-gray-400 text-center",children:"We'll save your email to notify you about updates. No spam, ever."})]})})})},RO=({explanation:e,isLoading:t})=>{const{t:n}=sn();return h.jsxs(Qf,{className:"w-full max-w-2xl mx-auto mt-8 bg-white/70 dark:bg-gray-800/70 backdrop-blur-sm border-0 shadow-xl animate-fade-in",children:[h.jsx(zw,{className:"pb-4",children:h.jsx(Bw,{className:"text-xl font-semibold text-gray-800 dark:text-gray-200 flex items-center gap-2",children:t?h.jsxs(h.Fragment,{children:[h.jsx("div",{className:"w-5 h-5 border-2 border-blue-600 border-t-transparent roun
209ded-full animate-spin"}),n("output.generating")]}):n("output.title")})}),h.jsx(Yf,{children:t?h.jsxs("div",{className:"space-y-3",children:[h.jsx("div",{className:"h-4 bg-gray-200 dark:bg-gray-700 rounded animate-pulse"}),h.jsx("div",{className:"h-4 bg-gray-200 dark:bg-gray-700 rounded animate-pulse w-5/6"}),h.jsx("div",{className:"h-4 bg-gray-200 dark:bg-gray-700 rounded animate-pulse w-4/6"}),h.jsx("div",{className:"h-4 bg-gray-200 dark:bg-gray-700 rounded animate-pulse w-3/6"})]}):h.jsx("div",{className:"prose prose-gray dark:prose-invert max-w-none",children:h.jsx("p",{className:"text-gray-700 dark:text-gray-300 leading-relaxed whitespace-pre-line",children:e})})})]})},Yl=()=>{const e=[{label:"About",href:"/about"},{label:"Privacy",href:"/privacy"},{label:"Contact",href:"/contact"}];return h.jsx("footer",{className:"bg-white/50 dark:bg-gray-900/50 backdrop-blur-md border-t border-gray-200 dark:border-gray-700 mt-8 sm:mt-12 lg:mt-16",children:h.jsx("div",{className:"container mx-auto px-4 sm:px-6 lg:px-8 py-6 sm:py-8",children:h.jsxs("div",{className:"flex flex-col md:flex-row items-center justify-between gap-4",children:[h.jsx("div",{className:"text-gray-600 dark:text-gray-400 text-xs sm:text-sm text-center md:text-left",children:"© 2025 ExplainToMeGPT. Making complex topics simple."}),h.jsx("nav",{className:"flex items-center gap-4 sm:gap-6",children:e.map(t=>h.jsx(xi,{to:t.href,className:"text-gray-600 dark:text-gray-400 hover:text-blue-600 dark:hover:text-blue-400 text-xs sm:text-sm font-medium transition-colors duration-200 hover:underline",children:t.label},t.label))})]})})})},NO=async(e,t,n)=>{try{const{data:r,error:o}=await hx.functions.invoke("generate-explanation",{body:{question:e,tone:t,model:n}});if(o)throw console.error("Supabase function error:",o),new Error("Failed to generate explanation. Please try again.");if(!(r!=null&&r.explanation))throw new Error("No explanation received from the service.");return r.explanation}catch(r){throw console.error("Error calling generate-explanation function:",r),new Error(r instanceof Error?r.message:"Failed to generate explanation. Please check your connection and try again.")}},jO=()=>{const{t:e}=sn(),[t,n]=p.useState(""),[r,o]=p.useState(!1),[s,i]=p.useState(""),a=p.useRef(null),l=async(f,y,x,m)=>{o(!0),i(""),n("");try{const b=await NO(f,y,m);n(b),setTimeout(()=>{var v;(v=a.current)==null||v.scrollIntoView({behavior:"smooth",block:"start"})},100)}catch(b){i(b instanceof Error?b.message:e("errors.generalError"))}finally{o(!1)}},c=()=>{window.open("https://x.com/@bensaintpeter","_blank","noopener,noreferrer")},u=()=>{window.open("https://benniechan.gumroad.com/l/eli5","_blank","noopener,noreferrer")},d=()=>{window.open("https://benniechan.gumroad.com/l/eli5ext","_blank","noopener,noreferrer")};return h.jsxs("div",{className:"min-h-screen bg-gradient-to-br from-blue-50 via-white to-purple-50 dark:from-gray-900 dark:via-gray-800 dark:to-purple-900 transition-colors duration-300",children:[h.jsx(Fl,{}),h.jsxs("main",{className:"container mx-auto px-4 py-8 max-w-4xl",children:[h.jsxs("section",{className:"text-center mb-12",children:[h.jsx("h1",{className:"text-4xl md:text-6xl font-bold bg-gradient-to-r from-blue-600 to-purple-600 bg-clip-text text-transparent mb-4 animate-fade-in",children:e("title")}),h.jsx("p",{className:"text-lg md:text-xl text-gray-600 dark:text-gray-300 mb-8 animate-fade-in animation-delay-300",children:e("subtitle")})]}),h.jsx(TO,{onExplain:l,isLoading:r}),s&&h.jsx("div",{className:"w-full max-w-2xl mx-auto mt-8 p-4 bg-red-50 dark:bg-red-900/20 border border-red-200 dark:border-red-800 rounded-lg",children:h.jsx("p",{className:"text-red-700 dark:text-red-300 text-center",children:s})}),(t||r)&&h.jsx("div",{ref:a,children:h.jsx(RO,{explanation:t,isLoading:r})}),h.jsx("section",{className:"mt-12 max-w-2xl mx-auto",children:h.jsxs("div",{className:"space-y-4",children:[h.jsxs("div",{className:"bg-gradient-to-r from-blue-50 to-purple-50 dark:from-blue-900/20 dark:to-purple-900/20 rounded-lg p-4 sm:p-6 border border-blue-200 dark:border-blue-800",children:[h.jsx("h3",{className:"text-lg sm:text-xl font-semibold text-gray-800 dark:text-gray-200 mb-4 text-center",children:"Explore & Support"}),h.jsxs("div",{className:"flex flex-col sm:flex-row gap-3 sm:gap-4 justify-center",children:[h.jsxs(Pt,{onClick:c,className:"w-full sm:w-auto bg-gradient-to-r from-blue-500 to-blue-600 hover:from-blue-600 hover:to-blue-700 text-white font-medium px-4 py-2 rounded-lg transition-all duration-300 transform hover:scale-105 text-sm flex items-center justify-center gap-2",children:[h.jsx("svg",{className:"w-4 h-4",fill:"
209currentColor",viewBox:"0 0 24 24",children:h.jsx("path",{d:"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"})}),h.jsx("span",{children:"Follow on Twitter"})]}),h.jsxs(Pt,{onClick:u,className:"w-full sm:w-auto bg-gradient-to-r from-green-600 to-emerald-600 hover:from-green-700 hover:to-emerald-700 text-white font-medium px-4 py-2 rounded-lg transition-all duration-300 transform hover:scale-105 text-sm flex items-center justify-center gap-2",children:[h.jsx(US,{className:"w-4 h-4"}),h.jsx("span",{children:"Buy Source Code"})]}),h.jsxs(Pt,{onClick:d,className:"w-full sm:w-auto bg-gradient-to-r from-purple-500 to-indigo-500 hover:from-purple-600 hover:to-indigo-600 text-white font-medium px-4 py-2 rounded-lg transition-all duration-300 transform hover:scale-105 text-sm flex items-center justify-center gap-2",children:[h.jsx(MS,{className:"w-4 h-4"}),h.jsx("span",{children:"Get Chrome Extension"})]})]})]}),h.jsx("div",{className:"flex justify-center",children:h.jsx("a",{href:"https://www.producthunt.com/products/explaintomegpt?embed=true&utm_source=badge-featured&utm_medium=badge&utm_source=badge-explaintomegpt",target:"_blank",rel:"noopener noreferrer",children:h.jsx("img",{src:"https://api.producthunt.com/widgets/embed-image/v1/featured.svg?post_id=978752&theme=light&t=1749979837633",alt:"ExplainToMeGPT - Explain anything like you're 5 | Product Hunt",style:{width:"250px",height:"54px"},width:"250",height:"54"})})})]})}),h.jsxs("section",{className:"mt-16 max-w-3xl mx-auto",children:[h.jsx("h2",{className:"text-3xl font-bold text-gray-800 dark:text-gray-200 mb-6 text-center",children:e("about.title")}),h.jsxs("div",{className:"prose prose-lg prose-gray dark:prose-invert max-w-none",children:[h.jsx("p",{className:"text-gray-700 dark:text-gray-300 leading-relaxed mb-4",children:e("about.paragraph1")}),h.jsx("p",{className:"text-gray-700 dark:text-gray-300 leading-relaxed mb-4",children:e("about.paragraph2")}),h.jsx("p",{className:"text-gray-700 dark:text-gray-300 leading-relaxed mb-6",children:e("about.paragraph3")}),h.jsx("div",{className:"text-center",children:h.jsx("a",{href:"https://swsdevs.co",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center text-blue-600 dark:text-blue-400 hover:text-blue-800 dark:hover:text-blue-300 font-medium transition-colors",children:e("about.portfolioLink")})})]})]})]}),h.jsx(Yl,{})]})},OO=()=>h.jsx($l,{children:h.jsx(jO,{})}),AO=()=>{const{t:e}=sn();return h.jsxs("div",{className:"min-h-screen bg-gradient-to-br from-blue-50 via-white to-purple-50 dark:from-gray-900 dark:via-gray-800 dark:to-purple-900 transition-colors duration-300",children:[h.jsx(Fl,{}),h.jsxs("main",{className:"container mx-auto px-4 sm:px-6 lg:px-8 py-8 max-w-4xl",children:[h.jsx("div",{className:"mb-8",children:h.jsx(Pt,{asChild:!0,variant:"outline",children:h.jsxs(xi,{to:"/",children:[h.jsx(kl,{className:"mr-2 h-4 w-4"}),"Back to Home"]})})}),h.jsx("section",{className:"text-center mb-8 sm:mb-12",children:h.jsx("h1",{className:"text-3xl sm:text-4xl md:text-5xl lg:text-6xl font-bold bg-gradient-to-r from-blue-600 to-purple-600 bg-clip-text text-transparent mb-4 px-2",children:e("about.title")})}),h.jsx("div",{className:"max-w-3xl mx-auto",children:h.jsxs("div",{className:"prose prose-base sm:prose-lg prose-gray dark:prose-invert max-w-none",children:[h.jsx("p",{className:"text-gray-700 dark:text-gray-300 leading-relaxed mb-4 sm:mb-6 text-base sm:text-lg px-2",children:e("about.paragraph1")}),h.jsx("p",{className:"text-gray-700 dark:text-gray-300 leading-relaxed mb-4 sm:mb-6 text-base sm:text-lg px-2",children:e("about.paragraph2")}),h.jsx("p",{className:"text-gray-700 dark:text-gray-300 leading-relaxed mb-6 sm:mb-8 text-base sm:text-lg px-2",children:e("about.paragraph3")}),h.jsxs("div",{className:"bg-white/50 dark:bg-gray-800/50 rounded-lg p-4 sm:p-6 border border-gray-200 dark:border-gray-700 mx-2 sm:mx-0",children:[h.jsx("h2",{className:"text-xl sm:text-2xl font-bold text-gray-800 dark:text-gray-200 mb-4",children:e("about.howItWorks.title")}),h.jsxs("div",{className:"space-y-4",children:[h.jsxs("div",{className:"flex items-start gap-3",children:[h.jsx("div",{className:"bg-blue-500 text-white rounded-full w-6 h-6 flex items-center justify-center text-sm font-bold flex-shrink-0",children:"1"}),h.jsx("p",{className:"text-gray-700 dark:text-gray-300 text-sm sm:text-base",children:e("about.howItWorks.step1")})]}),h.jsxs("div",{className:"flex items-start gap-3",children:[h.jsx("div",{className:"bg-blue-500 text-white rounded-full w-6 h-6 flex items-center justify-center text-sm font-bold flex-shrink-0",children:"2"}),h.jsxs("div",{className:"text-gray-700 dark:text-gray-300",children:[h.jsx("p",{className:"mb-2 text-sm sm:text-base",children:e("about.howItWorks.step2.intro")}),h.jsxs("ul",{className:"list-disc list-inside ml-2 sm:ml-4 space-y-1 text-xs sm:text-sm",children:[h.jsxs("li",{children:[h.jsx("strong",{children:e("tones.eli5.label")})," - ",e("about.howItWorks.step2.eli5Description")]}),h.jsxs("li",{children:[h.jsx("strong",{children:e("tones.teen.label")})," - ",e("about.howItWorks.step2.teenDescription")]}),h.jsxs("li",{children:[h.jsx("strong",{children:e("tones.expert.label")})," - ",e("about.howItWorks.step2.expertDescription")]})]})]})]}),h.jsxs("div",{className:"flex items-start gap-3",children:[h.jsx("div",{className:"bg-blue-500 text-white rounded-full w-6 h-6 flex items-center justify-center text-sm font-bold flex-shrink-0",children:"3"}),h.jsx("p",{className:"text-gray-700 dark:text-gray-300 text-sm sm:text-base",children:e("about.howItWorks.step3")})]})]})]})]})})]}),h.jsx(Yl,{})]})},IO=()=>h.jsx($l,{children:h.jsx(AO,{})}),MO=()=>(sn(),h.jsxs("div",{className:"min-h-screen bg-gradient-to-br from-blue-50 via-white to-purple-50 dark:from-gray-900 dark:via-gray-800 dark:to-purple-900 transition-colors duration-300",children:[h.jsx(Fl,{}),h.jsxs("main",{className:"container mx-auto px-4 sm:px-6 lg:px-8 py-8 max-w-4xl",children:[h.jsx("div",{className:"mb-8",children:h.jsx(Pt,{asChild:!0,variant:"outline",children:h.jsxs(xi,{to:"/",children:[h.jsx(kl,{className:"mr-2 h-4 w-4"}),"Back to Home"]})})}),h.jsxs("section",{className:"text-center mb-8 sm:mb-12",children:[h.jsx("h1",{className:"text-3xl sm:text-4xl md:text-5xl lg:text-6xl font-bold bg-gradient-to-r from-blue-600 to-purple-600 bg-clip-text text-transparent mb-4 px-2",children:"Privacy Policy"}),h.jsx("p",{className:"text-base sm:text-lg text-gray-600 dark:text-gray-300 px-2",children:"Your privacy matters to us"})]}),h.jsx("div",{className:"max-w-3xl mx-auto prose prose-base sm:prose-lg prose-gray dark:prose-invert",children:h.jsxs("div",{className:"bg-white/50 dark:bg-gray-800/50 rounded-lg p-4 sm:p-6 lg:p-8 border border-gray-200 dark:border-gray-700 space-y-4 sm:sp
209ace-y-6 mx-2 sm:mx-0",children:[h.jsxs("section",{children:[h.jsx("h2",{className:"text-xl sm:text-2xl font-bold text-gray-800 dark:text-gray-200 mb-3 sm:mb-4",children:"Information We Collect"}),h.jsx("p",{className:"text-gray-700 dark:text-gray-300 leading-relaxed text-sm sm:text-base",children:"We only collect your email address when you subscribe to use our service. This information is used solely to provide you with access to ExplainToMeGPT and occasional updates about the service."})]}),h.jsxs("section",{children:[h.jsx("h2",{className:"text-xl sm:text-2xl font-bold text-gray-800 dark:text-gray-200 mb-3 sm:mb-4",children:"How We Use Your Information"}),h.jsx("p",{className:"text-gray-700 dark:text-gray-300 leading-relaxed text-sm sm:text-base",children:"Your email address is used to:"}),h.jsxs("ul",{className:"list-disc list-inside text-gray-700 dark:text-gray-300 mt-2 space-y-1 text-sm sm:text-base ml-2 sm:ml-4",children:[h.jsx("li",{children:"Provide access to our explanation service"}),h.jsx("li",{children:"Send occasional service updates or improvements"}),h.jsx("li",{children:"Ensure service availability and prevent abuse"})]})]}),h.jsxs("section",{children:[h.jsx("h2",{className:"text-xl sm:text-2xl font-bold text-gray-800 dark:text-gray-200 mb-3 sm:mb-4",children:"Data Protection"}),h.jsx("p",{className:"text-gray-700 dark:text-gray-300 leading-relaxed text-sm sm:text-base",children:"We use Supabase for secure data storage and follow industry-standard security practices. Your data is encrypted and stored securely. We do not sell, trade, or share your personal information with third parties."})]}),h.jsxs("section",{children:[h.jsx("h2",{className:"text-xl sm:text-2xl font-bold text-gray-800 dark:text-gray-200 mb-3 sm:mb-4",children:"Your Rights"}),h.jsx("p",{className:"text-gray-700 dark:text-gray-300 leading-relaxed text-sm sm:text-base",children:"You have the right to:"}),h.jsxs("ul",{className:"list-disc list-inside text-gray-700 dark:text-gray-300 mt-2 space-y-1 text-sm sm:text-base ml-2 sm:ml-4",children:[h.jsx("li",{children:"Request deletion of your data"}),h.jsx("li",{children:"Update your email address"}),h.jsx("li",{children:"Unsubscribe from our service at any time"})]})]}),h.jsxs("section",{children:[h.jsx("h2",{className:"text-xl sm:text-2xl font-bold text-gray-800 dark:text-gray-200 mb-3 sm:mb-4",children:"Contact"}),h.jsx("p",{className:"text-gray-700 dark:text-gray-300 leading-relaxed text-sm sm:text-base",children:"If you have any questions about this Privacy Policy, please contact us through our contact page."})]}),h.jsx("section",{className:"text-xs sm:text-sm text-gray-600 dark:text-gray-400 border-t border-gray-200 dark:border-gray-600 pt-4",children:h.jsxs("p",{children:["Last updated: ",new Date().toLocaleDateString()]})})]})})]}),h.jsx(Yl,{})]})),LO=()=>h.jsx($l,{children:h.jsx(MO,{})}),DO=()=>(sn(),h.jsxs("div",{className:"min-h-screen bg-gradient-to-br from-blue-50 via-white to-purple-50 dark:from-gray-900 dark:via-gray-800 dark:to-purple-900 transition-colors duration-300",children:[h.jsx(Fl,{}),h.jsxs("main",{className:"container mx-auto px-4 sm:px-6 lg:px-8 py-8 max-w-4xl",children:[h.jsx("div",{className:"mb-8",children:h.jsx(Pt,{asChild:!0,variant:"outline",children:h.jsxs(xi,{to:"/",children:[h.jsx(kl,{className:"mr-2 h-4 w-4"}),"Back to Home"]})})}),h.jsxs("section",{className:"text-center mb-8 sm:mb-12",children:[h.jsx("h1",{className:"text-3xl sm:text-4xl md:text-5xl lg:text-6xl font-bold bg-gradient-to-r from-blue-600 to-purple-600 bg-clip-text text-transparent mb-4 px-2",children:"Contact Us"}),h.jsx("p",{className:"text-base sm:text-lg text-gray-600 dark:text-gray-300 px-2",children:"Get in touch with the creator"})]}),h.jsx("div",{className:"max-w-2xl mx-auto",children:h.jsxs("div",{className:"bg-white/50 dark:bg-gray-800/50 rounded-lg p-4 sm:p-6 lg:p-8 border border-gray-200 dark:border-gray-700 text-center space-y-4 sm:space-y-6 mx-2 sm:mx-0",children:[h.jsxs("div",{className:"space-y-3 sm:space-y-4",children:[h.jsx("h2",{className:"text-xl sm:text-2xl font-bold text-gray-800 dark:text-gray-200",children:"Let's Connect"}),h.jsx("p",{className:"text-gray-700 dark:text-gray-300 leading-relaxed text-sm sm:text-base",children:"ExplainToMeGPT was created to make complex topics accessible to everyone. If you have questions, feedback, or would like to collaborate, I'd love to hear from you!"})]}),h.jsxs("div",{className:"space-y-2 sm:space-y-3 text-xs sm:text-sm text-gray-600 dark:text-gray-400",children:[h.jsxs("p",{children:[h.jsx("strong",{children:"Response Time:"})," I typically respond within 24-48 hours"]}),h.jsxs("p",{children:[h.jsx("strong",{children:"Best For:"})," Project inquiries, collaboration opportunities, technical questions"]})]}),h.jsxs("div",{className:"border-t border-gray-200 dark:border-gray-600 pt-4 sm:pt-6",children:[h.jsx("h3",{className:"text-base sm:text-lg font-semibold text-gray-800 dark:text-gray-200 mb-3",children:"About the Developer"}),h.jsx("p",{className:"text-gray-700 dark:text-gray-300 text-xs sm:text-sm leading-relaxed mb-4",children:"I'm passionate about creating tools that make learning and understanding easier for everyone. ExplainToMeGPT represents my commitment to accessible education and the power of AI to break down complex concepts."}),h.jsx(Pt,{asChild:!0,children:h.jsx("a",{href:"https://swsdevs.co",target:"_blank",rel:"noopener noreferrer",children:"View My Portfolio"})})]})]})})]}),h.jsx(Yl,{})]})),$O=()=>h.jsx($l,{children:h.jsx(DO,{})}),FO=()=>{const e=wi();return p.useEffect(()=>{console.error("404 Error: User attempted to access non-existent route:",e.pathname)},[e.pathname]),h.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gray-100",children:h.jsxs("div",{className:"text-center",children:[h.jsx("h1",{className:"text-4xl font-bold mb-4",children:"404"}),h.jsx("p",{className:"text-xl text-gray-600 mb-4",children:"Oops! Page not found"}),h.jsx(Pt,{asChild:!0,children:h.jsxs(xi,{to:"/",children:[h.jsx(kl,{className:"mr-2 h-4 w-4"}),"Return to Home"]})})]})})},UO=new QC,zO=()=>h.jsx(JC,{client:UO,children:h.jsxs(CC,{children:[h.jsx(EE,{}),h.jsx(ZE,{}),h.jsx(GP,{children:h.jsxs(UP,{children:[h.jsx(eo,{path:"/",element:h.jsx(OO,{})}),h.jsx(eo,{path:"/about",element:h.jsx(IO,{})}),h.jsx(eo,{path:"/privacy",element:h.jsx(LO,{})}),h.jsx(eo,{path:"/contact",element:h.jsx($O,{})}),h.jsx(eo,{path:"*",element:h.jsx(FO,{})})]})})]})});Jv(document.getElementById("root")).render(h.jsx(zO,{}));export{Lm as g};
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.