1/*! For license information please see main.89e5ea34.js.LICENSE.txt */ 2(()=>{var e={740(e){"use strict";e.exports=function(e,t,n,r,a,s,i,o){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,a,s,i,o],u=0;(l=new Error(t.replace(/%s/g,function(){return c[u++]}))).name="Invariant Violation"}throw l.framesToPop=1,l}}},4(e,t,n){"use strict";var r=n(853),a=n(43),s=n(950);function i(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;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."}function o(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function l(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function c(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function u(e){if(31===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function d(e){if(l(e)!==e)throw Error(i(188))}function h(e){var t=e.tag;if(5===t||26===t||27===t||6===t)return e;for(e=e.child;null!==e;){if(null!==(t=h(e)))return t;e=e.sibling}return null}var f=Object.assign,p=Symbol.for("react.element"),m=Symbol.for("react.transitional.element"),g=Symbol.for("react.portal"),v=Symbol.for("react.fragment"),y=Symbol.for("react.strict_mode"),b=Symbol.for("react.profiler"),w=Symbol.for("react.consumer"),k=Symbol.for("react.context"),S=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),_=Symbol.for("react.suspense_list"),E=Symbol.for("react.memo"),j=Symbol.for("react.lazy");Symbol.for("react.scope");var T=Symbol.for("react.activity");Symbol.for("react.legacy_hidden"),Symbol.for("react.tracing_marker");var N=Symbol.for("react.memo_cache_sentinel");Symbol.for("react.view_transition");var C=Symbol.iterator;function R(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=C&&e[C]||e["@@iterator"])?e:null}var A=Symbol.for("react.client.reference");function O(e){if(null==e)return null;if("function"===typeof e)return e.$$typeof===A?null:e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case v:return"Fragment";case b:return"Profiler";case y:return"StrictMode";case x:return"Suspense";case _:return"SuspenseList";case T:return"Activity"}if("object"===typeof e)switch(e.$$typeof){case g:return"Portal";case k:return e.displayName||"Context";case w:return(e._context.displayName||"Context")+".Consumer";case S:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case E:return null!==(t=e.displayName||null)?t:O(e.type)||"Memo";case j:t=e._payload,e=e._init;try{return O(e(t))}catch(n){}}return null}var P=Array.isArray,L=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,$=s.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,I={pending:!1,data:null,method:null,action:null},D=[],U=-1;function z(e){return{current:e}}function M(e){0>U||(e.current=D[U],D[U]=null,U--)}function F(e,t){U++,D[U]=e.current,e.current=t}var B,q,H=z(null),W=z(null),V=z(null),K=z(null);function J(e,t){switch(F(V,t),F(W,e),F(H,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?vd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)e=yd(t=vd(t),e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}M(H),F(H,e)}function G(){M(H),M(W),M(V)}function Q(e){null!==e.memoizedState&&F(K,e);var t=H.current,n=yd(t,e.type);t!==n&&(F(W,e),F(H,n))}function Y(e){W.current===e&&(M(H),M(W)),K.current===e&&(M(K),uh._currentValue=I)}function X(e){if(void 0===B)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);B=t&&t[1]||"",q=-1<n.stack.indexOf("\n at")?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return"\n"+B+e+q}var Z=!1;function ee(e,t){if(!e||Z)return"";Z=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(n,[])}catch(a){var r=a}Reflect.construct(e,[],n)}
vendor: 5,948 bytes, line 2
2else{try{n.call()}catch(s){r=s}e.call(n.prototype)}}else{try{throw Error()}catch(i){r=i}(n=e())&&"function"===typeof n.catch&&n.catch(function(){})}}catch(o){if(o&&r&&"string"===typeof o.stack)return[o.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var a=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,"name");a&&a.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var s=r.DetermineComponentFrameRoot(),i=s[0],o=s[1];if(i&&o){var l=i.split("\n"),c=o.split("\n");for(a=r=0;r<l.length&&!l[r].includes("DetermineComponentFrameRoot");)r++;for(;a<c.length&&!c[a].includes("DetermineComponentFrameRoot");)a++;if(r===l.length||a===c.length)for(r=l.length-1,a=c.length-1;1<=r&&0<=a&&l[r]!==c[a];)a--;for(;1<=r&&0<=a;r--,a--)if(l[r]!==c[a]){if(1!==r||1!==a)do{if(r--,0>--a||l[r]!==c[a]){var u="\n"+l[r].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}}while(1<=r&&0<=a);break}}}finally{Z=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?X(n):""}function te(e,t){switch(e.tag){case 26:case 27:case 5:return X(e.type);case 16:return X("Lazy");case 13:return e.child!==t&&null!==t?X("Suspense Fallback"):X("Suspense");case 19:return X("SuspenseList");case 0:case 15:return ee(e.type,!1);case 11:return ee(e.type.render,!1);case 1:return ee(e.type,!0);case 31:return X("Activity");default:return""}}function ne(e){try{var t="",n=null;do{t+=te(e,n),n=e,e=e.return}while(e);return t}catch(r){return"\nError generating stack: "+r.message+"\n"+r.stack}}var re=Object.prototype.hasOwnProperty,ae=r.unstable_scheduleCallback,se=r.unstable_cancelCallback,ie=r.unstable_shouldYield,oe=r.unstable_requestPaint,le=r.unstable_now,ce=r.unstable_getCurrentPriorityLevel,ue=r.unstable_ImmediatePriority,de=r.unstable_UserBlockingPriority,he=r.unstable_NormalPriority,fe=r.unstable_LowPriority,pe=r.unstable_IdlePriority,me=r.log,ge=r.unstable_setDisableYieldValue,ve=null,ye=null;function be(e){if("function"===typeof me&&ge(e),ye&&"function"===typeof ye.setStrictMode)try{ye.setStrictMode(ve,e)}catch(t){}}var we=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(ke(e)/Se|0)|0},ke=Math.log,Se=Math.LN2;var xe=256,_e=262144,Ee=4194304;function je(e){var t=42&e;if(0!==t)return t;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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return 261888&e;case 262144:case 524288:case 1048576:case 2097152:return 3932160&e;case 4194304:case 8388608:case 16777216:case 33554432:return 62914560&e;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Te(e,t,n){var r=e.pendingLanes;if(0===r)return 0;var a=0,s=e.suspendedLanes,i=e.pingedLanes;e=e.warmLanes;var o=134217727&r;return 0!==o?0!==(r=o&~s)?a=je(r):0!==(i&=o)?a=je(i):n||0!==(n=o&~e)&&(a=je(n)):0!==(o=r&~s)?a=je(o):0!==i?a=je(i):n||0!==(n=r&~e)&&(a=je(n)),0===a?0:0!==t&&t!==a&&0===(t&s)&&((s=a&-a)>=(n=t&-t)||32===s&&0!==(4194048&n))?t:a}function Ne(e,t){return 0===(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)}function Ce(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function Re(){var e=Ee;return 0===(62914560&(Ee<<=1))&&(Ee=4194304),e}function Ae(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Oe(e,t){e.pendingLanes|=t,268435456!==t&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Pe(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-we(t);e.entangledLanes|=t,e.entanglements[r]=1073741824|e.entanglements[r]|261930&n}function Le(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-we(n),a=1<<r;a&t|e[r]&t&&(e[r]|=t),n&=~a}}function $e(e,t){var n=t&-t;return 0!==((n=0!==(42&n)?1:Ie(n))&(e.suspendedLanes|t))?0:n}function Ie(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function De(e){return 2<(e&=-e)?8<e?0!==(134217727&e)?32:268435456:8:2}function Ue(){var e=$.p;return 0!==e?e:void 0===(e=window.event)?32:jh(e.type)}function ze(e,t){var n=$.p;try{return $.p=e,t()}finally{$.p=n}}var Me=Math.random().toString(36).slice(2),Fe="__reactFiber$"+Me,Be="__reactProps$"+Me,qe="__reactContainer$"+Me,He="__reactEvents$"+Me,We="__reactListeners$"+Me,Ve="__reactHandles$"+Me,Ke="__reactResources$"+Me,Je="__reactMarker$"+Me;function Ge(e){delete e[Fe],delete e[Be],delete e[He],delete e[We],delete e[Ve]}function Qe(e){var t=e[Fe];if(t)return t;for(var n=e.parentNode;n;){if(t=n[qe]||n[Fe]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Id(e);null!==e;){if(n=e[Fe])return n;e=Id(e)}return t}n=(e=n).parentNode}return null}function Ye(e){if(e=e[Fe]||e[qe]){var t=e.tag;if(5===t||6===t||13===t||31===t||26===t||27===t||3===t)return e}return null}function Xe(e){var t=e.tag;if(5===t||26===t||27===t||6===t)return e.stateNode;throw Error(i(33))}function Ze(e){var t=e[Ke];return t||(t=e[Ke]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function et(e){e[Je]=!0}var tt=new Set,nt={};function rt(e,t){at(e,t),at(e+"Capture",t)}function at(e,t){for(nt[e]=t,e=0;e<t.length;e++)tt.add(t[e])}var st=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u
2037D\\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]*$"),it={},ot={};function lt(e,t,n){if(a=t,re.call(ot,a)||!re.call(it,a)&&(st.test(a)?ot[a]=!0:(it[a]=!0,0)))if(null===n)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":return void e.removeAttribute(t);case"boolean":var r=t.toLowerCase().slice(0,5);if("data-"!==r&&"aria-"!==r)return void e.removeAttribute(t)}e.setAttribute(t,""+n)}var a}function ct(e,t,n){if(null===n)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":return void e.removeAttribute(t)}e.setAttribute(t,""+n)}}function ut(e,t,n,r){if(null===r)e.removeAttribute(n);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":return void e.removeAttribute(n)}e.setAttributeNS(t,n,""+r)}}function dt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function ht(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function ft(e){if(!e._valueTracker){var t=ht(e)?"checked":"value";e._valueTracker=function(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&"undefined"!==typeof r&&"function"===typeof r.get&&"function"===typeof r.set){var a=r.get,s=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(e){n=""+e,s.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e,t,""+e[t])}}function pt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ht(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function mt(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}var gt=/[\n"\\]/g;function vt(e){return e.replace(gt,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function yt(e,t,n,r,a,s,i,o){e.name="",null!=i&&"function"!==typeof i&&"symbol"!==typeof i&&"boolean"!==typeof i?e.type=i:e.removeAttribute("type"),null!=t?"number"===i?(0===t&&""===e.value||e.value!=t)&&(e.value=""+dt(t)):e.value!==""+dt(t)&&(e.value=""+dt(t)):"submit"!==i&&"reset"!==i||e.removeAttribute("value"),null!=t?wt(e,i,dt(t)):null!=n?wt(e,i,dt(n)):null!=r&&e.removeAttribute("value"),null==a&&null!=s&&(e.defaultChecked=!!s),null!=a&&(e.checked=a&&"function"!==typeof a&&"symbol"!==typeof a),null!=o&&"function"!==typeof o&&"symbol"!==typeof o&&"boolean"!==typeof o?e.name=""+dt(o):e.removeAttribute("name")}function bt(e,t,n,r,a,s,i,o){if(null!=s&&"function"!==typeof s&&"symbol"!==typeof s&&"boolean"!==typeof s&&(e.type=s),null!=t||null!=n){if(!("submit"!==s&&"reset"!==s||void 0!==t&&null!==t))return void ft(e);n=null!=n?""+dt(n):"",t=null!=t?""+dt(t):n,o||t===e.value||(e.value=t),e.defaultValue=t}r="function"!==typeof(r=null!=r?r:a)&&"symbol"!==typeof r&&!!r,e.checked=o?e.checked:!!r,e.defaultChecked=!!r,null!=i&&"function"!==typeof i&&"symbol"!==typeof i&&"boolean"!==typeof i&&(e.name=i),ft(e)}function wt(e,t,n){"number"===t&&mt(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function kt(e,t,n,r){if(e=e.options,t){t={};for(var a=0;a<n.length;a++)t["$"+n[a]]=!0;for(n=0;n<e.length;n++)a=t.hasOwnProperty("$"+e[n].value),e[n].selected!==a&&(e[n].selected=a),a&&r&&(e[n].defaultSelected=!0)}else{for(n=""+dt(n),t=null,a=0;a<e.length;a++){if(e[a].value===n)return e[a].selected=!0,void(r&&(e[a].defaultSelected=!0));null!==t||e[a].disabled||(t=e[a])}null!==t&&(t.selected=!0)}}function St(e,t,n){null==t||((t=""+dt(t))!==e.value&&(e.value=t),null!=n)?e.defaultValue=null!=n?""+dt(n):"":e.defaultValue!==t&&(e.defaultValue=t)}function xt(e,t,n,r){if(null==t){if(null!=r){if(null!=n)throw Error(i(92));if(P(r)){if(1<r.length)throw Error(i(93));r=r[0]}n=r}null==n&&(n=""),t=n}n=dt(t),e.defaultValue=n,(r=e.textContent)===n&&""!==r&&null!==r&&(e.value=r),ft(e)}function _t(e,t){if(t){var n=e.firstChild;
2if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var Et=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function jt(e,t,n){var r=0===t.indexOf("--");null==n||"boolean"===typeof n||""===n?r?e.setProperty(t,""):"float"===t?e.cssFloat="":e[t]="":r?e.setProperty(t,n):"number"!==typeof n||0===n||Et.has(t)?"float"===t?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function Tt(e,t,n){if(null!=t&&"object"!==typeof t)throw Error(i(62));if(e=e.style,null!=n){for(var r in n)!n.hasOwnProperty(r)||null!=t&&t.hasOwnProperty(r)||(0===r.indexOf("--")?e.setProperty(r,""):"float"===r?e.cssFloat="":e[r]="");for(var a in t)r=t[a],t.hasOwnProperty(a)&&n[a]!==r&&jt(e,a,r)}else for(var s in t)t.hasOwnProperty(s)&&jt(e,s,t[s])}function Nt(e){if(-1===e.indexOf("-"))return!1;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 Ct=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode
2-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Rt=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function At(e){return Rt.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Ot(){}var Pt=null;function Lt(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var $t=null,It=null;function Dt(e){var t=Ye(e);if(t&&(e=t.stateNode)){var n=e[Be]||null;e:switch(e=t.stateNode,t.type){case"input":if(yt(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+vt(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[Be]||null;if(!a)throw Error(i(90));yt(r,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<n.length;t++)(r=n[t]).form===e.form&&pt(r)}break e;case"textarea":St(e,n.value,n.defaultValue);break e;case"select":null!=(t=n.value)&&kt(e,!!n.multiple,t,!1)}}}var Ut=!1;function zt(e,t,n){if(Ut)return e(t,n);Ut=!0;try{return e(t)}finally{if(Ut=!1,(null!==$t||null!==It)&&(Zc(),$t&&(t=$t,e=It,It=$t=null,Dt(t),e)))for(t=0;t<e.length;t++)Dt(e[t])}}function Mt(e,t){var n=e.stateNode;if(null===n)return null;var r=n[Be]||null;if(null===r)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)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!==typeof n)throw Error(i(231,t,typeof n));return n}var Ft=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),Bt=!1;if(Ft)try{var qt={};Object.defineProperty(qt,"passive",{get:function(){Bt=!0}}),window.addEventListener("test",qt,qt),window.removeEventListener("test",qt,qt)}catch(Yh){Bt=!1}var Ht=null,Wt=null,Vt=null;function Kt(){if(Vt)return Vt;var e,t,n=Wt,r=n.length,a="value"in Ht?Ht.value:Ht.textContent,s=a.length;for(e=0;e<r&&n[e]===a[e];e++);var i=r-e;for(t=1;t<=i&&n[r-t]===a[s-t];t++);return Vt=a.slice(e,1<t?1-t:void 0)}function Jt(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function Gt(){return!0}function Qt(){return!1}function Yt(e){function t(t,n,r,a,s){for(var i in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=a,this.target=s,this.currentTarget=null,e)e.hasOwnProperty(i)&&(t=e[i],this[i]=t?t(a):a[i]);return this.isDefaultPrevented=(null!=a.defaultPrevented?a.defaultPrevented:!1===a.returnValue)?Gt:Qt,this.isPropagationStopped=Qt,this}return f(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=Gt)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Gt)},persist:function(){},isPersistent:Gt}),t}var Xt,Zt,en,tn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},nn=Yt(tn),rn=f({},tn,{view:0,detail:0}),an=Yt(rn),sn=f({},rn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:vn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.from
vendor: 4,404 bytes, line 2
2Element===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==en&&(en&&"mousemove"===e.type?(Xt=e.screenX-en.screenX,Zt=e.screenY-en.screenY):Zt=Xt=0,en=e),Xt)},movementY:function(e){return"movementY"in e?e.movementY:Zt}}),on=Yt(sn),ln=Yt(f({},sn,{dataTransfer:0})),cn=Yt(f({},rn,{relatedTarget:0})),un=Yt(f({},tn,{animationName:0,elapsedTime:0,pseudoElement:0})),dn=Yt(f({},tn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),hn=Yt(f({},tn,{data:0})),fn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},pn={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"},mn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function gn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=mn[e])&&!!t[e]}function vn(){return gn}var yn=Yt(f({},rn,{key:function(e){if(e.key){var t=fn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Jt(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?pn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:vn,charCode:function(e){return"keypress"===e.type?Jt(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Jt(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),bn=Yt(f({},sn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),wn=Yt(f({},rn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:vn})),kn=Yt(f({},tn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Sn=Yt(f({},sn,{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})),xn=Yt(f({},tn,{newState:0,oldState:0})),_n=[9,13,27,32],En=Ft&&"CompositionEvent"in window,jn=null;Ft&&"documentMode"in document&&(jn=document.documentMode);var Tn=Ft&&"TextEvent"in window&&!jn,Nn=Ft&&(!En||jn&&8<jn&&11>=jn),Cn=String.fromCharCode(32),Rn=!1;function An(e,t){switch(e){case"keyup":return-1!==_n.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function On(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var Pn=!1;var Ln={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 $n(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Ln[e.type]:"textarea"===t}function In(e,t,n,r){$t?It?It.push(r):It=[r]:$t=r,0<(t=rd(t,"onChange")).length&&(n=new nn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Dn=null,Un=null;function zn(e){Gu(e,0)}function Mn(e){if(pt(Xe(e)))return e}function Fn(e,t){if("change"===e)return t}var Bn=!1;if(Ft){var qn;if(Ft){var Hn="oninput"in document;if(!Hn){var Wn=document.createElement("div");Wn.setAttribute("oninput","return;"),Hn="function"===typeof Wn.oninput}qn=Hn}else qn=!1;Bn=qn&&(!document.documentMode||9<document.documentMode)}function Vn(){Dn&&(Dn.detachEvent("onpropertychange",Kn),Un=Dn=null)}function Kn(e){if("value"===e.propertyName&&Mn(Un)){var t=[];In(t,Un,e,Lt(e)),zt(zn,t)}}function Jn(e,t,n){"focusin"===e?(Vn(),Un=n,(Dn=t).attachEvent("onpropertychange",Kn)):"focusout"===e&&Vn()}function Gn(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Mn(Un)}function Qn(e,t){if("click"===e)return Mn(t)}function Yn(e,t){if("input"===e||"change"===e)return Mn(t)}var Xn="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t};function Zn(e,t){if(Xn(e,t))return!0;
vendor: 4,633 bytes, line 2
2if("object"!==typeof e||null===e||"object"!==typeof t||null===t)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 a=n[r];if(!re.call(t,a)||!Xn(e[a],t[a]))return!1}return!0}function er(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function tr(e,t){var n,r=er(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=er(r)}}function nr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?nr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function rr(e){for(var t=mt((e=null!=e&&null!=e.ownerDocument&&null!=e.ownerDocument.defaultView?e.ownerDocument.defaultView:window).document);t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=mt((e=t.contentWindow).document)}return t}function ar(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var sr=Ft&&"documentMode"in document&&11>=document.documentMode,ir=null,or=null,lr=null,cr=!1;function ur(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;cr||null==ir||ir!==mt(r)||("selectionStart"in(r=ir)&&ar(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},lr&&Zn(lr,r)||(lr=r,0<(r=rd(or,"onSelect")).length&&(t=new nn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=ir)))}function dr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var hr={animationend:dr("Animation","AnimationEnd"),animationiteration:dr("Animation","AnimationIteration"),animationstart:dr("Animation","AnimationStart"),transitionrun:dr("Transition","TransitionRun"),transitionstart:dr("Transition","TransitionStart"),transitioncancel:dr("Transition","TransitionCancel"),transitionend:dr("Transition","TransitionEnd")},fr={},pr={};function mr(e){if(fr[e])return fr[e];if(!hr[e])return e;var t,n=hr[e];for(t in n)if(n.hasOwnProperty(t)&&t in pr)return fr[e]=n[t];return e}Ft&&(pr=document.createElement("div").style,"AnimationEvent"in window||(delete hr.animationend.animation,delete hr.animationiteration.animation,delete hr.animationstart.animation),"TransitionEvent"in window||delete hr.transitionend.transition);var gr=mr("animationend"),vr=mr("animationiteration"),yr=mr("animationstart"),br=mr("transitionrun"),wr=mr("transitionstart"),kr=mr("transitioncancel"),Sr=mr("transitionend"),xr=new Map,_r="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Er(e,t){xr.set(e,t),rt(t,[e])}_r.push("scrollEnd");var jr="function"===typeof reportError?reportError:function(e){if("object"===typeof window&&"function"===typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"===typeof e&&null!==e&&"string"===typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if("object"===typeof process&&"function"===typeof process.emit)return void process.emit("uncaughtException",e);console.error(e)},Tr=[],Nr=0,Cr=0;function Rr(){for(var e=Nr,t=Cr=Nr=0;t<e;){var n=Tr[t];Tr[t++]=null;var r=Tr[t];Tr[t++]=null;var a=Tr[t];Tr[t++]=null;var s=Tr[t];if(Tr[t++]=null,null!==r&&null!==a){var i=r.pending;null===i?a.next=a:(a.next=i.next,i.next=a),r.pending=a}0!==s&&Lr(n,a,s)}}function Ar(e,t,n,r){Tr[Nr++]=e,Tr[Nr++]=t,Tr[Nr++]=n,Tr[Nr++]=r,Cr|=r,e.lanes|=r,null!==(e=e.alternate)&&(e.lanes|=r)}function Or(e,t,n,r){return Ar(e,t,n,r),$r(e)}function Pr(e,t){return Ar(e,null,null,t),$r(e)}function Lr(e,t,n){e.lanes|=n;var r=e.alternate;null!==r&&(r.lanes|=n);for(var a=!1,s=e.return;null!==s;
vendor: 13,781 bytes, line 2
2)s.childLanes|=n,null!==(r=s.alternate)&&(r.childLanes|=n),22===s.tag&&(null===(e=s.stateNode)||1&e._visibility||(a=!0)),e=s,s=s.return;return 3===e.tag?(s=e.stateNode,a&&null!==t&&(a=31-we(n),null===(r=(e=s.hiddenUpdates)[a])?e[a]=[t]:r.push(t),t.lane=536870912|n),s):null}function $r(e){if(50<Hc)throw Hc=0,Wc=null,Error(i(185));for(var t=e.return;null!==t;)t=(e=t).return;return 3===e.tag?e.stateNode:null}var Ir={};function Dr(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.refCleanup=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 Ur(e,t,n,r){return new Dr(e,t,n,r)}function zr(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Mr(e,t){var n=e.alternate;return null===n?((n=Ur(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=65011712&e.flags,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=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function Fr(e,t){e.flags&=65011714;var n=e.alternate;return null===n?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Br(e,t,n,r,a,s){var o=0;if(r=e,"function"===typeof e)zr(e)&&(o=1);else if("string"===typeof e)o=function(e,t,n){if(1===n||null!=t.itemProp)return!1;switch(e){case"meta":case"title":return!0;case"style":if("string"!==typeof t.precedence||"string"!==typeof t.href||""===t.href)break;return!0;case"link":if("string"!==typeof t.rel||"string"!==typeof t.href||""===t.href||t.onLoad||t.onError)break;return"stylesheet"!==t.rel||(e=t.disabled,"string"===typeof t.precedence&&null==e);case"script":if(t.async&&"function"!==typeof t.async&&"symbol"!==typeof t.async&&!t.onLoad&&!t.onError&&t.src&&"string"===typeof t.src)return!0}return!1}(e,n,H.current)?26:"html"===e||"head"===e||"body"===e?27:5;else e:switch(e){case T:return(e=Ur(31,n,t,a)).elementType=T,e.lanes=s,e;case v:return qr(n.children,a,s,t);case y:o=8,a|=24;break;case b:return(e=Ur(12,n,t,2|a)).elementType=b,e.lanes=s,e;case x:return(e=Ur(13,n,t,a)).elementType=x,e.lanes=s,e;case _:return(e=Ur(19,n,t,a)).elementType=_,e.lanes=s,e;default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case k:o=10;break e;case w:o=9;break e;case S:o=11;break e;case E:o=14;break e;case j:o=16,r=null;break e}o=29,n=Error(i(130,null===e?"null":typeof e,"")),r=null}return(t=Ur(o,n,t,a)).elementType=e,t.type=r,t.lanes=s,t}function qr(e,t,n,r){return(e=Ur(7,e,r,t)).lanes=n,e}function Hr(e,t,n){return(e=Ur(6,e,null,t)).lanes=n,e}function Wr(e){var t=Ur(18,null,null,0);return t.stateNode=e,t}function Vr(e,t,n){return(t=Ur(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Kr=new WeakMap;function Jr(e,t){if("object"===typeof e&&null!==e){var n=Kr.get(e);return void 0!==n?n:(t={value:e,source:t,stack:ne(t)},Kr.set(e,t),t)}return{value:e,source:t,stack:ne(t)}}var Gr=[],Qr=0,Yr=null,Xr=0,Zr=[],ea=0,ta=null,na=1,ra="";function aa(e,t){Gr[Qr++]=Xr,Gr[Qr++]=Yr,Yr=e,Xr=t}function sa(e,t,n){Zr[ea++]=na,Zr[ea++]=ra,Zr[ea++]=ta,ta=e;var r=na;e=ra;var a=32-we(r)-1;r&=~(1<<a),n+=1;var s=32-we(t)+a;if(30<s){var i=a-a%5;s=(r&(1<<i)-1).toString(32),r>>=i,a-=i,na=1<<32-we(t)+a|n<<a|r,ra=s+e}else na=1<<s|n<<a|r,ra=e}function ia(e){null!==e.return&&(aa(e,1),sa(e,1,0))}function oa(e){for(;e===Yr;)Yr=Gr[--Qr],Gr[Qr]=null,Xr=Gr[--Qr],Gr[Qr]=null;for(;e===ta;)ta=Zr[--ea],Zr[ea]=null,ra=Zr[--ea],Zr[ea]=null,na=Zr[--ea],Zr[ea]=null}function la(e,t){Zr[ea++]=na,Zr[ea++]=ra,Zr[ea++]=ta,na=t.id,ra=t.overflow,ta=e}var ca=null,ua=null,da=!1,ha=null,fa=!1,pa=Error(i(519));function ma(e){throw ka(Jr(Error(i(418,1<arguments.length&&void 0!==arguments[1]&&arguments[1]?"text":"HTML","")),e)),pa}function ga(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[Fe]=e,t[Be]=r,n){case"dialog":Qu("cancel",t),Qu("close",t);break;case"iframe":case"object":case"embed":Qu("load",t);break;case"video":case"audio":for(n=0;n<Ku.length;n++)Qu(Ku[n],t);break;case"source":Qu("error",t);break;case"img":case"image":case"link":Qu("error",t),Qu("load",t);break;case"details":Qu("toggle",t);break;case"input":Qu("invalid",t),bt(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case"select":Qu("invalid",t);break;case"textarea":Qu("invalid",t),xt(t,r.value,r.defaultValue,r.children)}"string"!==typeof(n=r.children)&&"number"!==typeof n&&"bigint"!==typeof n||t.textContent===""+n||!0===r.suppressHydrationWarning||cd(t.textContent,n)?(null!=r.popover&&(Qu("beforetoggle",t),Qu("toggle",t)),null!=r.onScroll&&Qu("scroll",t),null!=r.onScrollEnd&&Qu("scrollend",t),null!=r.onClick&&(t.onclick=Ot),t=!0):t=!1,t||ma(e,!0)}function va(e){for(ca=e.return;ca;)switch(ca.tag){case 5:case 31:case 13:return void(fa=!1);case 27:case 3:return void(fa=!0);default:ca=ca.return}}function ya(e){if(e!==ca)return!1;if(!da)return va(e),da=!0,!1;var t,n=e.tag;if((t=3!==n&&27!==n)&&((t=5===n)&&(t=!("form"!==(t=e.type)&&"button"!==t)||bd(e.type,e.memoizedProps)),t=!t),t&&ua&&ma(e),va(e),13===n){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(i(317));ua=$d(e)}else if(31===n){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(i(317));ua=$d(e)}else 27===n?(n=ua,jd(e.type)?(e=Ld,Ld=null,ua=e):ua=n):ua=ca?Pd(e.stateNode.nextSibling):null;return!0}function ba(){ua=ca=null,da=!1}function wa(){var e=ha;return null!==e&&(null===Rc?Rc=e:Rc.push.apply(Rc,e),ha=null),e}function ka(e){null===ha?ha=[e]:ha.push(e)}var Sa=z(null),xa=null,_a=null;function Ea(e,t,n){F(Sa,t._currentValue),t._currentValue=n}function ja(e){e._currentValue=Sa.current,M(Sa)}function Ta(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Na(e,t,n,r){var a=e.child;for(null!==a&&(a.return=e);null!==a;){var s=a.dependencies;if(null!==s){var o=a.child;s=s.firstContext;e:for(;null!==s;){var l=s;s=a;for(var c=0;c<t.length;c++)if(l.context===t[c]){s.lanes|=n,null!==(l=s.alternate)&&(l.lanes|=n),Ta(s.return,n,e),r||(o=null);break e}s=l.next}}else if(18===a.tag){if(null===(o=a.return))throw Error(i(341));o.lanes|=n,null!==(s=o.alternate)&&(s.lanes|=n),Ta(o,n,e),o=null}else o=a.child;if(null!==o)o.return=a;else for(o=a;null!==o;){if(o===e){o=null;break}if(null!==(a=o.sibling)){a.return=o.return,o=a;break}o=o.return}a=o}}function Ca(e,t,n,r){e=null;for(var a=t,s=!1;null!==a;){if(!s)if(0!==(524288&a.flags))s=!0;else if(0!==(262144&a.flags))break;if(10===a.tag){var o=a.alternate;if(null===o)throw Error(i(387));if(null!==(o=o.memoizedProps)){var l=a.type;Xn(a.pendingProps.value,o.value)||(null!==e?e.push(l):e=[l])}}else if(a===K.current){if(null===(o=a.alternate))throw Error(i(387));o.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(null!==e?e.push(uh):e=[uh])}a=a.return}null!==e&&Na(t,e,n,r),t.flags|=262144}function Ra(e){for(e=e.firstContext;null!==e;){if(!Xn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Aa(e){xa=e,_a=null,null!==(e=e.dependencies)&&(e.firstContext=null)}function Oa(e){return La(xa,e)}function Pa(e,t){return null===xa&&Aa(e),La(e,t)}function La(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},null===_a){if(null===e)throw Error(i(308));_a=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else _a=_a.next=t;return n}var $a="undefined"!==typeof AbortController?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},Ia=r.unstable_scheduleCallback,Da=r.unstable_NormalPriority,Ua={$$typeof:k,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function za(){return{controller:new $a,data:new Map,refCount:0}}function Ma(e){e.refCount--,0===e.refCount&&Ia(Da,function(){e.controller.abort()})}var Fa=null,Ba=0,qa=0,Ha=null;function Wa(){if(0===--Ba&&null!==Fa){null!==Ha&&(Ha.status="fulfilled");var e=Fa;Fa=null,qa=0,Ha=null;for(var t=0;t<e.length;t++)(0,e[t])()}}var Va=L.S;L.S=function(e,t){Pc=le(),"object"===typeof t&&null!==t&&"function"===typeof t.then&&function(e,t){if(null===Fa){var n=Fa=[];Ba=0,qa=Bu(),Ha={status:"pending",value:void 0,then:function(e){n.push(e)}}}Ba++,t.then(Wa,Wa)}(0,t),null!==Va&&Va(e,t)};var Ka=z(null);function Ja(){var e=Ka.current;return null!==e?e:pc.pooledCache}function Ga(e,t){F(Ka,null===t?Ka.current:t.pool)}function Qa(){var e=Ja();return null===e?null:{parent:Ua._currentValue,pool:e}}var Ya=Error(i(460)),Xa=Error(i(474)),Za=Error(i(542)),es={then:function(){}};function ts(e){return"fulfilled"===(e=e.status)||"rejected"===e}function ns(e,t,n){switch(void 0===(n=e[n])?e.push(t):n!==t&&(t.then(Ot,Ot),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw is(e=t.reason),e;default:if("string"===typeof t.status)t.then(Ot,Ot);else{if(null!==(e=pc)&&100<e.shellSuspendCounter)throw Error(i(482));(e=t).status="pending",e.then(function(e){if("pending"===t.status){var n=t;n.status="fulfilled",n.value=e}},function(e){if("pending"===t.status){var n=t;n.status="rejected",n.reason=e}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw is(e=t.reason),e}throw as=t,Ya}}function rs(e){try{return(0,e._init)(e._payload)}catch(t){if(null!==t&&"object"===typeof t&&"function"===typeof t.then)throw as=t,Ya;throw t}}var as=null;function ss(){if(null===as)throw Error(i(459));var e=as;return as=null,e}function is(e){if(e===Ya||e===Za)throw Error(i(483))}var os=null,ls=0;function cs(e){var t=ls;return ls+=1,null===os&&(os=[]),ns(os,e,t)}function us(e,t){t=t.props.ref,e.ref=void 0!==t?t:null}function ds(e,t){if(t.$$typeof===p)throw Error(i(525));throw e=Object.prototype.toString.call(t),Error(i(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function hs(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;null!==e;)null!==e.key?t.set(e.key,e):t.set(e.index,e),e=e.sibling;return t}function a(e,t){return(e=Mr(e,t)).index=0,e.sibling=null,e}function s(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=67108866,n):r:(t.flags|=67108866,n):(t.flags|=1048576,n)}function o(t){return e&&null===t.alternate&&(t.flags|=67108866),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Hr(n,e.mode,r)).return=e,t):((t=a(t,n)).return=e,t)}function c(e,t,n,r){var s=n.type;return s===v?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===s||"object"===typeof s&&null!==s&&s.$$typeof===j&&rs(s)===t.type)?(us(t=a(t,n.props),n),t.return=e,t):(us(t=Br(n.type,n.key,n.props,null,e.mode,r),n),t.return=e,t)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Vr(n,e.mode,r)).return=e,t):((t=a(t,n.children||[])).return=e,t)}function d(e,t,n,r,s){return null===t||7!==t.tag?((t=qr(n,e.mode,r,s)).return=e,t):((t=a(t,n)).return=e,t)}function h(e,t,n){if("string"===typeof t&&""!==t||"number"===typeof t||"bigint"===typeof t)return(t=Hr(""+t,e.mode,n)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case m:return us(n=Br(t.type,t.key,t.props,null,e.mode,n),t),n.return=e,n;case g:return(t=Vr(t,e.mode,n)).return=e,t;case j:return h(e,t=rs(t),n)}if(P(t)||R(t))return(t=qr(t,e.mode,n,null)).return=e,t;if("function"===typeof t.then)return h(e,cs(t),n);if(t.$$typeof===k)return h(e,Pa(e,t),n);ds(e,t)}return null}function f(e,t,n,r){var a=null!==t?t.key:null;if("string"===typeof n&&""!==n||"number"===typeof n||"bigint"===typeof n)return null!==a?null:l(e,t,""+n,r);if("object"===typeof n&&null!==n){switch(n.$$typeof){case m:return n.key===a?c(e,t,n,r):null;case g:return n.key===a?u(e,t,n,r):null;case j:return f(e,t,n=rs(n),r)}if(P(n)||R(n))return null!==a?null:d(e,t,n,r,null);if("function"===typeof n.then)return f(e,t,cs(n),r);if(n.$$typeof===k)return f(e,t,Pa(e,n),r);ds(e,n)}return null}function p(e,t,n,r,a){if("string"===typeof r&&""!==r||"number"===typeof r||"bigint"===typeof r)return l(t,e=e.get(n)||null,""+r,a);if("object"===typeof r&&null!==r){switch(r.$$typeof){case m:return c(t,e=e.get(null===r.key?n:r.key)||null,r,a);case g:return u(t,e=e.get(null===r.key?n:r.key)||null,r,a);case j:return p(e,t,n,r=rs(r),a)}if(P(r)||R(r))return d(t,e=e.get(n)||null,r,a,null);if("function"===typeof r.then)return p(e,t,n,cs(r),a);if(r.$$typeof===k)return p(e,t,n,Pa(t,r),a);ds(t,r)}return null}function y(l,c,u,d){if("object"===typeof u&&null!==u&&u.type===v&&null===u.key&&(u=u.props.children),"object"===typeof u&&null!==u){switch(u.$$typeof){case m:e:{for(var b=u.key;null!==c;){if(c.key===b){if((b=u.type)===v){if(7===c.tag){n(l,c.sibling),(
vendor: 9,238 bytes, line 2
2d=a(c,u.props.children)).return=l,l=d;break e}}else if(c.elementType===b||"object"===typeof b&&null!==b&&b.$$typeof===j&&rs(b)===c.type){n(l,c.sibling),us(d=a(c,u.props),u),d.return=l,l=d;break e}n(l,c);break}t(l,c),c=c.sibling}u.type===v?((d=qr(u.props.children,l.mode,d,u.key)).return=l,l=d):(us(d=Br(u.type,u.key,u.props,null,l.mode,d),u),d.return=l,l=d)}return o(l);case g:e:{for(b=u.key;null!==c;){if(c.key===b){if(4===c.tag&&c.stateNode.containerInfo===u.containerInfo&&c.stateNode.implementation===u.implementation){n(l,c.sibling),(d=a(c,u.children||[])).return=l,l=d;break e}n(l,c);break}t(l,c),c=c.sibling}(d=Vr(u,l.mode,d)).return=l,l=d}return o(l);case j:return y(l,c,u=rs(u),d)}if(P(u))return function(a,i,o,l){for(var c=null,u=null,d=i,m=i=0,g=null;null!==d&&m<o.length;m++){d.index>m?(g=d,d=null):g=d.sibling;var v=f(a,d,o[m],l);if(null===v){null===d&&(d=g);break}e&&d&&null===v.alternate&&t(a,d),i=s(v,i,m),null===u?c=v:u.sibling=v,u=v,d=g}if(m===o.length)return n(a,d),da&&aa(a,m),c;if(null===d){for(;m<o.length;m++)null!==(d=h(a,o[m],l))&&(i=s(d,i,m),null===u?c=d:u.sibling=d,u=d);return da&&aa(a,m),c}for(d=r(d);m<o.length;m++)null!==(g=p(d,a,m,o[m],l))&&(e&&null!==g.alternate&&d.delete(null===g.key?m:g.key),i=s(g,i,m),null===u?c=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(a,e)}),da&&aa(a,m),c}(l,c,u,d);if(R(u)){if("function"!==typeof(b=R(u)))throw Error(i(150));return function(a,o,l,c){if(null==l)throw Error(i(151));for(var u=null,d=null,m=o,g=o=0,v=null,y=l.next();null!==m&&!y.done;g++,y=l.next()){m.index>g?(v=m,m=null):v=m.sibling;var b=f(a,m,y.value,c);if(null===b){null===m&&(m=v);break}e&&m&&null===b.alternate&&t(a,m),o=s(b,o,g),null===d?u=b:d.sibling=b,d=b,m=v}if(y.done)return n(a,m),da&&aa(a,g),u;if(null===m){for(;!y.done;g++,y=l.next())null!==(y=h(a,y.value,c))&&(o=s(y,o,g),null===d?u=y:d.sibling=y,d=y);return da&&aa(a,g),u}for(m=r(m);!y.done;g++,y=l.next())null!==(y=p(m,a,g,y.value,c))&&(e&&null!==y.alternate&&m.delete(null===y.key?g:y.key),o=s(y,o,g),null===d?u=y:d.sibling=y,d=y);return e&&m.forEach(function(e){return t(a,e)}),da&&aa(a,g),u}(l,c,u=b.call(u),d)}if("function"===typeof u.then)return y(l,c,cs(u),d);if(u.$$typeof===k)return y(l,c,Pa(l,u),d);ds(l,u)}return"string"===typeof u&&""!==u||"number"===typeof u||"bigint"===typeof u?(u=""+u,null!==c&&6===c.tag?(n(l,c.sibling),(d=a(c,u)).return=l,l=d):(n(l,c),(d=Hr(u,l.mode,d)).return=l,l=d),o(l)):n(l,c)}return function(e,t,n,r){try{ls=0;var a=y(e,t,n,r);return os=null,a}catch(i){if(i===Ya||i===Za)throw i;var s=Ur(29,i,null,e.mode);return s.lanes=r,s.return=e,s}}}var fs=hs(!0),ps=hs(!1),ms=!1;function gs(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function vs(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function ys(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function bs(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!==(2&fc)){var a=r.pending;return null===a?t.next=t:(t.next=a.next,a.next=t),r.pending=t,t=$r(e),Lr(e,null,n),t}return Ar(e,r,t,n),$r(e)}function ws(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!==(4194048&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,Le(e,n)}}function ks(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var a=null,s=null;if(null!==(n=n.firstBaseUpdate)){do{var i={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};null===s?a=s=i:s=s.next=i,n=n.next}while(null!==n);null===s?a=s=t:s=s.next=t}else a=s=t;return n={baseState:r.baseState,firstBaseUpdate:a,lastBaseUpdate:s,shared:r.shared,callbacks:r.callbacks},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Ss=!1;function xs(){if(Ss){if(null!==Ha)throw Ha}}function _s(e,t,n,r){Ss=!1;var a=e.updateQueue;ms=!1;var s=a.firstBaseUpdate,i=a.lastBaseUpdate,o=a.shared.pending;if(null!==o){a.shared.pending=null;var l=o,c=l.next;l.next=null,null===i?s=c:i.next=c,i=l;var u=e.alternate;null!==u&&((o=(u=u.updateQueue).lastBaseUpdate)!==i&&(null===o?u.firstBaseUpdate=c:o.next=c,u.lastBaseUpdate=l))}if(null!==s){var d=a.baseState;for(i=0,u=c=l=null,o=s;;){var h=-536870913&o.lane,p=h!==o.lane;if(p?(gc&h)===h:(r&h)===h){0!==h&&h===qa&&(Ss=!0),null!==u&&(u=u.next={lane:0,tag:o.tag,payload:o.payload,callback:null,next:null});e:{var m=e,g=o;h=t;var v=n;switch(g.tag){case 1:if("function"===typeof(m=g.payload)){d=m.call(v,d,h);break e}d=m;break e;case 3:m.flags=-65537&m.flags|128;case 0:if(null===(h="function"===typeof(m=g.payload)?m.call(v,d,h):m)||void 0===h)break e;d=f({},d,h);break e;case 2:ms=!0}}null!==(h=o.callback)&&(e.flags|=64,p&&(e.flags|=8192),null===(p=a.callbacks)?a.callbacks=[h]:p.push(h))}else p={lane:h,tag:o.tag,payload:o.payload,callback:o.callback,next:null},null===u?(c=u=p,l=d):u=u.next=p,i|=h;if(null===(o=o.next)){if(null===(o=a.shared.pending))break;o=(p=o).next,p.next=null,a.lastBaseUpdate=p,a.shared.pending=null}}null===u&&(l=d),a.baseState=l,a.firstBaseUpdate=c,a.lastBaseUpdate=u,null===s&&(a.shared.lanes=0),_c|=i,e.lanes=i,e.memoizedState=d}}function Es(e,t){if("function"!==typeof e)throw Error(i(191,e));e.call(t)}function js(e,t){var n=e.callbacks;if(null!==n)for(e.callbacks=null,e=0;e<n.length;e++)Es(n[e],t)}var Ts=z(null),Ns=z(0);function Cs(e,t){F(Ns,e=Sc),F(Ts,t),Sc=e|t.baseLanes}function Rs(){F(Ns,Sc),F(Ts,Ts.current)}function As(){Sc=Ns.current,M(Ts),M(Ns)}var Os=z(null),Ps=null;function Ls(e){var t=e.alternate;F(zs,1&zs.current),F(Os,e),null===Ps&&(null===t||null!==Ts.current||null!==t.memoizedState)&&(Ps=e)}function $s(e){F(zs,zs.current),F(Os,e),null===Ps&&(Ps=e)}function Is(e){22===e.tag?(F(zs,zs.current),F(Os,e),null===Ps&&(Ps=e)):Ds()}function Ds(){F(zs,zs.current),F(Os,Os.current)}function Us(e){M(Os),Ps===e&&(Ps=null),M(zs)}var zs=z(0);function Ms(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||Ad(n)||Od(n)))return t}else if(19!==t.tag||"forwards"!==t.memoizedProps.revealOrder&&"backwards"!==t.memoizedProps.revealOrder&&"unstable_legacy-backwards"!==t.memoizedProps.revealOrder&&"together"!==t.memoizedProps.revealOrder){if(null!==t.child){t.child.return=t,t=t.child;continue}}else if(0!==(128&t.flags))return t;if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Fs=0,Bs=null,qs=null,Hs=null,Ws=!1,Vs=!1,Ks=!1,Js=0,Gs=0,Qs=null,Ys=0;function Xs(){throw Error(i(321))}function Zs(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Xn(e[n],t[n]))return!1;return!0}function ei(e,t,n,r,a,s){return Fs=s,Bs=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,L.H=null===e||null===e.memoizedState?go:vo,Ks=!1,s=n(r,a),Ks=!1,Vs&&(s=ni(t,n,r,a)),ti(e),s}function ti(e){L.H=mo;var t=null!==qs&&null!==qs.next;if(Fs=0,Hs=qs=Bs=null,Ws=!1,Gs=0,Qs=null,t)throw Error(i(300));null===e||Po||null!==(e=e.dependencies)&&Ra(e)&&(Po=!0)}function ni(e,t,n,r){Bs=e;var a=0;do{if(Vs&&(Qs=null),Gs=0,Vs=!1,25<=a)throw Error(i(301));if(a+=1,Hs=qs=null,null!=e.updateQueue){var s=e.updateQueue;s.lastEffect=null,s.events=null,s.stores=null,null!=s.memoCache&&(s.memoCache.index=0)}L.H=yo,s=t(n,r)}while(Vs);return s}function ri(){var e=L.H,t=e.useState()[0];return t="function"===typeof t.then?ci(t):t,e=e.useState()[0],(null!==qs?qs.memoizedState:null)!==e&&(Bs.flags|=1024),t}function ai(){var e=0!==Js;return Js=0,e}function si(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function ii(e){if(Ws){for(e=e.memoizedState;null!==e;){var t=e.queue;null!==t&&(t.pending=null),e=e.next}Ws=!1}Fs=0,Hs=qs=Bs=null,Vs=!1,Gs=Js=0,Qs=null}function oi(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Hs?Bs.memoizedState=Hs=e:Hs=Hs.next=e,Hs}function li(){if(null===qs){var e=Bs.alternate;e=null!==e?e.memoizedState:null}else e=qs.next;var t=null===Hs?Bs.memoizedState:Hs.next;if(null!==t)Hs=t,qs=e;else{if(null===e){if(null===Bs.alternate)throw Error(i(467));throw Error(i(310))}e={memoizedState:(qs=e).memoizedState,baseState:qs.baseState,baseQueue:qs.baseQueue,queue:qs.queue,next:null},null===Hs?Bs.memoizedState=Hs=e:Hs=Hs.next=e}return Hs}function ci(e){var t=Gs;return Gs+=1,null===Qs&&(Qs=[]),e=ns(Qs,e,t),t=Bs,null===(null===Hs?t.memoizedState:Hs.next)&&(t=t.alternate,L.H=null===t||null===t.memoizedState?go:vo),e}function ui(e){if(null!==e&&"object"===typeof e){if("function"===typeof e.then)return ci(e);if(e.$$typeof===k)return Oa(e)}throw Error(i(438,String(e)))}function di(e){var t=null,n=Bs.updateQueue;if(null!==n&&(t=n.memoCache),null==t){var r=Bs.alternate;null!==r&&(null!==(r=r.updateQueue)&&(null!=(r=r.memoCache)&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(null==t&&(t={data:[],index:0}),null===n&&(n={lastEffect:null,events:null,stores:null,memoCache:null},Bs.updateQueue=n),n.memoCache=t,void 0===(n=t.data[t.index]))for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=N;return t.index++,n}function hi(e,t){return"function"===typeof t?t(e):t}
vendor: 6,544 bytes, line 2
2function fi(e){return pi(li(),qs,e)}function pi(e,t,n){var r=e.queue;if(null===r)throw Error(i(311));r.lastRenderedReducer=n;var a=e.baseQueue,s=r.pending;if(null!==s){if(null!==a){var o=a.next;a.next=s.next,s.next=o}t.baseQueue=a=s,r.pending=null}if(s=e.baseState,null===a)e.memoizedState=s;else{var l=o=null,c=null,u=t=a.next,d=!1;do{var h=-536870913&u.lane;if(h!==u.lane?(gc&h)===h:(Fs&h)===h){var f=u.revertLane;if(0===f)null!==c&&(c=c.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),h===qa&&(d=!0);else{if((Fs&f)===f){u=u.next,f===qa&&(d=!0);continue}h={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},null===c?(l=c=h,o=s):c=c.next=h,Bs.lanes|=f,_c|=f}h=u.action,Ks&&n(s,h),s=u.hasEagerState?u.eagerState:n(s,h)}else f={lane:h,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},null===c?(l=c=f,o=s):c=c.next=f,Bs.lanes|=h,_c|=h;u=u.next}while(null!==u&&u!==t);if(null===c?o=s:c.next=l,!Xn(s,e.memoizedState)&&(Po=!0,d&&null!==(n=Ha)))throw n;e.memoizedState=s,e.baseState=o,e.baseQueue=c,r.lastRenderedState=s}return null===a&&(r.lanes=0),[e.memoizedState,r.dispatch]}function mi(e){var t=li(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,s=t.memoizedState;if(null!==a){n.pending=null;var o=a=a.next;do{s=e(s,o.action),o=o.next}while(o!==a);Xn(s,t.memoizedState)||(Po=!0),t.memoizedState=s,null===t.baseQueue&&(t.baseState=s),n.lastRenderedState=s}return[s,r]}function gi(e,t,n){var r=Bs,a=li(),s=da;if(s){if(void 0===n)throw Error(i(407));n=n()}else n=t();var o=!Xn((qs||a).memoizedState,n);if(o&&(a.memoizedState=n,Po=!0),a=a.queue,Fi(bi.bind(null,r,a,e),[e]),a.getSnapshot!==t||o||null!==Hs&&1&Hs.memoizedState.tag){if(r.flags|=2048,Ii(9,{destroy:void 0},yi.bind(null,r,a,n,t),null),null===pc)throw Error(i(349));s||0!==(127&Fs)||vi(r,t,n)}return n}function vi(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=Bs.updateQueue)?(t={lastEffect:null,events:null,stores:null,memoCache:null},Bs.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function yi(e,t,n,r){t.value=n,t.getSnapshot=r,wi(t)&&ki(e)}function bi(e,t,n){return n(function(){wi(t)&&ki(e)})}function wi(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Xn(e,n)}catch(r){return!0}}function ki(e){var t=Pr(e,2);null!==t&&Jc(t,e,2)}function Si(e){var t=oi();if("function"===typeof e){var n=e;if(e=n(),Ks){be(!0);try{n()}finally{be(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:hi,lastRenderedState:e},t}function xi(e,t,n,r){return e.baseState=n,pi(e,qs,"function"===typeof r?r:hi)}function _i(e,t,n,r,a){if(ho(e))throw Error(i(485));if(null!==(e=t.action)){var s={payload:a,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(e){s.listeners.push(e)}};null!==L.T?n(!0):s.isTransition=!1,r(s),null===(n=t.pending)?(s.next=t.pending=s,Ei(t,s)):(s.next=n.next,t.pending=n.next=s)}}function Ei(e,t){var n=t.action,r=t.payload,a=e.state;if(t.isTransition){var s=L.T,i={};L.T=i;try{var o=n(a,r),l=L.S;null!==l&&l(i,o),ji(e,t,o)}catch(c){Ni(e,t,c)}finally{null!==s&&null!==i.types&&(s.types=i.types),L.T=s}}else try{ji(e,t,s=n(a,r))}catch(u){Ni(e,t,u)}}function ji(e,t,n){null!==n&&"object"===typeof n&&"function"===typeof n.then?n.then(function(n){Ti(e,t,n)},function(n){return Ni(e,t,n)}):Ti(e,t,n)}function Ti(e,t,n){t.status="fulfilled",t.value=n,Ci(t),e.state=n,null!==(t=e.pending)&&((n=t.next)===t?e.pending=null:(n=n.next,t.next=n,Ei(e,n)))}function Ni(e,t,n){var r=e.pending;if(e.pending=null,null!==r){r=r.next;do{t.status="rejected",t.reason=n,Ci(t),t=t.next}while(t!==r)}e.action=null}function Ci(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Ri(e,t){return t}function Ai(e,t){if(da){var n=pc.formState;if(null!==n){e:{var r=Bs;if(da){if(ua){t:{for(var a=ua,s=fa;8!==a.nodeType;){if(!s){a=null;break t}if(null===(a=Pd(a.nextSibling))){a=null;break t}}a="F!"===(s=a.data)||"F"===s?a:null}if(a){ua=Pd(a.nextSibling),r="F!"===a.data;break e}}ma(r)}r=!1}r&&(t=n[0])}}return(n=oi()).memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ri,lastRenderedState:t},n.queue=r,n=lo.bind(null,Bs,r),r.dispatch=n,r=Si(!1),s=uo.bind(null,Bs,!1,r.queue),a={state:t,dispatch:null,action:e,pending:null},(r=oi()).queue=a,n=_i.bind(null,Bs,a,s,n),a.dispatch=n,r.memoizedState=e,[t,n,!1]}function Oi(e){return Pi(li(),qs,e)}function Pi(e,t,n){if(t=pi(e,t,Ri)[0],e=fi(hi)[0],"object"===typeof t&&null!==t&&"function"===typeof t.then)try{var r=ci(t)}catch(i){if(i===Ya)throw Za;throw i}else r=t;var a=(t=li()).queue,s=a.dispatch;return n!==t.memoizedState&&(Bs.flags|=2048,Ii(9,{destroy:void 0},Li.bind(null,a,n),null)),[r,s,e]}function Li(e,t){e.action=t}function $i(e){var t=li(),n=qs;if(null!==n)return Pi(t,n,e);li(),t=t.memoizedState;var r=(n=li()).queue.dispatch;return n.memoizedState=e,[t,r,!1]}function Ii(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},null===(t=Bs.updateQueue)&&(t={lastEffect:null,events:null,stores:null,memoCache:null},Bs.updateQueue=t),null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Di(){return li().memoizedState}function Ui(e,t,n,r){var a=oi();Bs.flags|=e,a.memoizedState=Ii(1|t,{destroy:void 0},n,void 0===r?null:r)}function zi(e,t,n,r){var a=li();r=void 0===r?null:r;var s=a.memoizedState.inst;null!==qs&&null!==r&&Zs(r,qs.memoizedState.deps)?a.memoizedState=Ii(t,s,n,r):(Bs.flags|=e,a.memoizedState=Ii(1|t,s,n,r))}function Mi(e,t){Ui(8390656,8,e,t)}function Fi(e,t){zi(2048,8,e,t)}function Bi(e){var t=li().memoizedState;return function(e){Bs.flags|=4;var t=Bs.updateQueue;if(null===t)t={lastEffect:null,events:null,stores:null,memoCache:null},Bs.updateQueue=t,t.events=[e];else{var n=t.events;null===n?t.events=[e]:n.push(e)}}({ref:t,nextImpl:e}),function(){if(0!==(2&fc))throw Error(i(440));return t.impl.apply(void 0,arguments)}}function qi(e,t){return zi(4,2,e,t)}function Hi(e,t){return zi(4,4,e,t)}function Wi(e,t){if("function"===typeof t){e=e();var n=t(e);return function(){"function"===typeof n?n():t(null)}}if(null!==t&&void 0!==t)return e=e(),t.current=e,function(){t.current=null}}function Vi(e,t,n){n=null!==n&&void 0!==n?n.concat([e]):null,zi(4,4,Wi.bind(null,t,e),n)}function Ki(){}function Ji(e,t){var n=li();
2t=void 0===t?null:t;var r=n.memoizedState;return null!==t&&Zs(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Gi(e,t){var n=li();t=void 0===t?null:t;var r=n.memoizedState;if(null!==t&&Zs(t,r[1]))return r[0];if(r=e(),Ks){be(!0);try{e()}finally{be(!1)}}return n.memoizedState=[r,t],r}function Qi(e,t,n){return void 0===n||0!==(1073741824&Fs)&&0===(261930&gc)?e.memoizedState=t:(e.memoizedState=n,e=Kc(),Bs.lanes|=e,_c|=e,n)}function Yi(e,t,n,r){return Xn(n,t)?n:null!==Ts.current?(e=Qi(e,n,r),Xn(e,t)||(Po=!0),e):0===(42&Fs)||0!==(1073741824&Fs)&&0===(261930&gc)?(Po=!0,e.memoizedState=n):(e=Kc(),Bs.lanes|=e,_c|=e,t)}function Xi(e,t,n,r,a){var s=$.p;$.p=0!==s&&8>s?s:8;var i=L.T,o={};L.T=o,uo(e,!1,t,n);try{var l=a(),c=L.S;if(null!==c&&c(o,l),null!==l&&"object"===typeof l&&"function"===typeof l.then)co(e,t,function(e,t){var n=[],r={status:"pending",value:null,reason:null,then:function(e){n.push(e)}};return e.then(function(){r.status="fulfilled",r.value=t;for(var e=0;e<n.length;e++)(0,n[e])(t)},function(e){for(r.status="rejected",r.reason=e,e=0;e<n.length;e++)(0,n[e])(void 0)}),r}(l,r),Vc());else co(e,t,r,Vc())}catch(u){co(e,t,{then:function(){},status:"rejected",reason:u},Vc())}finally{$.p=s,null!==i&&null!==o.types&&(i.types=o.types),L.T=i}}function Zi(){}function eo(e,t,n,r){if(5!==e.tag)throw Error(i(476));var a=to(e).queue;Xi(e,a,t,I,null===n?Zi:function(){return no(e),n(r)})}function to(e){var t=e.memoizedState;if(null!==t)return t;var n={};return(t={memoizedState:I,baseState:I,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:hi,lastRenderedState:I},next:null}).next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:hi,lastRenderedState:n},next:null},e.memoizedState=t,null!==(e=e.alternate)&&(e.memoizedState=t),t}function no(e){var t=to(e);null===t.next&&(t=e.alternate.memoizedState),co(e,t.next.queue,{},Vc())}function ro(){return Oa(uh)}function ao(){return li().memoizedState}function so(){return li().memoizedState}function io(e){for(var t=e.return;null!==t;){switch(t.tag){case 24:case 3:var n=Vc(),r=bs(t,e=ys(n),n);return null!==r&&(Jc(r,t,n),ws(r,t,n)),t={cache:za()},void(e.payload=t)}t=t.return}}function oo(e,t,n){var r=Vc();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},ho(e)?fo(t,n):null!==(n=Or(e,t,n,r))&&(Jc(n,e,r),po(n,t,r))}function lo(e,t,n){co(e,t,n,Vc())}function co(e,t,n,r){var a={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(ho(e))fo(t,a);else{var s=e.alternate;if(0===e.lanes&&(null===s||0===s.lanes)&&null!==(s=t.lastRenderedReducer))try{var i=t.lastRenderedState,o=s(i,n);if(a.hasEagerState=!0,a.eagerState=o,Xn(o,i))return Ar(e,t,a,0),null===pc&&Rr(),!1}catch(l){}if(null!==(n=Or(e,t,a,r)))return Jc(n,e,r),po(n,t,r),!0}return!1}function uo(e,t,n,r){if(r={lane:2,revertLane:Bu(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},ho(e)){if(t)throw Error(i(479))}else null!==(t=Or(e,n,r,2))&&Jc(t,e,2)}function ho(e){var t=e.alternate;return e===Bs||null!==t&&t===Bs}function fo(e,t){Vs=Ws=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function po(e,t,n){if(0!==(4194048&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,Le(e,n)}}var mo={readContext:Oa,use:ui,useCallback:Xs,useContext:Xs,useEffect:Xs,useImperativeHandle:Xs,useLayoutEffect:Xs,useInsertionEffect:Xs,useMemo:Xs,useReducer:Xs,useRef:Xs,useState:Xs,useDebugValue:Xs,useDeferredValue:Xs,useTransition:Xs,useSyncExternalStore:Xs,useId:Xs,useHostTransitionStatus:Xs,useFormState:Xs,useActionState:Xs,useOptimistic:Xs,useMemoCache:Xs,useCacheRefresh:Xs};mo.useEffectEvent=Xs;var go={readContext:Oa,use:ui,useCallback:function(e,t){return oi().memoizedState=[e,void 0===t?null:t],e},useContext:Oa,useEffect:Mi,useImperativeHandle:function(e,t,n){n=null!==n&&void 0!==n?n.concat([e]):null,Ui(4194308,4,Wi.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ui(4194308,4,e,t)},useInsertionEffect:function(e,t){Ui(4,2,e,t)},useMemo:function(e,t){var n=oi();t=void 0===t?null:t;var r=e();if(Ks){be(!0);try{e()}finally{be(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=oi();if(void 0!==n){var a=n(t);if(Ks){be(!0);try{n(t)}finally{be(!1)}}}else a=t;return r.memoizedState=r.baseState=a,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:a},r.queue=e,e=e.dispatch=oo.bind(null,Bs,e),[r.memoizedState,e]}
vendor: 7,023 bytes, line 2
2,useRef:function(e){return e={current:e},oi().memoizedState=e},useState:function(e){var t=(e=Si(e)).queue,n=lo.bind(null,Bs,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Ki,useDeferredValue:function(e,t){return Qi(oi(),e,t)},useTransition:function(){var e=Si(!1);return e=Xi.bind(null,Bs,e.queue,!0,!1),oi().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=Bs,a=oi();if(da){if(void 0===n)throw Error(i(407));n=n()}else{if(n=t(),null===pc)throw Error(i(349));0!==(127&gc)||vi(r,t,n)}a.memoizedState=n;var s={value:n,getSnapshot:t};return a.queue=s,Mi(bi.bind(null,r,s,e),[e]),r.flags|=2048,Ii(9,{destroy:void 0},yi.bind(null,r,s,n,t),null),n},useId:function(){var e=oi(),t=pc.identifierPrefix;if(da){var n=ra;t="_"+t+"R_"+(n=(na&~(1<<32-we(na)-1)).toString(32)+n),0<(n=Js++)&&(t+="H"+n.toString(32)),t+="_"}else t="_"+t+"r_"+(n=Ys++).toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:ro,useFormState:Ai,useActionState:Ai,useOptimistic:function(e){var t=oi();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=uo.bind(null,Bs,!0,n),n.dispatch=t,[e,t]},useMemoCache:di,useCacheRefresh:function(){return oi().memoizedState=io.bind(null,Bs)},useEffectEvent:function(e){var t=oi(),n={impl:e};return t.memoizedState=n,function(){if(0!==(2&fc))throw Error(i(440));return n.impl.apply(void 0,arguments)}}},vo={readContext:Oa,use:ui,useCallback:Ji,useContext:Oa,useEffect:Fi,useImperativeHandle:Vi,useInsertionEffect:qi,useLayoutEffect:Hi,useMemo:Gi,useReducer:fi,useRef:Di,useState:function(){return fi(hi)},useDebugValue:Ki,useDeferredValue:function(e,t){return Yi(li(),qs.memoizedState,e,t)},useTransition:function(){var e=fi(hi)[0],t=li().memoizedState;return["boolean"===typeof e?e:ci(e),t]},useSyncExternalStore:gi,useId:ao,useHostTransitionStatus:ro,useFormState:Oi,useActionState:Oi,useOptimistic:function(e,t){return xi(li(),0,e,t)},useMemoCache:di,useCacheRefresh:so};vo.useEffectEvent=Bi;var yo={readContext:Oa,use:ui,useCallback:Ji,useContext:Oa,useEffect:Fi,useImperativeHandle:Vi,useInsertionEffect:qi,useLayoutEffect:Hi,useMemo:Gi,useReducer:mi,useRef:Di,useState:function(){return mi(hi)},useDebugValue:Ki,useDeferredValue:function(e,t){var n=li();return null===qs?Qi(n,e,t):Yi(n,qs.memoizedState,e,t)},useTransition:function(){var e=mi(hi)[0],t=li().memoizedState;return["boolean"===typeof e?e:ci(e),t]},useSyncExternalStore:gi,useId:ao,useHostTransitionStatus:ro,useFormState:$i,useActionState:$i,useOptimistic:function(e,t){var n=li();return null!==qs?xi(n,0,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:di,useCacheRefresh:so};function bo(e,t,n,r){n=null===(n=n(r,t=e.memoizedState))||void 0===n?t:f({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}yo.useEffectEvent=Bi;var wo={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Vc(),a=ys(r);a.payload=t,void 0!==n&&null!==n&&(a.callback=n),null!==(t=bs(e,a,r))&&(Jc(t,e,r),ws(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Vc(),a=ys(r);a.tag=1,a.payload=t,void 0!==n&&null!==n&&(a.callback=n),null!==(t=bs(e,a,r))&&(Jc(t,e,r),ws(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Vc(),r=ys(n);r.tag=2,void 0!==t&&null!==t&&(r.callback=t),null!==(t=bs(e,r,n))&&(Jc(t,e,n),ws(t,e,n))}};function ko(e,t,n,r,a,s,i){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,s,i):!t.prototype||!t.prototype.isPureReactComponent||(!Zn(n,r)||!Zn(a,s))}function So(e,t,n,r){e=t.state,"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&wo.enqueueReplaceState(t,t.state,null)}function xo(e,t){var n=t;if("ref"in t)for(var r in n={},t)"ref"!==r&&(n[r]=t[r]);if(e=e.defaultProps)for(var a in n===t&&(n=f({},n)),e)void 0===n[a]&&(n[a]=e[a]);return n}function _o(e){jr(e)}function Eo(e){console.error(e)}function jo(e){jr(e)}function To(e,t){try{(0,e.onUncaughtError)(t.value,{componentStack:t.stack})}catch(n){setTimeout(function(){throw n})}}function No(e,t,n){try{(0,e.onCaughtError)(n.value,{componentStack:n.stack,errorBoundary:1===t.tag?t.stateNode:null})}catch(r){setTimeout(function(){throw r})}}function Co(e,t,n){return(n=ys(n)).tag=3,n.payload={element:null},n.callback=function(){To(e,t)},n}function Ro(e){return(e=ys(e)).tag=3,e}function Ao(e,t,n,r){var a=n.type.getDerivedStateFromError;if("function"===typeof a){var s=r.value;e.payload=function(){return a(s)},e.callback=function(){No(t,n,r)}}var i=n.stateNode;null!==i&&"function"===typeof i.componentDidCatch&&(e.callback=function(){No(t,n,r),"function"!==typeof a&&(null===Ic?Ic=new Set([this]):Ic.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:null!==e?e:""})})}var Oo=Error(i(461)),Po=!1;function Lo(e,t,n,r){t.child=null===e?ps(t,null,n,r):fs(t,e.child,n,r)}function $o(e,t,n,r,a){n=n.render;var s=t.ref;if("ref"in r){var i={};for(var o in r)"ref"!==o&&(i[o]=r[o])}else i=r;return Aa(t),r=ei(e,t,n,i,s,a),o=ai(),null===e||Po?(da&&o&&ia(t),t.flags|=1,Lo(e,t,r,a),t.child):(si(e,t,a),al(e,t,a))}function Io(e,t,n,r,a){if(null===e){var s=n.type;return"function"!==typeof s||zr(s)||void 0!==s.defaultProps||null!==n.compare?((e=Br(n.type,null,r,t,t.mode,a)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=s,Do(e,t,s,r,a))}if(s=e.child,!sl(e,a)){var i=s.memoizedProps;if((n=null!==(n=n.compare)?n:Zn)(i,r)&&e.ref===t.ref)return al(e,t,a)}return t.flags|=1,(e=Mr(s,r)).ref=t.ref,e.return=t,t.child=e}function Do(e,t,n,r,a){if(null!==e){var s=e.memoizedProps;if(Zn(s,r)&&e.ref===t.ref){if(Po=!1,t.pendingProps=r=s,!sl(e,a))return t.lanes=e.lanes,al(e,t,a);0!==(131072&e.flags)&&(Po=!0)}}return Ho(e,t,n,r,a)}function Uo(e,t,n,r){var a=r.children,s=null!==e?e.memoizedState:null;if(null===e&&null===t.stateNode&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),"hidden"===r.mode){if(0!==(128&t.flags)){if(s=null!==s?s.baseLanes|n:n,null!==e){for(r=t.child=e.child,a=0;null!==r;)a=a|r.lanes|r.childLanes,r=r.sibling;r=a&~s}else r=0,t.child=null;return Mo(e,t,s,n,r)}if(0===(536870912&n))return r=t.lanes=536870912,Mo(e,t,null!==s?s.baseLanes|n:n,n,r);t.memoizedState={baseLanes:0,cachePool:null},null!==e&&Ga(0,null!==s?s.cachePool:null),null!==s?Cs(t,s):Rs(),Is(t)}else null!==s?(Ga(0,s.cachePool),Cs(t,s),Ds(),t.memoizedState=null):(null!==e&&Ga(0,null),Rs(),Ds());return Lo(e,t,a,n),t.child}function zo(e,t){return null!==e&&22===e.tag||null!==t.stateNode||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Mo(e,t,n,r,a){var s=Ja();return s=null===s?null:{parent:Ua._currentValue,pool:s},t.memoizedState={baseLanes:n,cachePool:s},null!==e&&Ga(0,null),Rs(),Is(t),null!==e&&Ca(e,t,r,!0),t.childLanes=a,null}function Fo(e,t){return(t=Zo({mode:t.mode,children:t.children},e.mode)).ref=e.ref,e.child=t,t.return=e,t}
2function Bo(e,t,n){return fs(t,e.child,null,n),(e=Fo(t,t.pendingProps)).flags|=2,Us(t),t.memoizedState=null,e}function qo(e,t){var n=t.ref;if(null===n)null!==e&&null!==e.ref&&(t.flags|=4194816);else{if("function"!==typeof n&&"object"!==typeof n)throw Error(i(284));null!==e&&e.ref===n||(t.flags|=4194816)}}function Ho(e,t,n,r,a){return Aa(t),n=ei(e,t,n,r,void 0,a),r=ai(),null===e||Po?(da&&r&&ia(t),t.flags|=1,Lo(e,t,n,a),t.child):(si(e,t,a),al(e,t,a))}function Wo(e,t,n,r,a,s){return Aa(t),t.updateQueue=null,n=ni(t,r,n,a),ti(e),r=ai(),null===e||Po?(da&&r&&ia(t),t.flags|=1,Lo(e,t,n,s),t.child):(si(e,t,s),al(e,t,s))}function Vo(e,t,n,r,a){if(Aa(t),null===t.stateNode){var s=Ir,i=n.contextType;"object"===typeof i&&null!==i&&(s=Oa(i)),s=new n(r,s),t.memoizedState=null!==s.state&&void 0!==s.state?s.state:null,s.updater=wo,t.stateNode=s,s._reactInternals=t,(s=t.stateNode).props=r,s.state=t.memoizedState,s.refs={},gs(t),i=n.contextType,s.context="object"===typeof i&&null!==i?Oa(i):Ir,s.state=t.memoizedState,"function"===typeof(i=n.getDerivedStateFromProps)&&(bo(t,n,i,r),s.state=t.memoizedState),"function"===typeof n.getDerivedStateFromProps||"function"===typeof s.getSnapshotBeforeUpdate||"function"!==typeof s.UNSAFE_componentWillMount&&"function"!==typeof s.componentWillMount||(i=s.state,"function"===typeof s.componentWillMount&&s.componentWillMount(),"function"===typeof s.UNSAFE_componentWillMount&&s.UNSAFE_componentWillMount(),i!==s.state&&wo.enqueueReplaceState(s,s.state,null),_s(t,r,s,a),xs(),s.state=t.memoizedState),"function"===typeof s.componentDidMount&&(t.flags|=4194308),r=!0}else if(null===e){s=t.stateNode;var o=t.memoizedProps,l=xo(n,o);s.props=l;var c=s.context,u=n.contextType;i=Ir,"object"===typeof u&&null!==u&&(i=Oa(u));var d=n.getDerivedStateFromProps;u="function"===typeof d||"function"===typeof s.getSnapshotBeforeUpdate,o=t.pendingProps!==o,u||"function"!==typeof s.UNSAFE_componentWillReceiveProps&&"function"!==typeof s.componentWillReceiveProps||(o||c!==i)&&So(t,s,r,i),ms=!1;var h=t.memoizedState;s.state=h,_s(t,r,s,a),xs(),c=t.memoizedState,o||h!==c||ms?("function"===typeof d&&(bo(t,n,d,r),c=t.memoizedState),(l=ms||ko(t,n,l,r,h,c,i))?(u||"function"!==typeof s.UNSAFE_componentWillMount&&"function"!==typeof s.componentWillMount||("function"===typeof s.componentWillMount&&s.componentWillMount(),"function"===typeof s.UNSAFE_componentWillMount&&s.UNSAFE_componentWillMount()),"function"===typeof s.componentDidMount&&(t.flags|=4194308)):("function"===typeof s.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=c),s.props=r,s.state=c,s.context=i,r=l):("function"===typeof s.componentDidMount&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,vs(e,t),u=xo(n,i=t.memoizedProps),s.props=u,d=t.pendingProps,h=s.context,c=n.contextType,l=Ir,"object"===typeof c&&null!==c&&(l=Oa(c)),(c="function"===typeof(o=n.getDerivedStateFromProps)||"function"===typeof s.getSnapshotBeforeUpdate)||"function"!==typeof s.UNSAFE_componentWillReceiveProps&&"function"!==typeof s.componentWillReceiveProps||(i!==d||h!==l)&&So(t,s,r,l),ms=!1,h=t.memoizedState,s.state=h,_s(t,r,s,a),xs();var f=t.memoizedState;i!==d||h!==f||ms||null!==e&&null!==e.dependencies&&Ra(e.dependencies)?("function"===typeof o&&(bo(t,n,o,r),f=t.memoizedState),(u=ms||ko(t,n,u,r,h,f,l)||null!==e&&null!==e.dependencies&&Ra(e.dependencies))?(c||"function"!==typeof s.UNSAFE_componentWillUpdate&&"function"!==typeof s.componentWillUpdate||("function"===typeof s.componentWillUpdate&&s.componentWillUpdate(r,f,l),"function"===typeof s.UNSAFE_componentWillUpdate&&s.UNSAFE_componentWillUpdate(r,f,l)),"function"===typeof s.componentDidUpdate&&(t.flags|=4),"function"===typeof s.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!==typeof s.componentDidUpdate||i===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),"function"!==typeof s.getSnapshotBeforeUpdate||i===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=f),s.props=r,s.state=f,s.context=l,r=u):("function"!==typeof s.componentDidUpdate||i===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),"function"!==typeof s.getSnapshotBeforeUpdate||i===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),r=!1)}return s=r,qo(e,t),r=0!==(128&t.flags),s||r?(s=t.stateNode,n=r&&"function"!==typeof n.getDerivedStateFromError?null:s.render(),t.flags|=1,null!==e&&r?(t.child=fs(t,e.child,null,a),t.child=fs(t,null,n,a)):Lo(e,t,n,a),t.memoizedState=s.state,e=t.child):e=al(e,t,a),e}function Ko(e,t,n,r){return ba(),t.flags|=256,Lo(e,t,n,r),t.child}var Jo={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Go(e){return{baseLanes:e,cachePool:Qa()}}
vendor: 4,417 bytes, line 2
2function Qo(e,t,n){return e=null!==e?e.childLanes&~n:0,t&&(e|=Tc),e}function Yo(e,t,n){var r,a=t.pendingProps,s=!1,o=0!==(128&t.flags);if((r=o)||(r=(null===e||null!==e.memoizedState)&&0!==(2&zs.current)),r&&(s=!0,t.flags&=-129),r=0!==(32&t.flags),t.flags&=-33,null===e){if(da){if(s?Ls(t):Ds(),(e=ua)?null!==(e=null!==(e=Rd(e,fa))&&"&"!==e.data?e:null)&&(t.memoizedState={dehydrated:e,treeContext:null!==ta?{id:na,overflow:ra}:null,retryLane:536870912,hydrationErrors:null},(n=Wr(e)).return=t,t.child=n,ca=t,ua=null):e=null,null===e)throw ma(t);return Od(e)?t.lanes=32:t.lanes=536870912,null}var l=a.children;return a=a.fallback,s?(Ds(),l=Zo({mode:"hidden",children:l},s=t.mode),a=qr(a,s,n,null),l.return=t,a.return=t,l.sibling=a,t.child=l,(a=t.child).memoizedState=Go(n),a.childLanes=Qo(e,r,n),t.memoizedState=Jo,zo(null,a)):(Ls(t),Xo(t,l))}var c=e.memoizedState;if(null!==c&&null!==(l=c.dehydrated)){if(o)256&t.flags?(Ls(t),t.flags&=-257,t=el(e,t,n)):null!==t.memoizedState?(Ds(),t.child=e.child,t.flags|=128,t=null):(Ds(),l=a.fallback,s=t.mode,a=Zo({mode:"visible",children:a.children},s),(l=qr(l,s,n,null)).flags|=2,a.return=t,l.return=t,a.sibling=l,t.child=a,fs(t,e.child,null,n),(a=t.child).memoizedState=Go(n),a.childLanes=Qo(e,r,n),t.memoizedState=Jo,t=zo(null,a));else if(Ls(t),Od(l)){if(r=l.nextSibling&&l.nextSibling.dataset)var u=r.dgst;r=u,(a=Error(i(419))).stack="",a.digest=r,ka({value:a,source:null,stack:null}),t=el(e,t,n)}else if(Po||Ca(e,t,n,!1),r=0!==(n&e.childLanes),Po||r){if(null!==(r=pc)&&(0!==(a=$e(r,n))&&a!==c.retryLane))throw c.retryLane=a,Pr(e,a),Jc(r,e,a),Oo;Ad(l)||iu(),t=el(e,t,n)}else Ad(l)?(t.flags|=192,t.child=e.child,t=null):(e=c.treeContext,ua=Pd(l.nextSibling),ca=t,da=!0,ha=null,fa=!1,null!==e&&la(t,e),(t=Xo(t,a.children)).flags|=4096);return t}return s?(Ds(),l=a.fallback,s=t.mode,u=(c=e.child).sibling,(a=Mr(c,{mode:"hidden",children:a.children})).subtreeFlags=65011712&c.subtreeFlags,null!==u?l=Mr(u,l):(l=qr(l,s,n,null)).flags|=2,l.return=t,a.return=t,a.sibling=l,t.child=a,zo(null,a),a=t.child,null===(l=e.child.memoizedState)?l=Go(n):(null!==(s=l.cachePool)?(c=Ua._currentValue,s=s.parent!==c?{parent:c,pool:c}:s):s=Qa(),l={baseLanes:l.baseLanes|n,cachePool:s}),a.memoizedState=l,a.childLanes=Qo(e,r,n),t.memoizedState=Jo,zo(e.child,a)):(Ls(t),e=(n=e.child).sibling,(n=Mr(n,{mode:"visible",children:a.children})).return=t,n.sibling=null,null!==e&&(null===(r=t.deletions)?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n)}function Xo(e,t){return(t=Zo({mode:"visible",children:t},e.mode)).return=e,e.child=t}function Zo(e,t){return(e=Ur(22,e,null,t)).lanes=0,e}function el(e,t,n){return fs(t,e.child,null,n),(e=Xo(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function tl(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Ta(e.return,t,n)}function nl(e,t,n,r,a,s){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:a,treeForkCount:s}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=a,i.treeForkCount=s)}function rl(e,t,n){var r=t.pendingProps,a=r.revealOrder,s=r.tail;r=r.children;var i=zs.current,o=0!==(2&i);if(o?(i=1&i|2,t.flags|=128):i&=1,F(zs,i),Lo(e,t,r,n),r=da?Xr:0,!o&&null!==e&&0!==(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&tl(e,n,t);else if(19===e.tag)tl(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(a){case"forwards":for(n=t.child,a=null;null!==n;)null!==(e=n.alternate)&&null===Ms(e)&&(a=n),n=n.sibling;null===(n=a)?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),nl(t,!1,a,n,s,r);break;case"backwards":case"unstable_legacy-backwards":for(n=null,a=t.child,t.child=null;null!==a;){if(null!==(e=a.alternate)&&null===Ms(e)){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}nl(t,!0,n,null,s,r);break;case"together":nl(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function al(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),_c|=t.lanes,0===(n&t.childLanes)){if(null===e)return null;if(Ca(e,t,n,!1),0===(n&t.childLanes))return null}if(null!==e&&t.child!==e.child)throw Error(i(153));if(null!==t.child){for(n=Mr(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;
vendor: 4,500 bytes, line 2
2)e=e.sibling,(n=n.sibling=Mr(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function sl(e,t){return 0!==(e.lanes&t)||!(null===(e=e.dependencies)||!Ra(e))}function il(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps)Po=!0;else{if(!sl(e,n)&&0===(128&t.flags))return Po=!1,function(e,t,n){switch(t.tag){case 3:J(t,t.stateNode.containerInfo),Ea(0,Ua,e.memoizedState.cache),ba();break;case 27:case 5:Q(t);break;case 4:J(t,t.stateNode.containerInfo);break;case 10:Ea(0,t.type,t.memoizedProps.value);break;case 31:if(null!==t.memoizedState)return t.flags|=128,$s(t),null;break;case 13:var r=t.memoizedState;if(null!==r)return null!==r.dehydrated?(Ls(t),t.flags|=128,null):0!==(n&t.child.childLanes)?Yo(e,t,n):(Ls(t),null!==(e=al(e,t,n))?e.sibling:null);Ls(t);break;case 19:var a=0!==(128&e.flags);if((r=0!==(n&t.childLanes))||(Ca(e,t,n,!1),r=0!==(n&t.childLanes)),a){if(r)return rl(e,t,n);t.flags|=128}if(null!==(a=t.memoizedState)&&(a.rendering=null,a.tail=null,a.lastEffect=null),F(zs,zs.current),r)break;return null;case 22:return t.lanes=0,Uo(e,t,n,t.pendingProps);case 24:Ea(0,Ua,e.memoizedState.cache)}return al(e,t,n)}(e,t,n);Po=0!==(131072&e.flags)}else Po=!1,da&&0!==(1048576&t.flags)&&sa(t,Xr,t.index);switch(t.lanes=0,t.tag){case 16:e:{var r=t.pendingProps;if(e=rs(t.elementType),t.type=e,"function"!==typeof e){if(void 0!==e&&null!==e){var a=e.$$typeof;if(a===S){t.tag=11,t=$o(null,t,e,r,n);break e}if(a===E){t.tag=14,t=Io(null,t,e,r,n);break e}}throw t=O(e)||e,Error(i(306,t,""))}zr(e)?(r=xo(e,r),t.tag=1,t=Vo(null,t,e,r,n)):(t.tag=0,t=Ho(null,t,e,r,n))}return t;case 0:return Ho(e,t,t.type,t.pendingProps,n);case 1:return Vo(e,t,r=t.type,a=xo(r,t.pendingProps),n);case 3:e:{if(J(t,t.stateNode.containerInfo),null===e)throw Error(i(387));r=t.pendingProps;var s=t.memoizedState;a=s.element,vs(e,t),_s(t,r,null,n);var o=t.memoizedState;if(r=o.cache,Ea(0,Ua,r),r!==s.cache&&Na(t,[Ua],n,!0),xs(),r=o.element,s.isDehydrated){if(s={element:r,isDehydrated:!1,cache:o.cache},t.updateQueue.baseState=s,t.memoizedState=s,256&t.flags){t=Ko(e,t,r,n);break e}if(r!==a){ka(a=Jr(Error(i(424)),t)),t=Ko(e,t,r,n);break e}if(9===(e=t.stateNode.containerInfo).nodeType)e=e.body;else e="HTML"===e.nodeName?e.ownerDocument.body:e;for(ua=Pd(e.firstChild),ca=t,da=!0,ha=null,fa=!0,n=ps(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(ba(),r===a){t=al(e,t,n);break e}Lo(e,t,r,n)}t=t.child}return t;case 26:return qo(e,t),null===e?(n=Wd(t.type,null,t.pendingProps,null))?t.memoizedState=n:da||(n=t.type,e=t.pendingProps,(r=gd(V.current).createElement(n))[Fe]=t,r[Be]=e,hd(r,n,e),et(r),t.stateNode=r):t.memoizedState=Wd(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Q(t),null===e&&da&&(r=t.stateNode=Dd(t.type,t.pendingProps,V.current),ca=t,fa=!0,a=ua,jd(t.type)?(Ld=a,ua=Pd(r.firstChild)):ua=a),Lo(e,t,t.pendingProps.children,n),qo(e,t),null===e&&(t.flags|=4194304),t.child;case 5:return null===e&&da&&((a=r=ua)&&(null!==(r=function(e,t,n,r){for(;1===e.nodeType;){var a=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&("INPUT"!==e.nodeName||"hidden"!==e.type))break}else if(r){if(!e[Je])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if("stylesheet"===(s=e.getAttribute("rel"))&&e.hasAttribute("data-precedence"))break;if(s!==a.rel||e.getAttribute("href")!==(null==a.href||""===a.href?null:a.href)||e.getAttribute("crossorigin")!==(null==a.crossOrigin?null:a.crossOrigin)||e.getAttribute("title")!==(null==a.title?null:a.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(((s=e.getAttribute("src"))!==(null==a.src?null:a.src)||e.getAttribute("type")!==(null==a.type?null:a.type)||e.getAttribute("crossorigin")!==(null==a.crossOrigin?null:a.crossOrigin))&&s&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else{if("input"!==t||"hidden"!==e.type)return e;var s=null==a.name?null:""+a.name;if("hidden"===a.type&&e.getAttribute("name")===s)return e}if(null===(e=Pd(e.nextSibling)))break}return null}(r,t.type,t.pendingProps,fa))?(t.stateNode=r,ca=t,ua=Pd(r.firstChild),fa=!1,a=!0):a=!1),a||ma(t)),Q(t),a=t.type,s=t.pendingProps,o=null!==e?e.memoizedProps:null,r=s.children,bd(a,s)?r=null:null!==o&&bd(a,o)&&(t.flags|=32),null!==t.memoizedState&&(a=ei(e,t,ri,null,null,n),uh._currentValue=a),qo(e,t),Lo(e,t,r,n),t.child;case 6:return null===e&&da&&((e=n=ua)&&(null!==(n=function(e,t,n){if(""===t)return null;for(;3!==e.nodeType;
vendor: 5,278 bytes, line 2
2){if((1!==e.nodeType||"INPUT"!==e.nodeName||"hidden"!==e.type)&&!n)return null;if(null===(e=Pd(e.nextSibling)))return null}return e}(n,t.pendingProps,fa))?(t.stateNode=n,ca=t,ua=null,e=!0):e=!1),e||ma(t)),null;case 13:return Yo(e,t,n);case 4:return J(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=fs(t,null,r,n):Lo(e,t,r,n),t.child;case 11:return $o(e,t,t.type,t.pendingProps,n);case 7:return Lo(e,t,t.pendingProps,n),t.child;case 8:case 12:return Lo(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,Ea(0,t.type,r.value),Lo(e,t,r.children,n),t.child;case 9:return a=t.type._context,r=t.pendingProps.children,Aa(t),r=r(a=Oa(a)),t.flags|=1,Lo(e,t,r,n),t.child;case 14:return Io(e,t,t.type,t.pendingProps,n);case 15:return Do(e,t,t.type,t.pendingProps,n);case 19:return rl(e,t,n);case 31:return function(e,t,n){var r=t.pendingProps,a=0!==(128&t.flags);if(t.flags&=-129,null===e){if(da){if("hidden"===r.mode)return e=Fo(t,r),t.lanes=536870912,zo(null,e);if($s(t),(e=ua)?null!==(e=null!==(e=Rd(e,fa))&&"&"===e.data?e:null)&&(t.memoizedState={dehydrated:e,treeContext:null!==ta?{id:na,overflow:ra}:null,retryLane:536870912,hydrationErrors:null},(n=Wr(e)).return=t,t.child=n,ca=t,ua=null):e=null,null===e)throw ma(t);return t.lanes=536870912,null}return Fo(t,r)}var s=e.memoizedState;if(null!==s){var o=s.dehydrated;if($s(t),a)if(256&t.flags)t.flags&=-257,t=Bo(e,t,n);else{if(null===t.memoizedState)throw Error(i(558));t.child=e.child,t.flags|=128,t=null}else if(Po||Ca(e,t,n,!1),a=0!==(n&e.childLanes),Po||a){if(null!==(r=pc)&&0!==(o=$e(r,n))&&o!==s.retryLane)throw s.retryLane=o,Pr(e,o),Jc(r,e,o),Oo;iu(),t=Bo(e,t,n)}else e=s.treeContext,ua=Pd(o.nextSibling),ca=t,da=!0,ha=null,fa=!1,null!==e&&la(t,e),(t=Fo(t,r)).flags|=4096;return t}return(e=Mr(e.child,{mode:r.mode,children:r.children})).ref=t.ref,t.child=e,e.return=t,e}(e,t,n);case 22:return Uo(e,t,n,t.pendingProps);case 24:return Aa(t),r=Oa(Ua),null===e?(null===(a=Ja())&&(a=pc,s=za(),a.pooledCache=s,s.refCount++,null!==s&&(a.pooledCacheLanes|=n),a=s),t.memoizedState={parent:r,cache:a},gs(t),Ea(0,Ua,a)):(0!==(e.lanes&n)&&(vs(e,t),_s(t,null,null,n),xs()),a=e.memoizedState,s=t.memoizedState,a.parent!==r?(a={parent:r,cache:r},t.memoizedState=a,0===t.lanes&&(t.memoizedState=t.updateQueue.baseState=a),Ea(0,Ua,r)):(r=s.cache,Ea(0,Ua,r),r!==a.cache&&Na(t,[Ua],n,!0))),Lo(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function ol(e){e.flags|=4}function ll(e,t,n,r,a){if((t=0!==(32&e.mode))&&(t=!1),t){if(e.flags|=16777216,(335544128&a)===a)if(e.stateNode.complete)e.flags|=8192;else{if(!ru())throw as=es,Xa;e.flags|=8192}}else e.flags&=-16777217}function cl(e,t){if("stylesheet"!==t.type||0!==(4&t.state.loading))e.flags&=-16777217;else if(e.flags|=16777216,!ah(t)){if(!ru())throw as=es,Xa;e.flags|=8192}}function ul(e,t){null!==t&&(e.flags|=4),16384&e.flags&&(t=22!==e.tag?Re():536870912,e.lanes|=t,Nc|=t)}function dl(e,t){if(!da)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function hl(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var a=e.child;null!==a;)n|=a.lanes|a.childLanes,r|=65011712&a.subtreeFlags,r|=65011712&a.flags,a.return=e,a=a.sibling;else for(a=e.child;null!==a;)n|=a.lanes|a.childLanes,r|=a.subtreeFlags,r|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function fl(e,t,n){var r=t.pendingProps;switch(oa(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:case 1:return hl(t),null;case 3:return n=t.stateNode,r=null,null!==e&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),ja(Ua),G(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||(ya(t)?ol(t):null===e||e.memoizedState.isDehydrated&&0===(256&t.flags)||(t.flags|=1024,wa())),hl(t),null;case 26:var a=t.type,s=t.memoizedState;return null===e?(ol(t),null!==s?(hl(t),cl(t,s)):(hl(t),ll(t,a,0,0,n))):s?s!==e.memoizedState?(ol(t),hl(t),cl(t,s)):(hl(t),t.flags&=-16777217):((e=e.memoizedProps)!==r&&ol(t),hl(t),ll(t,a,0,0,n)),null;case 27:if(Y(t),n=V.current,a=t.type,null!==e&&null!=t.stateNode)e.memoizedProps!==r&&ol(t);else{if(!r){if(null===t.stateNode)throw Error(i(166));return hl(t),null}e=H.current,ya(t)?ga(t):(e=Dd(a,r,n),t.stateNode=e,ol(t))}return hl(t),null;case 5:if(Y(t),a=t.type,null!==e&&null!=t.stateNode)e.memoizedProps!==r&&ol(t);else{if(!r){if(null===t.stateNode)throw Error(i(166));return hl(t),null}if(s=H.current,ya(t))ga(t);else{var o=gd(V.current);switch(s){case 1:s=o.createElementNS("http://www.w3.org/2000/svg",a);break;case 2:s=o.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;default:switch(a){case"svg":s=o.createElementNS("http://www.w3.org/2000/svg",a);break;case"math":s=o.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;case"script":(s=o.createElement("div")).innerHTML="<script><\/script>",s=s.removeChild(s.firstChild);break;case"select":s="string"===typeof r.is?o.createElement("select",{is:r.is}
vendor: 35,128 bytes, line 2
2):o.createElement("select"),r.multiple?s.multiple=!0:r.size&&(s.size=r.size);break;default:s="string"===typeof r.is?o.createElement(a,{is:r.is}):o.createElement(a)}}s[Fe]=t,s[Be]=r;e:for(o=t.child;null!==o;){if(5===o.tag||6===o.tag)s.appendChild(o.stateNode);else if(4!==o.tag&&27!==o.tag&&null!==o.child){o.child.return=o,o=o.child;continue}if(o===t)break e;for(;null===o.sibling;){if(null===o.return||o.return===t)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}t.stateNode=s;e:switch(hd(s,a,r),a){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}r&&ol(t)}}return hl(t),ll(t,t.type,null===e||e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&null!=t.stateNode)e.memoizedProps!==r&&ol(t);else{if("string"!==typeof r&&null===t.stateNode)throw Error(i(166));if(e=V.current,ya(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,null!==(a=ca))switch(a.tag){case 27:case 5:r=a.memoizedProps}e[Fe]=t,(e=!!(e.nodeValue===n||null!==r&&!0===r.suppressHydrationWarning||cd(e.nodeValue,n)))||ma(t,!0)}else(e=gd(e).createTextNode(r))[Fe]=t,t.stateNode=e}return hl(t),null;case 31:if(n=t.memoizedState,null===e||null!==e.memoizedState){if(r=ya(t),null!==n){if(null===e){if(!r)throw Error(i(318));if(!(e=null!==(e=t.memoizedState)?e.dehydrated:null))throw Error(i(557));e[Fe]=t}else ba(),0===(128&t.flags)&&(t.memoizedState=null),t.flags|=4;hl(t),e=!1}else n=wa(),null!==e&&null!==e.memoizedState&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return 256&t.flags?(Us(t),t):(Us(t),null);if(0!==(128&t.flags))throw Error(i(558))}return hl(t),null;case 13:if(r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(a=ya(t),null!==r&&null!==r.dehydrated){if(null===e){if(!a)throw Error(i(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(i(317));a[Fe]=t}else ba(),0===(128&t.flags)&&(t.memoizedState=null),t.flags|=4;hl(t),a=!1}else a=wa(),null!==e&&null!==e.memoizedState&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return 256&t.flags?(Us(t),t):(Us(t),null)}return Us(t),0!==(128&t.flags)?(t.lanes=n,t):(n=null!==r,e=null!==e&&null!==e.memoizedState,n&&(a=null,null!==(r=t.child).alternate&&null!==r.alternate.memoizedState&&null!==r.alternate.memoizedState.cachePool&&(a=r.alternate.memoizedState.cachePool.pool),s=null,null!==r.memoizedState&&null!==r.memoizedState.cachePool&&(s=r.memoizedState.cachePool.pool),s!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),ul(t,t.updateQueue),hl(t),null);case 4:return G(),null===e&&Zu(t.stateNode.containerInfo),hl(t),null;case 10:return ja(t.type),hl(t),null;case 19:if(M(zs),null===(r=t.memoizedState))return hl(t),null;if(a=0!==(128&t.flags),null===(s=r.rendering))if(a)dl(r,!1);else{if(0!==xc||null!==e&&0!==(128&e.flags))for(e=t.child;null!==e;){if(null!==(s=Ms(e))){for(t.flags|=128,dl(r,!1),e=s.updateQueue,t.updateQueue=e,ul(t,e),t.subtreeFlags=0,e=n,n=t.child;null!==n;)Fr(n,e),n=n.sibling;return F(zs,1&zs.current|2),da&&aa(t,r.treeForkCount),t.child}e=e.sibling}null!==r.tail&&le()>Lc&&(t.flags|=128,a=!0,dl(r,!1),t.lanes=4194304)}else{if(!a)if(null!==(e=Ms(s))){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,ul(t,e),dl(r,!0),null===r.tail&&"hidden"===r.tailMode&&!s.alternate&&!da)return hl(t),null}else 2*le()-r.renderingStartTime>Lc&&536870912!==n&&(t.flags|=128,a=!0,dl(r,!1),t.lanes=4194304);r.isBackwards?(s.sibling=t.child,t.child=s):(null!==(e=r.last)?e.sibling=s:t.child=s,r.last=s)}return null!==r.tail?(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=le(),e.sibling=null,n=zs.current,F(zs,a?1&n|2:1&n),da&&aa(t,r.treeForkCount),e):(hl(t),null);case 22:case 23:return Us(t),As(),r=null!==t.memoizedState,null!==e?null!==e.memoizedState!==r&&(t.flags|=8192):r&&(t.flags|=8192),r?0!==(536870912&n)&&0===(128&t.flags)&&(hl(t),6&t.subtreeFlags&&(t.flags|=8192)):hl(t),null!==(n=t.updateQueue)&&ul(t,n.retryQueue),n=null,null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),r=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),null!==e&&M(Ka),null;case 24:return n=null,null!==e&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),ja(Ua),hl(t),null;case 25:case 30:return null}throw Error(i(156,t.tag))}function pl(e,t){switch(oa(t),t.tag){case 1:return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return ja(Ua),G(),0!==(65536&(e=t.flags))&&0===(128&e)?(t.flags=-65537&e|128,t):null;case 26:case 27:case 5:return Y(t),null;case 31:if(null!==t.memoizedState){if(Us(t),null===t.alternate)throw Error(i(340));ba()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 13:if(Us(t),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(i(340));ba()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return M(zs),null;case 4:return G(),null;case 10:return ja(t.type),null;case 22:case 23:return Us(t),As(),null!==e&&M(Ka),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 24:return ja(Ua),null;default:return null}}function ml(e,t){switch(oa(t),t.tag){case 3:ja(Ua),G();break;case 26:case 27:case 5:Y(t);break;case 4:G();break;case 31:null!==t.memoizedState&&Us(t);break;case 13:Us(t);break;case 19:M(zs);break;case 10:ja(t.type);break;case 22:case 23:Us(t),As(),null!==e&&M(Ka);break;case 24:ja(Ua)}}function gl(e,t){try{var n=t.updateQueue,r=null!==n?n.lastEffect:null;if(null!==r){var a=r.next;n=a;do{if((n.tag&e)===e){r=void 0;var s=n.create,i=n.inst;r=s(),i.destroy=r}n=n.next}while(n!==a)}}catch(o){xu(t,t.return,o)}}function vl(e,t,n){try{var r=t.updateQueue,a=null!==r?r.lastEffect:null;if(null!==a){var s=a.next;r=s;do{if((r.tag&e)===e){var i=r.inst,o=i.destroy;if(void 0!==o){i.destroy=void 0,a=t;var l=n,c=o;try{c()}catch(u){xu(a,l,u)}}}r=r.next}while(r!==s)}}catch(u){xu(t,t.return,u)}}function yl(e){var t=e.updateQueue;if(null!==t){var n=e.stateNode;try{js(t,n)}catch(r){xu(e,e.return,r)}}}function bl(e,t,n){n.props=xo(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(r){xu(e,t,r)}}function wl(e,t){try{var n=e.ref;if(null!==n){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;default:r=e.stateNode}"function"===typeof n?e.refCleanup=n(r):n.current=r}}catch(a){xu(e,t,a)}}function kl(e,t){var n=e.ref,r=e.refCleanup;if(null!==n)if("function"===typeof r)try{r()}catch(a){xu(e,t,a)}finally{e.refCleanup=null,null!=(e=e.alternate)&&(e.refCleanup=null)}else if("function"===typeof n)try{n(null)}catch(s){xu(e,t,s)}else n.current=null}function Sl(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&r.focus();break e;case"img":n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(a){xu(e,e.return,a)}}function xl(e,t,n){try{var r=e.stateNode;!function(e,t,n,r){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var a=null,s=null,o=null,l=null,c=null,u=null,d=null;for(p in n){var h=n[p];if(n.hasOwnProperty(p)&&null!=h)switch(p){case"checked":case"value":break;case"defaultValue":c=h;default:r.hasOwnProperty(p)||ud(e,t,p,null,r,h)}}for(var f in r){var p=r[f];if(h=n[f],r.hasOwnProperty(f)&&(null!=p||null!=h))switch(f){case"type":s=p;break;case"name":a=p;break;case"checked":u=p;break;case"defaultChecked":d=p;break;case"value":o=p;break;case"defaultValue":l=p;break;case"children":case"dangerouslySetInnerHTML":if(null!=p)throw Error(i(137,t));break;default:p!==h&&ud(e,t,f,p,r,h)}}return void yt(e,o,l,c,u,d,s,a);case"select":for(s in p=o=l=f=null,n)if(c=n[s],n.hasOwnProperty(s)&&null!=c)switch(s){case"value":break;case"multiple":p=c;default:r.hasOwnProperty(s)||ud(e,t,s,null,r,c)}for(a in r)if(s=r[a],c=n[a],r.hasOwnProperty(a)&&(null!=s||null!=c))switch(a){case"value":f=s;break;case"defaultValue":l=s;break;case"multiple":o=s;default:s!==c&&ud(e,t,a,s,r,c)}return t=l,n=o,r=p,void(null!=f?kt(e,!!n,f,!1):!!r!==!!n&&(null!=t?kt(e,!!n,t,!0):kt(e,!!n,n?[]:"",!1)));case"textarea":for(l in p=f=null,n)if(a=n[l],n.hasOwnProperty(l)&&null!=a&&!r.hasOwnProperty(l))switch(l){case"value":case"children":break;default:ud(e,t,l,null,r,a)}for(o in r)if(a=r[o],s=n[o],r.hasOwnProperty(o)&&(null!=a||null!=s))switch(o){case"value":f=a;break;case"defaultValue":p=a;break;case"children":break;case"dangerouslySetInnerHTML":if(null!=a)throw Error(i(91));break;default:a!==s&&ud(e,t,o,a,r,s)}return void St(e,f,p);case"option":for(var m in n)if(f=n[m],n.hasOwnProperty(m)&&null!=f&&!r.hasOwnProperty(m))if("selected"===m)e.selected=!1;else ud(e,t,m,null,r,f);for(c in r)if(f=r[c],p=n[c],r.hasOwnProperty(c)&&f!==p&&(null!=f||null!=p))if("selected"===c)e.selected=f&&"function"!==typeof f&&"symbol"!==typeof f;else ud(e,t,c,f,r,p);return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var g in n)f=n[g],n.hasOwnProperty(g)&&null!=f&&!r.hasOwnProperty(g)&&ud(e,t,g,null,r,f);for(u in r)if(f=r[u],p=n[u],r.hasOwnProperty(u)&&f!==p&&(null!=f||null!=p))switch(u){case"children":case"dangerouslySetInnerHTML":if(null!=f)throw Error(i(137,t));break;default:ud(e,t,u,f,r,p)}return;default:if(Nt(t)){for(var v in n)f=n[v],n.hasOwnProperty(v)&&void 0!==f&&!r.hasOwnProperty(v)&&dd(e,t,v,void 0,r,f);for(d in r)f=r[d],p=n[d],!r.hasOwnProperty(d)||f===p||void 0===f&&void 0===p||dd(e,t,d,f,r,p);return}}for(var y in n)f=n[y],n.hasOwnProperty(y)&&null!=f&&!r.hasOwnProperty(y)&&ud(e,t,y,null,r,f);for(h in r)f=r[h],p=n[h],!r.hasOwnProperty(h)||f===p||null==f&&null==p||ud(e,t,h,f,r,p)}(r,e.type,n,t),r[Be]=t}catch(a){xu(e,e.return,a)}}function _l(e){return 5===e.tag||3===e.tag||26===e.tag||27===e.tag&&jd(e.type)||4===e.tag}function El(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||_l(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(27===e.tag&&jd(e.type))continue e;if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function jl(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?(9===n.nodeType?n.body:"HTML"===n.nodeName?n.ownerDocument.body:n).insertBefore(e,t):((t=9===n.nodeType?n.body:"HTML"===n.nodeName?n.ownerDocument.body:n).appendChild(e),null!==(n=n._reactRootContainer)&&void 0!==n||null!==t.onclick||(t.onclick=Ot));else if(4!==r&&(27===r&&jd(e.type)&&(n=e.stateNode,t=null),null!==(e=e.child)))for(jl(e,t,n),e=e.sibling;null!==e;)jl(e,t,n),e=e.sibling}function Tl(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&(27===r&&jd(e.type)&&(n=e.stateNode),null!==(e=e.child)))for(Tl(e,t,n),e=e.sibling;null!==e;)Tl(e,t,n),e=e.sibling}function Nl(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,a=t.attributes;a.length;)t.removeAttributeNode(a[0]);hd(t,r,n),t[Fe]=e,t[Be]=n}catch(s){xu(e,e.return,s)}}var Cl=!1,Rl=!1,Al=!1,Ol="function"===typeof WeakSet?WeakSet:Set,Pl=null;function Ll(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:Jl(e,n),4&r&&gl(5,n);break;case 1:if(Jl(e,n),4&r)if(e=n.stateNode,null===t)try{e.componentDidMount()}catch(i){xu(n,n.return,i)}else{var a=xo(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(a,t,e.__reactInternalSnapshotBeforeUpdate)}catch(o){xu(n,n.return,o)}}64&r&&yl(n),512&r&&wl(n,n.return);break;case 3:if(Jl(e,n),64&r&&null!==(e=n.updateQueue)){if(t=null,null!==n.child)switch(n.child.tag){case 27:case 5:case 1:t=n.child.stateNode}try{js(e,t)}catch(i){xu(n,n.return,i)}}break;case 27:null===t&&4&r&&Nl(n);case 26:case 5:Jl(e,n),null===t&&4&r&&Sl(n),512&r&&wl(n,n.return);break;case 12:Jl(e,n);break;case 31:Jl(e,n),4&r&&Ml(e,n);break;case 13:Jl(e,n),4&r&&Fl(e,n),64&r&&(null!==(e=n.memoizedState)&&(null!==(e=e.dehydrated)&&function(e,t){var n=e.ownerDocument;if("$~"===e.data)e._reactRetry=t;else if("$?"!==e.data||"loading"!==n.readyState)t();else{var r=function(){t(),n.removeEventListener("DOMContentLoaded",r)};n.addEventListener("DOMContentLoaded",r),e._reactRetry=r}}(e,n=Tu.bind(null,n))));break;case 22:if(!(r=null!==n.memoizedState||Cl)){t=null!==t&&null!==t.memoizedState||Rl,a=Cl;var s=Rl;Cl=r,(Rl=t)&&!s?Ql(e,n,0!==(8772&n.subtreeFlags)):Jl(e,n),Cl=a,Rl=s}break;case 30:break;default:Jl(e,n)}}function $l(e){var t=e.alternate;null!==t&&(e.alternate=null,$l(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&Ge(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}var Il=null,Dl=!1;function Ul(e,t,n){for(n=n.child;null!==n;)zl(e,t,n),n=n.sibling}function zl(e,t,n){if(ye&&"function"===typeof ye.onCommitFiberUnmount)try{ye.onCommitFiberUnmount(ve,n)}catch(s){}switch(n.tag){case 26:Rl||kl(n,t),Ul(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode).parentNode.removeChild(n);break;case 27:Rl||kl(n,t);var r=Il,a=Dl;jd(n.type)&&(Il=n.stateNode,Dl=!1),Ul(e,t,n),Ud(n.stateNode),Il=r,Dl=a;break;case 5:Rl||kl(n,t);case 6:if(r=Il,a=Dl,Il=null,Ul(e,t,n),Dl=a,null!==(Il=r))if(Dl)try{(9===Il.nodeType?Il.body:"HTML"===Il.nodeName?Il.ownerDocument.body:Il).removeChild(n.stateNode)}catch(i){xu(n,t,i)}else try{Il.removeChild(n.stateNode)}catch(i){xu(n,t,i)}break;case 18:null!==Il&&(Dl?(Td(9===(e=Il).nodeType?e.body:"HTML"===e.nodeName?e.ownerDocument.body:e,n.stateNode),Hh(e)):Td(Il,n.stateNode));break;case 4:r=Il,a=Dl,Il=n.stateNode.containerInfo,Dl=!0,Ul(e,t,n),Il=r,Dl=a;break;case 0:case 11:case 14:case 15:vl(2,n,t),Rl||vl(4,n,t),Ul(e,t,n);break;case 1:Rl||(kl(n,t),"function"===typeof(r=n.stateNode).componentWillUnmount&&bl(n,t,r)),Ul(e,t,n);break;case 21:Ul(e,t,n);break;case 22:Rl=(r=Rl)||null!==n.memoizedState,Ul(e,t,n),Rl=r;break;default:Ul(e,t,n)}}function Ml(e,t){if(null===t.memoizedState&&(null!==(e=t.alternate)&&null!==(e=e.memoizedState))){e=e.dehydrated;try{Hh(e)}catch(n){xu(t,t.return,n)}}}function Fl(e,t){if(null===t.memoizedState&&(null!==(e=t.alternate)&&(null!==(e=e.memoizedState)&&null!==(e=e.dehydrated))))try{Hh(e)}catch(n){xu(t,t.return,n)}}function Bl(e,t){var n=function(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return null===t&&(t=e.stateNode=new Ol),t;case 22:return null===(t=(e=e.stateNode)._retryCache)&&(t=e._retryCache=new Ol),t;default:throw Error(i(435,e.tag))}}(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=Nu.bind(null,e,t);t.then(r,r)}})}function ql(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var a=n[r],s=e,o=t,l=o;e:for(;null!==l;){switch(l.tag){case 27:if(jd(l.type)){Il=l.stateNode,Dl=!1;break e}break;case 5:Il=l.stateNode,Dl=!1;break e;case 3:case 4:Il=l.stateNode.containerInfo,Dl=!0;break e}l=l.return}if(null===Il)throw Error(i(160));zl(s,o,a),Il=null,Dl=!1,null!==(s=a.alternate)&&(s.return=null),a.return=null}if(13886&t.subtreeFlags)for(t=t.child;null!==t;)Wl(t,e),t=t.sibling}var Hl=null;function Wl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:ql(t,e),Vl(e),4&r&&(vl(3,e,e.return),gl(3,e),vl(5,e,e.return));break;case 1:ql(t,e),Vl(e),512&r&&(Rl||null===n||kl(n,n.return)),64&r&&Cl&&(null!==(e=e.updateQueue)&&(null!==(r=e.callbacks)&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=null===n?r:n.concat(r))));break;case 26:var a=Hl;if(ql(t,e),Vl(e),512&r&&(Rl||null===n||kl(n,n.return)),4&r){var s=null!==n?n.memoizedState:null;if(r=e.memoizedState,null===n)if(null===r)if(null===e.stateNode){e:{r=e.type,n=e.memoizedProps,a=a.ownerDocument||a;t:switch(r){case"title":(!(s=a.getElementsByTagName("title")[0])||s[Je]||s[Fe]||"http://www.w3.org/2000/svg"===s.namespaceURI||s.hasAttribute("itemprop"))&&(s=a.createElement(r),a.head.insertBefore(s,a.querySelector("head > title"))),hd(s,r,n),s[Fe]=e,et(s),r=s;break e;case"link":var o=nh("link","href",a).get(r+(n.href||""));if(o)for(var l=0;l<o.length;l++)if((s=o[l]).getAttribute("href")===(null==n.href||""===n.href?null:n.href)&&s.getAttribute("rel")===(null==n.rel?null:n.rel)&&s.getAttribute("title")===(null==n.title?null:n.title)&&s.getAttribute("crossorigin")===(null==n.crossOrigin?null:n.crossOrigin)){o.splice(l,1);break t}hd(s=a.createElement(r),r,n),a.head.appendChild(s);break;case"meta":if(o=nh("meta","content",a).get(r+(n.content||"")))for(l=0;l<o.length;l++)if((s=o[l]).getAttribute("content")===(null==n.content?null:""+n.content)&&s.getAttribute("name")===(null==n.name?null:n.name)&&s.getAttribute("property")===(null==n.property?null:n.property)&&s.getAttribute("http-equiv")===(null==n.httpEquiv?null:n.httpEquiv)&&s.getAttribute("charset")===(null==n.charSet?null:n.charSet)){o.splice(l,1);break t}hd(s=a.createElement(r),r,n),a.head.appendChild(s);break;default:throw Error(i(468,r))}s[Fe]=e,et(s),r=s}e.stateNode=r}else rh(a,e.type,e.stateNode);else e.stateNode=Yd(a,r,e.memoizedProps);else s!==r?(null===s?null!==n.stateNode&&(n=n.stateNode).parentNode.removeChild(n):s.count--,null===r?rh(a,e.type,e.stateNode):Yd(a,r,e.memoizedProps)):null===r&&null!==e.stateNode&&xl(e,e.memoizedProps,n.memoizedProps)}break;case 27:ql(t,e),Vl(e),512&r&&(Rl||null===n||kl(n,n.return)),null!==n&&4&r&&xl(e,e.memoizedProps,n.memoizedProps);break;case 5:if(ql(t,e),Vl(e),512&r&&(Rl||null===n||kl(n,n.return)),32&e.flags){a=e.stateNode;try{_t(a,"")}catch(m){xu(e,e.return,m)}}4&r&&null!=e.stateNode&&xl(e,a=e.memoizedProps,null!==n?n.memoizedProps:a),1024&r&&(Al=!0);break;case 6:if(ql(t,e),Vl(e),4&r){if(null===e.stateNode)throw Error(i(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(m){xu(e,e.return,m)}}break;case 3:if(th=null,a=Hl,Hl=Fd(t.containerInfo),ql(t,e),Hl=a,Vl(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Hh(t.containerInfo)}catch(m){xu(e,e.return,m)}Al&&(Al=!1,Kl(e));break;case 4:r=Hl,Hl=Fd(e.stateNode.containerInfo),ql(t,e),Vl(e),Hl=r;break;case 12:default:ql(t,e),Vl(e);break;case 31:case 19:ql(t,e),Vl(e),4&r&&(null!==(r=e.updateQueue)&&(e.updateQueue=null,Bl(e,r)));break;case 13:ql(t,e),Vl(e),8192&e.child.flags&&null!==e.memoizedState!==(null!==n&&null!==n.memoizedState)&&(Oc=le()),4&r&&(null!==(r=e.updateQueue)&&(e.updateQueue=null,Bl(e,r)));break;case 22:a=null!==e.memoizedState;var c=null!==n&&null!==n.memoizedState,u=Cl,d=Rl;if(Cl=u||a,Rl=d||c,ql(t,e),Rl=d,Cl=u,Vl(e),8192&r)e:for(t=e.stateNode,t._visibility=a?-2&t._visibility:1|t._visibility,a&&(null===n||c||Cl||Rl||Gl(e)),n=null,t=e;;){if(5===t.tag||26===t.tag){if(null===n){c=n=t;try{if(s=c.stateNode,a)"function"===typeof(o=s.style).setProperty?o.setProperty("display","none","important"):o.display="none";else{l=c.stateNode;var h=c.memoizedProps.style,f=void 0!==h&&null!==h&&h.hasOwnProperty("display")?h.display:null;l.style.display=null==f||"boolean"===typeof f?"":(""+f).trim()}}catch(m){xu(c,c.return,m)}}}else if(6===t.tag){if(null===n){c=t;try{c.stateNode.nodeValue=a?"":c.memoizedProps}catch(m){xu(c,c.return,m)}}}else if(18===t.tag){if(null===n){c=t;try{var p=c.stateNode;a?Nd(p,!0):Nd(c.stateNode,!1)}catch(m){xu(c,c.return,m)}}}else if((22!==t.tag&&23!==t.tag||null===t.memoizedState||t===e)&&null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;null===t.sibling;){if(null===t.return||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}4&r&&(null!==(r=e.updateQueue)&&(null!==(n=r.retryQueue)&&(r.retryQueue=null,Bl(e,n))));case 30:case 21:}}function Vl(e){var t=e.flags;if(2&t){try{for(var n,r=e.return;null!==r;){if(_l(r)){n=r;break}r=r.return}if(null==n)throw Error(i(160));switch(n.tag){case 27:var a=n.stateNode;Tl(e,El(e),a);break;case 5:var s=n.stateNode;32&n.flags&&(_t(s,""),n.flags&=-33),Tl(e,El(e),s);break;case 3:case 4:var o=n.stateNode.containerInfo;jl(e,El(e),o);break;default:throw Error(i(161))}}catch(l){xu(e,e.return,l)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function Kl(e){if(1024&e.subtreeFlags)for(e=e.child;null!==e;){var t=e;Kl(t),5===t.tag&&1024&t.flags&&t.stateNode.reset(),e=e.sibling}}function Jl(e,t){if(8772&t.subtreeFlags)for(t=t.child;null!==t;)Ll(e,t.alternate,t),t=t.sibling}function Gl(e){for(e=e.child;null!==e;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:vl(4,t,t.return),Gl(t);break;case 1:kl(t,t.return);var n=t.stateNode;"function"===typeof n.componentWillUnmount&&bl(t,t.return,n),Gl(t);break;case 27:Ud(t.stateNode);case 26:case 5:kl(t,t.return),Gl(t);break;case 22:null===t.memoizedState&&Gl(t);break;default:Gl(t)}e=e.sibling}}function Ql(e,t,n){for(n=n&&0!==(8772&t.subtreeFlags),t=t.child;null!==t;){var r=t.alternate,a=e,s=t,i=s.flags;switch(s.tag){case 0:case 11:case 15:Ql(a,s,n),gl(4,s);break;case 1:if(Ql(a,s,n),"function"===typeof(a=(r=s).stateNode).componentDidMount)try{a.componentDidMount()}catch(c){xu(r,r.return,c)}if(null!==(a=(r=s).updateQueue)){var o=r.stateNode;try{var l=a.shared.hiddenCallbacks;if(null!==l)for(a.shared.hiddenCallbacks=null,a=0;a<l.length;a++)Es(l[a],o)}catch(c){xu(r,r.return,c)}}n&&64&i&&yl(s),wl(s,s.return);break;case 27:Nl(s);case 26:case 5:Ql(a,s,n),n&&null===r&&4&i&&Sl(s),wl(s,s.return);break;case 12:Ql(a,s,n);break;case 31:Ql(a,s,n),n&&4&i&&Ml(a,s);break;case 13:Ql(a,s,n),n&&4&i&&Fl(a,s);break;case 22:null===s.memoizedState&&Ql(a,s,n),wl(s,s.return);break;case 30:break;default:Ql(a,s,n)}t=t.sibling}}function Yl(e,t){var n=null;null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),e=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(e=t.memoizedState.cachePool.pool),e!==n&&(null!=e&&e.refCount++,null!=n&&Ma(n))}function Xl(e,t){e=null,null!==t.alternate&&(e=t.alternate.memoizedState.cache),(t=t.memoizedState.cache)!==e&&(t.refCount++,null!=e&&Ma(e))}function Zl(e,t,n,r){if(10256&t.subtreeFlags)for(t=t.child;null!==t;)ec(e,t,n,r),t=t.sibling}function ec(e,t,n,r){var a=t.flags;switch(t.tag){case 0:case 11:case 15:Zl(e,t,n,r),2048&a&&gl(9,t);break;case 1:case 31:case 13:default:Zl(e,t,n,r);break;case 3:Zl(e,t,n,r),2048&a&&(e=null,null!==t.alternate&&(e=t.alternate.memoizedState.cache),(t=t.memoizedState.cache)!==e&&(t.refCount++,null!=e&&Ma(e)));break;case 12:if(2048&a){Zl(e,t,n,r),e=t.stateNode;try{var s=t.memoizedProps,i=s.id,o=s.onPostCommit;"function"===typeof o&&o(i,null===t.alternate?"mount":"update",e.passiveEffectDuration,-0)}catch(l){xu(t,t.return,l)}}else Zl(e,t,n,r);break;case 23:break;case 22:s=t.stateNode,i=t.alternate,null!==t.memoizedState?2&s._visibility?Zl(e,t,n,r):nc(e,t):2&s._visibility?Zl(e,t,n,r):(s._visibility|=2,tc(e,t,n,r,0!==(10256&t.subtreeFlags)||!1)),2048&a&&Yl(i,t);break;case 24:Zl(e,t,n,r),2048&a&&Xl(t.alternate,t)}}function tc(e,t,n,r,a){for(a=a&&(0!==(10256&t.subtreeFlags)||!1),t=t.child;null!==t;){var s=e,i=t,o=n,l=r,c=i.flags;switch(i.tag){case 0:case 11:case 15:tc(s,i,o,l,a),gl(8,i);break;case 23:break;case 22:var u=i.stateNode;null!==i.memoizedState?2&u._visibility?tc(s,i,o,l,a):nc(s,i):(u._visibility|=2,tc(s,i,o,l,a)),a&&2048&c&&Yl(i.alternate,i);break;case 24:tc(s,i,o,l,a),a&&2048&c&&Xl(i.alternate,i);break;default:tc(s,i,o,l,a)}t=t.sibling}}function nc(e,t){if(10256&t.subtreeFlags)for(t=t.child;null!==t;){var n=e,r=t,a=r.flags;switch(r.tag){case 22:nc(n,r),2048&a&&Yl(r.alternate,r);break;case 24:nc(n,r),2048&a&&Xl(r.alternate,r);break;default:nc(n,r)}t=t.sibling}}var rc=8192;function ac(e,t,n){if(e.subtreeFlags&rc)for(e=e.child;null!==e;)sc(e,t,n),e=e.sibling}function sc(e,t,n){switch(e.tag){case 26:ac(e,t,n),e.flags&rc&&null!==e.memoizedState&&function(e,t,n,r){if("stylesheet"===n.type&&("string"!==typeof r.media||!1!==matchMedia(r.media).matches)&&0===(4&n.state.loading)){if(null===n.instance){var a=Vd(r.href),s=t.querySelector(Kd(a));if(s)return null!==(t=s._p)&&"object"===typeof t&&"function"===typeof t.then&&(e.count++,e=ih.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=s,void et(s);s=t.ownerDocument||t,r=Jd(r),(a=zd.get(a))&&Zd(r,a),et(s=s.createElement("link"));var i=s;i._p=new Promise(function(e,t){i.onload=e,i.onerror=t}),hd(s,"link",r),n.instance=s}null===e.stylesheets&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&0===(3&n.state.loading)&&(e.count++,n=ih.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}(n,Hl,e.memoizedState,e.memoizedProps);break;case 5:default:ac(e,t,n);break;case 3:case 4:var r=Hl;Hl=Fd(e.stateNode.containerInfo),ac(e,t,n),Hl=r;break;case 22:null===e.memoizedState&&(null!==(r=e.alternate)&&null!==r.memoizedState?(r=rc,rc=16777216,ac(e,t,n),rc=r):ac(e,t,n))}}function ic(e){var t=e.alternate;if(null!==t&&null!==(e=t.child)){t.child=null;do{t=e.sibling,e.sibling=null,e=t}while(null!==e)}}function oc(e){var t=e.deletions;if(0!==(16&e.flags)){if(null!==t)for(var n=0;n<t.length;n++){var r=t[n];Pl=r,uc(r,e)}ic(e)}if(10256&e.subtreeFlags)for(e=e.child;null!==e;)lc(e),e=e.sibling}function lc(e){switch(e.tag){case 0:case 11:case 15:oc(e),2048&e.flags&&vl(9,e,e.return);break;case 3:case 12:default:oc(e);break;case 22:var t=e.stateNode;null!==e.memoizedState&&2&t._visibility&&(null===e.return||13!==e.return.tag)?(t._visibility&=-3,cc(e)):oc(e)}}function cc(e){var t=e.deletions;if(0!==(16&e.flags)){if(null!==t)for(var n=0;n<t.length;n++){var r=t[n];Pl=r,uc(r,e)}ic(e)}for(e=e.child;null!==e;){switch((t=e).tag){case 0:case 11:case 15:vl(8,t,t.return),cc(t);break;case 22:2&(n=t.stateNode)._visibility&&(n._visibility&=-3,cc(t));break;default:cc(t)}e=e.sibling}}function uc(e,t){for(;null!==Pl;){var n=Pl;switch(n.tag){case 0:case 11:case 15:vl(8,n,t);break;case 23:case 22:if(null!==n.memoizedState&&null!==n.memoizedState.cachePool){var r=n.memoizedState.cachePool.pool;null!=r&&r.refCount++}break;case 24:Ma(n.memoizedState.cache)}if(null!==(r=n.child))r.return=n,Pl=r;else e:for(n=e;null!==Pl;){var a=(r=Pl).sibling,s=r.return;if($l(r),r===n){Pl=null;break e}if(null!==a){a.return=s,Pl=a;break e}Pl=s}}}var dc={getCacheForType:function(e){var t=Oa(Ua),n=t.data.get(e);return void 0===n&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Oa(Ua).controller.signal}},hc="function"===typeof WeakMap?WeakMap:Map,fc=0,pc=null,mc=null,gc=0,vc=0,yc=null,bc=!1,wc=!1,kc=!1,Sc=0,xc=0,_c=0,Ec=0,jc=0,Tc=0,Nc=0,Cc=null,Rc=null,Ac=!1,Oc=0,Pc=0,Lc=1/0,$c=null,Ic=null,Dc=0,Uc=null,zc=null,Mc=0,Fc=0,Bc=null,qc=null,Hc=0,Wc=null;function Vc(){return 0!==(2&fc)&&0!==gc?gc&-gc:null!==L.T?Bu():Ue()}function Kc(){if(0===Tc)if(0===(536870912&gc)||da){var e=_e;0===(3932160&(_e<<=1))&&(_e=262144),Tc=e}else Tc=536870912;return null!==(e=Os.current)&&(e.flags|=32),Tc}function Jc(e,t,n){(e!==pc||2!==vc&&9!==vc)&&null===e.cancelPendingCommit||(tu(e,0),Xc(e,gc,Tc,!1)),Oe(e,n),0!==(2&fc)&&e===pc||(e===pc&&(0===(2&fc)&&(Ec|=n),4===xc&&Xc(e,gc,Tc,!1)),$u(e))}function Gc(e,t,n){if(0!==(6&fc))throw Error(i(327));for(var r=!n&&0===(127&t)&&0===(t&e.expiredLanes)||Ne(e,t),a=r?function(e,t){var n=fc;fc|=2;var r=au(),a=su();pc!==e||gc!==t?($c=null,Lc=le()+500,tu(e,t)):wc=Ne(e,t);e:for(;;)try{if(0!==vc&&null!==mc){t=mc;var s=yc;t:switch(vc){case 1:vc=0,yc=null,hu(e,t,s,1);break;case 2:case 9:if(ts(s)){vc=0,yc=null,du(t);break}t=function(){2!==vc&&9!==vc||pc!==e||(vc=7),$u(e)},s.then(t,t);break e;case 3:vc=7;break e;case 4:vc=5;break e;case 7:ts(s)?(vc=0,yc=null,du(t)):(vc=0,yc=null,hu(e,t,s,7));break;case 5:var o=null;switch(mc.tag){case 26:o=mc.memoizedState;case 5:case 27:var l=mc;if(o?ah(o):l.stateNode.complete){vc=0,yc=null;var c=l.sibling;if(null!==c)mc=c;else{var u=l.return;null!==u?(mc=u,fu(u)):mc=null}break t}}vc=0,yc=null,hu(e,t,s,5);break;case 6:vc=0,yc=null,hu(e,t,s,6);break;case 8:eu(),xc=6;break e;default:throw Error(i(462))}}cu();break}catch(d){nu(e,d)}return _a=xa=null,L.H=r,L.A=a,fc=n,null!==mc?0:(pc=null,gc=0,Rr(),xc)}(e,t):ou(e,t,!0),s=r;;){if(0===a){wc&&!r&&Xc(e,t,0,!1);break}if(n=e.current.alternate,!s||Yc(n)){if(2===a){if(s=t,e.errorRecoveryDisabledLanes&s)var o=0;else o=0!==(o=-536870913&e.pendingLanes)?o:536870912&o?536870912:0;if(0!==o){t=o;e:{var l=e;a=Cc;var c=l.current.memoizedState.isDehydrated;if(c&&(tu(l,o).flags|=256),2!==(o=ou(l,o,!1))){if(kc&&!c){l.errorRecoveryDisabledLanes|=s,Ec|=s,a=4;break e}s=Rc,Rc=a,null!==s&&(null===Rc?Rc=s:Rc.push.apply(Rc,s))}a=o}if(s=!1,2!==a)continue}}if(1===a){tu(e,0),Xc(e,t,0,!0);break}e:{switch(r=e,s=a){case 0:case 1:throw Error(i(345));case 4:if((4194048&t)!==t)break;case 6:Xc(r,t,Tc,!bc);break e;case 2:Rc=null;break;case 3:case 5:break;default:throw Error(i(329))}if((62914560&t)===t&&10<(a=Oc+300-le())){if(Xc(r,t,Tc,!bc),0!==Te(r,0,!0))break e;Mc=t,r.timeoutHandle=kd(Qc.bind(null,r,n,Rc,$c,Ac,t,Tc,Ec,Nc,bc,s,"Throttled",-0,0),a)}else Qc(r,n,Rc,$c,Ac,t,Tc,Ec,Nc,bc,s,null,-0,0)}break}a=ou(e,t,!1),s=!1}$u(e)}function Qc(e,t,n,r,a,s,i,o,l,c,u,d,h,f){if(e.timeoutHandle=-1,8192&(d=t.subtreeFlags)||16785408===(16785408&d)){sc(t,s,d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Ot});var p=(62914560&s)===s?Oc-le():(4194048&s)===s?Pc-le():0;if(null!==(p=function(e,t){return e.stylesheets&&0===e.count&&lh(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&lh(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&0===sh&&(sh=62500*function(){if("function"===typeof performance.getEntriesByType){for(var e=0,t=0,n=performance.getEntriesByType("resource"),r=0;r<n.length;r++){var a=n[r],s=a.transferSize,i=a.initiatorType,o=a.duration;if(s&&o&&fd(i)){for(i=0,o=a.responseEnd,r+=1;r<n.length;r++){var l=n[r],c=l.startTime;if(c>o)break;var u=l.transferSize,d=l.initiatorType;u&&fd(d)&&(i+=u*((l=l.responseEnd)<o?1:(o-c)/(l-c)))}if(--r,t+=8*(s+i)/(a.duration/1e3),10<++e)break}}if(0<e)return t/e/1e6}return navigator.connection&&"number"===typeof(e=navigator.connection.downlink)?e:5}());var a=setTimeout(function(){if(e.waitingForImages=!1,0===e.count&&(e.stylesheets&&lh(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>sh?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(a)}}:null}(d,p)))return Mc=s,e.cancelPendingCommit=p(mu.bind(null,e,t,s,n,r,a,i,o,l,u,d,null,h,f)),void Xc(e,s,i,!c)}mu(e,t,s,n,r,a,i,o,l)}function Yc(e){for(var t=e;;){var n=t.tag;if((0===n||11===n||15===n)&&16384&t.flags&&(null!==(n=t.updateQueue)&&null!==(n=n.stores)))for(var r=0;r<n.length;r++){var a=n[r],s=a.getSnapshot;a=a.value;try{if(!Xn(s(),a))return!1}catch(i){return!1}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Xc(e,t,n,r){t&=~jc,t&=~Ec,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var a=t;0<a;){var s=31-we(a),i=1<<s;r[s]=-1,a&=~i}0!==n&&Pe(e,n,t)}function Zc(){return 0!==(6&fc)||(Iu(0,!1),!1)}function eu(){if(null!==mc){if(0===vc)var e=mc.return;else _a=xa=null,ii(e=mc),os=null,ls=0,e=mc;for(;null!==e;)ml(e.alternate,e),e=e.return;mc=null}}function tu(e,t){var n=e.timeoutHandle;-1!==n&&(e.timeoutHandle=-1,Sd(n)),null!==(n=e.cancelPendingCommit)&&(e.cancelPendingCommit=null,n()),Mc=0,eu(),pc=e,mc=n=Mr(e.current,null),gc=t,vc=0,yc=null,bc=!1,wc=Ne(e,t),kc=!1,Nc=Tc=jc=Ec=_c=xc=0,Rc=Cc=null,Ac=!1,0!==(8&t)&&(t|=32&t);var r=e.entangledLanes;if(0!==r)for(e=e.entanglements,r&=t;0<r;){var a=31-we(r),s=1<<a;t|=e[a],r&=~s}return Sc=t,Rr(),n}function nu(e,t){Bs=null,L.H=mo,t===Ya||t===Za?(t=ss(),vc=3):t===Xa?(t=ss(),vc=4):vc=t===Oo?8:null!==t&&"object"===typeof t&&"function"===typeof t.then?6:1,yc=t,null===mc&&(xc=1,To(e,Jr(t,e.current)))}function ru(){var e=Os.current;return null===e||((4194048&gc)===gc?null===Ps:((62914560&gc)===gc||0!==(536870912&gc))&&e===Ps)}function au(){var e=L.H;return L.H=mo,null===e?mo:e}function su(){var e=L.A;return L.A=dc,e}function iu(){xc=4,bc||(4194048&gc)!==gc&&null!==Os.current||(wc=!0),0===(134217727&_c)&&0===(134217727&Ec)||null===pc||Xc(pc,gc,Tc,!1)}function ou(e,t,n){var r=fc;fc|=2;var a=au(),s=su();pc===e&&gc===t||($c=null,tu(e,t)),t=!1;var i=xc;e:for(;;)try{if(0!==vc&&null!==mc){var o=mc,l=yc;switch(vc){case 8:eu(),i=6;break e;case 3:case 2:case 9:case 6:null===Os.current&&(t=!0);var c=vc;if(vc=0,yc=null,hu(e,o,l,c),n&&wc){i=0;break e}break;default:c=vc,vc=0,yc=null,hu(e,o,l,c)}}lu(),i=xc;break}catch(u){nu(e,u)}return t&&e.shellSuspendCounter++,_a=xa=null,fc=r,L.H=a,L.A=s,null===mc&&(pc=null,gc=0,Rr()),i}function lu(){for(;null!==mc;)uu(mc)}function cu(){for(;null!==mc&&!ie();)uu(mc)}function uu(e){var t=il(e.alternate,e,Sc);e.memoizedProps=e.pendingProps,null===t?fu(e):mc=t}function du(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Wo(n,t,t.pendingProps,t.type,void 0,gc);break;case 11:t=Wo(n,t,t.pendingProps,t.type.render,t.ref,gc);break;case 5:ii(t);default:ml(n,t),t=il(n,t=mc=Fr(t,Sc),Sc)}e.memoizedProps=e.pendingProps,null===t?fu(e):mc=t}function hu(e,t,n,r){_a=xa=null,ii(t),os=null,ls=0;var a=t.return;try{if(function(e,t,n,r,a){if(n.flags|=32768,null!==r&&"object"===typeof r&&"function"===typeof r.then){if(null!==(t=n.alternate)&&Ca(t,n,a,!0),null!==(n=Os.current)){switch(n.tag){case 31:case 13:return null===Ps?iu():null===n.alternate&&0===xc&&(xc=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===es?n.flags|=16384:(null===(t=n.updateQueue)?n.updateQueue=new Set([r]):t.add(r),_u(e,r,a)),!1;case 22:return n.flags|=65536,r===es?n.flags|=16384:(null===(t=n.updateQueue)?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):null===(n=t.retryQueue)?t.retryQueue=new Set([r]):n.add(r),_u(e,r,a)),!1}throw Error(i(435,n.tag))}return _u(e,r,a),iu(),!1}if(da)return null!==(t=Os.current)?(0===(65536&t.flags)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==pa&&ka(Jr(e=Error(i(422),{cause:r}),n))):(r!==pa&&ka(Jr(t=Error(i(423),{cause:r}),n)),(e=e.current.alternate).flags|=65536,a&=-a,e.lanes|=a,r=Jr(r,n),ks(e,a=Co(e.stateNode,r,a)),4!==xc&&(xc=2)),!1;var s=Error(i(520),{cause:r});if(s=Jr(s,n),null===Cc?Cc=[s]:Cc.push(s),4!==xc&&(xc=2),null===t)return!0;r=Jr(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,ks(n,e=Co(n.stateNode,r,e)),!1;case 1:if(t=n.type,s=n.stateNode,0===(128&n.flags)&&("function"===typeof t.getDerivedStateFromError||null!==s&&"function"===typeof s.componentDidCatch&&(null===Ic||!Ic.has(s))))return n.flags|=65536,a&=-a,n.lanes|=a,Ao(a=Ro(a),e,n,r),ks(n,a),!1}n=n.return}while(null!==n);return!1}(e,a,t,n,gc))return xc=1,To(e,Jr(n,e.current)),void(mc=null)}catch(s){if(null!==a)throw mc=a,s;return xc=1,To(e,Jr(n,e.current)),void(mc=null)}32768&t.flags?(da||1===r?e=!0:wc||0!==(536870912&gc)?e=!1:(bc=e=!0,(2===r||9===r||3===r||6===r)&&(null!==(r=Os.current)&&13===r.tag&&(r.flags|=16384))),pu(t,e)):fu(t)}function fu(e){var t=e;do{if(0!==(32768&t.flags))return void pu(t,bc);e=t.return;var n=fl(t.alternate,t,Sc);if(null!==n)return void(mc=n);if(null!==(t=t.sibling))return void(mc=t);mc=t=e}while(null!==t);0===xc&&(xc=5)}function pu(e,t){do{var n=pl(e.alternate,e);if(null!==n)return n.flags&=32767,void(mc=n);if(null!==(n=e.return)&&(n.flags|=32768,n.subtreeFlags=0,n.deleti
2ons=null),!t&&null!==(e=e.sibling))return void(mc=e);mc=e=n}while(null!==e);xc=6,mc=null}function mu(e,t,n,r,a,s,o,l,c){e.cancelPendingCommit=null;do{wu()}while(0!==Dc);if(0!==(6&fc))throw Error(i(327));if(null!==t){if(t===e.current)throw Error(i(177));if(s=t.lanes|t.childLanes,function(e,t,n,r,a,s){var i=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var o=e.entanglements,l=e.expirationTimes,c=e.hiddenUpdates;for(n=i&~n;0<n;){var u=31-we(n),d=1<<u;o[u]=0,l[u]=-1;var h=c[u];if(null!==h)for(c[u]=null,u=0;u<h.length;u++){var f=h[u];null!==f&&(f.lane&=-536870913)}n&=~d}0!==r&&Pe(e,r,0),0!==s&&0===a&&0!==e.tag&&(e.suspendedLanes|=s&~(i&~t))}(e,n,s|=Cr,o,l,c),e===pc&&(mc=pc=null,gc=0),zc=t,Uc=e,Mc=n,Fc=s,Bc=a,qc=r,0!==(10256&t.subtreeFlags)||0!==(10256&t.flags)?(e.callbackNode=null,e.callbackPriority=0,ae(he,function(){return ku(),null})):(e.callbackNode=null,e.callbackPriority=0),r=0!==(13878&t.flags),0!==(13878&t.subtreeFlags)||r){r=L.T,L.T=null,a=$.p,$.p=2,o=fc,fc|=4;try{!function(e,t){if(e=e.containerInfo,pd=bh,ar(e=rr(e))){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var a=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch(g){n=null;break e}var o=0,l=-1,c=-1,u=0,d=0,h=e,f=null;t:for(;;){for(var p;h!==n||0!==a&&3!==h.nodeType||(l=o+a),h!==s||0!==r&&3!==h.nodeType||(c=o+r),3===h.nodeType&&(o+=h.nodeValue.length),null!==(p=h.firstChild);)f=h,h=p;for(;;){if(h===e)break t;if(f===n&&++u===a&&(l=o),f===s&&++d===r&&(c=o),null!==(p=h.nextSibling))break;f=(h=f).parentNode}h=p}n=-1===l||-1===c?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(md={focusedElem:e,selectionRange:n},bh=!1,Pl=t;null!==Pl;)if(e=(t=Pl).child,0!==(1028&t.subtreeFlags)&&null!==e)e.return=t,Pl=e;else for(;null!==Pl;){switch(s=(t=Pl).alternate,e=t.flags,t.tag){case 0:if(0!==(4&e)&&null!==(e=null!==(e=t.updateQueue)?e.events:null))for(n=0;n<e.length;n++)(a=e[n]).ref.impl=a.nextImpl;break;case 11:case 15:case 5:case 26:case 27:case 6:case 4:case 17:break;case 1:if(0!==(1024&e)&&null!==s){e=void 0,n=t,a=s.memoizedProps,s=s.memoizedState,r=n.stateNode;try{var m=xo(n.type,a);e=r.getSnapshotBeforeUpdate(m,s),r.__reactInternalSnapshotBeforeUpdate=e}catch(v){xu(n,n.return,v)}}break;case 3:if(0!==(1024&e))if(9===(n=(e=t.stateNode.containerInfo).nodeType))Cd(e);else if(1===n)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Cd(e);break;default:e.textContent=""}break;default:if(0!==(1024&e))throw Error(i(163))}if(null!==(e=t.sibling)){e.return=t.return,Pl=e;break}Pl=t.return}}(e,t)}finally{fc=o,$.p=a,L.T=r}}Dc=1,gu(),vu(),yu()}}function gu(){if(1===Dc){Dc=0;var e=Uc,t=zc,n=0!==(13878&t.flags);if(0!==(13878&t.subtreeFlags)||n){n=L.T,L.T=null;var r=$.p;$.p=2;var a=fc;fc|=4;try{Wl(t,e);var s=md,i=rr(e.containerInfo),o=s.focusedElem,l=s.selectionRange;if(i!==o&&o&&o.ownerDocument&&nr(o.ownerDocument.documentElement,o)){if(null!==l&&ar(o)){var c=l.start,u=l.end;if(void 0===u&&(u=c),"selectionStart"in o)o.selectionStart=c,o.selectionEnd=Math.min(u,o.value.length);else{var d=o.ownerDocument||document,h=d&&d.defaultView||window;if(h.getSelection){var f=h.getSelection(),p=o.textContent.length,m=Math.min(l.start,p),g=void 0===l.end?m:Math.min(l.end,p);!f.extend&&m>g&&(i=g,g=m,m=i);var v=tr(o,m),y=tr(o,g);if(v&&y&&(1!==f.rangeCount||f.anchorNode!==v.node||f.anchorOffset!==v.offset||f.focusNode!==y.node||f.focusOffset!==y.offset)){var b=d.createRange();b.setStart(v.node,v.offset),f.removeAllRanges(),m>g?(f.addRange(b),f.extend(y.node,y.offset)):(b.setEnd(y.node,y.offset),f.addRange(b))}}}}for(d=[],f=o;f=f.parentNode;)1===f.nodeType&&d.push({element:f,left:f.scrollLeft,top:f.scrollTop});for("function"===typeof o.focus&&o.focus(),o=0;o<d.length;o++){var w=d[o];w.element.scrollLeft=w.left,w.element.scrollTop=w.top}}bh=!!pd,md=pd=null}finally{fc=a,$.p=r,L.T=n}}e.current=t,Dc=2}}function vu(){if(2===Dc){Dc=0;var e=Uc,t=zc,n=0!==(8772&t.flags);if(0!==(8772&t.subtreeFlags)||n){n=L.T,L.T=null;var r=$.p;$.p=2;var a=fc;fc|=4;
2try{Ll(e,t.alternate,t)}finally{fc=a,$.p=r,L.T=n}}Dc=3}}function yu(){if(4===Dc||3===Dc){Dc=0,oe();var e=Uc,t=zc,n=Mc,r=qc;0!==(10256&t.subtreeFlags)||0!==(10256&t.flags)?Dc=5:(Dc=0,zc=Uc=null,bu(e,e.pendingLanes));var a=e.pendingLanes;if(0===a&&(Ic=null),De(n),t=t.stateNode,ye&&"function"===typeof ye.onCommitFiberRoot)try{ye.onCommitFiberRoot(ve,t,void 0,128===(128&t.current.flags))}catch(l){}if(null!==r){t=L.T,a=$.p,$.p=2,L.T=null;try{for(var s=e.onRecoverableError,i=0;i<r.length;i++){var o=r[i];s(o.value,{componentStack:o.stack})}}finally{L.T=t,$.p=a}}0!==(3&Mc)&&wu(),$u(e),a=e.pendingLanes,0!==(261930&n)&&0!==(42&a)?e===Wc?Hc++:(Hc=0,Wc=e):Hc=0,Iu(0,!1)}}function bu(e,t){0===(e.pooledCacheLanes&=t)&&(null!=(t=e.pooledCache)&&(e.pooledCache=null,Ma(t)))}function wu(){return gu(),vu(),yu(),ku()}function ku(){if(5!==Dc)return!1;var e=Uc,t=Fc;Fc=0;var n=De(Mc),r=L.T,a=$.p;try{$.p=32>n?32:n,L.T=null,n=Bc,Bc=null;var s=Uc,o=Mc;if(Dc=0,zc=Uc=null,Mc=0,0!==(6&fc))throw Error(i(331));var l=fc;if(fc|=4,lc(s.current),ec(s,s.current,o,n),fc=l,Iu(0,!1),ye&&"function"===typeof ye.onPostCommitFiberRoot)try{ye.onPostCommitFiberRoot(ve,s)}catch(c){}return!0}finally{$.p=a,L.T=r,bu(e,t)}}function Su(e,t,n){t=Jr(n,t),null!==(e=bs(e,t=Co(e.stateNode,t,2),2))&&(Oe(e,2),$u(e))}function xu(e,t,n){if(3===e.tag)Su(e,e,n);else for(;null!==t;){if(3===t.tag){Su(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"===typeof t.type.getDerivedStateFromError||"function"===typeof r.componentDidCatch&&(null===Ic||!Ic.has(r))){e=Jr(n,e),null!==(r=bs(t,n=Ro(2),2))&&(Ao(n,r,t,e),Oe(r,2),$u(r));break}}t=t.return}}function _u(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new hc;var a=new Set;r.set(t,a)}else void 0===(a=r.get(t))&&(a=new Set,r.set(t,a));a.has(n)||(kc=!0,a.add(n),e=Eu.bind(null,e,t,n),t.then(e,e))}function Eu(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,pc===e&&(gc&n)===n&&(4===xc||3===xc&&(62914560&gc)===gc&&300>le()-Oc?0===(2&fc)&&tu(e,0):jc|=n,Nc===gc&&(Nc=0)),$u(e)}function ju(e,t){0===t&&(t=Re()),null!==(e=Pr(e,t))&&(Oe(e,t),$u(e))}function Tu(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),ju(e,n)}function Nu(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,a=e.memoizedState;null!==a&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}null!==r&&r.delete(t),ju(e,n)}var Cu=null,Ru=null,Au=!1,Ou=!1,Pu=!1,Lu=0;function $u(e){e!==Ru&&null===e.next&&(null===Ru?Cu=Ru=e:Ru=Ru.next=e),Ou=!0,Au||(Au=!0,_d(function(){0!==(6&fc)?ae(ue,Du):Uu()}))}function Iu(e,t){if(!Pu&&Ou){Pu=!0;do{for(var n=!1,r=Cu;null!==r;){if(!t)if(0!==e){var a=r.pendingLanes;if(0===a)var s=0;else{var i=r.suspendedLanes,o=r.pingedLanes;s=(1<<31-we(42|e)+1)-1,s=201326741&(s&=a&~(i&~o))?201326741&s|1:s?2|s:0}0!==s&&(n=!0,Fu(r,s))}else s=gc,0===(3&(s=Te(r,r===pc?s:0,null!==r.cancelPendingCommit||-1!==r.timeoutHandle)))||Ne(r,s)||(n=!0,Fu(r,s));r=r.next}}while(n);Pu=!1}}function Du(){Uu()}function Uu(){Ou=Au=!1;var e=0;0!==Lu&&function(){var e=window.event;if(e&&"popstate"===e.type)return e!==wd&&(wd=e,!0);return wd=null,!1}()&&(e=Lu);for(var t=le(),n=null,r=Cu;null!==r;){var a=r.next,s=zu(r,t);0===s?(r.next=null,null===n?Cu=a:n.next=a,null===a&&(Ru=n)):(n=r,(0!==e||0!==(3&s))&&(Ou=!0)),r=a}0!==Dc&&5!==Dc||Iu(e,!1),0!==Lu&&(Lu=0)}function zu(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,a=e.expirationTimes,s=-62914561&e.pendingLanes;0<s;){var i=31-we(s),o=1<<i,l=a[i];-1===l?0!==(o&n)&&0===(o&r)||(a[i]=Ce(o,t)):l<=t&&(e.expiredLanes|=o),s&=~o}if(n=gc,n=Te(e,e===(t=pc)?n:0,null!==e.cancelPendingCommit||-1!==e.timeoutHandle),r=e.callbackNode,0===n||e===t&&(2===vc||9===vc)||null!==e.cancelPendingCommit)return null!==r&&null!==r&&se(r),e.callbackNode=null,e.callbackPriority=0;if(0===(3&n)||Ne(e,n)){if((t=n&-n)===e.callbackPriority)return t;switch(null!==r&&se(r),De(n)){case 2:case 8:n=de;break;case 32:default:n=he;break;case 268435456:n=pe}return r=Mu.bind(null,e),n=ae(n,r),e.callbackPriority=t,e.callbackNode=n,t}return null!==r&&null!==r&&se(r),e.callbackPriority=2,e.callbackNode=null,2}function Mu(e,t){if(0!==Dc&&5!==Dc)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(wu()&&e.callbackNode!==n)return null;var r=gc;return 0===(r=Te(e,e===pc?r:0,null!==e.cancelPendingCommit||-1!==e.timeoutHandle))?null:(Gc(e,r,t),zu(e,le(
vendor: 4,343 bytes, line 2
2)),null!=e.callbackNode&&e.callbackNode===n?Mu.bind(null,e):null)}function Fu(e,t){if(wu())return null;Gc(e,t,!0)}function Bu(){if(0===Lu){var e=qa;0===e&&(e=xe,0===(261888&(xe<<=1))&&(xe=256)),Lu=e}return Lu}function qu(e){return null==e||"symbol"===typeof e||"boolean"===typeof e?null:"function"===typeof e?e:At(""+e)}function Hu(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}for(var Wu=0;Wu<_r.length;Wu++){var Vu=_r[Wu];Er(Vu.toLowerCase(),"on"+(Vu[0].toUpperCase()+Vu.slice(1)))}Er(gr,"onAnimationEnd"),Er(vr,"onAnimationIteration"),Er(yr,"onAnimationStart"),Er("dblclick","onDoubleClick"),Er("focusin","onFocus"),Er("focusout","onBlur"),Er(br,"onTransitionRun"),Er(wr,"onTransitionStart"),Er(kr,"onTransitionCancel"),Er(Sr,"onTransitionEnd"),at("onMouseEnter",["mouseout","mouseover"]),at("onMouseLeave",["mouseout","mouseover"]),at("onPointerEnter",["pointerout","pointerover"]),at("onPointerLeave",["pointerout","pointerover"]),rt("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),rt("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),rt("onBeforeInput",["compositionend","keypress","textInput","paste"]),rt("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),rt("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),rt("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ku="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(" "),Ju=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ku));function Gu(e,t){t=0!==(4&t);for(var n=0;n<e.length;n++){var r=e[n],a=r.event;r=r.listeners;e:{var s=void 0;if(t)for(var i=r.length-1;0<=i;i--){var o=r[i],l=o.instance,c=o.currentTarget;if(o=o.listener,l!==s&&a.isPropagationStopped())break e;s=o,a.currentTarget=c;try{s(a)}catch(u){jr(u)}a.currentTarget=null,s=l}else for(i=0;i<r.length;i++){if(l=(o=r[i]).instance,c=o.currentTarget,o=o.listener,l!==s&&a.isPropagationStopped())break e;s=o,a.currentTarget=c;try{s(a)}catch(u){jr(u)}a.currentTarget=null,s=l}}}}function Qu(e,t){var n=t[He];void 0===n&&(n=t[He]=new Set);var r=e+"__bubble";n.has(r)||(ed(t,e,2,!1),n.add(r))}function Yu(e,t,n){var r=0;t&&(r|=4),ed(n,e,r,t)}var Xu="_reactListening"+Math.random().toString(36).slice(2);function Zu(e){if(!e[Xu]){e[Xu]=!0,tt.forEach(function(t){"selectionchange"!==t&&(Ju.has(t)||Yu(t,!1,e),Yu(t,!0,e))});var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Xu]||(t[Xu]=!0,Yu("selectionchange",!1,t))}}function ed(e,t,n,r){switch(jh(t)){case 2:var a=wh;break;case 8:a=kh;break;default:a=Sh}n=a.bind(null,t,n,e),a=void 0,!Bt||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(a=!0),r?void 0!==a?e.addEventListener(t,n,{capture:!0,passive:a}):e.addEventListener(t,n,!0):void 0!==a?e.addEventListener(t,n,{passive:a}):e.addEventListener(t,n,!1)}function td(e,t,n,r,a){var s=r;if(0===(1&t)&&0===(2&t)&&null!==r)e:for(;;){if(null===r)return;var i=r.tag;if(3===i||4===i){var o=r.stateNode.containerInfo;if(o===a)break;if(4===i)for(i=r.return;null!==i;){var c=i.tag;if((3===c||4===c)&&i.stateNode.containerInfo===a)return;i=i.return}for(;null!==o;){if(null===(i=Qe(o)))return;if(5===(c=i.tag)||6===c||26===c||27===c){r=s=i;continue e}o=o.parentNode}}r=r.return}zt(function(){var r=s,a=Lt(n),i=[];e:{var o=xr.get(e);if(void 0!==o){var c=nn,u=e;switch(e){case"keypress":if(0===Jt(n))break e;case"keydown":case"keyup":c=yn;break;case"focusin":u="focus",c=cn;break;case"focusout":u="blur",c=cn;break;case"beforeblur":case"afterblur":c=cn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":c=on;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":c=ln;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":c=wn;break;
vendor: 4,216 bytes, line 2
2case gr:case vr:case yr:c=un;break;case Sr:c=kn;break;case"scroll":case"scrollend":c=an;break;case"wheel":c=Sn;break;case"copy":case"cut":case"paste":c=dn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":c=bn;break;case"toggle":case"beforetoggle":c=xn}var d=0!==(4&t),h=!d&&("scroll"===e||"scrollend"===e),f=d?null!==o?o+"Capture":null:o;d=[];for(var p,m=r;null!==m;){var g=m;if(p=g.stateNode,5!==(g=g.tag)&&26!==g&&27!==g||null===p||null===f||null!=(g=Mt(m,f))&&d.push(nd(m,g,p)),h)break;m=m.return}0<d.length&&(o=new c(o,u,null,n,a),i.push({event:o,listeners:d}))}}if(0===(7&t)){if(c="mouseout"===e||"pointerout"===e,(!(o="mouseover"===e||"pointerover"===e)||n===Pt||!(u=n.relatedTarget||n.fromElement)||!Qe(u)&&!u[qe])&&(c||o)&&(o=a.window===a?a:(o=a.ownerDocument)?o.defaultView||o.parentWindow:window,c?(c=r,null!==(u=(u=n.relatedTarget||n.toElement)?Qe(u):null)&&(h=l(u),d=u.tag,u!==h||5!==d&&27!==d&&6!==d)&&(u=null)):(c=null,u=r),c!==u)){if(d=on,g="onMouseLeave",f="onMouseEnter",m="mouse","pointerout"!==e&&"pointerover"!==e||(d=bn,g="onPointerLeave",f="onPointerEnter",m="pointer"),h=null==c?o:Xe(c),p=null==u?o:Xe(u),(o=new d(g,m+"leave",c,n,a)).target=h,o.relatedTarget=p,g=null,Qe(a)===r&&((d=new d(f,m+"enter",u,n,a)).target=p,d.relatedTarget=h,g=d),h=g,c&&u)e:{for(d=ad,m=u,p=0,g=f=c;g;g=d(g))p++;g=0;for(var v=m;v;v=d(v))g++;for(;0<p-g;)f=d(f),p--;for(;0<g-p;)m=d(m),g--;for(;p--;){if(f===m||null!==m&&f===m.alternate){d=f;break e}f=d(f),m=d(m)}d=null}else d=null;null!==c&&sd(i,o,c,d,!1),null!==u&&null!==h&&sd(i,h,u,d,!0)}if("select"===(c=(o=r?Xe(r):window).nodeName&&o.nodeName.toLowerCase())||"input"===c&&"file"===o.type)var y=Fn;else if($n(o))if(Bn)y=Yn;else{y=Gn;var b=Jn}else!(c=o.nodeName)||"input"!==c.toLowerCase()||"checkbox"!==o.type&&"radio"!==o.type?r&&Nt(r.elementType)&&(y=Fn):y=Qn;switch(y&&(y=y(e,r))?In(i,y,n,a):(b&&b(e,o,r),"focusout"===e&&r&&"number"===o.type&&null!=r.memoizedProps.value&&wt(o,"number",o.value)),b=r?Xe(r):window,e){case"focusin":($n(b)||"true"===b.contentEditable)&&(ir=b,or=r,lr=null);break;case"focusout":lr=or=ir=null;break;case"mousedown":cr=!0;break;case"contextmenu":case"mouseup":case"dragend":cr=!1,ur(i,n,a);break;case"selectionchange":if(sr)break;case"keydown":case"keyup":ur(i,n,a)}var w;if(En)e:{switch(e){case"compositionstart":var k="onCompositionStart";break e;case"compositionend":k="onCompositionEnd";break e;case"compositionupdate":k="onCompositionUpdate";break e}k=void 0}else Pn?An(e,n)&&(k="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(k="onCompositionStart");k&&(Nn&&"ko"!==n.locale&&(Pn||"onCompositionStart"!==k?"onCompositionEnd"===k&&Pn&&(w=Kt()):(Wt="value"in(Ht=a)?Ht.value:Ht.textContent,Pn=!0)),0<(b=rd(r,k)).length&&(k=new hn(k,e,null,n,a),i.push({event:k,listeners:b}),w?k.data=w:null!==(w=On(n))&&(k.data=w))),(w=Tn?function(e,t){switch(e){case"compositionend":return On(t);case"keypress":return 32!==t.which?null:(Rn=!0,Cn);case"textInput":return(e=t.data)===Cn&&Rn?null:e;default:return null}}(e,n):function(e,t){if(Pn)return"compositionend"===e||!En&&An(e,t)?(e=Kt(),Vt=Wt=Ht=null,Pn=!1,e):null;switch(e){case"paste":default: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 Nn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(k=rd(r,"onBeforeInput")).length&&(b=new hn("onBeforeInput","beforeinput",null,n,a),i.push({event:b,listeners:k}),b.data=w)),function(e,t,n,r,a){if("submit"===t&&n&&n.stateNode===a){var s=qu((a[Be]||null).action),i=r.submitter;i&&null!==(t=(t=i[Be]||null)?qu(t.formAction):i.getAttribute("formAction"))&&(s=t,i=null);var o=new nn("action","action",null,r,a);e.push({event:o,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(0!==Lu){var e=i?Hu(a,i):new FormData(a);eo(n,{pending:!0,data:e,method:a.method,action:s},null,e)}}else"function"===typeof s&&(o.preventDefault(),e=i?Hu(a,i):new FormData(a),eo(n,{pending:!0,data:e,method:a.method,action:s},s,e))},currentTarget:a}]})}}(i,e,r,n,a)}Gu(i,t)})}
2function nd(e,t,n){return{instance:e,listener:t,currentTarget:n}}function rd(e,t){for(var n=t+"Capture",r=[];null!==e;){var a=e,s=a.stateNode;if(5!==(a=a.tag)&&26!==a&&27!==a||null===s||(null!=(a=Mt(e,n))&&r.unshift(nd(e,a,s)),null!=(a=Mt(e,t))&&r.push(nd(e,a,s))),3===e.tag)return r;e=e.return}return[]}function ad(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag&&27!==e.tag);return e||null}function sd(e,t,n,r,a){for(var s=t._reactName,i=[];null!==n&&n!==r;){var o=n,l=o.alternate,c=o.stateNode;if(o=o.tag,null!==l&&l===r)break;5!==o&&26!==o&&27!==o||null===c||(l=c,a?null!=(c=Mt(n,s))&&i.unshift(nd(n,c,l)):a||null!=(c=Mt(n,s))&&i.push(nd(n,c,l))),n=n.return}0!==i.length&&e.push({event:t,listeners:i})}var id=/\r\n?/g,od=/\u0000|\uFFFD/g;function ld(e){return("string"===typeof e?e:""+e).replace(id,"\n").replace(od,"")}function cd(e,t){return t=ld(t),ld(e)===t}function ud(e,t,n,r,a,s){switch(n){case"children":"string"===typeof r?"body"===t||"textarea"===t&&""===r||_t(e,r):("number"===typeof r||"bigint"===typeof r)&&"body"!==t&&_t(e,""+r);break;case"className":ct(e,"class",r);break;case"tabIndex":ct(e,"tabindex",r);break;case"dir":case"role":case"viewBox":case"width":case"height":ct(e,n,r);break;case"style":Tt(e,r,s);break;case"data":if("object"!==t){ct(e,"data",r);break}case"src":case"href":if(""===r&&("a"!==t||"href"!==n)){e.removeAttribute(n);break}if(null==r||"function"===typeof r||"symbol"===typeof r||"boolean"===typeof r){e.removeAttribute(n);break}r=At(""+r),e.setAttribute(n,r);break;case"action":case"formAction":if("function"===typeof r){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}if("function"===typeof s&&("formAction"===n?("input"!==t&&ud(e,t,"name",a.name,a,null),ud(e,t,"formEncType",a.formEncType,a,null),ud(e,t,"formMethod",a.formMethod,a,null),ud(e,t,"formTarget",a.formTarget,a,null)):(ud(e,t,"encType",a.encType,a,null),ud(e,t,"method",a.method,a,null),ud(e,t,"target",a.target,a,null))),null==r||"symbol"===typeof r||"boolean"===typeof r){e.removeAttribute(n);break}r=At(""+r),e.setAttribute(n,r);break;case"onClick":null!=r&&(e.onclick=Ot);break;case"onScroll":null!=r&&Qu("scroll",e);break;case"onScrollEnd":null!=r&&Qu("scrollend",e);break;case"dangerouslySetInnerHTML":if(null!=r){if("object"!==typeof r||!("__html"in r))throw Error(i(61));if(null!=(n=r.__html)){if(null!=a.children)throw Error(i(60));e.innerHTML=n}}break;case"multiple":e.multiple=r&&"function"!==typeof r&&"symbol"!==typeof r;break;case"muted":e.muted=r&&"function"!==typeof r&&"symbol"!==typeof r;break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":case"autoFocus":break;case"xlinkHref":if(null==r||"function"===typeof r||"boolean"===typeof r||"symbol"===typeof r){e.removeAttribute("xlink:href");break}n=At(""+r),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":null!=r&&"function"!==typeof r&&"symbol"!==typeof r?e.setAttribute(n,""+r):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":r&&"function"!==typeof r&&"symbol"!==typeof r?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":!0===r?e.setAttribute(n,""):!1!==r&&null!=r&&"function"!==typeof r&&"symbol"!==typeof r?e.setAttribute(n,r):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":null!=r&&"function"!==typeof r&&"symbol"!==typeof r&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case"rowSpan":case"start":null==r||"function"===typeof r||"symbol"===typeof r||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case"popover":Qu("beforetoggle",e),Qu("toggle",e),lt(e,"popover",r);break;case"xlinkActuate":ut(e,"http://www.w3.org/1999/xlink","xlink:actuate",r);break;case"xlinkArcrole":ut(e,"http://www.w3.org/1999/xlink","xlink:arcrole",r);break;case"xlinkRole":ut(e,"http://www.w3.org/1999/xlink","xlink:role",r);break;case"xlinkShow":ut(e,"http://www.w3.org/1999/xlink","xlink:show",r);break;case"xlinkTitle":ut(e,"http://www.w3.org/1999/xlink","xlink:title",r);break;case"xlinkType":ut(e,"http://www.w3.org/1999/xlink","xlink:type",r);break;case"xmlBase":ut(e,"http://www.w3.org/XML/1998/namespace","xml:base",r);break;case"xmlLang":ut(e,"http://www.w3.org/XML/1998/namespace","xml:lang",r);break;case"xmlSpace":ut(e,"http://www.w3.org/XML/1998/namespace","xml:space",r);break;case"is":lt(e,"is",r);break;case"innerText":case"textContent":break;default:(!(2<n.length)||"o"!==n[0]&&"O"!==n[0]||"n"!==n[1]&&"N"!==n[1])&<(e,n=Ct.get(n)||n,r)}}function dd(e,t,n,r,a,s){switch(n){case"style":Tt(e,r,s);break;case"dangerouslySetInnerHTML":if(null!=r){if("object"!==typeof r||!("__html"in r))throw Error(i(61));if(null!=(n=r.__html)){if(null!=a.children)throw Error(i(60));e.innerHTML=n}}break;case"children":"string"===typeof r?_t(e,r):("number"===typeof r||"bigint"===typeof r)&&_t(e,""+r);break;case"onScroll":null!=r&&Qu("scroll",e);break;case"onScrollEnd":null!=r&&Qu("scrollend",e);break;case"onClick":null!=r&&(e.onclick=Ot);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":case"innerText":case"textContent":break;default:nt.hasOwnProperty(n)||("o"!==n[0]||"n"!==n[1]||(a=n.endsWith("Capture"),t=n.slice(2,a?n.length-7:void 0),"function"===typeof(s=null!=(s=e[Be]||null)?s[n]:null)&&e.removeEventListener(t,s,a),"function"!==typeof r)?n in e?e[n]=r:!0===r?e.setAttribute(n,""):lt(e,n,r):("function"!==typeof s&&null!==s&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,a)))}}
vendor: 4,408 bytes, line 2
2function hd(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Qu("error",e),Qu("load",e);var r,a=!1,s=!1;for(r in n)if(n.hasOwnProperty(r)){var o=n[r];if(null!=o)switch(r){case"src":a=!0;break;case"srcSet":s=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,t));default:ud(e,t,r,o,n,null)}}return s&&ud(e,t,"srcSet",n.srcSet,n,null),void(a&&ud(e,t,"src",n.src,n,null));case"input":Qu("invalid",e);var l=r=o=s=null,c=null,u=null;for(a in n)if(n.hasOwnProperty(a)){var d=n[a];if(null!=d)switch(a){case"name":s=d;break;case"type":o=d;break;case"checked":c=d;break;case"defaultChecked":u=d;break;case"value":r=d;break;case"defaultValue":l=d;break;case"children":case"dangerouslySetInnerHTML":if(null!=d)throw Error(i(137,t));break;default:ud(e,t,a,d,n,null)}}return void bt(e,r,l,c,u,o,s,!1);case"select":for(s in Qu("invalid",e),a=o=r=null,n)if(n.hasOwnProperty(s)&&null!=(l=n[s]))switch(s){case"value":r=l;break;case"defaultValue":o=l;break;case"multiple":a=l;default:ud(e,t,s,l,n,null)}return t=r,n=o,e.multiple=!!a,void(null!=t?kt(e,!!a,t,!1):null!=n&&kt(e,!!a,n,!0));case"textarea":for(o in Qu("invalid",e),r=s=a=null,n)if(n.hasOwnProperty(o)&&null!=(l=n[o]))switch(o){case"value":a=l;break;case"defaultValue":s=l;break;case"children":r=l;break;case"dangerouslySetInnerHTML":if(null!=l)throw Error(i(91));break;default:ud(e,t,o,l,n,null)}return void xt(e,a,s,r);case"option":for(c in n)if(n.hasOwnProperty(c)&&null!=(a=n[c]))if("selected"===c)e.selected=a&&"function"!==typeof a&&"symbol"!==typeof a;else ud(e,t,c,a,n,null);return;case"dialog":Qu("beforetoggle",e),Qu("toggle",e),Qu("cancel",e),Qu("close",e);break;case"iframe":case"object":Qu("load",e);break;case"video":case"audio":for(a=0;a<Ku.length;a++)Qu(Ku[a],e);break;case"image":Qu("error",e),Qu("load",e);break;case"details":Qu("toggle",e);break;case"embed":case"source":case"link":Qu("error",e),Qu("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(u in n)if(n.hasOwnProperty(u)&&null!=(a=n[u]))switch(u){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,t));default:ud(e,t,u,a,n,null)}return;default:if(Nt(t)){for(d in n)n.hasOwnProperty(d)&&(void 0!==(a=n[d])&&dd(e,t,d,a,n,void 0));return}}for(l in n)n.hasOwnProperty(l)&&(null!=(a=n[l])&&ud(e,t,l,a,n,null))}function fd(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}var pd=null,md=null;function gd(e){return 9===e.nodeType?e:e.ownerDocument}function vd(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function yd(e,t){if(0===e)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return 1===e&&"foreignObject"===t?0:e}function bd(e,t){return"textarea"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"bigint"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var wd=null;var kd="function"===typeof setTimeout?setTimeout:void 0,Sd="function"===typeof clearTimeout?clearTimeout:void 0,xd="function"===typeof Promise?Promise:void 0,_d="function"===typeof queueMicrotask?queueMicrotask:"undefined"!==typeof xd?function(e){return xd.resolve(null).then(e).catch(Ed)}:kd;function Ed(e){setTimeout(function(){throw e})}function jd(e){return"head"===e}function Td(e,t){var n=t,r=0;do{var a=n.nextSibling;if(e.removeChild(n),a&&8===a.nodeType)if("/$"===(n=a.data)||"/&"===n){if(0===r)return e.removeChild(a),void Hh(t);r--}else if("$"===n||"$?"===n||"$~"===n||"$!"===n||"&"===n)r++;else if("html"===n)Ud(e.ownerDocument.documentElement);else if("head"===n){Ud(n=e.ownerDocument.head);for(var s=n.firstChild;s;){var i=s.nextSibling,o=s.nodeName;s[Je]||"SCRIPT"===o||"STYLE"===o||"LINK"===o&&"stylesheet"===s.rel.toLowerCase()||n.removeChild(s),s=i}}else"body"===n&&Ud(e.ownerDocument.body);n=a}while(n);Hh(t)}function Nd(e,t){var n=e;e=0;do{var r=n.nextSibling;if(1===n.nodeType?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",""===n.getAttribute("style")&&n.removeAttribute("style")):3===n.nodeType&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),r&&8===r.
vendor: 9,416 bytes, line 2
2nodeType)if("/$"===(n=r.data)){if(0===e)break;e--}else"$"!==n&&"$?"!==n&&"$~"!==n&&"$!"!==n||e++;n=r}while(n)}function Cd(e){var t=e.firstChild;for(t&&10===t.nodeType&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Cd(n),Ge(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if("stylesheet"===n.rel.toLowerCase())continue}e.removeChild(n)}}function Rd(e,t){for(;8!==e.nodeType;){if((1!==e.nodeType||"INPUT"!==e.nodeName||"hidden"!==e.type)&&!t)return null;if(null===(e=Pd(e.nextSibling)))return null}return e}function Ad(e){return"$?"===e.data||"$~"===e.data}function Od(e){return"$!"===e.data||"$?"===e.data&&"loading"!==e.ownerDocument.readyState}function Pd(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t||"$~"===t||"&"===t||"F!"===t||"F"===t)break;if("/$"===t||"/&"===t)return null}}return e}var Ld=null;function $d(e){e=e.nextSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n||"/&"===n){if(0===t)return Pd(e.nextSibling);t--}else"$"!==n&&"$!"!==n&&"$?"!==n&&"$~"!==n&&"&"!==n||t++}e=e.nextSibling}return null}function Id(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n||"$~"===n||"&"===n){if(0===t)return e;t--}else"/$"!==n&&"/&"!==n||t++}e=e.previousSibling}return null}function Dd(e,t,n){switch(t=gd(n),e){case"html":if(!(e=t.documentElement))throw Error(i(452));return e;case"head":if(!(e=t.head))throw Error(i(453));return e;case"body":if(!(e=t.body))throw Error(i(454));return e;default:throw Error(i(451))}}function Ud(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Ge(e)}var zd=new Map,Md=new Set;function Fd(e){return"function"===typeof e.getRootNode?e.getRootNode():9===e.nodeType?e:e.ownerDocument}var Bd=$.d;$.d={f:function(){var e=Bd.f(),t=Zc();return e||t},r:function(e){var t=Ye(e);null!==t&&5===t.tag&&"form"===t.type?no(t):Bd.r(e)},D:function(e){Bd.D(e),Hd("dns-prefetch",e,null)},C:function(e,t){Bd.C(e,t),Hd("preconnect",e,t)},L:function(e,t,n){Bd.L(e,t,n);var r=qd;if(r&&e&&t){var a='link[rel="preload"][as="'+vt(t)+'"]';"image"===t&&n&&n.imageSrcSet?(a+='[imagesrcset="'+vt(n.imageSrcSet)+'"]',"string"===typeof n.imageSizes&&(a+='[imagesizes="'+vt(n.imageSizes)+'"]')):a+='[href="'+vt(e)+'"]';var s=a;switch(t){case"style":s=Vd(e);break;case"script":s=Gd(e)}zd.has(s)||(e=f({rel:"preload",href:"image"===t&&n&&n.imageSrcSet?void 0:e,as:t},n),zd.set(s,e),null!==r.querySelector(a)||"style"===t&&r.querySelector(Kd(s))||"script"===t&&r.querySelector(Qd(s))||(hd(t=r.createElement("link"),"link",e),et(t),r.head.appendChild(t)))}},m:function(e,t){Bd.m(e,t);var n=qd;if(n&&e){var r=t&&"string"===typeof t.as?t.as:"script",a='link[rel="modulepreload"][as="'+vt(r)+'"][href="'+vt(e)+'"]',s=a;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":s=Gd(e)}if(!zd.has(s)&&(e=f({rel:"modulepreload",href:e},t),zd.set(s,e),null===n.querySelector(a))){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Qd(s)))return}hd(r=n.createElement("link"),"link",e),et(r),n.head.appendChild(r)}}},X:function(e,t){Bd.X(e,t);var n=qd;if(n&&e){var r=Ze(n).hoistableScripts,a=Gd(e),s=r.get(a);s||((s=n.querySelector(Qd(a)))||(e=f({src:e,async:!0},t),(t=zd.get(a))&&eh(e,t),et(s=n.createElement("script")),hd(s,"link",e),n.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},r.set(a,s))}},S:function(e,t,n){Bd.S(e,t,n);var r=qd;if(r&&e){var a=Ze(r).hoistableStyles,s=Vd(e);t=t||"default";var i=a.get(s);if(!i){var o={loading:0,preload:null};if(i=r.querySelector(Kd(s)))o.loading=5;else{e=f({rel:"stylesheet",href:e,"data-precedence":t},n),(n=zd.get(s))&&Zd(e,n);var l=i=r.createElement("link");et(l),hd(l,"link",e),l._p=new Promise(function(e,t){l.onload=e,l.onerror=t}),l.addEventListener("load",function(){o.loading|=1}),l.addEventListener("error",function(){o.loading|=2}),o.loading|=4,Xd(i,t,r)}i={type:"stylesheet",instance:i,count:1,state:o},a.set(s,i)}}},M:function(e,t){Bd.M(e,t);var n=qd;if(n&&e){var r=Ze(n).hoistableScripts,a=Gd(e),s=r.get(a);s||((s=n.querySelector(Qd(a)))||(e=f({src:e,async:!0,type:"module"},t),(t=zd.get(a))&&eh(e,t),et(s=n.createElement("script")),hd(s,"link",e),n.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},r.set(a,s))}}};var qd="undefined"===typeof document?null:document;function Hd(e,t,n){var r=qd;if(r&&"string"===typeof t&&t){var a=vt(t);a='link[rel="'+e+'"][href="'+a+'"]',"string"===typeof n&&(a+='[crossorigin="'+n+'"]'),Md.has(a)||(Md.add(a),e={rel:e,crossOrigin:n,href:t},null===r.querySelector(a)&&(hd(t=r.createElement("link"),"link",e),et(t),r.head.appendChild(t)))}}function Wd(e,t,n,r){var a,s,o,l,c=(c=V.current)?Fd(c):null;if(!c)throw Error(i(446));switch(e){case"meta":case"title":return null;case"style":return"string"===typeof n.precedence&&"string"===typeof n.href?(t=Vd(n.href),(r=(n=Ze(c).hoistableStyles).get(t))||(r={type:"style",instance:null,count:0,state:null},n.set(t,r)),r):{type:"void",instance:null,count:0,state:null};case"link":if("stylesheet"===n.rel&&"string"===typeof n.href&&"string"===typeof n.precedence){e=Vd(n.href);var u=Ze(c).hoistableStyles,d=u.get(e);if(d||(c=c.ownerDocument||c,d={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,d),(u=c.querySelector(Kd(e)))&&!u._p&&(d.instance=u,d.state.loading=5),zd.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},zd.set(e,n),u||(a=c,s=e,o=n,l=d.state,a.querySelector('link[rel="preload"][as="style"]['+s+"]")?l.loading=1:(s=a.createElement("link"),l.preload=s,s.addEventListener("load",function(){return l.loading|=1}),s.addEventListener("error",function(){return l.loading|=2}),hd(s,"link",o),et(s),a.head.appendChild(s))))),t&&null===r)throw Error(i(528,""));return d}if(t&&null!==r)throw Error(i(529,""));return null;case"script":return t=n.async,"string"===typeof(n=n.src)&&t&&"function"!==typeof t&&"symbol"!==typeof t?(t=Gd(n),(r=(n=Ze(c).hoistableScripts).get(t))||(r={type:"script",instance:null,count:0,state:null},n.set(t,r)),r):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Vd(e){return'href="'+vt(e)+'"'}function Kd(e){return'link[rel="stylesheet"]['+e+"]"}function Jd(e){return f({},e,{"data-precedence":e.precedence,precedence:null})}function Gd(e){return'[src="'+vt(e)+'"]'}function Qd(e){return"script[async]"+e}function Yd(e,t,n){if(t.count++,null===t.instance)switch(t.type){case"style":var r=e.querySelector('style[data-href~="'+vt(n.href)+'"]');if(r)return t.instance=r,et(r),r;var a=f({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return et(r=(e.ownerDocument||e).createElement("style")),hd(r,"style",a),Xd(r,n.precedence,e),t.instance=r;case"stylesheet":a=Vd(n.href);var s=e.querySelector(Kd(a));if(s)return t.state.loading|=4,t.instance=s,et(s),s;r=Jd(n),(a=zd.get(a))&&Zd(r,a),et(s=(e.ownerDocument||e).createElement("link"));var o=s;return o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),hd(s,"link",r),t.state.loading|=4,Xd(s,n.precedence,e),t.instance=s;case"script":return s=Gd(n.src),(a=e.querySelector(Qd(s)))?(t.instance=a,et(a),a):(r=n,(a=zd.get(s))&&eh(r=f({},n),a),et(a=(e=e.ownerDocument||e).createElement("script")),hd(a,"link",r),e.head.appendChild(a),t.instance=a);case"void":return null;default:throw Error(i(443,t.type))}else"stylesheet"===t.type&&0===(4&t.state.loading)&&(r=t.instance,t.state.loading|=4,Xd(r,n.precedence,e));return t.instance}function Xd(e,t,n){for(var r=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),a=r.length?r[r.length-1]:null,s=a,i=0;i<r.length;i++){var o=r[i];if(o.dataset.precedence===t)s=o;else if(s!==a)break}s?s.parentNode.insertBefore(e,s.nextSibling):(t=9===n.nodeType?n.head:n).insertBefore(e,t.firstChild)}function Zd(e,t){null==e.crossOrigin&&(e.crossOrigin=t.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),null==e.title&&(e.title=t.title)}function eh(e,t){null==e.crossOrigin&&(e.crossOrigin=t.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),null==e.integrity&&(e.integrity=t.integrity)}var th=null;function nh(e,t,n){if(null===th){var r=new Map,a=th=new Map;a.set(n,r)}else(r=(a=th).get(n))||(r=new Map,a.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),a=0;a<n.length;a++){var s=n[a];if(!(s[Je]||s[Fe]||"link"===e&&"stylesheet"===s.getAttribute("rel"))&&"http://www.w3.org/2000/svg"!==s.namespaceURI){var i=s.getAttribute(t)||"";i=e+i;var o=r.get(i);o?o.push(s):r.set(i,[s])}}return r}function rh(e,t,n){(e=e.ownerDocument||e).head.insertBefore(n,"title"===t?e.querySelector("head > title"):null)}function ah(e){return"stylesheet"!==e.type||0!==(3&e.state.loading)}var sh=0;function ih(){if(this.count--,0===this.count&&(0===this.imgCount||!this.waitingForImages))if(this.stylesheets)lh(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}var oh=null;function lh(e,t){e.stylesheets=null,null!==e.unsuspend&&(e.count++,oh=new Map,t.forEach(ch,e),oh=null,ih.call(e))}function ch(e,t){if(!(4&t.state.loading)){var n=oh.get(e);
vendor: 14,224 bytes, line 2
2if(n)var r=n.get(null);else{n=new Map,oh.set(e,n);for(var a=e.querySelectorAll("link[data-precedence],style[data-precedence]"),s=0;s<a.length;s++){var i=a[s];"LINK"!==i.nodeName&&"not all"===i.getAttribute("media")||(n.set(i.dataset.precedence,i),r=i)}r&&n.set(null,r)}i=(a=t.instance).getAttribute("data-precedence"),(s=n.get(i)||r)===r&&n.set(null,a),n.set(i,a),this.count++,r=ih.bind(this),a.addEventListener("load",r),a.addEventListener("error",r),s?s.parentNode.insertBefore(a,s.nextSibling):(e=9===e.nodeType?e.head:e).insertBefore(a,e.firstChild),t.state.loading|=4}}var uh={$$typeof:k,Provider:null,Consumer:null,_currentValue:I,_currentValue2:I,_threadCount:0};function dh(e,t,n,r,a,s,i,o,l){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Ae(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ae(0),this.hiddenUpdates=Ae(null),this.identifierPrefix=r,this.onUncaughtError=a,this.onCaughtError=s,this.onRecoverableError=i,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=l,this.incompleteTransitions=new Map}function hh(e,t,n,r,a,s,i,o,l,c,u,d){return e=new dh(e,t,n,i,l,c,u,d,o),t=1,!0===s&&(t|=24),s=Ur(3,null,null,t),e.current=s,s.stateNode=e,(t=za()).refCount++,e.pooledCache=t,t.refCount++,s.memoizedState={element:r,isDehydrated:n,cache:t},gs(s),e}function fh(e){return e?e=Ir:Ir}function ph(e,t,n,r,a,s){a=fh(a),null===r.context?r.context=a:r.pendingContext=a,(r=ys(t)).payload={element:n},null!==(s=void 0===s?null:s)&&(r.callback=s),null!==(n=bs(e,r,t))&&(Jc(n,0,t),ws(n,e,t))}function mh(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function gh(e,t){mh(e,t),(e=e.alternate)&&mh(e,t)}function vh(e){if(13===e.tag||31===e.tag){var t=Pr(e,67108864);null!==t&&Jc(t,0,67108864),gh(e,67108864)}}function yh(e){if(13===e.tag||31===e.tag){var t=Vc(),n=Pr(e,t=Ie(t));null!==n&&Jc(n,0,t),gh(e,t)}}var bh=!0;function wh(e,t,n,r){var a=L.T;L.T=null;var s=$.p;try{$.p=2,Sh(e,t,n,r)}finally{$.p=s,L.T=a}}function kh(e,t,n,r){var a=L.T;L.T=null;var s=$.p;try{$.p=8,Sh(e,t,n,r)}finally{$.p=s,L.T=a}}function Sh(e,t,n,r){if(bh){var a=xh(r);if(null===a)td(e,t,r,_h,n),$h(e,r);else if(function(e,t,n,r,a){switch(t){case"focusin":return Nh=Ih(Nh,e,t,n,r,a),!0;case"dragenter":return Ch=Ih(Ch,e,t,n,r,a),!0;case"mouseover":return Rh=Ih(Rh,e,t,n,r,a),!0;case"pointerover":var s=a.pointerId;return Ah.set(s,Ih(Ah.get(s)||null,e,t,n,r,a)),!0;case"gotpointercapture":return s=a.pointerId,Oh.set(s,Ih(Oh.get(s)||null,e,t,n,r,a)),!0}return!1}(a,e,t,n,r))r.stopPropagation();else if($h(e,r),4&t&&-1<Lh.indexOf(e)){for(;null!==a;){var s=Ye(a);if(null!==s)switch(s.tag){case 3:if((s=s.stateNode).current.memoizedState.isDehydrated){var i=je(s.pendingLanes);if(0!==i){var o=s;for(o.pendingLanes|=2,o.entangledLanes|=2;i;){var l=1<<31-we(i);o.entanglements[1]|=l,i&=~l}$u(s),0===(6&fc)&&(Lc=le()+500,Iu(0,!1))}}break;case 31:case 13:null!==(o=Pr(s,2))&&Jc(o,0,2),Zc(),gh(s,2)}if(null===(s=xh(r))&&td(e,t,r,_h,n),s===a)break;a=s}null!==a&&r.stopPropagation()}else td(e,t,r,null,n)}}function xh(e){return Eh(e=Lt(e))}var _h=null;function Eh(e){if(_h=null,null!==(e=Qe(e))){var t=l(e);if(null===t)e=null;else{var n=t.tag;if(13===n){if(null!==(e=c(t)))return e;e=null}else if(31===n){if(null!==(e=u(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return _h=e,null}function jh(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(ce()){case ue:return 2;case de:return 8;case he:case fe:return 32;case pe:return 268435456;default:return 32}default:return 32}}var Th=!1,Nh=null,Ch=null,Rh=null,Ah=new Map,Oh=new Map,Ph=[],Lh="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function $h(e,t){switch(e){case"focusin":case"focusout":Nh=null;break;case"dragenter":case"dragleave":Ch=null;break;case"mouseover":case"mouseout":Rh=null;break;case"pointerover":case"pointerout":Ah.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Oh.delete(t.pointerId)}}function Ih(e,t,n,r,a,s){return null===e||e.nativeEvent!==s?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:s,targetContainers:[a]},null!==t&&(null!==(t=Ye(t))&&vh(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==a&&-1===t.indexOf(a)&&t.push(a),e)}function Dh(e){var t=Qe(e.target);if(null!==t){var n=l(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=c(n)))return e.blockedOn=t,void ze(e.priority,function(){yh(n)})}else if(31===t){if(null!==(t=u(n)))return e.blockedOn=t,void ze(e.priority,function(){yh(n)})}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Uh(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=xh(e.nativeEvent);if(null!==n)return null!==(t=Ye(n))&&vh(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);Pt=r,n.target.dispatchEvent(r),Pt=null,t.shift()}return!0}function zh(e,t,n){Uh(e)&&n.delete(t)}function Mh(){Th=!1,null!==Nh&&Uh(Nh)&&(Nh=null),null!==Ch&&Uh(Ch)&&(Ch=null),null!==Rh&&Uh(Rh)&&(Rh=null),Ah.forEach(zh),Oh.forEach(zh)}function Fh(e,t){e.blockedOn===t&&(e.blockedOn=null,Th||(Th=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,Mh)))}var Bh=null;function qh(e){Bh!==e&&(Bh=e,r.unstable_scheduleCallback(r.unstable_NormalPriority,function(){Bh===e&&(Bh=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],a=e[t+2];if("function"!==typeof r){if(null===Eh(r||n))continue;break}var s=Ye(n);null!==s&&(e.splice(t,3),t-=3,eo(s,{pending:!0,data:a,method:n.method,action:r},r,a))}}))}function Hh(e){function t(t){return Fh(t,e)}null!==Nh&&Fh(Nh,e),null!==Ch&&Fh(Ch,e),null!==Rh&&Fh(Rh,e),Ah.forEach(t),Oh.forEach(t);for(var n=0;n<Ph.length;n++){var r=Ph[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Ph.length&&null===(n=Ph[0]).blockedOn;)Dh(n),null===n.blockedOn&&Ph.shift();if(null!=(n=(e.ownerDocument||e).$$reactFormReplay))for(r=0;r<n.length;r+=3){var a=n[r],s=n[r+1],i=a[Be]||null;if("function"===typeof s)i||qh(n);else if(i){var o=null;if(s&&s.hasAttribute("formAction")){if(a=s,i=s[Be]||null)o=i.formAction;else if(null!==Eh(a))continue}else o=i.action;"function"===typeof o?n[r+1]=o:(n.splice(r,3),r-=3),qh(n)}}}function Wh(){function e(e){e.canIntercept&&"react-transition"===e.info&&e.intercept({handler:function(){return new Promise(function(e){return a=e})},focusReset:"manual",scroll:"manual"})}function t(){null!==a&&(a(),a=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&null!=e.url&&navigation.navigate(e.url,{state:e.getState(),info:"react-transition",history:"replace"})}}if("object"===typeof navigation){var r=!1,a=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),null!==a&&(a(),a=null)}}}function Vh(e){this._internalRoot=e}function Kh(e){this._internalRoot=e}Kh.prototype.render=Vh.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(i(409));ph(t.current,Vc(),e,t,null,null)},Kh.prototype.unmount=Vh.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;ph(e.current,2,null,e,null,null),Zc(),t[qe]=null}},Kh.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ue();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Ph.length&&0!==t&&t<Ph[n].priority;n++);Ph.splice(n,0,e),0===n&&Dh(e)}};var Jh=a.version;if("19.2.5"!==Jh)throw Error(i(527,Jh,"19.2.5"));$.findDOMNode=function(e){var t=e._reactInternals;if(void 0===t){if("function"===typeof e.render)throw Error(i(188));throw e=Object.keys(e).join(","),Error(i(268,e))}return e=function(e){var t=e.alternate;if(!t){if(null===(t=l(e)))throw Error(i(188));return t!==e?null:e}for(var n=e,r=t;;){var a=n.return;if(null===a)break;var s=a.alternate;if(null===s){if(null!==(r=a.return)){n=r;continue}break}if(a.child===s.child){for(s=a.child;s;){if(s===n)return d(a),e;if(s===r)return d(a),t;s=s.sibling}throw Error(i(188))}if(n.return!==r.return)n=a,r=s;else{for(var o=!1,c=a.child;c;){if(c===n){o=!0,n=a,r=s;break}if(c===r){o=!0,r=a,n=s;break}c=c.sibling}if(!o){for(c=s.child;c;){if(c===n){o=!0,n=s,r=a;break}if(c===r){o=!0,r=s,n=a;break}c=c.sibling}if(!o)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(3!==n.tag)throw Error(i(188));return n.stateNode.current===n?e:t}(t),e=null===(e=null!==e?h(e):null)?null:e.stateNode};var Gh={bundleType:0,version:"19.2.5",rendererPackageName:"react-dom",currentDispatcherRef:L,reconcilerVersion:"19.2.5"};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var Qh=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Qh.isDisabled&&Qh.supportsFiber)try{ve=Qh.inject(Gh),ye=Qh}catch(Xh){}}t.createRoot=function(e,t){if(!o(e))throw Error(i(299));var n=!1,r="",a=_o,s=Eo,l=jo;return null!==t&&void 0!==t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onUncaughtError&&(a=t.onUncaughtError),void 0!==t.onCaughtError&&(s=t.onCaughtError),void 0!==t.onRecoverableError&&(l=t.onRecoverableError)),t=hh(e,1,!1,null,0,n,r,null,a,s,l,Wh),e[qe]=t.current,Zu(e),new Vh(t)},t.hydrateRoot=function(e,t,n){if(!o(e))throw Error(i(299));var r=!1,a="",s=_o,l=Eo,c=jo,u=null;return null!==n&&void 0!==n&&(!0===n.unstable_strictMode&&(r=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onUncaughtError&&(s=n.onUncaughtError),void 0!==n.onCaughtError&&(l=n.onCaughtError),void 0!==n.onRecoverableError&&(c=n.onRecoverableError),void 0!==n.formState&&(u=n.formState)),(t=hh(e,1,!0,t,0,r,a,u,s,l,c,Wh)).context=fh(null),n=t.current,(a=ys(r=Ie(r=Vc()))).callback=null,bs(n,a,r),n=r,t.current.lanes=n,Oe(t,n),$u(t),e[qe]=t.current,Zu(e),new Kh(t)},t.version="19.2.5"},672(e,t,n){"use strict";var r=n(43);function a(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;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."}function s(){}var i={d:{f:s,r:function(){throw Error(a(522))},D:s,C:s,L:s,m:s,X:s,S:s,M:s},p:0,findDOMNode:null},o=Symbol.for("react.portal");var l=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(e,t){return"font"===e?"":"string"===typeof t?"use-credentials"===t?t:"":void 0}t.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!t||1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType)throw Error(a(299));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:o,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.flushSync=function(e){var t=l.T,n=i.p;try{if(l.T=null,i.p=2,e)return e()}finally{l.T=t,i.p=n,i.d.f()}},t.preconnect=function(e,t){"string"===typeof e&&(t?t="string"===typeof(t=t.crossOrigin)?"use-credentials"===t?t:"":void 0:t=null,i.d.C(e,t))},t.prefetchDNS=function(e){"string"===typeof e&&i.d.D(e)},t.preinit=function(e,t){if("string"===typeof e&&t&&"string"===typeof t.as){var n=t.as,r=c(n,t.crossOrigin),a="string"===typeof t.integrity?t.integrity:void 0,s="string"===typeof t.fetchPriority?t.fetchPriority:void 0;"style"===n?i.d.S(e,"string"===typeof t.precedence?t.precedence:void 0,{crossOrigin:r,integrity:a,fetchPriority:s}):"script"===n&&i.d.X(e,{crossOrigin:r,integrity:a,fetchPriority:s,nonce:"string"===typeof t.nonce?t.nonce:void 0})}},t.preinitModule=function(e,t){if("string"===typeof e)if("object"===typeof t&&null!==t){if(null==t.as||"script"===t.as){var n=c(t.as,t.crossOrigin);i.d.M(e,{crossOrigin:n,integrity:"string"===typeof t.integrity?t.integrity:void 0,nonce:"string"===typeof t.nonce?t.nonce:void 0})}}else null==t&&i.d.M(e)},t.preload=function(e,t){if("string"===typeof e&&"object"===typeof t&&null!==t&&"string"===typeof t.as){var n=t.as,r=c(n,t.crossOrigin);i.d.L(e,n,{crossOrigin:r,integrity:"string"===typeof t.integrity?t.integrity:void 0,nonce:"string"===typeof t.nonce?t.nonce:void 0,type:"string"===typeof t.type?t.type:void 0,fetchPriority:"string"===typeof t.fetchPriority?t.fetchPriority:void 0,referrerPolicy:"str
2ing"===typeof t.referrerPolicy?t.referrerPolicy:void 0,imageSrcSet:"string"===typeof t.imageSrcSet?t.imageSrcSet:void 0,imageSizes:"string"===typeof t.imageSizes?t.imageSizes:void 0,media:"string"===typeof t.media?t.media:void 0})}},t.preloadModule=function(e,t){if("string"===typeof e)if(t){var n=c(t.as,t.crossOrigin);i.d.m(e,{as:"string"===typeof t.as&&"script"!==t.as?t.as:void 0,crossOrigin:n,integrity:"string"===typeof t.integrity?t.integrity:void 0})}else i.d.m(e)},t.requestFormReset=function(e){i.d.r(e)},t.unstable_batchedUpdates=function(e,t){return e(t)},t.useFormState=function(e,t,n){return l.H.useFormState(e,t,n)},t.useFormStatus=function(){return l.H.useHostTransitionStatus()},t.version="19.2.5"},391(e,t,n){"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(4)},950(e,t,n){"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(672)},366(e){var t="undefined"!==typeof Element,n="function"===typeof Map,r="function"===typeof Set,a="function"===typeof ArrayBuffer&&!!ArrayBuffer.isView;function s(e,i){if(e===i)return!0;if(e&&i&&"object"==typeof e&&"object"==typeof i){if(e.constructor!==i.constructor)return!1;var o,l,c,u;if(Array.isArray(e)){if((o=e.length)!=i.length)return!1;for(l=o;0!==l--;)if(!s(e[l],i[l]))return!1;return!0}if(n&&e instanceof Map&&i instanceof Map){if(e.size!==i.size)return!1;for(u=e.entries();!(l=u.next()).done;)if(!i.has(l.value[0]))return!1;for(u=e.entries();!(l=u.next()).done;)if(!s(l.value[1],i.get(l.value[0])))return!1;return!0}if(r&&e instanceof Set&&i instanceof Set){if(e.size!==i.size)return!1;for(u=e.entries();!(l=u.next()).done;)if(!i.has(l.value[0]))return!1;return!0}if(a&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(i)){if((o=e.length)!=i.length)return!1;for(l=o;0!==l--;)if(e[l]!==i[l])return!1;return!0}if(e.constructor===RegExp)return e.source===i.source&&e.flags===i.flags;if(e.valueOf!==Object.prototype.valueOf&&"function"===typeof e.valueOf&&"function"===typeof i.valueOf)return e.valueOf()===i.valueOf();if(e.toString!==Object.prototype.toString&&"function"===typeof e.toString&&"function"===typeof i.toString)return e.toString()===i.toString();if((o=(c=Object.keys(e)).length)!==Object.keys(i).length)return!1;for(l=o;0!==l--;)if(!Object.prototype.hasOwnProperty.call(i,c[l]))return!1;if(t&&e instanceof Element)return!1;for(l=o;0!==l--;)if(("_owner"!==c[l]&&"__v"!==c[l]&&"__o"!==c[l]||!e.$$typeof)&&!s(e[c[l]],i[c[l]]))return!1;return!0}return e!==e&&i!==i}e.exports=function(e,t){try{return s(e,t)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}}},799(e,t){"use strict";var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function a(e,t,r){var a=null;if(void 0!==r&&(a=""+r),void 0!==t.key&&(a=""+t.key),"key"in t)for(var s in r={},t)"key"!==s&&(r[s]=t[s]);else r=t;return t=r.ref,{$$typeof:n,type:e,key:a,ref:void 0!==t?t:null,props:r}}t.Fragment=r,t.jsx=a,t.jsxs=a},288(e,t){"use strict";var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),f=Symbol.for("react.activity"),p=Symbol.iterator;var m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,v={};function y(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||m}function b(){}function w(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||m}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error("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")},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},b.prototype=y.prototype;var k=w.prototype=new b;k.constructor=w,g(k,y.prototype),k.isPureReactComponent=!0;var S=Array.isArray;function x(){}var _={H:null,A:null,T:null,S:null},E=Object.prototype.hasOwnProperty;function j(e,t,r){var a=r.ref;return{$$typeof:n,type:e,key:t,ref:void 0!==a?a:null,props:r}}function T(e){return"object"===typeof e&&null!==e&&e.$$typeof===n}var N=/\/+/g;function C(e,t){return"object"===typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(e){return t[e]})}(""+e.key):t.toString(36)}function R(e,t,a,s,i){var o=typeof e;"undefined"!==o&&"boolean"!==o||(e=null);var l,c,u=!1;if(null===e)u=!0;else switch(o){case"bigint":case"string":case"number":u=!0;break;case"object":switch(e.$$typeof){case n:case r:u=!0;break;case h:return R((u=e._init)(e._payload),t,a,s,i)}}if(u)return i=i(e),u=""===s?"."+C(e,0):s,S(i)?(a="",null!=u&&(a=u.replace(N,"$&/")+"/"),R(i,t,a,"",function(e){return e})):null!=i&&(T(i)&&(l=i,c=a+(null==i.key||e&&e.key===i.key?"":(""+i.key).replace(N,"$&/")+"/")+u,i=j(l.type,c,l.props)),t.push(i)),1;u=0;var d,f=""===s?".":s+":";if(S(e))for(var m=0;m<e.length;m++)u+=R(s=e[m],t,a,o=f+C(s,m),i);else if("function"===typeof(m=null===(d=e)||"object"!==typeof d?null:"function"===typeof(d=p&&d[p]||d["@@iterator"])?d:null))for(e=m.call(e),m=0;!(s=e.next()).done;)u+=R(s=s.value,t,a,o=f+C(s,m++),i);else if("object"===o){if("function"===typeof e.then)return R(function(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch("string"===typeof e.status?e.then(x,x):(e.status="pending",e.then(function(t){"pending"===e.status&&(e.status="fulfilled",e.value=t)},function(t){"pending"===e.status&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}(e),t,a,s,i);throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return u}function A(e,t,n){if(null==e)return e;var r=[],a=0;return R(e,r,"","",function(e){return t.call(n,e,a++)}),r}function O(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)},function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var P="function"===typeof reportError?reportError:function(e){if("object"===typeof window&&"function"===typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"===typeof e&&null!==e&&"string"===typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if("object"===typeof process&&"function"===typeof process.emit)return void process.emit("uncaughtException",e);console.error(e)},L={map:A,forEach:function(e,t,n){A(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return A(e,function(){t++}),t},toArray:function(e){return A(e,function(e){return e})||[]},only:function(e){if(!T(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};t.Activity=f,t.Children=L,t.Component=y,t.Fragment=a,t.Profiler=i,t.PureComponent=w,t.StrictMode=s,t.Suspense=u,t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=_,t.__COMPILER_RUNTIME={__proto__:null,c:function(e){return _.H.useMemoCache(e)}}
vendor: 6,501 bytes, line 2
2,t.cache=function(e){return function(){return e.apply(null,arguments)}},t.cacheSignal=function(){return null},t.cloneElement=function(e,t,n){if(null===e||void 0===e)throw Error("The argument must be a React element, but you passed "+e+".");var r=g({},e.props),a=e.key;if(null!=t)for(s in void 0!==t.key&&(a=""+t.key),t)!E.call(t,s)||"key"===s||"__self"===s||"__source"===s||"ref"===s&&void 0===t.ref||(r[s]=t[s]);var s=arguments.length-2;if(1===s)r.children=n;else if(1<s){for(var i=Array(s),o=0;o<s;o++)i[o]=arguments[o+2];r.children=i}return j(e.type,a,r)},t.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider=e,e.Consumer={$$typeof:o,_context:e},e},t.createElement=function(e,t,n){var r,a={},s=null;if(null!=t)for(r in void 0!==t.key&&(s=""+t.key),t)E.call(t,r)&&"key"!==r&&"__self"!==r&&"__source"!==r&&(a[r]=t[r]);var i=arguments.length-2;if(1===i)a.children=n;else if(1<i){for(var o=Array(i),l=0;l<i;l++)o[l]=arguments[l+2];a.children=o}if(e&&e.defaultProps)for(r in i=e.defaultProps)void 0===a[r]&&(a[r]=i[r]);return j(e,s,a)},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:c,render:e}},t.isValidElement=T,t.lazy=function(e){return{$$typeof:h,_payload:{_status:-1,_result:e},_init:O}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=_.T,n={};_.T=n;try{var r=e(),a=_.S;null!==a&&a(n,r),"object"===typeof r&&null!==r&&"function"===typeof r.then&&r.then(x,P)}catch(s){P(s)}finally{null!==t&&null!==n.types&&(t.types=n.types),_.T=t}},t.unstable_useCacheRefresh=function(){return _.H.useCacheRefresh()},t.use=function(e){return _.H.use(e)},t.useActionState=function(e,t,n){return _.H.useActionState(e,t,n)},t.useCallback=function(e,t){return _.H.useCallback(e,t)},t.useContext=function(e){return _.H.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e,t){return _.H.useDeferredValue(e,t)},t.useEffect=function(e,t){return _.H.useEffect(e,t)},t.useEffectEvent=function(e){return _.H.useEffectEvent(e)},t.useId=function(){return _.H.useId()},t.useImperativeHandle=function(e,t,n){return _.H.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return _.H.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return _.H.useLayoutEffect(e,t)},t.useMemo=function(e,t){return _.H.useMemo(e,t)},t.useOptimistic=function(e,t){return _.H.useOptimistic(e,t)},t.useReducer=function(e,t,n){return _.H.useReducer(e,t,n)},t.useRef=function(e){return _.H.useRef(e)},t.useState=function(e){return _.H.useState(e)},t.useSyncExternalStore=function(e,t,n){return _.H.useSyncExternalStore(e,t,n)},t.useTransition=function(){return _.H.useTransition()},t.version="19.2.5"},43(e,t,n){"use strict";e.exports=n(288)},579(e,t,n){"use strict";e.exports=n(799)},896(e,t){"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,a=e[r];if(!(0<s(a,t)))break e;e[r]=t,e[n]=a,n=r}}function r(e){return 0===e.length?null:e[0]}function a(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,a=e.length,i=a>>>1;r<i;){var o=2*(r+1)-1,l=e[o],c=o+1,u=e[c];if(0>s(l,n))c<a&&0>s(u,l)?(e[r]=u,e[c]=n,r=c):(e[r]=l,e[o]=n,r=o);else{if(!(c<a&&0>s(u,n)))break e;e[r]=u,e[c]=n,r=c}}}return t}function s(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if(t.unstable_now=void 0,"object"===typeof performance&&"function"===typeof performance.now){var i=performance;t.unstable_now=function(){return i.now()}}else{var o=Date,l=o.now();t.unstable_now=function(){return o.now()-l}}var c=[],u=[],d=1,h=null,f=3,p=!1,m=!1,g=!1,v=!1,y="function"===typeof setTimeout?setTimeout:null,b="function"===typeof clearTimeout?clearTimeout:null,w="undefined"!==typeof setImmediate?setImmediate:null;function k(e){for(var t=r(u);null!==t;){if(null===t.callback)a(u);else{if(!(t.startTime<=e))break;a(u),t.sortIndex=t.expirationTime,n(c,t)}t=r(u)}}function S(e){if(g=!1,k(e),!m)if(null!==r(c))m=!0,_||(_=!0,x());else{var t=r(u);null!==t&&O(S,t.startTime-e)}}var x,_=!1,E=-1,j=5,T=-1;function N(){return!!v||!(t.unstable_now()-T<j)}function C(){if(v=!1,_){var e=t.unstable_now();T=e;var n=!0;try{e:{m=!1,g&&(g=!1,b(E),E=-1),p=!0;var s=f;try{t:{for(k(e),h=r(c);null!==h&&!(h.expirationTime>e&&N());){var i=h.callback;if("function"===typeof i){h.callback=null,f=h.priorityLevel;var o=i(h.expirationTime<=e);if(e=t.unstable_now(),"function"===typeof o){h.callback=o,k(e),n=!0;break t}h===r(c)&&a(c),k(e)}else a(c);h=r(c)}if(null!==h)n=!0;else{var l=r(u);null!==l&&O(S,l.startTime-e),n=!1}}break e}finally{h=null,f=s,p=!1}n=void 0}}finally{n?x():_=!1}}}if("function"===typeof w)x=function(){w(C)};else if("undefined"!==typeof MessageChannel){var R=new MessageChannel,A=R.port2;R.port1.onmessage=C,x=function(){A.postMessage(null)}}else x=function(){y(C,0)};function O(e,n){E=y(function(){e(t.unstable_now())},n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):j=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return f},t.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},t.unstable_requestPaint=function(){v=!0},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},t.unstable_scheduleCallback=function(e,a,s){var i=t.unstable_now();switch("object"===typeof s&&null!==s?s="number"===typeof(s=s.delay)&&0<s?i+s:i:s=i,e){case 1:var o=-1;break;case 2:o=250;break;case 5:o=1073741823;break;case 4:o=1e4;break;default:o=5e3}return e={id:d++,callback:a,priorityLevel:e,startTime:s,expirationTime:o=s+o,sortIndex:-1},s>i?(e.sortIndex=s,n(u,e),null===r(c)&&e===r(u)&&(g?(b(E),E=-1):g=!0,O(S,s-i))):(e.sortIndex=o,n(c,e),m||p||(m=!0,_||(_=!0,x()))),e},t.unstable_shouldYield=N,t.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}},853(e,t,n){"use strict";e.exports=n(896)},324(e){e.exports=function(e,t,n,r){var a=n?n.call(r,e,t):void 0;if(void 0!==a)return!!a;if(e===t)return!0;
2if("object"!==typeof e||!e||"object"!==typeof t||!t)return!1;var s=Object.keys(e),i=Object.keys(t);if(s.length!==i.length)return!1;for(var o=Object.prototype.hasOwnProperty.bind(t),l=0;l<s.length;l++){var c=s[l];if(!o(c))return!1;var u=e[c],d=t[c];if(!1===(a=n?n.call(r,u,d,c):void 0)||void 0===a&&u!==d)return!1}return!0}}},t={};function n(r){var a=t[r];if(void 0!==a)return a.exports;var s=t[r]={exports:{}};return e[r](s,s.exports,n),s.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},(()=>{var e,t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;n.t=function(r,a){if(1&a&&(r=this(r)),8&a)return r;if("object"===typeof r&&r){if(4&a&&r.__esModule)return r;if(16&a&&"function"===typeof r.then)return r}var s=Object.create(null);n.r(s);var i={};e=e||[null,t({}),t([]),t(t)];for(var o=2&a&&r;("object"==typeof o||"function"==typeof o)&&!~e.indexOf(o);o=t(o))Object.getOwnPropertyNames(o).forEach(e=>i[e]=()=>r[e]);return i.default=()=>r,n.d(s,i),s}})(),n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";var e=n(43),t=n.t(e,2),r=n(391),a="popstate";function s(e){return"object"===typeof e&&null!=e&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function i(){return f(function(e,t){let n=t.state?.masked,{pathname:r,search:a,hash:s}=n||e.location;return u("",{pathname:r,search:a,hash:s},t.state&&t.state.usr||null,t.state&&t.state.key||"default",n?{pathname:e.location.pathname,search:e.location.search,hash:e.location.hash}:void 0)},function(e,t){return"string"===typeof t?t:d(t)},null,arguments.length>0&&void 0!==arguments[0]?arguments[0]:{})}function o(e,t){if(!1===e||null===e||"undefined"===typeof e)throw new Error(t)}function l(e,t){if(!e){"undefined"!==typeof console&&console.warn(t);try{throw new Error(t)}catch(n){}}}function c(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.unstable_mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function u(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3?arguments[3]:void 0,a=arguments.length>4?arguments[4]:void 0;return{pathname:"string"===typeof e?e:e.pathname,search:"",hash:"",..."string"===typeof t?h(t):t,state:n,key:t&&t.key||r||Math.random().toString(36).substring(2,10),unstable_mask:a}}function d(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 h(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function f(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},{window:i=document.defaultView,v5Compat:o=!1}=r,l=i.history,d="POP",h=null,f=m();function m(){return(l.state||{idx:null}).idx}function g(){d="POP";let e=m(),t=null==e?null:e-f;f=e,h&&h({action:d,location:y.location,delta:t})}function v(e){return p(e)}null==f&&(f=0,l.replaceState({...l.state,idx:f},""));let y={get action(){return d},get location(){return e(i,l)},listen(e){if(h)throw new Error("A history only accepts one active listener");return i.addEventListener(a,g),h=e,()=>{i.removeEventListener(a,g),h=null}},createHref:e=>
2t(i,e),createURL:v,encodeLocation(e){let t=v(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){d="PUSH";let r=s(e)?e:u(y.location,e,t);n&&n(r,e),f=m()+1;let a=c(r,f),p=y.createHref(r.unstable_mask||r);try{l.pushState(a,"",p)}catch(g){if(g instanceof DOMException&&"DataCloneError"===g.name)throw g;i.location.assign(p)}o&&h&&h({action:d,location:y.location,delta:1})},replace:function(e,t){d="REPLACE";let r=s(e)?e:u(y.location,e,t);n&&n(r,e),f=m();let a=c(r,f),i=y.createHref(r.unstable_mask||r);l.replaceState(a,"",i),o&&h&&h({action:d,location:y.location,delta:0})},go:e=>l.go(e)};return y}function p(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n="http://localhost";"undefined"!==typeof window&&(n="null"!==window.location.origin?window.location.origin:window.location.href),o(n,"No window.location.(origin|href) available to create URL");let r="string"===typeof e?e:d(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}new WeakMap;function m(e,t){return g(e,t,arguments.length>2&&void 0!==arguments[2]?arguments[2]:"/",!1)}function g(e,t,n,r){let a=A(("string"===typeof t?h(t):t).pathname||"/",n);if(null==a)return null;let s=v(e);!function(e){e.sort((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let n=e.length===t.length&&e.slice(0,-1).every((e,n)=>e===t[n]);return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)))}(s);let i=null;for(let o=0;null==i&&o<s.length;++o){let e=R(a);i=T(s[o],e,r)}return i}function v(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",a=arguments.length>4&&void 0!==arguments[4]&&arguments[4],s=function(e,s){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a,l=arguments.length>3?arguments[3]:void 0,c={relativePath:void 0===l?e.path||"":l,caseSensitive:!0===e.caseSensitive,childrenIndex:s,route:e};if(c.relativePath.startsWith("/")){if(!c.relativePath.startsWith(r)&&i)return;o(c.relativePath.startsWith(r),`Absolute route path "${c.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),c.relativePath=c.relativePath.slice(r.length)}let u=z([r,c.relativePath]),d=n.concat(c);e.children&&e.children.length>0&&(o(!0!==e.index,`Index routes must not have child routes. Please remove all child routes from route path "${u}".`),v(e.children,t,d,u,i)),(null!=e.path||e.index)&&t.push({path:u,score:j(u,e.index),routesMeta:d})};return e.forEach((e,t)=>{if(""!==e.path&&e.path?.includes("?"))for(let n of y(e.path))s(e,t,!0,n);else s(e,t)}),t}function y(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,a=n.endsWith("?"),s=n.replace(/\?$/,"");if(0===r.length)return a?[s,""]:[s];let i=y(r.join("/")),o=[];return o.push(...i.map(e=>""===e?s:[s,e].join("/"))),a&&o.push(...i),o.map(t=>e.startsWith("/")&&""===t?"/":t)}var b=/^:[\w-]+$/,w=3,k=2,S=1,x=10,_=-2,E=e=>"*"===e;function j(e,t){let n=e.split("/"),r=n.length;return n.some(E)&&(r+=_),t&&(r+=k),n.filter(e=>!E(e)).reduce((e,t)=>e+(b.test(t)?w:""===t?S:x),r)}function T(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],{routesMeta:r}=e,a={},s="/",i=[];for(let o=0;o<r.length;++o){let e=r[o],l=o===r.length-1,c="/"===s?t:t.slice(s.length)||"/",u=N({path:e.relativePath,caseSensitive:e.caseSensitive,end:l},c),d=e.route;if(!u&&l&&n&&!r[r.length-1].route.index&&(u=N({path:e.relativePath,caseSensitive:e.caseSensitive,end:!1},c)),!u)return null;
2Object.assign(a,u.params),i.push({params:a,pathname:z([s,u.pathname]),pathnameBase:F(z([s,u.pathnameBase])),route:d}),"/"!==u.pathnameBase&&(s=z([s,u.pathnameBase]))}return i}function N(e,t){"string"===typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=C(e.path,e.caseSensitive,e.end),a=t.match(n);if(!a)return null;let s=a[0],i=s.replace(/(.)\/+$/,"$1"),o=a.slice(1);return{params:r.reduce((e,t,n)=>{let{paramName:r,isOptional:a}=t;if("*"===r){let e=o[n]||"";i=s.slice(0,s.length-e.length).replace(/(.)\/+$/,"$1")}const l=o[n];return e[r]=a&&!l?void 0:(l||"").replace(/%2F/g,"/"),e},{}),pathname:s,pathnameBase:i,pattern:e}}function C(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];l("*"===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=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(e,t,n,a,s)=>{if(r.push({paramName:t,isOptional:null!=n}),n){let t=s.charAt(a+e.length);return t&&"/"!==t?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),a+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":""!==e&&"/"!==e&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),r]}function R(e){try{return e.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(t){return l(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function A(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}var O=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function P(e,t){let n=M(t).split("/");return e.split("/").forEach(e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)}),n.length>1?n.join("/"):"/"}function L(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 $(e){return e.filter((e,t)=>0===t||e.route.path&&e.route.path.length>0)}function I(e){let t=$(e);return t.map((e,n)=>n===t.length-1?e.pathname:e.pathnameBase)}function D(e,t,n){let r,a=arguments.length>3&&void 0!==arguments[3]&&arguments[3];"string"===typeof e?r=h(e):(r={...e},o(!r.pathname||!r.pathname.includes("?"),L("?","pathname","search",r)),o(!r.pathname||!r.pathname.includes("#"),L("#","pathname","hash",r)),o(!r.search||!r.search.includes("#"),L("#","search","hash",r)));let s,i=""===e||""===r.pathname,l=i?"/":r.pathname;if(null==l)s=n;else{let e=t.length-1;if(!a&&l.startsWith("..")){let t=l.split("/");for(;".."===t[0];)t.shift(),e-=1;r.pathname=t.join("/")}s=e>=0?t[e]:"/"}let c=function(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/",{pathname:r,search:a="",hash:s=""}="string"===typeof e?h(e):e;return r?(r=U(r),t=r.startsWith("/")?P(r.substring(1),"/"):P(r,n)):t=n,{pathname:t,search:B(a),hash:q(s)}}(r,s),u=l&&"/"!==l&&l.endsWith("/"),d=(i||"."===l)&&n.endsWith("/");return c.pathname.endsWith("/")||!u&&!d||(c.pathname+="/"),c}var U=e=>e.replace(/\/\/+/g,"/"),z=e=>U(e.join("/")),M=e=>e.replace(/\/+$/,""),F=e=>M(e).replace(/^\/*/,"/"),B=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",q=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";var H=class{constructor(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function W(e){return null!=e&&"number"===typeof e.status&&"string"===typeof e.statusText&&"boolean"===typeof e.internal&&"data"in e}function V(e){let t=e.map(e=>
2e.route.path).filter(Boolean);return z(t)||"/"}var K="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement;function J(e,t){let n=e;if("string"!==typeof n||!O.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,a=!1;if(K)try{let e=new URL(window.location.href),r=n.startsWith("//")?new URL(e.protocol+n):new URL(n),s=A(r.pathname,t);r.origin===e.origin&&null!=s?n=s+r.search+r.hash:a=!0}catch(s){l(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:a,to:n}}Symbol("Uninstrumented");Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var G=["POST","PUT","PATCH","DELETE"],Q=(new Set(G),["GET",...G]);new Set(Q),Symbol("ResetLoaderData");var Y=e.createContext(null);Y.displayName="DataRouter";var X=e.createContext(null);X.displayName="DataRouterState";var Z=e.createContext(!1);function ee(){return e.useContext(Z)}var te=e.createContext({isTransitioning:!1});te.displayName="ViewTransition";var ne=e.createContext(new Map);ne.displayName="Fetchers";var re=e.createContext(null);re.displayName="Await";var ae=e.createContext(null);ae.displayName="Navigation";var se=e.createContext(null);se.displayName="Location";var ie=e.createContext({outlet:null,matches:[],isDataRoute:!1});ie.displayName="Route";var oe=e.createContext(null);oe.displayName="RouteError";var le="REACT_ROUTER_ERROR";function ce(){return null!=e.useContext(se)}function ue(){return o(ce(),"useLocation() may be used only in the context of a <Router> component."),e.useContext(se).location}var de="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function he(t){e.useContext(ae).static||e.useLayoutEffect(t)}function fe(){let{isDataRoute:t}=e.useContext(ie);return t?function(){let{router:t}=Ee("useNavigate"),n=Te("useNavigate"),r=e.useRef(!1);he(()=>{r.current=!0});let a=e.useCallback(async function(e){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};l(r.current,de),r.current&&("number"===typeof e?await t.navigate(e):await t.navigate(e,{fromRouteId:n,...a}))},[t,n]);return a}():function(){o(ce(),"useNavigate() may be used only in the context of a <Router> component.");let t=e.useContext(Y),{basename:n,navigator:r}=e.useContext(ae),{matches:a}=e.useContext(ie),{pathname:s}=ue(),i=JSON.stringify(I(a)),c=e.useRef(!1);he(()=>{c.current=!0});let u=e.useCallback(function(e){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(l(c.current,de),!c.current)return;if("number"===typeof e)return void r.go(e);let o=D(e,JSON.parse(i),s,"path"===a.relative);null==t&&"/"!==n&&(o.pathname="/"===o.pathname?n:z([n,o.pathname])),(a.replace?r.replace:r.push)(o,a.state,a)},[n,r,i,s,t]);return u}()}e.createContext(null);function pe(){let{matches:t}=e.useContext(ie),n=t[t.length-1];return n?n.params:{}}function me(t){let{relative:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{matches:r}=e.useContext(ie),{pathname:a}=ue(),s=JSON.stringify(I(r));return e.useMemo(()=>D(t,JSON.parse(s),a,"path"===n),[t,s,a,n])}function ge(t,n,r){o(ce(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:a}=e.useContext(ae),{matches:s}=e.useContext(ie),i=s[s.length-1],c=i?i.params:{},u=i?i.pathname:"/",d=i?i.pathnameBase:"/",f=i&&i.route;{let e=f&&f.path||"";Re(u,!f||e.endsWith("*")||e.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${u}" (under <Route path="${e}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.\n\nPlease change the parent <Route path="${e}"> to <Route path="${"/"===e?"*":`${e}/*`}">.`)}let p,g=ue();if(n){let e="string"===typeof n?h(n):n;o("/"===d||e.pathname?.startsWith(d),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${d}" but pathname "${e.pathname}" was given in the \`location\` prop.`),p=e}else p=g;let v=p.pathname||"/",y=v;if("/"!==d){let e=d.replace(/^\//,"").split("/");y="/"+v.replace(/^\//,"").split("/").slice(e.length).join("/")}let b=m(t,{pathname:y});l(f||null!=b,`No routes matched location "${p.pathname}${p.search}${p.hash}" `),l(null==b||void 0!==b[b.length-1].route.element||void 0!==b[b.length-1].route.Component||void 0!==b[b.length-1].route.lazy,`Matched leaf route at location "${p.pathname}${p.search}${p.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let w=xe(b&&b.map(e=>Object.assign({},e,{params:Object.assign({},c,e.params),pathname:z([d,a.encodeLocation?a.encodeLocation(e.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?d:z([d,a.encodeLocation?a.encodeLocation(e.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathnameBase])})),s,r);return n&&w?e.createElement(se.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...p},navigationType:"POP"}},w):w}function ve(){let t=Ne(),n=W(t)?`${t.status} ${t.statusText}`:t instanceof Error?t.message:JSON.stringify(t),r=t instanceof Error?t.stack:null,a="rgba(200,200,200, 0.5)",s={padding:"0.5rem",backgroundColor:a},i={padding:"2px 4px",backgroundColor:a},o=null;return console.error("Error handled by React Router default ErrorBoundary:",t),o=e.createElement(e.Fragment,null,e.createElement("p",null,"\ud83d\udcbf Hey developer \ud83d\udc4b"),e.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",e.createElement("code",{style:i},"ErrorBoundary")," or"," ",e.createElement("code",{style:i},"errorElement")," prop on your route.")),e.createElement(e.Fragment,null,e.createElement("h2",null,"Unexpected Application
2Error!"),e.createElement("h3",{style:{fontStyle:"italic"}},n),r?e.createElement("pre",{style:s},r):null,o)}var ye=e.createElement(ve,null),be=class extends e.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let t=this.state.error;if(this.context&&"object"===typeof t&&t&&"digest"in t&&"string"===typeof t.digest){const e=function(e){if(e.startsWith(`${le}:ROUTE_ERROR_RESPONSE:{`))try{let t=JSON.parse(e.slice(40));if("object"===typeof t&&t&&"number"===typeof t.status&&"string"===typeof t.statusText)return new H(t.status,t.statusText,t.data)}catch{}}(t.digest);e&&(t=e)}let n=void 0!==t?e.createElement(ie.Provider,{value:this.props.routeContext},e.createElement(oe.Provider,{value:t,children:this.props.component})):this.props.children;return this.context?e.createElement(ke,{error:t},n):n}};be.contextType=Z;var we=new WeakMap;function ke(t){let{children:n,error:r}=t,{basename:a}=e.useContext(ae);if("object"===typeof r&&r&&"digest"in r&&"string"===typeof r.digest){let t=function(e){if(e.startsWith(`${le}:REDIRECT:{`))try{let t=JSON.parse(e.slice(28));if("object"===typeof t&&t&&"number"===typeof t.status&&"string"===typeof t.statusText&&"string"===typeof t.location&&"boolean"===typeof t.reloadDocument&&"boolean"===typeof t.replace)return t}catch{}}(r.digest);if(t){let n=we.get(r);if(n)throw n;let s=J(t.location,a);if(K&&!we.get(r)){if(!s.isExternal&&!t.reloadDocument){const e=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(s.to,{replace:t.replace}));throw we.set(r,e),e}window.location.href=s.absoluteURL||s.to}return e.createElement("meta",{httpEquiv:"refresh",content:`0;url=${s.absoluteURL||s.to}`})}}return n}function Se(t){let{routeContext:n,match:r,children:a}=t,s=e.useContext(Y);return s&&s.static&&s.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=r.route.id),e.createElement(ie.Provider,{value:n},a)}function xe(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0,a=r?.state;if(null==t){if(!a)return null;if(a.errors)t=a.matches;else{if(0!==n.length||a.initialized||!(a.matches.length>0))return null;t=a.matches}}let s=t,i=a?.errors;if(null!=i){let e=s.findIndex(e=>e.route.id&&void 0!==i?.[e.route.id]);o(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(i).join(",")}`),s=s.slice(0,Math.min(s.length,e+1))}let l=!1,c=-1;if(r&&a){l=a.renderFallback;for(let e=0;e<s.length;e++){let t=s[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(c=e),t.route.id){let{loaderData:e,errors:n}=a,i=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!n||void 0===n[t.route.id]);if(t.route.lazy||i){r.isStatic&&(l=!0),s=c>=0?s.slice(0,c+1):[s[0]];break}}}}let u=r?.onError,d=a&&u?(e,t)=>{u(e,{location:a.location,params:a.matches?.[0]?.params??{},unstable_pattern:V(a.matches),errorInfo:t})}:void 0;return s.reduceRight((t,r,o)=>{let u,h=!1,f=null,p=null;a&&(u=i&&r.route.id?i[r.route.id]:void 0,f=r.route.errorElement||ye,l&&(c<0&&0===o?(Re("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),h=!0,p=null):c===o&&(h=!0,p=r.route.hydrateFallbackElement||null)));let m=n.concat(s.slice(0,o+1)),g=()=>{let n;return n=u?f:h?p:r.route.Component?e.createElement(r.route.Component,null):r.route.element?r.route.element:t,e.createElement(Se,{match:r,routeContext:{outlet:t,matches:m,isDataRoute:null!=a},children:n})};return a&&(r.route.ErrorBoundary||r.route.errorElement||0===o)?e.createElement(be,{location:a.location,revalidation:a.revalidation,component:f,error:u,children:g(),routeC
2ontext:{outlet:null,matches:m,isDataRoute:!0},onError:d}):g()},null)}function _e(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Ee(t){let n=e.useContext(Y);return o(n,_e(t)),n}function je(t){let n=e.useContext(X);return o(n,_e(t)),n}function Te(t){let n=function(t){let n=e.useContext(ie);return o(n,_e(t)),n}(t),r=n.matches[n.matches.length-1];return o(r.route.id,`${t} can only be used on routes that contain a unique "id"`),r.route.id}function Ne(){let t=e.useContext(oe),n=je("useRouteError"),r=Te("useRouteError");return void 0!==t?t:n.errors?.[r]}var Ce={};function Re(e,t,n){t||Ce[e]||(Ce[e]=!0,l(!1,n))}var Ae={};function Oe(e,t){e||Ae[t]||(Ae[t]=!0,console.warn(t))}t.useOptimistic;e.memo(Pe);function Pe(e){let{routes:t,future:n,state:r,isStatic:a,onError:s}=e;return ge(t,void 0,{state:r,isStatic:a,onError:s,future:n})}function Le(t){let{to:n,replace:r,state:a,relative:s}=t;o(ce(),"<Navigate> may be used only in the context of a <Router> component.");let{static:i}=e.useContext(ae);l(!i,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:c}=e.useContext(ie),{pathname:u}=ue(),d=fe(),h=D(n,I(c),u,"path"===s),f=JSON.stringify(h);return e.useEffect(()=>{d(JSON.parse(f),{replace:r,state:a,relative:s})},[d,f,s,r,a]),null}function $e(e){o(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function Ie(t){let{basename:n="/",children:r=null,location:a,navigationType:s="POP",navigator:i,static:c=!1,unstable_useTransitions:u}=t;o(!ce(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let d=n.replace(/^\/*/,"/"),f=e.useMemo(()=>({basename:d,navigator:i,static:c,unstable_useTransitions:u,future:{}}),[d,i,c,u]);"string"===typeof a&&(a=h(a));let{pathname:p="/",search:m="",hash:g="",state:v=null,key:y="default",unstable_mask:b}=a,w=e.useMemo(()=>{let e=A(p,d);return null==e?null:{location:{pathname:e,search:m,hash:g,state:v,key:y,unstable_mask:b},navigationType:s}},[d,p,m,g,v,y,s,b]);return l(null!=w,`<Router basename="${d}"> is not able to match the URL "${p}${m}${g}" because it does not start with the basename, so the <Router> won't render anything.`),null==w?null:e.createElement(ae.Provider,{value:f},e.createElement(se.Provider,{children:r,value:w}))}function De(e){let{children:t,location:n}=e;return ge(Ue(t),n)}e.Component;function Ue(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=[];return e.Children.forEach(t,(t,a)=>{if(!e.isValidElement(t))return;let s=[...n,a];if(t.type===e.Fragment)return void r.push.apply(r,Ue(t.props.children,s));o(t.type===$e,`[${"string"===typeof t.type?t.type:t.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),o(!t.props.index||!t.props.children,"An index route cannot have child routes.");let i={id:t.props.id||s.join("-"),caseSensitive:t.props.caseSensitive,element:t.props.element,Component:t.props.Component,index:t.props.index,path:t.props.path,middleware:t.props.middleware,loader:t.props.loader,action:t.props.action,hydrateFallbackElement:t.props.hydrateFallbackElement,HydrateFallback:t.props.HydrateFallback,errorElement:t.props.errorElement,ErrorBoundary:t.props.ErrorBoundary,hasErrorBoundary:!0===t.props.hasErrorBoundary||null!=t.props.ErrorBoundary||null!=t.props.errorElement,shouldRevalidate:t.props.shouldRevalidate,handle:t.props.handle,lazy:t.props.lazy};t.props.children&&(i.children=Ue(t.props.children,s)),r.push(i)}),r}var ze="get",Me="application/x-www-form-urlencoded";function Fe(e){return"undefined"!==typeof HTMLElement&&e instanceof HTMLElement}function Be(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return new URLSearchParams("string"===typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(e=>[n,e]):[[n,r]])},[]))}var qe=null;var He=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function We(e){return null==e||He.has(e)?e:(l(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Me}"`),null)}function Ve(e,t){let n,r,a,s,i;if(Fe(o=e)&&"form"===o.tagName.toLowerCase()){let i=e.getAttribute("action");r=i?A(i,t):null,n=e.getAttribute("method")||ze,a=We(e.getAttribute("enctype"))||Me,s=new FormData(e)}else if(function(e){return Fe(e)&&"button"===e.tagName.toLowerCase()}(e)||function(e){return Fe(e)&&"input"===e.tagName.toLowerCase()}(e)&&("submit"===e.type||"image"===e.type)){let i=e.form;if(null==i)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let o=e.getAttribute("formaction")||i.getAttribute("action");if(r=o?A(o,t):null,n=e.getAttribute("formmethod")||i.getAttribute("method")||ze,a=We(e.getAttribute("formenctype"))||We(i.getAttribute("enctype"))||Me,s=new FormData(i,e),!function(){if(null===qe)try{new FormData(document.createElement("form"),0),qe=!1}catch(e){qe=!0}return qe}()){let{name:t,type:n,value:r}=e;if("image"===n){let e=t?`${t}.`:"";s.append(`${e}x`,"0"),s.append(`${e}y`,"0")}
2else t&&s.append(t,r)}}else{if(Fe(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=ze,r=null,a=Me,i=e}var o;return s&&"text/plain"===a&&(i=s,s=void 0),{action:r,method:n.toLowerCase(),encType:a,formData:s,body:i}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");"undefined"!==typeof window?window:"undefined"!==typeof globalThis&&globalThis;function Ke(e,t){if(!1===e||null===e||"undefined"===typeof e)throw new Error(t)}Symbol("SingleFetchRedirect");function Je(e,t,n,r){let a="string"===typeof e?new URL(e,"undefined"===typeof window?"server://singlefetch/":window.location.origin):e;return n?a.pathname.endsWith("/")?a.pathname=`${a.pathname}_.${r}`:a.pathname=`${a.pathname}.${r}`:"/"===a.pathname?a.pathname=`_root.${r}`:t&&"/"===A(a.pathname,t)?a.pathname=`${M(t)}/_root.${r}`:a.pathname=`${M(a.pathname)}.${r}`,a}async function Ge(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Qe(e){return null!=e&&"string"===typeof e.page}function Ye(e){return null!=e&&(null==e.href?"preload"===e.rel&&"string"===typeof e.imageSrcSet&&"string"===typeof e.imageSizes:"string"===typeof e.rel&&"string"===typeof e.href)}function Xe(e,t,n,r,a,s){let i=(e,t)=>!n[t]||e.route.id!==n[t].route.id,o=(e,t)=>n[t].pathname!==e.pathname||n[t].route.path?.endsWith("*")&&n[t].params["*"]!==e.params["*"];return"assets"===s?t.filter((e,t)=>i(e,t)||o(e,t)):"data"===s?t.filter((t,s)=>{let l=r.routes[t.route.id];if(!l||!l.hasLoader)return!1;if(i(t,s)||o(t,s))return!0;if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate({currentUrl:new URL(a.pathname+a.search+a.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if("boolean"===typeof r)return r}return!0}):[]}function Ze(e,t){let{includeHydrateFallback:n}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return r=e.map(e=>{let r=t.routes[e.route.id];if(!r)return[];let a=[r.module];return r.clientActionModule&&(a=a.concat(r.clientActionModule)),r.clientLoaderModule&&(a=a.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(a=a.concat(r.hydrateFallbackModule)),r.imports&&(a=a.concat(r.imports)),a}).flat(1),[...new Set(r)];var r}function et(e,t){let n=new Set,r=new Set(t);return e.reduce((e,a)=>{if(t&&!Qe(a)&&"script"===a.as&&a.href&&r.has(a.href))return e;let s=JSON.stringify(function(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}(a));return n.has(s)||(n.add(s),e.push({key:s,link:a})),e},[])}function tt(e,t){return"lazy"===e.mode&&!0===t}function nt(){let t=e.useContext(Y);return Ke(t,"You must render this element inside a <DataRouterContext.Provider> element"),t}function rt(){let t=e.useContext(X);return Ke(t,"You must render this element inside a <DataRouterStateContext.Provider> element"),t}var at=e.createContext(void 0);function st(){let t=e.useContext(at);return Ke(t,"You must render this element inside a <HydratedRouter> element"),t}function it(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function ot(e,t,n){if(n&&!ht)return[e[0]];if(t){let n=e.findIndex(e=>void 0!==t[e.route.id]);return e.slice(0,n+1)}return e}at.displayName="FrameworkContext";function lt(t){let{page:n,...r}=t,a=ee(),{router:s}=nt(),i=e.useMemo(()=>m(s.routes,n,s.basename),[s.routes,n,s.basename]);return i?a?e.createElement(ut,{page:n,matches:i,...r}):e.createElement(dt,{page:n,matches:i,...r}):null}function ct(t){let{manifest:n,routeModules:r}=st(),[a,s]=e.useState([]);return e.useEffect(()=>{let e=!1;return async function(e,t,n){return et((await Promise.all(e.map(async e=>{let r=t.routes[e.route.id];if(r){let e=await Ge(r,n);return e.links?e.links():[]}return[]}))).flat(1).filter(Ye).filter(e=>"stylesheet"===e.rel||"preload"===e.rel).map(e=>"stylesheet"===e.rel?{...e,rel:"prefetch",as:"style"}:{...e,rel:"prefetch"}))}(t,n,r).then(t=>{e||s(t)}),()=>{e=!0}},[t,n,r]),a}function ut(t){let{page:n,matches:r,...a}=t,s=ue(),{future:i}=st(),{basename:o}=nt(),l=e.useMemo(()=>
2{if(n===s.pathname+s.search+s.hash)return[];let e=Je(n,o,i.unstable_trailingSlashAwareDataRequests,"rsc"),t=!1,a=[];for(let n of r)"function"===typeof n.route.shouldRevalidate?t=!0:a.push(n.route.id);return t&&a.length>0&&e.searchParams.set("_routes",a.join(",")),[e.pathname+e.search]},[o,i.unstable_trailingSlashAwareDataRequests,n,s,r]);return e.createElement(e.Fragment,null,l.map(t=>e.createElement("link",{key:t,rel:"prefetch",as:"fetch",href:t,...a})))}function dt(t){let{page:n,matches:r,...a}=t,s=ue(),{future:i,manifest:o,routeModules:l}=st(),{basename:c}=nt(),{loaderData:u,matches:d}=rt(),h=e.useMemo(()=>Xe(n,r,d,o,s,"data"),[n,r,d,o,s]),f=e.useMemo(()=>Xe(n,r,d,o,s,"assets"),[n,r,d,o,s]),p=e.useMemo(()=>{if(n===s.pathname+s.search+s.hash)return[];let e=new Set,t=!1;if(r.forEach(n=>{let r=o.routes[n.route.id];r&&r.hasLoader&&(!h.some(e=>e.route.id===n.route.id)&&n.route.id in u&&l[n.route.id]?.shouldRevalidate||r.hasClientLoader?t=!0:e.add(n.route.id))}),0===e.size)return[];let a=Je(n,c,i.unstable_trailingSlashAwareDataRequests,"data");return t&&e.size>0&&a.searchParams.set("_routes",r.filter(t=>e.has(t.route.id)).map(e=>e.route.id).join(",")),[a.pathname+a.search]},[c,i.unstable_trailingSlashAwareDataRequests,u,s,o,h,r,n,l]),m=e.useMemo(()=>Ze(f,o),[f,o]),g=ct(f);return e.createElement(e.Fragment,null,p.map(t=>e.createElement("link",{key:t,rel:"prefetch",as:"fetch",href:t,...a})),m.map(t=>e.createElement("link",{key:t,rel:"modulepreload",href:t,...a})),g.map(t=>{let{key:n,link:r}=t;return e.createElement("link",{key:n,nonce:a.nonce,...r,crossOrigin:r.crossOrigin??a.crossOrigin})}))}var ht=!1;function ft(t){let{manifest:n,serverHandoffString:r,isSpaMode:a,renderMeta:s,routeDiscovery:i,ssr:o}=st(),{router:l,static:c,staticContext:u}=nt(),{matches:d}=rt(),h=ee(),f=tt(i,o);s&&(s.didRenderScripts=!0);let p=ot(d,null,a);e.useEffect(()=>{0},[]);let g=e.useMemo(()=>{if(h)return null;let a=u?`window.__reactRouterContext = ${r};window.__reactRouterContext.stream = new ReadableStream({start(controller){window.__reactRouterContext.streamController = controller;}}).pipeThrough(new TextEncoderStream());`:" ",s=c?`${n.hmr?.runtime?`import ${JSON.stringify(n.hmr.runtime)};`:""}${f?"":`import ${JSON.stringify(n.url)}`};\n${p.map((e,t)=>{let r=`route${t}`,a=n.routes[e.route.id];Ke(a,`Route ${e.route.id} not found in manifest`);let{clientActionModule:s,clientLoaderModule:i,clientMiddlewareModule:o,hydrateFallbackModule:l,module:c}=a,u=[...s?[{module:s,varName:`${r}_clientAction`}]:[],...i?[{module:i,varName:`${r}_clientLoader`}]:[],...o?[{module:o,varName:`${r}_clientMiddleware`}]:[],...l?[{module:l,varName:`${r}_HydrateFallback`}]:[],{module:c,varName:`${r}_main`}];return 1===u.length?`import * as ${r} from ${JSON.stringify(c)};`:[u.map(e=>`import * as ${e.varName} from "${e.module}";`).join("\n"),`const ${r} = {${u.map(e=>`...${e.varName}`).join(",")}};`].join("\n")}).join("\n")}\n ${f?`window.__reactRouterManifest = ${JSON.stringify(function(e,t){let{sri:n,...r}=e,a=new Set(t.state.matches.map(e=>e.route.id)),s=t.state.location.pathname.split("/").filter(Boolean),i=["/"];for(s.pop();s.length>0;)i.push(`/${s.join("/")}`),s.pop();i.forEach(e=>{let n=m(t.routes,e,t.basename);n&&n.forEach(e=>a.add(e.route.id))});let o=[...a].reduce((e,t)=>Object.assign(e,{[t]:r.routes[t]}),{});return{...r,routes:o,sri:!!n||void 0}}(n,l),null,2)};`:""}\n window.__reactRouterRouteModules = {${p.map((e,t)=>`${JSON.stringify(e.route.id)}:route${t}`).join(",")}};\n\nimport(${JSON.stringify(n.entry.module)});`:" ";return e.createElement(e.Fragment,null,e.createElement("script",{...t,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:a},type:void 0}),e.createElement("script",{...t,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:s},type:"module",async:!0}))},[]),v=ht||h?[]:(n.entry.imports.concat(Ze(p,n,{includeHydrateFallback:!0})),[...new Set(y)]);var y;let b="object"===typeof n.sri?n.sri:{};return Oe(!h,"The <Scripts /> element is a no-op when using RSC and can be safely removed."),ht||h?null:e.createElement(e.Fragment,null,"object"===typeof n.sri?e.createElement("script",{...t,"rr-importmap":"",type:"importmap",suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:JSON.stringify({integrity:b})}}):null,f?null:e.createElement("link",{rel:"modulepreload",href:n.url,crossOrigin:t.crossOrigin,integrity:b[n.url],suppressHydrationWarning:!0}),e.createElement("link",{rel:"modulepreload",href:n.entry.module,crossOrigin:t.crossOrigin,integrity:b[n.entry.module],suppressHydrationWarning:!0}),v.map(n=>e.createElement("link",{key:n,rel:"modulepreload",href:n,crossOrigin:t.crossOrigin,integrity:b[n],suppressHydrationWarning:!0})),g)}function pt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return e=>{t.forEach(t=>{"function"===typeof t?t(e):null!=t&&(t.current=e)})}}e.Component;function mt(t){let{error:n,isOutsideRemixApp:r}=t;console.error(n);let a,s=e.createElement("script",{dangerouslySetInnerHTML:{__html:'\n console.log(\n "\ud83d\udcbf Hey developer \ud83d\udc4b. You can provide a way better UX than this when your app throws errors. Check out https://reactrouter.com/how-to/error-boundary for more information."\n );\n '}});if(W(n))return e.createElement(gt,{title:"Unhandled Thrown Response!"},e.createElement("h1",{style:{fontSize:"24px"}},n.status," ",n.statusText),s);if(n instanceof Error)0;else{let e=null==n?"Unknown Error":"object"===typeof n&&"toString"in n?n.toString():JSON.stringify(n);new Error(e)}
2return e.createElement(gt,{title:"Application Error!",isOutsideRemixApp:r},e.createElement("h1",{style:{fontSize:"24px"}},"Application Error"),e.createElement("pre",{style:{padding:"2rem",background:"hsla(10, 50%, 50%, 0.1)",color:"red",overflow:"auto"}},a.stack),s)}function gt(t){let{title:n,renderScripts:r,isOutsideRemixApp:a,children:s}=t,{routeModules:i}=st();return i.root?.Layout&&!a?s:e.createElement("html",{lang:"en"},e.createElement("head",null,e.createElement("meta",{charSet:"utf-8"}),e.createElement("meta",{name:"viewport",content:"width=device-width,initial-scale=1,viewport-fit=cover"}),e.createElement("title",null,n)),e.createElement("body",null,e.createElement("main",{style:{fontFamily:"system-ui, sans-serif",padding:"2rem"}},s,r?e.createElement(ft,null):null)))}var vt="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement;try{vt&&(window.__reactRouterVersion="7.14.1")}catch(Uo){}function yt(t){let{basename:n,children:r,unstable_useTransitions:a,window:s}=t,o=e.useRef();null==o.current&&(o.current=i({window:s,v5Compat:!0}));let l=o.current,[c,u]=e.useState({action:l.action,location:l.location}),d=e.useCallback(t=>{!1===a?u(t):e.startTransition(()=>u(t))},[a]);return e.useLayoutEffect(()=>l.listen(d),[l,d]),e.createElement(Ie,{basename:n,children:r,location:c.location,navigationType:c.action,navigator:l,unstable_useTransitions:a})}var bt=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,wt=e.forwardRef(function(t,n){let{onClick:r,discover:a="render",prefetch:s="none",relative:i,reloadDocument:l,replace:c,unstable_mask:u,state:h,target:f,to:p,preventScrollReset:m,viewTransition:g,unstable_defaultShouldRevalidate:v,...y}=t,{basename:b,navigator:w,unstable_useTransitions:k}=e.useContext(ae),S="string"===typeof p&&bt.test(p),x=J(p,b);p=x.to;let _=function(t){let{relative:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o(ce(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:a}=e.useContext(ae),{hash:s,pathname:i,search:l}=me(t,{relative:n}),c=i;return"/"!==r&&(c="/"===i?r:z([r,i])),a.createHref({pathname:c,search:l,hash:s})}(p,{relative:i}
2),E=ue(),j=null;if(u){let e=D(u,[],E.unstable_mask?E.unstable_mask.pathname:"/",!0);"/"!==b&&(e.pathname="/"===e.pathname?b:z([b,e.pathname])),j=w.createHref(e)}let[T,N,C]=function(t,n){let r=e.useContext(at),[a,s]=e.useState(!1),[i,o]=e.useState(!1),{onFocus:l,onBlur:c,onMouseEnter:u,onMouseLeave:d,onTouchStart:h}=n,f=e.useRef(null);e.useEffect(()=>{if("render"===t&&o(!0),"viewport"===t){let e=new IntersectionObserver(e=>{e.forEach(e=>{o(e.isIntersecting)})},{threshold:.5});return f.current&&e.observe(f.current),()=>{e.disconnect()}}},[t]),e.useEffect(()=>{if(a){let e=setTimeout(()=>{o(!0)},100);return()=>{clearTimeout(e)}}},[a]);let p=()=>{s(!0)},m=()=>{s(!1),o(!1)};return r?"intent"!==t?[i,f,{}]:[i,f,{onFocus:it(l,p),onBlur:it(c,m),onMouseEnter:it(u,p),onMouseLeave:it(d,m),onTouchStart:it(h,p)}]:[!1,f,{}]}(s,y),R=function(t){let{target:n,replace:r,unstable_mask:a,state:s,preventScrollReset:i,relative:o,viewTransition:l,unstable_defaultShouldRevalidate:c,unstable_useTransitions:u}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},h=fe(),f=ue(),p=me(t,{relative:o});return e.useCallback(m=>{if(function(e,t){return 0===e.button&&(!t||"_self"===t)&&!function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)}(m,n)){m.preventDefault();let n=void 0!==r?r:d(f)===d(p),g=()=>h(t,{replace:n,unstable_mask:a,state:s,preventScrollReset:i,relative:o,viewTransition:l,unstable_defaultShouldRevalidate:c});u?e.startTransition(()=>g()):g()}},[f,h,p,r,a,s,n,t,i,o,l,c,u])}(p,{replace:c,unstable_mask:u,state:h,target:f,preventScrollReset:m,relative:i,viewTransition:g,unstable_defaultShouldRevalidate:v,unstable_useTransitions:k});let A=!(x.isExternal||l),O=e.createElement("a",{...y,...C,href:(A?j:void 0)||x.absoluteURL||_,onClick:A?function(e){r&&r(e),e.defaultPrevented||R(e)}:r,ref:pt(n,N),target:f,"data-discover":S||"render"!==a?void 0:"true"});return T&&!S?e.createElement(e.Fragment,null,O,e.createElement(lt,{page:_})):O});wt.displayName="Link",e.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:a=!1,className:s="",end:i=!1,style:l,to:c,viewTransition:u,children:d,...h}=t,f=me(c,{relative:h.relative}),p=ue(),m=e.useContext(X),{navigator:g,basename:v}=e.useContext(ae),y=null!=m&&function(t){let{relative:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.useContext(te);o(null!=r,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:a}=xt("useViewTransitionState"),s=me(t,{relative:n});if(!r.isTransitioning)return!1;let i=A(r.currentLocation.pathname,a)||r.currentLocation.pathname,l=A(r.nextLocation.pathname,a)||r.nextLocation.pathname;return null!=N(s.pathname,l)||null!=N(s.pathname,i)}(f)&&!0===u,b=g.encodeLocation?g.encodeLocation(f).pathname:f.pathname,w=p.pathname,k=m&&m.navigation&&m.navigation.location?m.navigation.location.pathname:null;a||(w=w.toLowerCase(),k=k?k.toLowerCase():null,b=b.toLowerCase()),k&&v&&(k=A(k,v)||k);const S="/"!==b&&b.endsWith("/")?b.length-1:b.length;let x,_=w===b||!i&&w.startsWith(b)&&"/"===w.charAt(S),E=null!=k&&(k===b||!i&&k.startsWith(b)&&"/"===k.charAt(b.length)),j={isActive:_,isPending:E,isTransitioning:y},T=_?r:void 0;x="function"===typeof s?s(j):[s,_?"active":null,E?"pending":null,y?"transitioning":null].filter(Boolean).join(" ");let C="function"===typeof l?l(j):l;return e.createElement(wt,{...h,"aria-current":T,className:x,ref:n,style:C,to:c,viewTransition:u},"function"===typeof d?d(j):d)}).displayName="NavLink";var kt=e.forwardRef((t,n)=>{let{discover:r="render",fetcherKey:a,navigate:s,reloadDocument:i,replace:l,state:c,method:u=ze,action:h,onSubmit:f,relative:p,preventScrollReset:m,viewTransition:g,unstable_defaultShouldRevalidate:v,...y}=t,{unstable_useTransitions:b}=e.useContext(ae),w=Tt(),k=function(t){let{relative:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{basename:r}=e.useContext(ae),a=e.useContext(ie);o(a,"useFormAction must be used inside a RouteContext");let[s]=a.matches.slice(-1),i={...me(t||".",{relative:n})},l=ue();if(null==t){i.search=l.search;let e=new URLSearchParams(i.search),t=e.getAll("index");if(t.some(e=>""===e)){e.delete("index"),t.filter(e=>e).forEach(t=>e.append("index",t));let n=e.toString();i.search=n?`?${n}`:""}}t&&"."!==t||!s.route.index||(i.search=i.search?i.search.replace(/^\?/,"?index&"):"?index");"/"!==r&&(i.pathname="/"===i.pathname?r:z([r,i.pathname]));return d(i)}(h,{relative:p}),S="get"===u.toLowerCase()?"get":"post",x="string"===typeof h&&bt.test(h);return e.createElement("form",{ref:n,method:S,action:k,onSubmit:i?f:t=>{if(f&&f(t),t.defaultPrevented)return;t.preventDefault();let n=t.nativeEvent.submitter,r=n?.getAttribute("formmethod")||u,i=()=>w(n||t.currentTarget,{fetcherKey:a,method:r,navigate:s,replace:l,state:c,relative:p,preventScrollReset:m,viewTransition:g,unstable_defaultShouldRevalidate:v});b&&!1!==s?e.startTransition(()=>i()):i()},...y,"data-discover":x||"render"!==r?void 0:"true"})});function St(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function xt(t){let n=e.useContext(Y);return o(n,St(t)),n}function _t(t){l("undefined"!==typeof URLSearchParams,"You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let n=e.useRef(Be(t)),r=e.useRef(!1),a=ue(),s=e.useMemo(()=>function(e,t){let n=Be(e);return t&&t.forEach((e,r)=>
2{n.has(r)||t.getAll(r).forEach(e=>{n.append(r,e)})}),n}(a.search,r.current?null:n.current),[a.search]),i=fe(),o=e.useCallback((e,t)=>{const n=Be("function"===typeof e?e(new URLSearchParams(s)):e);r.current=!0,i("?"+n,t)},[i,s]);return[s,o]}kt.displayName="Form";var Et=0,jt=()=>`__${String(++Et)}__`;function Tt(){let{router:t}=xt("useSubmit"),{basename:n}=e.useContext(ae),r=Te("useRouteId"),a=t.fetch,s=t.navigate;return e.useCallback(async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{action:i,method:o,encType:l,formData:c,body:u}=Ve(e,n);if(!1===t.navigate){let e=t.fetcherKey||jt();await a(e,r,t.action||i,{unstable_defaultShouldRevalidate:t.unstable_defaultShouldRevalidate,preventScrollReset:t.preventScrollReset,formData:c,body:u,formMethod:t.method||o,formEncType:t.encType||l,flushSync:t.flushSync})}else await s(t.action||i,{unstable_defaultShouldRevalidate:t.unstable_defaultShouldRevalidate,preventScrollReset:t.preventScrollReset,formData:c,body:u,formMethod:t.method||o,formEncType:t.encType||l,replace:t.replace,state:t.state,fromRouteId:r,flushSync:t.flushSync,viewTransition:t.viewTransition})},[a,s,n,r])}var Nt=n(366),Ct=n.n(Nt),Rt=n(740),At=n.n(Rt),Ot=n(324),Pt=n.n(Ot),Lt=(e=>(e.BASE="base",e.BODY="body",e.HEAD="head",e.HTML="html",e.LINK="link",e.META="meta",e.NOSCRIPT="noscript",e.SCRIPT="script",e.STYLE="style",e.TITLE="title",e.FRAGMENT="Symbol(react.fragment)",e))(Lt||{}),$t={rel:["amphtml","canonical","alternate"]},It={type:["application/ld+json"]},Dt={charset:"",name:["generator","robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]},Ut=Object.values(Lt),zt={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},Mt=Object.entries(zt).reduce((e,t)=>{let[n,r]=t;return e[r]=n,e},{}),Ft="data-rh",Bt="defaultTitle",qt="defer",Ht="encodeSpecialCharacters",Wt="onChangeClientState",Vt="titleTemplate",Kt="prioritizeSeoTags",Jt=(e,t)=>{for(let n=e.length-1;n>=0;n-=1){const r=e[n];if(Object.prototype.hasOwnProperty.call(r,t))return r[t]}return null},Gt=e=>{let t=Jt(e,"title");const n=Jt(e,Vt);if(Array.isArray(t)&&(t=t.join("")),n&&t)return n.replace(/%s/g,()=>t);const r=Jt(e,Bt);return t||r||void 0},Qt=e=>Jt(e,Wt)||(()=>{}),Yt=(e,t)=>t.filter(t=>"undefined"!==typeof t[e]).map(t=>t[e]).reduce((e,t)=>({...e,...t}),{}),Xt=(e,t)=>t.filter(e=>"undefined"!==typeof e.base).map(e=>e.base).reverse().reduce((t,n)=>{if(!t.length){const r=Object.keys(n);for(let a=0;a<r.length;a+=1){const s=r[a].toLowerCase();if(-1!==e.indexOf(s)&&n[s])return t.concat(n)}}return t},[]),Zt=(e,t,n)=>{const r={};return n.filter(t=>{return!!Array.isArray(t[e])||("undefined"!==typeof t[e]&&(n=`Helmet: ${e} should be of type "Array". Instead found type "${typeof t[e]}"`,console&&"function"===typeof console.warn&&console.warn(n)),!1);var n}).map(t=>t[e]).reverse().reduce((e,n)=>{const a={};n.filter(e=>{let n;const s=Object.keys(e);for(let r=0;r<s.length;r+=1){const a=s[r],i=a.toLowerCase();-1===t.indexOf(i)||"rel"===n&&"canonical"===e[n].toLowerCase()||"rel"===i&&"stylesheet"===e[i].toLowerCase()||(n=i),-1===t.indexOf(a)||"innerHTML"!==a&&"cssText"!==a&&"itemprop"!==a||(n=a)}if(!n||!e[n])return!1;const i=e[n].toLowerCase();return r[n]||(r[n]={}),a[n]||(a[n]={}),!r[n][i]&&(a[n][i]=!0,!0)}).reverse().forEach(t=>e.push(t));const s=Object.keys(a);for(let t=0;t<s.length;t+=1){const e=s[t],n={...r[e],...a[e]};r[e]=n}return e},[]).reverse()},en=(e,t)=>{if(Array.isArray(e)&&e.length)for(let n=0;n<e.length;n+=1){if(e[n][t])return!0}return!1},tn=e=>Array.isArray(e)?e.join(""):e,nn=(e,t)=>Array.isArray(e)?e.reduce((e,n)=>(((e,t)=>{const n=Object.keys(e);for(let r=0;r<n.length;r+=1)if(t[n[r]]&&t[n[r]].includes(e[n[r]]))return!0;return!1})(n,t)?e.priority.push(n):e.default.push(n),e),{priority:[],default:[]}):{default:e,priority:[]},rn=(e,t)=>({...e,[t]:void 0}),an=["noscript","script","style"],sn=function(e){return!1===(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])?String(e):String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")},on=e=>Object.keys(e).reduce((t,n)=>{const r="undefined"!==typeof e[n]?`${n}="${e[n]}"`:`${n}`;return t?`${t} ${r}`:r},""),ln=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((t,n)=>(t[zt[n]||n]=e[n],t),t)},cn=(t,n)=>n.map((n,r)=>{const a={key:r,[Ft]:!0};
2return Object.keys(n).forEach(e=>{const t=zt[e]||e;if("innerHTML"===t||"cssText"===t){const e=n.innerHTML||n.cssText;a.dangerouslySetInnerHTML={__html:e}}else a[t]=n[e]}),e.createElement(t,a)}),un=function(t,n){let r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];switch(t){case"title":return{toComponent:()=>((t,n,r)=>{const a=ln(r,{key:n,[Ft]:!0});return[e.createElement("title",a,n)]})(0,n.title,n.titleAttributes),toString:()=>((e,t,n,r)=>{const a=on(n),s=tn(t);return a?`<${e} ${Ft}="true" ${a}>${sn(s,r)}</${e}>`:`<${e} ${Ft}="true">${sn(s,r)}</${e}>`})(t,n.title,n.titleAttributes,r)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>ln(n),toString:()=>on(n)};default:return{toComponent:()=>cn(t,n),toString:()=>function(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return t.reduce((t,r)=>{const a=r,s=Object.keys(a).filter(e=>!("innerHTML"===e||"cssText"===e)).reduce((e,t)=>{const r="undefined"===typeof a[t]?t:`${t}="${sn(a[t],n)}"`;return e?`${e} ${r}`:r},""),i=a.innerHTML||a.cssText||"",o=-1===an.indexOf(e);return`${t}<${e} ${Ft}="true" ${s}${o?"/>":`>${i}</${e}>`}`},"")}(t,n,r)}}},dn=e=>{const{baseTag:t,bodyAttributes:n,encode:r=!0,htmlAttributes:a,noscriptTags:s,styleTags:i,title:o="",titleAttributes:l,prioritizeSeoTags:c}=e;let{linkTags:u,metaTags:d,scriptTags:h}=e,f={toComponent:()=>[],toString:()=>""};return c&&({priorityMethods:f,linkTags:u,metaTags:d,scriptTags:h}=(e=>{let{metaTags:t,linkTags:n,scriptTags:r,encode:a}=e;const s=nn(t,Dt),i=nn(n,$t),o=nn(r,It);return{priorityMethods:{toComponent:()=>[...cn("meta",s.priority),...cn("link",i.priority),...cn("script",o.priority)],toString:()=>`${un("meta",s.priority,a)} ${un("link",i.priority,a)} ${un("script",o.priority,a)}`},metaTags:s.default,linkTags:i.default,scriptTags:o.default}})(e)),{priority:f,base:un("base",t,r),bodyAttributes:un("bodyAttributes",n,r),htmlAttributes:un("htmlAttributes",a,r),link:un("link",u,r),meta:un("meta",d,r),noscript:un("noscript",s,r),script:un("script",h,r),style:un("style",i,r),title:un("title",{title:o,titleAttributes:l},r)}},hn=[],fn=!("undefined"===typeof window||!window.document||!window.document.createElement),pn=class{instances=[];canUseDOM=(()=>fn)();context;value={setHelmet:e=>{this.context.helmet=e},helmetInstances:{get:()=>this.canUseDOM?hn:this.instances,add:e=>{(this.canUseDOM?hn:this.instances).push(e)},remove:e=>{const t=(this.canUseDOM?hn:this.instances).indexOf(e);(this.canUseDOM?hn:this.instances).splice(t,1)}}};constructor(e,t){this.context=e,this.canUseDOM=t||!1,t||(e.helmet=dn({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},mn=parseInt(e.version.split(".")[0],10)>=19,gn=e.createContext({}),vn=class t extends e.Component{static canUseDOM=(()=>fn)();helmetData;constructor(e){super(e),this.helmetData=mn?null:new pn(this.props.context||{},t.canUseDOM)}render(){return mn?e.createElement(e.Fragment,null,this.props.children):e.createElement(gn.Provider,{value:this.helmetData.value},this.props.children)}},yn=(e,t)=>{const n=document.head||document.querySelector("head"),r=n.querySelectorAll(`${e}[${Ft}]`),a=[].slice.call(r),s=[];let i;return t&&t.length&&t.forEach(t=>{const n=document.createElement(e);for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e))if("innerHTML"===e)n.innerHTML=t.innerHTML;else if("cssText"===e){const e=t.cssText;n.appendChild(document.createTextNode(e))}else{const r=e,a="undefined"===typeof t[r]?"":t[r];n.setAttribute(e,a)}n.setAttribute(Ft,"true"),a.some((e,t)=>(i=t,n.isEqualNode(e)))?a.splice(i,1):s.push(n)}),a.forEach(e=>
2e.parentNode?.removeChild(e)),s.forEach(e=>n.appendChild(e)),{oldTags:a,newTags:s}},bn=(e,t)=>{const n=document.getElementsByTagName(e)[0];if(!n)return;const r=n.getAttribute(Ft),a=r?r.split(","):[],s=[...a],i=Object.keys(t);for(const o of i){const e=t[o]||"";n.getAttribute(o)!==e&&n.setAttribute(o,e),-1===a.indexOf(o)&&a.push(o);const r=s.indexOf(o);-1!==r&&s.splice(r,1)}for(let o=s.length-1;o>=0;o-=1)n.removeAttribute(s[o]);a.length===s.length?n.removeAttribute(Ft):n.getAttribute(Ft)!==i.join(",")&&n.setAttribute(Ft,i.join(","))},wn=(e,t)=>{const{baseTag:n,bodyAttributes:r,htmlAttributes:a,linkTags:s,metaTags:i,noscriptTags:o,onChangeClientState:l,scriptTags:c,styleTags:u,title:d,titleAttributes:h}=e;bn("body",r),bn("html",a),((e,t)=>{"undefined"!==typeof e&&document.title!==e&&(document.title=tn(e)),bn("title",t)})(d,h);const f={baseTag:yn("base",n),linkTags:yn("link",s),metaTags:yn("meta",i),noscriptTags:yn("noscript",o),scriptTags:yn("script",c),styleTags:yn("style",u)},p={},m={};Object.keys(f).forEach(e=>{const{newTags:t,oldTags:n}=f[e];t.length&&(p[e]=t),n.length&&(m[e]=f[e].oldTags)}),t&&t(),l(e,p,m)},kn=null,Sn=e=>{kn&&cancelAnimationFrame(kn),e.defer?kn=requestAnimationFrame(()=>{wn(e,()=>{kn=null})}):(wn(e),kn=null)},xn=class extends e.Component{rendered=!1;shouldComponentUpdate(e){return!Pt()(e,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){const{helmetInstances:e}=this.props.context;e.remove(this),this.emitChange()}emitChange(){const{helmetInstances:e,setHelmet:t}=this.props.context;let n=null;const r=(a=e.get().map(e=>{const{context:t,...n}=e.props;return n}),{baseTag:Xt(["href"],a),bodyAttributes:Yt("bodyAttributes",a),defer:Jt(a,qt),encode:Jt(a,Ht),htmlAttributes:Yt("htmlAttributes",a),linkTags:Zt("link",["rel","href"],a),metaTags:Zt("meta",["name","charset","http-equiv","property","itemprop"],a),noscriptTags:Zt("noscript",["innerHTML"],a),onChangeClientState:Qt(a),scriptTags:Zt("script",["src","innerHTML"],a),styleTags:Zt("style",["cssText"],a),title:Gt(a),titleAttributes:Yt("titleAttributes",a),prioritizeSeoTags:en(a,Kt)});var a;vn.canUseDOM?Sn(r):dn&&(n=dn(r)),t(n)}init(){if(this.rendered)return;this.rendered=!0;const{helmetInstances:e}=this.props.context;e.add(this),this.emitChange()}render(){return this.init(),null}},_n=[],En=e=>{const t={};for(const n of Object.keys(e))t[Mt[n]||n]=e[n];return t},jn=e=>{const t={};for(const n of Object.keys(e)){t[zt[n]||n]=e[n]}return t},Tn=(e,t)=>{if(!fn)return;const n=document.getElementsByTagName(e)[0];if(!n)return;const r="data-rh-managed",a=n.getAttribute(r),s=a?a.split(","):[],i=Object.keys(t);for(const o of s)i.includes(o)||n.removeAttribute(o);for(const o of i){const e=t[o];void 0===e||null===e||!1===e?n.removeAttribute(o):!0===e?n.setAttribute(o,""):n.setAttribute(o,String(e))}i.length>0?n.setAttribute(r,i.join(",")):n.removeAttribute(r)},Nn=()=>{const e={},t={};for(const n of _n){const{htmlAttributes:r,bodyAttributes:a}=n.props;r&&Object.assign(e,En(r)),a&&Object.assign(t,En(a))}Tn("html",e),Tn("body",t)},Cn=class extends e.Component{componentDidMount(){_n.push(this),Nn()}componentDidUpdate(){Nn()}componentWillUnmount(){const e=_n.indexOf(this);-1!==e&&_n.splice(e,1),Nn()}resolveTitle(){const{title:e,titleTemplate:t,defaultTitle:n}=this.props;return e&&t?t.replace(/%s/g,()=>Array.isArray(e)?e.join(""):e):e||n||void 0}renderTitle(){const t=this.resolveTitle();if(void 0===t)return null;const n=this.props.titleAttributes||{};return e.createElement("title",jn(n),t)}renderBase(){const{base:t}=this.props;return t?e.createElement("base",jn(t)):null}renderMeta(){const{meta:t}=this.props;return t&&Array.isArray(t)?t.map((t,n)=>e.createElement("meta",{key:n,...jn(t)})):null}renderLink(){const{link:t}=this.props;return t&&Array.isArray(t)?t.map((t,n)=>e.createElement("link",{key:n,...jn(t)})):null}renderScript(){const{script:t}=this.props;return t&&Array.isArray(t)?t.map((t,n)=>{const{innerHTML:r,...a}=t,s=jn(a);return r&&(s.dangerouslySetInnerHTML={__html:r}),e.createElement("script",{key:n,...s})}):null}renderStyle(){const{style:t}=this.props;return t&&Array.isArray(t)?t.map((t,n)=>{const{cssText:r,...a}=t,s=jn(a);return r&&(s.dangerouslySetInnerHTML={__html:r}),e.createElement("style",{key:n,...s})}):null}renderNoscript(){const{noscript:t}=this.props;return t&&Array.isArray(t)?t.map((t,n)=>{const{innerHTML:r,...a}=t,s=jn(a);return r&&(s.dangerouslySetInnerHTML={__html:r}),e.createElement("noscript",{key:n,...s})}):null}render(){return e.createElement(e.Fragment,null,this.renderTitle(),this.renderBase(),this.renderMeta(),this.renderLink(),this.renderScript(),this.renderStyle(),this.renderNoscript())}},Rn=class extends e.Component{static defaultProps={defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1};shouldComponentUpdate(e){return!Ct()(rn(this.props,"helmetData"),rn(e,"helmetData"))}mapNestedChildrenToProps(e,t){if(!t)return null;switch(e.type){case"script":case"noscript":return{innerHTML:t};case"style":return{cssText:t};default:throw new Error(`<${e.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`)}}flattenArrayTypeChildren(e,t,n,r){return{...t,[e.type]:[...t[e.type]||[],{...n,...this.mapNestedChildrenToProps(e,r)}]}}mapObjectTypeChildren(e,t,n,r){switch(e.type){case"title":return{...t,[e.type]:r,titleAttributes:{...n}};case"body":return{...t,bodyAttributes:{...n}};case"html":return{...t,htmlAttributes:{...n}};default:return{...t,[e.type]:{...n}}}}mapArrayTypeChildrenToProps(e,t){let n={...t};return Object.keys(e).forEach(t=>{n={...n,[t]:e[t]}}),n}
2warnOnInvalidChildren(e,t){return At()(Ut.some(t=>e.type===t),"function"===typeof e.type?"You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.":`Only elements types ${Ut.join(", ")} are allowed. Helmet does not support rendering <${e.type}> elements. Refer to our API for more information.`),At()(!t||"string"===typeof t||Array.isArray(t)&&!t.some(e=>"string"!==typeof e),`Helmet expects a string as a child of <${e.type}>. Did you forget to wrap your children in braces? ( <${e.type}>{\`\`}</${e.type}> ) Refer to our API for more information.`),!0}mapChildrenToProps(t,n){let r={};return e.Children.forEach(t,e=>{if(!e||!e.props)return;const{children:t,...a}=e.props,s=Object.keys(a).reduce((e,t)=>(e[Mt[t]||t]=a[t],e),{});let{type:i}=e;switch("symbol"===typeof i?i=i.toString():this.warnOnInvalidChildren(e,t),i){case"Symbol(react.fragment)":n=this.mapChildrenToProps(t,n);break;case"link":case"meta":case"noscript":case"script":case"style":r=this.flattenArrayTypeChildren(e,r,s,t);break;default:n=this.mapObjectTypeChildren(e,n,s,t)}}),this.mapArrayTypeChildrenToProps(r,n)}render(){const{children:t,...n}=this.props;let r={...n},{helmetData:a}=n;if(t&&(r=this.mapChildrenToProps(t,r)),a&&!(a instanceof pn)){a=new pn(a.context,!0),delete r.helmetData}return mn?e.createElement(Cn,{...r}):a?e.createElement(xn,{...r,context:a.value}):e.createElement(gn.Consumer,null,t=>e.createElement(xn,{...r,context:t}))}},An=n(579);const On=()=>{const[t,n]=(0,e.useState)(!1),[r,a]=(0,e.useState)(!1),s=ue();(0,e.useEffect)(()=>{const e=()=>{n(window.scrollY>50)};return window.addEventListener("scroll",e),()=>window.removeEventListener("scroll",e)},[]),(0,e.useEffect)(()=>{a(!1)},[s]),(0,e.useEffect)(()=>(document.body.style.overflow=r?"hidden":"",()=>{document.body.style.overflow=""}),[r]);const i="/"===s.pathname;return(0,An.jsxs)("nav",{className:`navbar ${t?"navbar-scrolled":""} ${r?"navbar-menu-open":""}`,children:[(0,An.jsxs)("div",{className:"navbar-container",children:[(0,An.jsx)(wt,{to:"/",className:"navbar-logo",onClick:()=>a(!1),children:(0,An.jsx)("img",{src:"/images/logo-jaune.png",alt:"THE RECAP Logo"})}),(0,An.jsxs)("button",{className:"navbar-hamburger "+(r?"open":""),onClick:()=>a(!r),"aria-label":"Menu",children:[(0,An.jsx)("span",{}),(0,An.jsx)("span",{}),(0,An.jsx)("span",{})]}),(0,An.jsxs)("ul",{className:"navbar-menu "+(r?"navbar-menu-active":""),children:[(0,An.jsx)("li",{className:"navbar-item",children:(0,An.jsx)(wt,{to:"/",className:"navbar-link "+("/"===s.pathname?"active":""),onClick:()=>a(!1),children:"Accueil"})}),(0,An.jsx)("li",{className:"navbar-item",children:(0,An.jsx)(wt,{to:"/inscription",className:"navbar-link "+("/inscription"===s.pathname?"active":""),onClick:()=>a(!1),children:"Inscription"})}),(0,An.jsx)("li",{className:"navbar-item",children:(0,An.jsx)(wt,{to:"/evenement",className:"navbar-link "+("/evenement"===s.pathname?"active":""),onClick:()=>a(!1),children:"\xc9v\xe9nements"})}),(0,An.jsx)("li",{className:"navbar-item",children:i?(0,An.jsx)("a",{href:"#qui-sommes-nous",className:"navbar-link",onClick:e=>((e,t)=>{if(i){e.preventDefault();const n=document.getElementById(t);n&&n.scrollIntoView({behavior:"smooth"})}a(!1)})(e,"qui-sommes-nous"),children:"Qui sommes-nous ?"}):(0,An.jsx)(wt,{to:"/#qui-sommes-nous",className:"navbar-link",onClick:()=>a(!1),children:"Qui sommes-nous ?"})}),(0,An.jsx)("li",{className:"navbar-item",children:(0,An.jsx)(wt,{to:"/nous-contacter",className:"navbar-link "+("/nous-contacter"===s.pathname?"active":""),onClick:()=>a(!1),children:"Contact"})}),(0,An.jsx)("li",{className:"navbar-item navbar-item-members",children:(0,An.jsx)(wt,{to:"/members",className:"navbar-link navbar-link-members "+(s.pathname.startsWith("/members")?"active":""),onClick:()=>a(!1),children:"Espace Membres"})})]})]}),r&&(0,An.jsx)("div",{className:"navbar-overlay",onClick:()=>a(!1)})]})},Pn=()=>(0,An.jsx)("footer",{className:"footer",id:"contact",children:(0,An.jsx)("div",{className:"footer-container",children:(0,An.jsxs)("div",{className:"footer-content",children:[(0,An.jsx)(wt,{to:"/",children:(0,An.jsx)("img",{src:"/images/logo-blanc.png",alt:"THE RECAP Logo",className:"footer-logo"})}),(0,An.jsxs)("div",{className:"footer-links-section",children:[(0,An.jsxs)("div",{className:"footer-contact",children:[(0,An.jsx)("p",{className:"footer-label",children:"Contact :"}),(0,An.jsx)("a",{href:"mailto:[email protected]",className:"footer-email",children:"[email protected]"})]}),(0,An.jsx)("div",{className:"footer-legal",children:(0,An.jsx)(wt,{to:"/mentions-legales",className:"footer-link",children:"Mentions L\xe9gales"})})]}),(0,An.jsx)("p",{className:"footer-copyright",children:"\xa9 2026 THE RECAP"})]})})}),Ln="cookie_consent";function $n(e){"function"===typeof window.gtag&&("granted"===e?window.gtag("consent","update",{analytics_storage:"granted",ad_storage:"granted"}):window.gtag("consent","update",{analytics_storage:"denied",ad_storage:"denied"}))}const In=function(){const[t,n]=(0,e.useState)(!1);return(0,e.useEffect)(()=>{const e=localStorage.getItem(Ln);null===e?n(!0):$n(e)},[]),t?(0,An.jsx)("div",{className:"cookie-consent",role:"dialog","aria-live":"polite","aria-label":"Consentement aux cookies",children:(0,An.jsxs)("div",{className:"cookie-consent-container",children:[(0,An.jsxs)("p",{className:"cookie-consent-text",children:["The Recap utilise des cookies de mesure d'audience pour comprendre comment nos lecteurs suivent l'actualit\xe9 retail et e-commerce, et ainsi affiner nos d\xe9cryptages. Vous gardez la main\xa0: vos donn\xe9es ne sont collect\xe9es qu'avec votre accord."," ",(0,An.jsx)("a",{href:"/mentions-legales",className:"cookie-consent-link",children:"En savoir plus"})]}),(0,An.jsxs)("div",{className:"cookie-consent-actions",children:[(0,An.jsx)("button",{type:"button",className:"cookie-consent-btn co
2okie-consent-btn-refuse",onClick:()=>{localStorage.setItem(Ln,"denied"),$n("denied"),n(!1)},children:"Refuser"}),(0,An.jsx)("button",{type:"button",className:"cookie-consent-btn cookie-consent-btn-accept",onClick:()=>{localStorage.setItem(Ln,"granted"),$n("granted"),n(!1)},children:"Accepter"})]})]})}):null},Dn=()=>(0,An.jsx)("section",{className:"hero",id:"accueil",style:{background:"linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url(/images/hero-bg.png) center/cover no-repeat"},children:(0,An.jsx)("div",{className:"hero-overlay",children:(0,An.jsxs)("div",{className:"hero-content",children:[(0,An.jsx)("img",{src:"/images/logo-blanc.png",alt:"THE RECAP Logo",className:"hero-logo fade-in"}),(0,An.jsx)("h1",{className:"hero-title fade-in",children:"Le d\xe9cryptage des \xe9v\xe9nements qui comptent"})]})})}),Un=()=>(0,An.jsx)("section",{className:"concept-section fade-in",children:(0,An.jsxs)("div",{className:"container",children:[(0,An.jsx)("h2",{className:"heading-art-deco heading-medium",children:"THE RECAP, le concept"}),(0,An.jsx)("h3",{className:"concept-subtitle",children:"The Recap est un format imagin\xe9 par Laetitia Lamari et Adrien N\xe6em pour permettre aux entreprises de b\xe9n\xe9ficier des enseignements des grands \xe9v\xe9nements du retail et du e-commerce, sans avoir \xe0 s'y rendre."}),(0,An.jsxs)("div",{className:"concept-body-text",children:[(0,An.jsx)("p",{children:"Animateurs du podcast Le Caf\xe9 de l'E-Commerce, Laetitia Lamari et Adrien N\xe6em analysent depuis plusieurs ann\xe9es les transformations du secteur. Experts du retail et du e-commerce, ils \xe9voluent au c\u0153ur de l'\xe9cosyst\xe8me depuis plusieurs ann\xe9es, entre contenus, \xe9v\xe9nements et analyses terrain."}),(0,An.jsx)("p",{children:"Pour The Recap, ils se d\xe9placent sur les \xe9v\xe9nements, assistent aux conf\xe9rences, rencontrent les acteurs du secteur et analysent ce qui s'y joue."}),(0,An.jsx)("p",{children:"\xc0 l'issue de ces rendez-vous, ils proposent une restitution claire, structur\xe9e et synth\xe9tique des tendances, innovations et strat\xe9gies observ\xe9es."}),(0,An.jsx)("p",{children:"The Recap se d\xe9cline ensuite \xe0 travers plusieurs formats et temps forts, pens\xe9s pour partager l'essentiel, prendre du recul et offrir une vision concr\xe8te et exploitable aux professionnels du retail et du e-commerce."})]})]})}),zn=()=>(0,An.jsx)("section",{className:"nrf-section fade-in",id:"evenements",children:(0,An.jsxs)("div",{className:"nrf-card",children:[(0,An.jsx)("img",{src:"/images/nrf-apac.jpg",alt:"NRF APAC Logo",className:"nrf-logo"}),(0,An.jsx)("p",{className:"nrf-text-gold",children:"Laetitia et Adrien seront \xe0 NRF 2026 Asia Pacific \xe0 Singapour, l'un des grands rendez-vous du retail et de l'innovation en Asie-Pacifique, qui se tiendra du 3 au 5 juin 2026."}),(0,An.jsx)("p",{className:"nrf-text-white",children:"Sur place, ils capteront les tendances cl\xe9s, les innovations marquantes et les signaux faibles qui fa\xe7onnent le commerce dans la r\xe9gion. Avec The Recap, ils proposeront une lecture claire et synth\xe9tique de ce qu'il faut vraiment retenir : dynamiques de march\xe9, visions d'experts et insights terrain."}),(0,An.jsx)("p",{className:"nrf-text-white",children:"Un live LinkedIn aura lieu le 4 juin pour d\xe9crypter \xe0 chaud les enseignements de l'\xe9v\xe9nement, suivi d'un d\xeener \xe0 Paris le 11 juin pour prolonger les \xe9changes avec la communaut\xe9."}),(0,An.jsx)("p",{className:"nrf-text-white",children:"Une mani\xe8re simple et concr\xe8te d'acc\xe9der au meilleur de la NRF APAC, de Singapour \xe0 Paris."}),(0,An.jsx)(wt,{to:"/inscription",className:"button button-gold nrf-button",children:"S'inscrire au prochain live"})]})}),Mn=()=>(0,An.jsx)("section",{className:"formats-section fade-in",children:(0,An.jsxs)("div",{className:"formats-container",children:[(0,An.jsx)("h2",{className:"heading-art-deco formats-title",children:"Les formats the recap"}),(0,An.jsxs)("div",{className:"formats-list",children:[(0,An.jsxs)("div",{className:"format-row slide-up",children:[(0,An.jsxs)("div",{className:"format-content-left",children:[(0,An.jsx)("h3",{className:"format-name",children:"Lives"}),(0,An.jsx)("p",{className:"format-description",children:"Les Lives The Recap sont des temps de partage en direct, organis\xe9s \xe0 l'issue d'\xe9v\xe9nements en France et \xe0 l'international, pour d\xe9crypter les enseignements observ\xe9s sur le terrain."}),(0,An.jsx)("p",{className:"format-description",children:"Ils permettent de prendre rapidement de la hauteur et de mettre en perspective les tendances qui fa\xe7onnent le retail et le e-commerce."}),(0,An.jsxs)("div",{className:"format-buttons",children:[(0,An.jsx)("a",{href:"https://www.linkedin.com/events/therecaplelivenrfnewyork7415434484470525952/theater/",target:"_blank",rel:"noopener noreferrer",className:"button button-dark format-btn-replay",children:"voir le replay nrf nyc 2026"}),(0,An.jsx)("a",{href:"https://www.linkedin.com/events/therecapleliveshoptalkluxe7408791973190578176/theater/",target:"_blank",rel:"noopener noreferrer",className:"button button-dark format-btn-replay",children:"voir le replay shoptalk luxe"})]})]}),(0,An.jsx)("div",{className:"format-image-right",children:(0,An.jsx)("img",{src:"/images/lives-img.jpg",alt:"Lives Format"})})]}),(0,An.jsxs)("div",{className:"format-row slide-up",children:[(0,An.jsx)("div",{className:"format-image-left",children:(0,An.jsx)("img",{src:"/images/diners-img.jpg",alt:"D\xeeners Format"})}),(0,An.jsxs)("div",{className:"format-content-right",children:[(0,An.jsx)("h3",{className:"format-name",children:"D\xeeners"}),(0,An.jsx)("p",{className:"format-description",children:"Les D\xeeners The Recap sont des rendez-vous en petit comit\xe9, pens\xe9s pour approfondir les analyses issues de grands \xe9v\xe9nements internationaux."}),(0,An.jsx)("p",{className:"format-description",children:"Ils offrent un cadre propice aux \xe9changes, au croisement des points de vue et au partage de retours d'exp\xe9rience terrain."}),(0,An.jsx)(wt,{to:"/inscription",className:"button button-dark format-btn-inscrire",children:"S'inscrire"})]})]}),(0,An.jsxs)("div",{className:"format-row slide-up",children:[(0,An.jsxs)("div",{className:"format-content-left",children:[(0,An.jsx)("h3",{className:"format-name",children:"Store Tours"}),(0,An.jsx)("p",{className:"format-description",children:"Les Store Tours proposent une lecture concr\xe8te du retail \xe0 travers la visite de points de vente embl\xe9matiques partout dans le monde."}),(0,An.jsx)("p",{className:"format-description",children:"Ils permettent d'observer les concepts, les usages et les exp\xe9riences en conditions r\xe9elles, au plus pr\xe8s du terrain."}),(0,An.jsx)("a",{href:"https://www.youtube.com/playlist?list=PLTmOUgKc3x9ZneYf_u6Xh-5owzQxSNvYl",target:"_blank",rel:"noopener noreferrer",className:"button button-dark format-btn-storetours",children:"voir tous les store tours"})]}),(0,An.jsxs)("div",{className:"format-images-right",children:[(0,An.jsx)("img",{src:"/images/store-tour-phone-1.png",alt:"Store Tour
21"}),(0,An.jsx)("img",{src:"/images/store-tour-phone-2.png",alt:"Store Tour 2"}),(0,An.jsx)("img",{src:"/images/store-tour-phone-3.png",alt:"Store Tour 3"})]})]})]})]})}),Fn=()=>(0,An.jsx)("section",{className:"events-section fade-in",id:"evenements",children:(0,An.jsx)("div",{className:"events-beige-band",children:(0,An.jsxs)("div",{className:"events-container",children:[(0,An.jsx)("h2",{className:"heading-art-deco events-title",children:"THE RECAP, les prochaines \xe9ditions :"}),(0,An.jsxs)("div",{className:"events-grid",children:[(0,An.jsx)("div",{className:"event-card slide-up",style:{backgroundImage:"linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url(/images/hero-bg.png)",backgroundSize:"cover",backgroundPosition:"center"},children:(0,An.jsxs)("div",{className:"event-card-inner",children:[(0,An.jsxs)("div",{className:"event-card-names",children:[(0,An.jsx)("span",{className:"event-card-name",children:"Laetitia Lamari"}),(0,An.jsx)("span",{className:"event-card-name",children:"Adrien Naeem"})]}),(0,An.jsx)("div",{className:"event-card-logo",children:(0,An.jsx)("img",{src:"/images/logo-blanc.png",alt:"THE RECAP",className:"card-logo"})}),(0,An.jsxs)("div",{className:"event-card-profiles",children:[(0,An.jsx)("img",{src:"/images/laetitia.png",alt:"Laetitia",className:"profile-photo"}),(0,An.jsx)("img",{src:"/images/adrien.png",alt:"Adrien",className:"profile-photo"})]}),(0,An.jsx)("h3",{className:"event-card-title",children:"LE LIVE"}),(0,An.jsx)("p",{className:"event-card-subtitle",children:"NRF Asia Pacific"}),(0,An.jsx)("p",{className:"event-card-info",children:"4 JUIN 2026 | \ud83d\udd34 | LIVE LINKEDIN"})]})}),(0,An.jsx)("div",{className:"event-card slide-up",style:{backgroundImage:"linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url(/images/hero-bg.png)",backgroundSize:"cover",backgroundPosition:"center"},children:(0,An.jsxs)("div",{className:"event-card-inner",children:[(0,An.jsxs)("div",{className:"event-card-names",children:[(0,An.jsx)("span",{className:"event-card-name",children:"Laetitia Lamari"}),(0,An.jsx)("span",{className:"event-card-name",children:"Adrien Naeem"})]}),(0,An.jsx)("div",{className:"event-card-logo",children:(0,An.jsx)("img",{src:"/images/logo-blanc.png",alt:"THE RECAP",className:"card-logo"})}),(0,An.jsxs)("div",{className:"event-card-profiles",children:[(0,An.jsx)("img",{src:"/images/laetitia.png",alt:"Laetitia",className:"profile-photo"}),(0,An.jsx)("img",{src:"/images/adrien.png",alt:"Adrien",className:"profile-photo"})]}),(0,An.jsx)("h3",{className:"event-card-title",children:"LE D\xceNER"}),(0,An.jsx)("p",{className:"event-card-subtitle",children:"NRF Asia Pacific"}),(0,An.jsx)("p",{className:"event-card-info",children:"11 JUIN 2026 | PARIS"})]})})]}),(0,An.jsxs)("div",{className:"events-details",children:[(0,An.jsxs)("div",{className:"event-detail-card slide-up",children:[(0,An.jsx)("h4",{className:"detail-title",children:"Le Live"}),(0,An.jsx)("p",{className:"detail-subtitle",children:"Sp\xe9cial NRF APAC"}),(0,An.jsx)("p",{className:"detail-info",children:"Le 4 juin | Live LinkedIn"}),(0,An.jsx)(wt,{to:"/inscription",className:"button button-dark",children:"Je m'inscris"})]}),(0,An.jsxs)("div",{className:"event-detail-card slide-up",children:[(0,An.jsx)("h4",{className:"detail-title",children:"Le D\xeener"}),(0,An.jsx)("p",{className:"detail-subtitle",children:"Sp\xe9cial NRF APAC"}),(0,An.jsx)("p",{className:"detail-info",children:"Le 11 juin | Paris"}),(0,An.jsx)(wt,{to:"/inscription",className:"button button-dark",children:"Je m'inscris"})]})]})]})})}),Bn=()=>(0,An.jsx)("section",{className:"team-section fade-in",id:"qui-sommes-nous",children:(0,An.jsxs)("div",{className:"team-container",children:[(0,An.jsx)("h2",{className:"heading-art-deco team-title",children:"Qui sommes-nous?"}),(0,An.jsx)("div",{className:"team-portrait",children:(0,An.jsx)("img",{src:"/images/team-portrait.jpg",alt:"Team Portrait"})}),(0,An.jsx)("p",{className:"team-subtitle",children:"Deux experts en retail, e-commerce et nouvelles technologies. Un gars, une fille, anim\xe9s par les tendances de l'\xe9c
2osyst\xe8me, en France et \xe0 l'international."}),(0,An.jsxs)("div",{className:"team-grid",children:[(0,An.jsxs)("div",{className:"team-member slide-up",children:[(0,An.jsxs)("div",{className:"team-member-left",children:[(0,An.jsx)("a",{href:"https://www.linkedin.com/in/laetitialamari/",target:"_blank",rel:"noopener noreferrer",className:"team-member-image-link",children:(0,An.jsx)("img",{src:"/images/laetitia.png",alt:"Laetitia Lamari",className:"team-member-photo"})}),(0,An.jsx)("h3",{className:"team-member-name",children:"Laetitia Lamari"})]}),(0,An.jsxs)("div",{className:"team-member-content",children:[(0,An.jsx)("p",{className:"team-member-bio",children:"Laetitia est une sp\xe9cialiste accomplie en marketing dans le secteur du commerce, avec 15 ans d'exp\xe9rience couvrant diverses facettes de cette industrie dynamique. Elle a contribu\xe9 \xe0 fa\xe7onner les strat\xe9gies marketing pour des entreprises allant des startups aux multinationales. Passionn\xe9e par l'innovation et l'impact social du commerce, Laetitia est \xe9galement une conf\xe9renci\xe8re appr\xe9ci\xe9e et une r\xe9f\xe9rence en marketing."}),(0,An.jsx)("p",{className:"team-member-bio",children:"Co-cr\xe9atrice du podcast \xab Le Caf\xe9 De l'E-commerce \xbb, elle joue un r\xf4le vital en mettant en lumi\xe8re les derni\xe8res tendances et opportunit\xe9s dans le monde du e-commerce."})]})]}),(0,An.jsxs)("div",{className:"team-member slide-up",children:[(0,An.jsxs)("div",{className:"team-member-left",children:[(0,An.jsx)("a",{href:"https://www.linkedin.com/in/adriennaeem/",target:"_blank",rel:"noopener noreferrer",className:"team-member-image-link",children:(0,An.jsx)("img",{src:"/images/adrien.png",alt:"Adrien Naeem",className:"team-member-photo"})}),(0,An.jsx)("h3",{className:"team-member-name",children:"Adrien Naeem"})]}),(0,An.jsx)("div",{className:"team-member-content",children:(0,An.jsx)("p",{className:"team-member-bio",children:"Adrien est un expert en commerce \xe9lectronique qui a jou\xe9 un r\xf4le cl\xe9 dans le lancement de Salesforce Commerce Cloud en France en 2010. Avec 15 ans d'exp\xe9rience dans des entreprises SaaS am\xe9ricaines, il est \xe9galement un conf\xe9rencier reconnu, un influenceur notable sur LinkedIn, et s'investit en tant que b\xe9n\xe9vole pour l'inclusion num\xe9rique. En outre, il est cofondateur de \xab Le Caf\xe9 De l'Ecommerce \xbb, le premier m\xe9dia ind\xe9pendant dans le domaine de l'e-commerce."})})]})]})]})}),qn=()=>{const e=Array.from({length:13},(e,t)=>({src:`/images/sponsor-${t}.${12===t?"jpg":"png"}`,alt:`Sponsor ${t+1}`}));return(0,An.jsx)("section",{className:"sponsors-section fade-in",children:(0,An.jsxs)("div",{className:"sponsors-container",children:[(0,An.jsx)("h2",{className:"heading-art-deco heading-medium sponsors-title",children:"Ils soutiennent the recap"}),(0,An.jsx)("div",{className:"sponsors-grid",children:e.map((e,t)=>(0,An.jsx)("div",{className:"sponsor-logo",children:(0,An.jsx)("img",{src:e.src,alt:e.alt})},t))})]})})},Hn=()=>(0,An.jsxs)(An.Fragment,{children:[(0,An.jsxs)(Rn,{children:[(0,An.jsx)("title",{children:"The Recap - D\xe9cryptage des \xe9v\xe9nements e-commerce et retail du march\xe9"}),(0,An.jsx)("meta",{name:"description",content:"The Recap capture l'essentiel des grands \xe9v\xe9nements retail et e-commerce et le transforme en analyses claires et actionnables pour les entreprises."}),(0,An.jsx)("meta",{property:"og:title",content:"The Recap - D\xe9cryptage des \xe9v\xe9nements e-commerce et retail du march\xe9"}),(0,An.jsx)("meta",{property:"og:description",content:"The Recap capture l'essentiel des grands \xe9v\xe9nements retail et e-commerce et le transforme en analyses claires et actionnables pour les entreprises."}),(0,An.jsx)("meta",{property:"og:type",content:"website"}),(0,An.jsx)("meta",{property:"og:image",content:"/images/og-image.png"}),(0,An.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,An.jsx)("meta",{name:"twitter:title",content:"The Recap - D\xe9cryptage des \xe9v\xe9nements e-commerce et retail du march\xe9"}),(0,An.jsx)("meta",{name:"twitter:description",content:"The Recap capture l'essentiel des grands \xe9v\xe9nements retail et e-commerce et le transforme en analyses claires et actionnables pour les entreprises."})]}),(0,An.jsx)(Dn,{}),(0,An.jsx)(Un,{}),(0,An.jsx)(zn,{}),(0,An.jsx)(Mn,{}),(0,An.jsx)(Fn,{}),(0,An.jsx)(Bn,{}),(0,An.jsx)(qn,{})]}),Wn=()=>(0,An.jsxs)(An.Fragment,{children:[(0,An.jsxs)(Rn,{children:[(0,An.jsx)("title",{children:"The Recap - Nos \xe9v\xe9nements"}),(0,An.jsx)("meta",{name:"description",content:"Inscrivez-vous aux diff\xe9rents \xe9v\xe9nements The Recap et recevez une restitution claire et actionnable des temps forts : tendances, innovations, strat\xe9gies retail et e-commerce."}),(0,An.jsx)("meta",{property:"og:title",content:"The Recap - Nos \xe9v\xe9nements"}),(0,An.jsx)("meta",{property:"og:description",content:"Inscrivez-vous aux diff\xe9rents \xe9v\xe9nements The Recap et recevez une restitution claire et actionnable des temps forts : tendances, innovations, strat\xe9gies retail et e-commerce."}),(0,An.jsx)("meta",{property:"og:type",content:"website"}),(0,An.jsx)("meta",{name:"twitter:card",content:"summary_large_image"})]}),(0,An.jsx)("section",{className:"page-hero evenement-hero",style:{background:"linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url(
2/images/hero-bg.png) center/cover no-repeat"},children:(0,An.jsx)("div",{className:"page-hero-overlay",children:(0,An.jsxs)("div",{className:"page-hero-content",children:[(0,An.jsx)("img",{src:"/images/logo-blanc.png",alt:"THE RECAP Logo",className:"page-hero-logo fade-in"}),(0,An.jsx)("h1",{className:"page-hero-title fade-in",children:"\xe9v\xe9nements"})]})})}),(0,An.jsx)("section",{className:"evenement-intro fade-in",children:(0,An.jsx)("div",{className:"evenement-container",children:(0,An.jsxs)("h2",{className:"evenement-subtitle",children:["The Recap, ce sont ",(0,An.jsx)("strong",{children:"deux formats"})," compl\xe9mentaires : des ",(0,An.jsx)("strong",{children:"Live"})," pour une restitution rapide et structur\xe9e, et des ",(0,An.jsx)("strong",{children:"D\xeeners"})," pour aller plus loin, \xe9changer et approfondir les sujets cl\xe9s."]})})}),(0,An.jsx)("section",{className:"evenement-events",children:(0,An.jsxs)("div",{className:"evenement-container",children:[(0,An.jsxs)("div",{className:"evenement-card fade-in",children:[(0,An.jsx)("div",{className:"evenement-card-image",children:(0,An.jsx)("img",{src:"/images/event-nrf.jpg",alt:"The Recap - NRF New York"})}),(0,An.jsxs)("div",{className:"evenement-card-content",children:[(0,An.jsx)("h2",{className:"evenement-card-title",children:"The Recap - NRF New York"}),(0,An.jsx)("p",{className:"evenement-card-desc",children:(0,An.jsx)("em",{children:"Retrouvez tous les temps forts de la NRF 2026 \xe0 New York : du d\xeener exclusif aux visites de magasins innovants."})}),(0,An.jsxs)("div",{className:"evenement-card-buttons",children:[(0,An.jsx)("a",{href:"https://photos.app.goo.gl/GWxxTN7KiYsF5zcCA",target:"_blank",rel:"noopener noreferrer",className:"btn-evenement",children:"Le D\xeener (Album)"}),(0,An.jsx)("a",{href:"https://www.youtube.com/playlist?list=PLTmOUgKc3x9ZneYf_u6Xh-5owzQxSNvYl",target:"_blank",rel:"noopener noreferrer",className:"btn-evenement",children:"Les Store Tour (Vid\xe9os)"}),(0,An.jsx)("a",{href:"https://www.linkedin.com/events/therecaplelivenrfnewyork7415434484470525952/theater/",target:"_blank",rel:"noopener noreferrer",className:"btn-evenement",children:"Voir le Live"})]})]})]}),(0,An.jsxs)("div",{className:"evenement-card fade-in",children:[(0,An.jsx)("div",{className:"evenement-card-image",children:(0,An.jsx)("img",{src:"/images/event-shoptalk.jpg",alt:"The Recap - Shoptalk Luxe"})}),(0,An.jsxs)("div",{className:"evenement-card-content",children:[(0,An.jsx)("h2",{className:"evenement-card-title",children:"The Recap - Shoptalk Luxe (Abu Dhabi)"}),(0,An.jsx)("p",{className:"evenement-card-desc",children:(0,An.jsx)("em",{children:"Une immersion dans le futur du retail de luxe au Moyen-Orient. D\xe9couvrez les concepts stores les plus avanc\xe9s et le d\xe9brief complet."})}),(0,An.jsxs)("div",{className:"evenement-card-buttons",children:[(0,An.jsx)("a",{href:"https://www.youtube.com/playlist?list=PLTmOUgKc3x9blrs3GydKbRIhn6beZPhnV",target:"_blank",rel:"noopener noreferrer",className:"btn-evenement",children:"Les Store Tour (Vid\xe9os)"}),(0,An.jsx)("a",{href:"https://www.linkedin.com/events/therecapleliveshoptalkluxe7408791973190578176/theater/",target:"_blank",rel:"noopener noreferrer",className:"btn-evenement",children:"Voir le Live"})]})]})]})]})})]}),Vn=()=>{const[t,n]=(0,e.useState)({name:"",email:"",message:""}),[r,a]=(0,e.useState)(!1),[s,i]=(0,e.useState)(""),[o,l]=(0,e.useState)(!1),c=e=>{n({...t,[e.target.name]:e.target.value})};return(0,An.jsxs)(An.Fragment,{children:[(0,An.jsxs)(Rn,{children:[(0,An.jsx)("title",{children:"The Recap - Nous contacter"}),(0,An.jsx)("meta",{name:"description",content:"Parlons de vos enjeux retail & e-commerce : contactez The Recap pour une demande d'info, de partenariat ou de d\xe9cryptage d'\xe9v\xe9nement."}),(0,An.jsx)("meta",{property:"og:title",content:"The Recap - Nous-contacter"}),(0,An.jsx)("meta",{property:"og:description",content:"Parlons de vos enjeux retail & e-commerce : contactez The Recap pour une demande d'info, de partenariat ou de d\xe9cryptage d'\xe9v\xe9nement."}),(0,An.jsx)("meta",{property:"og:type",content:"website"}),(0,An.jsx)("meta",{name:"twitter:card",content:"summary_large_image"})]}),(0,An.jsx)("section",{className:"contact-section",children:(0,An.jsxs)("div",{className:"contact-container fade-in",children:[(0,An.jsx)("h1",{className:"contact-title",children:"Une question, un projet, une envie d'\xe9changer ?"}),(0,An.jsx)("p",{className:"contact-subtitle",children:"Laissez-nous un message, nous vous recontactons rapidement."}),r?(0,An.jsx)("div",{className:"contact-success",children:"Merci ! Votre message a bien \xe9t\xe9 envoy\xe9 !"}):(0,An.jsxs)("form",{className:"contact-form",onSubmit:async e=>{e.preventDefault(),i(""),l(!0);try{const e=await fetch("/api/send-contact",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}),n=await e.json();if(!e.ok)throw new Error(n.error||"Erreur lors de l'envoi");a(!0)}catch(n){i(n.message||"Il y a eu une erreur dans l'envoi de votre message.")}finally{l(!1)}},children:[(0,An.jsxs)("div",{className:"form-group",children:[(0,An.jsx)("label",{htmlFor:"name",className:"form-label",children:"Nom"}),(0,An.jsx)("input",{type:"text",id:"name",name:"name",className:"form-input",value:t.name,onChange:c,required:!0})]}),(0,An.jsxs)("div",{className:"form-group",children:[(0,An.jsx)("label",{htmlFor:"email",className:"form-label",children:"Email"}),(0,An.jsx)("input",{type:"email",id:"email",name:"email",className:"form-input",value:t.email,onChange:c,required:!0})]}),(0,An.jsxs)("div",{className:"form-group",children:[(0,An.jsx)("label",{htmlFor:"message",className:"form-label",children:"Message"}),(0,An.jsx)("textarea",{id:"message",name:"message",className:"form-textarea",rows:"6",value:t.message,onChange:c,required:!0})]}),s&&(0,An.jsx)("div",{className:"contact-error",children:s}),(0,An.jsx)("button",{type:"submit",className:"btn-submit",disabled:o,children:o?"Envoi en cours...":"Envoyer"})]})]})})]})},Kn=()=>{const[t,n]=(0,e.useState)({Firstname:"",Lastname:"",Company:"",Fonction:"",Email:"",Phone:"",RGPD:!1}
2),[r,a]=(0,e.useState)(!1),[s,i]=(0,e.useState)(!1),o=e=>{const{name:r,value:a,type:s,checked:i}=e.target;n({...t,[r]:"checkbox"===s?i:a})};return(0,An.jsxs)(An.Fragment,{children:[(0,An.jsxs)(Rn,{children:[(0,An.jsx)("title",{children:"The Recap - Inscription \xe9v\xe9nement"}),(0,An.jsx)("meta",{name:"description",content:"Inscrivez-vous aux diff\xe9rents \xe9v\xe9nements The Recap et recevez une restitution claire et actionnable des temps forts : tendances, innovations, strat\xe9gies retail et e-commerce."}),(0,An.jsx)("meta",{property:"og:title",content:"The Recap - Inscription \xe9v\xe9nement"}),(0,An.jsx)("meta",{property:"og:description",content:"Inscrivez-vous aux diff\xe9rents \xe9v\xe9nements The Recap et recevez une restitution claire et actionnable des temps forts : tendances, innovations, strat\xe9gies retail et e-commerce."}),(0,An.jsx)("meta",{property:"og:type",content:"website"}),(0,An.jsx)("meta",{name:"twitter:card",content:"summary_large_image"})]}),(0,An.jsx)("section",{className:"inscription-hero",style:{background:"linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url(/images/hero-bg.png) center/cover no-repeat"},children:(0,An.jsx)("div",{className:"page-hero-overlay",children:(0,An.jsxs)("div",{className:"page-hero-content",children:[(0,An.jsx)("img",{src:"/images/logo-blanc.png",alt:"THE RECAP Logo",className:"page-hero-logo fade-in"}),(0,An.jsx)("h1",{className:"page-hero-title fade-in",children:"Inscription"})]})})}),(0,An.jsx)("section",{className:"inscription-intro fade-in",children:(0,An.jsx)("div",{className:"inscription-container",children:(0,An.jsxs)("h2",{className:"inscription-subtitle",children:["Les ",(0,An.jsx)("strong",{children:"D\xeeners The Recap"})," prolongent les ",(0,An.jsx)("strong",{children:"Live"})," \xe0 travers des rencontres exclusives en petit comit\xe9. Un format pens\xe9 pour approfondir les sujets cl\xe9s, \xe9changer entre pairs et cr\xe9er des discussions \xe0 forte valeur ajout\xe9e, dans un ",(0,An.jsx)("strong",{children:"cadre privil\xe9gi\xe9"}),"."]})})}),(0,An.jsx)("section",{className:"inscription-form-section",children:(0,An.jsxs)("div",{className:"inscription-container",children:[(0,An.jsx)("h2",{className:"inscription-form-title",children:"Les prochains d\xeeners :"}),(0,An.jsx)("h3",{className:"inscription-form-subtitle",children:"Inscription au prochain d\xeener du 11 juin 2026 \xe0 Paris"}),(0,An.jsx)("p",{className:"inscription-note",children:"R\xe9serv\xe9 aux retailers"}),r?(0,An.jsx)("div",{className:"inscription-success fade-in",children:"Merci ! Votre demande a bien \xe9t\xe9 prise en compte ! Nous vous confirmerons rapidement la prise en compte de votre inscription."}):(0,An.jsxs)("form",{className:"inscription-form fade-in",onSubmit:async e=>{e.preventDefault();const n={name:"TR Inscriptions",data:{Firstname:t.Firstname,Lastname:t.Lastname,Company:t.Company,Fonction:t.Fonction,Email:t.Email,Phone:t.Phone,rgpd:t.RGPD?"true":"false"}};try{(await fetch("https://flows.butterflyagency.io/webhook/webflow-forms-submisssion",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({triggerType:"form_submission",payload:n})})).ok?(a(!0),i(!1)):i(!0)}catch(r){i(!0)}},children:[(0,An.jsxs)("div",{className:"form-row",children:[(0,An.jsxs)("div",{className:"form-group",children:[(0,An.jsx)("label",{htmlFor:"Lastname",className:"form-label",children:"Nom"}),(0,An.jsx)("input",{type:"text",id:"Lastname",name:"Lastname",className:"form-input",value:t.Lastname,onChange:o,required:!0})]}),(0,An.jsxs)("div",{className:"form-group",children:[(0,An.jsx)("label",{htmlFor:"Firstname",className:"form-label",children:"Pr\xe9nom"}),(0,An.jsx)("input",{type:"text",id:"Firstname",name:"Firstname",className:"form-input",value:t.Firstname,onChange:o,required:!0})]})]}),(0,An.jsxs)("div",{className:"form-row",children:[(0,An.jsxs)("div",{className:"form-group",children:[(0,An.jsx)("label",{htmlFor:"Company",className:"form-label",children:"Soci\xe9t\xe9"}),(0,An.jsx)("input",{type:"text",id:"Company",name:"Company",className:"form-input",value:t.Company,onChange:o})]}),(0,An.jsxs)("div",{className:"form-group",children:[(0,An.jsx)("label",{htmlFor:"Fonction",className:"form-label",children:"Fonction"}),(0,An.jsx)("input",{type:"text",id:"Fonction",name:"Fonction",className:"form-input",value:t.Fonction,onChange:o})]})]}),(0,An.jsxs)("div",{className:"form-group",children:[(0,An.jsx)("label",{htmlFor:"Email",className:"form-label",children:"Email Professionnel"}
2),(0,An.jsx)("input",{type:"email",id:"Email",name:"Email",className:"form-input",value:t.Email,onChange:o,required:!0})]}),(0,An.jsxs)("div",{className:"form-group",children:[(0,An.jsx)("label",{htmlFor:"Phone",className:"form-label",children:"T\xe9l\xe9phone"}),(0,An.jsx)("input",{type:"tel",id:"Phone",name:"Phone",className:"form-input",value:t.Phone,onChange:o})]}),(0,An.jsxs)("div",{className:"form-group form-checkbox-group",children:[(0,An.jsx)("input",{type:"checkbox",id:"RGPD",name:"RGPD",className:"form-checkbox",checked:t.RGPD,onChange:o,required:!0}),(0,An.jsx)("label",{htmlFor:"RGPD",className:"form-checkbox-label",children:"En fournissant mes coordonn\xe9es, j'autorise les partenaires de THE RECAP \xe0 me contacter au sujet de ses produits et services via des communications personnalis\xe9es. Pour plus d'informations ou pour vous d\xe9sinscrire \xe0 tout moment, contactez-nous \xe0 [email protected]"})]}),s&&(0,An.jsx)("div",{className:"inscription-error",children:"Une erreur est survenue. Veuillez r\xe9essayer."}),(0,An.jsx)("button",{type:"submit",className:"btn-submit",children:"S'inscrire"})]}),(0,An.jsxs)("p",{className:"inscription-disclaimer",children:["*Cet \xe9v\xe9nement est partiellement film\xe9. Si vous ne souhaitez pas \xeatre film\xe9(e), merci de le faire savoir \xe0 ",(0,An.jsx)("a",{href:"mailto:[email protected]",children:"[email protected]"})]})]})})]})},Jn=()=>(0,An.jsxs)(An.Fragment,{children:[(0,An.jsxs)(Rn,{children:[(0,An.jsx)("title",{children:"Mentions l\xe9gales - The Recap"}),(0,An.jsx)("meta",{name:"description",content:"Mentions l\xe9gales du site The Recap - the-recap.events"}),(0,An.jsx)("meta",{property:"og:title",content:"Mentions l\xe9gales"}),(0,An.jsx)("meta",{property:"og:type",content:"website"})]}),(0,An.jsx)("section",{className:"mentions-section",children:(0,An.jsxs)("div",{className:"mentions-container fade-in",children:[(0,An.jsx)("h1",{className:"mentions-title",children:"Mentions L\xe9gales"}),(0,An.jsx)("p",{className:"mentions-date",children:"En vigueur au 07/01/2025"}),(0,An.jsxs)("div",{className:"mentions-content",children:[(0,An.jsxs)("p",{children:["Conform\xe9ment aux dispositions de la loi n\xb02004-575 du 21 juin 2004 pour la Confiance en l'\xe9conomie num\xe9rique, il est port\xe9 \xe0 la connaissance des utilisateurs et visiteurs, ci-apr\xe8s l'",(0,An.jsx)("strong",{children:"\xab Utilisateur \xbb"}),", du site https://the-recap.events/, ci-apr\xe8s le ",(0,An.jsx)("strong",{children:"\xab Site \xbb"}),", les pr\xe9sentes mentions l\xe9gales."]}),(0,An.jsx)("p",{children:"La connexion et la navigation sur le Site par l'Utilisateur implique acceptation int\xe9grale et sans r\xe9serve des pr\xe9sentes mentions l\xe9gales."}),(0,An.jsxs)("p",{children:["Ces derni\xe8res sont accessibles sur le Site \xe0 la rubrique ",(0,An.jsx)("strong",{children:"\xab Mentions l\xe9gales \xbb"}),"."]}),(0,An.jsx)("h2",{children:"\xc9dition du Site"}),(0,An.jsxs)("p",{children:["L'\xe9dition et la direction de la publication du Site est assur\xe9e par Madame Laetitia Lamari, domicili\xe9e 18 Rue Arago 94370 Sucy en Brie, dont le num\xe9ro de t\xe9l\xe9phone est 0619374187, et l'adresse e-mail [email protected], ci-apr\xe8s l'",(0,An.jsx)("strong",{children:"\xab \xc9diteur \xbb"}),"."]}),(0,An.jsx)("h2",{children:"H\xe9bergeur"}),(0,An.jsx)("p",{children:"L'h\xe9bergeur du Site est la soci\xe9t\xe9 Webflow, Inc, dont le si\xe8ge social est situ\xe9 au 398 11th Street 94103 San Francisco."}),(0,An.jsx)("h2",{children:"Acc\xe8s au Site"}),(0,An.jsx)("p",{children:"Le Site est normalement accessible, \xe0 tout moment, \xe0 l'Utilisateur. Toutefois, l'\xc9diteur pourra, \xe0 tout moment, suspendre, limiter ou interrompre le Site afin de proc\xe9der, notamment, \xe0 des mises \xe0 jour ou des modifications de son contenu. L'\xc9diteur ne pourra en aucun cas \xeatre tenu responsable des cons\xe9quences \xe9ventuelles de cette indisponibilit\xe9 sur les activit\xe9s de l'Utilisateur."}),(0,An.jsx)("h2",{children:"Collecte des Donn\xe9es"}),(0,An.jsxs)("p",{children:["Le Site assure \xe0 l'Utilisateur une collecte et un traitement des donn\xe9es personnelles dans le respect de la vie priv\xe9e conform\xe9ment \xe0 la loi n\xb078-17 du 6 janvier 1978 relative \xe0 l'informatique, aux fichiers et aux libert\xe9s et dans le respect de la r\xe9glementation applicable en mati\xe8re de traitement des donn\xe9es \xe0 caract\xe8re personnel conform\xe9ment au r\xe8glement (UE) 2016/679 du Parlement europ\xe9en et du Conseil du 27 avril 2016 (ci-apr\xe8s, ensemble, la ",(0,An.jsx)("strong",{children:"\xab R\xe9glementation applicable en mati\xe8re de protection des Donn\xe9es \xe0 caract\xe8re personnel \xbb"}),")."]}),(0,An.jsx)("p",{children:"En vertu de la R\xe9glementation applicable en mati\xe8re de protection des Donn\xe9es \xe0 caract\xe8re personnel, l'Utilisateur dispose d'un droit d'acc\xe8s, de rectification, de suppression et d'opposition de ses donn\xe9es personnelles. L'Utilisateur peut exercer ce droit :"}),(0,An.jsxs)("p",{children:["- par mail \xe0 l'adresse email ",(0,An.jsx)("a",{href:"mailto:[email protected]",children:"[email protected]"})]}),(0,An.jsx)("p",{children:"Toute utilisation, reproduction, diffusion, commercialisation, modification de toute ou partie du Site, sans autorisation expresse de l'\xc9diteur est prohib\xe9e et pourra entra\xeener des actions et poursuites judiciaires telles que pr\xe9vues par la r\xe9glementation en vigueur."}),(0,An.jsxs)("p",{children:["Pour plus d'informations, se reporter aux CGU du site ",(0,An.jsx)("a",{href:"https://the-recap.events/",children:"https://the-recap.events/"})," accessibles depuis la rubrique \xab CGU \xbb."]})]})]})})]}),Gn=()=>(0,An.jsxs)(An.Fragment,{children:[(0,An.jsxs)(Rn,{children:[(0,An.jsx)("title",{children:"Page non trouv\xe9e - The Recap"}),(0,An.jsx)("meta",{name:"description",content:"La page que vous recherchez n'existe pas."})]}),(0,An.jsx)("section",{className:"notfound-section",children:(0,An.jsxs)("div",{className:"notfound-container fade-in",children:[(0,An.jsx)("h1",{className:"notfound-code",children:"404"}),(0,An.jsx)("h2",{className:"notfound-title",children:"Page non trouv\xe9e"}),(0,An.jsx)("p",{className:"notfound-text",children:"La page que vous recherchez n'existe pas ou a \xe9t\xe9 d\xe9plac\xe9e."}),(0,An.jsx)("div",{className:"notfound-actions",children:(0,An.jsx)(wt,{to:"/",className:"notfound-btn",children:"Retour \xe0 l'accueil"})})]})})]}),Qn=(0,e.createContext)(),Yn=t=>{let{children:n}=t;const[r,a]=(0,e.useState)(null),[s,i]=(0,e.useState)(!0),o=async()=>{i(!0);try{const e=await fetch("/.netlify/functions/verify-session",{method:"GET",credentials:"include",headers:{"Content-Type":"application/json"}});if(e.ok){const t=await e.json();a(t.member)}else a(null)}catch(e){console.error("Session check error:",e),a(null)}finally{i(!1)}};return(0,e.useEffect)(()=>{o()},[]),(0,An.jsx)(Qn.Provider,{value:{member:r,loading:s,login:async e=>{try{const t=await fetch("/.netlify/functions/send-magic-link",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:e})});if(t.ok)return{success:!0};return{success:!1,error:(await t.json()).message||"Impossible d'envoyer le lien"}}catch(t){return console.error("Login error:",t),{success:!1,error:t.message}}},logout:async()=>{try{await fetch("/.netlify/functions/logout",{method:"POST",credentials:"include"})}catch(e){console.error("Logout error:",e)}a(null)},checkSession:o},children:n})},Xn=()=>{const t=(0,e.useContext)(Qn);if(!t)throw new Error("useAuth must be used within an AuthProvider");return t},Zn=()=>{const{member:t,logout:n}=Xn(),r=ue(),[a,s]=(0,e.useState)(!1);return(0,An.jsx)("nav",{className:"members-navbar",children:(0,An.jsxs)("div",{className:"navbar-container",children:[(0,An.jsx)(wt,{to:"/members/dashboard",className:"navbar-logo",children:(0,An.jsxs)("svg",{width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,An.jsx)("circle",{cx:"20",cy:"20",r:"18",fill:"white",stroke:"#1f5d5b",strokeWidth:"2"}),(0,An.jsx)("text",{x:"20",y:"26",textAnchor:"middle",fill:"#1f5d5b",fontSize:"16",fontWeight:"bold",fontFamily:"'Lucidity Condensed', cursive",children:"T"})]})}),(0,An.jsxs)("button",{className:"mobile-hamburger",onClick:()=>s(!a),children:[(0,An.jsx)("span",{}),(0,An.jsx)("span",{}),(0,An.jsx)("span",{})]}),(0,An.jsx)("ul",{className:"nav-menu "+(a?"active":""),children:[{path:"/members/dashboard",label:"Tableau de bord"},{path:"/members/editions",label:"\xc9ditions"},{path:"/members/directory",label:"Annuaire"}].map(e=>{return(0,An.jsx)("li",{className:"nav-item",children:(0,An.jsx)(wt,{to:e.path,className:"nav-link "+(t=e.path,r.pathname===t?"active":""),onClick:()=>s(!1),children:e.label})},e.path);var t})}),(0,An.jsx)("div",{className:"navbar-right",children:t&&(0,An.jsxs)(An.Fragment,{children:[(0,An.jsx)("span",{className:"member-name",children:t.name}),(0,An.jsx)("button",{className:"logout-button",onClick:()=>{n()},children:"D\xe9connexion"})]})})]})})},er=e=>{let{children:t}=e;const{member:n,loading:r}=Xn();return r?(0,An.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"80vh"},children:(0,An.jsx)("div",{style:{width:"50px",height:"50px",border:"4px solid #1f5d5b",borderTop:"4px solid transparent",borderRadius:"50%",animation:"spin 0.8s linear infinite"},children:(0,An.jsx)("style",{children:"\n @keyframes spin {\n 0% { transform: rotate(0deg); }\n 100% { transform: rotate(360deg); }\n }\n "})})}):n?t:(0,An.jsx)(Le,{to:"/members",replace:!0})},tr=()=>{const[t,n]=(0,e.useState)(""),[r,a]=(0,e.useState)(!1),[s,i]=(0,e.useState)(""),{login:o}=Xn(),l=fe();return(0,An.jsx)("div",{className:"login-page",children:(0,An.jsxs)("div",{className:"login-card",children:[(0,An.jsx)("div",{className:"login-logo",children:(0,An.jsxs)("svg",{width:"60",height:"60",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,An.jsx)("circle",{cx:"20",cy:"20",r:"18",fill:"#1f5d5b",stroke:"#1f5d5b",strokeWidth:"2"}),(0,An.jsx)("text",{x:"20",y:"26",textAnchor:"middle",fill:"white",fontSize:"16",fontWeight:"bold",fontFamily:"'Lucidity Condensed', cursive",children:"T"})]})}),(0,An.jsx)("h1",{className:"login-title",children:"Espace Membres"}),(0,An.jsx)("p",{className:"login-subtitle",children:"Acc\xe9dez au contenu exclusif r\xe9serv\xe9 aux membres The Recap"}),(0,An.jsxs)("form",{onSubmit:async e=>{e.preventDefault(),i(""),a(!0);const n=await o(t);n.success?l(`/members/check-email?email=${encodeURIComponent(t)}`):i(n.error||"Impossible d'envoyer le lien"),a(!1)},className:"login-form",children:[(0,An.jsx)("div",{className:"form-group",children:(0,An.jsx)("input",{type:"email",placeholder:"Votre adresse email",value:t,onChange:e=>n(e.target.value),required:!0,className:"email-input"})}),s&&(0,An.jsx)("div",{className:"error-message",children:s}),(0,An.jsx)("button",{type:"submit",className:"send-button",disabled:r,children:r?"Envoi en cours...":"Recevoir mon lien de connexion"})]}),(0,An.jsx)("p",{className:"access-note",children:"Acc\xe8s r\xe9serv\xe9 aux membres The Recap."}),(0,An.jsx)(wt,{to:"/",className:"back-link",children:"Retour au site"})]})})},nr=()=>{const[t]=_t(),n=(0,e.useMemo)(()=>t.get("email")||"",[t]);return(0,An.jsx)("div",{className:"check-email-page",children:(0,An.jsxs)("div",{className:"check-email-card",children:[(0,An.jsx)("div",{className:"email-icon",children:(0,An.jsxs)("svg",{width:"80",height:"80",viewBox:"0 0 80 80",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,An.jsx)("rect",{x:"10",y:"20",width:"60",height:"40",rx:"4",fill:"none",stroke:"#1f5d5b",strokeWidth:"2"}),(0,An.jsx)("path",{d:"M10 20L40 45L70 20",stroke:"#1f5d5b",strokeWidth:"2",strokeLinecap:"round"})]})}),(0,An.jsx)("h1",{className:"check-email-title",children:"V\xe9rifiez votre bo\xeete mail"}),(0,An.jsxs)("p",{className:"check-email-message",children:["Un lien de connexion a \xe9t\xe9 envoy\xe9 \xe0 ",(0,An.jsx)("strong",{children:n})]}),(0,An.jsx)("div",{className:"email-badge",children:"Le lien expire dans 15 minutes"}),(0,An.jsxs)("p",{className:"spam-notice",children:["Pensez \xe0 v\xe9rifier vos ",(0,An.jsx)("strong",{children:"spams"})," si vous ne trouvez pas l'email."]}),(0,An.jsx)(wt,{to:"/members",className:"back-link",children:"Retour \xe0 la connexion"})]})})},rr=()=>{const[t]=_t(),n=fe(),{checkSession:r}=Xn(),[a,s]=(0,e.useState)("verifying"),[i,o]=(0,e.useState)(""),l=t.get("token");return(0,e.useEffect)(()=>{(async()=>
2{if(!l)return s("error"),void o("Aucun jeton de v\xe9rification fourni");try{const e=await fetch(`/.netlify/functions/verify-magic-link?token=${encodeURIComponent(l)}`,{method:"GET",credentials:"include",headers:{"Content-Type":"application/json"}});if(e.ok)s("success"),await r(),setTimeout(()=>{n("/members/dashboard",{replace:!0})},1500);else{const t=await e.json();s("error"),o(t.message||"Lien invalide ou expir\xe9")}}catch(e){console.error("Verification error:",e),s("error"),o("La v\xe9rification a \xe9chou\xe9. Veuillez r\xe9essayer.")}})()},[l,n,r]),(0,An.jsx)("div",{className:"verify-page",children:(0,An.jsxs)("div",{className:"verify-card",children:["verifying"===a&&(0,An.jsxs)("div",{className:"verify-state verifying",children:[(0,An.jsx)("div",{className:"spinner"}),(0,An.jsx)("p",{children:"V\xe9rification de votre acc\xe8s..."})]}),"success"===a&&(0,An.jsxs)("div",{className:"verify-state success",children:[(0,An.jsx)("div",{className:"success-icon",children:(0,An.jsxs)("svg",{width:"80",height:"80",viewBox:"0 0 80 80",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,An.jsx)("circle",{cx:"40",cy:"40",r:"38",fill:"none",stroke:"#4caf50",strokeWidth:"2"}),(0,An.jsx)("path",{d:"M25 40L35 50L55 30",stroke:"#4caf50",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"})]})}),(0,An.jsx)("h1",{children:"Acc\xe8s autoris\xe9 !"}),(0,An.jsx)("p",{children:"Redirection vers votre tableau de bord..."})]}),"error"===a&&(0,An.jsxs)("div",{className:"verify-state error",children:[(0,An.jsx)("div",{className:"error-icon",children:(0,An.jsxs)("svg",{width:"80",height:"80",viewBox:"0 0 80 80",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,An.jsx)("circle",{cx:"40",cy:"40",r:"38",fill:"none",stroke:"#d32f2f",strokeWidth:"2"}),(0,An.jsx)("path",{d:"M28 28L52 52M52 28L28 52",stroke:"#d32f2f",strokeWidth:"3",strokeLinecap:"round"})]})}),(0,An.jsx)("h1",{children:"\xc9chec de la v\xe9rification"}),(0,An.jsx)("p",{children:i}),(0,An.jsx)("a",{href:"/members",className:"retry-link",children:"Demander un nouveau lien"})]})]})})};function ar(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n}function sr(e,t,n,r){return new(n||(n=Promise))(function(a,s){function i(e){try{l(r.next(e))}catch(Uo){s(Uo)}}function o(e){try{l(r.throw(e))}catch(Uo){s(Uo)}}function l(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(i,o)}l((r=r.apply(e,t||[])).next())})}Object.create;Object.create;"function"===typeof SuppressedError&&SuppressedError;class ir extends Error{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"FunctionsError",n=arguments.length>2?arguments[2]:void 0;super(e),this.name=t,this.context=n}toJSON(){return{name:this.name,message:this.message,context:this.context}}}class or extends ir{constructor(e){super("Failed to send a request to the Edge Function","FunctionsFetchError",e)}}class lr extends ir{constructor(e){super("Relay Error invoking the Edge Function","FunctionsRelayError",e)}}class cr extends ir{constructor(e){super("Edge Function returned a non-2xx status code","FunctionsHttpError",e)}}var ur;!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"}(ur||(ur={}));class dr{constructor(e){let{headers:t={},customFetch:n,region:r=ur.Any}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.url=e,this.headers=t,this.region=r,this.fetch=(e=>e?function(){return e(...arguments)}:function(){return fetch(...arguments)})(n)}setAuth(e){this.headers.Authorization=`Bearer ${e}`}invoke(e){return sr(this,arguments,void 0,function(e){var t=this;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function*(){var r;let a,s;try{const{headers:i,method:o,body:l,signal:c,timeout:u}=n;let d={},{region:h}=n;
2h||(h=t.region);const f=new URL(`${t.url}/${e}`);let p;h&&"any"!==h&&(d["x-region"]=h,f.searchParams.set("forceFunctionRegion",h)),l&&(i&&!Object.prototype.hasOwnProperty.call(i,"Content-Type")||!i)?"undefined"!==typeof Blob&&l instanceof Blob||l instanceof ArrayBuffer?(d["Content-Type"]="application/octet-stream",p=l):"string"===typeof l?(d["Content-Type"]="text/plain",p=l):"undefined"!==typeof FormData&&l instanceof FormData?p=l:(d["Content-Type"]="application/json",p=JSON.stringify(l)):p=!l||"string"===typeof l||"undefined"!==typeof Blob&&l instanceof Blob||l instanceof ArrayBuffer||"undefined"!==typeof FormData&&l instanceof FormData?l:JSON.stringify(l);let m=c;u&&(s=new AbortController,a=setTimeout(()=>s.abort(),u),c?(m=s.signal,c.addEventListener("abort",()=>s.abort())):m=s.signal);const g=yield t.fetch(f.toString(),{method:o||"POST",headers:Object.assign(Object.assign(Object.assign({},d),t.headers),i),body:p,signal:m}).catch(e=>{throw new or(e)}),v=g.headers.get("x-relay-error");if(v&&"true"===v)throw new lr(g);if(!g.ok)throw new cr(g);let y,b=(null!==(r=g.headers.get("Content-Type"))&&void 0!==r?r:"text/plain").split(";")[0].trim();return y="application/json"===b?yield g.json():"application/octet-stream"===b||"application/pdf"===b?yield g.blob():"text/event-stream"===b?g:"multipart/form-data"===b?yield g.formData():yield g.text(),{data:y,error:null,response:g}}catch(i){return{data:null,error:i,response:i instanceof cr||i instanceof lr?i.context:void 0}}finally{a&&clearTimeout(a)}}()})}}const hr=e=>Math.min(1e3*2**e,3e4),fr=[520,503],pr=["GET","HEAD","OPTIONS"];var mr=class extends Error{constructor(e){super(e.message),this.name="PostgrestError",this.details=e.details,this.hint=e.hint,this.co
2de=e.code}toJSON(){return{name:this.name,message:this.message,details:this.details,hint:this.hint,code:this.code}}};function gr(e,t){return new Promise(n=>{if(null===t||void 0===t?void 0:t.aborted)return void n();const r=setTimeout(()=>{null===t||void 0===t||t.removeEventListener("abort",a),n()},e);function a(){clearTimeout(r),n()}null===t||void 0===t||t.addEventListener("abort",a)})}function vr(e,t,n,r){return!(!r||n>=3)&&(!!pr.includes(e)&&!!fr.includes(t))}var yr=class{constructor(e){var t,n,r,a,s;this.shouldThrowOnError=!1,this.retryEnabled=!0,this.method=e.method,this.url=e.url,this.headers=new Headers(e.headers),this.schema=e.schema,this.body=e.body,this.shouldThrowOnError=null!==(t=e.shouldThrowOnError)&&void 0!==t&&t,this.signal=e.signal,this.isMaybeSingle=null!==(n=e.isMaybeSingle)&&void 0!==n&&n,this.shouldStripNulls=null!==(r=e.shouldStripNulls)&&void 0!==r&&r,this.urlLengthLimit=null!==(a=e.urlLengthLimit)&&void 0!==a?a:8e3,this.retryEnabled=null===(s=e.retry)||void 0===s||s,e.fetch?this.fetch=e.fetch:this.fetch=fetch}throwOnError(){return this.shouldThrowOnError=!0,this}stripNulls(){if("text/csv"===this.headers.get("Accept"))throw new Error("stripNulls() cannot be used with csv()");return this.shouldStripNulls=!0,this}setHeader(e,t){return this.headers=new Headers(this.headers),this.headers.set(e,t),this}retry(e){return this.retryEnabled=e,this}then(e,t){var n=this;if(void 0===this.schema||(["GET","HEAD"].includes(this.method)?this.headers.set("Accept-Profile",this.schema):this.headers.set("Content-Profile",this.schema)),"GET"!==this.method&&"HEAD"!==this.method&&this.headers.set("Content-Type","application/json"),this.shouldStripNulls){const e=this.headers.get("Accept");"application/vnd.pgrst.object+json"===e?this.headers.set("Accept","application/vnd.pgrst.object+json;nulls=stripped"):e&&"application/json"!==e||this.headers.set("Accept","application/vnd.pgrst.array+json;nulls=stripped")}const r=this.fetch;let a=(async()=>{let e=0;for(;;){const i=new Headers(n.headers);let o;e>0&&i.set("X-Retry-Count",String(e));try{o=await r(n.url.toString(),{method:n.method,headers:i,body:JSON.stringify(n.body,(e,t)=>"bigint"===typeof t?t.toString():t),signal:n.signal})}catch(s){if("AbortError"===(null===s||void 0===s?void 0:s.name)||"ABORT_ERR"===(null===s||void 0===s?void 0:s.code))throw s;if(!pr.includes(n.method))throw s;if(n.retryEnabled&&e<3){const t=hr(e);e++,await gr(t,n.signal);continue}throw s}if(vr(n.method,o.status,e,n.retryEnabled)){var t,a;const r=null!==(t=null===(a=o.headers)||void 0===a?void 0:a.get("Retry-After"))&&void 0!==t?t:null,s=null!==r?1e3*Math.max(0,parseInt(r,10)||0):hr(e);await o.text(),e++,await gr(s,n.signal);continue}return await n.processResponse(o)}})();return this.shouldThrowOnError||(a=a.catch(e=>{var t;let n="",r="",a="";const s=null===e||void 0===e?void 0:e.cause;if(s){var i,o,l,c;const t=null!==(i=null===s||void 0===s?void 0:s.message)&&void 0!==i?i:"",r=null!==(o=null===s||void 0===s?void 0:s.code)&&void 0!==o?o:"";n=`${null!==(l=null===e||void 0===e?void 0:e.name)&&void 0!==l?l:"FetchError"}: ${null===e||void 0===e?void 0:e.message}`,n+=`\n\nCaused by: ${null!==(c=null===s||void 0===s?void 0:s.name)&&void 0!==c?c:"Error"}: ${t}`,r&&(n+=` (${r})`),(null===s||void 0===s?void 0:s.stack)&&(n+=`\n${s.stack}`)}else{var u;n=null!==(u=null===e||void 0===e?void 0:e.stack)&&void 0!==u?u:""}const d=this.url.toString().length;return"AbortError"===(null===e||void 0===e?void 0:e.name)||"ABORT_ERR"===(null===e||void 0===e?void 0:e.code)?(a="",r="Request was aborted (timeout or manual cancellation)",d>this.urlLengthLimit&&(r+=`. Note: Your request URL is ${d} characters, which may exceed server limits. If selecting many fields, consider using views. If filtering with large arrays (e.g., .in('id', [many IDs])), consider using an RPC function to pass values server-side.`)):"HeadersOverflowError"!==(null===s||void 0===s?void 0:s.name)&&"UND_ERR_HEADERS_OVERFLOW"!==(null===s||void 0===s?void 0:s.code)||(a="",r="HTTP headers exceeded server limits (typically 16KB)",d>this.urlLengthLimit&&(r+=`. Your request URL is ${d} characters. If selecting many fields, consider using views. If filtering with large arrays (e.g., .in('id', [200+ IDs])), consider using an RPC function instead.`)),{success:!1,error:{message:`${null!==(t=null===e||void 0===e?void 0:e.name)&&void 0!==t?t:"FetchError"}: ${null===e||void 0===e?void 0:e.message}`,details:n,hint:r,code:a},data:null,count:null,status:0,statusText:""}}
2)),a.then(e,t)}async processResponse(e){var t=this;let n=null,r=null,a=null,s=e.status,i=e.statusText;if(e.ok){var o,l;if("HEAD"!==t.method){var c;const n=await e.text();""===n||(r="text/csv"===t.headers.get("Accept")||t.headers.get("Accept")&&(null===(c=t.headers.get("Accept"))||void 0===c?void 0:c.includes("application/vnd.pgrst.plan+text"))?n:JSON.parse(n))}const u=null===(o=t.headers.get("Prefer"))||void 0===o?void 0:o.match(/count=(exact|planned|estimated)/),d=null===(l=e.headers.get("content-range"))||void 0===l?void 0:l.split("/");u&&d&&d.length>1&&(a=parseInt(d[1])),t.isMaybeSingle&&Array.isArray(r)&&(r.length>1?(n={code:"PGRST116",details:`Results contain ${r.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:"JSON object requested, multiple (or no) rows returned"},r=null,a=null,s=406,i="Not Acceptable"):r=1===r.length?r[0]:null)}else{const a=await e.text();try{n=JSON.parse(a),Array.isArray(n)&&404===e.status&&(r=[],n=null,s=200,i="OK")}catch(u){404===e.status&&""===a?(s=204,i="No Content"):n={message:a}}if(n&&t.shouldThrowOnError)throw new mr(n)}return{success:null===n,error:n,data:r,count:a,status:s,statusText:i}}returns(){return this}overrideTypes(){return this}},br=class extends yr{select(e){let t=!1;const n=(null!==e&&void 0!==e?e:"*").split("").map(e=>/\s/.test(e)&&!t?"":('"'===e&&(t=!t),e)).join("");return this.url.searchParams.set("select",n),this.headers.append("Prefer","return=representation"),this}order(e){let{ascending:t=!0,nullsFirst:n,foreignTable:r,referencedTable:a=r}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const s=a?`${a}.order`:"order",i=this.url.searchParams.get(s);return this.url.searchParams.set(s,`${i?`${i},`:""}${e}.${t?"asc":"desc"}${void 0===n?"":n?".nullsfirst":".nullslast"}`),this}limit(e){let{foreignTable:t,referencedTable:n=t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r="undefined"===typeof n?"limit":`${n}.limit`;return this.url.searchParams.set(r,`${e}`),this}range(e,t){let{foreignTable:n,referencedTable:r=n}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const a="undefined"===typeof r?"offset":`${r}.offset`,s="undefined"===typeof r?"limit":`${r}.limit`;return this.url.searchParams.set(a,`${e}`),this.url.searchParams.set(s,""+(t-e+1)),this}abortSignal(e){return this.signal=e,this}single(){return this.headers.set("Accept","application/vnd.pgrst.object+json"),this}maybeSingle(){return this.isMaybeSingle=!0,this}csv(){return this.headers.set("Accept","text/csv"),this}geojson(){return this.headers.set("Accept","application/geo+json"),this}explain(){let{analyze:e=!1,verbose:t=!1,settings:n=!1,buffers:r=!1,wal:a=!1,format:s="text"}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};var i;const o=[e?"analyze":null,t?"verbose":null,n?"settings":null,r?"buffers":null,a?"wal":null].filter(Boolean).join("|"),l=null!==(i=this.headers.get("Accept"))&&void 0!==i?i:"application/json";return this.headers.set("Accept",`application/vnd.pgrst.plan+${s}; for="${l}"; options=${o};`),this}rollback(){return this.headers.append("Prefer","tx=rollback"),this}returns(){return this}maxAffected(e){return this.headers.append("Prefer","handling=strict"),this.headers.append("Prefer",`max-affected=${e}`),this}};const wr=new RegExp("[,()]");var kr=class extends br{eq(e,t){return this.url.searchParams.append(e,`eq.${t}`),this}neq(e,t){return this.url.searchParams.append(e,`neq.${t}`),this}gt(e,t){return this.url.searchParams.append(e,`gt.${t}`),this}gte(e,t){return this.url.searchParams.append(e,`gte.${t}`),this}lt(e,t){return this.url.searchParams.append(e,`lt.${t}`),this}lte(e,t){return this.url.searchParams.append(e,`lte.${t}`),this}like(e,t){return this.url.searchParams.append(e,`like.${t}`),this}likeAllOf(e,t){return this.url.searchParams.append(e,`like(all).{${t.join(",")}}`),this}likeAnyOf(e,t){return this.url.searchParams.append(e,`like(any).{${t.join(",")}}`),this}ilike(e,t){return this.url.searchParams.append(e,`ilike.${t}`),this}ilikeAllOf(e,t){return this.url.searchParams.append(e,`ilike(all).{${t.join(",")}}`),this}ilikeAnyOf(e,t){return this.url.searchParams.append(e,`ilike(any).{${t.join(",")}}`),this}regexMatch(e,t){return this.url.searchParams.append(e,`match.${t}`),this}regexIMatch(e,t){return this.url.searchParams.append(e,`imatch.${t}`),this}is(e,t){return this.url.searchParams.append(e,`is.${t}`),this}isDistinct(e,t){return this.url.searchParams.append(e,`isdistinct.${t}`),this}in(e,t){const n=Array.from(new Set(t)).map(e=>"string"===typeof e&&wr.test(e)?`"${e}"`:`${e}`).join(",");return this.url.searchParams.append(e,`in.(${n})`),this}notIn(e,t){const n=Array.from(new Set(t)).map(e=>"string"===typeof e&&wr.test(e)?`"${e}"`:`${e}`).join(",");return this.url.searchParams.append(e,`not.in.(${n})`),this}contains(e,t){return"string"===typeof t?this.url.searchParams.append(e,`cs.${t}`):Array.isArray(t)?this.url.searchParams.append(e,`cs.{${t.join(",")}}`):this.url.searchParams.append(e,`cs.${JSON.stringify(t)}`),this}containedBy(e,t){return"string"===typeof t?this.url.searchParams.append(e,`cd.${t}`):Array.isArray(t)?this.url.searchParams.append(e,`cd.{${t.join(",")}}`):this.url.searchParams.append(e,`cd.${JSON.stringify(t)}`),this}rangeGt(e,t){return this.url.searchParams.append(e,`sr.${t}`),this}rangeGte(e,t){return this.url.searchParams.append(e,`nxl.${t}`),this}rangeLt(e,t){return this.url.searchParams.append(e,`sl.${t}`),this}rangeLte(e,t){return this.url.searchParams.append(e,`nxr.${t}`),this}rangeAdjacent(e,t){return this.url.searchParams.append(e,`adj.${t}`),this}overlaps(e,t){return"string"===typeof t?this.url.searchParams.append(e,`ov.${t}`):this.url.searchParams.append(e,`ov.{${t.join(",")}}`),this}
2textSearch(e,t){let{config:n,type:r}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a="";"plain"===r?a="pl":"phrase"===r?a="ph":"websearch"===r&&(a="w");const s=void 0===n?"":`(${n})`;return this.url.searchParams.append(e,`${a}fts${s}.${t}`),this}match(e){return Object.entries(e).filter(e=>{let[t,n]=e;return void 0!==n}).forEach(e=>{let[t,n]=e;this.url.searchParams.append(t,`eq.${n}`)}),this}not(e,t,n){return this.url.searchParams.append(e,`not.${t}.${n}`),this}or(e){let{foreignTable:t,referencedTable:n=t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=n?`${n}.or`:"or";return this.url.searchParams.append(r,`(${e})`),this}filter(e,t,n){return this.url.searchParams.append(e,`${t}.${n}`),this}},Sr=class{constructor(e,t){let{headers:n={},schema:r,fetch:a,urlLengthLimit:s=8e3,retry:i}=t;this.url=e,this.headers=new Headers(n),this.schema=r,this.fetch=a,this.urlLengthLimit=s,this.retry=i}cloneRequestState(){return{url:new URL(this.url.toString()),headers:new Headers(this.headers)}}select(e,t){const{head:n=!1,count:r}=null!==t&&void 0!==t?t:{},a=n?"HEAD":"GET";let s=!1;const i=(null!==e&&void 0!==e?e:"*").split("").map(e=>/\s/.test(e)&&!s?"":('"'===e&&(s=!s),e)).join(""),{url:o,headers:l}=this.cloneRequestState();return o.searchParams.set("select",i),r&&l.append("Prefer",`count=${r}`),new kr({method:a,url:o,headers:l,schema:this.schema,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}insert(e){let{count:t,defaultToNull:n=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};var r;const{url:a,headers:s}=this.cloneRequestState();if(t&&s.append("Prefer",`count=${t}`),n||s.append("Prefer","missing=default"),Array.isArray(e)){const t=e.reduce((e,t)=>e.concat(Object.keys(t)),[]);if(t.length>0){const e=[...new Set(t)].map(e=>`"${e}"`);a.searchParams.set("columns",e.join(","))}}return new kr({method:"POST",url:a,headers:s,schema:this.schema,body:e,fetch:null!==(r=this.fetch)&&void 0!==r?r:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}upsert(e){let{onConflict:t,ignoreDuplicates:n=!1,count:r,defaultToNull:a=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};var s;const{url:i,headers:o}=this.cloneRequestState();if(o.append("Prefer",`resolution=${n?"ignore":"merge"}-duplicates`),void 0!==t&&i.searchParams.set("on_conflict",t),r&&o.append("Prefer",`count=${r}`),a||o.append("Prefer","missing=default"),Array.isArray(e)){const t=e.reduce((e,t)=>e.concat(Object.keys(t)),[]);if(t.length>0){const e=[...new Set(t)].map(e=>`"${e}"`);i.searchParams.set("columns",e.join(","))}}return new kr({method:"POST",url:i,headers:o,schema:this.schema,body:e,fetch:null!==(s=this.fetch)&&void 0!==s?s:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}update(e){let{count:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};var n;const{url:r,headers:a}=this.cloneRequestState();return t&&a.append("Prefer",`count=${t}`),new kr({method:"PATCH",url:r,headers:a,schema:this.schema,body:e,fetch:null!==(n=this.fetch)&&void 0!==n?n:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}delete(){let{count:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};var t;const{url:n,headers:r}=this.cloneRequestState();return e&&r.append("Prefer",`count=${e}`),new kr({method:"DELETE",url:n,headers:r,schema:this.schema,fetch:null!==(t=this.fetch)&&void 0!==t?t:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}};function xr(e){return(xr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _r(e){var t=function(e,t){if("object"!=xr(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=xr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==xr(t)?t:t+""}function Er(e,t,n){return(t=_r(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Tr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?jr(Object(n),!0).forEach(function(t){Er(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jr(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Nr=class e{constructor(e){let{headers:t={},schema:n,fetch:r,timeout:a,urlLengthLimit:s=8e3,retry:i}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.url=e,this.headers=new Headers(t),this.schemaName=n,this.urlLengthLimit=s;const o=null!==r&&void 0!==r?r:globalThis.fetch;this.fetch=void 0!==a&&a>0?(e,t)=>{const n=new AbortController,r=setTimeout(()=>n.abort(),a),s=null===t||void 0===t?void 0:t.signal;if(s){if(s.aborted)return clearTimeout(r),o(e,t);const a=()=>{clearTimeout(r),n.abort()};return s.addEventListener("abort",a,{once:!0}),o(e,Tr(Tr({},t),{},{signal:n.signal})).finally(()=>{clearTimeout(r),s.removeEventListener("abort",a)})}return o(e,Tr(Tr({},t),{},{signal:n.signal})).finally(()=>clearTimeout(r))}:o,this.retry=i}from(e){if(!e||"string"!==typeof e||""===e.trim())throw new Error("Invalid relation name: relation must be a non-empty string.");return new Sr(new URL(`${this.url}/${e}`),{headers:new Headers(this.headers),schema:this.schemaName,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}schema(t){return new e(this.url,{headers:this.headers,schema:t,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}rpc(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{head:n=!1,get:r=!1,count:a}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};var s;let i;const o=new URL(`${this.url}/rpc/${e}`);let l;const c=e=>null!==e&&"object"===typeof e&&(!Array.isArray(e)||e.some(c)),u=n&&Object.values(t).some(c);u?(i="POST",l=t):n||r?(i=n?"HEAD":"GET",Object.entries(t).filter(e=>{let[t,n]=e;return void 0!==n}).map(e=>{let[t,n]=e;return[t,Array.isArray(n)?`{${n.join(",")}}`:`${n}`]}).forEach(e=>{let[t,n]=e;o.searchParams.append(t,n)})):(i="POST",l=t);const d=new Headers(this.headers);return u?d.set("Prefer",a?`count=${a},return=minimal`:"return=minimal"):a&&d.set("Prefer",`count=${a}`),new kr({method:i,url:o,headers:d,schema:this.schemaName,body:l,fetch:null!==(s=this.fetch)&&void 0!==s?s:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}};const Cr=class{constructor(){}static detectEnvironment(){var e;if("undefined"!==typeof WebSocket)return{type:"native",constructor:WebSocket};if("undefined"!==typeof globalThis&&"undefined"!==typeof globalThis.WebSocket)return{type:"native",constructor:globalThis.WebSocket};if("undefined"!==typeof globalThis&&"undefined"!==typeof globalThis.WebSocket)return{type:"native",constructor:globalThis.WebSocket};if("undefined"!==typeof globalThis&&"undefined"!==typeof globalThis.WebSocketPair&&"undefined"===typeof globalThis.WebSocket)return{type:"cloudflare",error:"Cloudflare Workers detected. WebSocket clients are not supported in Cloudflare Workers.",workaround:"Use Cloudflare Workers WebSocket API for server-side WebSocket handling, or deploy to a different runtime."};if("undefined"!==typeof globalThis&&globalThis.EdgeRuntime||"undefined"!==typeof navigator&&(null===(e=navigator.userAgent)||void 0===e?void 0:e.includes("Vercel-Edge")))return{type:"unsupported",error:"Edge runtime detected (Vercel Edge/Netlify Edge). WebSockets are not supported in edge functions.",workaround:"Use serverless functions or a different deployment target for WebSocket functionality."};const t=globalThis.process;if(t){const e=t.versions;if(e&&e.node){const t=e.node,n=parseInt(t.replace(/^v/,"").split(".")[0]);return n>=22?"undefined"!==typeof globalThis.WebSocket?{type:"native",constructor:globalThis.WebSocket}:{type:"unsupported",error:`Node.js ${n} detected but native WebSocket not found.`,workaround:"Provide a WebSocket implementation via the transport option."}:{type:"unsupported",error:`Node.js ${n} detected without native WebSocket support.`,workaround:'For Node.js < 22, install "ws" package and provide it via the transport option:\nimport ws from "ws"\nnew RealtimeClient(url, { transport: ws })'}}}return{type:"unsupported",error:"Unknown JavaScript runtime without WebSocket support.",workaround:"Ensure you're running in a supported environment (browser, Node.js, Deno) or provide a custom WebSocket implementation."}}static getWebSocketConstructor(){const e=this.detectEnvironment();if(e.constructor)return e.constructor;let t=e.error||"WebSocket not supported in this environment.";throw e.workaround&&(t+=`\n\nSuggested solution: ${e.workaround}`),new Error(t)}static isWebSocketSupported(){try{const e=this.detectEnvironment();return"native"===e.type||"ws"===e.type}catch(e){return!1}}};const Rr="2.0.0",Ar=Rr,Or="closed",Pr="errored",Lr="joined",$r="joining",Ir="leav
2ing",Dr={close:"phx_close",error:"phx_error",join:"phx_join",reply:"phx_reply",leave:"phx_leave",access_token:"access_token"},Ur="connecting",zr="closing",Mr="closed";class Fr{constructor(e){this.HEADER_LENGTH=1,this.USER_BROADCAST_PUSH_META_LENGTH=6,this.KINDS={userBroadcastPush:3,userBroadcast:4},this.BINARY_ENCODING=0,this.JSON_ENCODING=1,this.BROADCAST_EVENT="broadcast",this.allowedMetadataKeys=[],this.allowedMetadataKeys=null!==e&&void 0!==e?e:[]}encode(e,t){if(e.event===this.BROADCAST_EVENT&&!(e.payload instanceof ArrayBuffer)&&"string"===typeof e.payload.event)return t(this._binaryEncodeUserBroadcastPush(e));let n=[e.join_ref,e.ref,e.topic,e.event,e.payload];return t(JSON.stringify(n))}_binaryEncodeUserBroadcastPush(e){var t;return this._isArrayBuffer(null===(t=e.payload)||void 0===t?void 0:t.payload)?this._encodeBinaryUserBroadcastPush(e):this._encodeJsonUserBroadcastPush(e)}_encodeBinaryUserBroadcastPush(e){var t,n;const r=null!==(n=null===(t=e.payload)||void 0===t?void 0:t.payload)&&void 0!==n?n:new ArrayBuffer(0);return this._encodeUserBroadcastPush(e,this.BINARY_ENCODING,r)}_encodeJsonUserBroadcastPush(e){var t,n;const r=null!==(n=null===(t=e.payload)||void 0===t?void 0:t.payload)&&void 0!==n?n:{},a=(new TextEncoder).encode(JSON.stringify(r)).buffer;return this._encodeUserBroadcastPush(e,this.JSON_ENCODING,a)}_encodeUserBroadcastPush(e,t,n){var r,a;const s=e.topic,i=null!==(r=e.ref)&&void 0!==r?r:"",o=null!==(a=e.join_ref)&&void 0!==a?a:"",l=e.payload.event,c=this.allowedMetadataKeys?this._pick(e.payload,this.allowedMetadataKeys):{},u=0===Object.keys(c).length?"":JSON.stringify(c);if(o.length>255)throw new Error(`joinRef length ${o.length} exceeds maximum of 255`);if(i.length>255)throw new Error(`ref length ${i.length} exceeds maximum of 255`);if(s.length>255)throw new Error(`topic length ${s.length} exceeds maximum of 255`);if(l.length>255)throw new Error(`userEvent length ${l.length} exceeds maximum of 255`);if(u.length>255)throw new Error(`metadata length ${u.length} exceeds maximum of 255`);const d=this.USER_BROADCAST_PUSH_META_LENGTH+o.length+i.length+s.length+l.length+u.length,h=new ArrayBuffer(this.HEADER_LENGTH+d);let f=new DataView(h),p=0;f.setUint8(p++,this.KINDS.userBroadcastPush),f.setUint8(p++,o.length),f.setUint8(p++,i.length),f.setUint8(p++,s.length),f.setUint8(p++,l.length),f.setUint8(p++,u.length),f.setUint8(p++,t),Array.from(o,e=>f.setUint8(p++,e.charCodeAt(0))),Array.from(i,e=>f.setUint8(p++,e.charCodeAt(0))),Array.from(s,e=>f.setUint8(p++,e.charCodeAt(0))),Array.from(l,e=>f.setUint8(p++,e.charCodeAt(0))),Array.from(u,e=>f.setUint8(p++,e.charCodeAt(0)));var m=new Uint8Array(h.byteLength+n.byteLength);return m.set(new Uint8Array(h),0),m.set(new Uint8Array(n),h.byteLength),m.buffer}decode(e,t){if(this._isArrayBuffer(e)){return t(this._binaryDecode(e))}if("string"===typeof e){const n=JSON.parse(e),[r,a,s,i,o]=n;return t({join_ref:r,ref:a,topic:s,event:i,payload:o})}return t({})}_binaryDecode(e){const t=new DataView(e),n=t.getUint8(0),r=new TextDecoder;if(n===this.KINDS.userBroadcast)return this._decodeUserBroadcast(e,t,r)}_decodeUserBroadcast(e,t,n){const r=t.getUint8(1),a=t.getUint8(2),s=t.getUint8(3),i=t.getUint8(4);let o=this.HEADER_LENGTH+4;const l=n.decode(e.slice(o,o+r));o+=r;const c=n.decode(e.slice(o,o+a));o+=a;const u=n.decode(e.slice(o,o+s));o+=s;const d=e.slice(o,e.byteLength),h=i===this.JSON_ENCODING?JSON.parse(n.decode(d)):d,f={type:this.BROADCAST_EVENT,event:c,payload:h};return s>0&&(f.meta=JSON.parse(u)),{join_ref:null,ref:null,topic:l,event:this.BROADCAST_EVENT,payload:f}}_isArrayBuffer(e){var t;return e instanceof ArrayBuffer||"ArrayBuffer"===(null===(t=null===e||void 0===e?void 0:e.constructor)||void 0===t?void 0:t.name)}_pick(e,t){return e&&"object"===typeof e?Object.fromEntries(Object.entries(e).filter(e=>{let[n]=e;return t.includes(n)})):{}}}var Br;!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"}(Br||(Br={}));const qr=function(e,t){var n;const r=null!==(n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).skipTypes)&&void 0!==n?n:[];return t?Object.keys(t).reduce((n,a)=>(n[a]=Hr(a,e,t,r),n),{}):{}},Hr=(e,t,n,r)=>{const a=t.find(t=>t.name===e),s=null===a||void 0===a?void 0:a.type,i=n[e];return s&&!r.includes(s)?Wr(s,i):Vr(i)},Wr=(e,t)=>{if("_"===e.charAt(0)){const n=e.slice(1,e.length);return Qr(t,n)}switch(e){case Br.bool:return Kr(t);case Br.float4:case Br.float8:case Br.int2:case Br.int4:case Br.int8:case Br.numeric:case Br.oid:return Jr(t);case Br.json:case Br.jsonb:return Gr(t);case Br.timestamp:return Yr(t);case Br.abstime:case Br.date:case Br.daterange:case Br.int4range:case Br.int8range:case Br.money:case Br.reltime:case Br.text:case Br.time:case Br.timestamptz:case Br.timetz:case Br.tsrange:case Br.tstzrange:default:return Vr(t)}},Vr=e=>e,Kr=e=>{switch(e){case"t":return!0;case"f":return!1;default:return e}},Jr=e=>{if("string"===typeof e){const t=parseFloat(e);
2if(!Number.isNaN(t))return t}return e},Gr=e=>{if("string"===typeof e)try{return JSON.parse(e)}catch(t){return e}return e},Qr=(e,t)=>{if("string"!==typeof e)return e;const n=e.length-1,r=e[n];if("{"===e[0]&&"}"===r){let r;const s=e.slice(1,n);try{r=JSON.parse("["+s+"]")}catch(a){r=s?s.split(","):[]}return r.map(e=>Wr(t,e))}return e},Yr=e=>"string"===typeof e?e.replace(" ","T"):e,Xr=e=>{const t=new URL(e);return t.protocol=t.protocol.replace(/^ws/i,"http"),t.pathname=t.pathname.replace(/\/+$/,"").replace(/\/socket\/websocket$/i,"").replace(/\/socket$/i,"").replace(/\/websocket$/i,""),""===t.pathname||"/"===t.pathname?t.pathname="/api/broadcast":t.pathname=t.pathname+"/api/broadcast",t.href};var Zr,ea,ta,na,ra=e=>{if("function"===typeof e)return e;return function(){return e}},aa="undefined"!==typeof self?self:null,sa="undefined"!==typeof window?window:null,ia=aa||sa||globalThis,oa=0,la=1,ca=2,ua=3,da="closed",ha="errored",fa="joined",pa="joining",ma="leaving",ga="phx_close",va="phx_error",ya="phx_join",ba="phx_reply",wa="phx_leave",ka="longpoll",Sa="websocket",xa=4,_a="base64url.bearer.phx.",Ea=class{constructor(e,t,n,r){this.channel=e,this.event=t,this.payload=n||function(){return{}},this.receivedResp=null,this.timeout=r,this.timeoutTimer=null,this.recHooks=[],this.sent=!1,this.ref=void 0}resend(e){this.timeout=e,this.reset(),this.send()}send(){this.hasReceived("timeout")||(this.startTimeout(),this.sent=!0,this.channel.socket.push({topic:this.channel.topic,event:this.event,payload:this.payload(),ref:this.ref,join_ref:this.channel.joinRef()}))}receive(e,t){return this.hasReceived(e)&&t(this.receivedResp.response),this.recHooks.push({status:e,callback:t}),this}reset(){this.cancelRefEvent(),this.ref=null,this.refEvent=null,this.receivedResp=null,this.sent=!1}destroy(){this.cancelRefEvent(),this.cancelTimeout()}matchReceive(e){let{status:t,response:n,_ref:r}=e;this.recHooks.filter(e=>e.status===t).forEach(e=>e.callback(n))}cancelRefEvent(){this.refEvent&&this.channel.off(this.refEvent)}cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=null}startTimeout(){this.timeoutTimer&&this.cancelTimeout(),this.ref=this.channel.socket.makeRef(),this.refEvent=this.channel.replyEventName(this.ref),this.channel.on(this.refEvent,e=>{this.cancelRefEvent(),this.cancelTimeout(),this.receivedResp=e,this.matchReceive(e)}),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}hasReceived(e){return this.receivedResp&&this.receivedResp.status===e}trigger(e,t){this.channel.trigger(this.refEvent,{status:e,response:t})}},ja=class{constructor(e,t){this.callback=e,this.timerCalc=t,this.timer=void 0,this.tries=0}reset(){this.tries=0,clearTimeout(this.timer)}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries=this.tries+1,this.callback()},this.timerCalc(this.tries+1))}},Ta=class{constructor(e,t,n){this.state=da,this.topic=e,this.params=ra(t||{}),this.socket=n,this.bindings=[],this.bindingRef=0,this.timeout=this.socket.timeout,this.joinedOnce=!1,this.joinPush=new Ea(this,ya,this.params,this.timeout),this.pushBuffer=[],this.stateChangeRefs=[],this.rejoinTimer=new ja(()=>{this.socket.isConnected()&&this.rejoin()},this.socket.rejoinAfterMs),this.stateChangeRefs.push(this.socket.onError(()=>this.rejoinTimer.reset())),this.stateChangeRefs.push(this.socket.onOpen(()=>{this.rejoinTimer.reset(),this.isErrored()&&this.rejoin()})),this.joinPush.receive("ok",()=>{this.state=fa,this.rejoinTimer.reset(),this.pushBuffer.forEach(e=>e.send()),this.pushBuffer=[]}),this.joinPush.receive("error",e=>{this.state=ha,this.socket.hasLogger()&&this.socket.log("channel",`error ${this.topic}`,e),this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.onClose(()=>{this.rejoinTimer.reset(),this.socket.hasLogger()&&this.socket.log("channel",`close ${this.topic}`),this.state=da,this.socket.remove(this)}),this.onError(e=>{this.socket.hasLogger()&&this.socket.log("channel",`error ${this.topic}`,e),this.isJoining()&&this.joinPush.reset(),this.state=ha,this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.joinPush.receive("timeout",()=>{this.socket.hasLogger()&&this.socket.log("channel",`timeout ${this.topic}`,this.joinPush.timeout),new Ea(this,wa,ra({}),this.timeout).send(),this.state=ha,this.joinPush.reset(),this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.on(ba,(e,t)=>{this.trigger(this.replyEventName(t),e)})}join(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.timeout;if(this.joinedOnce)throw new Error("tried to join multiple times. 'join' can only be called a single time per channel instance");return this.timeout=e,this.joinedOnce=!0,this.rejoin(),this.joinPush}
2teardown(){this.pushBuffer.forEach(e=>e.destroy()),this.pushBuffer=[],this.rejoinTimer.reset(),this.joinPush.destroy(),this.state=da,this.bindings=[]}onClose(e){this.on(ga,e)}onError(e){return this.on(va,t=>e(t))}on(e,t){let n=this.bindingRef++;return this.bindings.push({event:e,ref:n,callback:t}),n}off(e,t){this.bindings=this.bindings.filter(n=>!(n.event===e&&("undefined"===typeof t||t===n.ref)))}canPush(){return this.socket.isConnected()&&this.isJoined()}push(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.timeout;if(t=t||{},!this.joinedOnce)throw new Error(`tried to push '${e}' to '${this.topic}' before joining. Use channel.join() before pushing events`);let r=new Ea(this,e,function(){return t},n);return this.canPush()?r.send():(r.startTimeout(),this.pushBuffer.push(r)),r}leave(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.timeout;this.rejoinTimer.reset(),this.joinPush.cancelTimeout(),this.state=ma;let t=()=>{this.socket.hasLogger()&&this.socket.log("channel",`leave ${this.topic}`),this.trigger(ga,"leave")},n=new Ea(this,wa,ra({}),e);return n.receive("ok",()=>t()).receive("timeout",()=>t()),n.send(),this.canPush()||n.trigger("ok",{}),n}onMessage(e,t,n){return t}filterBindings(e,t,n){return!0}
2isMember(e,t,n,r){return this.topic===e&&(!r||r===this.joinRef()||(this.socket.hasLogger()&&this.socket.log("channel","dropping outdated message",{topic:e,event:t,payload:n,joinRef:r}),!1))}joinRef(){return this.joinPush.ref}rejoin(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.timeout;this.isLeaving()||(this.socket.leaveOpenTopic(this.topic),this.state=pa,this.joinPush.resend(e))}trigger(e,t,n,r){let a=this.onMessage(e,t,n,r);if(t&&!a)throw new Error("channel onMessage callbacks must return the payload, modified or unmodified");let s=this.bindings.filter(r=>r.event===e&&this.filterBindings(r,t,n));for(let i=0;i<s.length;i++){s[i].callback(a,n,r||this.joinRef())}}replyEventName(e){return`chan_reply_${e}`}isClosed(){return this.state===da}isErrored(){return this.state===ha}isJoined(){return this.state===fa}isJoining(){return this.state===pa}isLeaving(){return this.state===ma}},Na=class{static request(e,t,n,r,a,s,i){if(ia.XDomainRequest){let n=new ia.XDomainRequest;return this.xdomainRequest(n,e,t,r,a,s,i)}if(ia.XMLHttpRequest){let o=new ia.XMLHttpRequest;return this.xhrRequest(o,e,t,n,r,a,s,i)}if(ia.fetch&&ia.AbortController)return this.fetchRequest(e,t,n,r,a,s,i);throw new Error("No suitable XMLHttpRequest implementation found")}static fetchRequest(e,t,n,r,a,s,i){let o={method:e,headers:n,body:r},l=null;if(a){l=new AbortController;setTimeout(()=>l.abort(),a);o.signal=l.signal}return ia.fetch(t,o).then(e=>e.text()).then(e=>this.parseJSON(e)).then(e=>i&&i(e)).catch(e=>{"AbortError"===e.name&&s?s():i&&i(null)}),l}static xdomainRequest(e,t,n,r,a,s,i){return e.timeout=a,e.open(t,n),e.onload=()=>{let t=this.parseJSON(e.responseText);i&&i(t)},s&&(e.ontimeout=s),e.onprogress=()=>{},e.send(r),e}static xhrRequest(e,t,n,r,a,s,i,o){e.open(t,n,!0),e.timeout=s;for(let[l,c]of Object.entries(r))e.setRequestHeader(l,c);return e.onerror=()=>o&&o(null),e.onreadystatechange=()=>{if(e.readyState===xa&&o){let t=this.parseJSON(e.responseText);o(t)}},i&&(e.ontimeout=i),e.send(a),e}static parseJSON(e){if(!e||""===e)return null;try{return JSON.parse(e)}catch{return console&&console.log("failed to parse JSON response",e),null}}static serialize(e,t){let n=[];for(var r in e){if(!Object.prototype.hasOwnProperty.call(e,r))continue;let a=t?`${t}[${r}]`:r,s=e[r];"object"===typeof s?n.push(this.serialize(s,a)):n.push(encodeURIComponent(a)+"="+encodeURIComponent(s))}return n.join("&")}static appendParams(e,t){if(0===Object.keys(t).length)return e;let n=e.match(/\?/)?"&":"?";return`${e}${n}${this.serialize(t)}`}},Ca=class{constructor(e,t){t&&2===t.length&&t[1].startsWith(_a)&&(this.authToken=atob(t[1].slice(21))),this.endPoint=null,this.token=null,this.skipHeartbeat=!0,this.reqs=new Set,this.awaitingBatchAck=!1,this.currentBatch=null,this.currentBatchTimer=null,this.batchBuffer=[],this.onopen=function(){},this.onerror=function(){},this.onmessage=function(){},this.onclose=function(){},this.pollEndpoint=this.normalizeEndpoint(e),this.readyState=oa,setTimeout(()=>this.poll(),0)}normalizeEndpoint(e){return e.replace("ws://","http://").replace("wss://","https://").replace(new RegExp("(.*)/"+Sa),"$1/"+ka)}endpointURL(){return Na.appendParams(this.pollEndpoint,{token:this.token})}closeAndRetry(e,t,n){this.close(e,t,n),this.readyState=oa}ontimeout(){this.onerror("timeout"),this.closeAndRetry(1005,"timeout",!1)}isActive(){return this.readyState===la||this.readyState===oa}poll(){const e={Accept:"application/json"};this.authToken&&(e["X-Phoenix-AuthToken"]=this.authToken),this.ajax("GET",e,null,()=>this.ontimeout(),e=>{if(e){var{status:t,token:n,messages:r}=e;if(410===t&&null!==this.token)return this.onerror(410),void this.closeAndRetry(3410,"session_gone",!1);this.token=n}else t=0;switch(t){case 200:r.forEach(e=>{setTimeout(()=>this.onmessage({data:e}),0)}),this.poll();break;case 204:this.poll();break;case 410:this.readyState=la,this.onopen({}),this.poll();break;
2case 403:this.onerror(403),this.close(1008,"forbidden",!1);break;case 0:case 500:this.onerror(500),this.closeAndRetry(1011,"internal server error",500);break;default:throw new Error(`unhandled poll status ${t}`)}})}send(e){"string"!==typeof e&&(e=(e=>{let t="",n=new Uint8Array(e),r=n.byteLength;for(let a=0;a<r;a++)t+=String.fromCharCode(n[a]);return btoa(t)})(e)),this.currentBatch?this.currentBatch.push(e):this.awaitingBatchAck?this.batchBuffer.push(e):(this.currentBatch=[e],this.currentBatchTimer=setTimeout(()=>{this.batchSend(this.currentBatch),this.currentBatch=null},0))}batchSend(e){this.awaitingBatchAck=!0,this.ajax("POST",{"Content-Type":"application/x-ndjson"},e.join("\n"),()=>this.onerror("timeout"),e=>{this.awaitingBatchAck=!1,e&&200===e.status?this.batchBuffer.length>0&&(this.batchSend(this.batchBuffer),this.batchBuffer=[]):(this.onerror(e&&e.status),this.closeAndRetry(1011,"internal server error",!1))})}close(e,t,n){for(let a of this.reqs)a.abort();this.readyState=ua;let r=Object.assign({code:1e3,reason:void 0,wasClean:!0},{code:e,reason:t,wasClean:n});this.batchBuffer=[],clearTimeout(this.currentBatchTimer),this.currentBatchTimer=null,"undefined"!==typeof CloseEvent?this.onclose(new CloseEvent("close",r)):this.onclose(r)}ajax(e,t,n,r,a){let s;s=Na.request(e,this.endpointURL(),t,n,this.timeout,()=>{this.reqs.delete(s),r()},e=>{this.reqs.delete(s),this.isActive()&&a(e)}),this.reqs.add(s)}},Ra=class e{constructor(t){let n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).events||{state:"presence_state",diff:"presence_diff"};this.state={},this.pendingDiffs=[],this.channel=t,this.joinRef=null,this.caller={onJoin:function(){},onLeave:function(){},onSync:function(){}},this.channel.on(n.state,t=>{let{onJoin:n,onLeave:r,onSync:a}=this.caller;this.joinRef=this.channel.joinRef(),this.state=e.syncState(this.state,t,n,r),this.pendingDiffs.forEach(t=>{this.state=e.syncDiff(this.state,t,n,r)}),this.pendingDiffs=[],a()}),this.channel.on(n.diff,t=>{let{onJoin:n,onLeave:r,onSync:a}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(t):(this.state=e.syncDiff(this.state,t,n,r),a())})}onJoin(e){this.caller.onJoin=e}onLeave(e){this.caller.onLeave=e}onSync(e){this.caller.onSync=e}list(t){return e.list(this.state,t)}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel.joinRef()}static syncState(e,t,n,r){let a=this.clone(e),s={},i={};return this.map(a,(e,n)=>{t[e]||(i[e]=n)}),this.map(t,(e,t)=>{let n=a[e];if(n){let r=t.metas.map(e=>e.phx_ref),a=n.metas.map(e=>e.phx_ref),o=t.metas.filter(e=>a.indexOf(e.phx_ref)<0),l=n.metas.filter(e=>r.indexOf(e.phx_ref)<0);o.length>0&&(s[e]=t,s[e].metas=o),l.length>0&&(i[e]=this.clone(n),i[e].metas=l)}else s[e]=t}),this.syncDiff(a,{joins:s,leaves:i},n,r)}static syncDiff(e,t,n,r){let{joins:a,leaves:s}=this.clone(t);return n||(n=function(){}),r||(r=function(){}),this.map(a,(t,r)=>{let a=e[t];if(e[t]=this.clone(r),a){let n=e[t].metas.map(e=>e.phx_ref),r=a.metas.filter(e=>n.indexOf(e.phx_ref)<0);e[t].metas.unshift(...r)}n(t,a,r)}),this.map(s,(t,n)=>{let a=e[t];if(!a)return;let s=n.metas.map(e=>e.phx_ref);a.metas=a.metas.filter(e=>s.indexOf(e.phx_ref)<0),r(t,a,n),0===a.metas.length&&delete e[t]}),e}static list(e,t){return t||(t=function(e,t){return t}),this.map(e,(e,n)=>t(e,n))}static map(e,t){return Object.getOwnPropertyNames(e).map(n=>t(n,e[n]))}static clone(e){return JSON.parse(JSON.stringify(e))}},Aa={HEADER_LENGTH:1,META_LENGTH:4,KINDS:{push:0,reply:1,broadcast:2},encode(e,t){if(e.payload.constructor===ArrayBuffer)return t(this.binaryEncode(e));{let n=[e.join_ref,e.ref,e.topic,e.event,e.payload];return t(JSON.stringify(n))}},decode(e,t){if(e.constructor===ArrayBuffer)return t(this.binaryDecode(e));{let[n,r,a,s,i]=JSON.parse(e);return t({join_ref:n,ref:r,topic:a,event:s,payload:i})}},binaryEncode(e){let{join_ref:t,ref:n,event:r,topic:a,payload:s}=e,i=this.META_LENGTH+t.length+n.length+a.length+r.length,o=new ArrayBuffer(this.HEADER_LENGTH+i),l=new DataView(o),c=0;l.setUint8(c++,this.KINDS.push),l.setUint8(c++,t.length),l.setUint8(c++,n.length),l.setUint8(c++,a.length),l.setUint8(c++,r.length),Array.from(t,e=>l.setUint8(c++,e.charCodeAt(0))),Array.from(n,e=>l.setUint8(c++,e.charCodeAt(0))),Array.from(a,e=>l.setUint8(c++,e.charCodeAt(0))),Array.from(r,e=>l.setUint8(c++,e.charCodeAt(0)));var u=new Uint8Array(o.byteLength+s.byteLength);return u.set(new Uint8Array(o),0),u.set(new Uint8Array(s),o.byteLength),u.buffer},binaryDecode(e){let t=new DataView(e),n=t.getUint8(0),r=new TextDecoder;switch(n){case this.KINDS.push:return this.decodePush(e,t,r);case this.KINDS.reply:return this.decodeReply(e,t,r);case this.KINDS.broadcast:return this.decodeBroadcast(e,t,r)}}
2,decodePush(e,t,n){let r=t.getUint8(1),a=t.getUint8(2),s=t.getUint8(3),i=this.HEADER_LENGTH+this.META_LENGTH-1,o=n.decode(e.slice(i,i+r));i+=r;let l=n.decode(e.slice(i,i+a));i+=a;let c=n.decode(e.slice(i,i+s));return i+=s,{join_ref:o,ref:null,topic:l,event:c,payload:e.slice(i,e.byteLength)}},decodeReply(e,t,n){let r=t.getUint8(1),a=t.getUint8(2),s=t.getUint8(3),i=t.getUint8(4),o=this.HEADER_LENGTH+this.META_LENGTH,l=n.decode(e.slice(o,o+r));o+=r;let c=n.decode(e.slice(o,o+a));o+=a;let u=n.decode(e.slice(o,o+s));o+=s;let d=n.decode(e.slice(o,o+i));o+=i;let h=e.slice(o,e.byteLength);return{join_ref:l,ref:c,topic:u,event:ba,payload:{status:d,response:h}}},decodeBroadcast(e,t,n){let r=t.getUint8(1),a=t.getUint8(2),s=this.HEADER_LENGTH+2,i=n.decode(e.slice(s,s+r));s+=r;let o=n.decode(e.slice(s,s+a));return s+=a,{join_ref:null,ref:null,topic:i,event:o,payload:e.slice(s,e.byteLength)}}},Oa=class{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.channels=[],this.sendBuffer=[],this.ref=0,this.fallbackRef=null,this.timeout=t.timeout||1e4,this.transport=t.transport||ia.WebSocket||Ca,this.conn=void 0,this.primaryPassedHealthCheck=!1,this.longPollFallbackMs=t.longPollFallbackMs,this.fallbackTimer=null,this.sessionStore=t.sessionStorage||ia&&ia.sessionStorage,this.establishedConnections=0,this.defaultEncoder=Aa.encode.bind(Aa),this.defaultDecoder=Aa.decode.bind(Aa),this.closeWasClean=!0,this.disconnecting=!1,this.binaryType=t.binaryType||"arraybuffer",this.connectClock=1,this.pageHidden=!1,this.encode=void 0,this.decode=void 0,this.transport!==Ca?(this.encode=t.encode||this.defaultEncoder,this.decode=t.decode||this.defaultDecoder):(this.encode=this.defaultEncoder,this.decode=this.defaultDecoder);let n=null;sa&&sa.addEventListener&&(sa.addEventListener("pagehide",e=>{this.conn&&(this.disconnect(),n=this.connectClock)}),sa.addEventListener("pageshow",e=>{n===this.connectClock&&(n=null,this.connect())}),sa.addEventListener("visibilitychange",()=>{"hidden"===document.visibilityState?this.pageHidden=!0:(this.pageHidden=!1,this.isConnected()||this.closeWasClean||this.teardown(()=>this.connect()))})),this.heartbeatIntervalMs=t.heartbeatIntervalMs||3e4,this.autoSendHeartbeat=t.autoSendHeartbeat??!0,this.heartbeatCallback=t.heartbeatCallback??(()=>{}),this.rejoinAfterMs=e=>t.rejoinAfterMs?t.rejoinAfterMs(e):[1e3,2e3,5e3][e-1]||1e4,this.reconnectAfterMs=e=>t.reconnectAfterMs?t.reconnectAfterMs(e):[10,50,100,150,200,250,500,1e3,2e3][e-1]||5e3,this.logger=t.logger||null,!this.logger&&t.debug&&(this.logger=(e,t,n)=>{console.log(`${e}: ${t}`,n)}),this.longpollerTimeout=t.longpollerTimeout||2e4,this.params=ra(t.params||{}),this.endPoint=`${e}/${Sa}`,this.vsn=t.vsn||"2.0.0",this.heartbeatTimeoutTimer=null,this.heartbeatTimer=null,this.heartbeatSentAt=null,this.pendingHeartbeatRef=null,this.reconnectTimer=new ja(()=>{if(this.pageHidden)return this.log("Not reconnecting as page is hidden!"),void this.teardown();this.teardown(async()=>{t.beforeReconnect&&await t.beforeReconnect(),this.connect()})},this.reconnectAfterMs),this.authToken=t.authToken}getLongPollTransport(){return Ca}replaceTransport(e){this.connectClock++,this.closeWasClean=!0,clearTimeout(this.fallbackTimer),this.reconnectTimer.reset(),this.conn&&(this.conn.close(),this.conn=null),this.transport=e}protocol(){return location.protocol.match(/^https/)?"wss":"ws"}endPointURL(){let e=Na.appendParams(Na.appendParams(this.endPoint,this.params()),{vsn:this.vsn});return"/"!==e.charAt(0)?e:"/"===e.charAt(1)?`${this.protocol()}:${e}`:`${this.protocol()}://${location.host}${e}`}disconnect(e,t,n){this.connectClock++,this.disconnecting=!0,this.closeWasClean=!0,clearTimeout(this.fallbackTimer),this.reconnectTimer.reset(),this.teardown(()=>{this.disconnecting=!1,e&&e()},t,n)}connect(e){e&&(console&&console.log("passing params to connect is deprecated. Instead pass :params to the Socket constructor"),this.params=ra(e)),this.conn&&!this.disconnecting||(this.longPollFallbackMs&&this.transport!==Ca?this.connectWithF
2allback(Ca,this.longPollFallbackMs):this.transportConnect())}log(e,t,n){this.logger&&this.logger(e,t,n)}hasLogger(){return null!==this.logger}onOpen(e){let t=this.makeRef();return this.stateChangeCallbacks.open.push([t,e]),t}onClose(e){let t=this.makeRef();return this.stateChangeCallbacks.close.push([t,e]),t}onError(e){let t=this.makeRef();return this.stateChangeCallbacks.error.push([t,e]),t}onMessage(e){let t=this.makeRef();return this.stateChangeCallbacks.message.push([t,e]),t}onHeartbeat(e){this.heartbeatCallback=e}ping(e){if(!this.isConnected())return!1;let t=this.makeRef(),n=Date.now();this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:t});let r=this.onMessage(a=>{a.ref===t&&(this.off([r]),e(Date.now()-n))});return!0}transportName(e){return e===Ca?"LongPoll":e.name}transportConnect(){let e;this.connectClock++,this.closeWasClean=!1,this.authToken&&(e=["phoenix",`${_a}${btoa(this.authToken).replace(/=/g,"")}`]),this.conn=new this.transport(this.endPointURL(),e),this.conn.binaryType=this.binaryType,this.conn.timeout=this.longpollerTimeout,this.conn.onopen=()=>this.onConnOpen(),this.conn.onerror=e=>this.onConnError(e),this.conn.onmessage=e=>this.onConnMessage(e),this.conn.onclose=e=>this.onConnClose(e)}getSession(e){return this.sessionStore&&this.sessionStore.getItem(e)}storeSession(e,t){this.sessionStore&&this.sessionStore.setItem(e,t)}connectWithFallback(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2500;clearTimeout(this.fallbackTimer);let n,r=!1,a=!0,s=this.transportName(e),i=t=>{this.log("transport",`falling back to ${s}...`,t),this.off([void 0,n]),a=!1,this.replaceTransport(e),this.transportConnect()};if(this.getSession(`phx:fallback:${s}`))return i("memorized");this.fallbackTimer=setTimeout(i,t),n=this.onError(e=>{this.log("transport","error",e),a&&!r&&(clearTimeout(this.fallbackTimer),i(e))}),this.fallbackRef&&this.off([this.fallbackRef]),this.fallbackRef=this.onOpen(()=>{if(r=!0,!a){let t=this.transportName(e);return this.primaryPassedHealthCheck||this.storeSession(`phx:fallback:${t}`,"true"),this.log("transport",`established ${t} fallback`)}clearTimeout(this.fallbackTimer),this.fallbackTimer=setTimeout(i,t),this.ping(e=>{this.log("transport","connected to primary after",e),this.primaryPassedHealthCheck=!0,clearTimeout(this.fallbackTimer)})}),this.transportConnect()}clearHeartbeats(){clearTimeout(this.heartbeatTimer),clearTimeout(this.heartbeatTimeoutTimer)}onConnOpen(){this.hasLogger()&&this.log("transport",`connected to ${this.endPointURL()}`),this.closeWasClean=!1,this.disconnecting=!1,this.establishedConnections++,this.flushSendBuffer(),this.reconnectTimer.reset(),this.autoSendHeartbeat&&this.resetHeartbeat(),this.triggerStateCallbacks("open")}heartbeatTimeout(){if(this.pendingHeartbeatRef){this.pendingHeartbeatRef=null,this.heartbeatSentAt=null,this.hasLogger()&&this.log("transport","heartbeat timeout. Attempting to re-establish connection");try{this.heartbeatCallback("timeout")}catch(Uo){this.log("error","error in heartbeat callback",Uo)}this.triggerChanError(),this.closeWasClean=!1,this.teardown(()=>this.reconnectTimer.scheduleTimeout(),1e3,"heartbeat timeout")}}resetHeartbeat(){this.conn&&this.conn.skipHeartbeat||(this.pendingHeartbeatRef=null,this.clearHeartbeats(),this.heartbeatTimer=setTimeout(()=>this.sendHeartbeat(),this.heartbeatIntervalMs))}teardown(e,t,n){if(!this.conn)return e&&e();const r=this.conn;this.waitForBufferDone(r,()=>{t?r.close(t,n||""):r.close(),this.waitForSocketClosed(r,()=>{this.conn===r&&(this.conn.onopen=function(){},this.conn.onerror=function(){},this.conn.onmessage=function(){},this.conn.onclose=function(){},this.conn=null),e&&e()})})}waitForBufferDone(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;5!==n&&e.bufferedAmount?setTimeout(()=>{this.waitForBufferDone(e,t,n+1)},150*n):t()}waitForSocketClosed(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;5!==n&&e.readyState!==ua?setTimeout(()=>{this.waitForSocketClosed(e,t,n+1)},150*n):t()}onConnClose(e){this.conn&&(this.conn.onclose=()=>{}),this.hasLogger()&&this.log("transport","close",e),this.triggerChanError(),this.clearHeartbeats(),this.closeWasClean||this.reconnectTimer.scheduleTimeout(),this.triggerStateCallbacks("close",e)}onConnError(e){this.hasLogger()&&this.log("transport",e);let t=this.transport,n=this.establishedConnections;this.triggerStateCallbacks("error",e,t,n),(t===this.transport||n>0)&&this.triggerChanError()}
2triggerChanError(){this.channels.forEach(e=>{e.isErrored()||e.isLeaving()||e.isClosed()||e.trigger(va)})}connectionState(){switch(this.conn&&this.conn.readyState){case oa:return"connecting";case la:return"open";case ca:return"closing";default:return"closed"}}isConnected(){return"open"===this.connectionState()}remove(e){this.off(e.stateChangeRefs),this.channels=this.channels.filter(t=>t!==e)}off(e){for(let t in this.stateChangeCallbacks)this.stateChangeCallbacks[t]=this.stateChangeCallbacks[t].filter(t=>{let[n]=t;return-1===e.indexOf(n)})}channel(e){let t=new Ta(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},this);return this.channels.push(t),t}push(e){if(this.hasLogger()){let{topic:t,event:n,payload:r,ref:a,join_ref:s}=e;this.log("push",`${t} ${n} (${s}, ${a})`,r)}this.isConnected()?this.encode(e,e=>this.conn.send(e)):this.sendBuffer.push(()=>this.encode(e,e=>this.conn.send(e)))}makeRef(){let e=this.ref+1;return e===this.ref?this.ref=0:this.ref=e,this.ref.toString()}sendHeartbeat(){if(this.isConnected())if(this.pendingHeartbeatRef)this.heartbeatTimeout();else{this.pendingHeartbeatRef=this.makeRef(),this.heartbeatSentAt=Date.now(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef});try{this.heartbeatCallback("sent")}catch(Uo){this.log("error","error in heartbeat callback",Uo)}this.heartbeatTimeoutTimer=setTimeout(()=>this.heartbeatTimeout(),this.heartbeatIntervalMs)}else try{this.heartbeatCallback("disconnected")}catch(Uo){this.log("error","error in heartbeat callback",Uo)}}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(e=>e()),this.sendBuffer=[])}onConnMessage(e){this.decode(e.data,e=>{let{topic:t,event:n,payload:r,ref:a,join_ref:s}=e;if(a&&a===this.pendingHeartbeatRef){const e=this.heartbeatSentAt?Date.now()-this.heartbeatSentAt:void 0;this.clearHeartbeats();try{this.heartbeatCallback("ok"===r.status?"ok":"error",e)}catch(Uo){this.log("error","error in heartbeat callback",Uo)}this.pendingHeartbeatRef=null,this.heartbeatSentAt=null,this.autoSendHeartbeat&&(this.heartbeatTimer=setTimeout(()=>this.sendHeartbeat(),this.heartbeatIntervalMs))}this.hasLogger()&&this.log("receive",`${r.status||""} ${t} ${n} ${a&&"("+a+")"||""}`.trim(),r);for(let i=0;i<this.channels.length;i++){const e=this.channels[i];e.isMember(t,n,r,s)&&e.trigger(n,r,a,s)}this.triggerStateCallbacks("message",e)})}triggerStateCallbacks(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];try{this.stateChangeCallbacks[e].forEach(t=>{let[r,a]=t;try{a(...n)}catch(Uo){this.log("error",`error in ${e} callback`,Uo)}})}catch(Uo){this.log("error",`error triggering ${e} callbacks`,Uo)}}leaveOpenTopic(e){let t=this.channels.find(t=>t.topic===e&&(t.isJoined()||t.isJoining()));t&&(this.hasLogger()&&this.log("transport",`leaving duplicate topic "${e}"`),t.leave())}};class Pa{constructor(e,t){const n=function(e){return(null===e||void 0===e?void 0:e.events)&&{events:e.events}}(t);this.presence=new Ra(e.getChannel(),n),this.presence.onJoin((t,n,r)=>{const a=Pa.onJoinPayload(t,n,r);e.getChannel().trigger("presence",a)}),this.presence.onLeave((t,n,r)=>{const a=Pa.onLeavePayload(t,n,r);e.getChannel().trigger("presence",a)}),this.presence.onSync(()=>{e.getChannel().trigger("presence",{event:"sync"})})}get state(){return Pa.transformState(this.presence.state)}static transformState(e){return e=function(e){return JSON.parse(JSON.stringify(e))}(e),Object.getOwnPropertyNames(e).reduce((t,n)=>{const r=e[n];return t[n]=La(r),t},{})}static onJoinPayload(e,t,n){return{event:"join",key:e,currentPresences:$a(t),newPresences:La(n)}}static onLeavePayload(e,t,n){return{event:"leave",key:e,currentPresences:$a(t),leftPresences:La(n)}}}function La(e){return e.metas.map(e=>(e.presence_ref=e.phx_ref,delete e.phx_ref,delete e.phx_ref_prev,e))}function $a(e){return(null===e||void 0===e?void 0:e.metas)?La(e):[]}!function(e){e.SYNC="sync",e.JOIN="join",e.LEAVE="leave"}(Zr||(Zr={}));class Ia{get state(){return this.presenceAdapter.state}constructor(e,t){this.channel=e,this.presenceAdapter=new Pa(this.channel.channelAdapter,t)}}class Da{constructor(e,t,n){const r=(a=n,{config:Object.assign({broadcast:{ack:!1,self:!1},presence:{key:"",enabled:!1},private:!1},a.config)});var a;this.channel=e.getSocket().channel(t,r),this.socket=e}get state(){return this.channel.state}set state(e){this.channel.state=e}get joinedOnce(){return this.channel.joinedOnce}get joinPush(){return this.channel.joinPush}get rejoinTimer(){return this.channel.rejoinTimer}on(e,t){return this.channel.on(e,t)}off(e,t){this.channel.off(e,t)}subscribe(e){return this.channel.join(e)}unsubscribe(e){return this.channel.leave(e)}teardown(){this.channel.teardown()}onClose(e){this.channel.onClose(e)}onError(e){return this.channel.onError(e)}
2push(e,t,n){let r;try{r=this.channel.push(e,t,n)}catch(a){throw`tried to push '${e}' to '${this.channel.topic}' before joining. Use channel.subscribe() before pushing events`}if(this.channel.pushBuffer.length>100){const e=this.channel.pushBuffer.shift();e.cancelTimeout(),this.socket.log("channel",`discarded push due to buffer overflow: ${e.event}`,e.payload())}return r}updateJoinPayload(e){const t=this.channel.joinPush.payload();this.channel.joinPush.payload=()=>Object.assign(Object.assign({},t),e)}canPush(){return this.socket.isConnected()&&this.state===Lr}isJoined(){return this.state===Lr}isJoining(){return this.state===$r}isClosed(){return this.state===Or}isLeaving(){return this.state===Ir}updateFilterBindings(e){this.channel.filterBindings=e}updatePayloadTransform(e){this.channel.onMessage=e}getChannel(){return this.channel}}!function(e){e.ALL="*",e.INSERT="INSERT",e.UPDATE="UPDATE",e.DELETE="DELETE"}(ea||(ea={})),function(e){e.BROADCAST="broadcast",e.PRESENCE="presence",e.POSTGRES_CHANGES="postgres_changes",e.SYSTEM="system"}(ta||(ta={})),function(e){e.SUBSCRIBED="SUBSCRIBED",e.TIMED_OUT="TIMED_OUT",e.CLOSED="CLOSED",e.CHANNEL_ERROR="CHANNEL_ERROR"}(na||(na={}));class Ua{get state(){return this.channelAdapter.state}set state(e){this.channelAdapter.state=e}get joinedOnce(){return this.channelAdapter.joinedOnce}get timeout(){return this.socket.timeout}get joinPush(){return this.channelAdapter.joinPush}get rejoinTimer(){return this.channelAdapter.rejoinTimer}constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{config:{}},n=arguments.length>2?arguments[2]:void 0;var r,a;if(this.topic=e,this.params=t,this.socket=n,this.bindings={},this.subTopic=e.replace(/^realtime:/i,""),this.params.config=Object.assign({broadcast:{ack:!1,self:!1},presence:{key:"",enabled:!1},private:!1},t.config),this.channelAdapter=new Da(this.socket.socketAdapter,e,this.params),this.presence=new Ia(this),this._onClose(()=>{this.socket._remove(this)}),this._updateFilterTransform(),this.broadcastEndpointURL=Xr(this.socket.socketAdapter.endPointURL()),this.private=this.params.config.private||!1,!this.private&&(null===(a=null===(r=this.params.config)||void 0===r?void 0:r.broadcast)||void 0===a?void 0:a.replay))throw`tried to use replay on public channel '${this.topic}'. It must be a private channel.`}subscribe(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.timeout;var n,r,a;if(this.socket.isConnected()||this.socket.connect(),this.channelAdapter.isClosed()){const{config:{broadcast:s,presence:i,private:o}}=this.params,l=null!==(r=null===(n=this.bindings.postgres_changes)||void 0===n?void 0:n.map(e=>e.filter))&&void 0!==r?r:[],c=!!this.bindings[ta.PRESENCE]&&this.bindings[ta.PRESENCE].length>0||!0===(null===(a=this.params.config.presence)||void 0===a?void 0:a.enabled),u={},d={broadcast:s,presence:Object.assign(Object.assign({},i),{enabled:c}),postgres_changes:l,private:o};this.socket.accessTokenValue&&(u.access_token=this.socket.accessTokenValue),this._onError(t=>{null===e||void 0===e||e(na.CHANNEL_ERROR,t)}),this._onClose(()=>null===e||void 0===e?void 0:e(na.CLOSED)),this.updateJoinPayload(Object.assign({config:d},u)),this._updateFilterMessage(),this.channelAdapter.subscribe(t).receive("ok",async t=>{let{postgres_changes:n}=t;this.socket._isManualToken()||this.socket.setAuth(),void 0!==n?this._updatePostgresBindings(n,e):null===e||void 0===e||e(na.SUBSCRIBED)}).receive("error",t=>{this.state=Pr,null===e||void 0===e||e(na.CHANNEL_ERROR,new Error(JSON.stringify(Object.values(t).join(", ")||"error")))}).receive("timeout",()=>{null===e||void 0===e||e(na.TIMED_OUT)})}return this}_updatePostgresBindings(e,t){var n;const r=this.bindings.postgres_changes,a=null!==(n=null===r||void 0===r?void 0:r.length)&&void 0!==n?n:0,s=[];for(let i=0;i<a;i++){const n=r[i],{filter:{event:a,schema:o,table:l,filter:c}}=n,u=e&&e[i];if(!(u&&u.event===a&&Ua.isFilterValueEqual(u.schema,o)&&Ua.isFilterValueEqual(u.table,l)&&Ua.isFilterValueEqual(u.filter,c)))return this.unsubscribe(),this.state=Pr,void(null===t||void 0===t||t(na.CHANNEL_ERROR,new Error("mismatch between server and client bindings for postgres changes")));s.push(Object.assign(Object.assign({},n),{id:u.id}))}this.bindings.postgres_changes=s,this.state!=Pr&&t&&t(na.SUBSCRIBED)}presenceState(){return this.presence.state}async track(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return await this.send({type:"presence",event:"track",payload:e},t.timeout||this.timeout)}async untrack(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return await this.send({type:"presence",event:"untrack"},e)}on(e,t,n){const r=this.channelAdapter.isJoined()||this.channelAdapter.isJoining(),a=e===ta.PRESENCE||e===ta.POSTGRES_CHANGES;if(r&&a)throw this.socket.log("channel",`cannot add \`${e}\` callbacks for ${this.topic} after \`subscribe()\`.`),new Error(`cannot add \`${e}\` callbacks for ${this.topic} after \`subscribe()\`.`);return this._on(e,t,n)}async httpSend(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};var r;if(void 0===t||null===t)return Promise.reject("Payload is required for httpSend()");const a={apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"};this.socket.accessTokenValue&&(a.Authorization=`Bearer ${this.socket.accessTokenValue}`);const s={method:"POST",headers:a,body:JSON.stringify({messages:[{topic:this.subTopic,event:e,payload:t,private:this.private}]})},i=await this._fetchWithTimeout(this.broadcastEndpointURL,s,null!==(r=n.timeout)&&void 0!==r?r:this.timeout);if(202===i.status)return{success:!0};let o=i.statusText;
2try{const e=await i.json();o=e.error||e.message||o}catch(l){}return Promise.reject(new Error(o))}async send(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};var n,r;if(this.channelAdapter.canPush()||"broadcast"!==e.type)return new Promise(n=>{var r,a,s;const i=this.channelAdapter.push(e.type,e,t.timeout||this.timeout);"broadcast"!==e.type||(null===(s=null===(a=null===(r=this.params)||void 0===r?void 0:r.config)||void 0===a?void 0:a.broadcast)||void 0===s?void 0:s.ack)||n("ok"),i.receive("ok",()=>n("ok")),i.receive("error",()=>n("error")),i.receive("timeout",()=>n("timed out"))});{console.warn("Realtime send() is automatically falling back to REST API. This behavior will be deprecated in the future. Please use httpSend() explicitly for REST delivery.");const{event:s,payload:i}=e,o={apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"};this.socket.accessTokenValue&&(o.Authorization=`Bearer ${this.socket.accessTokenValue}`);const l={method:"POST",headers:o,body:JSON.str
2ingify({messages:[{topic:this.subTopic,event:s,payload:i,private:this.private}]})};try{const e=await this._fetchWithTimeout(this.broadcastEndpointURL,l,null!==(n=t.timeout)&&void 0!==n?n:this.timeout);return await(null===(r=e.body)||void 0===r?void 0:r.cancel()),e.ok?"ok":"error"}catch(a){return"AbortError"===a.name?"timed out":"error"}}}updateJoinPayload(e){this.channelAdapter.updateJoinPayload(e)}async unsubscribe(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.timeout;return new Promise(t=>{this.channelAdapter.unsubscribe(e).receive("ok",()=>t("ok")).receive("timeout",()=>t("timed out")).receive("error",()=>t("error"))})}teardown(){this.channelAdapter.teardown()}async _fetchWithTimeout(e,t,n){const r=new AbortController,a=setTimeout(()=>r.abort(),n),s=await this.socket.fetch(e,Object.assign(Object.assign({},t),{signal:r.signal}));return clearTimeout(a),s}_on(e,t,n){const r=e.toLocaleLowerCase(),a={type:r,filter:t,callback:n,ref:this.channelAdapter.on(e,n)};return this.bindings[r]?this.bindings[r].push(a):this.bindings[r]=[a],this._updateFilterMessage(),this}_onClose(e){this.channelAdapter.onClose(e)}_onError(e){this.channelAdapter.onError(e)}_updateFilterMessage(){this.channelAdapter.updateFilterBindings((e,t,n)=>{var r,a,s,i,o,l,c;const u=e.event.toLocaleLowerCase();if(this._notThisChannelEvent(u,n))return!1;const d=null===(r=this.bindings[u])||void 0===r?void 0:r.find(t=>t.ref===e.ref);if(!d)return!0;if(["broadcast","presence","postgres_changes"].includes(u)){if("id"in d){const e=d.id,n=null===(a=d.filter)||void 0===a?void 0:a.event;return e&&(null===(s=t.ids)||void 0===s?void 0:s.includes(e))&&("*"===n||(null===n||void 0===n?void 0:n.toLocaleLowerCase())===(null===(i=t.data)||void 0===i?void 0:i.type.toLocaleLowerCase()))}{const e=null===(l=null===(o=null===d||void 0===d?void 0:d.filter)||void 0===o?void 0:o.event)||void 0===l?void 0:l.toLocaleLowerCase();return"*"===e||e===(null===(c=null===t||void 0===t?void 0:t.event)||void 0===c?void 0:c.toLocaleLowerCase())}}return d.type.toLocaleLowerCase()===u})}_notThisChannelEvent(e,t){const{close:n,error:r,leave:a,join:s}=Dr;return t&&[n,r,a,s].includes(e)&&t!==this.joinPush.ref}_updateFilterTransform(){this.channelAdapter.updatePayloadTransform((e,t,n)=>{if("object"===typeof t&&"ids"in t){const e=t.data,{schema:n,table:r,commit_timestamp:a,type:s,errors:i}=e,o={schema:n,table:r,commit_timestamp:a,eventType:s,new:{},old:{},errors:i};return Object.assign(Object.assign({},o),this._getPayloadRecords(e))}return t})}copyBindings(e){if(this.joinedOnce)throw new Error("cannot copy bindings into joined channel");for(const t in e.bindings)for(const n of e.bindings[t])this._on(n.type,n.filter,n.callback)}static isFilterValueEqual(e,t){return(null!==e&&void 0!==e?e:void 0)===(null!==t&&void 0!==t?t:void 0)}_getPayloadRecords(e){const t={new:{},old:{}};return"INSERT"!==e.type&&"UPDATE"!==e.type||(t.new=qr(e.columns,e.record)),"UPDATE"!==e.type&&"DELETE"!==e.type||(t.old=qr(e.columns,e.old_record)),t}}class za{constructor(e,t){this.socket=new Oa(e,t)}get timeout(){return this.socket.timeout}get endPoint(){return this.socket.endPoint}get transport(){return this.socket.transport}get heartbeatIntervalMs(){return this.socket.heartbeatIntervalMs}get heartbeatCallback(){return this.socket.heartbeatCallback}set heartbeatCallback(e){this.socket.heartbeatCallback=e}get heartbeatTimer(){return this.socket.heartbeatTimer}get pendingHeartbeatRef(){return this.socket.pendingHeartbeatRef}get reconnectTimer(){return this.socket.reconnectTimer}get vsn(){return this.socket.vsn}get encode(){return this.socket.encode}get decode(){return this.socket.decode}get reconnectAfterMs(){return this.socket.reconnectAfterMs}get sendBuffer(){return this.socket.sendBuffer}get stateChangeCallbacks(){return this.socket.stateChangeCallbacks}connect(){this.socket.connect()}disconnect(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1e4;return new Promise(a=>{setTimeout(()=>a("timeout"),r),this.socket.disconnect(()=>{e(),a("ok")},t,n)})}push(e){this.socket.push(e)}log(e,t,n){this.socket.log(e,t,n)}makeRef(){return this.socket.makeRef()}onOpen(e){this.socket.onOpen(e)}onClose(e){this.socket.onClose(e)}onError(e){this.socket.onError(e)}onMessage(e){this.socket.onMessage(e)}isConnected(){return this.socket.isConnected()}isConnecting(){return this.socket.connectionState()==Ur}isDisconnecting(){return this.socket.connectionState()==zr}connectionState(){return this.socket.connectionState()}endPointURL(){return this.socket.endPointURL()}sendHeartbeat(){this.socket.sendHeartbeat()}getSocket(){return this.socket}}const Ma=25e3,Fa=[1e3,2e3,5e3,1e4];class Ba{get endPoint(){return this.socketAdapter.endPoint}get timeout(){return this.socketAdapter.timeout}get transport(){return this.socketAdapter.transport}get heartbeatCallback(){return this.socketAdapter.heartbeatCallback}get heartbeatIntervalMs(){return this.socketAdapter.heartbeatIntervalMs}get heartbeatTimer(){return this.worker?this._workerHeartbeatTimer:this.socketAdapter.heartbeatTimer}get pendingHeartbeatRef(){return this.worker?this._pendingWorkerHeartbeatRef:this.socketAdapter.pendingHeartbeatRef}get reconnectTimer(){return this.socketAdapter.reconnectTimer}get vsn(){return this.socketAdapter.vsn}get encode(){return this.socketAdapter.encode}get decode(){return this.socketAdapter.decode}get reconnectAfterMs(){return this.socketAdapter.reconnectAfterMs}get sendBuffer(){return this.socketAdapter.sendBuffer}get stateChangeCallbacks(){return this.socketAdapter.stateChangeCallbacks}constructor(e,t){var n;if(this.channels=new Array,this.accessTokenValue=null,this.accessToken=null,this.apiKey=null,this.httpEndpoint="",this.headers={},this.params={}
2,this.ref=0,this.serializer=new Fr,this._manuallySetToken=!1,this._authPromise=null,this._workerHeartbeatTimer=void 0,this._pendingWorkerHeartbeatRef=null,this._resolveFetch=e=>e?function(){return e(...arguments)}:function(){return fetch(...arguments)},!(null===(n=null===t||void 0===t?void 0:t.params)||void 0===n?void 0:n.apikey))throw new Error("API key is required to connect to Realtime");this.apiKey=t.params.apikey;const r=this._initializeOptions(t);this.socketAdapter=new za(e,r),this.httpEndpoint=Xr(e),this.fetch=this._resolveFetch(null===t||void 0===t?void 0:t.fetch)}connect(){if(!(this.isConnecting()||this.isDisconnecting()||this.isConnected())){this.accessToken&&!this._authPromise&&this._setAuthSafely("connect"),this._setupConnectionHandlers();try{this.socketAdapter.connect()}catch(e){const t=e.message;if(t.includes("Node.js"))throw new Error(`${t}\n\nTo use Realtime in Node.js, you need to provide a WebSocket implementation:\n\nOption 1: Use Node.js 22+ which has native WebSocket support\nOption 2: Install and provide the "ws" package:\n\n npm install ws\n\n import ws from "ws"\n const client = new RealtimeClient(url, {\n ...options,\n transport: ws\n })`);throw new Error(`WebSocket not available: ${t}`)}this._handleNodeJsRaceCondition()}}endpointURL(){return this.socketAdapter.endPointURL()}async disconnect(e,t){return this.isDisconnecting()?"ok":await this.socketAdapter.disconnect(()=>{clearInterval(this._workerHeartbeatTimer),this._terminateWorker()},e,t)}getChannels(){return this.channels}async removeChannel(e){const t=await e.unsubscribe();return"ok"===t&&e.teardown(),0===this.channels.length&&this.disconnect(),t}async removeAllChannels(){const e=this.channels.map(async e=>{const t=await e.unsubscribe();return e.teardown(),t}),t=await Promise.all(e);return this.disconnect(),t}log(e,t,n){this.socketAdapter.log(e,t,n)}connectionState(){return this.socketAdapter.connectionState()||Mr}isConnected(){return this.socketAdapter.isConnected()}isConnecting(){return this.socketAdapter.isConnecting()}isDisconnecting(){return this.socketAdapter.isDisconnecting()}channel(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{config:{}};const n=`realtime:${e}`,r=this.getChannels().find(e=>e.topic===n);if(r)return r;{const n=new Ua(`realtime:${e}`,t,this);return this.channels.push(n),n}}push(e){this.socketAdapter.push(e)}async setAuth(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this._authPromise=this._performAuth(e);try{await this._authPromise}finally{this._authPromise=null}}_isManualToken(){return this._manuallySetToken}async sendHeartbeat(){this.socketAdapter.sendHeartbeat()}onHeartbeat(e){this.socketAdapter.heartbeatCallback=this._wrapHeartbeatCallback(e)}_makeRef(){return this.socketAdapter.makeRef()}_remove(e){this.channels=this.channels.filter(t=>t.topic!==e.topic)}async _performAuth(){let e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=!1;if(t)e=t,n=!0;else if(this.accessToken)try{e=await this.accessToken()}catch(Uo){this.log("error","Error fetching access token from callback",Uo),e=this.accessTokenValue}else e=this.accessTokenValue;n?this._manuallySetToken=!0:this.accessToken&&(this._manuallySetToken=!1),this.accessTokenValue!=e&&(this.accessTokenValue=e,this.channels.forEach(t=>{const n={access_token:e,version:"realtime-js/2.103.1"};e&&t.updateJoinPayload(n),t.joinedOnce&&t.channelAdapter.isJoined()&&t.channelAdapter.push(Dr.access_token,{access_token:e})}))}async _waitForAuthIfNeeded(){this._authPromise&&await this._authPromise}_setAuthSafely(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"general";this._isManualToken()||this.setAuth().catch(t=>{this.log("error",`Error setting auth in ${e}`,t)})}_setupConnectionHandlers(){this.socketAdapter.onOpen(()=>{(this._authPromise||(this.accessToken&&!this.accessTokenValue?this.setAuth():Promise.resolve())).catch(e=>{this.log("error","error waiting for auth on connect",e)}),this.worker&&!this.workerRef&&this._startWorkerHeartbeat()}),this.socketAdapter.onClose(()=>{this.worker&&this.workerRef&&this._terminateWorker()}),this.socketAdapter.onMessage(e=>
2{e.ref&&e.ref===this._pendingWorkerHeartbeatRef&&(this._pendingWorkerHeartbeatRef=null)})}_handleNodeJsRaceCondition(){this.socketAdapter.isConnected()&&this.socketAdapter.getSocket().onConnOpen()}_wrapHeartbeatCallback(e){return(t,n)=>{"sent"==t&&this._setAuthSafely(),e&&e(t,n)}}_startWorkerHeartbeat(){this.workerUrl?this.log("worker",`starting worker for from ${this.workerUrl}`):this.log("worker","starting default worker");const e=this._workerObjectUrl(this.workerUrl);this.workerRef=new Worker(e),this.workerRef.onerror=e=>{this.log("worker","worker error",e.message),this._terminateWorker(),this.disconnect()},this.workerRef.onmessage=e=>{"keepAlive"===e.data.event&&this.sendHeartbeat()},this.workerRef.postMessage({event:"start",interval:this.heartbeatIntervalMs})}_terminateWorker(){this.workerRef&&(this.log("worker","terminating worker"),this.workerRef.terminate(),this.workerRef=void 0)}_workerObjectUrl(e){let t;if(e)t=e;else{const e=new Blob(['\n addEventListener("message", (e) => {\n if (e.data.event === "start") {\n setInterval(() => postMessage({ event: "keepAlive" }), e.data.interval);\n }\n });'],{type:"application/javascript"});t=URL.createObjectURL(e)}return t}_initializeOptions(e){var t,n,r,a,s,i,o,l,c;this.worker=null!==(t=null===e||void 0===e?void 0:e.worker)&&void 0!==t&&t,this.accessToken=null!==(n=null===e||void 0===e?void 0:e.accessToken)&&void 0!==n?n:null;const u={};let d,h;u.timeout=null!==(r=null===e||void 0===e?void 0:e.timeout)&&void 0!==r?r:1e4,u.heartbeatIntervalMs=null!==(a=null===e||void 0===e?void 0:e.heartbeatIntervalMs)&&void 0!==a?a:Ma,u.transport=null!==(s=null===e||void 0===e?void 0:e.transport)&&void 0!==s?s:Cr.getWebSocketConstructor(),u.params=null===e||void 0===e?void 0:e.params,u.logger=null===e||void 0===e?void 0:e.logger,u.heartbeatCallback=this._wrapHeartbeatCallback(null===e||void 0===e?void 0:e.heartbeatCallback),u.reconnectAfterMs=null!==(i=null===e||void 0===e?void 0:e.reconnectAfterMs)&&void 0!==i?i:e=>Fa[e-1]||1e4;const f=null!==(o=null===e||void 0===e?void 0:e.vsn)&&void 0!==o?o:Ar;switch(f){case"1.0.0":d=(e,t)=>t(JSON.stringify(e)),h=(e,t)=>t(JSON.parse(e));break;case Rr:d=this.serializer.encode.bind(this.serializer),h=this.serializer.decode.bind(this.serializer);break;default:throw new Error(`Unsupported serializer version: ${u.vsn}`)}if(u.vsn=f,u.encode=null!==(l=null===e||void 0===e?void 0:e.encode)&&void 0!==l?l:d,u.decode=null!==(c=null===e||void 0===e?void 0:e.decode)&&void 0!==c?c:h,u.beforeReconnect=this._reconnectAuth.bind(this),((null===e||void 0===e?void 0:e.logLevel)||(null===e||void 0===e?void 0:e.log_level))&&(this.logLevel=e.logLevel||e.log_level,u.params=Object.assign(Object.assign({},u.params),{log_level:this.logLevel})),this.worker){if("undefined"!==typeof window&&!window.Worker)throw new Error("Web Worker is not supported");this.workerUrl=null===e||void 0===e?void 0:e.workerUrl,u.autoSendHeartbeat=!this.worker}return u}async _reconnectAuth(){await this._waitForAuthIfNeeded(),this.isConnected()||this.connect()}}var qa=class extends Error{constructor(e,t){super(e),this.name="IcebergError",this.status=t.status,this.icebergType=t.icebergType,this.icebergCode=t.icebergCode,this.details=t.details,this.isCommitStateUnknown="CommitStateUnknownException"===t.icebergType||[500,502,504].includes(t.status)&&!0===t.icebergType?.includes("CommitState")}isNotFound(){return 404===this.status}isConflict(){return 409===this.status}isAuthenticationTimeout(){return 419===this.status}};function Ha(e){const t=e.fetchImpl??globalThis.fetch;return{async request(n){let{method:r,path:a,query:s,body:i,headers:o}=n;const l=function(e,t,n){const r=new URL(t,e);if(n)for(const[a,s]of Object.entries(n))void 0!==s&&r.searchParams.set(a,s);return r.toString()}(e.baseUrl,a,s),c=await async function(e){return e&&"none"!==e.type?"bearer"===e.type?{Authorization:`Bearer ${e.token}`}:"header"===e.type?{[e.name]:e.value}:"custom"===e.type?await e.getHeaders():{}:{}}(e.auth),u=await t(l,{method:r,headers:{...i?{"Content-Type":"application/json"}:{},...c,...o},body:i?JSON.stringify(i):void 0}),d=await u.text(),h=(u.headers.get("content-type")||"").includes("application/json"),f=h&&d?JSON.parse(d):d;if(!u.ok){const e=h?f:void 0,t=e?.error;throw new qa(t?.message??`Request failed with status ${u.status}`,{status:u.status,icebergType:t?.type,icebergCode:t?.code,details:e})}return{status:u.status,headers:u.headers,data:f}}}}function Wa(e){return e.join("\x1f")}var Va=class{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";this.client=e,this.prefix=t}async listNamespaces(e){const t=e?{parent:Wa(e.namespace)}:void 0;return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces`,query:t})).data.namespaces.map(e=>({namespace:e}))}async createNamespace(e,t){const n={namespace:e.namespace,properties:t?.properties};return(await this.client.request({method:"POST",path:`${this.prefix}/namespaces`,body:n})).data}async dropNamespace(e){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${Wa(e.namespace)}`})}async loadNamespaceMetadata(e){return{properties:(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${Wa(e.namespace)}`})).data.properties}}async namespaceExists(e){try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${Wa(e.namespace)}`}),!0}catch(t){if(t instanceof qa&&404===t.status)return!1;throw t}}async createNamespaceIfNotExists(e,t){try{return await this.createNamespace(e,t)}catch(n){if(n instanceof qa&&409===n.status)return;throw n}}};function Ka(e){return e.join("\x1f")}var Ja=class{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0;this.client=e,this.prefix=t,this.accessDelegation=n}async listTables(e){return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${Ka(e.namespace)}/tables`})).data.identifiers}async createTable(e,t){const n={};this.accessDelegation&&(n["X-Iceberg-Access-Delegation"]=this.accessDelegation);return(await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${Ka(e.namespace)}/tables`,body:t,headers:n})).data.metadata}async updateTable(e,t){const n=await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${Ka(e.namespace)}/tables/${e.name}`,body:t});return{"metadata-location":n.data["metadata-location"],metadata:n.data.metadata}}async dropTable(e,t){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${Ka(e.namespace)}/tables/${e.name}`,query:{purgeRequested:String(t?.purge??!1)}})}async loadTable(e){const t={};this.accessDelegation&&(t["X-Iceberg-Access-Delegation"]=this.accessDelegation);return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${Ka(e.namespace)}/tables/${e.name}`,headers:t})).data.metadata}async tableExists(e){const t={};this.accessDelegation&&(t["X-Iceberg-Access-Delegation"]=this.accessDelegation);try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${Ka(e.namespace)}/tables/${e.name}`,headers:t}),!0}catch(n){if(n instanceof qa&&404===n.status)return!1;throw n}}async createTableIfNotExists(e,t){try{return await this.createTable(e,t)}catch(n){if(n instanceof qa&&409===n.status)return await this.loadTable({namespace:e.namespace,name:t.name});throw n}}},Ga=class{constructor(e){let t="v1";e.catalogName&&(t+=`/${e.catalogName}`);const n=e.baseUrl.endsWith("/")?e.baseUrl:`${e.baseUrl}/`;this.client=Ha({baseUrl:n,auth:e.auth,fetchImpl:e.fetch}),this.accessDelegation=e.accessDelegation?.join(","),this.namespaceOps=new Va(this.client,t),this.tableOps=new Ja(this.client,t,this.accessDelegation)}async listNamespaces(e){return this.namespaceOps.listNamespaces(e)}async createNamespace(e,t){return this.namespaceOps.createNamespace(e,t)}async dropNamespace(e){await this.namespaceOps.dropNamespace(e)}async loadNamespaceMetadata(e){return this.namespaceOps.loadNamespaceMetadata(e)}async listTables(e){return this.tableOps.listTables(e)}
2async createTable(e,t){return this.tableOps.createTable(e,t)}async updateTable(e,t){return this.tableOps.updateTable(e,t)}async dropTable(e,t){await this.tableOps.dropTable(e,t)}async loadTable(e){return this.tableOps.loadTable(e)}async namespaceExists(e){return this.namespaceOps.namespaceExists(e)}async tableExists(e){return this.tableOps.tableExists(e)}async createNamespaceIfNotExists(e,t){return this.namespaceOps.createNamespaceIfNotExists(e,t)}async createTableIfNotExists(e,t){return this.tableOps.createTableIfNotExists(e,t)}};function Qa(e){return(Qa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ya(e){var t=function(e,t){if("object"!=Qa(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Qa(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Qa(t)?t:t+""}function Xa(e,t,n){return(t=Ya(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Za(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function es(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Za(Object(n),!0).forEach(function(t){Xa(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Za(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var ts=class extends Error{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"storage",n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;super(e),this.__isStorageError=!0,this.namespace=t,this.name="vectors"===t?"StorageVectorsError":"StorageError",this.status=n,this.statusCode=r}toJSON(){return{name:this.name,message:this.message,status:this.status,statusCode:this.statusCode}}};function ns(e){return"object"===typeof e&&null!==e&&"__isStorageError"in e}var rs=class extends ts{constructor(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"storage";super(e,r,t,n),this.name="vectors"===r?"StorageVectorsApiError":"StorageApiError",this.status=t,this.statusCode=n}toJSON(){return es({},super.toJSON())}},as=class extends ts{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"storage";super(e,n),this.name="vectors"===n?"StorageVectorsUnknownError":"StorageUnknownError",this.originalError=t}};const ss=e=>{if(Array.isArray(e))return e.map(e=>ss(e));if("function"===typeof e||e!==Object(e))return e;const t={};return Object.entries(e).forEach(e=>{let[n,r]=e;const a=n.replace(/([-_][a-z])/gi,e=>e.toUpperCase().replace(/[-_]/g,""));t[a]=ss(r)}),t},is=e=>{var t;return e.msg||e.message||e.error_description||("string"===typeof e.error?e.error:null===(t=e.error)||void 0===t?void 0:t.message)||JSON.stringify(e)},os=(e,t,n,r)=>{const a={method:e,headers:(null===t||void 0===t?void 0:t.headers)||{}};if("GET"===e||"HEAD"===e||!r)return es(es({},a),n);if((e=>{if("object"!==typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)})(r)){var s;const e=(null===t||void 0===t?void 0:t.headers)||{};let n;for(const[t,r]of Object.entries(e))"content-type"===t.toLowerCase()&&(n=r);a.headers=function(e,t,n){const r=es({},e);for(const a of Object.keys(r))a.toLowerCase()===t.toLowerCase()&&delete r[a];return r[t]=n,r}(e,"Content-Type",null!==(s=n)&&void 0!==s?s:"application/json"),a.body=JSON.stringify(r)}else a.body=r;return(null===t||void 0===t?void 0:t.duplex)&&(a.duplex=t.duplex),es(es({},a),n)};async function ls(e,t,n,r,a,s,i){return new Promise((o,l)=>{e(n,os(t,r,a,s)).then(e=>{if(!e.ok)throw e;if(null===r||void 0===r?void 0:r.noResolveJson)return e;if("vectors"===i){const t=e.headers.get("content-type");if("0"===e.headers.get("content-length")||204===e.status)return{};if(!t||!t.includes("application/json"))return{}}return e.json()}).then(e=>o(e)).catch(e=>(async(e,t,n,r)=>{if(null!==e&&"object"===typeof e&&"function"===typeof e.json){const n=e;let a=parseInt(n.status,10);Number.isFinite(a)||(a=500),n.json().then(e=>{const n=(null===e||void 0===e?void 0:e.statusCode)||(null===e||void 0===e?void 0:e.code)||a+"";t(new rs(is(e),a,n,r))}).catch(()=>{const e=a+"";t(new rs(n.statusText||`HTTP ${a} error`,a,e,r))})}else t(new as(is(e),e,r))})(e,l,0,i))})}function cs(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"storage";return{get:async(t,n,r,a)=>ls(t,"GET",n,r,a,void 0,e),post:async(t,n,r,a,s)=>ls(t,"POST",n,a,s,r,e),put:async(t,n,r,a,s)=>ls(t,"PUT",n,a,s,r,e),head:async(t,n,r,a)=>ls(t,"HEAD",n,es(es({},r),{},{noResolveJson:!0}),a,void 0,e),remove:async(t,n,r,a,s)=>ls(t,"DELETE",n,a,s,r,e)}}const us=cs("storage"),{get:ds,post:hs,put:fs,head:ps,remove:ms}=us,gs=cs("vectors");var vs=class{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"storage";var a;this.shouldThrowOnError=!1,this.url=e,this.headers=Object.fromEntries(Object.entries(t).map(e=>{let[t,n]=e;return[t.toLowerCase(),n]})),this.fetch=(a=n)?function(){return a(...arguments)}:function(){return fetch(...arguments)},this.namespace=r}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(e,t){return this.headers=es(es({},this.headers),{},{[e.toLowerCase()]:t}),this}async handleOperation(e){try{return{data:await e(),error:null}}catch(t){if(this.shouldThrowOnError)throw t;if(ns(t))return{data:null,error:t};throw t}}},ys=class{constructor(e,t){this.downloadFn=e,this.shouldThrowOnError=t}then(e,t){return this.execute().then(e,t)}async execute(){try{return{data:(await this.downloadFn()).body,error:null}}catch(e){if(this.shouldThrowOnError)throw e;if(ns(e))return{data:null,error:e};throw e}}};let bs;bs=Symbol.toStringTag;var ws=class{constructor(e,t){this.downloadFn=e,this.shouldThrowOnError=t,this[bs]="BlobDownloadBuilder",this.promise=null}asStream(){return new ys(this.downloadFn,this.shouldThrowOnError)}then(e,t){return this.getPromise().then(e,t)}catch(e){return this.getPromise().catch(e)}finally(e){return this.getPromise().finally(e)}getPromise(){return this.promise||(this.promise=this.execute()),this.promise}async execute(){try{return{data:await(await this.downloadFn()).blob(),error:null}}catch(e){if(this.shouldThrowOnError)throw e;if(ns(e))return{data:null,error:e};throw e}}};const ks={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},Ss={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};var xs=class extends vs{constructor(e){let t=arguments.length>2?arguments[2]:void 0;super(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},arguments.length>3?arguments[3]:void 0,"storage"),this.bucketId=t}async uploadOrUpdate(e,t,n,r){var a=this;return a.handleOperation(async()=>{let s;const i=es(es({},Ss),r);let o=es(es({},a.headers),"POST"===e&&{"x-upsert":String(i.upsert)});const l=i.metadata;"undefined"!==typeof Blob&&n instanceof Blob?(s=new FormData,s.append("cacheControl",i.cacheControl),l&&s.append("metadata",a.encodeMetadata(l)),s.append("",n)):"undefined"!==typeof FormData&&n instanceof FormData?(s=n,s.has("cacheControl")||s.append("cacheControl",i.cacheControl),l&&!s.has("metadata")&&s.append("metadata",a.encodeMetadata(l))):(s=n,o["cache-control"]=`max-age=${i.cacheControl}`,o["content-type"]=i.contentType,l&&(o["x-metadata"]=a.toBase64(a.encodeMetadata(l))),("undefined"!==typeof ReadableStream&&s instanceof ReadableStream||s&&"object"===typeof s&&"pipe"in s&&"function"===typeof s.pipe)&&!i.duplex&&(i.duplex="half")),(null===r||void 0===r?void 0:r.headers)&&(o=es(es({},o),r.headers));const c=a._removeEmptyFolders(t),u=a._getFinalPath(c),d=await("PUT"==e?fs:hs)(a.fetch,`${a.url}/object/${u}`,s,es({headers:o},(null===i||void 0===i?void 0:i.duplex)?{duplex:i.duplex}:{}));return{path:c,id:d.Id,fullPath:d.Key}})}async upload(e,t,n){return this.uploadOrUpdate("POST",e,t,n)}async uploadToSignedUrl(e,t,n,r){var a=this;const s=a._removeEmptyFolders(e),i=a._getFinalPath(s),o=new URL(a.url+`/object/upload/sign/${i}`);return o.searchParams.set("token",t),a.handleOperation(async()=>{let e;const t=es(es({},Ss),r),i=es(es({},a.headers),{"x-upsert":String(t.upsert)});return"undefined"!==typeof Blob&&n instanceof Blob?(e=new FormData,e.append("cacheControl",t.cacheControl),e.append("",n)):"undefined"!==typeof FormData&&n instanceof FormData?(e=n,e.append("cacheControl",t.cacheControl)):(e=n,i["cache-control"]=`max-age=${t.cacheControl}`,i["content-type"]=t.contentType),{path:s,fullPath:(await fs(a.fetch,o.toString(),e,{headers:i})).Key}})}async createSignedUploadUrl(e,t){var n=this;return n.handleOperation(async()=>{let r=n._getFinalPath(e);const a=es({},n.headers);(null===t||void 0===t?void 0:t.upsert)&&(a["x-upsert"]="true");const s=await hs(n.fetch,`${n.url}/object/upload/sign/${r}`,{},{headers:a}),i=new URL(n.url+s.url),o=i.searchParams.get("token");if(!o)throw new ts("No token returned by API");return{signedUrl:i.toString(),path:e,token:o}})}async update(e,t,n){return this.uploadOrUpdate("PUT",e,t,n)}async move(e,t,n){var r=this;return r.handleOperation(async()=>await hs(r.fetch,`${r.url}/object/move`,{bucketId:r.bucketId,sourceKey:e,destinationKey:t,de
2stinationBucket:null===n||void 0===n?void 0:n.destinationBucket},{headers:r.headers}))}async copy(e,t,n){var r=this;return r.handleOperation(async()=>({path:(await hs(r.fetch,`${r.url}/object/copy`,{bucketId:r.bucketId,sourceKey:e,destinationKey:t,destinationBucket:null===n||void 0===n?void 0:n.destinationBucket},{headers:r.headers})).Key}))}async createSignedUrl(e,t,n){var r=this;return r.handleOperation(async()=>{let a=r._getFinalPath(e);const s="object"===typeof(null===n||void 0===n?void 0:n.transform)&&null!==n.transform&&Object.keys(n.transform).length>0;let i=await hs(r.fetch,`${r.url}/object/sign/${a}`,es({expiresIn:t},s?{transform:n.transform}:{}),{headers:r.headers});const o=new URLSearchParams;(null===n||void 0===n?void 0:n.download)&&o.set("download",!0===n.download?"":n.download),null!=(null===n||void 0===n?void 0:n.cacheNonce)&&o.set("cacheNonce",String(n.cacheNonce));const l=o.toString(),c=s&&i.signedURL.includes("/object/sign/")?i.signedURL.replace("/object/sign/","/render/image/sign/"):i.signedURL;return{signedUrl:encodeURI(`${r.url}${c}${l?`&${l}`:""}`)}})}async createSignedUrls(e,t,n){var r=this;return r.handleOperation(async()=>{const a=await hs(r.fetch,`${r.url}/object/sign/${r.bucketId}`,{expiresIn:t,paths:e},{headers:r.headers}),s=new URLSearchParams;(null===n||void 0===n?void 0:n.download)&&s.set("download",!0===n.download?"":n.download),null!=(null===n||void 0===n?void 0:n.cacheNonce)&&s.set("cacheNonce",String(n.cacheNonce));const i=s.toString();return a.map(e=>es(es({},e),{},{signedUrl:e.signedURL?encodeURI(`${r.url}${e.signedURL}${i?`&${i}`:""}`):null}))})}download(e,t,n){const r="object"===typeof(null===t||void 0===t?void 0:t.transform)&&null!==t.transform&&Object.keys(t.transform).length>0?"render/image/authenticated":"object",a=new URLSearchParams;(null===t||void 0===t?void 0:t.transform)&&this.applyTransformOptsToQuery(a,t.transform),null!=(null===t||void 0===t?void 0:t.cacheNonce)&&a.set("cacheNonce",String(t.cacheNonce));const s=a.toString(),i=this._getFinalPath(e);return new ws(()=>ds(this.fetch,`${this.url}/${r}/${i}${s?`?${s}`:""}`,{headers:this.headers,noResolveJson:!0},n),this.shouldThrowOnError)}async info(e){var t=this;const n=t._getFinalPath(e);return t.handleOperation(async()=>ss(await ds(t.fetch,`${t.url}/object/info/${n}`,{headers:t.headers})))}async exists(e){var t=this;const n=t._getFinalPath(e);try{return await ps(t.fetch,`${t.url}/object/${n}`,{headers:t.headers}),{data:!0,error:null}}catch(a){if(t.shouldThrowOnError)throw a;if(ns(a)){var r;const e=a instanceof rs?a.status:a instanceof as?null===(r=a.originalError)||void 0===r?void 0:r.status:void 0;if(void 0!==e&&[400,404].includes(e))return{data:!1,error:a}}throw a}}getPublicUrl(e,t){const n=this._getFinalPath(e),r=new URLSearchParams;(null===t||void 0===t?void 0:t.download)&&r.set("download",!0===t.download?"":t.download),(null===t||void 0===t?void 0:t.transform)&&this.applyTransformOptsToQuery(r,t.transform),null!=(null===t||void 0===t?void 0:t.cacheNonce)&&r.set("cacheNonce",String(t.cacheNonce));const a=r.toString(),s="object"===typeof(null===t||void 0===t?void 0:t.transform)&&null!==t.transform&&Object.keys(t.transform).length>0?"render/image":"object";return{data:{publicUrl:encodeURI(`${this.url}/${s}/public/${n}`)+(a?`?${a}`:"")}}}async remove(e){var t=this;return t.handleOperation(async()=>await ms(t.fetch,`${t.url}/object/${t.bucketId}`,{prefixes:e},{headers:t.headers}))}async list(e,t,n){var r=this;return r.handleOperation(async()=>{const a=es(es(es({},ks),t),{},{prefix:e||""});return await hs(r.fetch,`${r.url}/object/list/${r.bucketId}`,a,{headers:r.headers},n)})}async listV2(e,t){var n=this;return n.handleOperation(async()=>{const r=es({},e);return await hs(n.fetch,`${n.url}/object/list-v2/${n.bucketId}`,r,{headers:n.headers},t)})}encodeMetadata(e){return JSON.stringify(e)}toBase64(e){return"undefined"!==typeof Buffer?Buffer.from(e).toString("base64"):btoa(e)}_getFinalPath(e){return`${this.bucketId}/${e.replace(/^\/+/,"")}`}_removeEmptyFolders(e){return e.replace(/^\/|\/$/g,"").replace(/\/+/g,"/")}applyTransformOptsToQuery(e,t){return t.width&&e.set("width",t.width.toString()),t.height&&e.set("height",t.height.toString()),t.resize&&e.set("resize",t.resize),t.format&&e.set("format",t.format),t.quality&&e.set("qual
2ity",t.quality.toString()),e}};const _s={"X-Client-Info":"storage-js/2.103.1"};var Es=class extends vs{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;const a=new URL(e);(null===r||void 0===r?void 0:r.useNewHostname)&&/supabase\.(co|in|red)$/.test(a.hostname)&&!a.hostname.includes("storage.supabase.")&&(a.hostname=a.hostname.replace("supabase.","storage.supabase."));super(a.href.replace(/\/$/,""),es(es({},_s),t),n,"storage")}async listBuckets(e){var t=this;return t.handleOperation(async()=>{const n=t.listBucketOptionsToQueryString(e);return await ds(t.fetch,`${t.url}/bucket${n}`,{headers:t.headers})})}async getBucket(e){var t=this;return t.handleOperation(async()=>await ds(t.fetch,`${t.url}/bucket/${e}`,{headers:t.headers}))}async createBucket(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{public:!1};var n=this;return n.handleOperation(async()=>await hs(n.fetch,`${n.url}/bucket`,{id:e,name:e,type:t.type,public:t.public,file_size_limit:t.fileSizeLimit,allowed_mime_types:t.allowedMimeTypes},{headers:n.headers}))}async updateBucket(e,t){var n=this;return n.handleOperation(async()=>await fs(n.fetch,`${n.url}/bucket/${e}`,{id:e,name:e,public:t.public,file_size_limit:t.fileSizeLimit,allowed_mime_types:t.allowedMimeTypes},{headers:n.headers}))}async emptyBucket(e){var t=this;return t.handleOperation(async()=>await hs(t.fetch,`${t.url}/bucket/${e}/empty`,{},{headers:t.headers}))}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await ms(t.fetch,`${t.url}/bucket/${e}`,{},{headers:t.headers}))}listBucketOptionsToQueryString(e){const t={};return e&&("limit"in e&&(t.limit=String(e.limit)),"offset"in e&&(t.offset=String(e.offset)),e.search&&(t.search=e.search),e.sortColumn&&(t.sortColumn=e.sortColumn),e.sortOrder&&(t.sortOrder=e.sortOrder)),Object.keys(t).length>0?"?"+new URLSearchParams(t).toString():""}},js=class extends vs{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;super(e.replace(/\/$/,""),es(es({},_s),t),n,"storage")}async createBucket(e){var t=this;return t.handleOperation(async()=>await hs(t.fetch,`${t.url}/bucket`,{name:e},{headers:t.headers}))}async listBuckets(e){var t=this;return t.handleOperation(async()=>{const n=new URLSearchParams;void 0!==(null===e||void 0===e?void 0:e.limit)&&n.set("limit",e.limit.toString()),void 0!==(null===e||void 0===e?void 0:e.offset)&&n.set("offset",e.offset.toString()),(null===e||void 0===e?void 0:e.sortColumn)&&n.set("sortColumn",e.sortColumn),(null===e||void 0===e?void 0:e.sortOrder)&&n.set("sortOrder",e.sortOrder),(null===e||void 0===e?void 0:e.search)&&n.set("search",e.search);const r=n.toString(),a=r?`${t.url}/bucket?${r}`:`${t.url}/bucket`;return await ds(t.fetch,a,{headers:t.headers})})}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await ms(t.fetch,`${t.url}/bucket/${e}`,{},{headers:t.headers}))}from(e){var t=this;if(!(e=>!(!e||"string"!==typeof e)&&!(0===e.length||e.length>100)&&e.trim()===e&&!e.includes("/")&&!e.includes("\\")&&/^[\w!.\*'() &$@=;:+,?-]+$/.test(e))(e))throw new ts("Invalid bucket name: File, folder, and bucket names must follow AWS object key naming guidelines and should avoid the use of any other characters.");const n=new Ga({baseUrl:this.url,catalogName:e,auth:{type:"custom",getHeaders:async()=>t.headers},fetch:this.fetch}),r=this.shouldThrowOnError;return new Proxy(n,{get(e,t){const n=e[t];return"function"!==typeof n?n:async function(){try{for(var t=arguments.length,a=new Array(t),s=0;s<t;s++)a[s]=arguments[s];return{data:await n.apply(e,a),error:null}}catch(i){if(r)throw i;return{data:null,error:i}}}}})}},Ts=class extends vs{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;super(e.replace(/\/$/,""),es(es({},_s),{},{"Content-Type":"application/json"},t),n,"vectors")}async createIndex(e){var t=this;return t.handleOperation(async()=>await gs.post(t.fetch,`${t.url}/CreateIndex`,e,{headers:t.headers})||{})}async getIndex(e,t){var n=this;return n.handleOperation(async()=>await gs.post(n.fetch,`${n.url}/GetIndex`,{vectorBucketName:e,indexName:t},{headers:n.headers}))}async listIndexes(e){var t=this;return t.handleOperation(async()=>await gs.post(t.fetch,`${t.url}/ListIndexes`,e,{headers:t.headers}))}async deleteIndex(e,t){var n=this;return n.handleOperation(async()=>await gs.post(n.fetch,`${n.url}/DeleteIndex`,{vectorBucketName:e,indexName:t},{headers:n.headers})||{})}},Ns=class extends vs{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;super(e.replace(/\/$/,""),es(es({},_s),{},{"Content-Type":"application/json"},t),n,"vectors")}async putVectors(e){var t=this;if(e.vectors.length<1||e.vectors.length>500)throw new Error("Vector batch size must be between 1 and 500 items");return t.handleOperation(async()=>await gs.post(t.fetch,`${t.url}/PutVectors`,e,{headers:t.headers})||{})}async getVectors(e){var t=this;return t.handleOperation(async()=>await gs.post(t.fetch,`${t.url}/GetVectors`,e,{headers:t.headers}))}async listVectors(e){var t=this;if(void 0!==e.segmentCount){if(e.segmentCount<1||e.segmentCount>16)throw new Error("segmentCount must be between 1 and 16");
2if(void 0!==e.segmentIndex&&(e.segmentIndex<0||e.segmentIndex>=e.segmentCount))throw new Error("segmentIndex must be between 0 and "+(e.segmentCount-1))}return t.handleOperation(async()=>await gs.post(t.fetch,`${t.url}/ListVectors`,e,{headers:t.headers}))}async queryVectors(e){var t=this;return t.handleOperation(async()=>await gs.post(t.fetch,`${t.url}/QueryVectors`,e,{headers:t.headers}))}async deleteVectors(e){var t=this;if(e.keys.length<1||e.keys.length>500)throw new Error("Keys batch size must be between 1 and 500 items");return t.handleOperation(async()=>await gs.post(t.fetch,`${t.url}/DeleteVectors`,e,{headers:t.headers})||{})}},Cs=class extends vs{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;super(e.replace(/\/$/,""),es(es({},_s),{},{"Content-Type":"application/json"},t),n,"vectors")}async createBucket(e){var t=this;return t.handleOperation(async()=>await gs.post(t.fetch,`${t.url}/CreateVectorBucket`,{vectorBucketName:e},{headers:t.headers})||{})}async getBucket(e){var t=this;return t.handleOperation(async()=>await gs.post(t.fetch,`${t.url}/GetVectorBucket`,{vectorBucketName:e},{headers:t.headers}))}async listBuckets(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};var t=this;return t.handleOperation(async()=>await gs.post(t.fetch,`${t.url}/ListVectorBuckets`,e,{headers:t.headers}))}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await gs.post(t.fetch,`${t.url}/DeleteVectorBucket`,{vectorBucketName:e},{headers:t.headers})||{})}},Rs=class extends Cs{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(e,t.headers||{},t.fetch)}from(e){return new As(this.url,this.headers,e,this.fetch)}async createBucket(e){return(()=>super.createBucket)().call(this,e)}async getBucket(e){return(()=>super.getBucket)().call(this,e)}async listBuckets(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(()=>super.listBuckets)().call(this,e)}async deleteBucket(e){return(()=>super.deleteBucket)().call(this,e)}},As=class extends Ts{constructor(e,t,n,r){super(e,t,r),this.vectorBucketName=n}async createIndex(e){return(()=>super.createIndex)().call(this,es(es({},e),{},{vectorBucketName:this.vectorBucketName}))}async listIndexes(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(()=>super.listIndexes)().call(this,es(es({},e),{},{vectorBucketName:this.vectorBucketName}))}async getIndex(e){return(()=>super.getIndex)().call(this,this.vectorBucketName,e)}async deleteIndex(e){return(()=>super.deleteIndex)().call(this,this.vectorBucketName,e)}index(e){return new Os(this.url,this.headers,this.vectorBucketName,e,this.fetch)}},Os=class extends Ns{constructor(e,t,n,r,a){super(e,t,a),this.vectorBucketName=n,this.indexName=r}async putVectors(e){var t=this;return(()=>super.putVectors)().call(t,es(es({},e),{},{vectorBucketName:t.vectorBucketName,indexName:t.indexName}))}async getVectors(e){var t=this;return(()=>super.getVectors)().call(t,es(es({},e),{},{vectorBucketName:t.vectorBucketName,indexName:t.indexName}))}async listVectors(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};var t=this;return(()=>super.listVectors)().call(t,es(es({},e),{},{vectorBucketName:t.vectorBucketName,indexName:t.indexName}))}async queryVectors(e){var t=this;return(()=>super.queryVectors)().call(t,es(es({},e),{},{vectorBucketName:t.vectorBucketName,indexName:t.indexName}))}async deleteVectors(e){var t=this;return(()=>super.deleteVectors)().call(t,es(es({},e),{},{vectorBucketName:t.vectorBucketName,indexName:t.indexName}))}},Ps=class extends Es{constructor(e){super(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},arguments.length>2?arguments[2]:void 0,arguments.length>3?arguments[3]:void 0)}from(e){return new xs(this.url,this.headers,e,this.fetch)}get vectors(){return new Rs(this.url+"/vector",{headers:this.headers,fetch:this.fetch})}get analytics(){return new js(this.url+"/iceberg",this.headers,this.fetch)}};const Ls="2.103.1",$s=3e4,Is=9e4,Ds={"X-Client-Info":`gotrue-js/${Ls}`},Us="X-Supabase-Api-Version",zs={timestamp:Date.parse("2024-01-01T00:00:00.0Z"),name:"2024-01-01"},Ms=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}$|[a-z0-9_-]{2}$)$/i;
2class Fs extends Error{constructor(e,t,n){super(e),this.__isAuthError=!0,this.name="AuthError",this.status=t,this.code=n}toJSON(){return{name:this.name,message:this.message,status:this.status,code:this.code}}}function Bs(e){return"object"===typeof e&&null!==e&&"__isAuthError"in e}class qs extends Fs{constructor(e,t,n){super(e,t,n),this.name="AuthApiError",this.status=t,this.code=n}}class Hs extends Fs{constructor(e,t){super(e),this.name="AuthUnknownError",this.originalError=t}}class Ws extends Fs{constructor(e,t,n,r){super(e,n,r),this.name=t,this.status=n}}class Vs extends Ws{constructor(){super("Auth session missing!","AuthSessionMissingError",400,void 0)}}function Ks(e){return Bs(e)&&"AuthSessionMissingError"===e.name}class Js extends Ws{constructor(){super("Auth session or user missing","AuthInvalidTokenResponseError",500,void 0)}}class Gs extends Ws{constructor(e){super(e,"AuthInvalidCredentialsError",400,void 0)}}class Qs extends Ws{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;super(e,"AuthImplicitGrantRedirectError",500,void 0),this.details=null,this.details=t}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{details:this.details})}}class Ys extends Ws{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;super(e,"AuthPKCEGrantCodeExchangeError",500,void 0),this.details=null,this.details=t}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{details:this.details})}}class Xs extends Ws{constructor(){super("PKCE code verifier not found in storage. This can happen if the auth flow was initiated in a different browser or device, or if the storage was cleared. For SSR frameworks (Next.js, SvelteKit, etc.), use @supabase/ssr on both the server and client to store the code verifier in cookies.","AuthPKCECodeVerifierMissingError",400,"pkce_code_verifier_not_found")}}class Zs extends Ws{constructor(e,t){super(e,"AuthRetryableFetchError",t,void 0)}}function ei(e){return Bs(e)&&"AuthRetryableFetchError"===e.name}class ti extends Ws{constructor(e,t,n){super(e,"AuthWeakPasswordError",t,"weak_password"),this.reasons=n}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{reasons:this.reasons})}}class ni extends Ws{constructor(e){super(e,"AuthInvalidJwtError",400,"invalid_jwt")}}const ri="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),ai=" \t\n\r=".split(""),si=(()=>{const e=new Array(128);for(let t=0;t<e.length;t+=1)e[t]=-1;for(let t=0;t<ai.length;t+=1)e[ai[t].charCodeAt(0)]=-2;for(let t=0;t<ri.length;t+=1)e[ri[t].charCodeAt(0)]=t;return e})();function ii(e,t,n){if(null!==e)for(t.queue=t.queue<<8|e,t.queuedBits+=8;t.queuedBits>=6;){const e=t.queue>>t.queuedBits-6&63;n(ri[e]),t.queuedBits-=6}else if(t.queuedBits>0)for(t.queue=t.queue<<6-t.queuedBits,t.queuedBits=6;t.queuedBits>=6;){const e=t.queue>>t.queuedBits-6&63;n(ri[e]),t.queuedBits-=6}}function oi(e,t,n){const r=si[e];if(!(r>-1)){if(-2===r)return;throw new Error(`Invalid Base64-URL character "${String.fromCharCode(e)}"`)}for(t.queue=t.queue<<6|r,t.queuedBits+=6;t.queuedBits>=8;)n(t.queue>>t.queuedBits-8&255),t.queuedBits-=8}function li(e){const t=[],n=e=>{t.push(String.fromCodePoint(e))},r={utf8seq:0,codepoint:0},a={queue:0,queuedBits:0},s=e=>{!function(e,t,n){if(0===t.utf8seq){if(e<=127)return void n(e);for(let n=1;n<6;n+=1)if(0===(e>>7-n&1)){t.utf8seq=n;break}if(2===t.utf8seq)t.codepoint=31&e;else if(3===t.utf8seq)t.codepoint=15&e;else{if(4!==t.utf8seq)throw new Error("Invalid UTF-8 sequence");t.codepoint=7&e}t.utf8seq-=1}else if(t.utf8seq>0){if(e<=127)throw new Error("Invalid UTF-8 sequence");t.codepoint=t.codepoint<<6|63&e,t.utf8seq-=1,0===t.utf8seq&&n(t.codepoint)}}(e,r,n)};for(let i=0;i<e.length;i+=1)oi(e.charCodeAt(i),a,s);return t.join("")}function ci(e,t){if(!(e<=127)){if(e<=2047)return t(192|e>>6),void t(128|63&e);if(e<=65535)return t(224|e>>12),t(128|e>>6&63),void t(128|63&e);if(e<=1114111)return t(240|e>>18),t(128|e>>12&63),t(128|e>>6&63),void t(128|63&e);throw new Error(`Unrecognized Unicode codepoint: ${e.toString(16)}`)}t(e)}function ui(e,t){for(let n=0;n<e.length;n+=1){let r=e.charCodeAt(n);if(r>55295&&r<=56319){const t=1024*(r-55296)&65535;r=65536+(e.charCodeAt(n+1)-56320&65535|t),n+=1}ci(r,t)}}function di(e){const t=[],n={queue:0,queuedBits:0},r=e=>{t.push(e)};for(let a=0;a<e.length;a+=1)oi(e.charCodeAt(a),n,r);return new Uint8Array(t)}function hi(e){const t=[],n={queue:0,queuedBits:0},r=e=>{t.push(e)};
2return e.forEach(e=>ii(e,n,r)),ii(null,n,r),t.join("")}const fi=()=>"undefined"!==typeof window&&"undefined"!==typeof document,pi={tested:!1,writable:!1},mi=()=>{if(!fi())return!1;try{if("object"!==typeof globalThis.localStorage)return!1}catch(Uo){return!1}if(pi.tested)return pi.writable;const e=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(e,e),globalThis.localStorage.removeItem(e),pi.tested=!0,pi.writable=!0}catch(Uo){pi.tested=!0,pi.writable=!1}return pi.writable};const gi=e=>e?function(){return e(...arguments)}:function(){return fetch(...arguments)},vi=async(e,t,n)=>{await e.setItem(t,JSON.stringify(n))},yi=async(e,t)=>{const n=await e.getItem(t);if(!n)return null;try{return JSON.parse(n)}catch(r){return n}},bi=async(e,t)=>{await e.removeItem(t)};class wi{constructor(){this.promise=new wi.promiseConstructor((e,t)=>{this.resolve=e,this.reject=t})}}function ki(e){const t=e.split(".");if(3!==t.length)throw new ni("Invalid JWT structure");for(let n=0;n<t.length;n++)if(!Ms.test(t[n]))throw new ni("JWT not in base64url format");return{header:JSON.parse(li(t[0])),payload:JSON.parse(li(t[1])),signature:di(t[2]),raw:{header:t[0],payload:t[1]}}}function Si(e){return("0"+e.toString(16)).substr(-2)}async function xi(e){if(!("undefined"!==typeof crypto&&"undefined"!==typeof crypto.subtle&&"undefined"!==typeof TextEncoder))return console.warn("WebCrypto API is not supported. Code challenge method will default to use plain instead of sha256."),e;const t=await async function(e){const t=(new TextEncoder).encode(e),n=await crypto.subtle.digest("SHA-256",t),r=new Uint8Array(n);return Array.from(r).map(e=>String.fromCharCode(e)).join("")}(e);return btoa(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function _i(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=function(){const e=new Uint32Array(56);if("undefined"===typeof crypto){const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",t=e.length;let n="";for(let r=0;r<56;r++)n+=e.charAt(Math.floor(Math.random()*t));return n}return crypto.getRandomValues(e),Array.from(e,Si).join("")}();let a=r;n&&(a+="/PASSWORD_RECOVERY"),await vi(e,`${t}-code-verifier`,a);const s=await xi(r);return[s,r===s?"plain":"s256"]}wi.promiseConstructor=Promise;const Ei=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;const ji=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;function Ti(e){if(!ji.test(e))throw new Error("@supabase/auth-js: Expected parameter to be UUID but is not")}function Ni(){return new Proxy({},{get:(e,t)=>{if("__isUserNotAvailableProxy"===t)return!0;if("symbol"===typeof t){const e=t.toString();if("Symbol(Symbol.toPrimitive)"===e||"Symbol(Symbol.toStringTag)"===e||"Symbol(util.inspect.custom)"===e)return}throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Accessing the "${t}" property of the session object is not supported. Please use getUser() instead.`)},set:(e,t)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Setting the "${t}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)},deleteProperty:(e,t)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Deleting the "${t}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)}})}function Ci(e){return JSON.parse(JSON.stringify(e))}const Ri=e=>e.msg||e.message||e.error_description||e.error||JSON.stringify(e),Ai=[502,503,504];async function Oi(e){var t,n;if(!("object"===typeof(n=e)&&null!==n&&"status"in n&&"ok"in n&&"json"in n&&"function"===typeof n.json))throw new Zs(Ri(e),0);if(Ai.includes(e.status))throw new Zs(Ri(e),e.status);let r,a;try{r=await e.json()}catch(Uo){throw new Hs(Ri(Uo),Uo)}const s=function(e){const t=e.headers.get(Us);if(!t)return null;if(!t.match(Ei))return null;try{return new Date(`${t}T00:00:00.0Z`)}catch(Uo){return null}}(e);if(s&&s.getTime()>=zs.timestamp&&"object"===typeof r&&r&&"string"===typeof r.code?a=r.code:"object"===typeof r&&r&&"string"===typeof r.error_code&&(a=r.error_code),a){if("weak_password"===a)throw new ti(Ri(r),e.status,(null===(t=r.weak_password)||void 0===t?void 0:t.reasons)||[]);if("session_not_found"===a)throw new Vs}else if("object"===typeof r&&r&&"object"===typeof r.weak_password&&r.weak_password&&Array.isArray(r.weak_password.reasons)&&r.weak_password.reasons.length&&r.weak_password.reasons.reduce((e,t)=>
2e&&"string"===typeof t,!0))throw new ti(Ri(r),e.status,r.weak_password.reasons);throw new qs(Ri(r),e.status||500,a)}async function Pi(e,t,n,r){var a;const s=Object.assign({},null===r||void 0===r?void 0:r.headers);s[Us]||(s[Us]=zs.name),(null===r||void 0===r?void 0:r.jwt)&&(s.Authorization=`Bearer ${r.jwt}`);const i=null!==(a=null===r||void 0===r?void 0:r.query)&&void 0!==a?a:{};(null===r||void 0===r?void 0:r.redirectTo)&&(i.redirect_to=r.redirectTo);const o=Object.keys(i).length?"?"+new URLSearchParams(i).toString():"",l=await async function(e,t,n,r,a,s){const i=((e,t,n,r)=>{const a={method:e,headers:(null===t||void 0===t?void 0:t.headers)||{}};return"GET"===e?a:(a.headers=Object.assign({"Content-Type":"application/json;charset=UTF-8"},null===t||void 0===t?void 0:t.headers),a.body=JSON.stringify(r),Object.assign(Object.assign({},a),n))})(t,r,a,s);let o;try{o=await e(n,Object.assign({},i))}catch(Uo){throw console.error(Uo),new Zs(Ri(Uo),0)}o.ok||await Oi(o);if(null===r||void 0===r?void 0:r.noResolveJson)return o;try{return await o.json()}catch(Uo){await Oi(Uo)}}(e,t,n+o,{headers:s,noResolveJson:null===r||void 0===r?void 0:r.noResolveJson},{},null===r||void 0===r?void 0:r.body);return(null===r||void 0===r?void 0:r.xform)?null===r||void 0===r?void 0:r.xform(l):{data:Object.assign({},l),error:null}}function Li(e){var t;let n=null;var r;(function(e){return e.access_token&&e.refresh_token&&e.expires_in})(e)&&(n=Object.assign({},e),e.expires_at||(n.expires_at=(r=e.expires_in,Math.round(Date.now()/1e3)+r)));return{data:{session:n,user:null!==(t=e.user)&&void 0!==t?t:e},error:null}}function $i(e){const t=Li(e);return!t.error&&e.weak_password&&"object"===typeof e.weak_password&&Array.isArray(e.weak_password.reasons)&&e.weak_password.reasons.length&&e.weak_password.message&&"string"===typeof e.weak_password.message&&e.weak_password.reasons.reduce((e,t)=>e&&"string"===typeof t,!0)&&(t.data.weak_password=e.weak_password),t}function Ii(e){var t;return{data:{user:null!==(t=e.user)&&void 0!==t?t:e},error:null}}function Di(e){return{data:e,error:null}}function Ui(e){const{action_link:t,email_otp:n,hashed_token:r,redirect_to:a,verification_type:s}=e,i=ar(e,["action_link","email_otp","hashed_token","redirect_to","verification_type"]);return{data:{properties:{action_link:t,email_otp:n,hashed_token:r,redirect_to:a,verification_type:s},user:Object.assign({},i)},error:null}}function zi(e){return e}const Mi=["global","local","others"];class Fi{constructor(e){let{url:t="",headers:n={},fetch:r}=e;this.url=t,this.headers=n,this.fetch=gi(r),this.mfa={listFactors:this._listFactors.bind(this),deleteFactor:this._deleteFactor.bind(this)},this.oauth={listClients:this._listOAuthClients.bind(this),createClient:this._createOAuthClient.bind(this),getClient:this._getOAuthClient.bind(this),updateClient:this._updateOAuthClient.bind(this),deleteClient:this._deleteOAuthClient.bind(this),regenerateClientSecret:this._regenerateOAuthClientSecret.bind(this)},this.customProviders={listProviders:this._listCustomProviders.bind(this),createProvider:this._createCustomProvider.bind(this),getProvider:this._getCustomProvider.bind(this),updateProvider:this._updateCustomProvider.bind(this),deleteProvider:this._deleteCustomProvider.bind(this)}}async signOut(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Mi[0];if(Mi.indexOf(t)<0)throw new Error(`@supabase/auth-js: Parameter scope must be one of ${Mi.join(", ")}`);try{return await Pi(this.fetch,"POST",`${this.url}/logout?scope=${t}`,{headers:this.headers,jwt:e,noResolveJson:!0}),{data:null,error:null}}catch(n){if(Bs(n))return{data:null,error:n};throw n}}async inviteUserByEmail(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};try{return await Pi(this.fetch,"POST",`${this.url}/invite`,{body:{email:e,data:t.data},headers:this.headers,redirectTo:t.redirectTo,xform:Ii})}catch(n){if(Bs(n))return{data:{user:null},error:n};throw n}}async generateLink(e){try{const{options:t}=e,n=ar(e,["options"]),r=Object.assign(Object.assign({},n),t);return"newEmail"in n&&(r.new_email=null===n||void 0===n?void 0:n.newEmail,delete r.newEmail),await Pi(this.fetch,"POST",`${this.url}/admin/generate_link`,{body:r,headers:this.headers,xform:Ui,redirectTo:null===t||void 0===t?void 0:t.redirectTo})}catch(t){if(Bs(t))return{data:{properties:null,user:null},error:t};throw t}}async createUser(e){try{return await Pi(this.fetch,"POST",`${this.url}/admin/users`,{body:e,headers:this.headers,xform:Ii})}catch(t){if(Bs(t))return{data:{user:null},error:t};throw t}}async listUsers(e){var t,n,r,a,s,i,o;try{const l={nextPage:null,lastPage:0,total:0},c=await Pi(this.fetch,"GET",`${this.url}/admin/users`,{headers:this.headers,noResolveJson:!0,query:{page:null!==(n=null===(t=null===e||void 0===e?void 0:e.page)||void 0===t?void 0:t.toString())&&void 0!==n?n:"",per_page:null!==(a=null===(r=null===e||void 0===e?void 0:e.perPage)||void 0===r?void 0:r.toString())&&void 0!==a?a:""},xform:zi});if(c.error)throw c.error;const u=await c.json(),d=null!==(s=c.headers.get("x-total-count"))&&void 0!==s?s:0,h=null!==(o=null===(i=c.headers.get("link"))||void 0===i?void 0:i.split(","))&&void 0!==o?o:[];return h.length>
20&&(h.forEach(e=>{const t=parseInt(e.split(";")[0].split("=")[1].substring(0,1)),n=JSON.parse(e.split(";")[1].split("=")[1]);l[`${n}Page`]=t}),l.total=parseInt(d)),{data:Object.assign(Object.assign({},u),l),error:null}}catch(l){if(Bs(l))return{data:{users:[]},error:l};throw l}}async getUserById(e){Ti(e);try{return await Pi(this.fetch,"GET",`${this.url}/admin/users/${e}`,{headers:this.headers,xform:Ii})}catch(t){if(Bs(t))return{data:{user:null},error:t};throw t}}async updateUserById(e,t){Ti(e);try{return await Pi(this.fetch,"PUT",`${this.url}/admin/users/${e}`,{body:t,headers:this.headers,xform:Ii})}catch(n){if(Bs(n))return{data:{user:null},error:n};throw n}}async deleteUser(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];Ti(e);try{return await Pi(this.fetch,"DELETE",`${this.url}/admin/users/${e}`,{headers:this.headers,body:{should_soft_delete:t},xform:Ii})}catch(n){if(Bs(n))return{data:{user:null},error:n};throw n}}async _listFactors(e){Ti(e.userId);try{const{data:t,error:n}=await Pi(this.fetch,"GET",`${this.url}/admin/users/${e.userId}/factors`,{headers:this.headers,xform:e=>({data:{factors:e},error:null})});return{data:t,error:n}}catch(t){if(Bs(t))return{data:null,error:t};throw t}}async _deleteFactor(e){Ti(e.userId),Ti(e.id);try{return{data:await Pi(this.fetch,"DELETE",`${this.url}/admin/users/${e.userId}/factors/${e.id}`,{headers:this.headers}),error:null}}catch(t){if(Bs(t))return{data:null,error:t};throw t}}async _listOAuthClients(e){var t,n,r,a,s,i,o;try{const l={nextPage:null,lastPage:0,total:0},c=await Pi(this.fetch,"GET",`${this.url}/admin/oauth/clients`,{headers:this.headers,noResolveJson:!0,query:{page:null!==(n=null===(t=null===e||void 0===e?void 0:e.page)||void 0===t?void 0:t.toString())&&void 0!==n?n:"",per_page:null!==(a=null===(r=null===e||void 0===e?void 0:e.perPage)||void 0===r?void 0:r.toString())&&void 0!==a?a:""},xform:zi});if(c.error)throw c.error;const u=await c.json(),d=null!==(s=c.headers.get("x-total-count"))&&void 0!==s?s:0,h=null!==(o=null===(i=c.headers.get("link"))||void 0===i?void 0:i.split(","))&&void 0!==o?o:[];return h.length>0&&(h.forEach(e=>{const t=parseInt(e.split(";")[0].split("=")[1].substring(0,1)),n=JSON.parse(e.split(";")[1].split("=")[1]);l[`${n}Page`]=t}),l.total=parseInt(d)),{data:Object.assign(Object.assign({},u),l),error:null}}catch(l){if(Bs(l))return{data:{clients:[]},error:l};throw l}}async _createOAuthClient(e){try{return await Pi(this.fetch,"POST",`${this.url}/admin/oauth/clients`,{body:e,headers:this.headers,xform:e=>({data:e,error:null})})}catch(t){if(Bs(t))return{data:null,error:t};throw t}}async _getOAuthClient(e){try{return await Pi(this.fetch,"GET",`${this.url}/admin/oauth/clients/${e}`,{headers:this.headers,xform:e=>({data:e,error:null})})}catch(t){if(Bs(t))return{data:null,error:t};throw t}}async _updateOAuthClient(e,t){try{return await Pi(this.fetch,"PUT",`${this.url}/admin/oauth/clients/${e}`,{body:t,headers:this.headers,xform:e=>({data:e,error:null})})}catch(n){if(Bs(n))return{data:null,error:n};throw n}}async _deleteOAuthClient(e){try{return await Pi(this.fetch,"DELETE",`${this.url}/admin/oauth/clients/${e}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(t){if(Bs(t))return{data:null,error:t};throw t}}async _regenerateOAuthClientSecret(e){try{return await Pi(this.fetch,"POST",`${this.url}/admin/oauth/clients/${e}/regenerate_secret`,{headers:this.headers,xform:e=>({data:e,error:null})})}catch(t){if(Bs(t))return{data:null,error:t};throw t}}async _listCustomProviders(e){try{const t={};return(null===e||void 0===e?void 0:e.type)&&(t.type=e.type),await Pi(this.fetch,"GET",`${this.url}/admin/custom-providers`,{headers:this.headers,query:t,xform:e=>{var t;return{data:{providers:null!==(t=null===e||void 0===e?void 0:e.providers)&&void 0!==t?t:[]},error:null}}})}catch(t){if(Bs(t))return{data:{providers:[]},error:t};throw t}}async _createCustomProvider(e){try{return await Pi(this.fetch,"POST",`${this.url}/admin/custom-providers`,{body:e,headers:this.headers,xform:e=>({data:e,error:null})})}catch(t){if(Bs(t))return{data:null,error:t};throw t}}async _getCustomProvider(e){try{return await Pi(this.fetch,"GET",`${this.url}/admin/custom-providers/${e}`,{headers:this.headers,xform:e=>({data:e,error:null})})}catch(t){if(Bs(t))return{data:null,error:t};throw t}}async _updateCustomProvider(e,t){try{return await Pi(this.fetch,"PUT",`${this.url}/admin/custom-providers/${e}`,{body:t,headers:this.headers,xform:e=>({data:e,error:null})})}catch(n){if(Bs(n))return{data:null,error:n};throw n}}async _deleteCustomProvider(e){try{return await Pi(this.fetch,"DELET
2E",`${this.url}/admin/custom-providers/${e}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(t){if(Bs(t))return{data:null,error:t};throw t}}}function Bi(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{getItem:t=>e[t]||null,setItem:(t,n)=>{e[t]=n},removeItem:t=>{delete e[t]}}}const qi=!!(globalThis&&mi()&&globalThis.localStorage&&"true"===globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug"));class Hi extends Error{constructor(e){super(e),this.isAcquireTimeout=!0}}class Wi extends Hi{}async function Vi(e,t,n){qi&&console.log("@supabase/gotrue-js: navigatorLock: acquire lock",e,t);const r=new globalThis.AbortController;let a;t>0&&(a=setTimeout(()=>{r.abort(),qi&&console.log("@supabase/gotrue-js: navigatorLock acquire timed out",e)},t)),await Promise.resolve();try{return await globalThis.navigator.locks.request(e,0===t?{mode:"exclusive",ifAvailable:!0}:{mode:"exclusive",signal:r.signal},async r=>{if(!r){if(0===t)throw qi&&console.log("@supabase/gotrue-js: navigatorLock: not immediately available",e),new Wi(`Acquiring an exclusive Navigator LockManager lock "${e}" immediately failed`);if(qi)try{const e=await globalThis.navigator.locks.query();console.log("@supabase/gotrue-js: Navigator LockManager state",JSON.stringify(e,null," "))}catch(Uo){console.warn("@supabase/gotrue-js: Error when querying Navigator LockManager state",Uo)}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"),clearTimeout(a),await n()}clearTimeout(a),qi&&console.log("@supabase/gotrue-js: navigatorLock: acquired",e,r.name);try{return await n()}finally{qi&&console.log("@supabase/gotrue-js: navigatorLock: released",e,r.name)}})}catch(Uo){if(t>0&&clearTimeout(a),"AbortError"===(null===Uo||void 0===Uo?void 0:Uo.name)&&t>0){if(r.signal.aborted)return qi&&console.log("@supabase/gotrue-js: navigatorLock: acquire timeout, recovering by stealing lock",e),console.warn(`@supabase/gotrue-js: Lock "${e}" was not released within ${t}ms. This may indicate an orphaned lock from a component unmount (e.g., React Strict Mode). Forcefully acquiring the lock to recover.`),await Promise.resolve().then(()=>globalThis.navigator.locks.request(e,{mode:"exclusive",steal:!0},async t=>{if(!t)return console.warn("@supabase/gotrue-js: Navigator LockManager returned null lock even with steal: true"),await n();qi&&console.log("@supabase/gotrue-js: navigatorLock: recovered (stolen)",e,t.name);try{return await n()}finally{qi&&console.log("@supabase/gotrue-js: navigatorLock: released (stolen)",e,t.name)}}));throw qi&&console.log("@supabase/gotrue-js: navigatorLock: lock was stolen by another request",e),new Wi(`Lock "${e}" was released because another request stole it`)}throw Uo}}function Ki(e){if(!/^0x[a-fA-F0-9]{40}$/.test(e))throw new Error(`@supabase/auth-js: Address "${e}" is invalid.`);return e.toLowerCase()}function Ji(e){const t=(new TextEncoder).encode(e);return"0x"+Array.from(t,e=>e.toString(16).padStart(2,"0")).join("")}class Gi extends Error{constructor(e){let{message:t,code:n,cause:r,name:a}=e;var s;super(t,{cause:r}),this.__isWebAuthnError=!0,this.name=null!==(s=null!==a&&void 0!==a?a:r instanceof Error?r.name:void 0)&&void 0!==s?s:"Unknown Error",this.code=n}}class Qi extends Gi{constructor(e,t){super({code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:t,message:e}),this.name="WebAuthnUnknownError",this.originalError=t}}
vendor: 2,701 bytes, line 2
2function Yi(e){let{error:t,options:n}=e;var r,a,s;const{publicKey:i}=n;if(!i)throw Error("options was missing required publicKey property");if("AbortError"===t.name){if(n.signal instanceof AbortSignal)return new Gi({message:"Registration ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:t})}else if("ConstraintError"===t.name){if(!0===(null===(r=i.authenticatorSelection)||void 0===r?void 0:r.requireResidentKey))return new Gi({message:"Discoverable credentials were required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_DISCOVERABLE_CREDENTIAL_SUPPORT",cause:t});if("conditional"===n.mediation&&"required"===(null===(a=i.authenticatorSelection)||void 0===a?void 0:a.userVerification))return new Gi({message:"User verification was required during automatic registration but it could not be performed",code:"ERROR_AUTO_REGISTER_USER_VERIFICATION_FAILURE",cause:t});if("required"===(null===(s=i.authenticatorSelection)||void 0===s?void 0:s.userVerification))return new Gi({message:"User verification was required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_USER_VERIFICATION_SUPPORT",cause:t})}else{if("InvalidStateError"===t.name)return new Gi({message:"The authenticator was previously registered",code:"ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED",cause:t});if("NotAllowedError"===t.name)return new Gi({message:t.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:t});if("NotSupportedError"===t.name){return 0===i.pubKeyCredParams.filter(e=>"public-key"===e.type).length?new Gi({message:'No entry in pubKeyCredParams was of type "public-key"',code:"ERROR_MALFORMED_PUBKEYCREDPARAMS",cause:t}):new Gi({message:"No available authenticator supported any of the specified pubKeyCredParams algorithms",code:"ERROR_AUTHENTICATOR_NO_SUPPORTED_PUBKEYCREDPARAMS_ALG",cause:t})}if("SecurityError"===t.name){const e=window.location.hostname;if(!ao(e))return new Gi({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:t});if(i.rp.id!==e)return new Gi({message:`The RP ID "${i.rp.id}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:t})}else if("TypeError"===t.name){if(i.user.id.byteLength<1||i.user.id.byteLength>64)return new Gi({message:"User ID was not between 1 and 64 characters",code:"ERROR_INVALID_USER_ID_LENGTH",cause:t})}else if("UnknownError"===t.name)return new Gi({message:"The authenticator was unable to process the specified options, or could not create a new credential",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:t})}return new Gi({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:t})}
2function Xi(e){let{error:t,options:n}=e;const{publicKey:r}=n;if(!r)throw Error("options was missing required publicKey property");if("AbortError"===t.name){if(n.signal instanceof AbortSignal)return new Gi({message:"Authentication ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:t})}else{if("NotAllowedError"===t.name)return new Gi({message:t.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:t});if("SecurityError"===t.name){const e=window.location.hostname;if(!ao(e))return new Gi({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:t});if(r.rpId!==e)return new Gi({message:`The RP ID "${r.rpId}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:t})}else if("UnknownError"===t.name)return new Gi({message:"The authenticator was unable to process the specified options, or could not create a new assertion signature",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:t})}return new Gi({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:t})}const Zi=new class{createNewAbortSignal(){if(this.controller){const e=new Error("Cancelling existing WebAuthn API call for new one");e.name="AbortError",this.controller.abort(e)}const e=new AbortController;return this.controller=e,e.signal}cancelCeremony(){if(this.controller){const e=new Error("Manually cancelling existing WebAuthn API call");e.name="AbortError",this.controller.abort(e),this.controller=void 0}}};function eo(e){if(!e)throw new Error("Credential creation options are required");if("undefined"!==typeof PublicKeyCredential&&"parseCreationOptionsFromJSON"in PublicKeyCredential&&"function"===typeof PublicKeyCredential.parseCreationOptionsFromJSON)return PublicKeyCredential.parseCreationOptionsFromJSON(e);const{challenge:t,user:n,excludeCredentials:r}=e,a=ar(e,["challenge","user","excludeCredentials"]),s=di(t).buffer,i=Object.assign(Object.assign({},n),{id:di(n.id).buffer}),o=Object.assign(Object.assign({},a),{challenge:s,user:i});if(r&&r.length>0){o.excludeCredentials=new Array(r.length);for(let e=0;e<r.length;e++){const t=r[e];o.excludeCredentials[e]=Object.assign(Object.assign({},t),{id:di(t.id).buffer,type:t.type||"public-key",transports:t.transports})}}return o}function to(e){if(!e)throw new Error("Credential request options are required");if("undefined"!==typeof PublicKeyCredential&&"parseRequestOptionsFromJSON"in PublicKeyCredential&&"function"===typeof PublicKeyCredential.parseRequestOptionsFromJSON)return PublicKeyCredential.parseRequestOptionsFromJSON(e);const{challenge:t,allowCredentials:n}=e,r=ar(e,["challenge","allowCredentials"]),a=di(t).buffer,s=Object.assign(Object.assign({},r),{challenge:a});if(n&&n.length>0){s.allowCredentials=new Array(n.length);for(let e=0;e<n.length;e++){const t=n[e];s.allowCredentials[e]=Object.assign(Object.assign({},t),{id:di(t.id).buffer,type:t.type||"public-key",transports:t.transports})}}return s}function no(e){var t;if("toJSON"in e&&"function"===typeof e.toJSON)return e.toJSON();const n=e;return{id:e.id,rawId:e.id,response:{attestationObject:hi(new Uint8Array(e.response.attestationObject)),clientDataJSON:hi(new Uint8Array(e.response.clientDataJSON))},type:"public-key",clientExtensionResults:e.getClientExtensionResults(),authenticatorAttachment:null!==(t=n.authenticatorAttachment)&&void 0!==t?t:void 0}}function ro(e){var t;if("toJSON"in e&&"function"===typeof e.toJSON)return e.toJSON();const n=e,r=e.getClientExtensionResults(),a=e.response;return{id:e.id,rawId:e.id,response:{authenticatorData:hi(new Uint8Array(a.authenticatorData)),clientDataJSON:hi(new Uint8Array(a.clientDataJSON)),signature:hi(new Uint8Array(a.signature)),userHandle:a.userHandle?hi(new Uint8Array(a.userHandle)):void 0},type:"public-key",clientExtensionResults:r,authenticatorAttachment:null!==(t=n.authenticatorAttachment)&&void 0!==t?t:void 0}}function ao(e){return"localhost"===e||/^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i.test(e)}function so(){var e,t;return!!(fi()&&"PublicKeyCredential"in window&&window.PublicKeyCredential&&"credentials"in navigator&&"function"===typeof(null===(e=null===navigator||void 0===navigator?void 0:navigator.credentials)||void 0===e?void 0:e.create)&&"function"===typeof(null===(t=null===navigator||void 0===navigator?void 0:navigator.credentials)||void 0===t?void 0:t.get))}const io={hints:["security-key"],authenticatorSelection:{authenticatorAttachment:"cross-platform",requireResidentKey:!1,userVerification:"preferred",residentKey:"discouraged"},attestation:"direct"},oo={userVerification:"preferred",hints:["security-key"],attestation:"direct"};function lo(){const e=e=>null!==e&&"object"===typeof e&&!Array.isArray(e),t=e=>e instanceof ArrayBuffer||ArrayBuffer.isView(e),n={};for(var r=arguments.length,a=new Array(r),s=0;s<r;s++)a[s]=arguments[s];for(const i of a)if(i)for(const r in i){const a=i[r];if(void 0!==a)if(Array.isArray(a))n[r]=a;else if(t(a))n[r]=a;else if(e(a)){const t=n[r];e(t)?n[r]=lo(t,a):n[r]=lo(a)}else n[r]=a}return n}class co{constructor(e){this.client=e,this.enroll=this._enroll.bind(this),this.challenge=this._challenge.bind(this),this.verify=this._verify.bind(this),this.authenticate=this._authenticate.bind(this),this.register=this._register.bind(this)}async _enroll(e){return this.client.mfa.enroll(Object.assign(Object.assign({},e),{factorType:"webauthn"}))}async _challenge(e,t){let{factorId:n,webauthn:r,friendlyName:a,signal:s}=e;var i;try{const{data:e,error:o}=await this.client.mfa.challenge({factorId:n,webauthn:r});if(!e)return{data:null,error:o};const l=null!==s&&void 0!==s?s:Zi.createNewAbortSignal();if("create"===e.webauthn.type){const{user:t}=e.webauthn.credential_options.publicKey;if(!t.name){const e=a;if(e)t.name=`${t.id}:${e}`;else{const e=(await this.client.getUser()).data.user,n=(null===(i=null===e||void 0===e?void 0:e.user_metadata)||void 0===i?void 0:i.name)||(null===e||void 0===e?void 0:e.email)||(null===e||void 0===e?void 0:e.id)||"User";t.name=`${t.id}:${n}`}}t.displayName||(t.displayName=t.name)}switch(e.webauthn.type){case"create":{const r=function(e,t){return lo(io,e,t||{})}(e.webauthn.credential_options.publicKey,null===t||void 0===t?void 0:t.create),{data:a,error:s}=await async function(e){try{const t=await navigator.credentials.create(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new Qi("Browser returned unexpected credential type",t)}:{data:null,error:new Qi("Empty credential response",t)}}
2catch(t){return{data:null,error:Yi({error:t,options:e})}}}({publicKey:r,signal:l});return a?{data:{factorId:n,challengeId:e.id,webauthn:{type:e.webauthn.type,credential_response:a}},error:null}:{data:null,error:s}}case"request":{const r=function(e,t){return lo(oo,e,t||{})}(e.webauthn.credential_options.publicKey,null===t||void 0===t?void 0:t.request),{data:a,error:s}=await async function(e){try{const t=await navigator.credentials.get(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new Qi("Browser returned unexpected credential type",t)}:{data:null,error:new Qi("Empty credential response",t)}}catch(t){return{data:null,error:Xi({error:t,options:e})}}}(Object.assign(Object.assign({},e.webauthn.credential_options),{publicKey:r,signal:l}));return a?{data:{factorId:n,challengeId:e.id,webauthn:{type:e.webauthn.type,credential_response:a}},error:null}:{data:null,error:s}}}}catch(o){return Bs(o)?{data:null,error:o}:{data:null,error:new Hs("Unexpected error in challenge",o)}}}async _verify(e){let{challengeId:t,factorId:n,webauthn:r}=e;return this.client.mfa.verify({factorId:n,challengeId:t,webauthn:r})}async _authenticate(e,t){let{factorId:n,webauthn:{rpId:r=("undefined"!==typeof window?window.location.hostname:void 0),rpOrigins:a=("undefined"!==typeof window?[window.location.origin]:void 0),signal:s}={}}=e;if(!r)return{data:null,error:new Fs("rpId is required for WebAuthn authentication")};try{if(!so())return{data:null,error:new Hs("Browser does not support WebAuthn",null)};const{data:e,error:i}=await this.challenge({factorId:n,webauthn:{rpId:r,rpOrigins:a},signal:s},{request:t});if(!e)return{data:null,error:i};const{webauthn:o}=e;return this._verify({factorId:n,challengeId:e.challengeId,webauthn:{type:o.type,rpId:r,rpOrigins:a,credential_response:o.credential_response}})}catch(i){return Bs(i)?{data:null,error:i}:{data:null,error:new Hs("Unexpected error in authenticate",i)}}}async _register(e,t){let{friendlyName:n,webauthn:{rpId:r=("undefined"!==typeof window?window.location.hostname:void 0),rpOrigins:a=("undefined"!==typeof window?[window.location.origin]:void 0),signal:s}={}}=e;if(!r)return{data:null,error:new Fs("rpId is required for WebAuthn registration")};try{if(!so())return{data:null,error:new Hs("Browser does not support WebAuthn",null)};const{data:e,error:i}=await this._enroll({friendlyName:n});if(!e)return await this.client.mfa.listFactors().then(e=>{var t;return null===(t=e.data)||void 0===t?void 0:t.all.find(e=>"webauthn"===e.factor_type&&e.friendly_name===n&&"unverified"!==e.status)}).then(e=>e?this.client.mfa.unenroll({factorId:null===e||void 0===e?void 0:e.id}):void 0),{data:null,error:i};const{data:o,error:l}=await this._challenge({factorId:e.id,friendlyName:e.friendly_name,webauthn:{rpId:r,rpOrigins:a},signal:s},{create:t});return o?this._verify({factorId:e.id,challengeId:o.challengeId,webauthn:{rpId:r,rpOrigins:a,type:o.webauthn.type,credential_response:o.webauthn.credential_response}}):{data:null,error:l}}catch(i){return Bs(i)?{data:null,error:i}:{data:null,error:new Hs("Unexpected error in register",i)}}}}!function(){if("object"!==typeof globalThis)try{Object.defineProperty(Object.prototype,"__magic__",{get:function(){return this},configurable:!0}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__}catch(Uo){"undefined"!==typeof self&&(self.globalThis=self)}}();const uo={url:"http://localhost:9999",storageKey:"supabase.auth.token",autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:Ds,flowType:"implicit",debug:!1,hasCustomAuthorizationHeader:!1,throwOnError:!1,lockAcquireTimeout:5e3,skipAutoInitialize:!1};async function ho(e,t,n){return await n()}const fo={};class po{get jwks(){var e,t;return null!==(t=null===(e=fo[this.storageKey])||void 0===e?void 0:e.jwks)&&void 0!==t?t:{keys:[]}}set jwks(e){fo[this.storageKey]=Object.assign(Object.assign({},fo[this.storageKey]),{jwks:e})}get jwks_cached_at(){var e,t;return null!==(t=null===(e=fo[this.storageKey])||void 0===e?void 0:e.cachedAt)&&void 0!==t?t:Number.MIN_SAFE_INTEGER}set jwks_cached_at(e){fo[this.storageKey]=Object.assign(Object.assign({},fo[this.storageKey]),{cachedAt:e})}constructor(e){var t,n,r;this.userStorage=null,this.memoryStorage=null,this.stateChangeEmitters=new Map,this.autoRefreshTicker=null,this.autoRefreshTickTimeout=null,this.visibilityChangedCallback=null,this.refreshingDeferred=null,this.initializePromise=null,this.detectSessionInUrl=!0,this.hasCustomAuthorizationHeader=!1,this.suppressGetSessionWarning=!1,this.lockAcquired=!1,this.pendingInLock=[],this.broadcastChannel=null,this.logger=console.log;const a=Object.assign(Object.assign({},uo),e);if(this.storageKey=a.storageKey,this.instanceID=null!==(t=po.nextInstanceID[this.storageKey])&&void 0!==t?t:0,po.nextInstanceID[this.storageKey]=this.instanceID+1,this.logDebugMessages=!!a.debug,"function"===typeof a.debug&&(this.logger=a.debug),this.instanceID>0&&fi()){const e=`${this._logPrefix()} Multiple GoTrueClient instances detected in the same browser context. It is not an error, but this should be avoided as it may produce undefined behavior when used concurrently under the same storage key.`;console.warn(e),this.logDebugMessages&&console.trace(e)}if(this.persistSession=a.persistSession,this.autoRefreshToken=a.autoRefreshToken,this.admin=new Fi({url:a.url,headers:a.headers,fetch:a.fetch}),this.url=a.url,this.headers=a.headers,this.fetch=gi(a.fetch),this.lock=a.lock||ho,this.detectSessionInUrl=a.detectSessionInUrl,this.flowType=a.flowType,this.hasCustomAuthorizationHeader=a.hasCustomAuthorizationHeader,this.throwOnError=a.throwOnError,this.lockAcquireTimeout=a.lockAcquireTimeout,a.lock?this.lock=a.lock:this.persistSession&&fi()&&(null===(n=null===globalThis||void 0===globalThis?void 0:globalThis.navigator)||void 0===n?void 0:n.locks)?this.lock=Vi:this.lock=ho,this.jwks||(this.jwks={keys:[]},this.jwks_cached_at=Number.MIN_SAFE_INTEGER),this.mfa={verify:this._verify.bind(this),enroll:this._enroll.bind(this),unenroll:this._unenroll.bind(this),challenge:this._challenge.bind(this),listFactors:this._listFactors.bind(this),challengeAndVerify:this._challengeAndVerify.bind(this),getAuthenticatorAssuranceLevel:this._getAuthenticatorAssuranceLevel.bind(this),webauthn:new co(this)}
vendor: 9,543 bytes, line 2
2,this.oauth={getAuthorizationDetails:this._getAuthorizationDetails.bind(this),approveAuthorization:this._approveAuthorization.bind(this),denyAuthorization:this._denyAuthorization.bind(this),listGrants:this._listOAuthGrants.bind(this),revokeGrant:this._revokeOAuthGrant.bind(this)},this.persistSession?(a.storage?this.storage=a.storage:mi()?this.storage=globalThis.localStorage:(this.memoryStorage={},this.storage=Bi(this.memoryStorage)),a.userStorage&&(this.userStorage=a.userStorage)):(this.memoryStorage={},this.storage=Bi(this.memoryStorage)),fi()&&globalThis.BroadcastChannel&&this.persistSession&&this.storageKey){try{this.broadcastChannel=new globalThis.BroadcastChannel(this.storageKey)}catch(Uo){console.error("Failed to create a new BroadcastChannel, multi-tab state changes will not be available",Uo)}null===(r=this.broadcastChannel)||void 0===r||r.addEventListener("message",async e=>{this._debug("received broadcast notification from other tab or client",e);try{await this._notifyAllSubscribers(e.data.event,e.data.session,!1)}catch(t){this._debug("#broadcastChannel","error",t)}})}a.skipAutoInitialize||this.initialize().catch(e=>{this._debug("#initialize()","error",e)})}isThrowOnErrorEnabled(){return this.throwOnError}_returnResult(e){if(this.throwOnError&&e&&e.error)throw e.error;return e}_logPrefix(){return`GoTrueClient@${this.storageKey}:${this.instanceID} (${Ls}) ${(new Date).toISOString()}`}_debug(){if(this.logDebugMessages){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.logger(this._logPrefix(),...t)}return this}async initialize(){return this.initializePromise||(this.initializePromise=(async()=>await this._acquireLock(this.lockAcquireTimeout,async()=>await this._initialize()))()),await this.initializePromise}async _initialize(){var e;try{let t={},n="none";if(fi()&&(t=function(e){const t={},n=new URL(e);if(n.hash&&"#"===n.hash[0])try{new URLSearchParams(n.hash.substring(1)).forEach((e,n)=>{t[n]=e})}catch(Uo){}return n.searchParams.forEach((e,n)=>{t[n]=e}),t}(window.location.href),this._isImplicitGrantCallback(t)?n="implicit":await this._isPKCECallback(t)&&(n="pkce")),fi()&&this.detectSessionInUrl&&"none"!==n){const{data:r,error:a}=await this._getSessionFromURL(t,n);if(a){if(this._debug("#_initialize()","error detecting session from URL",a),function(e){return Bs(e)&&"AuthImplicitGrantRedirectError"===e.name}(a)){const t=null===(e=a.details)||void 0===e?void 0:e.code;if("identity_already_exists"===t||"identity_not_found"===t||"single_identity_not_deletable"===t)return{error:a}}return{error:a}}const{session:s,redirectType:i}=r;return this._debug("#_initialize()","detected session in URL",s,"redirect type",i),await this._saveSession(s),setTimeout(async()=>{"recovery"===i?await this._notifyAllSubscribers("PASSWORD_RECOVERY",s):await this._notifyAllSubscribers("SIGNED_IN",s)},0),{error:null}}return await this._recoverAndRefresh(),{error:null}}catch(t){return Bs(t)?this._returnResult({error:t}):this._returnResult({error:new Hs("Unexpected error during initialization",t)})}finally{await this._handleVisibilityChange(),this._debug("#_initialize()","end")}}async signInAnonymously(e){var t,n,r;try{const a=await Pi(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{data:null!==(n=null===(t=null===e||void 0===e?void 0:e.options)||void 0===t?void 0:t.data)&&void 0!==n?n:{},gotrue_meta_security:{captcha_token:null===(r=null===e||void 0===e?void 0:e.options)||void 0===r?void 0:r.captchaToken}},xform:Li}),{data:s,error:i}=a;if(i||!s)return this._returnResult({data:{user:null,session:null},error:i});const o=s.session,l=s.user;return s.session&&(await this._saveSession(s.session),await this._notifyAllSubscribers("SIGNED_IN",o)),this._returnResult({data:{user:l,session:o},error:null})}catch(a){if(Bs(a))return this._returnResult({data:{user:null,session:null},error:a});throw a}}async signUp(e){var t,n,r;try{let a;if("email"in e){const{email:n,password:r,options:s}=e;let i=null,o=null;"pkce"===this.flowType&&([i,o]=await _i(this.storage,this.storageKey)),a=await Pi(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,redirectTo:null===s||void 0===s?void 0:s.emailRedirectTo,body:{email:n,password:r,data:null!==(t=null===s||void 0===s?void 0:s.data)&&void 0!==t?t:{},gotrue_meta_security:{captcha_token:null===s||void 0===s?void 0:s.captchaToken},code_challenge:i,code_challenge_method:o},xform:Li})}else{if(!("phone"in e))throw new Gs("You must provide either an email or phone number and a password");{const{phone:t,password:s,options:i}=e;a=await Pi(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{phone:t,password:s,data:null!==(n=null===i||void 0===i?void 0:i.data)&&void 0!==n?n:{},channel:null!==(r=null===i||void 0===i?void 0:i.channel)&&void 0!==r?r:"sms",gotrue_meta_security:{captcha_token:null===i||void 0===i?void 0:i.captchaToken}},xform:Li})}}const{data:s,error:i}=a;if(i||!s)return await bi(this.storage,`${this.storageKey}-code-verifier`),this._returnResult({data:{user:null,session:null},error:i});const o=s.session,l=s.user;return s.session&&(await this._saveSession(s.session),await this._notifyAllSubscribers("SIGNED_IN",o)),this._returnResult({data:{user:l,session:o},error:null})}catch(a){if(await bi(this.storage,`${this.storageKey}-code-verifier`),Bs(a))return this._returnResult({data:{user:null,session:null},error:a});throw a}}async signInWithPassword(e){try{let t;if("email"in e){const{email:n,password:r,options:a}=e;t=await Pi(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{email:n,password:r,gotrue_meta_security:{captcha_token:null===a||void 0===a?void 0:a.captchaToken}},xform:$i})}else{if(!("phone"in e))throw new Gs("You must provide either an email or phone number and a password");{const{phone:n,password:r,options:a}=e;t=await Pi(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{phone:n,password:r,gotrue_meta_security:{captcha_token:null===a||void 0===a?void 0:a.captchaToken}},xform:$i})}}const{data:n,error:r}=t;if(r)return this._returnResult({data:{user:null,session:null},error:r});if(!n||!n.session||!n.user){const e=new Js;return this._returnResult({data:{user:null,session:null},error:e})}return n.session&&(await this._saveSession(n.session),await this._notifyAllSubscribers("SIGNED_IN",n.session)),this._returnResult({data:Object.assign({user:n.user,session:n.session},n.weak_password?{weakPassword:n.weak_password}:null),error:r})}catch(t){if(Bs(t))return this._returnResult({data:{user:null,session:null},error:t});throw t}}async signInWithOAuth(e){var t,n,r,a;return await this._handleProviderSignIn(e.provider,{redirectTo:null===(t=e.options)||void 0===t?void 0:t.redirectTo,scopes:null===(n=e.options)||void 0===n?void 0:n.scopes,queryParams:null===(r=e.options)||void 0===r?void 0:r.queryParams,skipBrowserRedirect:null===(a=e.options)||void 0===a?void 0:a.skipBrowserRedirect})}async exchangeCodeForSession(e){return await this.initializePromise,this._acquireLock(this.lockAcquireTimeout,async()=>this._exchangeCodeForSession(e))}async signInWithWeb3(e){const{chain:t}=e;switch(t){case"ethereum":return await this.signInWithEthereum(e);case"solana":return await this.signInWithSolana(e);default:throw new Error(`@supabase/auth-js: Unsupported chain "${t}"`)}}async signInWithEthereum(e){var t,n,r,a,s,i,o,l,c,u,d;let h,f;if("message"in e)h=e.message,f=e.signature;else{const{chain:u,wallet:d,statement:p,options:m}=e;let g;if(fi())if("object"===typeof d)g=d;else{const e=window;if(!("ethereum"in e)||"object"!==typeof e.ethereum||!("request"in e.ethereum)||"function"!==typeof e.ethereum.request)throw new Error("@supabase/auth-js: No compatible Ethereum wallet interface on the window object (window.ethereum) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'ethereum', wallet: resolvedUserWallet }) instead.");g=e.ethereum}else{if("object"!==typeof d||!(null===m||void 0===m?void 0:m.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");g=d}const v=new URL(null!==(t=null===m||void 0===m?void 0:m.url)&&void 0!==t?t:window.location.href),y=await g.request({method:"eth_requestAccounts"}).then(e=>e).catch(()=>{throw new Error("@supabase/auth-js: Wallet method eth_requestAccounts is missing or invalid")});if(!y||0===y.length)throw new Error("@supabase/auth-js: No accounts available. Please ensure the wallet is connected.");const b=Ki(y[0]);let w=null===(n=null===m||void 0===m?void 0:m.signInWithEthereum)||void 0===n?void 0:n.chainId;if(!w){const e=await g.request({method:"eth_chainId"});w=parseInt(e,16)}h=function(e){var t;const{chainId:n,domain:r,expirationTime:a,issuedAt:s=new Date,nonce:i,notBefore:o,requestId:l,resources:c,scheme:u,uri:d,version:h}=e;if(!Number.isInteger(n))throw new Error(`@supabase/auth-js: Invalid SIWE message field "chainId". Chain ID must be a EIP-155 chain ID. Provided value: ${n}`);if(!r)throw new Error('@supabase/auth-js: Invalid SIWE message field "domain". Domain must be provided.');if(i&&i.length<8)throw new Error(`@supabase/auth-js: Invalid SIWE message field "nonce". Nonce must be at least 8 characters. Provided value: ${i}`);if(!d)throw new Error('@supabase/auth-js: Invalid SIWE message field "uri". URI must be provided.');if("1"!==h)throw new Error(`@supabase/auth-js: Invalid SIWE message field "version". Version must be '1'. Provided value: ${h}`);
2if(null===(t=e.statement)||void 0===t?void 0:t.includes("\n"))throw new Error(`@supabase/auth-js: Invalid SIWE message field "statement". Statement must not include '\\n'. Provided value: ${e.statement}`);const f=`${u?`${u}://${r}`:r} wants you to sign in with your Ethereum account:\n${Ki(e.address)}\n\n${e.statement?`${e.statement}\n`:""}`;let p=`URI: ${d}\nVersion: ${h}\nChain ID: ${n}${i?`\nNonce: ${i}`:""}\nIssued At: ${s.toISOString()}`;if(a&&(p+=`\nExpiration Time: ${a.toISOString()}`),o&&(p+=`\nNot Before: ${o.toISOString()}`),l&&(p+=`\nRequest ID: ${l}`),c){let e="\nResources:";for(const t of c){if(!t||"string"!==typeof t)throw new Error(`@supabase/auth-js: Invalid SIWE message field "resources". Every resource must be a valid string. Provided value: ${t}`);e+=`\n- ${t}`}p+=e}return`${f}\n${p}`}({domain:v.host,address:b,statement:p,uri:v.href,version:"1",chainId:w,nonce:null===(r=null===m||void 0===m?void 0:m.signInWithEthereum)||void 0===r?void 0:r.nonce,issuedAt:null!==(s=null===(a=null===m||void 0===m?void 0:m.signInWithEthereum)||void 0===a?void 0:a.issuedAt)&&void 0!==s?s:new Date,expirationTime:null===(i=null===m||void 0===m?void 0:m.signInWithEthereum)||void 0===i?void 0:i.expirationTime,notBefore:null===(o=null===m||void 0===m?void 0:m.signInWithEthereum)||void 0===o?void 0:o.notBefore,requestId:null===(l=null===m||void 0===m?void 0:m.signInWithEthereum)||void 0===l?void 0:l.requestId,resources:null===(c=null===m||void 0===m?void 0:m.signInWithEthereum)||void 0===c?void 0:c.resources}),f=await g.request({method:"personal_sign",params:[Ji(h),b]})}try{const{data:t,error:n}=await Pi(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"ethereum",message:h,signature:f},(null===(u=e.options)||void 0===u?void 0:u.captchaToken)?{gotrue_meta_security:{captcha_token:null===(d=e.options)||void 0===d?void 0:d.captchaToken}}:null),xform:Li});if(n)throw n;if(!t||!t.session||!t.user){const e=new Js;return this._returnResult({data:{user:null,session:null},error:e})}return t.session&&(await this._saveSession(t.session),await this._notifyAllSubscribers("SIGNED_IN",t.session)),this._returnResult({data:Object.assign({},t),error:n})}catch(p){if(Bs(p))return this._returnResult({data:{user:null,session:null},error:p});throw p}}async signInWithSolana(e){var t,n,r,a,s,i,o,l,c,u,d,h;let f,p;if("message"in e)f=e.message,p=e.signature;else{const{chain:d,wallet:h,statement:m,options:g}=e;let v;if(fi())if("object"===typeof h)v=h;else{const e=window;if(!("solana"in e)||"object"!==typeof e.solana||!("signIn"in e.solana&&"function"===typeof e.solana.signIn||"signMessage"in e.solana&&"function"===typeof e.solana.signMessage))throw new Error("@supabase/auth-js: No compatible Solana wallet interface on the window object (window.solana) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'solana', wallet: resolvedUserWallet }) instead.");v=e.solana}else{if("object"!==typeof h||!(null===g||void 0===g?void 0:g.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");v=h}const y=new URL(null!==(t=null===g||void 0===g?void 0:g.url)&&void 0!==t?t:window.location.href);if("signIn"in v&&v.signIn){const e=await v.signIn(Object.assign(Object.assign(Object.assign({issuedAt:(new Date).toISOString()},null===g||void 0===g?void 0:g.signInWithSolana),{version:"1",domain:y.host,uri:y.href}),m?{statement:m}:null));let t;if(Array.isArray(e)&&e[0]&&"object"===typeof e[0])t=e[0];else{if(!(e&&"object"===typeof e&&"signedMessage"in e&&"signature"in e))throw new Error("@supabase/auth-js: Wallet method signIn() returned unrecognized value");t=e}if(!("signedMessage"in t&&"signature"in t&&("string"===typeof t.signedMessage||t.signedMessage instanceof Uint8Array)&&t.signature instanceof Uint8Array))throw new Error("@supabase/auth-js: Wallet method signIn() API returned object without signedMessage and signature fields");f="string"===typeof t.signedMessage?t.signedMessage:(new TextDecoder).decode(t.signedMessage),p=t.signature}else{if(!("signMessage"in v)||"function"!==typeof v.signMessage||!("publicKey"in v)||"object"!==typeof v||!v.publicKey||!("toBase58"in v.publicKey)||"function"!==typeof v.publicKey.toBase58)throw new Error("@supabase/auth-js: Wallet does not have a compatible signMessage() and publicKey.toBase58() API");f=[`${y.host} wants you to sign in with your Solana account:`,v.publicKey.toBase58(),...m?["",m,""]:[""],"Version: 1",`URI: ${y.href}`,`Issued At: ${null!==(r=null===(n=null===g||void 0===g?void 0:g.signInWithSolana)||void 0===n?void 0:n.issuedAt)&&void 0!==r?r:(new Date).toISOString()}`,...(null===(a=null===g||void 0===g?void 0:g.signInWithSolana)||void 0===a?void 0:a.notBefore)?[`Not Before: ${g.signInWithSolana.notBefore}`]:[],...(null===(s=null===g||void 0===g?void 0:g.signInWithSolana)||void 0===s?void 0:s.expirationTime)?[`Expiration Time: ${g.signInWithSolana.expirationTime}`]:[],...(null===(i=null===g||void 0===g?void 0:g.signInWithSolana)||void 0===i?void 0:i.chainId)?[`Chain ID: ${g.signInWithSolana.chainId}`]:[],...(null===(o=null===g||void 0===g?void 0:g.signInWithSolana)||void 0===o?void 0:o.nonce)?[`Nonce: ${g.signInWithSolana.nonce}`]:[],...(null===(l=null===g||void 0===g?void 0:g.signInWithSolana)||void 0===l?void 0:l.requestId)?[`Request ID: ${g.signInWithSolana.requestId}`]:[],...(null===(u=null===(c=null===g||void 0===g?void 0:g.signInWithSolana)||void 0===c?void 0:c.resources)||void 0===u?void 0:u.length)?["Resources",...g.signInWithSolana.resources.map(e=>`- ${e}`)]:[]].join("\n");const e=await v.signMessage((new TextEncoder).encode(f),"utf8");if(!e||!(e instanceof Uint8Array))throw new Error("@supabase/auth-js: Wallet signMessage() API returned an recognized value");p=e}}try{const{data:t,error:n}=await Pi(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"solana",message:f,signature:hi(p)},(null===(d=e.options)||void 0===d?void 0:d.captchaToken)?{gotrue_meta_security:{captcha_token:null===(h=e.options)||void 0===h?void 0:h.captchaToken}}:null),xform:Li});if(n)throw n;if(!t||!t.session||!t.user){const e=new Js;return this._returnResult({data:{user:null,session:null},error:e})}return t.session&&(await this._saveSession(t.session),await this._notifyAllSubscribers("SIGNED_IN",t.session)),this._returnResult({data:Object.assign({},t),error:n})}catch(m){if(Bs(m))return this._returnResult({data:{user:null,session:null},error:m});throw m}}async _exchangeCodeForSession(e){const t=await yi(this.storage,`${this.storageKey}-code-verifier`),[n,r]=(null!==t&&void 0!==t?t:"").split("/");try{if(!n&&"pkce"===this.flowType)throw new Xs;const{data:t,error:a}=await Pi(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:e,code_verifier:n},xform:Li});if(await bi(this.storage,`${this.storageKey}-code-verifier`),a)throw a;if(!t||!t.session||!t.user){const e=new Js;return this._returnResult({data:{user:null,session:null,redirectType:null},error:e})}return t.session&&(await this._saveSession(t.session),await this._notifyAllSubscribers("SIGNED_IN",t.session)),this._returnResult({data:Object.assign(Object.assign({},t),{redirectType:null!==r&&void 0!==r?r:null}),error:a})}catch(a){if(await bi(this.storage,`${this.storageKey}-code-verifier`),Bs(a))return this._returnResult({data:{user:null,session:null,redirectType:null},error:a});throw a}}async signInWithIdToken(e){try{const{options:t,provider:n,token:r,access_token:a,nonce:s}=e,i=await Pi(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:n,id_token:r,access_token:a,nonce:s,gotrue_meta_security:{captcha_token:null===t||void 0===t?void 0:t.captchaToken}},xform:Li}),{data:o,error:l}=i;if(l)return this._returnResult({data:{user:null,session:null},error:l});if(!o||!o.session||!o.user){const e=new Js;return this._returnResult({data:{user:null,session:null},error:e})}return o.session&&(await this._saveSession(o.session),await this._notifyAllSubscribers("SIGNED_IN",o.session)),this._returnResult({data:o,error:l})}catch(t){if(Bs(t))return this._returnResult({data:{user:null,session:null},error:t});throw t}}async signInWithOtp(e){var t,n,r,a,s;try{if("email"in e){const{email:r,options:a}=e;let s=null,i=null;"pkce"===this.flowType&&([s,i]=await _i(this.storage,this.storageKey));const{error:o}=await Pi(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{email:r,data:null!==(t=null===a||void 0===a?void 0:a.data)&&void 0!==t?t:{}
vendor: 5,902 bytes, line 2
2,create_user:null===(n=null===a||void 0===a?void 0:a.shouldCreateUser)||void 0===n||n,gotrue_meta_security:{captcha_token:null===a||void 0===a?void 0:a.captchaToken},code_challenge:s,code_challenge_method:i},redirectTo:null===a||void 0===a?void 0:a.emailRedirectTo});return this._returnResult({data:{user:null,session:null},error:o})}if("phone"in e){const{phone:t,options:n}=e,{data:i,error:o}=await Pi(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{phone:t,data:null!==(r=null===n||void 0===n?void 0:n.data)&&void 0!==r?r:{},create_user:null===(a=null===n||void 0===n?void 0:n.shouldCreateUser)||void 0===a||a,gotrue_meta_security:{captcha_token:null===n||void 0===n?void 0:n.captchaToken},channel:null!==(s=null===n||void 0===n?void 0:n.channel)&&void 0!==s?s:"sms"}});return this._returnResult({data:{user:null,session:null,messageId:null===i||void 0===i?void 0:i.message_id},error:o})}throw new Gs("You must provide either an email or phone number.")}catch(i){if(await bi(this.storage,`${this.storageKey}-code-verifier`),Bs(i))return this._returnResult({data:{user:null,session:null},error:i});throw i}}async verifyOtp(e){var t,n;try{let r,a;"options"in e&&(r=null===(t=e.options)||void 0===t?void 0:t.redirectTo,a=null===(n=e.options)||void 0===n?void 0:n.captchaToken);const{data:s,error:i}=await Pi(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},e),{gotrue_meta_security:{captcha_token:a}}),redirectTo:r,xform:Li});if(i)throw i;if(!s){throw new Error("An error occurred on token verification.")}const o=s.session,l=s.user;return(null===o||void 0===o?void 0:o.access_token)&&(await this._saveSession(o),await this._notifyAllSubscribers("recovery"==e.type?"PASSWORD_RECOVERY":"SIGNED_IN",o)),this._returnResult({data:{user:l,session:o},error:null})}catch(r){if(Bs(r))return this._returnResult({data:{user:null,session:null},error:r});throw r}}async signInWithSSO(e){var t,n,r,a,s;try{let i=null,o=null;"pkce"===this.flowType&&([i,o]=await _i(this.storage,this.storageKey));const l=await Pi(this.fetch,"POST",`${this.url}/sso`,{body:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},"providerId"in e?{provider_id:e.providerId}:null),"domain"in e?{domain:e.domain}:null),{redirect_to:null!==(n=null===(t=e.options)||void 0===t?void 0:t.redirectTo)&&void 0!==n?n:void 0}),(null===(r=null===e||void 0===e?void 0:e.options)||void 0===r?void 0:r.captchaToken)?{gotrue_meta_security:{captcha_token:e.options.captchaToken}}:null),{skip_http_redirect:!0,code_challenge:i,code_challenge_method:o}),headers:this.headers,xform:Di});return(null===(a=l.data)||void 0===a?void 0:a.url)&&fi()&&!(null===(s=e.options)||void 0===s?void 0:s.skipBrowserRedirect)&&window.location.assign(l.data.url),this._returnResult(l)}catch(i){if(await bi(this.storage,`${this.storageKey}-code-verifier`),Bs(i))return this._returnResult({data:null,error:i});throw i}}async reauthenticate(){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._reauthenticate())}async _reauthenticate(){try{return await this._useSession(async e=>{const{data:{session:t},error:n}=e;if(n)throw n;if(!t)throw new Vs;const{error:r}=await Pi(this.fetch,"GET",`${this.url}/reauthenticate`,{headers:this.headers,jwt:t.access_token});return this._returnResult({data:{user:null,session:null},error:r})})}catch(e){if(Bs(e))return this._returnResult({data:{user:null,session:null},error:e});throw e}}async resend(e){try{const t=`${this.url}/resend`;if("email"in e){const{email:n,type:r,options:a}=e,{error:s}=await Pi(this.fetch,"POST",t,{headers:this.headers,body:{email:n,type:r,gotrue_meta_security:{captcha_token:null===a||void 0===a?void 0:a.captchaToken}},redirectTo:null===a||void 0===a?void 0:a.emailRedirectTo});return this._returnResult({data:{user:null,session:null},error:s})}if("phone"in e){const{phone:n,type:r,options:a}=e,{data:s,error:i}=await Pi(this.fetch,"POST",t,{headers:this.headers,body:{phone:n,type:r,gotrue_meta_security:{captcha_token:null===a||void 0===a?void 0:a.captchaToken}}});return this._returnResult({data:{user:null,session:null,messageId:null===s||void 0===s?void 0:s.message_id},error:i})}throw new Gs("You must provide either an email or phone number and a type")}catch(t){if(Bs(t))return this._returnResult({data:{user:null,session:null},error:t});throw t}}async getSession(){await this.initializePromise;return await this._acquireLock(this.lockAcquireTimeout,async()=>this._useSession(async e=>e))}async _acquireLock(e,t){this._debug("#_acquireLock","begin",e);try{if(this.lockAcquired){const e=this.pendingInLock.length?this.pendingInLock[this.pendingInLock.length-1]:Promise.resolve(),n=(async()=>(await e,await t()))();return this.pendingInLock.push((async()=>{try{await n}catch(Uo){}})()),n}return await this.lock(`lock:${this.storageKey}`,e,async()=>{this._debug("#_acquireLock","lock acquired for storage key",this.storageKey);try{this.lockAcquired=!0;const e=t();for(this.pendingInLock.push((async()=>{try{await e}catch(Uo){}})()),await e;this.pendingInLock.length;){const e=[...this.pendingInLock];await Promise.all(e),this.pendingInLock.splice(0,e.length)}return await e}finally{this._debug("#_acquireLock","lock released for storage key",this.storageKey),this.lockAcquired=!1}})}finally{this._debug("#_acquireLock","end")}}async _useSession(e){this._debug("#_useSession","begin");try{const t=await this.__loadSession();return await e(t)}finally{this._debug("#_useSession","end")}}async __loadSession(){this._debug("#__loadSession()","begin"),this.lockAcquired||this._debug("#__loadSession()","used outside of an acquired lock!",(new Error).stack);try{let e=null;const t=await yi(this.storage,this.storageKey);if(this._debug("#getSession()","session from storage",t),null!==t&&(this._isValidSession(t)?e=t:(this._debug("#getSession()","session from storage is not val
2id"),await this._removeSession())),!e)return{data:{session:null},error:null};const n=!!e.expires_at&&1e3*e.expires_at-Date.now()<Is;if(this._debug("#__loadSession()",`session has${n?"":" not"} expired`,"expires_at",e.expires_at),!n){if(this.userStorage){const t=await yi(this.userStorage,this.storageKey+"-user");(null===t||void 0===t?void 0:t.user)?e.user=t.user:e.user=Ni()}if(this.storage.isServer&&e.user&&!e.user.__isUserNotAvailableProxy){const t={value:this.suppressGetSessionWarning};e.user=function(e,t){return new Proxy(e,{get:(e,n,r)=>{if("__isInsecureUserWarningProxy"===n)return!0;if("symbol"===typeof n){const t=n.toString();if("Symbol(Symbol.toPrimitive)"===t||"Symbol(Symbol.toStringTag)"===t||"Symbol(util.inspect.custom)"===t||"Symbol(nodejs.util.inspect.custom)"===t)return Reflect.get(e,n,r)}return t.value||"string"!==typeof n||(console.warn("Using the user object as returned from supabase.auth.getSession() or from some supabase.auth.onAuthStateChange() events could be insecure! This value comes directly from the storage medium (usually cookies on the server) and may not be authentic. Use supabase.auth.getUser() instead which authenticates the data by contacting the Supabase Auth server."),t.value=!0),Reflect.get(e,n,r)}})}(e.user,t),t.value&&(this.suppressGetSessionWarning=!0)}return{data:{session:e},error:null}}const{data:r,error:a}=await this._callRefreshToken(e.refresh_token);return a?this._returnResult({data:{session:null},error:a}):this._returnResult({data:{session:r},error:null})}finally{this._debug("#__loadSession()","end")}}async getUser(e){if(e)return await this._getUser(e);await this.initializePromise;const t=await this._acquireLock(this.lockAcquireTimeout,async()=>await this._getUser());return t.data.user&&(this.suppressGetSessionWarning=!0),t}async _getUser(e){try{return e?await Pi(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:e,xform:Ii}):await this._useSession(async e=>{var t,n,r;const{data:a,error:s}=e;if(s)throw s;return(null===(t=a.session)||void 0===t?void 0:t.access_token)||this.hasCustomAuthorizationHeader?await Pi(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:null!==(r=null===(n=a.session)||void 0===n?void 0:n.access_token)&&void 0!==r?r:void 0,xform:Ii}):{data:{user:null},error:new Vs}})}catch(t){if(Bs(t))return Ks(t)&&(await this._removeSession(),await bi(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({data:{user:null},error:t});throw t}}async updateUser(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._updateUser(e,t))}async _updateUser(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};try{return await this._useSession(async n=>{const{data:r,error:a}=n;if(a)throw a;if(!r.session)throw new Vs;const s=r.session;let i=null,o=null;"pkce"===this.flowType&&null!=e.email&&([i,o]=await _i(this.storage,this.storageKey));const{data:l,error:c}=await Pi(this.fetch,"PUT",`${this.url}/user`,{headers:this.headers,redirectTo:null===t||void 0===t?void 0:t.emailRedirectTo,body:Object.assign(Object.assign({},e),{code_challenge:i,code_challenge_method:o}),jwt:s.access_token,xform:Ii});if(c)throw c;return s.user=l.user,await this._saveSession(s),await this._notifyAllSubscribers("USER_UPDATED",s),this._returnResult({data:{user:s.user},error:null})})}catch(n){if(await bi(this.storage,`${this.storageKey}-code-verifier`),Bs(n))return this._returnResult({data:{user:null},error:n});throw n}}async setSession(e){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._setSession(e))}async _setSession(e){try{if(!e.access_token||!e.refresh_token)throw new Vs;const t=Date.now()/1e3;let n=t,r=!0,a=null;const{payload:s}=ki(e.access_token);if(s.exp&&(n=s.exp,r=n<=t),r){const{data:t,error:n}=await this._callRefreshToken(e.refresh_token);if(n)return this._returnResult({data:{user:null,session:null},error:n});if(!t)return{data:{user:null,session:null},error:null};a=t}else{const{data:r,error:s}=await this._getUser(e.access_token);if(s)return this._returnResult({data:{user:null,session:null},error:s});a={access_token:e.access_token,refresh_token:e.refresh_token,user:r.user,token_type:"bearer",expires_in:n-t,expires_at:n},await this._saveSession(a),await this._notifyAllSubscribers("SIGNED_IN",a)}return this._returnResult({data:{user:a.user,session:a},error:null})}catch(t){if(Bs(t))return this._returnResult({data:{session:null,user:null},error:t});throw t}}async refreshSession(e){return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._refreshSession(e))}async _refreshSession(e){try{return await this._useSession(async t=>{var n;if(!e){const{data:r,error:a}=t;if(a)throw a;e=null!==(n=r.session)&&void 0!==n?n:void 0}if(!(null===e||void 0===e?void 0:e.refresh_token))throw new Vs;const{data:r,error:a}=await this._callRefreshToken(e.refresh_token);return a?this._returnResult({data:{user:null,session:null},error:a}):r?this._returnResult({data:{user:r.user,session:r},error:null}):this._returnResult({data:{user:null,session:null},error:null})})}catch(t){if(Bs(t))return this._returnResult({data:{user:null,session:null},error:t});throw t}}async _getSessionFromURL(e,t){try{if(!fi())throw new Qs("No browser detected.");
vendor: 21,006 bytes, line 2
2if(e.error||e.error_description||e.error_code)throw new Qs(e.error_description||"Error in URL with unspecified error_description",{error:e.error||"unspecified_error",code:e.error_code||"unspecified_code"});switch(t){case"implicit":if("pkce"===this.flowType)throw new Ys("Not a valid PKCE flow url.");break;case"pkce":if("implicit"===this.flowType)throw new Qs("Not a valid implicit grant flow url.")}if("pkce"===t){if(this._debug("#_initialize()","begin","is PKCE flow",!0),!e.code)throw new Ys("No code detected.");const{data:t,error:n}=await this._exchangeCodeForSession(e.code);if(n)throw n;const r=new URL(window.location.href);return r.searchParams.delete("code"),window.history.replaceState(window.history.state,"",r.toString()),{data:{session:t.session,redirectType:null},error:null}}const{provider_token:n,provider_refresh_token:r,access_token:a,refresh_token:s,expires_in:i,expires_at:o,token_type:l}=e;if(!a||!i||!s||!l)throw new Qs("No session defined in URL");const c=Math.round(Date.now()/1e3),u=parseInt(i);let d=c+u;o&&(d=parseInt(o));const h=d-c;1e3*h<=$s&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${h}s, should have been closer to ${u}s`);const f=d-u;c-f>=120?console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale",f,d,c):c-f<0&&console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clock for skew",f,d,c);const{data:p,error:m}=await this._getUser(a);if(m)throw m;const g={provider_token:n,provider_refresh_token:r,access_token:a,expires_in:u,expires_at:d,refresh_token:s,token_type:l,user:p.user};return window.location.hash="",this._debug("#_getSessionFromURL()","clearing window.location.hash"),this._returnResult({data:{session:g,redirectType:e.type},error:null})}catch(n){if(Bs(n))return this._returnResult({data:{session:null,redirectType:null},error:n});throw n}}_isImplicitGrantCallback(e){return"function"===typeof this.detectSessionInUrl?this.detectSessionInUrl(new URL(window.location.href),e):Boolean(e.access_token||e.error_description)}async _isPKCECallback(e){const t=await yi(this.storage,`${this.storageKey}-code-verifier`);return!(!e.code||!t)}async signOut(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{scope:"global"};return await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>await this._signOut(e))}async _signOut(){let{scope:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{scope:"global"};return await this._useSession(async t=>{var n;const{data:r,error:a}=t;if(a&&!Ks(a))return this._returnResult({error:a});const s=null===(n=r.session)||void 0===n?void 0:n.access_token;if(s){const{error:t}=await this.admin.signOut(s,e);if(t&&(!function(e){return Bs(e)&&"AuthApiError"===e.name}(t)||404!==t.status&&401!==t.status&&403!==t.status)&&!Ks(t))return this._returnResult({error:t})}return"others"!==e&&(await this._removeSession(),await bi(this.storage,`${this.storageKey}-code-verifier`)),this._returnResult({error:null})})}onAuthStateChange(e){const t=Symbol("auth-callback"),n={id:t,callback:e,unsubscribe:()=>{this._debug("#unsubscribe()","state change callback with id removed",t),this.stateChangeEmitters.delete(t)}};return this._debug("#onAuthStateChange()","registered callback with id",t),this.stateChangeEmitters.set(t,n),(async()=>{await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>{this._emitInitialSession(t)})})(),{data:{subscription:n}}}async _emitInitialSession(e){return await this._useSession(async t=>{var n,r;try{const{data:{session:r},error:a}=t;if(a)throw a;await(null===(n=this.stateChangeEmitters.get(e))||void 0===n?void 0:n.callback("INITIAL_SESSION",r)),this._debug("INITIAL_SESSION","callback id",e,"session",r)}catch(a){await(null===(r=this.stateChangeEmitters.get(e))||void 0===r?void 0:r.callback("INITIAL_SESSION",null)),this._debug("INITIAL_SESSION","callback id",e,"error",a),Ks(a)?console.warn(a):console.error(a)}})}async resetPasswordForEmail(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null,r=null;"pkce"===this.flowType&&([n,r]=await _i(this.storage,this.storageKey,!0));try{return await Pi(this.fetch,"POST",`${this.url}/recover`,{body:{email:e,code_challenge:n,code_challenge_method:r,gotrue_meta_security:{captcha_token:t.captchaToken}},headers:this.headers,redirectTo:t.redirectTo})}catch(a){if(await bi(this.storage,`${this.storageKey}-code-verifier`),Bs(a))return this._returnResult({data:null,error:a});throw a}}async getUserIdentities(){var e;try{const{data:t,error:n}=await this.getUser();if(n)throw n;return this._returnResult({data:{identities:null!==(e=t.user.identities)&&void 0!==e?e:[]},error:null})}catch(t){if(Bs(t))return this._returnResult({data:null,error:t});throw t}}async linkIdentity(e){return"token"in e?this.linkIdentityIdToken(e):this.linkIdentityOAuth(e)}async linkIdentityOAuth(e){var t;try{const{data:n,error:r}=await this._useSession(async t=>{var n,r,a,s,i;const{data:o,error:l}=t;if(l)throw l;const c=await this._getUrlForProvider(`${this.url}/user/identities/authorize`,e.provider,{redirectTo:null===(n=e.options)||void 0===n?void 0:n.redirectTo,scopes:null===(r=e.options)||void 0===r?void 0:r.scopes,queryParams:null===(a=e.options)||void 0===a?void 0:a.queryParams,skipBrowserRedirect:!0});return await Pi(this.fetch,"GET",c,{headers:this.headers,jwt:null!==(i=null===(s=o.session)||void 0===s?void 0:s.access_token)&&void 0!==i?i:void 0})});if(r)throw r;return fi()&&!(null===(t=e.options)||void 0===t?void 0:t.skipBrowserRedirect)&&window.location.assign(null===n||void 0===n?void 0:n.url),this._returnResult({data:{provider:e.provider,url:null===n||void 0===n?void 0:n.url},error:null})}catch(n){if(Bs(n))return this._returnResult({data:{provider:e.provider,url:null},error:n});throw n}}async linkIdentityIdToken(e){return await this._useSession(async t=>{var n;try{const{error:r,data:{session:a}}=t;if(r)throw r;const{options:s,provider:i,token:o,access_token:l,nonce:c}=e,u=await Pi(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,jwt:null!==(n=null===a||void 0===a?void 0:a.access_token)&&void 0!==n?n:void 0,body:{provider:i,id_token:o,access_token:l,nonce:c,link_identity:!0,gotrue_meta_security:{captcha_token:null===s||void 0===s?void 0:s.captchaToken}},xform:Li}),{data:d,error:h}=u;return h?this._returnResult({data:{user:null,session:null},error:h}):d&&d.session&&d.user?(d.session&&(await this._saveSession(d.session),await this._notifyAllSubscribers("USER_UPDATED",d.session)),this._returnResult({data:d,error:h})):this._returnResult({data:{user:null,session:null},error:new Js})}catch(r){if(await bi(this.storage,`${this.storageKey}-code-verifier`),Bs(r))return this._returnResult({data:{user:null,session:null},error:r});throw r}})}async unlinkIdentity(e){try{return await this._useSession(async t=>{var n,r;const{data:a,error:s}=t;if(s)throw s;return await Pi(this.fetch,"DELETE",`${this.url}/user/identities/${e.identity_id}`,{headers:this.headers,jwt:null!==(r=null===(n=a.session)||void 0===n?void 0:n.access_token)&&void 0!==r?r:void 0})})}catch(t){if(Bs(t))return this._returnResult({data:null,error:t});throw t}}async _refreshAccessToken(e){const t=`#_refreshAccessToken(${e.substring(0,5)}...)`;this._debug(t,"begin");try{const a=Date.now();return await(n=async n=>(n>0&&await async function(e){return await new Promise(t=>{setTimeout(()=>t(null),e)})}(200*Math.pow(2,n-1)),this._debug(t,"refreshing attempt",n),await Pi(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:e},headers:this.headers,xform:Li})),r=(e,t)=>{const n=200*Math.pow(2,e);return t&&ei(t)&&Date.now()+n-a<$s},new Promise((e,t)=>{(async()=>{for(let a=0;a<1/0;a++)try{const t=await n(a);if(!r(a,null,t))return void e(t)}catch(Uo){if(!r(a,Uo))return void t(Uo)}})()}))}catch(a){if(this._debug(t,"error",a),Bs(a))return this._returnResult({data:{session:null,user:null},error:a});throw a}finally{this._debug(t,"end")}var n,r}_isValidSession(e){return"object"===typeof e&&null!==e&&"access_token"in e&&"refresh_token"in e&&"expires_at"in e}async _handleProviderSignIn(e,t){const n=await this._getUrlForProvider(`${this.url}/authorize`,e,{redirectTo:t.redirectTo,scopes:t.scopes,queryParams:t.queryParams});return this._debug("#_handleProviderSignIn()","provider",e,"options",t,"url",n),fi()&&!t.skipBrowserRedirect&&window.location.assign(n),{data:{provider:e,url:n},error:null}}async _recoverAndRefresh(){var e,t;const n="#_recoverAndRefresh()";this._debug(n,"begin");try{const a=await yi(this.storage,this.storageKey);if(a&&this.userStorage){let t=await yi(this.userStorage,this.storageKey+"-user");this.storage.isServer||!Object.is(this.storage,this.userStorage)||t||(t={user:a.user},await vi(this.userStorage,this.storageKey+"-user",t)),a.user=null!==(e=null===t||void 0===t?void 0:t.user)&&void 0!==e?e:Ni()}else if(a&&!a.user&&!a.user){const e=await yi(this.storage,this.storageKey+"-user");e&&(null===e||void 0===e?void 0:e.user)?(a.user=e.user,await bi(this.storage,this.storageKey+"-user"),await vi(this.storage,this.storageKey,a)):a.user=Ni()}if(this._debug(n,"session from storage",a),!this._isValidSession(a))return this._debug(n,"session is not valid"),void(null!==a&&await this._removeSession());const s=1e3*(null!==(t=a.expires_at)&&void 0!==t?t:1/0)-Date.now()<Is;if(this._debug(n,`session has${s?"":" not"} expired with margin of 90000s`),s){if(this.autoRefreshToken&&a.refresh_token){const{error:e}=await this._callRefreshToken(a.refresh_token);e&&(console.error(e),ei(e)||(this._debug(n,"refresh failed with a non-retryable error, removing the session",e),await this._removeSession()))}}else if(a.user&&!0===a.user.__isUserNotAvailableProxy)try{const{data:e,error:t}=await this._getUser(a.access_token);!t&&(null===e||void 0===e?void 0:e.user)?(a.user=e.user,await this._saveSession(a),await this._notifyAllSubscribers("SIGNED_IN",a)):this._debug(n,"could not get user data, skipping SIGNED_IN notification")}catch(r){console.error("Error getting user data:",r),this._debug(n,"error getting user data, skipping SIGNED_IN notification",r)}else await this._notifyAllSubscribers("SIGNED_IN",a)}catch(a){return this._debug(n,"error",a),void console.error(a)}finally{this._debug(n,"end")}}async _callRefreshToken(e){var t,n;if(!e)throw new Vs;if(this.refreshingDeferred)return this.refreshingDeferred.promise;const r=`#_callRefreshToken(${e.substring(0,5)}...)`;this._debug(r,"begin");try{this.refreshingDeferred=new wi;const{data:t,error:n}=await this._refreshAccessToken(e);if(n)throw n;if(!t.session)throw new Vs;await this._saveSession(t.session),await this._notifyAllSubscribers("TOKEN_REFRESHED",t.session);const r={data:t.session,error:null};return this.refreshingDeferred.resolve(r),r}catch(a){if(this._debug(r,"error",a),Bs(a)){const e={data:null,error:a};return ei(a)||await this._removeSession(),null===(t=this.refreshingDeferred)||void 0===t||t.resolve(e),e}throw null===(n=this.refreshingDeferred)||void 0===n||n.reject(a),a}finally{this.refreshingDeferred=null,this._debug(r,"end")}}async _notifyAllSubscribers(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const r=`#_notifyAllSubscribers(${e})`;this._debug(r,"begin",t,`broadcast = ${n}`);try{this.broadcastChannel&&n&&this.broadcastChannel.postMessage({event:e,session:t});const r=[],a=Array.from(this.stateChangeEmitters.values()).map(async n=>{try{await n.callback(e,t)}catch(Uo){r.push(Uo)}});if(await Promise.all(a),r.length>0){for(let e=0;e<r.length;e+=1)console.error(r[e]);throw r[0]}}finally{this._debug(r,"end")}}async _saveSession(e){this._debug("#_saveSession()",e),this.suppressGetSessionWarning=!0,await bi(this.storage,`${this.storageKey}-code-verifier`);const t=Object.assign({},e),n=t.user&&!0===t.user.__isUserNotAvailableProxy;if(this.userStorage){!n&&t.user&&await vi(this.userStorage,this.storageKey+"-user",{user:t.user});const e=Object.assign({},t);delete e.user;const r=Ci(e);await vi(this.storage,this.storageKey,r)}else{const e=Ci(t);await vi(this.storage,this.storageKey,e)}}async _removeSession(){this._debug("#_removeSession()"),this.suppressGetSessionWarning=!1,await bi(this.storage,this.storageKey),await bi(this.storage,this.storageKey+"-code-verifier"),await bi(this.storage,this.storageKey+"-user"),this.userStorage&&await bi(this.userStorage,this.storageKey+"-user"),await this._notifyAllSubscribers("SIGNED_OUT",null)}_removeVisibilityChangedCallback(){this._debug("#_removeVisibilityChangedCallback()");const e=this.visibilityChangedCallback;this.visibilityChangedCallback=null;try{e&&fi()&&(null===window||void 0===window?void 0:window.removeEventListener)&&window.removeEventListener("visibilitychange",e)}catch(Uo){console.error("removing visibilitychange callback failed",Uo)}}async _startAutoRefresh(){await this._stopAutoRefresh(),this._debug("#_startAutoRefresh()");const e=setInterval(()=>this._autoRefreshTokenTick(),$s);this.autoRefreshTicker=e,e&&"object"===typeof e&&"function"===typeof e.unref?e.unref():"undefined"!==typeof Deno&&"function"===typeof Deno.unrefTimer&&Deno.unrefTimer(e);const t=setTimeout(async()=>{await this.initializePromise,await this._autoRefreshTokenTick()},0);this.autoRefreshTickTimeout=t,t&&"object"===typeof t&&"function"===typeof t.unref?t.unref():"undefined"!==typeof Deno&&"function"===typeof Deno.unrefTimer&&Deno.unrefTimer(t)}async _stopAutoRefresh(){this._debug("#_stopAutoRefresh()");const e=this.autoRefreshTicker;this.autoRefreshTicker=null,e&&clearInterval(e);const t=this.autoRefreshTickTimeout;this.autoRefreshTickTimeout=null,t&&clearTimeout(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 e=Date.now();try{return await this._useSession(async t=>{const{data:{session:n}}=t;if(!n||!n.refresh_token||!n.expires_at)return void this._debug("#_autoRefreshTokenTick()","no session");const r=Math.floor((1e3*n.expires_at-e)/$s);this._debug("#_autoRefreshTokenTick()",`access token expires in ${r} ticks, a tick lasts 30000ms, refresh threshold is 3 ticks`),r<=3&&await this._callRefreshToken(n.refresh_token)})}catch(Uo){console.error("Auto refresh tick failed with error. This is likely a transient error.",Uo)}}finally{this._debug("#_autoRefreshTokenTick()","end")}})}catch(Uo){if(!(Uo.isAcquireTimeout||Uo instanceof Hi))throw Uo;this._debug("auto refresh token tick lock not available")}}async _handleVisibilityChange(){if(this._debug("#_handleVisibilityChange()"),!fi()||!(null===window||void 0===window?void 0:window.addEventListener))return this.autoRefreshToken&&this.startAutoRefresh(),!1;try{this.visibilityChangedCallback=async()=>{try{await this._onVisibilityChanged(!1)}catch(e){this._debug("#visibilityChangedCallback","error",e)}},null===window||void 0===window||window.addEventListener("visibilitychange",this.visibilityChangedCallback),await this._onVisibilityChanged(!0)}catch(e){console.error("_handleVisibilityChange",e)}}async _onVisibilityChanged(e){const t=`#_onVisibilityChanged(${e})`;this._debug(t,"visibilityState",document.visibilityState),"visible"===document.visibilityState?(this.autoRefreshToken&&this._startAutoRefresh(),e||(await this.initializePromise,await this._acquireLock(this.lockAcquireTimeout,async()=>{"visible"===document.visibilityState?await this._recoverAndRefresh():this._debug(t,"acquired the lock to recover the session, but the browser visibilityState is no longer visible, aborting")}))):"hidden"===document.visibilityState&&this.autoRefreshToken&&this._stopAutoRefresh()}async _getUrlForProvider(e,t,n){const r=[`provider=${encodeURIComponent(t)}`];if((null===n||void 0===n?void 0:n.redirectTo)&&r.push(`redirect_to=${encodeURIComponent(n.redirectTo)}`),(null===n||void 0===n?void 0:n.scopes)&&r.push(`scopes=${encodeURIComponent(n.scopes)}`),"pkce"===this.flowType){const[e,t]=await _i(this.storage,this.storageKey),n=new URLSearchParams({code_challenge:`${encodeURIComponent(e)}`,code_challenge_method:`${encodeURIComponent(t)}`});r.push(n.toString())}if(null===n||void 0===n?void 0:n.queryParams){const e=new URLSearchParams(n.queryParams);r.push(e.toString())}return(null===n||void 0===n?void 0:n.skipBrowserRedirect)&&r.push(`skip_http_redirect=${n.skipBrowserRedirect}`),`${e}?${r.join("&")}`}async _unenroll(e){try{return await this._useSession(async t=>{var n;const{data:r,error:a}=t;return a?this._returnResult({data:null,error:a}):await Pi(this.fetch,"DELETE",`${this.url}/factors/${e.factorId}`,{headers:this.headers,jwt:null===(n=null===r||void 0===r?void 0:r.session)||void 0===n?void 0:n.access_token})})}catch(t){if(Bs(t))return this._returnResult({data:null,error:t});throw t}}async _enroll(e){try{return await this._useSession(async t=>{var n,r;const{data:a,error:s}=t;if(s)return this._returnResult({data:null,error:s});const i=Object.assign({friendly_name:e.friendlyName,factor_type:e.factorType},"phone"===e.factorType?{phone:e.phone}:"totp"===e.factorType?{issuer:e.issuer}:{}),{data:o,error:l}=await Pi(this.fetch,"POST",`${this.url}/factors`,{body:i,headers:this.headers,jwt:null===(n=null===a||void 0===a?void 0:a.session)||void 0===n?void 0:n.access_token});return l?this._returnResult({data:null,error:l}):("totp"===e.factorType&&"totp"===o.type&&(null===(r=null===o||void 0===o?void 0:o.totp)||void 0===r?void 0:r.qr_code)&&(o.totp.qr_code=`data:image/svg+xml;utf-8,${o.totp.qr_code}`),this._returnResult({data:o,error:null}))})}catch(t){if(Bs(t))return this._returnResult({data:null,error:t});throw t}}async _verify(e){return this._acquireLock(this.lockAcquireTimeout,async()=>{try{return await this._useSession(async t=>{var n;const{data:r,error:a}=t;if(a)return this._returnResult({data:null,error:a});const s=Object.assign({challenge_id:e.challengeId},"webauthn"in e?{webauthn:Object.assign(Object.assign({},e.webauthn),{credential_response:"create"===e.webauthn.type?no(e.webauthn.credential_response):ro(e.webauthn.credential_response)})}:{code:e.code}),{data:i,error:o}=await Pi(this.fetch,"POST",`${this.url}/factors/${e.factorId}/verify`,{body:s,headers:this.headers,jwt:null===(n=null===r||void 0===r?void 0:r.session)||void 0===n?void 0:n.access_token});return o?this._returnResult({data:null,error:o}):(await this._saveSession(Object.assign({expires_at:Math.round(Date.now()/1e3)+i.expires_in},i)),await this._notifyAllSubscribers("MFA_CHALLENGE_VERIFIED",i),this._returnResult({data:i,error:o}))})}catch(t){if(Bs(t))return this._returnResult({data:null,error:t});throw t}})}async _challenge(e){return this._acquireLock(this.lockAcquireTimeout,async()=>{try{return await this._useSession(async t=>{var n;const{data:r,error:a}=t;if(a)return this._returnResult({data:null,error:a});const s=await Pi(this.fetch,"POST",`${this.url}/factors/${e.factorId}/challenge`,{body:e,headers:this.headers,jwt:null===(n=null===r||void 0===r?void 0:r.session)||void 0===n?void 0:n.access_token});if(s.error)return s;const{data:i}=s;if("webauthn"!==i.type)return{data:i,error:null};switch(i.webauthn.type){case"create":return{data:Object.assign(Object.assign({},i),{webauthn:Object.assign(Object.assign({},i.webauthn),{credential_options:Object.assign(Object.assign({},i.webauthn.credential_options),{publicKey:eo(i.webauthn.credential_options.publicKey)})})}),error:null};case"request":return{data:Object.assign(Object.assign({},i),{webauthn:Object.assign(Object.assign({},i.webauthn),{credential_options:Object.assign(Object.assign({},i.webauthn.credential_options),{publicKey:to(i.webauthn.credential_options.publicKey)})})}),error:null}}})}catch(t){if(Bs(t))return this._returnResult({data:null,error:t});throw t}})}async _challengeAndVerify(e){const{data:t,error:n}=await this._challenge({factorId:e.factorId});return n?this._returnResult({data:null,error:n}):await this._verify({factorId:e.factorId,challengeId:t.id,code:e.code})}async _listFactors(){var e;const{data:{user:t},error:n}=await this.getUser();if(n)return{data:null,error:n};const r={all:[],phone:[],totp:[],webauthn:[]};for(const a of null!==(e=null===t||void 0===t?void 0:t.factors)&&void 0!==e?e:[])r.all.push(a),"verified"===a.status&&r[a.factor_type].push(a);return{data:r,error:null}}async _getAuthenticatorAssuranceLevel(e){var t,n,r,a;if(e)try{const{payload:r}=ki(e);let a=null;r.aal&&(a=r.aal);let s=a;const{data:{user:i},error:o}=await this.getUser(e);if(o)return this._returnResult({data:null,error:o});(null!==(n=null===(t=null===i||void 0===i?void 0:i.factors)||void 0===t?void 0:t.filter(e=>"verified"===e.status))&&void 0!==n?n:[]).length>0&&(s="aal2");return{data:{currentLevel:a,nextLevel:s,currentAuthenticationMethods:r.amr||[]},error:null}}catch(u){if(Bs(u))return this._returnResult({data:null,error:u});throw u}const{data:{session:s},error:i}
2=await this.getSession();if(i)return this._returnResult({data:null,error:i});if(!s)return{data:{currentLevel:null,nextLevel:null,currentAuthenticationMethods:[]},error:null};const{payload:o}=ki(s.access_token);let l=null;o.aal&&(l=o.aal);let c=l;(null!==(a=null===(r=s.user.factors)||void 0===r?void 0:r.filter(e=>"verified"===e.status))&&void 0!==a?a:[]).length>0&&(c="aal2");return{data:{currentLevel:l,nextLevel:c,currentAuthenticationMethods:o.amr||[]},error:null}}async _getAuthorizationDetails(e){try{return await this._useSession(async t=>{const{data:{session:n},error:r}=t;return r?this._returnResult({data:null,error:r}):n?await Pi(this.fetch,"GET",`${this.url}/oauth/authorizations/${e}`,{headers:this.headers,jwt:n.access_token,xform:e=>({data:e,error:null})}):this._returnResult({data:null,error:new Vs})})}catch(t){if(Bs(t))return this._returnResult({data:null,error:t});throw t}}async _approveAuthorization(e,t){try{return await this._useSession(async n=>{const{data:{session:r},error:a}=n;if(a)return this._returnResult({data:null,error:a});if(!r)return this._returnResult({data:null,error:new Vs});const s=await Pi(this.fetch,"POST",`${this.url}/oauth/authorizations/${e}/consent`,{headers:this.headers,jwt:r.access_token,body:{action:"approve"},xform:e=>({data:e,error:null})});return s.data&&s.data.redirect_url&&fi()&&!(null===t||void 0===t?void 0:t.skipBrowserRedirect)&&window.location.assign(s.data.redirect_url),s})}catch(n){if(Bs(n))return this._returnResult({data:null,error:n});throw n}}async _denyAuthorization(e,t){try{return await this._useSession(async n=>{const{data:{session:r},error:a}=n;if(a)return this._returnResult({data:null,error:a});if(!r)return this._returnResult({data:null,error:new Vs});const s=await Pi(this.fetch,"POST",`${this.url}/oauth/authorizations/${e}/consent`,{headers:this.headers,jwt:r.access_token,body:{action:"deny"},xform:e=>({data:e,error:null})});return s.data&&s.data.redirect_url&&fi()&&!(null===t||void 0===t?void 0:t.skipBrowserRedirect)&&window.location.assign(s.data.redirect_url),s})}catch(n){if(Bs(n))return this._returnResult({data:null,error:n});throw n}}async _listOAuthGrants(){try{return await this._useSession(async e=>{const{data:{session:t},error:n}=e;return n?this._returnResult({data:null,error:n}):t?await Pi(this.fetch,"GET",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:t.access_token,xform:e=>({data:e,error:null})}):this._returnResult({data:null,error:new Vs})})}catch(e){if(Bs(e))return this._returnResult({data:null,error:e});throw e}}async _revokeOAuthGrant(e){try{return await this._useSession(async t=>{const{data:{session:n},error:r}=t;return r?this._returnResult({data:null,error:r}):n?(await Pi(this.fetch,"DELETE",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:n.access_token,query:{client_id:e.clientId},noResolveJson:!0}),{data:{},error:null}):this._returnResult({data:null,error:new Vs})})}catch(t){if(Bs(t))return this._returnResult({data:null,error:t});throw t}}async fetchJwk(e){let t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{keys:[]}).keys.find(t=>t.kid===e);if(t)return t;const n=Date.now();if(t=this.jwks.keys.find(t=>t.kid===e),t&&this.jwks_cached_at+6e5>n)return t;const{data:r,error:a}=await Pi(this.fetch,"GET",`${this.url}/.well-known/jwks.json`,{headers:this.headers});if(a)throw a;return r.keys&&0!==r.keys.length?(this.jwks=r,this.jwks_cached_at=n,t=r.keys.find(t=>t.kid===e),t||null):null}async getClaims(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};try{let n=e;if(!n){const{data:e,error:t}
2=await this.getSession();if(t||!e.session)return this._returnResult({data:null,error:t});n=e.session.access_token}const{header:r,payload:a,signature:s,raw:{header:i,payload:o}}=ki(n);(null===t||void 0===t?void 0:t.allowExpired)||function(e){if(!e)throw new Error("Missing exp claim");if(e<=Math.floor(Date.now()/1e3))throw new Error("JWT has expired")}(a.exp);const l=r.alg&&!r.alg.startsWith("HS")&&r.kid&&"crypto"in globalThis&&"subtle"in globalThis.crypto?await this.fetchJwk(r.kid,(null===t||void 0===t?void 0:t.keys)?{keys:t.keys}:null===t||void 0===t?void 0:t.jwks):null;if(!l){const{error:e}=await this.getUser(n);if(e)throw e;return{data:{claims:a,header:r,signature:s},error:null}}const c=function(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")}}(r.alg),u=await crypto.subtle.importKey("jwk",l,c,!0,["verify"]);if(!await crypto.subtle.verify(c,u,s,function(e){const t=[];return ui(e,e=>t.push(e)),new Uint8Array(t)}(`${i}.${o}`)))throw new ni("Invalid JWT signature");return{data:{claims:a,header:r,signature:s},error:null}}catch(n){if(Bs(n))return this._returnResult({data:null,error:n});throw n}}}po.nextInstanceID={};const mo=po;let go="";go="undefined"!==typeof Deno?"deno":"undefined"!==typeof document?"web":"undefined"!==typeof navigator&&"ReactNative"===navigator.product?"react-native":"node";const vo={headers:{"X-Client-Info":`supabase-js-${go}/2.103.1`}},yo={schema:"public"},bo={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},wo={};function ko(e){return(ko="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function So(e){var t=function(e,t){if("object"!=ko(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=ko(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ko(t)?t:t+""}function xo(e,t,n){return(t=So(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Eo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_o(Object(n),!0).forEach(function(t){xo(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_o(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}const jo=(e,t,n)=>{const r=(e=>e?function(){return e(...arguments)}:function(){return fetch(...arguments)})(n),a=Headers;return async(n,s)=>{var i;const o=null!==(i=await t())&&void 0!==i?i:e;let l=new a(null===s||void 0===s?void 0:s.headers);return l.has("apikey")||l.set("apikey",e),l.has("Authorization")||l.set("Authorization",`Bearer ${o}`),r(n,Eo(Eo({},s),{},{headers:l}))}};var To=class extends mo{constructor(e){super(e)}},No=class{constructor(e,t,n){var r,a;this.supabaseUrl=e,this.supabaseKey=t;const s=function(e){const t=null===e||void 0===e?void 0:e.trim();if(!t)throw new Error("supabaseUrl is required.");if(!t.match(/^https?:\/\//i))throw new Error("Invalid supabaseUrl: Must be a valid HTTP or HTTPS URL.");try{return new URL((n=t).endsWith("/")?n:n+"/")}catch(r){throw Error("Invalid supabaseUrl: Provided URL is malformed.")}var n}(e);if(!t)throw new Error("supabaseKey is required.");this.realtimeUrl=new URL("realtime/v1",s),this.realtimeUrl.protocol=this.realtimeUrl.protocol.replace("http","ws"),this.authUrl=new URL("auth/v1",s),this.storageUrl=new URL("storage/v1",s),this.functionsUrl=new URL("functions/v1",s);const i=`sb-${s.hostname.split(".")[0]}-auth-token`,o=function(e,t){var n,r;const{db:a,auth:s,realtime:i,global:o}=e,{db:l,auth:c,realtime:u,global:d}=t,h={db:Eo(Eo({},l),a),auth:Eo(Eo({},c),s),realtime:Eo(Eo({},u),i),storage:{},global:Eo(Eo(Eo({},d),o),{},{headers:Eo(Eo({},null!==(n=null===d||void 0===d?void 0:d.headers)&&void 0!==n?n:{}),null!==(r=null===o||void 0===o?void 0:o.headers)&&void 0!==r?r:{})}),accessToken:async()=>""};return e.accessToken?h.accessToken=e.accessToken:delete h.accessToken,h}(null!==n&&void 0!==n?n:{},{db:yo,realtime:wo,auth:Eo(Eo({},bo),{},{storageKey:i}),global:vo}
2);var l;(this.storageKey=null!==(r=o.auth.storageKey)&&void 0!==r?r:"",this.headers=null!==(a=o.global.headers)&&void 0!==a?a:{},o.accessToken)?(this.accessToken=o.accessToken,this.auth=new Proxy({},{get:(e,t)=>{throw new Error(`@supabase/supabase-js: Supabase Client is configured with the accessToken option, accessing supabase.auth.${String(t)} is not possible`)}})):this.auth=this._initSupabaseAuthClient(null!==(l=o.auth)&&void 0!==l?l:{},this.headers,o.global.fetch);this.fetch=jo(t,this._getAccessToken.bind(this),o.global.fetch),this.realtime=this._initRealtimeClient(Eo({headers:this.headers,accessToken:this._getAccessToken.bind(this)},o.realtime)),this.accessToken&&Promise.resolve(this.accessToken()).then(e=>this.realtime.setAuth(e)).catch(e=>console.warn("Failed to set initial Realtime auth token:",e)),this.rest=new Nr(new URL("rest/v1",s).href,{headers:this.headers,schema:o.db.schema,fetch:this.fetch,timeout:o.db.timeout,urlLengthLimit:o.db.urlLengthLimit}),this.storage=new Ps(this.storageUrl.href,this.headers,this.fetch,null===n||void 0===n?void 0:n.storage),o.accessToken||this._listenForAuthEvents()}get functions(){return new dr(this.functionsUrl.href,{headers:this.headers,customFetch:this.fetch})}from(e){return this.rest.from(e)}schema(e){return this.rest.schema(e)}rpc(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{head:!1,get:!1,count:void 0};return this.rest.rpc(e,t,n)}channel(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{config:{}};return this.realtime.channel(e,t)}getChannels(){return this.realtime.getChannels()}removeChannel(e){return this.realtime.removeChannel(e)}removeAllChannels(){return this.realtime.removeAllChannels()}async _getAccessToken(){var e,t,n=this;if(n.accessToken)return await n.accessToken();const{data:r}=await n.auth.getSession();return null!==(e=null===(t=r.session)||void 0===t?void 0:t.access_token)&&void 0!==e?e:n.supabaseKey}_initSupabaseAuthClient(e,t,n){let{autoRefreshToken:r,persistSession:a,detectSessionInUrl:s,storage:i,userStorage:o,storageKey:l,flowType:c,lock:u,debug:d,throwOnError:h}=e;const f={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new To({url:this.authUrl.href,headers:Eo(Eo({},f),t),storageKey:l,autoRefreshToken:r,persistSession:a,detectSessionInUrl:s,storage:i,userStorage:o,flowType:c,lock:u,debug:d,throwOnError:h,fetch:n,hasCustomAuthorizationHeader:Object.keys(this.headers).some(e=>"authorization"===e.toLowerCase())})}_initRealtimeClient(e){return new Ba(this.realtimeUrl.href,Eo(Eo({},e),{},{params:Eo(Eo({},{apikey:this.supabaseKey}),null===e||void 0===e?void 0:e.params)}))}_listenForAuthEvents(){return this.auth.onAuthStateChange((e,t)=>{this._handleTokenChanged(e,"CLIENT",null===t||void 0===t?void 0:t.access_token)})}_handleTokenChanged(e,t,n){"TOKEN_REFRESHED"!==e&&"SIGNED_IN"!==e||this.changedAccessToken===n?"SIGNED_OUT"===e&&(this.realtime.setAuth(),"STORAGE"==t&&this.auth.signOut(),this.changedAccessToken=void 0):(this.changedAccessToken=n,this.realtime.setAuth(n))}};(function(){if("undefined"!==typeof window)return!1;const e=globalThis.process;if(!e)return!1;const t=e.version;if(void 0===t||null===t)return!1;const n=t.match(/^v(\d+)\./);return!!n&&parseInt(n[1],10)<=18})()&&console.warn("\u26a0\ufe0f Node.js 18 and below are deprecated and will no longer be supported in future versions of @supabase/supabase-js. Please upgrade to Node.js 20 or later. For more information, visit: https://github.com/orgs/supabase/discussions/37217");var Co;const Ro=new No("https://ngiirsvdmqzqxnxyjacv.supabase.co","eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Im5naWlyc3ZkbXF6cXhueHlqYWN2Iiwicm9sZSI6ImFub24iLCJpYXQiOjE3NzA2NTI3MjQsImV4cCI6MjA4NjIyODcyNH0.vmLbk5AnVtwwPlnpH-o7w-o4MVaqZ8puwU4slvM-dp4",Co),Ao=()=>{const{member:t}=Xn(),[n,r]=(0,e.useState)([]),[a,s]=(0,e.useState)(!0),[i,o]=(0,e.useState)(""),[l,c]=(0,e.useState)(""),[u,d]=(0,e.useState)(!1),[h,f]=(0,e.useState)("");(0,e.useEffect)(()=>{(async()=>{try{const{data:e,error:t}=await Ro.from("editions").select("*").lt("event_date",(new Date).toISOString()).order("event_date",{ascending:!1}).limit(4);if(t)throw t;r(e||[])}catch(e){console.error("Error fetching editions:",e)}finally{s(!1)}})()},[]);return(0,An.jsxs)("div",{className:"dashboard-page",children:[(0,An.jsxs)("div",{className:"dashboard-container",children:[(0,An.jsxs)("div",{className:"dashboard-header",children:[(0,An.jsxs)("div",{className:"member-badge",children:[(0,An.jsx)("span",{className:"badge-dot"}
2),"Espace Membres"]}),(0,An.jsxs)("h1",{children:["Bienvenue, ",null===t||void 0===t?void 0:t.name]}),(0,An.jsx)("p",{className:"dashboard-subtitle",children:"Votre espace priv\xe9 B2B"})]}),(0,An.jsxs)("div",{className:"dashboard-grid",children:[(0,An.jsxs)(wt,{to:"/members/editions",className:"dashboard-card editions-card",children:[(0,An.jsx)("div",{className:"card-icon",children:(0,An.jsx)("svg",{width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,An.jsx)("rect",{x:"8",y:"8",width:"24",height:"24",rx:"2",fill:"currentColor"})})}),(0,An.jsx)("h3",{children:"\xc9ditions"}),(0,An.jsx)("p",{children:"Acc\xe9dez aux \xe9ditions pass\xe9es et \xe0 venir"})]}),(0,An.jsxs)(wt,{to:"/members/directory",className:"dashboard-card directory-card",children:[(0,An.jsx)("div",{className:"card-icon",children:(0,An.jsxs)("svg",{width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,An.jsx)("circle",{cx:"13",cy:"12",r:"4",fill:"currentColor"}),(0,An.jsx)("path",{d:"M7 20C7 17.24 9.69 15 13 15C16.31 15 19 17.24 19 20V23H7V20Z",fill:"currentColor"}),(0,An.jsx)("circle",{cx:"27",cy:"12",r:"4",fill:"currentColor"}),(0,An.jsx)("path",{d:"M21 20C21 17.24 23.69 15 27 15C30.31 15 33 17.24 33 20V23H21V20Z",fill:"currentColor"})]})}),(0,An.jsx)("h3",{children:"Annuaire"}),(0,An.jsx)("p",{children:"Retrouvez les autres membres"})]}),(0,An.jsxs)("form",{onSubmit:async e=>{e.preventDefault(),d(!0),f("");try{const e=await fetch("/.netlify/functions/notify-referral",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({referrer_id:null===t||void 0===t?void 0:t.id,referred_email:i,referred_linkedin:l})});if(e.ok)f("Parrainage envoy\xe9 avec succ\xe8s !"),o(""),c(""),setTimeout(()=>f(""),5e3);else{const t=await e.json();alert(t.message||"Erreur lors de l'envoi du parrainage")}}catch(n){console.error("Referral error:",n),alert("Erreur lors de l'envoi du parrainage")}finally{d(!1)}},className:"dashboard-card sponsor-card",children:[(0,An.jsx)("div",{className:"card-icon",children:(0,An.jsx)("svg",{width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,An.jsx)("path",{d:"M20 2L25 15H38L28 22L33 35L20 28L7 35L12 22L2 15H15L20 2Z",fill:"currentColor"})})}),(0,An.jsx)("h3",{children:"Parrainer un membre"}),(0,An.jsx)("p",{children:"Recommandez quelqu'un pour The Recap"}),(0,An.jsxs)("div",{className:"sponsor-form",children:[(0,An.jsx)("input",{type:"email",placeholder:"Email",value:i,onChange:e=>o(e.target.value),required:!0}),(0,An.jsx)("input",{type:"text",placeholder:"URL LinkedIn (optionnel)",value:l,onChange:e=>c(e.target.value)}),(0,An.jsx)("button",{type:"submit",disabled:u,children:u?"Envoi...":"Envoyer"})]}),h&&(0,An.jsx)("div",{className:"success-message",children:h})]})]}),(0,An.jsxs)("div",{className:"latest-editions-section",children:[(0,An.jsx)("h2",{children:"Derni\xe8res \xe9ditions"}),a?(0,An.jsx)("div",{style:{textAlign:"center",padding:"40px"},children:(0,An.jsx)("div",{className:"spinner"})}):n.length>0?(0,An.jsx)("div",{className:"editions-cards-grid",children:n.map(e=>{return(0,An.jsxs)(wt,{to:`/members/editions/${e.id}`,className:"edition-card",children:[e.cover_image&&(0,An.jsx)("div",{className:"edition-cover",children:(0,An.jsx)("img",{src:e.cover_image,alt:e.title})}),(0,An.jsxs)("div",{className:"edition-content",children:[(0,An.jsx)("div",{className:"edition-date",children:(t=e.event_date,new Date(t).toLocaleDateString("fr-FR",{day:"numeric",month:"long",year:"numeric"}))}),(0,An.jsx)("h4",{children:e.title}),e.description&&(0,An.jsx)("p",{className:"edition-description",children:e.description})]})]},e.id);var t})}):(0,An.jsx)("p",{className:"no-editions",children:"Aucune \xe9dition disponible pour le moment"})]})]}),(0,An.jsx)("style",{children:"\n @keyframes pulse {\n 0%, 100% { opacity: 1; }\n 50% { opacity: 0.6; }\n }\n .badge-dot {\n display: inline-block;\n width: 8px;\n height: 8px;\n background-color: #4caf50;\n border-radius: 50%;\n margin-right: 8px;\n animation: pulse 2s ease-in-out infinite;\n }\n .spinner {\n width: 40px;\n height: 40px;\n border: 4px solid #1f5d5b;
2\n border-top: 4px solid transparent;\n border-radius: 50%;\n animation: spin 0.8s linear infinite;\n margin: 0 auto;\n }\n @keyframes spin {\n 0% { transform: rotate(0deg); }\n 100% { transform: rotate(360deg); }\n }\n "})]})},Oo=()=>{const[t,n]=(0,e.useState)([]),[r,a]=(0,e.useState)([]),[s,i]=(0,e.useState)(!0);(0,e.useEffect)(()=>{(async()=>{try{const e=(new Date).toISOString(),{data:t,error:r}=await Ro.from("editions").select("*").gte("event_date",e).order("event_date",{ascending:!0}),{data:s,error:i}=await Ro.from("editions").select("*").lt("event_date",e).order("event_date",{ascending:!1});if(r)throw r;if(i)throw i;n(t||[]),a(s||[])}catch(e){console.error("Error fetching editions:",e)}finally{i(!1)}})()},[]);const o=e=>{const t=new Date(e);return{day:t.getDate().toString().padStart(2,"0"),month:t.toLocaleDateString("fr-FR",{month:"short"}),year:t.getFullYear()}},l=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;if(!e)return"";return e.split("\n").slice(0,t).join("\n")};return s?(0,An.jsx)("div",{className:"editions-page",children:(0,An.jsx)("div",{className:"editions-container",children:(0,An.jsx)("div",{style:{textAlign:"center",padding:"60px 20px"},children:(0,An.jsx)("div",{className:"spinner"})})})}):(0,An.jsxs)("div",{className:"editions-page",children:[(0,An.jsxs)("div",{className:"editions-container",children:[(0,An.jsx)("h1",{className:"editions-title",children:"Les \xc9ditions"}),t.length>0&&(0,An.jsxs)("section",{className:"editions-section upcoming-section",children:[(0,An.jsx)("h2",{children:"\xc0 venir"}),(0,An.jsx)("div",{className:"upcoming-grid",children:t.map(e=>{const t=o(e.event_date);return(0,An.jsxs)("div",{className:"upcoming-card",children:[(0,An.jsxs)("div",{className:"upcoming-date",children:[(0,An.jsx)("div",{className:"date-day",children:t.day}),(0,An.jsxs)("div",{className:"date-rest",children:[(0,An.jsx)("div",{className:"date-month",children:t.month}),(0,An.jsx)("div",{className:"date-year",children:t.year})]})]}),(0,An.jsxs)("div",{className:"upcoming-info",children:[(0,An.jsx)("h4",{children:e.title}),e.location&&(0,An.jsx)("p",{className:"location",children:e.location})]})]},e.id)})})]}),r.length>0&&(0,An.jsxs)("section",{className:"editions-section past-section",children:[(0,An.jsx)("h2",{children:"\xc9ditions pass\xe9es"}),(0,An.jsx)("div",{className:"past-editions-list",children:r.map(e=>{const t=o(e.event_date);return(0,An.jsxs)(wt,{to:`/members/editions/${e.id}`,className:"past-edition-card",children:[e.cover_image&&(0,An.jsx)("div",{className:"past-cover",children:(0,An.jsx)("img",{src:e.cover_image,alt:e.title})}),(0,An.jsxs)("div",{className:"past-content",children:[(0,An.jsxs)("div",{className:"past-date",children:[t.month," ",t.day,", ",t.year]}),(0,An.jsx)("h3",{children:e.title}),e.description&&(0,An.jsx)("p",{className:"past-description",children:l(e.description,2)}),(0,An.jsx)("span",{className:"view-details",children:"Voir le d\xe9tail \u2192"})]})]},e.id)})})]}),0===t.length&&0===r.length&&(0,An.jsx)("p",{className:"no-editions",children:"Aucune \xe9dition disponible"})]}),(0,An.jsx)("style",{children:"\n .spinner {\n width: 40px;\n height: 40px;\n border: 4px solid #1f5d5b;
2\n border-top: 4px solid transparent;\n border-radius: 50%;\n animation: spin 0.8s linear infinite;\n margin: 0 auto;\n }\n @keyframes spin {\n 0% { transform: rotate(0deg); }\n 100% { transform: rotate(360deg); }\n }\n "})]})},Po=()=>{const{id:t}=pe(),n=fe(),[r,a]=(0,e.useState)(null),[s,i]=(0,e.useState)([]),[o,l]=(0,e.useState)(!0),[c,u]=(0,e.useState)(null),[d,h]=(0,e.useState)(null),[f,p]=(0,e.useState)(0);(0,e.useEffect)(()=>{(async()=>{try{const{data:e,error:n}=await Ro.from("editions").select("*").eq("id",t).single();if(n)throw n;if(a(e),e.attendees&&e.attendees.length>0){const{data:t,error:n}=await Ro.from("members").select("*").in("id",e.attendees);if(n)throw n;i(t||[])}}catch(e){console.error("Error fetching edition:",e)}finally{l(!1)}})()},[t]);const m=e=>e.split(" ").map(e=>e[0]).join("").toUpperCase();if(o)return(0,An.jsx)("div",{className:"edition-detail-page",children:(0,An.jsx)("div",{className:"edition-detail-container",children:(0,An.jsx)("div",{style:{textAlign:"center",padding:"60px 20px"},children:(0,An.jsx)("div",{className:"spinner"})})})});if(!r)return(0,An.jsx)("div",{className:"edition-detail-page",children:(0,An.jsxs)("div",{className:"edition-detail-container",children:[(0,An.jsx)("button",{className:"back-button",onClick:()=>n("/members/editions"),children:"\u2190 Retour aux \xe9ditions"}),(0,An.jsx)("p",{children:"\xc9dition introuvable"})]})});const g=r.photos||[],v=r.documents||[];return(0,An.jsxs)("div",{className:"edition-detail-page",children:[(0,An.jsxs)("div",{className:"edition-detail-container",children:[(0,An.jsx)("button",{className:"back-button",onClick:()=>n("/members/editions"),children:"\u2190 Retour aux \xe9ditions"}),(0,An.jsxs)("div",{className:"edition-detail-header",children:[r.cover_image&&(0,An.jsx)("div",{className:"edition-detail-cover",children:(0,An.jsx)("img",{src:r.cover_image,alt:r.title})}),(0,An.jsxs)("div",{className:"edition-detail-info",children:[(0,An.jsx)("div",{className:"edition-detail-date",children:(y=r.event_date,new Date(y).toLocaleDateString("fr-FR",{day:"numeric",month:"long",year:"numeric"}))}),(0,An.jsx)("h1",{children:r.title}),r.location&&(0,An.jsx)("p",{className:"edition-location",children:r.location})]})]}),r.description&&(0,An.jsx)("div",{className:"edition-description-section",children:(0,An.jsx)("div",{className:"description-content",children:r.description})}),s.length>0&&(0,An.jsxs)("section",{className:"attendees-section",children:[(0,An.jsxs)("h2",{children:["Pr\xe9sents (",s.length,")"]}),(0,An.jsx)("div",{className:"attendees-grid",children:s.map(e=>(0,An.jsxs)("div",{className:"attendee-card",onClick:()=>u(e),children:[e.avatar_url?(0,An.jsx)("img",{src:e.avatar_url,alt:e.name,className:"attendee-avatar"}):(0,An.jsx)("div",{className:"attendee-initials",children:m(e.name)}),(0,An.jsxs)("div",{className:"attendee-details",children:[(0,An.jsx)("h4",{children:e.name}),e.company&&(0,An.jsx)("p",{children:e.company})]})]},e.id))})]}),v.length>0&&(0,An.jsxs)("section",{className:"documents-section",children:[(0,An.jsx)("h2",{children:"Documents"}),(0,An.jsx)("div",{className:"documents-list",children:v.map((e,t)=>(0,An.jsxs)("a",{href:e.url,target:"_blank",rel:"noopener noreferrer",className:"document-link",children:[(0,An.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[(0,An.jsx)("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),(0,An.jsx)("polyline",{points:"7 10 12 15 17 10"}),(0,An.jsx)("line",{x1:"12",y1:"15",x2:"12",y2:"3"})]}),e.name||"T\xe9l\xe9charger le PDF"]},t))})]}),g.length>0&&(0,An.jsxs)("section",{className:"photos-section",children:[(0,An.jsx)("h2",{children:"Photos"}),(0,An.jsx)("div",{className:"photos-grid",children:g.map((e,t)=>(0,An.jsx)("div",{className:"photo-item",onClick:()=>{h(e.url),p(t)},children:(0,An.jsx)("img",{src:e.url,alt:`\xc9dition ${t+1}`})},t))})]})]}),c&&(0,An.jsx)("div",{className:"modal-overlay",onClick:()=>u(null),children:(0,An.jsxs)("div",{className:"modal-content",onClick:e=>e.stopPropagation(),children:[(0,An.jsx)("button",{className:"modal-close",onClick:()=>u(null),children:"\xd7"}),(0,An.jsxs)("div",{className:"modal-body",children:[c.avatar_url?(0,An.jsx)("img",{src:c.avatar_url,alt:c.name,className:"modal-avatar"}):(0,An.jsx)("div",{className:"modal-initials",children:m(c.name)}),(0,An.jsx)("h2",{children:c.name}),c.company&&(0,An.jsx)("p",{className:"modal-company",children:c.company}),c.role&&(0,An.jsx)("p",{className:"modal-role",children:c.role}),c.bio&&(0,An.jsx)("p",{className:"modal-bio",children:c.bio}),c.linkedin&&(0,An.jsx)("a",{href:c.linkedin,target:"_blank",rel:"noopener noreferrer",className:"linkedin-button",children:"Voir sur LinkedIn"})]})]})}),d&&(0,An.jsxs)("div",{className:"lightbox-overlay",onClick:()=>h(null),children:[(0,An.jsx)("button",{className:"lightbox-close",onClick:()=>h(null),children:"\xd7"}),(0,An.jsx)("button",{className:"lightbox-nav lightbox-prev",onClick:()=>{null!==r&&void 0!==r&&r.photos&&r.photos.length>0&&p(e=>0===e?r.photos.length-1:e-1)},children:"\u2039"}),(0,An.jsxs)("div",{className:"lightbox-content",onClick:e=>e.stopPropagation(),children:[(0,An.jsx)("img",{src:g[f].url,alt:`\xc9dition ${f+1}`}),g[f].caption&&(0,An.jsx)("div",{className:"lightbox-caption",children:g[f].caption})]}),(0,An.jsx)("button",{className:"lightbox-nav lightbox-next",onClick:()=>{null!==r&&void 0!==r&&r.photos&&r.photos.length>0&&p(e=>e===r.photos.length-1?0:e+1)},children:"\u203a"})]}),(0,An.jsx)("style",{children:"\n .spinner {\n width: 40px;\n height: 40px;\n border: 4px solid #1f5d5b;
2\n border-top: 4px solid transparent;\n border-radius: 50%;\n animation: spin 0.8s linear infinite;\n margin: 0 auto;\n }\n @keyframes spin {\n 0% { transform: rotate(0deg); }\n 100% { transform: rotate(360deg); }\n }\n "})]});var y},Lo=()=>{const{member:t}=Xn(),[n,r]=(0,e.useState)([]),[a,s]=(0,e.useState)(""),[i,o]=(0,e.useState)(null),[l,c]=(0,e.useState)(!0),[u,d]=(0,e.useState)(!1);(0,e.useEffect)(()=>{(async()=>{try{const{data:e,error:t}=await Ro.from("members").select("*").order("name",{ascending:!0});if(t)throw t;r(e||[])}catch(e){console.error("Error fetching members:",e)}finally{c(!1)}})()},[]);const h=n.filter(e=>{const t=a.toLowerCase();return e.name.toLowerCase().includes(t)||e.company&&e.company.toLowerCase().includes(t)||e.role&&e.role.toLowerCase().includes(t)}),f=e=>e.split(" ").map(e=>e[0]).join("").toUpperCase(),p=e=>new Promise(t=>{const n=new FileReader;n.onloadend=()=>t(n.result.split(",")[1]),n.readAsDataURL(e)});return l?(0,An.jsx)("div",{className:"directory-page",children:(0,An.jsx)("div",{className:"directory-container",children:(0,An.jsx)("div",{style:{textAlign:"center",padding:"60px 20px"},children:(0,An.jsx)("div",{className:"spinner"})})})}):(0,An.jsxs)("div",{className:"directory-page",children:[(0,An.jsxs)("div",{className:"directory-container",children:[(0,An.jsx)("h1",{className:"directory-title",children:"L'Annuaire"}),(0,An.jsx)("div",{className:"search-container",children:(0,An.jsx)("input",{type:"text",placeholder:"Rechercher par nom, entreprise ou fonction...",value:a,onChange:e=>s(e.target.value),className:"search-input"})}),h.length>0?(0,An.jsx)("div",{className:"members-grid",children:h.map(e=>(0,An.jsxs)("div",{className:"member-card",onClick:()=>o(e),children:[e.avatar_url?(0,An.jsx)("img",{src:e.avatar_url,alt:e.name,className:"member-avatar"}):(0,An.jsx)("div",{className:"member-initials",children:f(e.name)}),(0,An.jsxs)("div",{className:"member-card-info",children:[(0,An.jsx)("h4",{children:e.name}),e.company&&(0,An.jsx)("p",{children:e.company})]})]},e.id))}):(0,An.jsx)("p",{className:"no-results",children:"Aucun membre ne correspond \xe0 votre recherche."})]}),i&&(0,An.jsx)("div",{className:"modal-overlay",onClick:()=>o(null),children:(0,An.jsxs)("div",{className:"modal-content",onClick:e=>e.stopPropagation(),children:[(0,An.jsx)("button",{className:"modal-close",onClick:()=>o(null),children:"\xd7"}),(0,An.jsxs)("div",{className:"modal-body",children:[(0,An.jsxs)("div",{className:"avatar-container",children:[i.avatar_url?(0,An.jsx)("img",{src:i.avatar_url,alt:i.name,className:"modal-avatar"}):(0,An.jsx)("div",{className:"modal-initials",children:f(i.name)}),(null===t||void 0===t?void 0:t.is_admin)&&(0,An.jsxs)("label",{className:"change-photo-label",children:["Changer la photo",(0,An.jsx)("input",{type:"file",accept:"image/*",onChange:async e=>{var a;if(!i||null===t||void 0===t||!t.is_admin)return;const s=null===(a=e.target.files)||void 0===a?void 0:a[0];if(s)try{d(!0);const e=document.createElement("canvas"),t=e.getContext("2d"),a=new Image;a.onload=async()=>{e.width=300,e.height=300,t.drawImage(a,0,0,300,300),e.toBlob(async e=>{try{const t=await fetch("/.netlify/functions/admin-upload-avatar",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({member_id:i.id,image:await p(e)})});if(t.ok){const e=await t.json();o({...i,avatar_url:e.avatar_url}),r(n.map(t=>t.id===i.id?{...t,avatar_url:e.avatar_url}:t))}else alert("Erreur lors du t\xe9l\xe9chargement de l'avatar")}finally{d(!1)}},"image/jpeg",.9)},a.src=URL.createObjectURL(s)}catch(l){console.error("Avatar upload error:",l),d(!1)}},disabled:u,style:{display:"none"}})]})]}),(0,An.jsx)("h2",{children:i.name}),i.company&&(0,An.jsx)("p",{className:"modal-company",children:i.company}),i.role&&(0,An.jsx)("p",{className:"modal-role",children:i.role}),i.bio&&(0,An.jsx)("p",{className:"modal-bio",children:i.bio}),i.linkedin&&(0,An.jsx)("a",{href:i.linkedin,target:"_blank",rel:"noopener noreferrer",className:"linkedin-button",children:"Voir sur LinkedIn"})]})]})}),(0,An.jsx)("style",{children:"\n .spinner {\n width: 40px;\n height: 40px;\n border: 4px solid #1f5d5b;
2\n border-top: 4px solid transparent;\n border-radius: 50%;\n animation: spin 0.8s linear infinite;\n margin: 0 auto;\n }\n @keyframes spin {\n 0% { transform: rotate(0deg); }\n 100% { transform: rotate(360deg); }\n }\n "})]})};function $o(){const{pathname:t,hash:n}=ue();return(0,e.useEffect)(()=>{n?setTimeout(()=>{const e=document.getElementById(n.replace("#",""));e&&e.scrollIntoView({behavior:"smooth"})},100):window.scrollTo(0,0)},[t,n]),null}function Io(e){let{children:t}=e;return(0,An.jsxs)("div",{className:"App",children:[(0,An.jsx)(Zn,{}),t]})}const Do=function(){return function(){const t=ue();(0,e.useEffect)(()=>{const e=new IntersectionObserver(t=>{t.forEach(t=>{t.isIntersecting&&(t.target.classList.add("visible"),e.unobserve(t.target))})},{threshold:.1}),t=setTimeout(()=>{document.querySelectorAll(".fade-in, .slide-up").forEach(t=>e.observe(t))},100);return()=>{clearTimeout(t),e.disconnect()}},[t.pathname])}(),(0,An.jsx)(Yn,{children:(0,An.jsxs)("div",{className:"App",children:[(0,An.jsx)($o,{}),(0,An.jsxs)(De,{children:[(0,An.jsx)($e,{path:"/",element:(0,An.jsxs)(An.Fragment,{children:[(0,An.jsx)(On,{}),(0,An.jsx)(Hn,{}),(0,An.jsx)(Pn,{})]})}),(0,An.jsx)($e,{path:"/evenement",element:(0,An.jsxs)(An.Fragment,{children:[(0,An.jsx)(On,{}),(0,An.jsx)(Wn,{}),(0,An.jsx)(Pn,{})]})}),(0,An.jsx)($e,{path:"/nous-contacter",element:(0,An.jsxs)(An.Fragment,{children:[(0,An.jsx)(On,{}),(0,An.jsx)(Vn,{}),(0,An.jsx)(Pn,{})]})}),(0,An.jsx)($e,{path:"/inscription",element:(0,An.jsxs)(An.Fragment,{children:[(0,An.jsx)(On,{}),(0,An.jsx)(Kn,{}),(0,An.jsx)(Pn,{})]})}),(0,An.jsx)($e,{path:"/mentions-legales",element:(0,An.jsxs)(An.Fragment,{children:[(0,An.jsx)(On,{}),(0,An.jsx)(Jn,{}),(0,An.jsx)(Pn,{})]})}),(0,An.jsx)($e,{path:"/members",element:(0,An.jsx)(Io,{children:(0,An.jsx)(tr,{})})}),(0,An.jsx)($e,{path:"/members/check-email",element:(0,An.jsx)(Io,{children:(0,An.jsx)(nr,{})})}),(0,An.jsx)($e,{path:"/members/verify",element:(0,An.jsx)(Io,{children:(0,An.jsx)(rr,{})})}),(0,An.jsx)($e,{path:"/members/dashboard",element:(0,An.jsx)(Io,{children:(0,An.jsx)(er,{children:(0,An.jsx)(Ao,{})})})}),(0,An.jsx)($e,{path:"/members/editions",element:(0,An.jsx)(Io,{children:(0,An.jsx)(er,{children:(0,An.jsx)(Oo,{})})})}),(0,An.jsx)($e,{path:"/members/editions/:id",element:(0,An.jsx)(Io,{children:(0,An.jsx)(er,{children:(0,An.jsx)(Po,{})})})}),(0,An.jsx)($e,{path:"/members/directory",element:(0,An.jsx)(Io,{children:(0,An.jsx)(er,{children:(0,An.jsx)(Lo,{})})})}),(0,An.jsx)($e,{path:"*",element:(0,An.jsxs)(An.Fragment,{children:[(0,An.jsx)(On,{}),(0,An.jsx)(Gn,{})]})})]}),(0,An.jsx)(In,{})]})})};r.createRoot(document.getElementById("root")).render((0,An.jsx)(e.StrictMode,{children:(0,An.jsx)(vn,{children:(0,An.jsx)(yt,{children:(0,An.jsx)(Do,{})})})}))})()})(); 3//# sourceMappingURL=main.89e5ea34.js.map
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.