From fba1c0af64ff74bc8bd53a970c5d15c190d60ce5 Mon Sep 17 00:00:00 2001 From: Rustic-Citrus Date: Mon, 8 Jul 2024 16:33:58 +0000 Subject: [PATCH] deploy: 874f4ae94063a9c2005241c4c7f76d9b04aed31f --- .../{index-BH9pX3l5.js => index-BC6LQ9wc.js} | 26 +++++++++---------- index.html | 2 +- 2 files changed, 14 insertions(+), 14 deletions(-) rename assets/{index-BH9pX3l5.js => index-BC6LQ9wc.js} (81%) diff --git a/assets/index-BH9pX3l5.js b/assets/index-BC6LQ9wc.js similarity index 81% rename from assets/index-BH9pX3l5.js rename to assets/index-BC6LQ9wc.js index 9c4fc97..3c69e45 100644 --- a/assets/index-BH9pX3l5.js +++ b/assets/index-BC6LQ9wc.js @@ -6,7 +6,7 @@ var wf=e=>{throw TypeError(e)};var Sf=(e,t,n)=>t.has(e)||wf("Cannot "+n);var Se= * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Es=Symbol.for("react.element"),kw=Symbol.for("react.portal"),jw=Symbol.for("react.fragment"),Pw=Symbol.for("react.strict_mode"),Rw=Symbol.for("react.profiler"),Nw=Symbol.for("react.provider"),Ow=Symbol.for("react.context"),Lw=Symbol.for("react.forward_ref"),Aw=Symbol.for("react.suspense"),bw=Symbol.for("react.memo"),Mw=Symbol.for("react.lazy"),Cf=Symbol.iterator;function Dw(e){return e===null||typeof e!="object"?null:(e=Cf&&e[Cf]||e["@@iterator"],typeof e=="function"?e:null)}var km={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},jm=Object.assign,Pm={};function ii(e,t,n){this.props=e,this.context=t,this.refs=Pm,this.updater=n||km}ii.prototype.isReactComponent={};ii.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};ii.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Rm(){}Rm.prototype=ii.prototype;function Ec(e,t,n){this.props=e,this.context=t,this.refs=Pm,this.updater=n||km}var Tc=Ec.prototype=new Rm;Tc.constructor=Ec;jm(Tc,ii.prototype);Tc.isPureReactComponent=!0;var Ef=Array.isArray,Nm=Object.prototype.hasOwnProperty,kc={current:null},Om={key:!0,ref:!0,__self:!0,__source:!0};function Lm(e,t,n){var r,i={},s=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(s=""+t.key),t)Nm.call(t,r)&&!Om.hasOwnProperty(r)&&(i[r]=t[r]);var a=arguments.length-2;if(a===1)i.children=n;else if(1{throw TypeError(e)};var Sf=(e,t,n)=>t.has(e)||wf("Cannot "+n);var Se= * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var $w=h,Uw=Symbol.for("react.element"),zw=Symbol.for("react.fragment"),Hw=Object.prototype.hasOwnProperty,Ww=$w.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Kw={key:!0,ref:!0,__self:!0,__source:!0};function bm(e,t,n){var r,i={},s=null,o=null;n!==void 0&&(s=""+n),t.key!==void 0&&(s=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)Hw.call(t,r)&&!Kw.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:Uw,type:e,key:s,ref:o,props:i,_owner:Ww.current}}ha.Fragment=zw;ha.jsx=bm;ha.jsxs=bm;Em.exports=ha;var f=Em.exports,Ql={},Mm={exports:{}},ot={},Dm={exports:{}},Im={};/** + */var $w=h,Uw=Symbol.for("react.element"),zw=Symbol.for("react.fragment"),Hw=Object.prototype.hasOwnProperty,Ww=$w.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Kw={key:!0,ref:!0,__self:!0,__source:!0};function bm(e,t,n){var r,i={},s=null,o=null;n!==void 0&&(s=""+n),t.key!==void 0&&(s=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)Hw.call(t,r)&&!Kw.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:Uw,type:e,key:s,ref:o,props:i,_owner:Ww.current}}ha.Fragment=zw;ha.jsx=bm;ha.jsxs=bm;Em.exports=ha;var f=Em.exports,Ql={},Dm={exports:{}},ot={},Mm={exports:{}},_m={};/** * @license React * scheduler.production.min.js * @@ -22,7 +22,7 @@ var wf=e=>{throw TypeError(e)};var Sf=(e,t,n)=>t.has(e)||wf("Cannot "+n);var Se= * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */(function(e){function t(N,_){var F=N.length;N.push(_);e:for(;0>>1,q=N[H];if(0>>1;Hi(me,F))Bei(Vt,me)?(N[H]=Vt,N[Be]=F,H=Be):(N[H]=me,N[ye]=F,H=ye);else if(Bei(Vt,F))N[H]=Vt,N[Be]=F,H=Be;else break e}}return _}function i(N,_){var F=N.sortIndex-_.sortIndex;return F!==0?F:N.id-_.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var o=Date,a=o.now();e.unstable_now=function(){return o.now()-a}}var l=[],u=[],c=1,d=null,p=3,v=!1,y=!1,w=!1,S=typeof setTimeout=="function"?setTimeout:null,x=typeof clearTimeout=="function"?clearTimeout:null,m=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function g(N){for(var _=n(u);_!==null;){if(_.callback===null)r(u);else if(_.startTime<=N)r(u),_.sortIndex=_.expirationTime,t(l,_);else break;_=n(u)}}function C(N){if(w=!1,g(N),!y)if(n(l)!==null)y=!0,ne(T);else{var _=n(u);_!==null&&ke(C,_.startTime-N)}}function T(N,_){y=!1,w&&(w=!1,x(j),j=-1),v=!0;var F=p;try{for(g(_),d=n(l);d!==null&&(!(d.expirationTime>_)||N&&!X());){var H=d.callback;if(typeof H=="function"){d.callback=null,p=d.priorityLevel;var q=H(d.expirationTime<=_);_=e.unstable_now(),typeof q=="function"?d.callback=q:d===n(l)&&r(l),g(_)}else r(l);d=n(l)}if(d!==null)var je=!0;else{var ye=n(u);ye!==null&&ke(C,ye.startTime-_),je=!1}return je}finally{d=null,p=F,v=!1}}var E=!1,P=null,j=-1,I=5,b=-1;function X(){return!(e.unstable_now()-bN||125H?(N.sortIndex=F,t(u,N),n(l)===null&&N===n(u)&&(w?(x(j),j=-1):w=!0,ke(C,F-H))):(N.sortIndex=q,t(l,N),y||v||(y=!0,ne(T))),N},e.unstable_shouldYield=X,e.unstable_wrapCallback=function(N){var _=p;return function(){var F=p;p=_;try{return N.apply(this,arguments)}finally{p=F}}}})(Im);Dm.exports=Im;var Gw=Dm.exports;/** + */(function(e){function t(N,I){var F=N.length;N.push(I);e:for(;0>>1,q=N[H];if(0>>1;Hi(me,F))Bei(Vt,me)?(N[H]=Vt,N[Be]=F,H=Be):(N[H]=me,N[ye]=F,H=ye);else if(Bei(Vt,F))N[H]=Vt,N[Be]=F,H=Be;else break e}}return I}function i(N,I){var F=N.sortIndex-I.sortIndex;return F!==0?F:N.id-I.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var o=Date,a=o.now();e.unstable_now=function(){return o.now()-a}}var l=[],u=[],c=1,d=null,p=3,v=!1,y=!1,w=!1,S=typeof setTimeout=="function"?setTimeout:null,x=typeof clearTimeout=="function"?clearTimeout:null,m=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function g(N){for(var I=n(u);I!==null;){if(I.callback===null)r(u);else if(I.startTime<=N)r(u),I.sortIndex=I.expirationTime,t(l,I);else break;I=n(u)}}function C(N){if(w=!1,g(N),!y)if(n(l)!==null)y=!0,ne(T);else{var I=n(u);I!==null&&ke(C,I.startTime-N)}}function T(N,I){y=!1,w&&(w=!1,x(j),j=-1),v=!0;var F=p;try{for(g(I),d=n(l);d!==null&&(!(d.expirationTime>I)||N&&!X());){var H=d.callback;if(typeof H=="function"){d.callback=null,p=d.priorityLevel;var q=H(d.expirationTime<=I);I=e.unstable_now(),typeof q=="function"?d.callback=q:d===n(l)&&r(l),g(I)}else r(l);d=n(l)}if(d!==null)var je=!0;else{var ye=n(u);ye!==null&&ke(C,ye.startTime-I),je=!1}return je}finally{d=null,p=F,v=!1}}var E=!1,P=null,j=-1,_=5,b=-1;function X(){return!(e.unstable_now()-b<_)}function Ve(){if(P!==null){var N=e.unstable_now();b=N;var I=!0;try{I=P(!0,N)}finally{I?Le():(E=!1,P=null)}}else E=!1}var Le;if(typeof m=="function")Le=function(){m(Ve)};else if(typeof MessageChannel<"u"){var et=new MessageChannel,te=et.port2;et.port1.onmessage=Ve,Le=function(){te.postMessage(null)}}else Le=function(){S(Ve,0)};function ne(N){P=N,E||(E=!0,Le())}function ke(N,I){j=S(function(){N(e.unstable_now())},I)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(N){N.callback=null},e.unstable_continueExecution=function(){y||v||(y=!0,ne(T))},e.unstable_forceFrameRate=function(N){0>N||125H?(N.sortIndex=F,t(u,N),n(l)===null&&N===n(u)&&(w?(x(j),j=-1):w=!0,ke(C,F-H))):(N.sortIndex=q,t(l,N),y||v||(y=!0,ne(T))),N},e.unstable_shouldYield=X,e.unstable_wrapCallback=function(N){var I=p;return function(){var F=p;p=I;try{return N.apply(this,arguments)}finally{p=F}}}})(_m);Mm.exports=_m;var Gw=Mm.exports;/** * @license React * react-dom.production.min.js * @@ -30,14 +30,14 @@ var wf=e=>{throw TypeError(e)};var Sf=(e,t,n)=>t.has(e)||wf("Cannot "+n);var Se= * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Yw=h,it=Gw;function R(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Xl=Object.prototype.hasOwnProperty,Qw=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,kf={},jf={};function Xw(e){return Xl.call(jf,e)?!0:Xl.call(kf,e)?!1:Qw.test(e)?jf[e]=!0:(kf[e]=!0,!1)}function qw(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Jw(e,t,n,r){if(t===null||typeof t>"u"||qw(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Ge(e,t,n,r,i,s,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=o}var Oe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Oe[e]=new Ge(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Oe[t]=new Ge(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Oe[e]=new Ge(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Oe[e]=new Ge(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Oe[e]=new Ge(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Oe[e]=new Ge(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Oe[e]=new Ge(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Oe[e]=new Ge(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Oe[e]=new Ge(e,5,!1,e.toLowerCase(),null,!1,!1)});var Pc=/[\-:]([a-z])/g;function Rc(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Pc,Rc);Oe[t]=new Ge(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Pc,Rc);Oe[t]=new Ge(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Pc,Rc);Oe[t]=new Ge(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Oe[e]=new Ge(e,1,!1,e.toLowerCase(),null,!1,!1)});Oe.xlinkHref=new Ge("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Oe[e]=new Ge(e,1,!1,e.toLowerCase(),null,!0,!0)});function Nc(e,t,n,r){var i=Oe.hasOwnProperty(t)?Oe[t]:null;(i!==null?i.type!==0:r||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Xl=Object.prototype.hasOwnProperty,Qw=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,kf={},jf={};function Xw(e){return Xl.call(jf,e)?!0:Xl.call(kf,e)?!1:Qw.test(e)?jf[e]=!0:(kf[e]=!0,!1)}function qw(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Jw(e,t,n,r){if(t===null||typeof t>"u"||qw(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Ge(e,t,n,r,i,s,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=o}var Oe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Oe[e]=new Ge(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Oe[t]=new Ge(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Oe[e]=new Ge(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Oe[e]=new Ge(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Oe[e]=new Ge(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Oe[e]=new Ge(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Oe[e]=new Ge(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Oe[e]=new Ge(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Oe[e]=new Ge(e,5,!1,e.toLowerCase(),null,!1,!1)});var Pc=/[\-:]([a-z])/g;function Rc(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Pc,Rc);Oe[t]=new Ge(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Pc,Rc);Oe[t]=new Ge(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Pc,Rc);Oe[t]=new Ge(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Oe[e]=new Ge(e,1,!1,e.toLowerCase(),null,!1,!1)});Oe.xlinkHref=new Ge("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Oe[e]=new Ge(e,1,!1,e.toLowerCase(),null,!0,!0)});function Nc(e,t,n,r){var i=Oe.hasOwnProperty(t)?Oe[t]:null;(i!==null?i.type!==0:r||!(2a||i[o]!==s[a]){var l=` -`+i[o].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=o&&0<=a);break}}}finally{el=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Li(e):""}function Zw(e){switch(e.tag){case 5:return Li(e.type);case 16:return Li("Lazy");case 13:return Li("Suspense");case 19:return Li("SuspenseList");case 0:case 2:case 15:return e=tl(e.type,!1),e;case 11:return e=tl(e.type.render,!1),e;case 1:return e=tl(e.type,!0),e;default:return""}}function eu(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case kr:return"Fragment";case Tr:return"Portal";case ql:return"Profiler";case Oc:return"StrictMode";case Jl:return"Suspense";case Zl:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Vm:return(e.displayName||"Context")+".Consumer";case Fm:return(e._context.displayName||"Context")+".Provider";case Lc:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ac:return t=e.displayName||null,t!==null?t:eu(e.type)||"Memo";case hn:t=e._payload,e=e._init;try{return eu(e(t))}catch{}}return null}function e1(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return eu(t);case 8:return t===Oc?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Mn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function $m(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function t1(e){var t=$m(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,s.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function zs(e){e._valueTracker||(e._valueTracker=t1(e))}function Um(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=$m(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Ro(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function tu(e,t){var n=t.checked;return le({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Rf(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Mn(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function zm(e,t){t=t.checked,t!=null&&Nc(e,"checked",t,!1)}function nu(e,t){zm(e,t);var n=Mn(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?ru(e,t.type,n):t.hasOwnProperty("defaultValue")&&ru(e,t.type,Mn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Nf(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function ru(e,t,n){(t!=="number"||Ro(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Ai=Array.isArray;function $r(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=Hs.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Zi(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Fi={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},n1=["Webkit","ms","Moz","O"];Object.keys(Fi).forEach(function(e){n1.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Fi[t]=Fi[e]})});function Gm(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Fi.hasOwnProperty(e)&&Fi[e]?(""+t).trim():t+"px"}function Ym(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Gm(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var r1=le({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ou(e,t){if(t){if(r1[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(R(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(R(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(R(61))}if(t.style!=null&&typeof t.style!="object")throw Error(R(62))}}function au(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var lu=null;function bc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var uu=null,Ur=null,zr=null;function Af(e){if(e=js(e)){if(typeof uu!="function")throw Error(R(280));var t=e.stateNode;t&&(t=xa(t),uu(e.stateNode,e.type,t))}}function Qm(e){Ur?zr?zr.push(e):zr=[e]:Ur=e}function Xm(){if(Ur){var e=Ur,t=zr;if(zr=Ur=null,Af(e),t)for(e=0;e>>=0,e===0?32:31-(h1(e)/m1|0)|0}var Ws=64,Ks=4194304;function bi(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Ao(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,s=e.pingedLanes,o=n&268435455;if(o!==0){var a=o&~i;a!==0?r=bi(a):(s&=o,s!==0&&(r=bi(s)))}else o=n&~i,o!==0?r=bi(o):s!==0&&(r=bi(s));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,s=t&-t,i>=s||i===16&&(s&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Ts(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Tt(t),e[t]=n}function x1(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Bi),$f=" ",Uf=!1;function gg(e,t){switch(e){case"keyup":return G1.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function yg(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var jr=!1;function Q1(e,t){switch(e){case"compositionend":return yg(t);case"keypress":return t.which!==32?null:(Uf=!0,$f);case"textInput":return e=t.data,e===$f&&Uf?null:e;default:return null}}function X1(e,t){if(jr)return e==="compositionend"||!$c&&gg(e,t)?(e=hg(),po=Fc=wn=null,jr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Kf(n)}}function Sg(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Sg(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Cg(){for(var e=window,t=Ro();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ro(e.document)}return t}function Uc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function sS(e){var t=Cg(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Sg(n.ownerDocument.documentElement,n)){if(r!==null&&Uc(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,s=Math.min(r.start,i);r=r.end===void 0?s:Math.min(r.end,i),!e.extend&&s>r&&(i=r,r=s,s=i),i=Gf(n,s);var o=Gf(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),s>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Pr=null,mu=null,Ui=null,gu=!1;function Yf(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;gu||Pr==null||Pr!==Ro(r)||(r=Pr,"selectionStart"in r&&Uc(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Ui&&ss(Ui,r)||(Ui=r,r=Do(mu,"onSelect"),0Or||(e.current=Cu[Or],Cu[Or]=null,Or--)}function J(e,t){Or++,Cu[Or]=e.current,e.current=t}var Dn={},Fe=Vn(Dn),Xe=Vn(!1),ir=Dn;function Yr(e,t){var n=e.type.contextTypes;if(!n)return Dn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},s;for(s in n)i[s]=t[s];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function qe(e){return e=e.childContextTypes,e!=null}function _o(){ee(Xe),ee(Fe)}function tp(e,t,n){if(Fe.current!==Dn)throw Error(R(168));J(Fe,t),J(Xe,n)}function Lg(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(R(108,e1(e)||"Unknown",i));return le({},n,r)}function Fo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Dn,ir=Fe.current,J(Fe,e),J(Xe,Xe.current),!0}function np(e,t,n){var r=e.stateNode;if(!r)throw Error(R(169));n?(e=Lg(e,t,ir),r.__reactInternalMemoizedMergedChildContext=e,ee(Xe),ee(Fe),J(Fe,e)):ee(Xe),J(Xe,n)}var $t=null,wa=!1,ml=!1;function Ag(e){$t===null?$t=[e]:$t.push(e)}function yS(e){wa=!0,Ag(e)}function Bn(){if(!ml&&$t!==null){ml=!0;var e=0,t=Y;try{var n=$t;for(Y=1;e>=o,i-=o,Ht=1<<32-Tt(t)+i|n<j?(I=P,P=null):I=P.sibling;var b=p(x,P,g[j],C);if(b===null){P===null&&(P=I);break}e&&P&&b.alternate===null&&t(x,P),m=s(b,m,j),E===null?T=b:E.sibling=b,E=b,P=I}if(j===g.length)return n(x,P),ie&&Hn(x,j),T;if(P===null){for(;jj?(I=P,P=null):I=P.sibling;var X=p(x,P,b.value,C);if(X===null){P===null&&(P=I);break}e&&P&&X.alternate===null&&t(x,P),m=s(X,m,j),E===null?T=X:E.sibling=X,E=X,P=I}if(b.done)return n(x,P),ie&&Hn(x,j),T;if(P===null){for(;!b.done;j++,b=g.next())b=d(x,b.value,C),b!==null&&(m=s(b,m,j),E===null?T=b:E.sibling=b,E=b);return ie&&Hn(x,j),T}for(P=r(x,P);!b.done;j++,b=g.next())b=v(P,x,j,b.value,C),b!==null&&(e&&b.alternate!==null&&P.delete(b.key===null?j:b.key),m=s(b,m,j),E===null?T=b:E.sibling=b,E=b);return e&&P.forEach(function(Ve){return t(x,Ve)}),ie&&Hn(x,j),T}function S(x,m,g,C){if(typeof g=="object"&&g!==null&&g.type===kr&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case Us:e:{for(var T=g.key,E=m;E!==null;){if(E.key===T){if(T=g.type,T===kr){if(E.tag===7){n(x,E.sibling),m=i(E,g.props.children),m.return=x,x=m;break e}}else if(E.elementType===T||typeof T=="object"&&T!==null&&T.$$typeof===hn&&sp(T)===E.type){n(x,E.sibling),m=i(E,g.props),m.ref=Ti(x,E,g),m.return=x,x=m;break e}n(x,E);break}else t(x,E);E=E.sibling}g.type===kr?(m=er(g.props.children,x.mode,C,g.key),m.return=x,x=m):(C=So(g.type,g.key,g.props,null,x.mode,C),C.ref=Ti(x,m,g),C.return=x,x=C)}return o(x);case Tr:e:{for(E=g.key;m!==null;){if(m.key===E)if(m.tag===4&&m.stateNode.containerInfo===g.containerInfo&&m.stateNode.implementation===g.implementation){n(x,m.sibling),m=i(m,g.children||[]),m.return=x,x=m;break e}else{n(x,m);break}else t(x,m);m=m.sibling}m=El(g,x.mode,C),m.return=x,x=m}return o(x);case hn:return E=g._init,S(x,m,E(g._payload),C)}if(Ai(g))return y(x,m,g,C);if(xi(g))return w(x,m,g,C);Zs(x,g)}return typeof g=="string"&&g!==""||typeof g=="number"?(g=""+g,m!==null&&m.tag===6?(n(x,m.sibling),m=i(m,g),m.return=x,x=m):(n(x,m),m=Cl(g,x.mode,C),m.return=x,x=m),o(x)):n(x,m)}return S}var Xr=Ig(!0),_g=Ig(!1),$o=Vn(null),Uo=null,br=null,Kc=null;function Gc(){Kc=br=Uo=null}function Yc(e){var t=$o.current;ee($o),e._currentValue=t}function ku(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Wr(e,t){Uo=e,Kc=br=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Qe=!0),e.firstContext=null)}function yt(e){var t=e._currentValue;if(Kc!==e)if(e={context:e,memoizedValue:t,next:null},br===null){if(Uo===null)throw Error(R(308));br=e,Uo.dependencies={lanes:0,firstContext:e}}else br=br.next=e;return t}var Xn=null;function Qc(e){Xn===null?Xn=[e]:Xn.push(e)}function Fg(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,Qc(t)):(n.next=i.next,i.next=n),t.interleaved=n,en(e,r)}function en(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var mn=!1;function Xc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Vg(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Gt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Pn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,z&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,en(e,n)}return i=r.interleaved,i===null?(t.next=t,Qc(r)):(t.next=i.next,i.next=t),r.interleaved=t,en(e,n)}function mo(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Dc(e,n)}}function op(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};s===null?i=s=o:s=s.next=o,n=n.next}while(n!==null);s===null?i=s=t:s=s.next=t}else i=s=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:s,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function zo(e,t,n,r){var i=e.updateQueue;mn=!1;var s=i.firstBaseUpdate,o=i.lastBaseUpdate,a=i.shared.pending;if(a!==null){i.shared.pending=null;var l=a,u=l.next;l.next=null,o===null?s=u:o.next=u,o=l;var c=e.alternate;c!==null&&(c=c.updateQueue,a=c.lastBaseUpdate,a!==o&&(a===null?c.firstBaseUpdate=u:a.next=u,c.lastBaseUpdate=l))}if(s!==null){var d=i.baseState;o=0,c=u=l=null,a=s;do{var p=a.lane,v=a.eventTime;if((r&p)===p){c!==null&&(c=c.next={eventTime:v,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var y=e,w=a;switch(p=t,v=n,w.tag){case 1:if(y=w.payload,typeof y=="function"){d=y.call(v,d,p);break e}d=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=w.payload,p=typeof y=="function"?y.call(v,d,p):y,p==null)break e;d=le({},d,p);break e;case 2:mn=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,p=i.effects,p===null?i.effects=[a]:p.push(a))}else v={eventTime:v,lane:p,tag:a.tag,payload:a.payload,callback:a.callback,next:null},c===null?(u=c=v,l=d):c=c.next=v,o|=p;if(a=a.next,a===null){if(a=i.shared.pending,a===null)break;p=a,a=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(!0);if(c===null&&(l=d),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=c,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else s===null&&(i.shared.lanes=0);ar|=o,e.lanes=o,e.memoizedState=d}}function ap(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=yl.transition;yl.transition={};try{e(!1),t()}finally{Y=n,yl.transition=r}}function ny(){return vt().memoizedState}function SS(e,t,n){var r=Nn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},ry(e))iy(t,n);else if(n=Fg(e,t,n,r),n!==null){var i=We();kt(n,e,r,i),sy(n,t,r)}}function CS(e,t,n){var r=Nn(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(ry(e))iy(t,i);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var o=t.lastRenderedState,a=s(o,n);if(i.hasEagerState=!0,i.eagerState=a,Rt(a,o)){var l=t.interleaved;l===null?(i.next=i,Qc(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=Fg(e,t,i,r),n!==null&&(i=We(),kt(n,e,r,i),sy(n,t,r))}}function ry(e){var t=e.alternate;return e===ae||t!==null&&t===ae}function iy(e,t){zi=Wo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function sy(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Dc(e,n)}}var Ko={readContext:yt,useCallback:Ae,useContext:Ae,useEffect:Ae,useImperativeHandle:Ae,useInsertionEffect:Ae,useLayoutEffect:Ae,useMemo:Ae,useReducer:Ae,useRef:Ae,useState:Ae,useDebugValue:Ae,useDeferredValue:Ae,useTransition:Ae,useMutableSource:Ae,useSyncExternalStore:Ae,useId:Ae,unstable_isNewReconciler:!1},ES={readContext:yt,useCallback:function(e,t){return At().memoizedState=[e,t===void 0?null:t],e},useContext:yt,useEffect:up,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,yo(4194308,4,qg.bind(null,t,e),n)},useLayoutEffect:function(e,t){return yo(4194308,4,e,t)},useInsertionEffect:function(e,t){return yo(4,2,e,t)},useMemo:function(e,t){var n=At();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=At();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=SS.bind(null,ae,e),[r.memoizedState,e]},useRef:function(e){var t=At();return e={current:e},t.memoizedState=e},useState:lp,useDebugValue:id,useDeferredValue:function(e){return At().memoizedState=e},useTransition:function(){var e=lp(!1),t=e[0];return e=wS.bind(null,e[1]),At().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ae,i=At();if(ie){if(n===void 0)throw Error(R(407));n=n()}else{if(n=t(),Te===null)throw Error(R(349));or&30||zg(r,t,n)}i.memoizedState=n;var s={value:n,getSnapshot:t};return i.queue=s,up(Wg.bind(null,r,s,e),[e]),r.flags|=2048,ps(9,Hg.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=At(),t=Te.identifierPrefix;if(ie){var n=Wt,r=Ht;n=(r&~(1<<32-Tt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=ds++,0")&&(l=l.replace("",e.displayName)),l}while(1<=o&&0<=a);break}}}finally{el=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Li(e):""}function Zw(e){switch(e.tag){case 5:return Li(e.type);case 16:return Li("Lazy");case 13:return Li("Suspense");case 19:return Li("SuspenseList");case 0:case 2:case 15:return e=tl(e.type,!1),e;case 11:return e=tl(e.type.render,!1),e;case 1:return e=tl(e.type,!0),e;default:return""}}function eu(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case kr:return"Fragment";case Tr:return"Portal";case ql:return"Profiler";case Oc:return"StrictMode";case Jl:return"Suspense";case Zl:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Vm:return(e.displayName||"Context")+".Consumer";case Fm:return(e._context.displayName||"Context")+".Provider";case Lc:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ac:return t=e.displayName||null,t!==null?t:eu(e.type)||"Memo";case hn:t=e._payload,e=e._init;try{return eu(e(t))}catch{}}return null}function e1(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return eu(t);case 8:return t===Oc?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Dn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function $m(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function t1(e){var t=$m(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,s.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function zs(e){e._valueTracker||(e._valueTracker=t1(e))}function Um(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=$m(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Ro(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function tu(e,t){var n=t.checked;return le({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Rf(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Dn(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function zm(e,t){t=t.checked,t!=null&&Nc(e,"checked",t,!1)}function nu(e,t){zm(e,t);var n=Dn(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?ru(e,t.type,n):t.hasOwnProperty("defaultValue")&&ru(e,t.type,Dn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Nf(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function ru(e,t,n){(t!=="number"||Ro(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Ai=Array.isArray;function $r(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=Hs.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Zi(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Fi={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},n1=["Webkit","ms","Moz","O"];Object.keys(Fi).forEach(function(e){n1.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Fi[t]=Fi[e]})});function Gm(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Fi.hasOwnProperty(e)&&Fi[e]?(""+t).trim():t+"px"}function Ym(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Gm(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var r1=le({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ou(e,t){if(t){if(r1[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(R(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(R(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(R(61))}if(t.style!=null&&typeof t.style!="object")throw Error(R(62))}}function au(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var lu=null;function bc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var uu=null,Ur=null,zr=null;function Af(e){if(e=js(e)){if(typeof uu!="function")throw Error(R(280));var t=e.stateNode;t&&(t=xa(t),uu(e.stateNode,e.type,t))}}function Qm(e){Ur?zr?zr.push(e):zr=[e]:Ur=e}function Xm(){if(Ur){var e=Ur,t=zr;if(zr=Ur=null,Af(e),t)for(e=0;e>>=0,e===0?32:31-(h1(e)/m1|0)|0}var Ws=64,Ks=4194304;function bi(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Ao(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,s=e.pingedLanes,o=n&268435455;if(o!==0){var a=o&~i;a!==0?r=bi(a):(s&=o,s!==0&&(r=bi(s)))}else o=n&~i,o!==0?r=bi(o):s!==0&&(r=bi(s));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,s=t&-t,i>=s||i===16&&(s&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Ts(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Tt(t),e[t]=n}function x1(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Bi),$f=" ",Uf=!1;function gg(e,t){switch(e){case"keyup":return G1.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function yg(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var jr=!1;function Q1(e,t){switch(e){case"compositionend":return yg(t);case"keypress":return t.which!==32?null:(Uf=!0,$f);case"textInput":return e=t.data,e===$f&&Uf?null:e;default:return null}}function X1(e,t){if(jr)return e==="compositionend"||!$c&&gg(e,t)?(e=hg(),po=Fc=wn=null,jr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Kf(n)}}function Sg(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Sg(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Cg(){for(var e=window,t=Ro();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ro(e.document)}return t}function Uc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function sS(e){var t=Cg(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Sg(n.ownerDocument.documentElement,n)){if(r!==null&&Uc(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,s=Math.min(r.start,i);r=r.end===void 0?s:Math.min(r.end,i),!e.extend&&s>r&&(i=r,r=s,s=i),i=Gf(n,s);var o=Gf(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),s>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Pr=null,mu=null,Ui=null,gu=!1;function Yf(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;gu||Pr==null||Pr!==Ro(r)||(r=Pr,"selectionStart"in r&&Uc(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Ui&&ss(Ui,r)||(Ui=r,r=Mo(mu,"onSelect"),0Or||(e.current=Cu[Or],Cu[Or]=null,Or--)}function J(e,t){Or++,Cu[Or]=e.current,e.current=t}var Mn={},Fe=Vn(Mn),Xe=Vn(!1),ir=Mn;function Yr(e,t){var n=e.type.contextTypes;if(!n)return Mn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},s;for(s in n)i[s]=t[s];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function qe(e){return e=e.childContextTypes,e!=null}function Io(){ee(Xe),ee(Fe)}function tp(e,t,n){if(Fe.current!==Mn)throw Error(R(168));J(Fe,t),J(Xe,n)}function Lg(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(R(108,e1(e)||"Unknown",i));return le({},n,r)}function Fo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Mn,ir=Fe.current,J(Fe,e),J(Xe,Xe.current),!0}function np(e,t,n){var r=e.stateNode;if(!r)throw Error(R(169));n?(e=Lg(e,t,ir),r.__reactInternalMemoizedMergedChildContext=e,ee(Xe),ee(Fe),J(Fe,e)):ee(Xe),J(Xe,n)}var $t=null,wa=!1,ml=!1;function Ag(e){$t===null?$t=[e]:$t.push(e)}function yS(e){wa=!0,Ag(e)}function Bn(){if(!ml&&$t!==null){ml=!0;var e=0,t=Y;try{var n=$t;for(Y=1;e>=o,i-=o,Ht=1<<32-Tt(t)+i|n<j?(_=P,P=null):_=P.sibling;var b=p(x,P,g[j],C);if(b===null){P===null&&(P=_);break}e&&P&&b.alternate===null&&t(x,P),m=s(b,m,j),E===null?T=b:E.sibling=b,E=b,P=_}if(j===g.length)return n(x,P),ie&&Hn(x,j),T;if(P===null){for(;jj?(_=P,P=null):_=P.sibling;var X=p(x,P,b.value,C);if(X===null){P===null&&(P=_);break}e&&P&&X.alternate===null&&t(x,P),m=s(X,m,j),E===null?T=X:E.sibling=X,E=X,P=_}if(b.done)return n(x,P),ie&&Hn(x,j),T;if(P===null){for(;!b.done;j++,b=g.next())b=d(x,b.value,C),b!==null&&(m=s(b,m,j),E===null?T=b:E.sibling=b,E=b);return ie&&Hn(x,j),T}for(P=r(x,P);!b.done;j++,b=g.next())b=v(P,x,j,b.value,C),b!==null&&(e&&b.alternate!==null&&P.delete(b.key===null?j:b.key),m=s(b,m,j),E===null?T=b:E.sibling=b,E=b);return e&&P.forEach(function(Ve){return t(x,Ve)}),ie&&Hn(x,j),T}function S(x,m,g,C){if(typeof g=="object"&&g!==null&&g.type===kr&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case Us:e:{for(var T=g.key,E=m;E!==null;){if(E.key===T){if(T=g.type,T===kr){if(E.tag===7){n(x,E.sibling),m=i(E,g.props.children),m.return=x,x=m;break e}}else if(E.elementType===T||typeof T=="object"&&T!==null&&T.$$typeof===hn&&sp(T)===E.type){n(x,E.sibling),m=i(E,g.props),m.ref=Ti(x,E,g),m.return=x,x=m;break e}n(x,E);break}else t(x,E);E=E.sibling}g.type===kr?(m=er(g.props.children,x.mode,C,g.key),m.return=x,x=m):(C=So(g.type,g.key,g.props,null,x.mode,C),C.ref=Ti(x,m,g),C.return=x,x=C)}return o(x);case Tr:e:{for(E=g.key;m!==null;){if(m.key===E)if(m.tag===4&&m.stateNode.containerInfo===g.containerInfo&&m.stateNode.implementation===g.implementation){n(x,m.sibling),m=i(m,g.children||[]),m.return=x,x=m;break e}else{n(x,m);break}else t(x,m);m=m.sibling}m=El(g,x.mode,C),m.return=x,x=m}return o(x);case hn:return E=g._init,S(x,m,E(g._payload),C)}if(Ai(g))return y(x,m,g,C);if(xi(g))return w(x,m,g,C);Zs(x,g)}return typeof g=="string"&&g!==""||typeof g=="number"?(g=""+g,m!==null&&m.tag===6?(n(x,m.sibling),m=i(m,g),m.return=x,x=m):(n(x,m),m=Cl(g,x.mode,C),m.return=x,x=m),o(x)):n(x,m)}return S}var Xr=_g(!0),Ig=_g(!1),$o=Vn(null),Uo=null,br=null,Kc=null;function Gc(){Kc=br=Uo=null}function Yc(e){var t=$o.current;ee($o),e._currentValue=t}function ku(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Wr(e,t){Uo=e,Kc=br=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Qe=!0),e.firstContext=null)}function yt(e){var t=e._currentValue;if(Kc!==e)if(e={context:e,memoizedValue:t,next:null},br===null){if(Uo===null)throw Error(R(308));br=e,Uo.dependencies={lanes:0,firstContext:e}}else br=br.next=e;return t}var Xn=null;function Qc(e){Xn===null?Xn=[e]:Xn.push(e)}function Fg(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,Qc(t)):(n.next=i.next,i.next=n),t.interleaved=n,en(e,r)}function en(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var mn=!1;function Xc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Vg(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Gt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Pn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,z&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,en(e,n)}return i=r.interleaved,i===null?(t.next=t,Qc(r)):(t.next=i.next,i.next=t),r.interleaved=t,en(e,n)}function mo(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Mc(e,n)}}function op(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};s===null?i=s=o:s=s.next=o,n=n.next}while(n!==null);s===null?i=s=t:s=s.next=t}else i=s=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:s,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function zo(e,t,n,r){var i=e.updateQueue;mn=!1;var s=i.firstBaseUpdate,o=i.lastBaseUpdate,a=i.shared.pending;if(a!==null){i.shared.pending=null;var l=a,u=l.next;l.next=null,o===null?s=u:o.next=u,o=l;var c=e.alternate;c!==null&&(c=c.updateQueue,a=c.lastBaseUpdate,a!==o&&(a===null?c.firstBaseUpdate=u:a.next=u,c.lastBaseUpdate=l))}if(s!==null){var d=i.baseState;o=0,c=u=l=null,a=s;do{var p=a.lane,v=a.eventTime;if((r&p)===p){c!==null&&(c=c.next={eventTime:v,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var y=e,w=a;switch(p=t,v=n,w.tag){case 1:if(y=w.payload,typeof y=="function"){d=y.call(v,d,p);break e}d=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=w.payload,p=typeof y=="function"?y.call(v,d,p):y,p==null)break e;d=le({},d,p);break e;case 2:mn=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,p=i.effects,p===null?i.effects=[a]:p.push(a))}else v={eventTime:v,lane:p,tag:a.tag,payload:a.payload,callback:a.callback,next:null},c===null?(u=c=v,l=d):c=c.next=v,o|=p;if(a=a.next,a===null){if(a=i.shared.pending,a===null)break;p=a,a=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(!0);if(c===null&&(l=d),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=c,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else s===null&&(i.shared.lanes=0);ar|=o,e.lanes=o,e.memoizedState=d}}function ap(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=yl.transition;yl.transition={};try{e(!1),t()}finally{Y=n,yl.transition=r}}function ny(){return vt().memoizedState}function SS(e,t,n){var r=Nn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},ry(e))iy(t,n);else if(n=Fg(e,t,n,r),n!==null){var i=We();kt(n,e,r,i),sy(n,t,r)}}function CS(e,t,n){var r=Nn(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(ry(e))iy(t,i);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var o=t.lastRenderedState,a=s(o,n);if(i.hasEagerState=!0,i.eagerState=a,Rt(a,o)){var l=t.interleaved;l===null?(i.next=i,Qc(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=Fg(e,t,i,r),n!==null&&(i=We(),kt(n,e,r,i),sy(n,t,r))}}function ry(e){var t=e.alternate;return e===ae||t!==null&&t===ae}function iy(e,t){zi=Wo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function sy(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Mc(e,n)}}var Ko={readContext:yt,useCallback:Ae,useContext:Ae,useEffect:Ae,useImperativeHandle:Ae,useInsertionEffect:Ae,useLayoutEffect:Ae,useMemo:Ae,useReducer:Ae,useRef:Ae,useState:Ae,useDebugValue:Ae,useDeferredValue:Ae,useTransition:Ae,useMutableSource:Ae,useSyncExternalStore:Ae,useId:Ae,unstable_isNewReconciler:!1},ES={readContext:yt,useCallback:function(e,t){return At().memoizedState=[e,t===void 0?null:t],e},useContext:yt,useEffect:up,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,yo(4194308,4,qg.bind(null,t,e),n)},useLayoutEffect:function(e,t){return yo(4194308,4,e,t)},useInsertionEffect:function(e,t){return yo(4,2,e,t)},useMemo:function(e,t){var n=At();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=At();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=SS.bind(null,ae,e),[r.memoizedState,e]},useRef:function(e){var t=At();return e={current:e},t.memoizedState=e},useState:lp,useDebugValue:id,useDeferredValue:function(e){return At().memoizedState=e},useTransition:function(){var e=lp(!1),t=e[0];return e=wS.bind(null,e[1]),At().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ae,i=At();if(ie){if(n===void 0)throw Error(R(407));n=n()}else{if(n=t(),Te===null)throw Error(R(349));or&30||zg(r,t,n)}i.memoizedState=n;var s={value:n,getSnapshot:t};return i.queue=s,up(Wg.bind(null,r,s,e),[e]),r.flags|=2048,ps(9,Hg.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=At(),t=Te.identifierPrefix;if(ie){var n=Wt,r=Ht;n=(r&~(1<<32-Tt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=ds++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[Dt]=t,e[ls]=r,my(e,t,!1,!1),t.stateNode=e;e:{switch(o=au(n,r),n){case"dialog":Z("cancel",e),Z("close",e),i=r;break;case"iframe":case"object":case"embed":Z("load",e),i=r;break;case"video":case"audio":for(i=0;iZr&&(t.flags|=128,r=!0,ki(s,!1),t.lanes=4194304)}else{if(!r)if(e=Ho(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),ki(s,!0),s.tail===null&&s.tailMode==="hidden"&&!o.alternate&&!ie)return be(t),null}else 2*fe()-s.renderingStartTime>Zr&&n!==1073741824&&(t.flags|=128,r=!0,ki(s,!1),t.lanes=4194304);s.isBackwards?(o.sibling=t.child,t.child=o):(n=s.last,n!==null?n.sibling=o:t.child=o,s.last=o)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=fe(),t.sibling=null,n=se.current,J(se,r?n&1|2:n&1),t):(be(t),null);case 22:case 23:return cd(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?tt&1073741824&&(be(t),t.subtreeFlags&6&&(t.flags|=8192)):be(t),null;case 24:return null;case 25:return null}throw Error(R(156,t.tag))}function LS(e,t){switch(Hc(t),t.tag){case 1:return qe(t.type)&&_o(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return qr(),ee(Xe),ee(Fe),Zc(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Jc(t),null;case 13:if(ee(se),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(R(340));Qr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ee(se),null;case 4:return qr(),null;case 10:return Yc(t.type._context),null;case 22:case 23:return cd(),null;case 24:return null;default:return null}}var to=!1,De=!1,AS=typeof WeakSet=="function"?WeakSet:Set,L=null;function Mr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ue(e,t,r)}else n.current=null}function Mu(e,t,n){try{n()}catch(r){ue(e,t,r)}}var wp=!1;function bS(e,t){if(yu=bo,e=Cg(),Uc(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var o=0,a=-1,l=-1,u=0,c=0,d=e,p=null;t:for(;;){for(var v;d!==n||i!==0&&d.nodeType!==3||(a=o+i),d!==s||r!==0&&d.nodeType!==3||(l=o+r),d.nodeType===3&&(o+=d.nodeValue.length),(v=d.firstChild)!==null;)p=d,d=v;for(;;){if(d===e)break t;if(p===n&&++u===i&&(a=o),p===s&&++c===r&&(l=o),(v=d.nextSibling)!==null)break;d=p,p=d.parentNode}d=v}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(vu={focusedElem:e,selectionRange:n},bo=!1,L=t;L!==null;)if(t=L,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,L=e;else for(;L!==null;){t=L;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var w=y.memoizedProps,S=y.memoizedState,x=t.stateNode,m=x.getSnapshotBeforeUpdate(t.elementType===t.type?w:wt(t.type,w),S);x.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var g=t.stateNode.containerInfo;g.nodeType===1?g.textContent="":g.nodeType===9&&g.documentElement&&g.removeChild(g.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(R(163))}}catch(C){ue(t,t.return,C)}if(e=t.sibling,e!==null){e.return=t.return,L=e;break}L=t.return}return y=wp,wp=!1,y}function Hi(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var s=i.destroy;i.destroy=void 0,s!==void 0&&Mu(t,n,s)}i=i.next}while(i!==r)}}function Ea(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Du(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function vy(e){var t=e.alternate;t!==null&&(e.alternate=null,vy(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Dt],delete t[ls],delete t[Su],delete t[mS],delete t[gS])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function xy(e){return e.tag===5||e.tag===3||e.tag===4}function Sp(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||xy(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Iu(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Io));else if(r!==4&&(e=e.child,e!==null))for(Iu(e,t,n),e=e.sibling;e!==null;)Iu(e,t,n),e=e.sibling}function _u(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(_u(e,t,n),e=e.sibling;e!==null;)_u(e,t,n),e=e.sibling}var Pe=null,St=!1;function cn(e,t,n){for(n=n.child;n!==null;)wy(e,t,n),n=n.sibling}function wy(e,t,n){if(It&&typeof It.onCommitFiberUnmount=="function")try{It.onCommitFiberUnmount(ma,n)}catch{}switch(n.tag){case 5:De||Mr(n,t);case 6:var r=Pe,i=St;Pe=null,cn(e,t,n),Pe=r,St=i,Pe!==null&&(St?(e=Pe,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Pe.removeChild(n.stateNode));break;case 18:Pe!==null&&(St?(e=Pe,n=n.stateNode,e.nodeType===8?hl(e.parentNode,n):e.nodeType===1&&hl(e,n),rs(e)):hl(Pe,n.stateNode));break;case 4:r=Pe,i=St,Pe=n.stateNode.containerInfo,St=!0,cn(e,t,n),Pe=r,St=i;break;case 0:case 11:case 14:case 15:if(!De&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var s=i,o=s.destroy;s=s.tag,o!==void 0&&(s&2||s&4)&&Mu(n,t,o),i=i.next}while(i!==r)}cn(e,t,n);break;case 1:if(!De&&(Mr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){ue(n,t,a)}cn(e,t,n);break;case 21:cn(e,t,n);break;case 22:n.mode&1?(De=(r=De)||n.memoizedState!==null,cn(e,t,n),De=r):cn(e,t,n);break;default:cn(e,t,n)}}function Cp(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new AS),t.forEach(function(r){var i=US.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function xt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=o),r&=~s}if(r=i,r=fe()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*DS(r/1960))-r,10e?16:e,Sn===null)var r=!1;else{if(e=Sn,Sn=null,Qo=0,z&6)throw Error(R(331));var i=z;for(z|=4,L=e.current;L!==null;){var s=L,o=s.child;if(L.flags&16){var a=s.deletions;if(a!==null){for(var l=0;lfe()-ld?Zn(e,0):ad|=n),Je(e,t)}function Ry(e,t){t===0&&(e.mode&1?(t=Ks,Ks<<=1,!(Ks&130023424)&&(Ks=4194304)):t=1);var n=We();e=en(e,t),e!==null&&(Ts(e,t,n),Je(e,n))}function $S(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ry(e,n)}function US(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(R(314))}r!==null&&r.delete(t),Ry(e,n)}var Ny;Ny=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Xe.current)Qe=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Qe=!1,NS(e,t,n);Qe=!!(e.flags&131072)}else Qe=!1,ie&&t.flags&1048576&&bg(t,Bo,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;vo(e,t),e=t.pendingProps;var i=Yr(t,Fe.current);Wr(t,n),i=td(null,t,r,e,i,n);var s=nd();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,qe(r)?(s=!0,Fo(t)):s=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Xc(t),i.updater=Ca,t.stateNode=i,i._reactInternals=t,Pu(t,r,e,n),t=Ou(null,t,r,!0,s,n)):(t.tag=0,ie&&s&&zc(t),Ue(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(vo(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=HS(r),e=wt(r,e),i){case 0:t=Nu(null,t,r,e,n);break e;case 1:t=yp(null,t,r,e,n);break e;case 11:t=mp(null,t,r,e,n);break e;case 14:t=gp(null,t,r,wt(r.type,e),n);break e}throw Error(R(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:wt(r,i),Nu(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:wt(r,i),yp(e,t,r,i,n);case 3:e:{if(fy(t),e===null)throw Error(R(387));r=t.pendingProps,s=t.memoizedState,i=s.element,Vg(e,t),zo(t,r,null,n);var o=t.memoizedState;if(r=o.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){i=Jr(Error(R(423)),t),t=vp(e,t,r,n,i);break e}else if(r!==i){i=Jr(Error(R(424)),t),t=vp(e,t,r,n,i);break e}else for(nt=jn(t.stateNode.containerInfo.firstChild),rt=t,ie=!0,Ct=null,n=_g(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Qr(),r===i){t=tn(e,t,n);break e}Ue(e,t,r,n)}t=t.child}return t;case 5:return Bg(t),e===null&&Tu(t),r=t.type,i=t.pendingProps,s=e!==null?e.memoizedProps:null,o=i.children,xu(r,i)?o=null:s!==null&&xu(r,s)&&(t.flags|=32),dy(e,t),Ue(e,t,o,n),t.child;case 6:return e===null&&Tu(t),null;case 13:return py(e,t,n);case 4:return qc(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Xr(t,null,r,n):Ue(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:wt(r,i),mp(e,t,r,i,n);case 7:return Ue(e,t,t.pendingProps,n),t.child;case 8:return Ue(e,t,t.pendingProps.children,n),t.child;case 12:return Ue(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,s=t.memoizedProps,o=i.value,J($o,r._currentValue),r._currentValue=o,s!==null)if(Rt(s.value,o)){if(s.children===i.children&&!Xe.current){t=tn(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var a=s.dependencies;if(a!==null){o=s.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(s.tag===1){l=Gt(-1,n&-n),l.tag=2;var u=s.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),ku(s.return,n,t),a.lanes|=n;break}l=l.next}}else if(s.tag===10)o=s.type===t.type?null:s.child;else if(s.tag===18){if(o=s.return,o===null)throw Error(R(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),ku(o,n,t),o=s.sibling}else o=s.child;if(o!==null)o.return=s;else for(o=s;o!==null;){if(o===t){o=null;break}if(s=o.sibling,s!==null){s.return=o.return,o=s;break}o=o.return}s=o}Ue(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Wr(t,n),i=yt(i),r=r(i),t.flags|=1,Ue(e,t,r,n),t.child;case 14:return r=t.type,i=wt(r,t.pendingProps),i=wt(r.type,i),gp(e,t,r,i,n);case 15:return uy(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:wt(r,i),vo(e,t),t.tag=1,qe(r)?(e=!0,Fo(t)):e=!1,Wr(t,n),oy(t,r,i),Pu(t,r,i,n),Ou(null,t,r,!0,e,n);case 19:return hy(e,t,n);case 22:return cy(e,t,n)}throw Error(R(156,t.tag))};function Oy(e,t){return rg(e,t)}function zS(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ht(e,t,n,r){return new zS(e,t,n,r)}function fd(e){return e=e.prototype,!(!e||!e.isReactComponent)}function HS(e){if(typeof e=="function")return fd(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Lc)return 11;if(e===Ac)return 14}return 2}function On(e,t){var n=e.alternate;return n===null?(n=ht(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function So(e,t,n,r,i,s){var o=2;if(r=e,typeof e=="function")fd(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case kr:return er(n.children,i,s,t);case Oc:o=8,i|=8;break;case ql:return e=ht(12,n,t,i|2),e.elementType=ql,e.lanes=s,e;case Jl:return e=ht(13,n,t,i),e.elementType=Jl,e.lanes=s,e;case Zl:return e=ht(19,n,t,i),e.elementType=Zl,e.lanes=s,e;case Bm:return ka(n,i,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Fm:o=10;break e;case Vm:o=9;break e;case Lc:o=11;break e;case Ac:o=14;break e;case hn:o=16,r=null;break e}throw Error(R(130,e==null?e:typeof e,""))}return t=ht(o,n,t,i),t.elementType=e,t.type=r,t.lanes=s,t}function er(e,t,n,r){return e=ht(7,e,r,t),e.lanes=n,e}function ka(e,t,n,r){return e=ht(22,e,r,t),e.elementType=Bm,e.lanes=n,e.stateNode={isHidden:!1},e}function Cl(e,t,n){return e=ht(6,e,null,t),e.lanes=n,e}function El(e,t,n){return t=ht(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function WS(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=rl(0),this.expirationTimes=rl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=rl(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function pd(e,t,n,r,i,s,o,a,l){return e=new WS(e,t,n,a,l),t===1?(t=1,s===!0&&(t|=8)):t=0,s=ht(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Xc(s),e}function KS(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(My)}catch(e){console.error(e)}}My(),Mm.exports=ot;var Dy=Mm.exports;const Ir=pa(Dy);var Op=Dy;Ql.createRoot=Op.createRoot,Ql.hydrateRoot=Op.hydrateRoot;/** +`+s.stack}return{value:e,source:t,stack:i,digest:null}}function wl(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Ru(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var jS=typeof WeakMap=="function"?WeakMap:Map;function ay(e,t,n){n=Gt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Yo||(Yo=!0,Fu=r),Ru(e,t)},n}function ly(e,t,n){n=Gt(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){Ru(e,t)}}var s=e.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(n.callback=function(){Ru(e,t),typeof r!="function"&&(Rn===null?Rn=new Set([this]):Rn.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function fp(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new jS;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=BS.bind(null,e,t,n),t.then(e,e))}function pp(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function hp(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Gt(-1,1),t.tag=2,Pn(n,t,1))),n.lanes|=1),e)}var PS=sn.ReactCurrentOwner,Qe=!1;function Ue(e,t,n,r){t.child=e===null?Ig(t,null,n,r):Xr(t,e.child,n,r)}function mp(e,t,n,r,i){n=n.render;var s=t.ref;return Wr(t,i),r=td(e,t,n,r,s,i),n=nd(),e!==null&&!Qe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,tn(e,t,i)):(ie&&n&&zc(t),t.flags|=1,Ue(e,t,r,i),t.child)}function gp(e,t,n,r,i){if(e===null){var s=n.type;return typeof s=="function"&&!fd(s)&&s.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=s,uy(e,t,s,r,i)):(e=So(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!(e.lanes&i)){var o=s.memoizedProps;if(n=n.compare,n=n!==null?n:ss,n(o,r)&&e.ref===t.ref)return tn(e,t,i)}return t.flags|=1,e=On(s,r),e.ref=t.ref,e.return=t,t.child=e}function uy(e,t,n,r,i){if(e!==null){var s=e.memoizedProps;if(ss(s,r)&&e.ref===t.ref)if(Qe=!1,t.pendingProps=r=s,(e.lanes&i)!==0)e.flags&131072&&(Qe=!0);else return t.lanes=e.lanes,tn(e,t,i)}return Nu(e,t,n,r,i)}function cy(e,t,n){var r=t.pendingProps,i=r.children,s=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},J(Mr,tt),tt|=n;else{if(!(n&1073741824))return e=s!==null?s.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,J(Mr,tt),tt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=s!==null?s.baseLanes:n,J(Mr,tt),tt|=r}else s!==null?(r=s.baseLanes|n,t.memoizedState=null):r=n,J(Mr,tt),tt|=r;return Ue(e,t,i,n),t.child}function dy(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Nu(e,t,n,r,i){var s=qe(n)?ir:Fe.current;return s=Yr(t,s),Wr(t,i),n=td(e,t,n,r,s,i),r=nd(),e!==null&&!Qe?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,tn(e,t,i)):(ie&&r&&zc(t),t.flags|=1,Ue(e,t,n,i),t.child)}function yp(e,t,n,r,i){if(qe(n)){var s=!0;Fo(t)}else s=!1;if(Wr(t,i),t.stateNode===null)vo(e,t),oy(t,n,r),Pu(t,n,r,i),r=!0;else if(e===null){var o=t.stateNode,a=t.memoizedProps;o.props=a;var l=o.context,u=n.contextType;typeof u=="object"&&u!==null?u=yt(u):(u=qe(n)?ir:Fe.current,u=Yr(t,u));var c=n.getDerivedStateFromProps,d=typeof c=="function"||typeof o.getSnapshotBeforeUpdate=="function";d||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==r||l!==u)&&dp(t,o,r,u),mn=!1;var p=t.memoizedState;o.state=p,zo(t,r,o,i),l=t.memoizedState,a!==r||p!==l||Xe.current||mn?(typeof c=="function"&&(ju(t,n,c,r),l=t.memoizedState),(a=mn||cp(t,n,a,r,p,l,u))?(d||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),o.props=r,o.state=l,o.context=u,r=a):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,Vg(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:wt(t.type,a),o.props=u,d=t.pendingProps,p=o.context,l=n.contextType,typeof l=="object"&&l!==null?l=yt(l):(l=qe(n)?ir:Fe.current,l=Yr(t,l));var v=n.getDerivedStateFromProps;(c=typeof v=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==d||p!==l)&&dp(t,o,r,l),mn=!1,p=t.memoizedState,o.state=p,zo(t,r,o,i);var y=t.memoizedState;a!==d||p!==y||Xe.current||mn?(typeof v=="function"&&(ju(t,n,v,r),y=t.memoizedState),(u=mn||cp(t,n,u,r,p,y,l)||!1)?(c||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,y,l),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,y,l)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=y),o.props=r,o.state=y,o.context=l,r=u):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return Ou(e,t,n,r,s,i)}function Ou(e,t,n,r,i,s){dy(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return i&&np(t,n,!1),tn(e,t,s);r=t.stateNode,PS.current=t;var a=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=Xr(t,e.child,null,s),t.child=Xr(t,null,a,s)):Ue(e,t,a,s),t.memoizedState=r.state,i&&np(t,n,!0),t.child}function fy(e){var t=e.stateNode;t.pendingContext?tp(e,t.pendingContext,t.pendingContext!==t.context):t.context&&tp(e,t.context,!1),qc(e,t.containerInfo)}function vp(e,t,n,r,i){return Qr(),Wc(i),t.flags|=256,Ue(e,t,n,r),t.child}var Lu={dehydrated:null,treeContext:null,retryLane:0};function Au(e){return{baseLanes:e,cachePool:null,transitions:null}}function py(e,t,n){var r=t.pendingProps,i=se.current,s=!1,o=(t.flags&128)!==0,a;if((a=o)||(a=e!==null&&e.memoizedState===null?!1:(i&2)!==0),a?(s=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),J(se,i&1),e===null)return Tu(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=r.children,e=r.fallback,s?(r=t.mode,s=t.child,o={mode:"hidden",children:o},!(r&1)&&s!==null?(s.childLanes=0,s.pendingProps=o):s=ka(o,r,0,null),e=er(e,r,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Au(n),t.memoizedState=Lu,e):sd(t,o));if(i=e.memoizedState,i!==null&&(a=i.dehydrated,a!==null))return RS(e,t,o,r,a,i,n);if(s){s=r.fallback,o=t.mode,i=e.child,a=i.sibling;var l={mode:"hidden",children:r.children};return!(o&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=On(i,l),r.subtreeFlags=i.subtreeFlags&14680064),a!==null?s=On(a,s):(s=er(s,o,n,null),s.flags|=2),s.return=t,r.return=t,r.sibling=s,t.child=r,r=s,s=t.child,o=e.child.memoizedState,o=o===null?Au(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},s.memoizedState=o,s.childLanes=e.childLanes&~n,t.memoizedState=Lu,r}return s=e.child,e=s.sibling,r=On(s,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function sd(e,t){return t=ka({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function eo(e,t,n,r){return r!==null&&Wc(r),Xr(t,e.child,null,n),e=sd(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function RS(e,t,n,r,i,s,o){if(n)return t.flags&256?(t.flags&=-257,r=wl(Error(R(422))),eo(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(s=r.fallback,i=t.mode,r=ka({mode:"visible",children:r.children},i,0,null),s=er(s,i,o,null),s.flags|=2,r.return=t,s.return=t,r.sibling=s,t.child=r,t.mode&1&&Xr(t,e.child,null,o),t.child.memoizedState=Au(o),t.memoizedState=Lu,s);if(!(t.mode&1))return eo(e,t,o,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var a=r.dgst;return r=a,s=Error(R(419)),r=wl(s,r,void 0),eo(e,t,o,r)}if(a=(o&e.childLanes)!==0,Qe||a){if(r=Te,r!==null){switch(o&-o){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|o)?0:i,i!==0&&i!==s.retryLane&&(s.retryLane=i,en(e,i),kt(r,e,i,-1))}return dd(),r=wl(Error(R(421))),eo(e,t,o,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=$S.bind(null,e),i._reactRetry=t,null):(e=s.treeContext,nt=jn(i.nextSibling),rt=t,ie=!0,Ct=null,e!==null&&(dt[ft++]=Ht,dt[ft++]=Wt,dt[ft++]=sr,Ht=e.id,Wt=e.overflow,sr=t),t=sd(t,r.children),t.flags|=4096,t)}function xp(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),ku(e.return,t,n)}function Sl(e,t,n,r,i){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=r,s.tail=n,s.tailMode=i)}function hy(e,t,n){var r=t.pendingProps,i=r.revealOrder,s=r.tail;if(Ue(e,t,r.children,n),r=se.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&xp(e,n,t);else if(e.tag===19)xp(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(J(se,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&Ho(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Sl(t,!1,i,n,s);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Ho(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Sl(t,!0,n,null,s);break;case"together":Sl(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function vo(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function tn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),ar|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(R(153));if(t.child!==null){for(e=t.child,n=On(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=On(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function NS(e,t,n){switch(t.tag){case 3:fy(t),Qr();break;case 5:Bg(t);break;case 1:qe(t.type)&&Fo(t);break;case 4:qc(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;J($o,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(J(se,se.current&1),t.flags|=128,null):n&t.child.childLanes?py(e,t,n):(J(se,se.current&1),e=tn(e,t,n),e!==null?e.sibling:null);J(se,se.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return hy(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),J(se,se.current),r)break;return null;case 22:case 23:return t.lanes=0,cy(e,t,n)}return tn(e,t,n)}var my,bu,gy,yy;my=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};bu=function(){};gy=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,qn(It.current);var s=null;switch(n){case"input":i=tu(e,i),r=tu(e,r),s=[];break;case"select":i=le({},i,{value:void 0}),r=le({},r,{value:void 0}),s=[];break;case"textarea":i=iu(e,i),r=iu(e,r),s=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=_o)}ou(n,r);var o;n=null;for(u in i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var a=i[u];for(o in a)a.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Ji.hasOwnProperty(u)?s||(s=[]):(s=s||[]).push(u,null));for(u in r){var l=r[u];if(a=i!=null?i[u]:void 0,r.hasOwnProperty(u)&&l!==a&&(l!=null||a!=null))if(u==="style")if(a){for(o in a)!a.hasOwnProperty(o)||l&&l.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in l)l.hasOwnProperty(o)&&a[o]!==l[o]&&(n||(n={}),n[o]=l[o])}else n||(s||(s=[]),s.push(u,n)),n=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(s=s||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(s=s||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Ji.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&Z("scroll",e),s||a===l||(s=[])):(s=s||[]).push(u,l))}n&&(s=s||[]).push("style",n);var u=s;(t.updateQueue=u)&&(t.flags|=4)}};yy=function(e,t,n,r){n!==r&&(t.flags|=4)};function ki(e,t){if(!ie)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function be(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function OS(e,t,n){var r=t.pendingProps;switch(Hc(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return be(t),null;case 1:return qe(t.type)&&Io(),be(t),null;case 3:return r=t.stateNode,qr(),ee(Xe),ee(Fe),Zc(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Js(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Ct!==null&&($u(Ct),Ct=null))),bu(e,t),be(t),null;case 5:Jc(t);var i=qn(cs.current);if(n=t.type,e!==null&&t.stateNode!=null)gy(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(R(166));return be(t),null}if(e=qn(It.current),Js(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[Mt]=t,r[ls]=s,e=(t.mode&1)!==0,n){case"dialog":Z("cancel",r),Z("close",r);break;case"iframe":case"object":case"embed":Z("load",r);break;case"video":case"audio":for(i=0;i<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[Mt]=t,e[ls]=r,my(e,t,!1,!1),t.stateNode=e;e:{switch(o=au(n,r),n){case"dialog":Z("cancel",e),Z("close",e),i=r;break;case"iframe":case"object":case"embed":Z("load",e),i=r;break;case"video":case"audio":for(i=0;iZr&&(t.flags|=128,r=!0,ki(s,!1),t.lanes=4194304)}else{if(!r)if(e=Ho(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),ki(s,!0),s.tail===null&&s.tailMode==="hidden"&&!o.alternate&&!ie)return be(t),null}else 2*fe()-s.renderingStartTime>Zr&&n!==1073741824&&(t.flags|=128,r=!0,ki(s,!1),t.lanes=4194304);s.isBackwards?(o.sibling=t.child,t.child=o):(n=s.last,n!==null?n.sibling=o:t.child=o,s.last=o)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=fe(),t.sibling=null,n=se.current,J(se,r?n&1|2:n&1),t):(be(t),null);case 22:case 23:return cd(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?tt&1073741824&&(be(t),t.subtreeFlags&6&&(t.flags|=8192)):be(t),null;case 24:return null;case 25:return null}throw Error(R(156,t.tag))}function LS(e,t){switch(Hc(t),t.tag){case 1:return qe(t.type)&&Io(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return qr(),ee(Xe),ee(Fe),Zc(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Jc(t),null;case 13:if(ee(se),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(R(340));Qr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ee(se),null;case 4:return qr(),null;case 10:return Yc(t.type._context),null;case 22:case 23:return cd(),null;case 24:return null;default:return null}}var to=!1,Me=!1,AS=typeof WeakSet=="function"?WeakSet:Set,L=null;function Dr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ue(e,t,r)}else n.current=null}function Du(e,t,n){try{n()}catch(r){ue(e,t,r)}}var wp=!1;function bS(e,t){if(yu=bo,e=Cg(),Uc(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var o=0,a=-1,l=-1,u=0,c=0,d=e,p=null;t:for(;;){for(var v;d!==n||i!==0&&d.nodeType!==3||(a=o+i),d!==s||r!==0&&d.nodeType!==3||(l=o+r),d.nodeType===3&&(o+=d.nodeValue.length),(v=d.firstChild)!==null;)p=d,d=v;for(;;){if(d===e)break t;if(p===n&&++u===i&&(a=o),p===s&&++c===r&&(l=o),(v=d.nextSibling)!==null)break;d=p,p=d.parentNode}d=v}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(vu={focusedElem:e,selectionRange:n},bo=!1,L=t;L!==null;)if(t=L,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,L=e;else for(;L!==null;){t=L;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var w=y.memoizedProps,S=y.memoizedState,x=t.stateNode,m=x.getSnapshotBeforeUpdate(t.elementType===t.type?w:wt(t.type,w),S);x.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var g=t.stateNode.containerInfo;g.nodeType===1?g.textContent="":g.nodeType===9&&g.documentElement&&g.removeChild(g.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(R(163))}}catch(C){ue(t,t.return,C)}if(e=t.sibling,e!==null){e.return=t.return,L=e;break}L=t.return}return y=wp,wp=!1,y}function Hi(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var s=i.destroy;i.destroy=void 0,s!==void 0&&Du(t,n,s)}i=i.next}while(i!==r)}}function Ea(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Mu(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function vy(e){var t=e.alternate;t!==null&&(e.alternate=null,vy(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Mt],delete t[ls],delete t[Su],delete t[mS],delete t[gS])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function xy(e){return e.tag===5||e.tag===3||e.tag===4}function Sp(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||xy(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function _u(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=_o));else if(r!==4&&(e=e.child,e!==null))for(_u(e,t,n),e=e.sibling;e!==null;)_u(e,t,n),e=e.sibling}function Iu(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Iu(e,t,n),e=e.sibling;e!==null;)Iu(e,t,n),e=e.sibling}var Pe=null,St=!1;function cn(e,t,n){for(n=n.child;n!==null;)wy(e,t,n),n=n.sibling}function wy(e,t,n){if(_t&&typeof _t.onCommitFiberUnmount=="function")try{_t.onCommitFiberUnmount(ma,n)}catch{}switch(n.tag){case 5:Me||Dr(n,t);case 6:var r=Pe,i=St;Pe=null,cn(e,t,n),Pe=r,St=i,Pe!==null&&(St?(e=Pe,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Pe.removeChild(n.stateNode));break;case 18:Pe!==null&&(St?(e=Pe,n=n.stateNode,e.nodeType===8?hl(e.parentNode,n):e.nodeType===1&&hl(e,n),rs(e)):hl(Pe,n.stateNode));break;case 4:r=Pe,i=St,Pe=n.stateNode.containerInfo,St=!0,cn(e,t,n),Pe=r,St=i;break;case 0:case 11:case 14:case 15:if(!Me&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var s=i,o=s.destroy;s=s.tag,o!==void 0&&(s&2||s&4)&&Du(n,t,o),i=i.next}while(i!==r)}cn(e,t,n);break;case 1:if(!Me&&(Dr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){ue(n,t,a)}cn(e,t,n);break;case 21:cn(e,t,n);break;case 22:n.mode&1?(Me=(r=Me)||n.memoizedState!==null,cn(e,t,n),Me=r):cn(e,t,n);break;default:cn(e,t,n)}}function Cp(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new AS),t.forEach(function(r){var i=US.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function xt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=o),r&=~s}if(r=i,r=fe()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*MS(r/1960))-r,10e?16:e,Sn===null)var r=!1;else{if(e=Sn,Sn=null,Qo=0,z&6)throw Error(R(331));var i=z;for(z|=4,L=e.current;L!==null;){var s=L,o=s.child;if(L.flags&16){var a=s.deletions;if(a!==null){for(var l=0;lfe()-ld?Zn(e,0):ad|=n),Je(e,t)}function Ry(e,t){t===0&&(e.mode&1?(t=Ks,Ks<<=1,!(Ks&130023424)&&(Ks=4194304)):t=1);var n=We();e=en(e,t),e!==null&&(Ts(e,t,n),Je(e,n))}function $S(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ry(e,n)}function US(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(R(314))}r!==null&&r.delete(t),Ry(e,n)}var Ny;Ny=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Xe.current)Qe=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Qe=!1,NS(e,t,n);Qe=!!(e.flags&131072)}else Qe=!1,ie&&t.flags&1048576&&bg(t,Bo,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;vo(e,t),e=t.pendingProps;var i=Yr(t,Fe.current);Wr(t,n),i=td(null,t,r,e,i,n);var s=nd();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,qe(r)?(s=!0,Fo(t)):s=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Xc(t),i.updater=Ca,t.stateNode=i,i._reactInternals=t,Pu(t,r,e,n),t=Ou(null,t,r,!0,s,n)):(t.tag=0,ie&&s&&zc(t),Ue(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(vo(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=HS(r),e=wt(r,e),i){case 0:t=Nu(null,t,r,e,n);break e;case 1:t=yp(null,t,r,e,n);break e;case 11:t=mp(null,t,r,e,n);break e;case 14:t=gp(null,t,r,wt(r.type,e),n);break e}throw Error(R(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:wt(r,i),Nu(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:wt(r,i),yp(e,t,r,i,n);case 3:e:{if(fy(t),e===null)throw Error(R(387));r=t.pendingProps,s=t.memoizedState,i=s.element,Vg(e,t),zo(t,r,null,n);var o=t.memoizedState;if(r=o.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){i=Jr(Error(R(423)),t),t=vp(e,t,r,n,i);break e}else if(r!==i){i=Jr(Error(R(424)),t),t=vp(e,t,r,n,i);break e}else for(nt=jn(t.stateNode.containerInfo.firstChild),rt=t,ie=!0,Ct=null,n=Ig(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Qr(),r===i){t=tn(e,t,n);break e}Ue(e,t,r,n)}t=t.child}return t;case 5:return Bg(t),e===null&&Tu(t),r=t.type,i=t.pendingProps,s=e!==null?e.memoizedProps:null,o=i.children,xu(r,i)?o=null:s!==null&&xu(r,s)&&(t.flags|=32),dy(e,t),Ue(e,t,o,n),t.child;case 6:return e===null&&Tu(t),null;case 13:return py(e,t,n);case 4:return qc(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Xr(t,null,r,n):Ue(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:wt(r,i),mp(e,t,r,i,n);case 7:return Ue(e,t,t.pendingProps,n),t.child;case 8:return Ue(e,t,t.pendingProps.children,n),t.child;case 12:return Ue(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,s=t.memoizedProps,o=i.value,J($o,r._currentValue),r._currentValue=o,s!==null)if(Rt(s.value,o)){if(s.children===i.children&&!Xe.current){t=tn(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var a=s.dependencies;if(a!==null){o=s.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(s.tag===1){l=Gt(-1,n&-n),l.tag=2;var u=s.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),ku(s.return,n,t),a.lanes|=n;break}l=l.next}}else if(s.tag===10)o=s.type===t.type?null:s.child;else if(s.tag===18){if(o=s.return,o===null)throw Error(R(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),ku(o,n,t),o=s.sibling}else o=s.child;if(o!==null)o.return=s;else for(o=s;o!==null;){if(o===t){o=null;break}if(s=o.sibling,s!==null){s.return=o.return,o=s;break}o=o.return}s=o}Ue(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Wr(t,n),i=yt(i),r=r(i),t.flags|=1,Ue(e,t,r,n),t.child;case 14:return r=t.type,i=wt(r,t.pendingProps),i=wt(r.type,i),gp(e,t,r,i,n);case 15:return uy(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:wt(r,i),vo(e,t),t.tag=1,qe(r)?(e=!0,Fo(t)):e=!1,Wr(t,n),oy(t,r,i),Pu(t,r,i,n),Ou(null,t,r,!0,e,n);case 19:return hy(e,t,n);case 22:return cy(e,t,n)}throw Error(R(156,t.tag))};function Oy(e,t){return rg(e,t)}function zS(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ht(e,t,n,r){return new zS(e,t,n,r)}function fd(e){return e=e.prototype,!(!e||!e.isReactComponent)}function HS(e){if(typeof e=="function")return fd(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Lc)return 11;if(e===Ac)return 14}return 2}function On(e,t){var n=e.alternate;return n===null?(n=ht(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function So(e,t,n,r,i,s){var o=2;if(r=e,typeof e=="function")fd(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case kr:return er(n.children,i,s,t);case Oc:o=8,i|=8;break;case ql:return e=ht(12,n,t,i|2),e.elementType=ql,e.lanes=s,e;case Jl:return e=ht(13,n,t,i),e.elementType=Jl,e.lanes=s,e;case Zl:return e=ht(19,n,t,i),e.elementType=Zl,e.lanes=s,e;case Bm:return ka(n,i,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Fm:o=10;break e;case Vm:o=9;break e;case Lc:o=11;break e;case Ac:o=14;break e;case hn:o=16,r=null;break e}throw Error(R(130,e==null?e:typeof e,""))}return t=ht(o,n,t,i),t.elementType=e,t.type=r,t.lanes=s,t}function er(e,t,n,r){return e=ht(7,e,r,t),e.lanes=n,e}function ka(e,t,n,r){return e=ht(22,e,r,t),e.elementType=Bm,e.lanes=n,e.stateNode={isHidden:!1},e}function Cl(e,t,n){return e=ht(6,e,null,t),e.lanes=n,e}function El(e,t,n){return t=ht(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function WS(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=rl(0),this.expirationTimes=rl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=rl(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function pd(e,t,n,r,i,s,o,a,l){return e=new WS(e,t,n,a,l),t===1?(t=1,s===!0&&(t|=8)):t=0,s=ht(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Xc(s),e}function KS(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Dy)}catch(e){console.error(e)}}Dy(),Dm.exports=ot;var My=Dm.exports;const _r=pa(My);var Op=My;Ql.createRoot=Op.createRoot,Ql.hydrateRoot=Op.hydrateRoot;/** * @remix-run/router v1.16.1 * * Copyright (c) Remix Software Inc. @@ -46,7 +46,7 @@ Error generating stack: `+s.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function ms(){return ms=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Iy(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function JS(){return Math.random().toString(36).substr(2,8)}function Ap(e,t){return{usr:e.state,key:e.key,idx:t}}function Uu(e,t,n,r){return n===void 0&&(n=null),ms({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?ai(t):t,{state:n,key:t&&t.key||r||JS()})}function Jo(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 ai(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function ZS(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:s=!1}=r,o=i.history,a=Cn.Pop,l=null,u=c();u==null&&(u=0,o.replaceState(ms({},o.state,{idx:u}),""));function c(){return(o.state||{idx:null}).idx}function d(){a=Cn.Pop;let S=c(),x=S==null?null:S-u;u=S,l&&l({action:a,location:w.location,delta:x})}function p(S,x){a=Cn.Push;let m=Uu(w.location,S,x);u=c()+1;let g=Ap(m,u),C=w.createHref(m);try{o.pushState(g,"",C)}catch(T){if(T instanceof DOMException&&T.name==="DataCloneError")throw T;i.location.assign(C)}s&&l&&l({action:a,location:w.location,delta:1})}function v(S,x){a=Cn.Replace;let m=Uu(w.location,S,x);u=c();let g=Ap(m,u),C=w.createHref(m);o.replaceState(g,"",C),s&&l&&l({action:a,location:w.location,delta:0})}function y(S){let x=i.location.origin!=="null"?i.location.origin:i.location.href,m=typeof S=="string"?S:Jo(S);return m=m.replace(/ $/,"%20"),pe(x,"No window.location.(origin|href) available to create URL for href: "+m),new URL(m,x)}let w={get action(){return a},get location(){return e(i,o)},listen(S){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(Lp,d),l=S,()=>{i.removeEventListener(Lp,d),l=null}},createHref(S){return t(i,S)},createURL:y,encodeLocation(S){let x=y(S);return{pathname:x.pathname,search:x.search,hash:x.hash}},push:p,replace:v,go(S){return o.go(S)}};return w}var bp;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(bp||(bp={}));function eC(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?ai(t):t,i=yd(r.pathname||"/",n);if(i==null)return null;let s=_y(e);tC(s);let o=null;for(let a=0;o==null&&a{let l={relativePath:a===void 0?s.path||"":a,caseSensitive:s.caseSensitive===!0,childrenIndex:o,route:s};l.relativePath.startsWith("/")&&(pe(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let u=Ln([r,l.relativePath]),c=n.concat(l);s.children&&s.children.length>0&&(pe(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),_y(s.children,t,c,u)),!(s.path==null&&!s.index)&&t.push({path:u,score:lC(u,s.index),routesMeta:c})};return e.forEach((s,o)=>{var a;if(s.path===""||!((a=s.path)!=null&&a.includes("?")))i(s,o);else for(let l of Fy(s.path))i(s,o,l)}),t}function Fy(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),s=n.replace(/\?$/,"");if(r.length===0)return i?[s,""]:[s];let o=Fy(r.join("/")),a=[];return a.push(...o.map(l=>l===""?s:[s,l].join("/"))),i&&a.push(...o),a.map(l=>e.startsWith("/")&&l===""?"/":l)}function tC(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:uC(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const nC=/^:[\w-]+$/,rC=3,iC=2,sC=1,oC=10,aC=-2,Mp=e=>e==="*";function lC(e,t){let n=e.split("/"),r=n.length;return n.some(Mp)&&(r+=aC),t&&(r+=iC),n.filter(i=>!Mp(i)).reduce((i,s)=>i+(nC.test(s)?rC:s===""?sC:oC),r)}function uC(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function cC(e,t){let{routesMeta:n}=e,r={},i="/",s=[];for(let o=0;o{let{paramName:p,isOptional:v}=c;if(p==="*"){let w=a[d]||"";o=s.slice(0,s.length-w.length).replace(/(.)\/+$/,"$1")}const y=a[d];return v&&!y?u[p]=void 0:u[p]=(y||"").replace(/%2F/g,"/"),u},{}),pathname:s,pathnameBase:o,pattern:e}}function fC(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Iy(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=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,a,l)=>(r.push({paramName:a,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function pC(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Iy(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function yd(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function hC(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?ai(e):e;return{pathname:n?n.startsWith("/")?n:mC(n,t):t,search:vC(r),hash:xC(i)}}function mC(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function Tl(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 and the router will parse it for you.'}function gC(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function vd(e,t){let n=gC(e);return t?n.map((r,i)=>i===e.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function xd(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=ai(e):(i=ms({},e),pe(!i.pathname||!i.pathname.includes("?"),Tl("?","pathname","search",i)),pe(!i.pathname||!i.pathname.includes("#"),Tl("#","pathname","hash",i)),pe(!i.search||!i.search.includes("#"),Tl("#","search","hash",i)));let s=e===""||i.pathname==="",o=s?"/":i.pathname,a;if(o==null)a=n;else{let d=t.length-1;if(!r&&o.startsWith("..")){let p=o.split("/");for(;p[0]==="..";)p.shift(),d-=1;i.pathname=p.join("/")}a=d>=0?t[d]:"/"}let l=hC(i,a),u=o&&o!=="/"&&o.endsWith("/"),c=(s||o===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}const Ln=e=>e.join("/").replace(/\/\/+/g,"/"),yC=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),vC=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,xC=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function wC(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Vy=["post","put","patch","delete"];new Set(Vy);const SC=["get",...Vy];new Set(SC);/** + */function ms(){return ms=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function _y(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function JS(){return Math.random().toString(36).substr(2,8)}function Ap(e,t){return{usr:e.state,key:e.key,idx:t}}function Uu(e,t,n,r){return n===void 0&&(n=null),ms({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?ai(t):t,{state:n,key:t&&t.key||r||JS()})}function Jo(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 ai(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function ZS(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:s=!1}=r,o=i.history,a=Cn.Pop,l=null,u=c();u==null&&(u=0,o.replaceState(ms({},o.state,{idx:u}),""));function c(){return(o.state||{idx:null}).idx}function d(){a=Cn.Pop;let S=c(),x=S==null?null:S-u;u=S,l&&l({action:a,location:w.location,delta:x})}function p(S,x){a=Cn.Push;let m=Uu(w.location,S,x);u=c()+1;let g=Ap(m,u),C=w.createHref(m);try{o.pushState(g,"",C)}catch(T){if(T instanceof DOMException&&T.name==="DataCloneError")throw T;i.location.assign(C)}s&&l&&l({action:a,location:w.location,delta:1})}function v(S,x){a=Cn.Replace;let m=Uu(w.location,S,x);u=c();let g=Ap(m,u),C=w.createHref(m);o.replaceState(g,"",C),s&&l&&l({action:a,location:w.location,delta:0})}function y(S){let x=i.location.origin!=="null"?i.location.origin:i.location.href,m=typeof S=="string"?S:Jo(S);return m=m.replace(/ $/,"%20"),pe(x,"No window.location.(origin|href) available to create URL for href: "+m),new URL(m,x)}let w={get action(){return a},get location(){return e(i,o)},listen(S){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(Lp,d),l=S,()=>{i.removeEventListener(Lp,d),l=null}},createHref(S){return t(i,S)},createURL:y,encodeLocation(S){let x=y(S);return{pathname:x.pathname,search:x.search,hash:x.hash}},push:p,replace:v,go(S){return o.go(S)}};return w}var bp;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(bp||(bp={}));function eC(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?ai(t):t,i=yd(r.pathname||"/",n);if(i==null)return null;let s=Iy(e);tC(s);let o=null;for(let a=0;o==null&&a{let l={relativePath:a===void 0?s.path||"":a,caseSensitive:s.caseSensitive===!0,childrenIndex:o,route:s};l.relativePath.startsWith("/")&&(pe(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let u=Ln([r,l.relativePath]),c=n.concat(l);s.children&&s.children.length>0&&(pe(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),Iy(s.children,t,c,u)),!(s.path==null&&!s.index)&&t.push({path:u,score:lC(u,s.index),routesMeta:c})};return e.forEach((s,o)=>{var a;if(s.path===""||!((a=s.path)!=null&&a.includes("?")))i(s,o);else for(let l of Fy(s.path))i(s,o,l)}),t}function Fy(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),s=n.replace(/\?$/,"");if(r.length===0)return i?[s,""]:[s];let o=Fy(r.join("/")),a=[];return a.push(...o.map(l=>l===""?s:[s,l].join("/"))),i&&a.push(...o),a.map(l=>e.startsWith("/")&&l===""?"/":l)}function tC(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:uC(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const nC=/^:[\w-]+$/,rC=3,iC=2,sC=1,oC=10,aC=-2,Dp=e=>e==="*";function lC(e,t){let n=e.split("/"),r=n.length;return n.some(Dp)&&(r+=aC),t&&(r+=iC),n.filter(i=>!Dp(i)).reduce((i,s)=>i+(nC.test(s)?rC:s===""?sC:oC),r)}function uC(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function cC(e,t){let{routesMeta:n}=e,r={},i="/",s=[];for(let o=0;o{let{paramName:p,isOptional:v}=c;if(p==="*"){let w=a[d]||"";o=s.slice(0,s.length-w.length).replace(/(.)\/+$/,"$1")}const y=a[d];return v&&!y?u[p]=void 0:u[p]=(y||"").replace(/%2F/g,"/"),u},{}),pathname:s,pathnameBase:o,pattern:e}}function fC(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),_y(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=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,a,l)=>(r.push({paramName:a,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function pC(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return _y(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function yd(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function hC(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?ai(e):e;return{pathname:n?n.startsWith("/")?n:mC(n,t):t,search:vC(r),hash:xC(i)}}function mC(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function Tl(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 and the router will parse it for you.'}function gC(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function vd(e,t){let n=gC(e);return t?n.map((r,i)=>i===e.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function xd(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=ai(e):(i=ms({},e),pe(!i.pathname||!i.pathname.includes("?"),Tl("?","pathname","search",i)),pe(!i.pathname||!i.pathname.includes("#"),Tl("#","pathname","hash",i)),pe(!i.search||!i.search.includes("#"),Tl("#","search","hash",i)));let s=e===""||i.pathname==="",o=s?"/":i.pathname,a;if(o==null)a=n;else{let d=t.length-1;if(!r&&o.startsWith("..")){let p=o.split("/");for(;p[0]==="..";)p.shift(),d-=1;i.pathname=p.join("/")}a=d>=0?t[d]:"/"}let l=hC(i,a),u=o&&o!=="/"&&o.endsWith("/"),c=(s||o===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}const Ln=e=>e.join("/").replace(/\/\/+/g,"/"),yC=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),vC=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,xC=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function wC(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Vy=["post","put","patch","delete"];new Set(Vy);const SC=["get",...Vy];new Set(SC);/** * React Router v6.23.1 * * Copyright (c) Remix Software Inc. @@ -55,7 +55,7 @@ Error generating stack: `+s.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function gs(){return gs=Object.assign?Object.assign.bind():function(e){for(var t=1;t{a.current=!0}),h.useCallback(function(u,c){if(c===void 0&&(c={}),!a.current)return;if(typeof u=="number"){r.go(u);return}let d=xd(u,JSON.parse(o),s,c.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:Ln([t,d.pathname])),(c.replace?r.replace:r.push)(d,c.state,c)},[t,r,o,s,e])}function La(){let{matches:e}=h.useContext(on),t=e[e.length-1];return t?t.params:{}}function Uy(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=h.useContext($n),{matches:i}=h.useContext(on),{pathname:s}=Rs(),o=JSON.stringify(vd(i,r.v7_relativeSplatPath));return h.useMemo(()=>xd(e,JSON.parse(o),s,n==="path"),[e,o,s,n])}function kC(e,t){return jC(e,t)}function jC(e,t,n,r){li()||pe(!1);let{navigator:i}=h.useContext($n),{matches:s}=h.useContext(on),o=s[s.length-1],a=o?o.params:{};o&&o.pathname;let l=o?o.pathnameBase:"/";o&&o.route;let u=Rs(),c;if(t){var d;let S=typeof t=="string"?ai(t):t;l==="/"||(d=S.pathname)!=null&&d.startsWith(l)||pe(!1),c=S}else c=u;let p=c.pathname||"/",v=p;if(l!=="/"){let S=l.replace(/^\//,"").split("/");v="/"+p.replace(/^\//,"").split("/").slice(S.length).join("/")}let y=eC(e,{pathname:v}),w=LC(y&&y.map(S=>Object.assign({},S,{params:Object.assign({},a,S.params),pathname:Ln([l,i.encodeLocation?i.encodeLocation(S.pathname).pathname:S.pathname]),pathnameBase:S.pathnameBase==="/"?l:Ln([l,i.encodeLocation?i.encodeLocation(S.pathnameBase).pathname:S.pathnameBase])})),s,n,r);return t&&w?h.createElement(Oa.Provider,{value:{location:gs({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:Cn.Pop}},w):w}function PC(){let e=DC(),t=wC(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return h.createElement(h.Fragment,null,h.createElement("h2",null,"Unexpected Application Error!"),h.createElement("h3",{style:{fontStyle:"italic"}},t),n?h.createElement("pre",{style:i},n):null,null)}const RC=h.createElement(PC,null);class NC extends h.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?h.createElement(on.Provider,{value:this.props.routeContext},h.createElement(By.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function OC(e){let{routeContext:t,match:n,children:r}=e,i=h.useContext(wd);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),h.createElement(on.Provider,{value:t},r)}function LC(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var s;if((s=n)!=null&&s.errors)e=n.matches;else return null}let o=e,a=(i=n)==null?void 0:i.errors;if(a!=null){let c=o.findIndex(d=>d.route.id&&(a==null?void 0:a[d.route.id])!==void 0);c>=0||pe(!1),o=o.slice(0,Math.min(o.length,c+1))}let l=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let c=0;c=0?o=o.slice(0,u+1):o=[o[0]];break}}}return o.reduceRight((c,d,p)=>{let v,y=!1,w=null,S=null;n&&(v=a&&d.route.id?a[d.route.id]:void 0,w=d.route.errorElement||RC,l&&(u<0&&p===0?(y=!0,S=null):u===p&&(y=!0,S=d.route.hydrateFallbackElement||null)));let x=t.concat(o.slice(0,p+1)),m=()=>{let g;return v?g=w:y?g=S:d.route.Component?g=h.createElement(d.route.Component,null):d.route.element?g=d.route.element:g=c,h.createElement(OC,{match:d,routeContext:{outlet:c,matches:x,isDataRoute:n!=null},children:g})};return n&&(d.route.ErrorBoundary||d.route.errorElement||p===0)?h.createElement(NC,{location:n.location,revalidation:n.revalidation,component:w,error:v,children:m(),routeContext:{outlet:null,matches:x,isDataRoute:!0}}):m()},null)}var zy=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(zy||{}),Zo=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Zo||{});function AC(e){let t=h.useContext(wd);return t||pe(!1),t}function bC(e){let t=h.useContext(CC);return t||pe(!1),t}function MC(e){let t=h.useContext(on);return t||pe(!1),t}function Hy(e){let t=MC(),n=t.matches[t.matches.length-1];return n.route.id||pe(!1),n.route.id}function DC(){var e;let t=h.useContext(By),n=bC(Zo.UseRouteError),r=Hy(Zo.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function IC(){let{router:e}=AC(zy.UseNavigateStable),t=Hy(Zo.UseNavigateStable),n=h.useRef(!1);return $y(()=>{n.current=!0}),h.useCallback(function(i,s){s===void 0&&(s={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,gs({fromRouteId:t},s)))},[e,t])}function Wy(e){let{to:t,replace:n,state:r,relative:i}=e;li()||pe(!1);let{future:s,static:o}=h.useContext($n),{matches:a}=h.useContext(on),{pathname:l}=Rs(),u=ui(),c=xd(t,vd(a,s.v7_relativeSplatPath),l,i==="path"),d=JSON.stringify(c);return h.useEffect(()=>u(JSON.parse(d),{replace:n,state:r,relative:i}),[u,d,i,n,r]),null}function fn(e){pe(!1)}function _C(e){let{basename:t="/",children:n=null,location:r,navigationType:i=Cn.Pop,navigator:s,static:o=!1,future:a}=e;li()&&pe(!1);let l=t.replace(/^\/*/,"/"),u=h.useMemo(()=>({basename:l,navigator:s,static:o,future:gs({v7_relativeSplatPath:!1},a)}),[l,a,s,o]);typeof r=="string"&&(r=ai(r));let{pathname:c="/",search:d="",hash:p="",state:v=null,key:y="default"}=r,w=h.useMemo(()=>{let S=yd(c,l);return S==null?null:{location:{pathname:S,search:d,hash:p,state:v,key:y},navigationType:i}},[l,c,d,p,v,y,i]);return w==null?null:h.createElement($n.Provider,{value:u},h.createElement(Oa.Provider,{children:n,value:w}))}function FC(e){let{children:t,location:n}=e;return kC(zu(t),n)}new Promise(()=>{});function zu(e,t){t===void 0&&(t=[]);let n=[];return h.Children.forEach(e,(r,i)=>{if(!h.isValidElement(r))return;let s=[...t,i];if(r.type===h.Fragment){n.push.apply(n,zu(r.props.children,s));return}r.type!==fn&&pe(!1),!r.props.index||!r.props.children||pe(!1);let o={id:r.props.id||s.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(o.children=zu(r.props.children,s)),n.push(o)}),n}/** + */function gs(){return gs=Object.assign?Object.assign.bind():function(e){for(var t=1;t{a.current=!0}),h.useCallback(function(u,c){if(c===void 0&&(c={}),!a.current)return;if(typeof u=="number"){r.go(u);return}let d=xd(u,JSON.parse(o),s,c.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:Ln([t,d.pathname])),(c.replace?r.replace:r.push)(d,c.state,c)},[t,r,o,s,e])}function La(){let{matches:e}=h.useContext(on),t=e[e.length-1];return t?t.params:{}}function Uy(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=h.useContext($n),{matches:i}=h.useContext(on),{pathname:s}=Rs(),o=JSON.stringify(vd(i,r.v7_relativeSplatPath));return h.useMemo(()=>xd(e,JSON.parse(o),s,n==="path"),[e,o,s,n])}function kC(e,t){return jC(e,t)}function jC(e,t,n,r){li()||pe(!1);let{navigator:i}=h.useContext($n),{matches:s}=h.useContext(on),o=s[s.length-1],a=o?o.params:{};o&&o.pathname;let l=o?o.pathnameBase:"/";o&&o.route;let u=Rs(),c;if(t){var d;let S=typeof t=="string"?ai(t):t;l==="/"||(d=S.pathname)!=null&&d.startsWith(l)||pe(!1),c=S}else c=u;let p=c.pathname||"/",v=p;if(l!=="/"){let S=l.replace(/^\//,"").split("/");v="/"+p.replace(/^\//,"").split("/").slice(S.length).join("/")}let y=eC(e,{pathname:v}),w=LC(y&&y.map(S=>Object.assign({},S,{params:Object.assign({},a,S.params),pathname:Ln([l,i.encodeLocation?i.encodeLocation(S.pathname).pathname:S.pathname]),pathnameBase:S.pathnameBase==="/"?l:Ln([l,i.encodeLocation?i.encodeLocation(S.pathnameBase).pathname:S.pathnameBase])})),s,n,r);return t&&w?h.createElement(Oa.Provider,{value:{location:gs({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:Cn.Pop}},w):w}function PC(){let e=MC(),t=wC(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return h.createElement(h.Fragment,null,h.createElement("h2",null,"Unexpected Application Error!"),h.createElement("h3",{style:{fontStyle:"italic"}},t),n?h.createElement("pre",{style:i},n):null,null)}const RC=h.createElement(PC,null);class NC extends h.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?h.createElement(on.Provider,{value:this.props.routeContext},h.createElement(By.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function OC(e){let{routeContext:t,match:n,children:r}=e,i=h.useContext(wd);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),h.createElement(on.Provider,{value:t},r)}function LC(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var s;if((s=n)!=null&&s.errors)e=n.matches;else return null}let o=e,a=(i=n)==null?void 0:i.errors;if(a!=null){let c=o.findIndex(d=>d.route.id&&(a==null?void 0:a[d.route.id])!==void 0);c>=0||pe(!1),o=o.slice(0,Math.min(o.length,c+1))}let l=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let c=0;c=0?o=o.slice(0,u+1):o=[o[0]];break}}}return o.reduceRight((c,d,p)=>{let v,y=!1,w=null,S=null;n&&(v=a&&d.route.id?a[d.route.id]:void 0,w=d.route.errorElement||RC,l&&(u<0&&p===0?(y=!0,S=null):u===p&&(y=!0,S=d.route.hydrateFallbackElement||null)));let x=t.concat(o.slice(0,p+1)),m=()=>{let g;return v?g=w:y?g=S:d.route.Component?g=h.createElement(d.route.Component,null):d.route.element?g=d.route.element:g=c,h.createElement(OC,{match:d,routeContext:{outlet:c,matches:x,isDataRoute:n!=null},children:g})};return n&&(d.route.ErrorBoundary||d.route.errorElement||p===0)?h.createElement(NC,{location:n.location,revalidation:n.revalidation,component:w,error:v,children:m(),routeContext:{outlet:null,matches:x,isDataRoute:!0}}):m()},null)}var zy=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(zy||{}),Zo=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Zo||{});function AC(e){let t=h.useContext(wd);return t||pe(!1),t}function bC(e){let t=h.useContext(CC);return t||pe(!1),t}function DC(e){let t=h.useContext(on);return t||pe(!1),t}function Hy(e){let t=DC(),n=t.matches[t.matches.length-1];return n.route.id||pe(!1),n.route.id}function MC(){var e;let t=h.useContext(By),n=bC(Zo.UseRouteError),r=Hy(Zo.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function _C(){let{router:e}=AC(zy.UseNavigateStable),t=Hy(Zo.UseNavigateStable),n=h.useRef(!1);return $y(()=>{n.current=!0}),h.useCallback(function(i,s){s===void 0&&(s={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,gs({fromRouteId:t},s)))},[e,t])}function Wy(e){let{to:t,replace:n,state:r,relative:i}=e;li()||pe(!1);let{future:s,static:o}=h.useContext($n),{matches:a}=h.useContext(on),{pathname:l}=Rs(),u=ui(),c=xd(t,vd(a,s.v7_relativeSplatPath),l,i==="path"),d=JSON.stringify(c);return h.useEffect(()=>u(JSON.parse(d),{replace:n,state:r,relative:i}),[u,d,i,n,r]),null}function fn(e){pe(!1)}function IC(e){let{basename:t="/",children:n=null,location:r,navigationType:i=Cn.Pop,navigator:s,static:o=!1,future:a}=e;li()&&pe(!1);let l=t.replace(/^\/*/,"/"),u=h.useMemo(()=>({basename:l,navigator:s,static:o,future:gs({v7_relativeSplatPath:!1},a)}),[l,a,s,o]);typeof r=="string"&&(r=ai(r));let{pathname:c="/",search:d="",hash:p="",state:v=null,key:y="default"}=r,w=h.useMemo(()=>{let S=yd(c,l);return S==null?null:{location:{pathname:S,search:d,hash:p,state:v,key:y},navigationType:i}},[l,c,d,p,v,y,i]);return w==null?null:h.createElement($n.Provider,{value:u},h.createElement(Oa.Provider,{children:n,value:w}))}function FC(e){let{children:t,location:n}=e;return kC(zu(t),n)}new Promise(()=>{});function zu(e,t){t===void 0&&(t=[]);let n=[];return h.Children.forEach(e,(r,i)=>{if(!h.isValidElement(r))return;let s=[...t,i];if(r.type===h.Fragment){n.push.apply(n,zu(r.props.children,s));return}r.type!==fn&&pe(!1),!r.props.index||!r.props.children||pe(!1);let o={id:r.props.id||s.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(o.children=zu(r.props.children,s)),n.push(o)}),n}/** * React Router DOM v6.23.1 * * Copyright (c) Remix Software Inc. @@ -64,13 +64,13 @@ Error generating stack: `+s.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function Hu(){return Hu=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}function BC(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function $C(e,t){return e.button===0&&(!t||t==="_self")&&!BC(e)}const UC=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],zC="6";try{window.__reactRouterVersion=zC}catch{}const HC="startTransition",Dp=Bw[HC];function WC(e){let{basename:t,children:n,future:r,window:i}=e,s=h.useRef();s.current==null&&(s.current=qS({window:i,v5Compat:!0}));let o=s.current,[a,l]=h.useState({action:o.action,location:o.location}),{v7_startTransition:u}=r||{},c=h.useCallback(d=>{u&&Dp?Dp(()=>l(d)):l(d)},[l,u]);return h.useLayoutEffect(()=>o.listen(c),[o,c]),h.createElement(_C,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:o,future:r})}const KC=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",GC=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Et=h.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:s,replace:o,state:a,target:l,to:u,preventScrollReset:c,unstable_viewTransition:d}=t,p=VC(t,UC),{basename:v}=h.useContext($n),y,w=!1;if(typeof u=="string"&&GC.test(u)&&(y=u,KC))try{let g=new URL(window.location.href),C=u.startsWith("//")?new URL(g.protocol+u):new URL(u),T=yd(C.pathname,v);C.origin===g.origin&&T!=null?u=T+C.search+C.hash:w=!0}catch{}let S=EC(u,{relative:i}),x=YC(u,{replace:o,state:a,target:l,preventScrollReset:c,relative:i,unstable_viewTransition:d});function m(g){r&&r(g),g.defaultPrevented||x(g)}return h.createElement("a",Hu({},p,{href:y||S,onClick:w||s?r:m,ref:n,target:l}))});var Ip;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Ip||(Ip={}));var _p;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(_p||(_p={}));function YC(e,t){let{target:n,replace:r,state:i,preventScrollReset:s,relative:o,unstable_viewTransition:a}=t===void 0?{}:t,l=ui(),u=Rs(),c=Uy(e,{relative:o});return h.useCallback(d=>{if($C(d,n)){d.preventDefault();let p=r!==void 0?r:Jo(u)===Jo(c);l(e,{replace:p,state:i,preventScrollReset:s,relative:o,unstable_viewTransition:a})}},[u,l,c,r,i,n,e,s,o,a])}var Ky={exports:{}},QC="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",XC=QC,qC=XC;function Gy(){}function Yy(){}Yy.resetWarningCache=Gy;var JC=function(){function e(r,i,s,o,a,l){if(l!==qC){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Yy,resetWarningCache:Gy};return n.PropTypes=n,n};Ky.exports=JC();var ZC=Ky.exports;const $=pa(ZC),eE=(e,t)=>{const[n,r]=h.useState(()=>{try{const s=window.localStorage.getItem(e);return s?JSON.parse(s):(window.localStorage.setItem(e,JSON.stringify(t)),t)}catch{return t}});return[n,s=>{try{window.localStorage.setItem(e,JSON.stringify(s))}catch(o){console.log(o.message)}r(s)}]};function Qy(e,t){return function(){return e.apply(t,arguments)}}const{toString:tE}=Object.prototype,{getPrototypeOf:Sd}=Object,Aa=(e=>t=>{const n=tE.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Ot=e=>(e=e.toLowerCase(),t=>Aa(t)===e),ba=e=>t=>typeof t===e,{isArray:ci}=Array,ys=ba("undefined");function nE(e){return e!==null&&!ys(e)&&e.constructor!==null&&!ys(e.constructor)&>(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Xy=Ot("ArrayBuffer");function rE(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Xy(e.buffer),t}const iE=ba("string"),gt=ba("function"),qy=ba("number"),Ma=e=>e!==null&&typeof e=="object",sE=e=>e===!0||e===!1,Co=e=>{if(Aa(e)!=="object")return!1;const t=Sd(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},oE=Ot("Date"),aE=Ot("File"),lE=Ot("Blob"),uE=Ot("FileList"),cE=e=>Ma(e)&>(e.pipe),dE=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||gt(e.append)&&((t=Aa(e))==="formdata"||t==="object"&>(e.toString)&&e.toString()==="[object FormData]"))},fE=Ot("URLSearchParams"),[pE,hE,mE,gE]=["ReadableStream","Request","Response","Headers"].map(Ot),yE=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ns(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),ci(e))for(r=0,i=e.length;r0;)if(i=n[r],t===i.toLowerCase())return i;return null}const Zy=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,ev=e=>!ys(e)&&e!==Zy;function Wu(){const{caseless:e}=ev(this)&&this||{},t={},n=(r,i)=>{const s=e&&Jy(t,i)||i;Co(t[s])&&Co(r)?t[s]=Wu(t[s],r):Co(r)?t[s]=Wu({},r):ci(r)?t[s]=r.slice():t[s]=r};for(let r=0,i=arguments.length;r(Ns(t,(i,s)=>{n&>(i)?e[s]=Qy(i,n):e[s]=i},{allOwnKeys:r}),e),xE=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),wE=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},SE=(e,t,n,r)=>{let i,s,o;const a={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),s=i.length;s-- >0;)o=i[s],(!r||r(o,e,t))&&!a[o]&&(t[o]=e[o],a[o]=!0);e=n!==!1&&Sd(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},CE=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},EE=e=>{if(!e)return null;if(ci(e))return e;let t=e.length;if(!qy(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},TE=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Sd(Uint8Array)),kE=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=r.next())&&!i.done;){const s=i.value;t.call(e,s[0],s[1])}},jE=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},PE=Ot("HTMLFormElement"),RE=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),Fp=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),NE=Ot("RegExp"),tv=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Ns(n,(i,s)=>{let o;(o=t(i,s,e))!==!1&&(r[s]=o||i)}),Object.defineProperties(e,r)},OE=e=>{tv(e,(t,n)=>{if(gt(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(gt(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},LE=(e,t)=>{const n={},r=i=>{i.forEach(s=>{n[s]=!0})};return ci(e)?r(e):r(String(e).split(t)),n},AE=()=>{},bE=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,kl="abcdefghijklmnopqrstuvwxyz",Vp="0123456789",nv={DIGIT:Vp,ALPHA:kl,ALPHA_DIGIT:kl+kl.toUpperCase()+Vp},ME=(e=16,t=nv.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function DE(e){return!!(e&>(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const IE=e=>{const t=new Array(10),n=(r,i)=>{if(Ma(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[i]=r;const s=ci(r)?[]:{};return Ns(r,(o,a)=>{const l=n(o,i+1);!ys(l)&&(s[a]=l)}),t[i]=void 0,s}}return r};return n(e,0)},_E=Ot("AsyncFunction"),FE=e=>e&&(Ma(e)||gt(e))&>(e.then)&>(e.catch),k={isArray:ci,isArrayBuffer:Xy,isBuffer:nE,isFormData:dE,isArrayBufferView:rE,isString:iE,isNumber:qy,isBoolean:sE,isObject:Ma,isPlainObject:Co,isReadableStream:pE,isRequest:hE,isResponse:mE,isHeaders:gE,isUndefined:ys,isDate:oE,isFile:aE,isBlob:lE,isRegExp:NE,isFunction:gt,isStream:cE,isURLSearchParams:fE,isTypedArray:TE,isFileList:uE,forEach:Ns,merge:Wu,extend:vE,trim:yE,stripBOM:xE,inherits:wE,toFlatObject:SE,kindOf:Aa,kindOfTest:Ot,endsWith:CE,toArray:EE,forEachEntry:kE,matchAll:jE,isHTMLForm:PE,hasOwnProperty:Fp,hasOwnProp:Fp,reduceDescriptors:tv,freezeMethods:OE,toObjectSet:LE,toCamelCase:RE,noop:AE,toFiniteNumber:bE,findKey:Jy,global:Zy,isContextDefined:ev,ALPHABET:nv,generateString:ME,isSpecCompliantForm:DE,toJSONObject:IE,isAsyncFn:_E,isThenable:FE};function V(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i)}k.inherits(V,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:k.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const rv=V.prototype,iv={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{iv[e]={value:e}});Object.defineProperties(V,iv);Object.defineProperty(rv,"isAxiosError",{value:!0});V.from=(e,t,n,r,i,s)=>{const o=Object.create(rv);return k.toFlatObject(e,o,function(l){return l!==Error.prototype},a=>a!=="isAxiosError"),V.call(o,e.message,t,n,r,i),o.cause=e,o.name=e.name,s&&Object.assign(o,s),o};const VE=null;function Ku(e){return k.isPlainObject(e)||k.isArray(e)}function sv(e){return k.endsWith(e,"[]")?e.slice(0,-2):e}function Bp(e,t,n){return e?e.concat(t).map(function(i,s){return i=sv(i),!n&&s?"["+i+"]":i}).join(n?".":""):t}function BE(e){return k.isArray(e)&&!e.some(Ku)}const $E=k.toFlatObject(k,{},null,function(t){return/^is[A-Z]/.test(t)});function Da(e,t,n){if(!k.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=k.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(w,S){return!k.isUndefined(S[w])});const r=n.metaTokens,i=n.visitor||c,s=n.dots,o=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&k.isSpecCompliantForm(t);if(!k.isFunction(i))throw new TypeError("visitor must be a function");function u(y){if(y===null)return"";if(k.isDate(y))return y.toISOString();if(!l&&k.isBlob(y))throw new V("Blob is not supported. Use a Buffer instead.");return k.isArrayBuffer(y)||k.isTypedArray(y)?l&&typeof Blob=="function"?new Blob([y]):Buffer.from(y):y}function c(y,w,S){let x=y;if(y&&!S&&typeof y=="object"){if(k.endsWith(w,"{}"))w=r?w:w.slice(0,-2),y=JSON.stringify(y);else if(k.isArray(y)&&BE(y)||(k.isFileList(y)||k.endsWith(w,"[]"))&&(x=k.toArray(y)))return w=sv(w),x.forEach(function(g,C){!(k.isUndefined(g)||g===null)&&t.append(o===!0?Bp([w],C,s):o===null?w:w+"[]",u(g))}),!1}return Ku(y)?!0:(t.append(Bp(S,w,s),u(y)),!1)}const d=[],p=Object.assign($E,{defaultVisitor:c,convertValue:u,isVisitable:Ku});function v(y,w){if(!k.isUndefined(y)){if(d.indexOf(y)!==-1)throw Error("Circular reference detected in "+w.join("."));d.push(y),k.forEach(y,function(x,m){(!(k.isUndefined(x)||x===null)&&i.call(t,x,k.isString(m)?m.trim():m,w,p))===!0&&v(x,w?w.concat(m):[m])}),d.pop()}}if(!k.isObject(e))throw new TypeError("data must be an object");return v(e),t}function $p(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Cd(e,t){this._pairs=[],e&&Da(e,this,t)}const ov=Cd.prototype;ov.append=function(t,n){this._pairs.push([t,n])};ov.toString=function(t){const n=t?function(r){return t.call(this,r,$p)}:$p;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function UE(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function av(e,t,n){if(!t)return e;const r=n&&n.encode||UE,i=n&&n.serialize;let s;if(i?s=i(t,n):s=k.isURLSearchParams(t)?t.toString():new Cd(t,n).toString(r),s){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class Up{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){k.forEach(this.handlers,function(r){r!==null&&t(r)})}}const lv={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},zE=typeof URLSearchParams<"u"?URLSearchParams:Cd,HE=typeof FormData<"u"?FormData:null,WE=typeof Blob<"u"?Blob:null,KE={isBrowser:!0,classes:{URLSearchParams:zE,FormData:HE,Blob:WE},protocols:["http","https","file","blob","url","data"]},Ed=typeof window<"u"&&typeof document<"u",GE=(e=>Ed&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),YE=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",QE=Ed&&window.location.href||"http://localhost",XE=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ed,hasStandardBrowserEnv:GE,hasStandardBrowserWebWorkerEnv:YE,origin:QE},Symbol.toStringTag,{value:"Module"})),jt={...XE,...KE};function qE(e,t){return Da(e,new jt.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,s){return jt.isNode&&k.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}function JE(e){return k.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function ZE(e){const t={},n=Object.keys(e);let r;const i=n.length;let s;for(r=0;r=n.length;return o=!o&&k.isArray(i)?i.length:o,l?(k.hasOwnProp(i,o)?i[o]=[i[o],r]:i[o]=r,!a):((!i[o]||!k.isObject(i[o]))&&(i[o]=[]),t(n,r,i[o],s)&&k.isArray(i[o])&&(i[o]=ZE(i[o])),!a)}if(k.isFormData(e)&&k.isFunction(e.entries)){const n={};return k.forEachEntry(e,(r,i)=>{t(JE(r),i,n,0)}),n}return null}function eT(e,t,n){if(k.isString(e))try{return(t||JSON.parse)(e),k.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Os={transitional:lv,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,s=k.isObject(t);if(s&&k.isHTMLForm(t)&&(t=new FormData(t)),k.isFormData(t))return i?JSON.stringify(uv(t)):t;if(k.isArrayBuffer(t)||k.isBuffer(t)||k.isStream(t)||k.isFile(t)||k.isBlob(t)||k.isReadableStream(t))return t;if(k.isArrayBufferView(t))return t.buffer;if(k.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(s){if(r.indexOf("application/x-www-form-urlencoded")>-1)return qE(t,this.formSerializer).toString();if((a=k.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Da(a?{"files[]":t}:t,l&&new l,this.formSerializer)}}return s||i?(n.setContentType("application/json",!1),eT(t)):t}],transformResponse:[function(t){const n=this.transitional||Os.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(k.isResponse(t)||k.isReadableStream(t))return t;if(t&&k.isString(t)&&(r&&!this.responseType||i)){const o=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(a){if(o)throw a.name==="SyntaxError"?V.from(a,V.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:jt.classes.FormData,Blob:jt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};k.forEach(["delete","get","head","post","put","patch"],e=>{Os.headers[e]={}});const tT=k.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),nT=e=>{const t={};let n,r,i;return e&&e.split(` + */function Hu(){return Hu=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}function BC(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function $C(e,t){return e.button===0&&(!t||t==="_self")&&!BC(e)}const UC=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],zC="6";try{window.__reactRouterVersion=zC}catch{}const HC="startTransition",Mp=Bw[HC];function WC(e){let{basename:t,children:n,future:r,window:i}=e,s=h.useRef();s.current==null&&(s.current=qS({window:i,v5Compat:!0}));let o=s.current,[a,l]=h.useState({action:o.action,location:o.location}),{v7_startTransition:u}=r||{},c=h.useCallback(d=>{u&&Mp?Mp(()=>l(d)):l(d)},[l,u]);return h.useLayoutEffect(()=>o.listen(c),[o,c]),h.createElement(IC,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:o,future:r})}const KC=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",GC=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Et=h.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:s,replace:o,state:a,target:l,to:u,preventScrollReset:c,unstable_viewTransition:d}=t,p=VC(t,UC),{basename:v}=h.useContext($n),y,w=!1;if(typeof u=="string"&&GC.test(u)&&(y=u,KC))try{let g=new URL(window.location.href),C=u.startsWith("//")?new URL(g.protocol+u):new URL(u),T=yd(C.pathname,v);C.origin===g.origin&&T!=null?u=T+C.search+C.hash:w=!0}catch{}let S=EC(u,{relative:i}),x=YC(u,{replace:o,state:a,target:l,preventScrollReset:c,relative:i,unstable_viewTransition:d});function m(g){r&&r(g),g.defaultPrevented||x(g)}return h.createElement("a",Hu({},p,{href:y||S,onClick:w||s?r:m,ref:n,target:l}))});var _p;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(_p||(_p={}));var Ip;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Ip||(Ip={}));function YC(e,t){let{target:n,replace:r,state:i,preventScrollReset:s,relative:o,unstable_viewTransition:a}=t===void 0?{}:t,l=ui(),u=Rs(),c=Uy(e,{relative:o});return h.useCallback(d=>{if($C(d,n)){d.preventDefault();let p=r!==void 0?r:Jo(u)===Jo(c);l(e,{replace:p,state:i,preventScrollReset:s,relative:o,unstable_viewTransition:a})}},[u,l,c,r,i,n,e,s,o,a])}var Ky={exports:{}},QC="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",XC=QC,qC=XC;function Gy(){}function Yy(){}Yy.resetWarningCache=Gy;var JC=function(){function e(r,i,s,o,a,l){if(l!==qC){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Yy,resetWarningCache:Gy};return n.PropTypes=n,n};Ky.exports=JC();var ZC=Ky.exports;const $=pa(ZC),eE=(e,t)=>{const[n,r]=h.useState(()=>{try{const s=window.localStorage.getItem(e);return s?JSON.parse(s):(window.localStorage.setItem(e,JSON.stringify(t)),t)}catch{return t}});return[n,s=>{try{window.localStorage.setItem(e,JSON.stringify(s))}catch(o){console.log(o.message)}r(s)}]};function Qy(e,t){return function(){return e.apply(t,arguments)}}const{toString:tE}=Object.prototype,{getPrototypeOf:Sd}=Object,Aa=(e=>t=>{const n=tE.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Ot=e=>(e=e.toLowerCase(),t=>Aa(t)===e),ba=e=>t=>typeof t===e,{isArray:ci}=Array,ys=ba("undefined");function nE(e){return e!==null&&!ys(e)&&e.constructor!==null&&!ys(e.constructor)&>(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Xy=Ot("ArrayBuffer");function rE(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Xy(e.buffer),t}const iE=ba("string"),gt=ba("function"),qy=ba("number"),Da=e=>e!==null&&typeof e=="object",sE=e=>e===!0||e===!1,Co=e=>{if(Aa(e)!=="object")return!1;const t=Sd(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},oE=Ot("Date"),aE=Ot("File"),lE=Ot("Blob"),uE=Ot("FileList"),cE=e=>Da(e)&>(e.pipe),dE=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||gt(e.append)&&((t=Aa(e))==="formdata"||t==="object"&>(e.toString)&&e.toString()==="[object FormData]"))},fE=Ot("URLSearchParams"),[pE,hE,mE,gE]=["ReadableStream","Request","Response","Headers"].map(Ot),yE=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ns(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),ci(e))for(r=0,i=e.length;r0;)if(i=n[r],t===i.toLowerCase())return i;return null}const Zy=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,ev=e=>!ys(e)&&e!==Zy;function Wu(){const{caseless:e}=ev(this)&&this||{},t={},n=(r,i)=>{const s=e&&Jy(t,i)||i;Co(t[s])&&Co(r)?t[s]=Wu(t[s],r):Co(r)?t[s]=Wu({},r):ci(r)?t[s]=r.slice():t[s]=r};for(let r=0,i=arguments.length;r(Ns(t,(i,s)=>{n&>(i)?e[s]=Qy(i,n):e[s]=i},{allOwnKeys:r}),e),xE=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),wE=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},SE=(e,t,n,r)=>{let i,s,o;const a={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),s=i.length;s-- >0;)o=i[s],(!r||r(o,e,t))&&!a[o]&&(t[o]=e[o],a[o]=!0);e=n!==!1&&Sd(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},CE=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},EE=e=>{if(!e)return null;if(ci(e))return e;let t=e.length;if(!qy(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},TE=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Sd(Uint8Array)),kE=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=r.next())&&!i.done;){const s=i.value;t.call(e,s[0],s[1])}},jE=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},PE=Ot("HTMLFormElement"),RE=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),Fp=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),NE=Ot("RegExp"),tv=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Ns(n,(i,s)=>{let o;(o=t(i,s,e))!==!1&&(r[s]=o||i)}),Object.defineProperties(e,r)},OE=e=>{tv(e,(t,n)=>{if(gt(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(gt(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},LE=(e,t)=>{const n={},r=i=>{i.forEach(s=>{n[s]=!0})};return ci(e)?r(e):r(String(e).split(t)),n},AE=()=>{},bE=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,kl="abcdefghijklmnopqrstuvwxyz",Vp="0123456789",nv={DIGIT:Vp,ALPHA:kl,ALPHA_DIGIT:kl+kl.toUpperCase()+Vp},DE=(e=16,t=nv.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function ME(e){return!!(e&>(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const _E=e=>{const t=new Array(10),n=(r,i)=>{if(Da(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[i]=r;const s=ci(r)?[]:{};return Ns(r,(o,a)=>{const l=n(o,i+1);!ys(l)&&(s[a]=l)}),t[i]=void 0,s}}return r};return n(e,0)},IE=Ot("AsyncFunction"),FE=e=>e&&(Da(e)||gt(e))&>(e.then)&>(e.catch),k={isArray:ci,isArrayBuffer:Xy,isBuffer:nE,isFormData:dE,isArrayBufferView:rE,isString:iE,isNumber:qy,isBoolean:sE,isObject:Da,isPlainObject:Co,isReadableStream:pE,isRequest:hE,isResponse:mE,isHeaders:gE,isUndefined:ys,isDate:oE,isFile:aE,isBlob:lE,isRegExp:NE,isFunction:gt,isStream:cE,isURLSearchParams:fE,isTypedArray:TE,isFileList:uE,forEach:Ns,merge:Wu,extend:vE,trim:yE,stripBOM:xE,inherits:wE,toFlatObject:SE,kindOf:Aa,kindOfTest:Ot,endsWith:CE,toArray:EE,forEachEntry:kE,matchAll:jE,isHTMLForm:PE,hasOwnProperty:Fp,hasOwnProp:Fp,reduceDescriptors:tv,freezeMethods:OE,toObjectSet:LE,toCamelCase:RE,noop:AE,toFiniteNumber:bE,findKey:Jy,global:Zy,isContextDefined:ev,ALPHABET:nv,generateString:DE,isSpecCompliantForm:ME,toJSONObject:_E,isAsyncFn:IE,isThenable:FE};function V(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i)}k.inherits(V,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:k.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const rv=V.prototype,iv={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{iv[e]={value:e}});Object.defineProperties(V,iv);Object.defineProperty(rv,"isAxiosError",{value:!0});V.from=(e,t,n,r,i,s)=>{const o=Object.create(rv);return k.toFlatObject(e,o,function(l){return l!==Error.prototype},a=>a!=="isAxiosError"),V.call(o,e.message,t,n,r,i),o.cause=e,o.name=e.name,s&&Object.assign(o,s),o};const VE=null;function Ku(e){return k.isPlainObject(e)||k.isArray(e)}function sv(e){return k.endsWith(e,"[]")?e.slice(0,-2):e}function Bp(e,t,n){return e?e.concat(t).map(function(i,s){return i=sv(i),!n&&s?"["+i+"]":i}).join(n?".":""):t}function BE(e){return k.isArray(e)&&!e.some(Ku)}const $E=k.toFlatObject(k,{},null,function(t){return/^is[A-Z]/.test(t)});function Ma(e,t,n){if(!k.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=k.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(w,S){return!k.isUndefined(S[w])});const r=n.metaTokens,i=n.visitor||c,s=n.dots,o=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&k.isSpecCompliantForm(t);if(!k.isFunction(i))throw new TypeError("visitor must be a function");function u(y){if(y===null)return"";if(k.isDate(y))return y.toISOString();if(!l&&k.isBlob(y))throw new V("Blob is not supported. Use a Buffer instead.");return k.isArrayBuffer(y)||k.isTypedArray(y)?l&&typeof Blob=="function"?new Blob([y]):Buffer.from(y):y}function c(y,w,S){let x=y;if(y&&!S&&typeof y=="object"){if(k.endsWith(w,"{}"))w=r?w:w.slice(0,-2),y=JSON.stringify(y);else if(k.isArray(y)&&BE(y)||(k.isFileList(y)||k.endsWith(w,"[]"))&&(x=k.toArray(y)))return w=sv(w),x.forEach(function(g,C){!(k.isUndefined(g)||g===null)&&t.append(o===!0?Bp([w],C,s):o===null?w:w+"[]",u(g))}),!1}return Ku(y)?!0:(t.append(Bp(S,w,s),u(y)),!1)}const d=[],p=Object.assign($E,{defaultVisitor:c,convertValue:u,isVisitable:Ku});function v(y,w){if(!k.isUndefined(y)){if(d.indexOf(y)!==-1)throw Error("Circular reference detected in "+w.join("."));d.push(y),k.forEach(y,function(x,m){(!(k.isUndefined(x)||x===null)&&i.call(t,x,k.isString(m)?m.trim():m,w,p))===!0&&v(x,w?w.concat(m):[m])}),d.pop()}}if(!k.isObject(e))throw new TypeError("data must be an object");return v(e),t}function $p(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Cd(e,t){this._pairs=[],e&&Ma(e,this,t)}const ov=Cd.prototype;ov.append=function(t,n){this._pairs.push([t,n])};ov.toString=function(t){const n=t?function(r){return t.call(this,r,$p)}:$p;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function UE(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function av(e,t,n){if(!t)return e;const r=n&&n.encode||UE,i=n&&n.serialize;let s;if(i?s=i(t,n):s=k.isURLSearchParams(t)?t.toString():new Cd(t,n).toString(r),s){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class Up{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){k.forEach(this.handlers,function(r){r!==null&&t(r)})}}const lv={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},zE=typeof URLSearchParams<"u"?URLSearchParams:Cd,HE=typeof FormData<"u"?FormData:null,WE=typeof Blob<"u"?Blob:null,KE={isBrowser:!0,classes:{URLSearchParams:zE,FormData:HE,Blob:WE},protocols:["http","https","file","blob","url","data"]},Ed=typeof window<"u"&&typeof document<"u",GE=(e=>Ed&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),YE=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",QE=Ed&&window.location.href||"http://localhost",XE=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ed,hasStandardBrowserEnv:GE,hasStandardBrowserWebWorkerEnv:YE,origin:QE},Symbol.toStringTag,{value:"Module"})),jt={...XE,...KE};function qE(e,t){return Ma(e,new jt.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,s){return jt.isNode&&k.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}function JE(e){return k.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function ZE(e){const t={},n=Object.keys(e);let r;const i=n.length;let s;for(r=0;r=n.length;return o=!o&&k.isArray(i)?i.length:o,l?(k.hasOwnProp(i,o)?i[o]=[i[o],r]:i[o]=r,!a):((!i[o]||!k.isObject(i[o]))&&(i[o]=[]),t(n,r,i[o],s)&&k.isArray(i[o])&&(i[o]=ZE(i[o])),!a)}if(k.isFormData(e)&&k.isFunction(e.entries)){const n={};return k.forEachEntry(e,(r,i)=>{t(JE(r),i,n,0)}),n}return null}function eT(e,t,n){if(k.isString(e))try{return(t||JSON.parse)(e),k.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Os={transitional:lv,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,s=k.isObject(t);if(s&&k.isHTMLForm(t)&&(t=new FormData(t)),k.isFormData(t))return i?JSON.stringify(uv(t)):t;if(k.isArrayBuffer(t)||k.isBuffer(t)||k.isStream(t)||k.isFile(t)||k.isBlob(t)||k.isReadableStream(t))return t;if(k.isArrayBufferView(t))return t.buffer;if(k.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(s){if(r.indexOf("application/x-www-form-urlencoded")>-1)return qE(t,this.formSerializer).toString();if((a=k.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Ma(a?{"files[]":t}:t,l&&new l,this.formSerializer)}}return s||i?(n.setContentType("application/json",!1),eT(t)):t}],transformResponse:[function(t){const n=this.transitional||Os.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(k.isResponse(t)||k.isReadableStream(t))return t;if(t&&k.isString(t)&&(r&&!this.responseType||i)){const o=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(a){if(o)throw a.name==="SyntaxError"?V.from(a,V.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:jt.classes.FormData,Blob:jt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};k.forEach(["delete","get","head","post","put","patch"],e=>{Os.headers[e]={}});const tT=k.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),nT=e=>{const t={};let n,r,i;return e&&e.split(` `).forEach(function(o){i=o.indexOf(":"),n=o.substring(0,i).trim().toLowerCase(),r=o.substring(i+1).trim(),!(!n||t[n]&&tT[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},zp=Symbol("internals");function Pi(e){return e&&String(e).trim().toLowerCase()}function Eo(e){return e===!1||e==null?e:k.isArray(e)?e.map(Eo):String(e)}function rT(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const iT=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function jl(e,t,n,r,i){if(k.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!k.isString(t)){if(k.isString(r))return t.indexOf(r)!==-1;if(k.isRegExp(r))return r.test(t)}}function sT(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function oT(e,t){const n=k.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,s,o){return this[r].call(this,t,i,s,o)},configurable:!0})})}class Ze{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function s(a,l,u){const c=Pi(l);if(!c)throw new Error("header name must be a non-empty string");const d=k.findKey(i,c);(!d||i[d]===void 0||u===!0||u===void 0&&i[d]!==!1)&&(i[d||l]=Eo(a))}const o=(a,l)=>k.forEach(a,(u,c)=>s(u,c,l));if(k.isPlainObject(t)||t instanceof this.constructor)o(t,n);else if(k.isString(t)&&(t=t.trim())&&!iT(t))o(nT(t),n);else if(k.isHeaders(t))for(const[a,l]of t.entries())s(l,a,r);else t!=null&&s(n,t,r);return this}get(t,n){if(t=Pi(t),t){const r=k.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return rT(i);if(k.isFunction(n))return n.call(this,i,r);if(k.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Pi(t),t){const r=k.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||jl(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function s(o){if(o=Pi(o),o){const a=k.findKey(r,o);a&&(!n||jl(r,r[a],a,n))&&(delete r[a],i=!0)}}return k.isArray(t)?t.forEach(s):s(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const s=n[r];(!t||jl(this,this[s],s,t,!0))&&(delete this[s],i=!0)}return i}normalize(t){const n=this,r={};return k.forEach(this,(i,s)=>{const o=k.findKey(r,s);if(o){n[o]=Eo(i),delete n[s];return}const a=t?sT(s):String(s).trim();a!==s&&delete n[s],n[a]=Eo(i),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return k.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&k.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` -`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[zp]=this[zp]={accessors:{}}).accessors,i=this.prototype;function s(o){const a=Pi(o);r[a]||(oT(i,o),r[a]=!0)}return k.isArray(t)?t.forEach(s):s(t),this}}Ze.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);k.reduceDescriptors(Ze.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});k.freezeMethods(Ze);function Pl(e,t){const n=this||Os,r=t||n,i=Ze.from(r.headers);let s=r.data;return k.forEach(e,function(a){s=a.call(n,s,i.normalize(),t?t.status:void 0)}),i.normalize(),s}function cv(e){return!!(e&&e.__CANCEL__)}function di(e,t,n){V.call(this,e??"canceled",V.ERR_CANCELED,t,n),this.name="CanceledError"}k.inherits(di,V,{__CANCEL__:!0});function dv(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new V("Request failed with status code "+n.status,[V.ERR_BAD_REQUEST,V.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function aT(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function lT(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,s=0,o;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),c=r[s];o||(o=u),n[i]=l,r[i]=u;let d=s,p=0;for(;d!==i;)p+=n[d++],d=d%e;if(i=(i+1)%e,i===s&&(s=(s+1)%e),u-or)return i&&(clearTimeout(i),i=null),n=a,e.apply(null,arguments);i||(i=setTimeout(()=>(i=null,n=Date.now(),e.apply(null,arguments)),r-(a-n)))}}const ea=(e,t,n=3)=>{let r=0;const i=lT(50,250);return uT(s=>{const o=s.loaded,a=s.lengthComputable?s.total:void 0,l=o-r,u=i(l),c=o<=a;r=o;const d={loaded:o,total:a,progress:a?o/a:void 0,bytes:l,rate:u||void 0,estimated:u&&a&&c?(a-o)/u:void 0,event:s,lengthComputable:a!=null};d[t?"download":"upload"]=!0,e(d)},n)},cT=jt.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function i(s){let o=s;return t&&(n.setAttribute("href",o),o=n.href),n.setAttribute("href",o),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=i(window.location.href),function(o){const a=k.isString(o)?i(o):o;return a.protocol===r.protocol&&a.host===r.host}}():function(){return function(){return!0}}(),dT=jt.hasStandardBrowserEnv?{write(e,t,n,r,i,s){const o=[e+"="+encodeURIComponent(t)];k.isNumber(n)&&o.push("expires="+new Date(n).toGMTString()),k.isString(r)&&o.push("path="+r),k.isString(i)&&o.push("domain="+i),s===!0&&o.push("secure"),document.cookie=o.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function fT(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function pT(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function fv(e,t){return e&&!fT(t)?pT(e,t):t}const Hp=e=>e instanceof Ze?{...e}:e;function ur(e,t){t=t||{};const n={};function r(u,c,d){return k.isPlainObject(u)&&k.isPlainObject(c)?k.merge.call({caseless:d},u,c):k.isPlainObject(c)?k.merge({},c):k.isArray(c)?c.slice():c}function i(u,c,d){if(k.isUndefined(c)){if(!k.isUndefined(u))return r(void 0,u,d)}else return r(u,c,d)}function s(u,c){if(!k.isUndefined(c))return r(void 0,c)}function o(u,c){if(k.isUndefined(c)){if(!k.isUndefined(u))return r(void 0,u)}else return r(void 0,c)}function a(u,c,d){if(d in t)return r(u,c);if(d in e)return r(void 0,u)}const l={url:s,method:s,data:s,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:a,headers:(u,c)=>i(Hp(u),Hp(c),!0)};return k.forEach(Object.keys(Object.assign({},e,t)),function(c){const d=l[c]||i,p=d(e[c],t[c],c);k.isUndefined(p)&&d!==a||(n[c]=p)}),n}const pv=e=>{const t=ur({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:s,headers:o,auth:a}=t;t.headers=o=Ze.from(o),t.url=av(fv(t.baseURL,t.url),e.params,e.paramsSerializer),a&&o.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let l;if(k.isFormData(n)){if(jt.hasStandardBrowserEnv||jt.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if((l=o.getContentType())!==!1){const[u,...c]=l?l.split(";").map(d=>d.trim()).filter(Boolean):[];o.setContentType([u||"multipart/form-data",...c].join("; "))}}if(jt.hasStandardBrowserEnv&&(r&&k.isFunction(r)&&(r=r(t)),r||r!==!1&&cT(t.url))){const u=i&&s&&dT.read(s);u&&o.set(i,u)}return t},hT=typeof XMLHttpRequest<"u",mT=hT&&function(e){return new Promise(function(n,r){const i=pv(e);let s=i.data;const o=Ze.from(i.headers).normalize();let{responseType:a}=i,l;function u(){i.cancelToken&&i.cancelToken.unsubscribe(l),i.signal&&i.signal.removeEventListener("abort",l)}let c=new XMLHttpRequest;c.open(i.method.toUpperCase(),i.url,!0),c.timeout=i.timeout;function d(){if(!c)return;const v=Ze.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),w={data:!a||a==="text"||a==="json"?c.responseText:c.response,status:c.status,statusText:c.statusText,headers:v,config:e,request:c};dv(function(x){n(x),u()},function(x){r(x),u()},w),c=null}"onloadend"in c?c.onloadend=d:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(d)},c.onabort=function(){c&&(r(new V("Request aborted",V.ECONNABORTED,i,c)),c=null)},c.onerror=function(){r(new V("Network Error",V.ERR_NETWORK,i,c)),c=null},c.ontimeout=function(){let y=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const w=i.transitional||lv;i.timeoutErrorMessage&&(y=i.timeoutErrorMessage),r(new V(y,w.clarifyTimeoutError?V.ETIMEDOUT:V.ECONNABORTED,i,c)),c=null},s===void 0&&o.setContentType(null),"setRequestHeader"in c&&k.forEach(o.toJSON(),function(y,w){c.setRequestHeader(w,y)}),k.isUndefined(i.withCredentials)||(c.withCredentials=!!i.withCredentials),a&&a!=="json"&&(c.responseType=i.responseType),typeof i.onDownloadProgress=="function"&&c.addEventListener("progress",ea(i.onDownloadProgress,!0)),typeof i.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",ea(i.onUploadProgress)),(i.cancelToken||i.signal)&&(l=v=>{c&&(r(!v||v.type?new di(null,e,c):v),c.abort(),c=null)},i.cancelToken&&i.cancelToken.subscribe(l),i.signal&&(i.signal.aborted?l():i.signal.addEventListener("abort",l)));const p=aT(i.url);if(p&&jt.protocols.indexOf(p)===-1){r(new V("Unsupported protocol "+p+":",V.ERR_BAD_REQUEST,e));return}c.send(s||null)})},gT=(e,t)=>{let n=new AbortController,r;const i=function(l){if(!r){r=!0,o();const u=l instanceof Error?l:this.reason;n.abort(u instanceof V?u:new di(u instanceof Error?u.message:u))}};let s=t&&setTimeout(()=>{i(new V(`timeout ${t} of ms exceeded`,V.ETIMEDOUT))},t);const o=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(l=>{l&&(l.removeEventListener?l.removeEventListener("abort",i):l.unsubscribe(i))}),e=null)};e.forEach(l=>l&&l.addEventListener&&l.addEventListener("abort",i));const{signal:a}=n;return a.unsubscribe=o,[a,()=>{s&&clearTimeout(s),s=null}]},yT=function*(e,t){let n=e.byteLength;if(!t||n{const s=vT(e,t,i);let o=0;return new ReadableStream({type:"bytes",async pull(a){const{done:l,value:u}=await s.next();if(l){a.close(),r();return}let c=u.byteLength;n&&n(o+=c),a.enqueue(new Uint8Array(u))},cancel(a){return r(a),s.return()}},{highWaterMark:2})},Kp=(e,t)=>{const n=e!=null;return r=>setTimeout(()=>t({lengthComputable:n,total:e,loaded:r}))},Ia=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",hv=Ia&&typeof ReadableStream=="function",Gu=Ia&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),xT=hv&&(()=>{let e=!1;const t=new Request(jt.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})(),Gp=64*1024,Yu=hv&&!!(()=>{try{return k.isReadableStream(new Response("").body)}catch{}})(),ta={stream:Yu&&(e=>e.body)};Ia&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!ta[t]&&(ta[t]=k.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new V(`Response type '${t}' is not supported`,V.ERR_NOT_SUPPORT,r)})})})(new Response);const wT=async e=>{if(e==null)return 0;if(k.isBlob(e))return e.size;if(k.isSpecCompliantForm(e))return(await new Request(e).arrayBuffer()).byteLength;if(k.isArrayBufferView(e))return e.byteLength;if(k.isURLSearchParams(e)&&(e=e+""),k.isString(e))return(await Gu(e)).byteLength},ST=async(e,t)=>{const n=k.toFiniteNumber(e.getContentLength());return n??wT(t)},CT=Ia&&(async e=>{let{url:t,method:n,data:r,signal:i,cancelToken:s,timeout:o,onDownloadProgress:a,onUploadProgress:l,responseType:u,headers:c,withCredentials:d="same-origin",fetchOptions:p}=pv(e);u=u?(u+"").toLowerCase():"text";let[v,y]=i||s||o?gT([i,s],o):[],w,S;const x=()=>{!w&&setTimeout(()=>{v&&v.unsubscribe()}),w=!0};let m;try{if(l&&xT&&n!=="get"&&n!=="head"&&(m=await ST(c,r))!==0){let E=new Request(t,{method:"POST",body:r,duplex:"half"}),P;k.isFormData(r)&&(P=E.headers.get("content-type"))&&c.setContentType(P),E.body&&(r=Wp(E.body,Gp,Kp(m,ea(l)),null,Gu))}k.isString(d)||(d=d?"cors":"omit"),S=new Request(t,{...p,signal:v,method:n.toUpperCase(),headers:c.normalize().toJSON(),body:r,duplex:"half",withCredentials:d});let g=await fetch(S);const C=Yu&&(u==="stream"||u==="response");if(Yu&&(a||C)){const E={};["status","statusText","headers"].forEach(j=>{E[j]=g[j]});const P=k.toFiniteNumber(g.headers.get("content-length"));g=new Response(Wp(g.body,Gp,a&&Kp(P,ea(a,!0)),C&&x,Gu),E)}u=u||"text";let T=await ta[k.findKey(ta,u)||"text"](g,e);return!C&&x(),y&&y(),await new Promise((E,P)=>{dv(E,P,{data:T,headers:Ze.from(g.headers),status:g.status,statusText:g.statusText,config:e,request:S})})}catch(g){throw x(),g&&g.name==="TypeError"&&/fetch/i.test(g.message)?Object.assign(new V("Network Error",V.ERR_NETWORK,e,S),{cause:g.cause||g}):V.from(g,g&&g.code,e,S)}}),Qu={http:VE,xhr:mT,fetch:CT};k.forEach(Qu,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Yp=e=>`- ${e}`,ET=e=>k.isFunction(e)||e===null||e===!1,mv={getAdapter:e=>{e=k.isArray(e)?e:[e];const{length:t}=e;let n,r;const i={};for(let s=0;s`adapter ${a} `+(l===!1?"is not supported by the environment":"is not available in the build"));let o=t?s.length>1?`since : +`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[zp]=this[zp]={accessors:{}}).accessors,i=this.prototype;function s(o){const a=Pi(o);r[a]||(oT(i,o),r[a]=!0)}return k.isArray(t)?t.forEach(s):s(t),this}}Ze.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);k.reduceDescriptors(Ze.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});k.freezeMethods(Ze);function Pl(e,t){const n=this||Os,r=t||n,i=Ze.from(r.headers);let s=r.data;return k.forEach(e,function(a){s=a.call(n,s,i.normalize(),t?t.status:void 0)}),i.normalize(),s}function cv(e){return!!(e&&e.__CANCEL__)}function di(e,t,n){V.call(this,e??"canceled",V.ERR_CANCELED,t,n),this.name="CanceledError"}k.inherits(di,V,{__CANCEL__:!0});function dv(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new V("Request failed with status code "+n.status,[V.ERR_BAD_REQUEST,V.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function aT(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function lT(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,s=0,o;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),c=r[s];o||(o=u),n[i]=l,r[i]=u;let d=s,p=0;for(;d!==i;)p+=n[d++],d=d%e;if(i=(i+1)%e,i===s&&(s=(s+1)%e),u-or)return i&&(clearTimeout(i),i=null),n=a,e.apply(null,arguments);i||(i=setTimeout(()=>(i=null,n=Date.now(),e.apply(null,arguments)),r-(a-n)))}}const ea=(e,t,n=3)=>{let r=0;const i=lT(50,250);return uT(s=>{const o=s.loaded,a=s.lengthComputable?s.total:void 0,l=o-r,u=i(l),c=o<=a;r=o;const d={loaded:o,total:a,progress:a?o/a:void 0,bytes:l,rate:u||void 0,estimated:u&&a&&c?(a-o)/u:void 0,event:s,lengthComputable:a!=null};d[t?"download":"upload"]=!0,e(d)},n)},cT=jt.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function i(s){let o=s;return t&&(n.setAttribute("href",o),o=n.href),n.setAttribute("href",o),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=i(window.location.href),function(o){const a=k.isString(o)?i(o):o;return a.protocol===r.protocol&&a.host===r.host}}():function(){return function(){return!0}}(),dT=jt.hasStandardBrowserEnv?{write(e,t,n,r,i,s){const o=[e+"="+encodeURIComponent(t)];k.isNumber(n)&&o.push("expires="+new Date(n).toGMTString()),k.isString(r)&&o.push("path="+r),k.isString(i)&&o.push("domain="+i),s===!0&&o.push("secure"),document.cookie=o.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function fT(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function pT(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function fv(e,t){return e&&!fT(t)?pT(e,t):t}const Hp=e=>e instanceof Ze?{...e}:e;function ur(e,t){t=t||{};const n={};function r(u,c,d){return k.isPlainObject(u)&&k.isPlainObject(c)?k.merge.call({caseless:d},u,c):k.isPlainObject(c)?k.merge({},c):k.isArray(c)?c.slice():c}function i(u,c,d){if(k.isUndefined(c)){if(!k.isUndefined(u))return r(void 0,u,d)}else return r(u,c,d)}function s(u,c){if(!k.isUndefined(c))return r(void 0,c)}function o(u,c){if(k.isUndefined(c)){if(!k.isUndefined(u))return r(void 0,u)}else return r(void 0,c)}function a(u,c,d){if(d in t)return r(u,c);if(d in e)return r(void 0,u)}const l={url:s,method:s,data:s,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:a,headers:(u,c)=>i(Hp(u),Hp(c),!0)};return k.forEach(Object.keys(Object.assign({},e,t)),function(c){const d=l[c]||i,p=d(e[c],t[c],c);k.isUndefined(p)&&d!==a||(n[c]=p)}),n}const pv=e=>{const t=ur({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:s,headers:o,auth:a}=t;t.headers=o=Ze.from(o),t.url=av(fv(t.baseURL,t.url),e.params,e.paramsSerializer),a&&o.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let l;if(k.isFormData(n)){if(jt.hasStandardBrowserEnv||jt.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if((l=o.getContentType())!==!1){const[u,...c]=l?l.split(";").map(d=>d.trim()).filter(Boolean):[];o.setContentType([u||"multipart/form-data",...c].join("; "))}}if(jt.hasStandardBrowserEnv&&(r&&k.isFunction(r)&&(r=r(t)),r||r!==!1&&cT(t.url))){const u=i&&s&&dT.read(s);u&&o.set(i,u)}return t},hT=typeof XMLHttpRequest<"u",mT=hT&&function(e){return new Promise(function(n,r){const i=pv(e);let s=i.data;const o=Ze.from(i.headers).normalize();let{responseType:a}=i,l;function u(){i.cancelToken&&i.cancelToken.unsubscribe(l),i.signal&&i.signal.removeEventListener("abort",l)}let c=new XMLHttpRequest;c.open(i.method.toUpperCase(),i.url,!0),c.timeout=i.timeout;function d(){if(!c)return;const v=Ze.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),w={data:!a||a==="text"||a==="json"?c.responseText:c.response,status:c.status,statusText:c.statusText,headers:v,config:e,request:c};dv(function(x){n(x),u()},function(x){r(x),u()},w),c=null}"onloadend"in c?c.onloadend=d:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(d)},c.onabort=function(){c&&(r(new V("Request aborted",V.ECONNABORTED,i,c)),c=null)},c.onerror=function(){r(new V("Network Error",V.ERR_NETWORK,i,c)),c=null},c.ontimeout=function(){let y=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const w=i.transitional||lv;i.timeoutErrorMessage&&(y=i.timeoutErrorMessage),r(new V(y,w.clarifyTimeoutError?V.ETIMEDOUT:V.ECONNABORTED,i,c)),c=null},s===void 0&&o.setContentType(null),"setRequestHeader"in c&&k.forEach(o.toJSON(),function(y,w){c.setRequestHeader(w,y)}),k.isUndefined(i.withCredentials)||(c.withCredentials=!!i.withCredentials),a&&a!=="json"&&(c.responseType=i.responseType),typeof i.onDownloadProgress=="function"&&c.addEventListener("progress",ea(i.onDownloadProgress,!0)),typeof i.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",ea(i.onUploadProgress)),(i.cancelToken||i.signal)&&(l=v=>{c&&(r(!v||v.type?new di(null,e,c):v),c.abort(),c=null)},i.cancelToken&&i.cancelToken.subscribe(l),i.signal&&(i.signal.aborted?l():i.signal.addEventListener("abort",l)));const p=aT(i.url);if(p&&jt.protocols.indexOf(p)===-1){r(new V("Unsupported protocol "+p+":",V.ERR_BAD_REQUEST,e));return}c.send(s||null)})},gT=(e,t)=>{let n=new AbortController,r;const i=function(l){if(!r){r=!0,o();const u=l instanceof Error?l:this.reason;n.abort(u instanceof V?u:new di(u instanceof Error?u.message:u))}};let s=t&&setTimeout(()=>{i(new V(`timeout ${t} of ms exceeded`,V.ETIMEDOUT))},t);const o=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(l=>{l&&(l.removeEventListener?l.removeEventListener("abort",i):l.unsubscribe(i))}),e=null)};e.forEach(l=>l&&l.addEventListener&&l.addEventListener("abort",i));const{signal:a}=n;return a.unsubscribe=o,[a,()=>{s&&clearTimeout(s),s=null}]},yT=function*(e,t){let n=e.byteLength;if(!t||n{const s=vT(e,t,i);let o=0;return new ReadableStream({type:"bytes",async pull(a){const{done:l,value:u}=await s.next();if(l){a.close(),r();return}let c=u.byteLength;n&&n(o+=c),a.enqueue(new Uint8Array(u))},cancel(a){return r(a),s.return()}},{highWaterMark:2})},Kp=(e,t)=>{const n=e!=null;return r=>setTimeout(()=>t({lengthComputable:n,total:e,loaded:r}))},_a=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",hv=_a&&typeof ReadableStream=="function",Gu=_a&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),xT=hv&&(()=>{let e=!1;const t=new Request(jt.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})(),Gp=64*1024,Yu=hv&&!!(()=>{try{return k.isReadableStream(new Response("").body)}catch{}})(),ta={stream:Yu&&(e=>e.body)};_a&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!ta[t]&&(ta[t]=k.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new V(`Response type '${t}' is not supported`,V.ERR_NOT_SUPPORT,r)})})})(new Response);const wT=async e=>{if(e==null)return 0;if(k.isBlob(e))return e.size;if(k.isSpecCompliantForm(e))return(await new Request(e).arrayBuffer()).byteLength;if(k.isArrayBufferView(e))return e.byteLength;if(k.isURLSearchParams(e)&&(e=e+""),k.isString(e))return(await Gu(e)).byteLength},ST=async(e,t)=>{const n=k.toFiniteNumber(e.getContentLength());return n??wT(t)},CT=_a&&(async e=>{let{url:t,method:n,data:r,signal:i,cancelToken:s,timeout:o,onDownloadProgress:a,onUploadProgress:l,responseType:u,headers:c,withCredentials:d="same-origin",fetchOptions:p}=pv(e);u=u?(u+"").toLowerCase():"text";let[v,y]=i||s||o?gT([i,s],o):[],w,S;const x=()=>{!w&&setTimeout(()=>{v&&v.unsubscribe()}),w=!0};let m;try{if(l&&xT&&n!=="get"&&n!=="head"&&(m=await ST(c,r))!==0){let E=new Request(t,{method:"POST",body:r,duplex:"half"}),P;k.isFormData(r)&&(P=E.headers.get("content-type"))&&c.setContentType(P),E.body&&(r=Wp(E.body,Gp,Kp(m,ea(l)),null,Gu))}k.isString(d)||(d=d?"cors":"omit"),S=new Request(t,{...p,signal:v,method:n.toUpperCase(),headers:c.normalize().toJSON(),body:r,duplex:"half",withCredentials:d});let g=await fetch(S);const C=Yu&&(u==="stream"||u==="response");if(Yu&&(a||C)){const E={};["status","statusText","headers"].forEach(j=>{E[j]=g[j]});const P=k.toFiniteNumber(g.headers.get("content-length"));g=new Response(Wp(g.body,Gp,a&&Kp(P,ea(a,!0)),C&&x,Gu),E)}u=u||"text";let T=await ta[k.findKey(ta,u)||"text"](g,e);return!C&&x(),y&&y(),await new Promise((E,P)=>{dv(E,P,{data:T,headers:Ze.from(g.headers),status:g.status,statusText:g.statusText,config:e,request:S})})}catch(g){throw x(),g&&g.name==="TypeError"&&/fetch/i.test(g.message)?Object.assign(new V("Network Error",V.ERR_NETWORK,e,S),{cause:g.cause||g}):V.from(g,g&&g.code,e,S)}}),Qu={http:VE,xhr:mT,fetch:CT};k.forEach(Qu,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Yp=e=>`- ${e}`,ET=e=>k.isFunction(e)||e===null||e===!1,mv={getAdapter:e=>{e=k.isArray(e)?e:[e];const{length:t}=e;let n,r;const i={};for(let s=0;s`adapter ${a} `+(l===!1?"is not supported by the environment":"is not available in the build"));let o=t?s.length>1?`since : `+s.map(Yp).join(` `):" "+Yp(s[0]):"as no adapter specified";throw new V("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return r},adapters:Qu};function Rl(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new di(null,e)}function Qp(e){return Rl(e),e.headers=Ze.from(e.headers),e.data=Pl.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),mv.getAdapter(e.adapter||Os.adapter)(e).then(function(r){return Rl(e),r.data=Pl.call(e,e.transformResponse,r),r.headers=Ze.from(r.headers),r},function(r){return cv(r)||(Rl(e),r&&r.response&&(r.response.data=Pl.call(e,e.transformResponse,r.response),r.response.headers=Ze.from(r.response.headers))),Promise.reject(r)})}const gv="1.7.2",Td={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Td[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Xp={};Td.transitional=function(t,n,r){function i(s,o){return"[Axios v"+gv+"] Transitional option '"+s+"'"+o+(r?". "+r:"")}return(s,o,a)=>{if(t===!1)throw new V(i(o," has been removed"+(n?" in "+n:"")),V.ERR_DEPRECATED);return n&&!Xp[o]&&(Xp[o]=!0,console.warn(i(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(s,o,a):!0}};function TT(e,t,n){if(typeof e!="object")throw new V("options must be an object",V.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const s=r[i],o=t[s];if(o){const a=e[s],l=a===void 0||o(a,s,e);if(l!==!0)throw new V("option "+s+" must be "+l,V.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new V("Unknown option "+s,V.ERR_BAD_OPTION)}}const Xu={assertOptions:TT,validators:Td},dn=Xu.validators;class tr{constructor(t){this.defaults=t,this.interceptors={request:new Up,response:new Up}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let i;Error.captureStackTrace?Error.captureStackTrace(i={}):i=new Error;const s=i.stack?i.stack.replace(/^.+\n/,""):"";try{r.stack?s&&!String(r.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(r.stack+=` -`+s):r.stack=s}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=ur(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:s}=n;r!==void 0&&Xu.assertOptions(r,{silentJSONParsing:dn.transitional(dn.boolean),forcedJSONParsing:dn.transitional(dn.boolean),clarifyTimeoutError:dn.transitional(dn.boolean)},!1),i!=null&&(k.isFunction(i)?n.paramsSerializer={serialize:i}:Xu.assertOptions(i,{encode:dn.function,serialize:dn.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=s&&k.merge(s.common,s[n.method]);s&&k.forEach(["delete","get","head","post","put","patch","common"],y=>{delete s[y]}),n.headers=Ze.concat(o,s);const a=[];let l=!0;this.interceptors.request.forEach(function(w){typeof w.runWhen=="function"&&w.runWhen(n)===!1||(l=l&&w.synchronous,a.unshift(w.fulfilled,w.rejected))});const u=[];this.interceptors.response.forEach(function(w){u.push(w.fulfilled,w.rejected)});let c,d=0,p;if(!l){const y=[Qp.bind(this),void 0];for(y.unshift.apply(y,a),y.push.apply(y,u),p=y.length,c=Promise.resolve(n);d{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](i);r._listeners=null}),this.promise.then=i=>{let s;const o=new Promise(a=>{r.subscribe(a),s=a}).then(i);return o.cancel=function(){r.unsubscribe(s)},o},t(function(s,o,a){r.reason||(r.reason=new di(s,o,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new kd(function(i){t=i}),cancel:t}}}function kT(e){return function(n){return e.apply(null,n)}}function jT(e){return k.isObject(e)&&e.isAxiosError===!0}const qu={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(qu).forEach(([e,t])=>{qu[t]=e});function yv(e){const t=new tr(e),n=Qy(tr.prototype.request,t);return k.extend(n,tr.prototype,t,{allOwnKeys:!0}),k.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return yv(ur(e,i))},n}const he=yv(Os);he.Axios=tr;he.CanceledError=di;he.CancelToken=kd;he.isCancel=cv;he.VERSION=gv;he.toFormData=Da;he.AxiosError=V;he.Cancel=he.CanceledError;he.all=function(t){return Promise.all(t)};he.spread=kT;he.isAxiosError=jT;he.mergeConfig=ur;he.AxiosHeaders=Ze;he.formToJSON=e=>uv(k.isHTMLForm(e)?new FormData(e):e);he.getAdapter=mv.getAdapter;he.HttpStatusCode=qu;he.default=he;var Ut;class PT{constructor(t){Vs(this,Ut);Bs(this,Ut,he.create({baseURL:t}))}getInstance(){return Se(this,Ut)}async login(t){try{return await Se(this,Ut).post("/login",t,{withCredentials:!0})}catch(n){return n.message}}async logout(){try{return await Se(this,Ut).put("/logout",{},{withCredentials:!0})}catch(t){return t.message}}async register(t){try{return await Se(this,Ut).post("/register",t)}catch(n){return n.message}}async authenticate(){try{return await Se(this,Ut).post("/",{},{withCredentials:!0})}catch(t){return t.message}}}Ut=new WeakMap;var RT={VITE_API_ENDPOINT:"https://simplifica-backend-spring-smoke-3356.fly.dev/",BASE_URL:"/simplifica/",MODE:"prod",DEV:!1,PROD:!0,SSR:!1};const vv=h.createContext(),xv=({children:e})=>{const[t,n]=eE("user",null),r=ui(),{VITE_API_ENDPOINT:i}=RT,s=new PT(i),o=async()=>{try{const d=await s.authenticate();return d.status>=300&&n(null),d}catch(d){console.log(d.message)}},a=async d=>{try{const p=await s.login(d);return p.status===200&&p.data.user._id&&setTimeout(()=>{n(p.data.user)},2e3),p}catch(p){console.log(p.message)}},l=async()=>{try{const d=await s.logout();return n(null),r("/"),d}catch(d){console.log(d.message)}},u=async d=>{try{const p=await s.register(d);return p.status===201&&setTimeout(()=>{r("/login")},3e3),p}catch(p){console.log(p.message)}},c=h.useMemo(()=>({user:t,signIn:a,signOut:l,register:u,authenticate:o}),[t]);return f.jsx(vv.Provider,{value:c,children:e})},an=()=>h.useContext(vv);xv.propTypes={children:$.element};var wv={exports:{}};/*! +`+s):r.stack=s}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=ur(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:s}=n;r!==void 0&&Xu.assertOptions(r,{silentJSONParsing:dn.transitional(dn.boolean),forcedJSONParsing:dn.transitional(dn.boolean),clarifyTimeoutError:dn.transitional(dn.boolean)},!1),i!=null&&(k.isFunction(i)?n.paramsSerializer={serialize:i}:Xu.assertOptions(i,{encode:dn.function,serialize:dn.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=s&&k.merge(s.common,s[n.method]);s&&k.forEach(["delete","get","head","post","put","patch","common"],y=>{delete s[y]}),n.headers=Ze.concat(o,s);const a=[];let l=!0;this.interceptors.request.forEach(function(w){typeof w.runWhen=="function"&&w.runWhen(n)===!1||(l=l&&w.synchronous,a.unshift(w.fulfilled,w.rejected))});const u=[];this.interceptors.response.forEach(function(w){u.push(w.fulfilled,w.rejected)});let c,d=0,p;if(!l){const y=[Qp.bind(this),void 0];for(y.unshift.apply(y,a),y.push.apply(y,u),p=y.length,c=Promise.resolve(n);d{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](i);r._listeners=null}),this.promise.then=i=>{let s;const o=new Promise(a=>{r.subscribe(a),s=a}).then(i);return o.cancel=function(){r.unsubscribe(s)},o},t(function(s,o,a){r.reason||(r.reason=new di(s,o,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new kd(function(i){t=i}),cancel:t}}}function kT(e){return function(n){return e.apply(null,n)}}function jT(e){return k.isObject(e)&&e.isAxiosError===!0}const qu={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(qu).forEach(([e,t])=>{qu[t]=e});function yv(e){const t=new tr(e),n=Qy(tr.prototype.request,t);return k.extend(n,tr.prototype,t,{allOwnKeys:!0}),k.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return yv(ur(e,i))},n}const he=yv(Os);he.Axios=tr;he.CanceledError=di;he.CancelToken=kd;he.isCancel=cv;he.VERSION=gv;he.toFormData=Ma;he.AxiosError=V;he.Cancel=he.CanceledError;he.all=function(t){return Promise.all(t)};he.spread=kT;he.isAxiosError=jT;he.mergeConfig=ur;he.AxiosHeaders=Ze;he.formToJSON=e=>uv(k.isHTMLForm(e)?new FormData(e):e);he.getAdapter=mv.getAdapter;he.HttpStatusCode=qu;he.default=he;var Ut;class PT{constructor(t){Vs(this,Ut);Bs(this,Ut,he.create({baseURL:t}))}getInstance(){return Se(this,Ut)}async login(t){try{return await Se(this,Ut).post("/login",t,{withCredentials:!0})}catch(n){return n.message}}async logout(){try{return await Se(this,Ut).put("/logout",{},{withCredentials:!0})}catch(t){return t.message}}async register(t){try{return await Se(this,Ut).post("/register",t)}catch(n){return n.message}}async authenticate(){try{return await Se(this,Ut).post("/",{},{withCredentials:!0})}catch(t){return t.message}}}Ut=new WeakMap;var RT={BASE_URL:"/simplifica/",MODE:"prod",DEV:!1,PROD:!0,SSR:!1};const vv=h.createContext(),xv=({children:e})=>{const[t,n]=eE("user",null),r=ui(),{VITE_API_ENDPOINT:i}=RT,s=new PT(i),o=async()=>{try{const d=await s.authenticate();return d.status>=300&&n(null),d}catch(d){console.log(d.message)}},a=async d=>{try{const p=await s.login(d);return p.status===200&&p.data.user._id&&setTimeout(()=>{n(p.data.user)},2e3),p}catch(p){console.log(p.message)}},l=async()=>{try{const d=await s.logout();return n(null),r("/"),d}catch(d){console.log(d.message)}},u=async d=>{try{const p=await s.register(d);return p.status===201&&setTimeout(()=>{r("/login")},3e3),p}catch(p){console.log(p.message)}},c=h.useMemo(()=>({user:t,signIn:a,signOut:l,register:u,authenticate:o}),[t]);return f.jsx(vv.Provider,{value:c,children:e})},an=()=>h.useContext(vv);xv.propTypes={children:$.element};var wv={exports:{}};/*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames -*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var s="",o=0;oe!=null?String(e):t||null,cr=OT;function Ju(){return Ju=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)continue;n[r]=e[r]}return n}function qp(e){return"default"+e.charAt(0).toUpperCase()+e.substr(1)}function LT(e){var t=AT(e,"string");return typeof t=="symbol"?t:String(t)}function AT(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function bT(e,t,n){var r=h.useRef(e!==void 0),i=h.useState(t),s=i[0],o=i[1],a=e!==void 0,l=r.current;return r.current=a,!a&&l&&s!==t&&o(t),[a?e:s,h.useCallback(function(u){for(var c=arguments.length,d=new Array(c>1?c-1:0),p=1;p{e=M(e,"navbar-brand");const s=n||(r.href?"a":"span");return f.jsx(s,{...r,ref:i,className:A(t,e)})});kv.displayName="NavbarBrand";function Fa(e){return e&&e.ownerDocument||document}function IT(e){var t=Fa(e);return t&&t.defaultView||window}function _T(e,t){return IT(e).getComputedStyle(e,t)}var FT=/([A-Z])/g;function VT(e){return e.replace(FT,"-$1").toLowerCase()}var BT=/^ms-/;function io(e){return VT(e).replace(BT,"-ms-")}var $T=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;function UT(e){return!!(e&&$T.test(e))}function Yt(e,t){var n="",r="";if(typeof t=="string")return e.style.getPropertyValue(io(t))||_T(e).getPropertyValue(io(t));Object.keys(t).forEach(function(i){var s=t[i];!s&&s!==0?e.style.removeProperty(io(i)):UT(i)?r+=i+"("+s+") ":n+=io(i)+": "+s+";"}),r&&(n+="transform: "+r+";"),e.style.cssText+=";"+n}const Jp={disabled:!1},jv=Ee.createContext(null);var zT=function(t){return t.scrollTop},Di="unmounted",gn="exited",pt="entering",zt="entered",ei="exiting",ln=function(e){MT(t,e);function t(r,i){var s;s=e.call(this,r,i)||this;var o=i,a=o&&!o.isMounting?r.enter:r.appear,l;return s.appearStatus=null,r.in?a?(l=gn,s.appearStatus=pt):l=zt:r.unmountOnExit||r.mountOnEnter?l=Di:l=gn,s.state={status:l},s.nextCallback=null,s}t.getDerivedStateFromProps=function(i,s){var o=i.in;return o&&s.status===Di?{status:gn}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var s=null;if(i!==this.props){var o=this.state.status;this.props.in?o!==pt&&o!==zt&&(s=pt):(o===pt||o===zt)&&(s=ei)}this.updateStatus(!1,s)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,s,o,a;return s=o=a=i,i!=null&&typeof i!="number"&&(s=i.exit,o=i.enter,a=i.appear!==void 0?i.appear:o),{exit:s,enter:o,appear:a}},n.updateStatus=function(i,s){if(i===void 0&&(i=!1),s!==null)if(this.cancelNextCallback(),s===pt){if(this.props.unmountOnExit||this.props.mountOnEnter){var o=this.props.nodeRef?this.props.nodeRef.current:Ir.findDOMNode(this);o&&zT(o)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===gn&&this.setState({status:Di})},n.performEnter=function(i){var s=this,o=this.props.enter,a=this.context?this.context.isMounting:i,l=this.props.nodeRef?[a]:[Ir.findDOMNode(this),a],u=l[0],c=l[1],d=this.getTimeouts(),p=a?d.appear:d.enter;if(!i&&!o||Jp.disabled){this.safeSetState({status:zt},function(){s.props.onEntered(u)});return}this.props.onEnter(u,c),this.safeSetState({status:pt},function(){s.props.onEntering(u,c),s.onTransitionEnd(p,function(){s.safeSetState({status:zt},function(){s.props.onEntered(u,c)})})})},n.performExit=function(){var i=this,s=this.props.exit,o=this.getTimeouts(),a=this.props.nodeRef?void 0:Ir.findDOMNode(this);if(!s||Jp.disabled){this.safeSetState({status:gn},function(){i.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:ei},function(){i.props.onExiting(a),i.onTransitionEnd(o.exit,function(){i.safeSetState({status:gn},function(){i.props.onExited(a)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,s){s=this.setNextCallback(s),this.setState(i,s)},n.setNextCallback=function(i){var s=this,o=!0;return this.nextCallback=function(a){o&&(o=!1,s.nextCallback=null,i(a))},this.nextCallback.cancel=function(){o=!1},this.nextCallback},n.onTransitionEnd=function(i,s){this.setNextCallback(s);var o=this.props.nodeRef?this.props.nodeRef.current:Ir.findDOMNode(this),a=i==null&&!this.props.addEndListener;if(!o||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[o,this.nextCallback],u=l[0],c=l[1];this.props.addEndListener(u,c)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===Di)return null;var s=this.props,o=s.children;s.in,s.mountOnEnter,s.unmountOnExit,s.appear,s.enter,s.exit,s.timeout,s.addEndListener,s.onEnter,s.onEntering,s.onEntered,s.onExit,s.onExiting,s.onExited,s.nodeRef;var a=Sv(s,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Ee.createElement(jv.Provider,{value:null},typeof o=="function"?o(i,a):Ee.cloneElement(Ee.Children.only(o),a))},t}(Ee.Component);ln.contextType=jv;ln.propTypes={};function Cr(){}ln.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Cr,onEntering:Cr,onEntered:Cr,onExit:Cr,onExiting:Cr,onExited:Cr};ln.UNMOUNTED=Di;ln.EXITED=gn;ln.ENTERING=pt;ln.ENTERED=zt;ln.EXITING=ei;const fi=!!(typeof window<"u"&&window.document&&window.document.createElement);var ec=!1,tc=!1;try{var Nl={get passive(){return ec=!0},get once(){return tc=ec=!0}};fi&&(window.addEventListener("test",Nl,Nl),window.removeEventListener("test",Nl,!0))}catch{}function Pv(e,t,n,r){if(r&&typeof r!="boolean"&&!tc){var i=r.once,s=r.capture,o=n;!tc&&i&&(o=n.__once||function a(l){this.removeEventListener(t,a,s),n.call(this,l)},n.__once=o),e.addEventListener(t,o,ec?r:s)}e.addEventListener(t,n,r)}function nc(e,t,n,r){var i=r&&typeof r!="boolean"?r.capture:r;e.removeEventListener(t,n,i),n.__once&&e.removeEventListener(t,n.__once,i)}function na(e,t,n,r){return Pv(e,t,n,r),function(){nc(e,t,n,r)}}function HT(e,t,n,r){if(r===void 0&&(r=!0),e){var i=document.createEvent("HTMLEvents");i.initEvent(t,n,r),e.dispatchEvent(i)}}function WT(e){var t=Yt(e,"transitionDuration")||"",n=t.indexOf("ms")===-1?1e3:1;return parseFloat(t)*n}function KT(e,t,n){n===void 0&&(n=5);var r=!1,i=setTimeout(function(){r||HT(e,"transitionend",!0)},t+n),s=na(e,"transitionend",function(){r=!0},{once:!0});return function(){clearTimeout(i),s()}}function Rv(e,t,n,r){n==null&&(n=WT(e)||0);var i=KT(e,n,r),s=na(e,"transitionend",t);return function(){i(),s()}}function Zp(e,t){const n=Yt(e,t)||"",r=n.indexOf("ms")===-1?1e3:1;return parseFloat(n)*r}function Rd(e,t){const n=Zp(e,"transitionDuration"),r=Zp(e,"transitionDelay"),i=Rv(e,s=>{s.target===e&&(i(),t(s))},n+r)}function Ri(...e){return e.filter(t=>t!=null).reduce((t,n)=>{if(typeof n!="function")throw new Error("Invalid Argument Type, must only provide functions, undefined, or null.");return t===null?n:function(...i){t.apply(this,i),n.apply(this,i)}},null)}function Nv(e){e.offsetHeight}const eh=e=>!e||typeof e=="function"?e:t=>{e.current=t};function GT(e,t){const n=eh(e),r=eh(t);return i=>{n&&n(i),r&&r(i)}}function pi(e,t){return h.useMemo(()=>GT(e,t),[e,t])}function YT(e){return e&&"setState"in e?Ir.findDOMNode(e):e??null}const Nd=Ee.forwardRef(({onEnter:e,onEntering:t,onEntered:n,onExit:r,onExiting:i,onExited:s,addEndListener:o,children:a,childRef:l,...u},c)=>{const d=h.useRef(null),p=pi(d,l),v=E=>{p(YT(E))},y=E=>P=>{E&&d.current&&E(d.current,P)},w=h.useCallback(y(e),[e]),S=h.useCallback(y(t),[t]),x=h.useCallback(y(n),[n]),m=h.useCallback(y(r),[r]),g=h.useCallback(y(i),[i]),C=h.useCallback(y(s),[s]),T=h.useCallback(y(o),[o]);return f.jsx(ln,{ref:c,...u,onEnter:w,onEntered:x,onEntering:S,onExit:m,onExited:C,onExiting:g,addEndListener:T,nodeRef:d,children:typeof a=="function"?(E,P)=>a(E,{...P,ref:v}):Ee.cloneElement(a,{ref:v})})}),QT={height:["marginTop","marginBottom"],width:["marginLeft","marginRight"]};function XT(e,t){const n=`offset${e[0].toUpperCase()}${e.slice(1)}`,r=t[n],i=QT[e];return r+parseInt(Yt(t,i[0]),10)+parseInt(Yt(t,i[1]),10)}const qT={[gn]:"collapse",[ei]:"collapsing",[pt]:"collapsing",[zt]:"collapse show"},JT=Ee.forwardRef(({onEnter:e,onEntering:t,onEntered:n,onExit:r,onExiting:i,className:s,children:o,dimension:a="height",in:l=!1,timeout:u=300,mountOnEnter:c=!1,unmountOnExit:d=!1,appear:p=!1,getDimensionValue:v=XT,...y},w)=>{const S=typeof a=="function"?a():a,x=h.useMemo(()=>Ri(E=>{E.style[S]="0"},e),[S,e]),m=h.useMemo(()=>Ri(E=>{const P=`scroll${S[0].toUpperCase()}${S.slice(1)}`;E.style[S]=`${E[P]}px`},t),[S,t]),g=h.useMemo(()=>Ri(E=>{E.style[S]=null},n),[S,n]),C=h.useMemo(()=>Ri(E=>{E.style[S]=`${v(S,E)}px`,Nv(E)},r),[r,v,S]),T=h.useMemo(()=>Ri(E=>{E.style[S]=null},i),[S,i]);return f.jsx(Nd,{ref:w,addEndListener:Rd,...y,"aria-expanded":y.role?l:null,onEnter:x,onEntering:m,onEntered:g,onExit:C,onExiting:T,childRef:o.ref,in:l,timeout:u,mountOnEnter:c,unmountOnExit:d,appear:p,children:(E,P)=>Ee.cloneElement(o,{...P,className:A(s,o.props.className,qT[E],S==="width"&&"collapse-horizontal")})})}),pr=h.createContext(null);pr.displayName="NavbarContext";const Ov=h.forwardRef(({children:e,bsPrefix:t,...n},r)=>{t=M(t,"navbar-collapse");const i=h.useContext(pr);return f.jsx(JT,{in:!!(i&&i.expanded),...n,children:f.jsx("div",{ref:r,className:t,children:e})})});Ov.displayName="NavbarCollapse";function ZT(e){const t=h.useRef(e);return h.useEffect(()=>{t.current=e},[e]),t}function ze(e){const t=ZT(e);return h.useCallback(function(...n){return t.current&&t.current(...n)},[t])}const Lv=h.forwardRef(({bsPrefix:e,className:t,children:n,label:r="Toggle navigation",as:i="button",onClick:s,...o},a)=>{e=M(e,"navbar-toggler");const{onToggle:l,expanded:u}=h.useContext(pr)||{},c=ze(d=>{s&&s(d),l&&l()});return i==="button"&&(o.type="button"),f.jsx(i,{...o,ref:a,onClick:c,"aria-label":r,className:A(t,e,!u&&"collapsed"),children:n||f.jsx("span",{className:`${e}-icon`})})});Lv.displayName="NavbarToggle";const ek=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",tk=typeof document<"u",rc=tk||ek?h.useLayoutEffect:h.useEffect,ic=new WeakMap,th=(e,t)=>{if(!e||!t)return;const n=ic.get(t)||new Map;ic.set(t,n);let r=n.get(e);return r||(r=t.matchMedia(e),r.refCount=0,n.set(r.media,r)),r};function nk(e,t=typeof window>"u"?void 0:window){const n=th(e,t),[r,i]=h.useState(()=>n?n.matches:!1);return rc(()=>{let s=th(e,t);if(!s)return i(!1);let o=ic.get(t);const a=()=>{i(s.matches)};return s.refCount++,s.addListener(a),a(),()=>{s.removeListener(a),s.refCount--,s.refCount<=0&&(o==null||o.delete(s.media)),s=void 0}},[e]),r}function rk(e){const t=Object.keys(e);function n(a,l){return a===l?l:a?`${a} and ${l}`:l}function r(a){return t[Math.min(t.indexOf(a)+1,t.length-1)]}function i(a){const l=r(a);let u=e[l];return typeof u=="number"?u=`${u-.2}px`:u=`calc(${u} - 0.2px)`,`(max-width: ${u})`}function s(a){let l=e[a];return typeof l=="number"&&(l=`${l}px`),`(min-width: ${l})`}function o(a,l,u){let c;typeof a=="object"?(c=a,u=l,l=!0):(l=l||!0,c={[a]:l});let d=h.useMemo(()=>Object.entries(c).reduce((p,[v,y])=>((y==="up"||y===!0)&&(p=n(p,s(v))),(y==="down"||y===!0)&&(p=n(p,i(v))),p),""),[JSON.stringify(c)]);return nk(d,u)}return o}const ik=rk({xs:0,sm:576,md:768,lg:992,xl:1200,xxl:1400});function Ol(e){e===void 0&&(e=Fa());try{var t=e.activeElement;return!t||!t.nodeName?null:t}catch{return e.body}}function nh(e,t){if(e.contains)return e.contains(t);if(e.compareDocumentPosition)return e===t||!!(e.compareDocumentPosition(t)&16)}function Av(){const e=h.useRef(!0),t=h.useRef(()=>e.current);return h.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),t.current}function sk(e){const t=h.useRef(e);return t.current=e,t}function Od(e){const t=sk(e);h.useEffect(()=>()=>t.current(),[])}function ok(e){const t=h.useRef(null);return h.useEffect(()=>{t.current=e}),t.current}const ak="data-rr-ui-",lk="rrUi";function Va(e){return`${ak}${e}`}function uk(e){return`${lk}${e}`}function ck(e=document){const t=e.defaultView;return Math.abs(t.innerWidth-e.documentElement.clientWidth)}const rh=Va("modal-open");class Ld{constructor({ownerDocument:t,handleContainerOverflow:n=!0,isRTL:r=!1}={}){this.handleContainerOverflow=n,this.isRTL=r,this.modals=[],this.ownerDocument=t}getScrollbarWidth(){return ck(this.ownerDocument)}getElement(){return(this.ownerDocument||document).body}setModalAttributes(t){}removeModalAttributes(t){}setContainerStyle(t){const n={overflow:"hidden"},r=this.isRTL?"paddingLeft":"paddingRight",i=this.getElement();t.style={overflow:i.style.overflow,[r]:i.style[r]},t.scrollBarWidth&&(n[r]=`${parseInt(Yt(i,r)||"0",10)+t.scrollBarWidth}px`),i.setAttribute(rh,""),Yt(i,n)}reset(){[...this.modals].forEach(t=>this.remove(t))}removeContainerStyle(t){const n=this.getElement();n.removeAttribute(rh),Object.assign(n.style,t.style)}add(t){let n=this.modals.indexOf(t);return n!==-1||(n=this.modals.length,this.modals.push(t),this.setModalAttributes(t),n!==0)||(this.state={scrollBarWidth:this.getScrollbarWidth(),style:{}},this.handleContainerOverflow&&this.setContainerStyle(this.state)),n}remove(t){const n=this.modals.indexOf(t);n!==-1&&(this.modals.splice(n,1),!this.modals.length&&this.handleContainerOverflow&&this.removeContainerStyle(this.state),this.removeModalAttributes(t))}isTopModal(t){return!!this.modals.length&&this.modals[this.modals.length-1]===t}}const bv=h.createContext(fi?window:void 0);bv.Provider;function Ad(){return h.useContext(bv)}const Ll=(e,t)=>fi?e==null?(t||Fa()).body:(typeof e=="function"&&(e=e()),e&&"current"in e&&(e=e.current),e&&("nodeType"in e||e.getBoundingClientRect)?e:null):null;function dk(e,t){const n=Ad(),[r,i]=h.useState(()=>Ll(e,n==null?void 0:n.document));if(!r){const s=Ll(e);s&&i(s)}return h.useEffect(()=>{},[t,r]),h.useEffect(()=>{const s=Ll(e);s!==r&&i(s)},[e,r]),r}function bd({children:e,in:t,onExited:n,mountOnEnter:r,unmountOnExit:i}){const s=h.useRef(null),o=h.useRef(t),a=ze(n);h.useEffect(()=>{t?o.current=!0:a(s.current)},[t,a]);const l=pi(s,e.ref),u=h.cloneElement(e,{ref:l});return t?u:i||!o.current&&r?null:u}function fk(e){return e.code==="Escape"||e.keyCode===27}function pk(){const e=h.version.split(".");return{major:+e[0],minor:+e[1],patch:+e[2]}}const hk=["onEnter","onEntering","onEntered","onExit","onExiting","onExited","addEndListener","children"];function mk(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,s;for(s=0;s=0)&&(n[i]=e[i]);return n}function gk(e){let{onEnter:t,onEntering:n,onEntered:r,onExit:i,onExiting:s,onExited:o,addEndListener:a,children:l}=e,u=mk(e,hk);const{major:c}=pk(),d=c>=19?l.props.ref:l.ref,p=h.useRef(null),v=pi(p,typeof l=="function"?null:d),y=E=>P=>{E&&p.current&&E(p.current,P)},w=h.useCallback(y(t),[t]),S=h.useCallback(y(n),[n]),x=h.useCallback(y(r),[r]),m=h.useCallback(y(i),[i]),g=h.useCallback(y(s),[s]),C=h.useCallback(y(o),[o]),T=h.useCallback(y(a),[a]);return Object.assign({},u,{nodeRef:p},t&&{onEnter:w},n&&{onEntering:S},r&&{onEntered:x},i&&{onExit:m},s&&{onExiting:g},o&&{onExited:C},a&&{addEndListener:T},{children:typeof l=="function"?(E,P)=>l(E,Object.assign({},P,{ref:v})):h.cloneElement(l,{ref:v})})}const yk=["component"];function vk(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,s;for(s=0;s=0)&&(n[i]=e[i]);return n}const xk=h.forwardRef((e,t)=>{let{component:n}=e,r=vk(e,yk);const i=gk(r);return f.jsx(n,Object.assign({ref:t},i))});function wk({in:e,onTransition:t}){const n=h.useRef(null),r=h.useRef(!0),i=ze(t);return rc(()=>{if(!n.current)return;let s=!1;return i({in:e,element:n.current,initial:r.current,isStale:()=>s}),()=>{s=!0}},[e,i]),rc(()=>(r.current=!1,()=>{r.current=!0}),[]),n}function Sk({children:e,in:t,onExited:n,onEntered:r,transition:i}){const[s,o]=h.useState(!t);t&&s&&o(!1);const a=wk({in:!!t,onTransition:u=>{const c=()=>{u.isStale()||(u.in?r==null||r(u.element,u.initial):(o(!0),n==null||n(u.element)))};Promise.resolve(i(u)).then(c,d=>{throw u.in||o(!0),d})}}),l=pi(a,e.ref);return s&&!t?null:h.cloneElement(e,{ref:l})}function ih(e,t,n){return e?f.jsx(xk,Object.assign({},n,{component:e})):t?f.jsx(Sk,Object.assign({},n,{transition:t})):f.jsx(bd,Object.assign({},n))}const Ck=["show","role","className","style","children","backdrop","keyboard","onBackdropClick","onEscapeKeyDown","transition","runTransition","backdropTransition","runBackdropTransition","autoFocus","enforceFocus","restoreFocus","restoreFocusOptions","renderDialog","renderBackdrop","manager","container","onShow","onHide","onExit","onExited","onExiting","onEnter","onEntering","onEntered"];function Ek(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,s;for(s=0;s=0)&&(n[i]=e[i]);return n}let Al;function Tk(e){return Al||(Al=new Ld({ownerDocument:e==null?void 0:e.document})),Al}function kk(e){const t=Ad(),n=e||Tk(t),r=h.useRef({dialog:null,backdrop:null});return Object.assign(r.current,{add:()=>n.add(r.current),remove:()=>n.remove(r.current),isTopModal:()=>n.isTopModal(r.current),setDialogRef:h.useCallback(i=>{r.current.dialog=i},[]),setBackdropRef:h.useCallback(i=>{r.current.backdrop=i},[])})}const Mv=h.forwardRef((e,t)=>{let{show:n=!1,role:r="dialog",className:i,style:s,children:o,backdrop:a=!0,keyboard:l=!0,onBackdropClick:u,onEscapeKeyDown:c,transition:d,runTransition:p,backdropTransition:v,runBackdropTransition:y,autoFocus:w=!0,enforceFocus:S=!0,restoreFocus:x=!0,restoreFocusOptions:m,renderDialog:g,renderBackdrop:C=re=>f.jsx("div",Object.assign({},re)),manager:T,container:E,onShow:P,onHide:j=()=>{},onExit:I,onExited:b,onExiting:X,onEnter:Ve,onEntering:Le,onEntered:et}=e,te=Ek(e,Ck);const ne=Ad(),ke=dk(E),N=kk(T),_=Av(),F=ok(n),[H,q]=h.useState(!n),je=h.useRef(null);h.useImperativeHandle(t,()=>N,[N]),fi&&!F&&n&&(je.current=Ol(ne==null?void 0:ne.document)),n&&H&&q(!1);const ye=ze(()=>{if(N.add(),yr.current=na(document,"keydown",qa),gi.current=na(document,"focus",()=>setTimeout(Be),!0),P&&P(),w){var re,Fs;const vi=Ol((re=(Fs=N.dialog)==null?void 0:Fs.ownerDocument)!=null?re:ne==null?void 0:ne.document);N.dialog&&vi&&!nh(N.dialog,vi)&&(je.current=vi,N.dialog.focus())}}),me=ze(()=>{if(N.remove(),yr.current==null||yr.current(),gi.current==null||gi.current(),x){var re;(re=je.current)==null||re.focus==null||re.focus(m),je.current=null}});h.useEffect(()=>{!n||!ke||ye()},[n,ke,ye]),h.useEffect(()=>{H&&me()},[H,me]),Od(()=>{me()});const Be=ze(()=>{if(!S||!_()||!N.isTopModal())return;const re=Ol(ne==null?void 0:ne.document);N.dialog&&re&&!nh(N.dialog,re)&&N.dialog.focus()}),Vt=ze(re=>{re.target===re.currentTarget&&(u==null||u(re),a===!0&&j())}),qa=ze(re=>{l&&fk(re)&&N.isTopModal()&&(c==null||c(re),re.defaultPrevented||j())}),gi=h.useRef(),yr=h.useRef(),_s=(...re)=>{q(!0),b==null||b(...re)};if(!ke)return null;const vr=Object.assign({role:r,ref:N.setDialogRef,"aria-modal":r==="dialog"?!0:void 0},te,{style:s,className:i,tabIndex:-1});let yi=g?g(vr):f.jsx("div",Object.assign({},vr,{children:h.cloneElement(o,{role:"document"})}));yi=ih(d,p,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!n,onExit:I,onExiting:X,onExited:_s,onEnter:Ve,onEntering:Le,onEntered:et,children:yi});let xr=null;return a&&(xr=C({ref:N.setBackdropRef,onClick:Vt}),xr=ih(v,y,{in:!!n,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:xr})),f.jsx(f.Fragment,{children:Ir.createPortal(f.jsxs(f.Fragment,{children:[xr,yi]}),ke)})});Mv.displayName="Modal";const Dv=Object.assign(Mv,{Manager:Ld}),jk={[pt]:"show",[zt]:"show"},hr=h.forwardRef(({className:e,children:t,transitionClasses:n={},onEnter:r,...i},s)=>{const o={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,...i},a=h.useCallback((l,u)=>{Nv(l),r==null||r(l,u)},[r]);return f.jsx(Nd,{ref:s,addEndListener:Rd,...o,onEnter:a,childRef:t.ref,children:(l,u)=>h.cloneElement(t,{...u,className:A("fade",e,t.props.className,jk[l],n[l])})})});hr.displayName="Fade";const Iv=h.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=M(t,"offcanvas-body"),f.jsx(n,{ref:i,className:A(e,t),...r})));Iv.displayName="OffcanvasBody";const Pk={[pt]:"show",[zt]:"show"},_v=h.forwardRef(({bsPrefix:e,className:t,children:n,in:r=!1,mountOnEnter:i=!1,unmountOnExit:s=!1,appear:o=!1,...a},l)=>(e=M(e,"offcanvas"),f.jsx(Nd,{ref:l,addEndListener:Rd,in:r,mountOnEnter:i,unmountOnExit:s,appear:o,...a,childRef:n.ref,children:(u,c)=>h.cloneElement(n,{...c,className:A(t,n.props.className,(u===pt||u===ei)&&`${e}-toggling`,Pk[u])})})));_v.displayName="OffcanvasToggling";const Md=h.createContext({onHide(){}}),Rk={"aria-label":$.string,onClick:$.func,variant:$.oneOf(["white"])},Ba=h.forwardRef(({className:e,variant:t,"aria-label":n="Close",...r},i)=>f.jsx("button",{ref:i,type:"button",className:A("btn-close",t&&`btn-close-${t}`,e),"aria-label":n,...r}));Ba.displayName="CloseButton";Ba.propTypes=Rk;const Fv=h.forwardRef(({closeLabel:e="Close",closeVariant:t,closeButton:n=!1,onHide:r,children:i,...s},o)=>{const a=h.useContext(Md),l=ze(()=>{a==null||a.onHide(),r==null||r()});return f.jsxs("div",{ref:o,...s,children:[i,n&&f.jsx(Ba,{"aria-label":e,variant:t,onClick:l})]})}),Vv=h.forwardRef(({bsPrefix:e,className:t,closeLabel:n="Close",closeButton:r=!1,...i},s)=>(e=M(e,"offcanvas-header"),f.jsx(Fv,{ref:s,...i,className:A(t,e),closeLabel:n,closeButton:r})));Vv.displayName="OffcanvasHeader";const $a=e=>h.forwardRef((t,n)=>f.jsx("div",{...t,ref:n,className:A(t.className,e)})),Nk=$a("h5"),Bv=h.forwardRef(({className:e,bsPrefix:t,as:n=Nk,...r},i)=>(t=M(t,"offcanvas-title"),f.jsx(n,{ref:i,className:A(e,t),...r})));Bv.displayName="OffcanvasTitle";function Ok(e,t){return e.classList?e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function Lk(e,t){e.classList?e.classList.add(t):Ok(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}var Ak=Function.prototype.bind.call(Function.prototype.call,[].slice);function Kn(e,t){return Ak(e.querySelectorAll(t))}function sh(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function bk(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=sh(e.className,t):e.setAttribute("class",sh(e.className&&e.className.baseVal||"",t))}const Er={FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"};class $v extends Ld{adjustAndStore(t,n,r){const i=n.style[t];n.dataset[t]=i,Yt(n,{[t]:`${parseFloat(Yt(n,t))+r}px`})}restore(t,n){const r=n.dataset[t];r!==void 0&&(delete n.dataset[t],Yt(n,{[t]:r}))}setContainerStyle(t){super.setContainerStyle(t);const n=this.getElement();if(Lk(n,"modal-open"),!t.scrollBarWidth)return;const r=this.isRTL?"paddingLeft":"paddingRight",i=this.isRTL?"marginLeft":"marginRight";Kn(n,Er.FIXED_CONTENT).forEach(s=>this.adjustAndStore(r,s,t.scrollBarWidth)),Kn(n,Er.STICKY_CONTENT).forEach(s=>this.adjustAndStore(i,s,-t.scrollBarWidth)),Kn(n,Er.NAVBAR_TOGGLER).forEach(s=>this.adjustAndStore(i,s,t.scrollBarWidth))}removeContainerStyle(t){super.removeContainerStyle(t);const n=this.getElement();bk(n,"modal-open");const r=this.isRTL?"paddingLeft":"paddingRight",i=this.isRTL?"marginLeft":"marginRight";Kn(n,Er.FIXED_CONTENT).forEach(s=>this.restore(r,s)),Kn(n,Er.STICKY_CONTENT).forEach(s=>this.restore(i,s)),Kn(n,Er.NAVBAR_TOGGLER).forEach(s=>this.restore(i,s))}}let bl;function Uv(e){return bl||(bl=new $v(e)),bl}function Mk(e){return f.jsx(_v,{...e})}function Dk(e){return f.jsx(hr,{...e})}const zv=h.forwardRef(({bsPrefix:e,className:t,children:n,"aria-labelledby":r,placement:i="start",responsive:s,show:o=!1,backdrop:a=!0,keyboard:l=!0,scroll:u=!1,onEscapeKeyDown:c,onShow:d,onHide:p,container:v,autoFocus:y=!0,enforceFocus:w=!0,restoreFocus:S=!0,restoreFocusOptions:x,onEntered:m,onExit:g,onExiting:C,onEnter:T,onEntering:E,onExited:P,backdropClassName:j,manager:I,renderStaticNode:b=!1,...X},Ve)=>{const Le=h.useRef();e=M(e,"offcanvas");const{onToggle:et}=h.useContext(pr)||{},[te,ne]=h.useState(!1),ke=ik(s||"xs","up");h.useEffect(()=>{ne(s?o&&!ke:o)},[o,s,ke]);const N=ze(()=>{et==null||et(),p==null||p()}),_=h.useMemo(()=>({onHide:N}),[N]);function F(){return I||(u?(Le.current||(Le.current=new $v({handleContainerOverflow:!1})),Le.current):Uv())}const H=(me,...Be)=>{me&&(me.style.visibility="visible"),T==null||T(me,...Be)},q=(me,...Be)=>{me&&(me.style.visibility=""),P==null||P(...Be)},je=h.useCallback(me=>f.jsx("div",{...me,className:A(`${e}-backdrop`,j)}),[j,e]),ye=me=>f.jsx("div",{...me,...X,className:A(t,s?`${e}-${s}`:e,`${e}-${i}`),"aria-labelledby":r,children:n});return f.jsxs(f.Fragment,{children:[!te&&(s||b)&&ye({}),f.jsx(Md.Provider,{value:_,children:f.jsx(Dv,{show:te,ref:Ve,backdrop:a,container:v,keyboard:l,autoFocus:y,enforceFocus:w&&!u,restoreFocus:S,restoreFocusOptions:x,onEscapeKeyDown:c,onShow:d,onHide:N,onEnter:H,onEntering:E,onEntered:m,onExit:g,onExiting:C,onExited:q,manager:F(),transition:Mk,backdropTransition:Dk,renderBackdrop:je,renderDialog:ye})})]})});zv.displayName="Offcanvas";const Ik=Object.assign(zv,{Body:Iv,Header:Vv,Title:Bv}),Hv=h.forwardRef((e,t)=>{const n=h.useContext(pr);return f.jsx(Ik,{ref:t,show:!!(n!=null&&n.expanded),...e,renderStaticNode:!0})});Hv.displayName="NavbarOffcanvas";const Wv=h.forwardRef(({className:e,bsPrefix:t,as:n="span",...r},i)=>(t=M(t,"navbar-text"),f.jsx(n,{ref:i,className:A(e,t),...r})));Wv.displayName="NavbarText";const Kv=h.forwardRef((e,t)=>{const{bsPrefix:n,expand:r=!0,variant:i="light",bg:s,fixed:o,sticky:a,className:l,as:u="nav",expanded:c,onToggle:d,onSelect:p,collapseOnSelect:v=!1,...y}=Cv(e,{expanded:"onToggle"}),w=M(n,"navbar"),S=h.useCallback((...g)=>{p==null||p(...g),v&&c&&(d==null||d(!1))},[p,v,c,d]);y.role===void 0&&u!=="nav"&&(y.role="navigation");let x=`${w}-expand`;typeof r=="string"&&(x=`${x}-${r}`);const m=h.useMemo(()=>({onToggle:()=>d==null?void 0:d(!c),bsPrefix:w,expanded:!!c,expand:r}),[w,c,r,d]);return f.jsx(pr.Provider,{value:m,children:f.jsx(cr.Provider,{value:S,children:f.jsx(u,{ref:t,...y,className:A(l,w,r&&x,i&&`${w}-${i}`,s&&`bg-${s}`,a&&`sticky-${a}`,o&&`fixed-${o}`)})})})});Kv.displayName="Navbar";const oh=Object.assign(Kv,{Brand:kv,Collapse:Ov,Offcanvas:Hv,Text:Wv,Toggle:Lv}),_k=["as","disabled"];function Fk(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,s;for(s=0;s=0)&&(n[i]=e[i]);return n}function Vk(e){return!e||e.trim()==="#"}function Dd({tagName:e,disabled:t,href:n,target:r,rel:i,role:s,onClick:o,tabIndex:a=0,type:l}){e||(n!=null||r!=null||i!=null?e="a":e="button");const u={tagName:e};if(e==="button")return[{type:l||"button",disabled:t},u];const c=p=>{if((t||e==="a"&&Vk(n))&&p.preventDefault(),t){p.stopPropagation();return}o==null||o(p)},d=p=>{p.key===" "&&(p.preventDefault(),c(p))};return e==="a"&&(n||(n="#"),t&&(n=void 0)),[{role:s??"button",disabled:void 0,tabIndex:t?void 0:a,href:n,target:e==="a"?r:void 0,"aria-disabled":t||void 0,rel:e==="a"?i:void 0,onClick:c,onKeyDown:d},u]}const Gv=h.forwardRef((e,t)=>{let{as:n,disabled:r}=e,i=Fk(e,_k);const[s,{tagName:o}]=Dd(Object.assign({tagName:n,disabled:r},i));return f.jsx(o,Object.assign({},i,s,{ref:t}))});Gv.displayName="Button";const B=h.forwardRef(({as:e,bsPrefix:t,variant:n="primary",size:r,active:i=!1,disabled:s=!1,className:o,...a},l)=>{const u=M(t,"btn"),[c,{tagName:d}]=Dd({tagName:e,disabled:s,...a}),p=d;return f.jsx(p,{...c,...a,ref:l,disabled:s,className:A(o,u,i&&"active",n&&`${u}-${n}`,r&&`${u}-${r}`,a.href&&s&&"disabled")})});B.displayName="Button";const mr=h.forwardRef(({bsPrefix:e,variant:t,animation:n="border",size:r,as:i="div",className:s,...o},a)=>{e=M(e,"spinner");const l=`${e}-${n}`;return f.jsx(i,{ref:a,...o,className:A(s,l,r&&`${l}-${r}`,t&&`text-${t}`)})});mr.displayName="Spinner";const Bk=()=>{const{user:e,signOut:t}=an(),[n,r]=h.useState(!1),i=async s=>{s.preventDefault(),r(!0);try{await t()}catch(o){console.log(o.message)}};return f.jsxs(oh,{expand:"lg",className:"bg-body-tertiary justify-content-between text-center align-items-center px-5",sticky:"top",children:[f.jsx(oh.Brand,{children:f.jsx(Et,{className:"align-items-center text-decoration-none",to:"/",children:f.jsx("h1",{className:"display-6 mb-0","aria-label":"brand",title:"Return to home page.",children:"Simplifica."})})}),e&&!n&&f.jsx(B,{variant:"dark",onClick:i,children:"Sign Out"}),n&&f.jsx(mr,{animation:"border",role:"status",size:"sm",className:"d-flex justify-content center align-items-center",children:f.jsx("span",{className:"visually-hidden",children:"Loading..."})})]})},sc=2**31-1;function Yv(e,t,n){const r=n-Date.now();e.current=r<=sc?setTimeout(t,r):setTimeout(()=>Yv(e,t,n),sc)}function $k(){const e=Av(),t=h.useRef();return Od(()=>clearTimeout(t.current)),h.useMemo(()=>{const n=()=>clearTimeout(t.current);function r(i,s=0){e()&&(n(),s<=sc?t.current=setTimeout(i,s):Yv(t,i,Date.now()+s))}return{set:r,clear:n,handleRef:t}},[])}const Uk={[pt]:"showing",[ei]:"showing show"},Qv=h.forwardRef((e,t)=>f.jsx(hr,{...e,ref:t,transitionClasses:Uk}));Qv.displayName="ToastFade";const Xv=h.createContext({onClose(){}}),qv=h.forwardRef(({bsPrefix:e,closeLabel:t="Close",closeVariant:n,closeButton:r=!0,className:i,children:s,...o},a)=>{e=M(e,"toast-header");const l=h.useContext(Xv),u=ze(c=>{l==null||l.onClose==null||l.onClose(c)});return f.jsxs("div",{ref:a,...o,className:A(e,i),children:[s,r&&f.jsx(Ba,{"aria-label":t,variant:n,onClick:u,"data-dismiss":"toast"})]})});qv.displayName="ToastHeader";const Jv=h.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=M(t,"toast-body"),f.jsx(n,{ref:i,className:A(e,t),...r})));Jv.displayName="ToastBody";const Zv=h.forwardRef(({bsPrefix:e,className:t,transition:n=Qv,show:r=!0,animation:i=!0,delay:s=5e3,autohide:o=!1,onClose:a,onEntered:l,onExit:u,onExiting:c,onEnter:d,onEntering:p,onExited:v,bg:y,...w},S)=>{e=M(e,"toast");const x=h.useRef(s),m=h.useRef(a);h.useEffect(()=>{x.current=s,m.current=a},[s,a]);const g=$k(),C=!!(o&&r),T=h.useCallback(()=>{C&&(m.current==null||m.current())},[C]);h.useEffect(()=>{g.set(T,x.current)},[g,T]);const E=h.useMemo(()=>({onClose:a}),[a]),P=!!(n&&i),j=f.jsx("div",{...w,ref:S,className:A(e,t,y&&`bg-${y}`,!P&&(r?"show":"hide")),role:"alert","aria-live":"assertive","aria-atomic":"true"});return f.jsx(Xv.Provider,{value:E,children:P&&n?f.jsx(n,{in:r,onEnter:d,onEntering:p,onEntered:l,onExit:u,onExiting:c,onExited:v,unmountOnExit:!0,children:j}):j})});Zv.displayName="Toast";const Ml=Object.assign(Zv,{Body:Jv,Header:qv}),e0=({title:e,message:t,type:n,toggleVisible:r})=>{const i=new Date;return f.jsxs(Ml,{onClose:r,delay:5e3,bg:n==="error"?"warning":n,autohide:!0,children:[f.jsxs(Ml.Header,{children:[f.jsx("strong",{className:"me-auto","aria-label":"feedback-title",children:e}),f.jsx("small",{"aria-label":"feedback-timestamp",children:i.toLocaleTimeString()})]}),f.jsx(Ml.Body,{className:n==="error"?"text-grey":"text-white","aria-label":"feedback-message",children:t})]})};e0.propTypes={title:$.string.isRequired,message:$.string.isRequired,type:$.string.isRequired,toggleVisible:$.func.isRequired};const zk={"top-start":"top-0 start-0","top-center":"top-0 start-50 translate-middle-x","top-end":"top-0 end-0","middle-start":"top-50 start-0 translate-middle-y","middle-center":"top-50 start-50 translate-middle","middle-end":"top-50 end-0 translate-middle-y","bottom-start":"bottom-0 start-0","bottom-center":"bottom-0 start-50 translate-middle-x","bottom-end":"bottom-0 end-0"},t0=h.forwardRef(({bsPrefix:e,position:t,containerPosition:n,className:r,as:i="div",...s},o)=>(e=M(e,"toast-container"),f.jsx(i,{ref:o,...s,className:A(e,t&&zk[t],n&&`position-${n}`,r)})));t0.displayName="ToastContainer";const $e=({MainComponent:e})=>{const[t,n]=h.useState(!1),[r,i]=h.useState([]),s=o=>{i(o),n(!0)};return f.jsxs(f.Fragment,{children:[f.jsx(Bk,{}),f.jsx(e,{triggerFeedback:s}),f.jsx(t0,{position:"top-end",className:"m-4",children:t&&r.map((o,a)=>f.jsx(e0,{title:o.title,message:o.message,type:o.type,toggleVisible:()=>n(!t)},a))})]})};$e.propTypes={MainComponent:$.elementType.isRequired};const Gi=(e,t)=>{const n=e.target.value;t(n)},ah=e=>/^[a-zA-Z][a-zA-Z0-9_]{4,19}$/.test(e),lh=e=>/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,}$/.test(e),Hk=[{name:"invalid_password",info:{type:"error",title:"Invalid Password",message:"Password is invalid. It should be at least 8 characters long, and should contain at least 1 uppercase letter, lowercase letter, special character and number."}},{name:"invalid_username",info:{type:"error",title:"Invalid Username",message:"Username is invalid. It should be between 4 and 19 characters long, and should only contain numbers, letters and underscores."}},{name:"passwords_not_matching",info:{type:"error",title:"Non-Matching Passwords",message:"Passwords do not match. Verify that the two passwords you have typed in are the same."}}],un=h.forwardRef(({bsPrefix:e,fluid:t=!1,as:n="div",className:r,...i},s)=>{const o=M(e,"container"),a=typeof t=="string"?`-${t}`:"-fluid";return f.jsx(n,{ref:s,...i,className:A(r,t?`${o}${a}`:o)})});un.displayName="Container";function Wk(e,t=Ev,n=Tv){const r=[];return Object.entries(e).forEach(([i,s])=>{s!=null&&(typeof s=="object"?t.forEach(o=>{const a=s[o];if(a!=null){const l=o!==n?`-${o}`:"";r.push(`${i}${l}-${a}`)}}):r.push(`${i}-${s}`))}),r}const ti=h.forwardRef(({as:e="div",bsPrefix:t,className:n,direction:r,gap:i,...s},o)=>{t=M(t,r==="horizontal"?"hstack":"vstack");const a=jd(),l=Pd();return f.jsx(e,{...s,ref:o,className:A(n,t,...Wk({gap:i},a,l))})});ti.displayName="Stack";const nn=h.createContext({}),Id=h.forwardRef(({controlId:e,as:t="div",...n},r)=>{const i=h.useMemo(()=>({controlId:e}),[e]);return f.jsx(nn.Provider,{value:i,children:f.jsx(t,{...n,ref:r})})});Id.displayName="FormGroup";const nr=h.forwardRef(({bsPrefix:e,className:t,children:n,controlId:r,label:i,...s},o)=>(e=M(e,"form-floating"),f.jsxs(Id,{ref:o,className:A(t,e),controlId:r,...s,children:[n,f.jsx("label",{htmlFor:r,children:i})]})));nr.displayName="FloatingLabel";const Kk={type:$.string,tooltip:$.bool,as:$.elementType},Ua=h.forwardRef(({as:e="div",className:t,type:n="valid",tooltip:r=!1,...i},s)=>f.jsx(e,{...i,ref:s,className:A(t,`${n}-${r?"tooltip":"feedback"}`)}));Ua.displayName="Feedback";Ua.propTypes=Kk;const Ls=h.forwardRef(({id:e,bsPrefix:t,className:n,type:r="checkbox",isValid:i=!1,isInvalid:s=!1,as:o="input",...a},l)=>{const{controlId:u}=h.useContext(nn);return t=M(t,"form-check-input"),f.jsx(o,{...a,ref:l,type:r,id:e||u,className:A(n,t,i&&"is-valid",s&&"is-invalid")})});Ls.displayName="FormCheckInput";const ra=h.forwardRef(({bsPrefix:e,className:t,htmlFor:n,...r},i)=>{const{controlId:s}=h.useContext(nn);return e=M(e,"form-check-label"),f.jsx("label",{...r,ref:i,htmlFor:n||s,className:A(t,e)})});ra.displayName="FormCheckLabel";function Gk(e,t){return h.Children.toArray(e).some(n=>h.isValidElement(n)&&n.type===t)}const n0=h.forwardRef(({id:e,bsPrefix:t,bsSwitchPrefix:n,inline:r=!1,reverse:i=!1,disabled:s=!1,isValid:o=!1,isInvalid:a=!1,feedbackTooltip:l=!1,feedback:u,feedbackType:c,className:d,style:p,title:v="",type:y="checkbox",label:w,children:S,as:x="input",...m},g)=>{t=M(t,"form-check"),n=M(n,"form-switch");const{controlId:C}=h.useContext(nn),T=h.useMemo(()=>({controlId:e||C}),[C,e]),E=!S&&w!=null&&w!==!1||Gk(S,ra),P=f.jsx(Ls,{...m,type:y==="switch"?"checkbox":y,ref:g,isValid:o,isInvalid:a,disabled:s,as:x});return f.jsx(nn.Provider,{value:T,children:f.jsx("div",{style:p,className:A(d,E&&t,r&&`${t}-inline`,i&&`${t}-reverse`,y==="switch"&&n),children:S||f.jsxs(f.Fragment,{children:[P,E&&f.jsx(ra,{title:v,children:w}),u&&f.jsx(Ua,{type:c,tooltip:l,children:u})]})})})});n0.displayName="FormCheck";const ia=Object.assign(n0,{Input:Ls,Label:ra}),r0=h.forwardRef(({bsPrefix:e,type:t,size:n,htmlSize:r,id:i,className:s,isValid:o=!1,isInvalid:a=!1,plaintext:l,readOnly:u,as:c="input",...d},p)=>{const{controlId:v}=h.useContext(nn);return e=M(e,"form-control"),f.jsx(c,{...d,type:t,size:r,ref:p,readOnly:u,id:i||v,className:A(s,l?`${e}-plaintext`:e,n&&`${e}-${n}`,t==="color"&&`${e}-color`,o&&"is-valid",a&&"is-invalid")})});r0.displayName="FormControl";const Yk=Object.assign(r0,{Feedback:Ua}),i0=h.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=M(t,"form-floating"),f.jsx(n,{ref:i,className:A(e,t),...r})));i0.displayName="FormFloating";function Qk({as:e,bsPrefix:t,className:n,...r}){t=M(t,"col");const i=jd(),s=Pd(),o=[],a=[];return i.forEach(l=>{const u=r[l];delete r[l];let c,d,p;typeof u=="object"&&u!=null?{span:c,offset:d,order:p}=u:c=u;const v=l!==s?`-${l}`:"";c&&o.push(c===!0?`${t}${v}`:`${t}${v}-${c}`),p!=null&&a.push(`order${v}-${p}`),d!=null&&a.push(`offset${v}-${d}`)}),[{...r,className:A(n,...o,...a)},{as:e,bsPrefix:t,spans:o}]}const Pt=h.forwardRef((e,t)=>{const[{className:n,...r},{as:i="div",bsPrefix:s,spans:o}]=Qk(e);return f.jsx(i,{...r,ref:t,className:A(n,!o.length&&s)})});Pt.displayName="Col";const s0=h.forwardRef(({as:e="label",bsPrefix:t,column:n=!1,visuallyHidden:r=!1,className:i,htmlFor:s,...o},a)=>{const{controlId:l}=h.useContext(nn);t=M(t,"form-label");let u="col-form-label";typeof n=="string"&&(u=`${u} ${u}-${n}`);const c=A(i,t,r&&"visually-hidden",n&&u);return s=s||l,n?f.jsx(Pt,{ref:a,as:"label",className:c,htmlFor:s,...o}):f.jsx(e,{ref:a,className:c,htmlFor:s,...o})});s0.displayName="FormLabel";const o0=h.forwardRef(({bsPrefix:e,className:t,id:n,...r},i)=>{const{controlId:s}=h.useContext(nn);return e=M(e,"form-range"),f.jsx("input",{...r,type:"range",ref:i,className:A(t,e),id:n||s})});o0.displayName="FormRange";const a0=h.forwardRef(({bsPrefix:e,size:t,htmlSize:n,className:r,isValid:i=!1,isInvalid:s=!1,id:o,...a},l)=>{const{controlId:u}=h.useContext(nn);return e=M(e,"form-select"),f.jsx("select",{...a,size:n,ref:l,className:A(r,e,t&&`${e}-${t}`,i&&"is-valid",s&&"is-invalid"),id:o||u})});a0.displayName="FormSelect";const l0=h.forwardRef(({bsPrefix:e,className:t,as:n="small",muted:r,...i},s)=>(e=M(e,"form-text"),f.jsx(n,{...i,ref:s,className:A(t,e,r&&"text-muted")})));l0.displayName="FormText";const u0=h.forwardRef((e,t)=>f.jsx(ia,{...e,ref:t,type:"switch"}));u0.displayName="Switch";const Xk=Object.assign(u0,{Input:ia.Input,Label:ia.Label}),qk={_ref:$.any,validated:$.bool,as:$.elementType},_d=h.forwardRef(({className:e,validated:t,as:n="form",...r},i)=>f.jsx(n,{...r,ref:i,className:A(e,t&&"was-validated")}));_d.displayName="Form";_d.propTypes=qk;const O=Object.assign(_d,{Group:Id,Control:Yk,Floating:i0,Check:ia,Switch:Xk,Label:s0,Text:l0,Range:o0,Select:a0,FloatingLabel:nr});$.string,$.bool,$.bool,$.bool,$.bool;const Q=h.forwardRef(({bsPrefix:e,className:t,fluid:n=!1,rounded:r=!1,roundedCircle:i=!1,thumbnail:s=!1,...o},a)=>(e=M(e,"img"),f.jsx("img",{ref:a,...o,className:A(t,n&&`${e}-fluid`,r&&"rounded",i&&"rounded-circle",s&&`${e}-thumbnail`)})));Q.displayName="Image";const c0=h.createContext(null);c0.displayName="InputGroupContext";const za=h.forwardRef(({className:e,bsPrefix:t,as:n="span",...r},i)=>(t=M(t,"input-group-text"),f.jsx(n,{ref:i,className:A(e,t),...r})));za.displayName="InputGroupText";const Jk=e=>f.jsx(za,{children:f.jsx(Ls,{type:"checkbox",...e})}),Zk=e=>f.jsx(za,{children:f.jsx(Ls,{type:"radio",...e})}),d0=h.forwardRef(({bsPrefix:e,size:t,hasValidation:n,className:r,as:i="div",...s},o)=>{e=M(e,"input-group");const a=h.useMemo(()=>({}),[]);return f.jsx(c0.Provider,{value:a,children:f.jsx(i,{ref:o,...s,className:A(r,e,t&&`${e}-${t}`,n&&"has-validation")})})});d0.displayName="InputGroup";const xe=Object.assign(d0,{Text:za,Radio:Zk,Checkbox:Jk}),f0=h.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Ha=h.createContext({}),Fd=h.createContext(null),Vd=typeof document<"u",ej=Vd?h.useLayoutEffect:h.useEffect,p0=h.createContext({strict:!1}),Bd=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),tj="framerAppearId",h0="data-"+Bd(tj),nj={skipAnimations:!1,useManualTiming:!1};class uh{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){const n=this.order.indexOf(t);n!==-1&&(this.order.splice(n,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}function rj(e){let t=new uh,n=new uh,r=0,i=!1,s=!1;const o=new WeakSet,a={schedule:(l,u=!1,c=!1)=>{const d=c&&i,p=d?t:n;return u&&o.add(l),p.add(l)&&d&&i&&(r=t.order.length),l},cancel:l=>{n.remove(l),o.delete(l)},process:l=>{if(i){s=!0;return}if(i=!0,[t,n]=[n,t],n.clear(),r=t.order.length,r)for(let u=0;u(d[p]=rj(()=>n=!0),d),{}),o=d=>{s[d].process(i)},a=()=>{const d=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(d-i.timestamp,ij),1),i.timestamp=d,i.isProcessing=!0,so.forEach(o),i.isProcessing=!1,n&&t&&(r=!1,e(a))},l=()=>{n=!0,r=!0,i.isProcessing||e(a)};return{schedule:so.reduce((d,p)=>{const v=s[p];return d[p]=(y,w=!1,S=!1)=>(n||l(),v.schedule(y,w,S)),d},{}),cancel:d=>so.forEach(p=>s[p].cancel(d)),state:i,steps:s}}const{schedule:$d,cancel:oL}=m0(queueMicrotask,!1);function _r(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}const g0=h.createContext({});let ch=!1;function sj(e,t,n,r,i){const{visualElement:s}=h.useContext(Ha),o=h.useContext(p0),a=h.useContext(Fd),l=h.useContext(f0).reducedMotion,u=h.useRef();r=r||o.renderer,!u.current&&r&&(u.current=r(e,{visualState:t,parent:s,props:n,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:l}));const c=u.current,d=h.useContext(g0);c&&!c.projection&&i&&(c.type==="html"||c.type==="svg")&&aj(u.current,n,i,d),h.useInsertionEffect(()=>{c&&c.update(n,a)});const p=h.useRef(!!(n[h0]&&!window.HandoffComplete));return ej(()=>{c&&(c.updateFeatures(),$d.render(c.render),p.current&&c.animationState&&c.animationState.animateChanges())}),h.useEffect(()=>{c&&(!p.current&&c.animationState&&c.animationState.animateChanges(),p.current&&(p.current=!1,ch||(ch=!0,queueMicrotask(oj))))}),c}function oj(){window.HandoffComplete=!0}function aj(e,t,n,r){const{layoutId:i,layout:s,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:y0(e.parent)),e.projection.setOptions({layoutId:i,layout:s,alwaysMeasureLayout:!!o||a&&_r(a),visualElement:e,scheduleRender:()=>e.scheduleRender(),animationType:typeof s=="string"?s:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:u})}function y0(e){if(e)return e.options.allowProjection!==!1?e.projection:y0(e.parent)}function lj(e,t,n){return h.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):_r(n)&&(n.current=r))},[t])}function xs(e){return typeof e=="string"||Array.isArray(e)}function Wa(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const Ud=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],zd=["initial",...Ud];function Ka(e){return Wa(e.animate)||zd.some(t=>xs(e[t]))}function v0(e){return!!(Ka(e)||e.variants)}function uj(e,t){if(Ka(e)){const{initial:n,animate:r}=e;return{initial:n===!1||xs(n)?n:void 0,animate:xs(r)?r:void 0}}return e.inherit!==!1?t:{}}function cj(e){const{initial:t,animate:n}=uj(e,h.useContext(Ha));return h.useMemo(()=>({initial:t,animate:n}),[dh(t),dh(n)])}function dh(e){return Array.isArray(e)?e.join(" "):e}const fh={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},ni={};for(const e in fh)ni[e]={isEnabled:t=>fh[e].some(n=>!!t[n])};function dj(e){for(const t in e)ni[t]={...ni[t],...e[t]}}const x0=h.createContext({}),fj=Symbol.for("motionComponentSymbol"),_e=e=>e;let oc=_e;function pj({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){e&&dj(e);function s(a,l){let u;const c={...h.useContext(f0),...a,layoutId:hj(a)},{isStatic:d}=c,p=cj(a),v=r(a,d);if(!d&&Vd){mj();const y=gj(c);u=y.MeasureLayout,p.visualElement=sj(i,v,c,t,y.ProjectionNode)}return f.jsxs(Ha.Provider,{value:p,children:[u&&p.visualElement?f.jsx(u,{visualElement:p.visualElement,...c}):null,n(i,a,lj(v,p.visualElement,l),v,d,p.visualElement)]})}const o=h.forwardRef(s);return o[fj]=i,o}function hj({layoutId:e}){const t=h.useContext(x0).id;return t&&e!==void 0?t+"-"+e:e}function mj(e,t){h.useContext(p0).strict}function gj(e){const{drag:t,layout:n}=ni;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function yj(e){function t(r,i={}){return pj(e(r,i))}if(typeof Proxy>"u")return t;const n=new Map;return new Proxy(t,{get:(r,i)=>(n.has(i)||n.set(i,t(i)),n.get(i))})}const vj=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Hd(e){return typeof e!="string"||e.includes("-")?!1:!!(vj.indexOf(e)>-1||/[A-Z]/u.test(e))}const sa={};function xj(e){Object.assign(sa,e)}const As=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],gr=new Set(As);function w0(e,{layout:t,layoutId:n}){return gr.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!sa[e]||e==="opacity")}const Ie=e=>!!(e&&e.getVelocity),wj={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Sj=As.length;function Cj(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,i){let s="";for(let o=0;ot=>typeof t=="string"&&t.startsWith(e),C0=S0("--"),Ej=S0("var(--"),Wd=e=>Ej(e)?Tj.test(e.split("/*")[0].trim()):!1,Tj=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,kj=(e,t)=>t&&typeof e=="number"?t.transform(e):e,In=(e,t,n)=>n>t?t:ntypeof e=="number",parse:parseFloat,transform:e=>e},Yi={...hi,transform:e=>In(0,1,e)},oo={...hi,default:1},Qi=e=>Math.round(e*1e5)/1e5,Kd=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,jj=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,Pj=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;function bs(e){return typeof e=="string"}const Ms=e=>({test:t=>bs(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),pn=Ms("deg"),Ft=Ms("%"),D=Ms("px"),Rj=Ms("vh"),Nj=Ms("vw"),ph={...Ft,parse:e=>Ft.parse(e)/100,transform:e=>Ft.transform(e*100)},hh={...hi,transform:Math.round},E0={borderWidth:D,borderTopWidth:D,borderRightWidth:D,borderBottomWidth:D,borderLeftWidth:D,borderRadius:D,radius:D,borderTopLeftRadius:D,borderTopRightRadius:D,borderBottomRightRadius:D,borderBottomLeftRadius:D,width:D,maxWidth:D,height:D,maxHeight:D,size:D,top:D,right:D,bottom:D,left:D,padding:D,paddingTop:D,paddingRight:D,paddingBottom:D,paddingLeft:D,margin:D,marginTop:D,marginRight:D,marginBottom:D,marginLeft:D,rotate:pn,rotateX:pn,rotateY:pn,rotateZ:pn,scale:oo,scaleX:oo,scaleY:oo,scaleZ:oo,skew:pn,skewX:pn,skewY:pn,distance:D,translateX:D,translateY:D,translateZ:D,x:D,y:D,z:D,perspective:D,transformPerspective:D,opacity:Yi,originX:ph,originY:ph,originZ:D,zIndex:hh,backgroundPositionX:D,backgroundPositionY:D,fillOpacity:Yi,strokeOpacity:Yi,numOctaves:hh};function Gd(e,t,n,r){const{style:i,vars:s,transform:o,transformOrigin:a}=e;let l=!1,u=!1,c=!0;for(const d in t){const p=t[d];if(C0(d)){s[d]=p;continue}const v=E0[d],y=kj(p,v);if(gr.has(d)){if(l=!0,o[d]=y,!c)continue;p!==(v.default||0)&&(c=!1)}else d.startsWith("origin")?(u=!0,a[d]=y):i[d]=y}if(t.transform||(l||r?i.transform=Cj(e.transform,n,c,r):i.transform&&(i.transform="none")),u){const{originX:d="50%",originY:p="50%",originZ:v=0}=a;i.transformOrigin=`${d} ${p} ${v}`}}const Yd=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function T0(e,t,n){for(const r in t)!Ie(t[r])&&!w0(r,n)&&(e[r]=t[r])}function Oj({transformTemplate:e},t,n){return h.useMemo(()=>{const r=Yd();return Gd(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}function Lj(e,t,n){const r=e.style||{},i={};return T0(i,r,e),Object.assign(i,Oj(e,t,n)),i}function Aj(e,t,n){const r={},i=Lj(e,t,n);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=i,r}const bj=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function oa(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||bj.has(e)}let k0=e=>!oa(e);function Mj(e){e&&(k0=t=>t.startsWith("on")?!oa(t):e(t))}try{Mj(require("@emotion/is-prop-valid").default)}catch{}function Dj(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(k0(i)||n===!0&&oa(i)||!t&&!oa(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function mh(e,t,n){return typeof e=="string"?e:D.transform(t+n*e)}function Ij(e,t,n){const r=mh(t,e.x,e.width),i=mh(n,e.y,e.height);return`${r} ${i}`}const _j={offset:"stroke-dashoffset",array:"stroke-dasharray"},Fj={offset:"strokeDashoffset",array:"strokeDasharray"};function Vj(e,t,n=1,r=0,i=!0){e.pathLength=1;const s=i?_j:Fj;e[s.offset]=D.transform(-r);const o=D.transform(t),a=D.transform(n);e[s.array]=`${o} ${a}`}function Qd(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:s,pathLength:o,pathSpacing:a=1,pathOffset:l=0,...u},c,d,p){if(Gd(e,u,c,p),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:v,style:y,dimensions:w}=e;v.transform&&(w&&(y.transform=v.transform),delete v.transform),w&&(i!==void 0||s!==void 0||y.transform)&&(y.transformOrigin=Ij(w,i!==void 0?i:.5,s!==void 0?s:.5)),t!==void 0&&(v.x=t),n!==void 0&&(v.y=n),r!==void 0&&(v.scale=r),o!==void 0&&Vj(v,o,a,l,!1)}const j0=()=>({...Yd(),attrs:{}}),Xd=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Bj(e,t,n,r){const i=h.useMemo(()=>{const s=j0();return Qd(s,t,{enableHardwareAcceleration:!1},Xd(r),e.transformTemplate),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};T0(s,e.style,e),i.style={...s,...i.style}}return i}function $j(e=!1){return(n,r,i,{latestValues:s},o)=>{const l=(Hd(n)?Bj:Aj)(r,s,o,n),u=Dj(r,typeof n=="string",e),c=n!==h.Fragment?{...u,...l,ref:i}:{},{children:d}=r,p=h.useMemo(()=>Ie(d)?d.get():d,[d]);return h.createElement(n,{...c,children:p})}}function P0(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const s in n)e.style.setProperty(s,n[s])}const R0=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function N0(e,t,n,r){P0(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(R0.has(i)?i:Bd(i),t.attrs[i])}function qd(e,t,n){var r;const{style:i}=e,s={};for(const o in i)(Ie(i[o])||t.style&&Ie(t.style[o])||w0(o,e)||((r=n==null?void 0:n.getValue(o))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(s[o]=i[o]);return s}function O0(e,t,n){const r=qd(e,t,n);for(const i in e)if(Ie(e[i])||Ie(t[i])){const s=As.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[s]=e[i]}return r}function gh(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Jd(e,t,n,r){if(typeof t=="function"){const[i,s]=gh(r);t=t(n!==void 0?n:e.custom,i,s)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,s]=gh(r);t=t(n!==void 0?n:e.custom,i,s)}return t}function Uj(e){const t=h.useRef(null);return t.current===null&&(t.current=e()),t.current}const ac=e=>Array.isArray(e),zj=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),Hj=e=>ac(e)?e[e.length-1]||0:e;function To(e){const t=Ie(e)?e.get():e;return zj(t)?t.toValue():t}function Wj({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,i,s){const o={latestValues:Kj(r,i,s,e),renderState:t()};return n&&(o.mount=a=>n(r,a,o)),o}const L0=e=>(t,n)=>{const r=h.useContext(Ha),i=h.useContext(Fd),s=()=>Wj(e,t,r,i);return n?s():Uj(s)};function Kj(e,t,n,r){const i={},s=r(e,{});for(const p in s)i[p]=To(s[p]);let{initial:o,animate:a}=e;const l=Ka(e),u=v0(e);t&&u&&!l&&e.inherit!==!1&&(o===void 0&&(o=t.initial),a===void 0&&(a=t.animate));let c=n?n.initial===!1:!1;c=c||o===!1;const d=c?a:o;return d&&typeof d!="boolean"&&!Wa(d)&&(Array.isArray(d)?d:[d]).forEach(v=>{const y=Jd(e,v);if(!y)return;const{transitionEnd:w,transition:S,...x}=y;for(const m in x){let g=x[m];if(Array.isArray(g)){const C=c?g.length-1:0;g=g[C]}g!==null&&(i[m]=g)}for(const m in w)i[m]=w[m]}),i}const{schedule:G,cancel:rn,state:Re,steps:Dl}=m0(typeof requestAnimationFrame<"u"?requestAnimationFrame:_e,!0),Gj={useVisualState:L0({scrapeMotionValuesFromProps:O0,createRenderState:j0,onMount:(e,t,{renderState:n,latestValues:r})=>{G.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),G.render(()=>{Qd(n,r,{enableHardwareAcceleration:!1},Xd(t.tagName),e.transformTemplate),N0(t,n)})}})},Yj={useVisualState:L0({scrapeMotionValuesFromProps:qd,createRenderState:Yd})};function Qj(e,{forwardMotionProps:t=!1},n,r){return{...Hd(e)?Gj:Yj,preloadedFeatures:n,useRender:$j(t),createVisualElement:r,Component:e}}function Kt(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const A0=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function Ga(e,t="page"){return{point:{x:e[`${t}X`],y:e[`${t}Y`]}}}const Xj=e=>t=>A0(t)&&e(t,Ga(t));function Qt(e,t,n,r){return Kt(e,t,Xj(n),r)}const qj=(e,t)=>n=>t(e(n)),Xt=(...e)=>e.reduce(qj);function b0(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const yh=b0("dragHorizontal"),vh=b0("dragVertical");function M0(e){let t=!1;if(e==="y")t=vh();else if(e==="x")t=yh();else{const n=yh(),r=vh();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function D0(){const e=M0(!0);return e?(e(),!1):!0}class Un{constructor(t){this.isMounted=!1,this.node=t}update(){}}function xh(e,t){const n=t?"pointerenter":"pointerleave",r=t?"onHoverStart":"onHoverEnd",i=(s,o)=>{if(s.pointerType==="touch"||D0())return;const a=e.getProps();e.animationState&&a.whileHover&&e.animationState.setActive("whileHover",t);const l=a[r];l&&G.postRender(()=>l(s,o))};return Qt(e.current,n,i,{passive:!e.getProps()[r]})}class Jj extends Un{mount(){this.unmount=Xt(xh(this.node,!0),xh(this.node,!1))}unmount(){}}class Zj extends Un{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Xt(Kt(this.node.current,"focus",()=>this.onFocus()),Kt(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const I0=(e,t)=>t?e===t?!0:I0(e,t.parentElement):!1;function Il(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,Ga(n))}class eP extends Un{constructor(){super(...arguments),this.removeStartListeners=_e,this.removeEndListeners=_e,this.removeAccessibleListeners=_e,this.startPointerPress=(t,n)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),s=Qt(window,"pointerup",(a,l)=>{if(!this.checkPressEnd())return;const{onTap:u,onTapCancel:c,globalTapTarget:d}=this.node.getProps(),p=!d&&!I0(this.node.current,a.target)?c:u;p&&G.update(()=>p(a,l))},{passive:!(r.onTap||r.onPointerUp)}),o=Qt(window,"pointercancel",(a,l)=>this.cancelPress(a,l),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=Xt(s,o),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=s=>{if(s.key!=="Enter"||this.isPressing)return;const o=a=>{a.key!=="Enter"||!this.checkPressEnd()||Il("up",(l,u)=>{const{onTap:c}=this.node.getProps();c&&G.postRender(()=>c(l,u))})};this.removeEndListeners(),this.removeEndListeners=Kt(this.node.current,"keyup",o),Il("down",(a,l)=>{this.startPress(a,l)})},n=Kt(this.node.current,"keydown",t),r=()=>{this.isPressing&&Il("cancel",(s,o)=>this.cancelPress(s,o))},i=Kt(this.node.current,"blur",r);this.removeAccessibleListeners=Xt(n,i)}}startPress(t,n){this.isPressing=!0;const{onTapStart:r,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&G.postRender(()=>r(t,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!D0()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&G.postRender(()=>r(t,n))}mount(){const t=this.node.getProps(),n=Qt(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=Kt(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Xt(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const lc=new WeakMap,_l=new WeakMap,tP=e=>{const t=lc.get(e.target);t&&t(e)},nP=e=>{e.forEach(tP)};function rP({root:e,...t}){const n=e||document;_l.has(n)||_l.set(n,{});const r=_l.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(nP,{root:e,...t})),r[i]}function iP(e,t,n){const r=rP(t);return lc.set(e,n),r.observe(e),()=>{lc.delete(e),r.unobserve(e)}}const sP={some:0,all:1};class oP extends Un{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:s}=t,o={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:sP[i]},a=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,s&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:d}=this.node.getProps(),p=u?c:d;p&&p(l)};return iP(this.node.current,o,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(aP(t,n))&&this.startObserver()}unmount(){}}function aP({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const lP={inView:{Feature:oP},tap:{Feature:eP},focus:{Feature:Zj},hover:{Feature:Jj}};function _0(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;re*1e3,qt=e=>e/1e3,uP={type:"spring",stiffness:500,damping:25,restSpeed:10},cP=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),dP={type:"keyframes",duration:.8},fP={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},pP=(e,{keyframes:t})=>t.length>2?dP:gr.has(e)?e.startsWith("scale")?cP(t[1]):uP:fP;function hP({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:s,repeatType:o,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length}function Zd(e,t){return e[t]||e.default||e}const mP=e=>e!==null;function Qa(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(mP),s=t&&n!=="loop"&&t%2===1?0:i.length-1;return!s||r===void 0?i[s]:r}let ko;function gP(){ko=void 0}const bn={now:()=>(ko===void 0&&bn.set(Re.isProcessing||nj.useManualTiming?Re.timestamp:performance.now()),ko),set:e=>{ko=e,queueMicrotask(gP)}},F0=e=>/^0[^.\s]+$/u.test(e);function yP(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||F0(e):!0}const V0=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),vP=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function xP(e){const t=vP.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}function B0(e,t,n=1){const[r,i]=xP(e);if(!r)return;const s=window.getComputedStyle(t).getPropertyValue(r);if(s){const o=s.trim();return V0(o)?parseFloat(o):o}return Wd(i)?B0(i,t,n+1):i}const wP=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),wh=e=>e===hi||e===D,Sh=(e,t)=>parseFloat(e.split(", ")[t]),Ch=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return Sh(i[1],t);{const s=r.match(/^matrix\((.+)\)$/u);return s?Sh(s[1],e):0}},SP=new Set(["x","y","z"]),CP=As.filter(e=>!SP.has(e));function EP(e){const t=[];return CP.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const ri={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:Ch(4,13),y:Ch(5,14)};ri.translateX=ri.x;ri.translateY=ri.y;const $0=e=>t=>t.test(e),TP={test:e=>e==="auto",parse:e=>e},U0=[hi,D,Ft,pn,Nj,Rj,TP],Eh=e=>U0.find($0(e)),rr=new Set;let uc=!1,cc=!1;function z0(){if(cc){const e=Array.from(rr).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=EP(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([s,o])=>{var a;(a=r.getValue(s))===null||a===void 0||a.set(o)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}cc=!1,uc=!1,rr.forEach(e=>e.complete()),rr.clear()}function H0(){rr.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(cc=!0)})}function kP(){H0(),z0()}class ef{constructor(t,n,r,i,s,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=s,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(rr.add(this),uc||(uc=!0,G.read(H0),G.resolveKeyframes(z0))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;for(let s=0;sn=>!!(bs(n)&&Pj.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),W0=(e,t,n)=>r=>{if(!bs(r))return r;const[i,s,o,a]=r.match(Kd);return{[e]:parseFloat(i),[t]:parseFloat(s),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},jP=e=>In(0,255,e),Fl={...hi,transform:e=>Math.round(jP(e))},Jn={test:tf("rgb","red"),parse:W0("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Fl.transform(e)+", "+Fl.transform(t)+", "+Fl.transform(n)+", "+Qi(Yi.transform(r))+")"};function PP(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const dc={test:tf("#"),parse:PP,transform:Jn.transform},Fr={test:tf("hsl","hue"),parse:W0("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Ft.transform(Qi(t))+", "+Ft.transform(Qi(n))+", "+Qi(Yi.transform(r))+")"},Me={test:e=>Jn.test(e)||dc.test(e)||Fr.test(e),parse:e=>Jn.test(e)?Jn.parse(e):Fr.test(e)?Fr.parse(e):dc.parse(e),transform:e=>bs(e)?e:e.hasOwnProperty("red")?Jn.transform(e):Fr.transform(e)};function RP(e){var t,n;return isNaN(e)&&bs(e)&&(((t=e.match(Kd))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(jj))===null||n===void 0?void 0:n.length)||0)>0}const K0="number",G0="color",NP="var",OP="var(",Th="${}",LP=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function ws(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let s=0;const a=t.replace(LP,l=>(Me.test(l)?(r.color.push(s),i.push(G0),n.push(Me.parse(l))):l.startsWith(OP)?(r.var.push(s),i.push(NP),n.push(l)):(r.number.push(s),i.push(K0),n.push(parseFloat(l))),++s,Th)).split(Th);return{values:n,split:a,indexes:r,types:i}}function Y0(e){return ws(e).values}function Q0(e){const{split:t,types:n}=ws(e),r=t.length;return i=>{let s="";for(let o=0;otypeof e=="number"?0:e;function bP(e){const t=Y0(e);return Q0(e)(t.map(AP))}const _n={test:RP,parse:Y0,createTransformer:Q0,getAnimatableNone:bP},MP=new Set(["brightness","contrast","saturate","opacity"]);function DP(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Kd)||[];if(!r)return e;const i=n.replace(r,"");let s=MP.has(t)?1:0;return r!==n&&(s*=100),t+"("+s+i+")"}const IP=/\b([a-z-]*)\(.*?\)/gu,fc={..._n,getAnimatableNone:e=>{const t=e.match(IP);return t?t.map(DP).join(" "):e}},_P={...E0,color:Me,backgroundColor:Me,outlineColor:Me,fill:Me,stroke:Me,borderColor:Me,borderTopColor:Me,borderRightColor:Me,borderBottomColor:Me,borderLeftColor:Me,filter:fc,WebkitFilter:fc},nf=e=>_P[e];function X0(e,t){let n=nf(e);return n!==fc&&(n=_n),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const FP=new Set(["auto","none","0"]);function VP(e,t,n){let r=0,i;for(;r{n.getValue(l).set(u)}),this.resolveNoneKeyframes()}}function J0(e){let t;return()=>(t===void 0&&(t=e()),t)}const kh=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(_n.test(e)||e==="0")&&!e.startsWith("url("));function BP(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n{this.resolveFinishedPromise=t})}}function ex(e,t){return t?e*(1e3/t):0}const UP=5;function tx(e,t,n){const r=Math.max(t-UP,0);return ex(n-e(r),t-r)}const Vl=.001,zP=.01,HP=10,WP=.05,KP=1;function GP({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,s,o=1-t;o=In(WP,KP,o),e=In(zP,HP,qt(e)),o<1?(i=u=>{const c=u*o,d=c*e,p=c-n,v=pc(u,o),y=Math.exp(-d);return Vl-p/v*y},s=u=>{const d=u*o*e,p=d*n+n,v=Math.pow(o,2)*Math.pow(u,2)*e,y=Math.exp(-d),w=pc(Math.pow(u,2),o);return(-i(u)+Vl>0?-1:1)*((p-v)*y)/w}):(i=u=>{const c=Math.exp(-u*e),d=(u-n)*e+1;return-Vl+c*d},s=u=>{const c=Math.exp(-u*e),d=(n-u)*(e*e);return c*d});const a=5/e,l=QP(i,s,a);if(e=An(e),isNaN(l))return{stiffness:100,damping:10,duration:e};{const u=Math.pow(l,2)*r;return{stiffness:u,damping:o*2*Math.sqrt(r*u),duration:e}}}const YP=12;function QP(e,t,n){let r=n;for(let i=1;ie[n]!==void 0)}function JP(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!jh(e,qP)&&jh(e,XP)){const n=GP(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}function nx({keyframes:e,restDelta:t,restSpeed:n,...r}){const i=e[0],s=e[e.length-1],o={done:!1,value:i},{stiffness:a,damping:l,mass:u,duration:c,velocity:d,isResolvedFromDuration:p}=JP({...r,velocity:-qt(r.velocity||0)}),v=d||0,y=l/(2*Math.sqrt(a*u)),w=s-i,S=qt(Math.sqrt(a/u)),x=Math.abs(w)<5;n||(n=x?.01:2),t||(t=x?.005:.5);let m;if(y<1){const g=pc(S,y);m=C=>{const T=Math.exp(-y*S*C);return s-T*((v+y*S*w)/g*Math.sin(g*C)+w*Math.cos(g*C))}}else if(y===1)m=g=>s-Math.exp(-S*g)*(w+(v+S*w)*g);else{const g=S*Math.sqrt(y*y-1);m=C=>{const T=Math.exp(-y*S*C),E=Math.min(g*C,300);return s-T*((v+y*S*w)*Math.sinh(E)+g*w*Math.cosh(E))/g}}return{calculatedDuration:p&&c||null,next:g=>{const C=m(g);if(p)o.done=g>=c;else{let T=v;g!==0&&(y<1?T=tx(m,g,C):T=0);const E=Math.abs(T)<=n,P=Math.abs(s-C)<=t;o.done=E&&P}return o.value=o.done?s:C,o}}}function Ph({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:s=500,modifyTarget:o,min:a,max:l,restDelta:u=.5,restSpeed:c}){const d=e[0],p={done:!1,value:d},v=j=>a!==void 0&&jl,y=j=>a===void 0?l:l===void 0||Math.abs(a-j)-w*Math.exp(-j/r),g=j=>x+m(j),C=j=>{const I=m(j),b=g(j);p.done=Math.abs(I)<=u,p.value=p.done?x:b};let T,E;const P=j=>{v(p.value)&&(T=j,E=nx({keyframes:[p.value,y(p.value)],velocity:tx(g,j,p.value),damping:i,stiffness:s,restDelta:u,restSpeed:c}))};return P(0),{calculatedDuration:null,next:j=>{let I=!1;return!E&&T===void 0&&(I=!0,C(j),P(j)),T!==void 0&&j>=T?E.next(j-T):(!I&&C(j),p)}}}const rx=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,ZP=1e-7,eR=12;function tR(e,t,n,r,i){let s,o,a=0;do o=t+(n-t)/2,s=rx(o,r,i)-e,s>0?n=o:t=o;while(Math.abs(s)>ZP&&++atR(s,0,1,e,n);return s=>s===0||s===1?s:rx(i(s),t,r)}const nR=Ds(.42,0,1,1),rR=Ds(0,0,.58,1),ix=Ds(.42,0,.58,1),iR=e=>Array.isArray(e)&&typeof e[0]!="number",sx=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,ox=e=>t=>1-e(1-t),rf=e=>1-Math.sin(Math.acos(e)),ax=ox(rf),sR=sx(rf),lx=Ds(.33,1.53,.69,.99),sf=ox(lx),oR=sx(sf),aR=e=>(e*=2)<1?.5*sf(e):.5*(2-Math.pow(2,-10*(e-1))),Rh={linear:_e,easeIn:nR,easeInOut:ix,easeOut:rR,circIn:rf,circInOut:sR,circOut:ax,backIn:sf,backInOut:oR,backOut:lx,anticipate:aR},Nh=e=>{if(Array.isArray(e)){oc(e.length===4);const[t,n,r,i]=e;return Ds(t,n,r,i)}else if(typeof e=="string")return oc(Rh[e]!==void 0),Rh[e];return e},Ss=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},oe=(e,t,n)=>e+(t-e)*n;function Bl(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function lR({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,s=0,o=0;if(!t)i=s=o=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;i=Bl(l,a,e+1/3),s=Bl(l,a,e),o=Bl(l,a,e-1/3)}return{red:Math.round(i*255),green:Math.round(s*255),blue:Math.round(o*255),alpha:r}}function aa(e,t){return n=>n>0?t:e}const $l=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},uR=[dc,Jn,Fr],cR=e=>uR.find(t=>t.test(e));function Oh(e){const t=cR(e);if(!t)return!1;let n=t.parse(e);return t===Fr&&(n=lR(n)),n}const Lh=(e,t)=>{const n=Oh(e),r=Oh(t);if(!n||!r)return aa(e,t);const i={...n};return s=>(i.red=$l(n.red,r.red,s),i.green=$l(n.green,r.green,s),i.blue=$l(n.blue,r.blue,s),i.alpha=oe(n.alpha,r.alpha,s),Jn.transform(i))},hc=new Set(["none","hidden"]);function dR(e,t){return hc.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function fR(e,t){return n=>oe(e,t,n)}function of(e){return typeof e=="number"?fR:typeof e=="string"?Wd(e)?aa:Me.test(e)?Lh:mR:Array.isArray(e)?ux:typeof e=="object"?Me.test(e)?Lh:pR:aa}function ux(e,t){const n=[...e],r=n.length,i=e.map((s,o)=>of(s)(s,t[o]));return s=>{for(let o=0;o{for(const s in r)n[s]=r[s](i);return n}}function hR(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let s=0;s{const n=_n.createTransformer(t),r=ws(e),i=ws(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?hc.has(e)&&!i.values.length||hc.has(t)&&!r.values.length?dR(e,t):Xt(ux(hR(r,i),i.values),n):aa(e,t)};function cx(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?oe(e,t,n):of(e)(e,t)}function gR(e,t,n){const r=[],i=n||cx,s=e.length-1;for(let o=0;ot[0];if(s===2&&e[0]===e[1])return()=>t[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const o=gR(t,r,i),a=o.length,l=u=>{let c=0;if(a>1)for(;cl(In(e[0],e[s-1],u)):l}function vR(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Ss(0,t,r);e.push(oe(n,1,i))}}function xR(e){const t=[0];return vR(t,e.length-1),t}function wR(e,t){return e.map(n=>n*t)}function SR(e,t){return e.map(()=>t||ix).splice(0,e.length-1)}function la({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=iR(r)?r.map(Nh):Nh(r),s={done:!1,value:t[0]},o=wR(n&&n.length===t.length?n:xR(t),e),a=yR(o,t,{ease:Array.isArray(i)?i:SR(t,i)});return{calculatedDuration:e,next:l=>(s.value=a(l),s.done=l>=e,s)}}const Ah=2e4;function CR(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t=Ah?1/0:t}const ER=e=>{const t=({timestamp:n})=>e(n);return{start:()=>G.update(t,!0),stop:()=>rn(t),now:()=>Re.isProcessing?Re.timestamp:bn.now()}},TR={decay:Ph,inertia:Ph,tween:la,keyframes:la,spring:nx},kR=e=>e/100;class af extends Z0{constructor({KeyframeResolver:t=ef,...n}){super(n),this.holdTime=null,this.startTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:a}=this.options;a&&a()};const{name:r,motionValue:i,keyframes:s}=this.options,o=(a,l)=>this.onKeyframesResolved(a,l);r&&i&&i.owner?this.resolver=i.owner.resolveKeyframes(s,o,r,i):this.resolver=new t(s,o,r,i),this.resolver.scheduleResolve()}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:s,velocity:o=0}=this.options,a=TR[n]||la;let l,u;a!==la&&typeof t[0]!="number"&&(l=Xt(kR,cx(t[0],t[1])),t=[0,100]);const c=a({...this.options,keyframes:t});s==="mirror"&&(u=a({...this.options,keyframes:[...t].reverse(),velocity:-o})),c.calculatedDuration===null&&(c.calculatedDuration=CR(c));const{calculatedDuration:d}=c,p=d+i,v=p*(r+1)-i;return{generator:c,mirroredGenerator:u,mapPercentToKeyframes:l,calculatedDuration:d,resolvedDuration:p,totalDuration:v}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:j}=this.options;return{done:!0,value:j[j.length-1]}}const{finalKeyframe:i,generator:s,mirroredGenerator:o,mapPercentToKeyframes:a,keyframes:l,calculatedDuration:u,totalDuration:c,resolvedDuration:d}=r;if(this.startTime===null)return s.next(0);const{delay:p,repeat:v,repeatType:y,repeatDelay:w,onUpdate:S}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-c/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const x=this.currentTime-p*(this.speed>=0?1:-1),m=this.speed>=0?x<0:x>c;this.currentTime=Math.max(x,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let g=this.currentTime,C=s;if(v){const j=Math.min(this.currentTime,c)/d;let I=Math.floor(j),b=j%1;!b&&j>=1&&(b=1),b===1&&I--,I=Math.min(I,v+1),!!(I%2)&&(y==="reverse"?(b=1-b,w&&(b-=w/d)):y==="mirror"&&(C=o)),g=In(0,1,b)*d}const T=m?{done:!1,value:l[0]}:C.next(g);a&&(T.value=a(T.value));let{done:E}=T;!m&&u!==null&&(E=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const P=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&E);return P&&i!==void 0&&(T.value=Qa(l,this.options,i)),S&&S(T.value),P&&this.finish(),T}get duration(){const{resolved:t}=this;return t?qt(t.calculatedDuration):0}get time(){return qt(this.currentTime)}set time(t){t=An(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=qt(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=ER,onPlay:n}=this.options;this.driver||(this.driver=t(i=>this.tick(i))),n&&n();const r=this.driver.now();this.holdTime!==null?this.startTime=r-this.holdTime:(!this.startTime||this.state==="finished")&&(this.startTime=r),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const dx=e=>Array.isArray(e)&&typeof e[0]=="number";function fx(e){return!!(!e||typeof e=="string"&&e in lf||dx(e)||Array.isArray(e)&&e.every(fx))}const Ii=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,lf={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ii([0,.65,.55,1]),circOut:Ii([.55,0,1,.45]),backIn:Ii([.31,.01,.66,-.59]),backOut:Ii([.33,1.53,.69,.99])};function jR(e){return px(e)||lf.easeOut}function px(e){if(e)return dx(e)?Ii(e):Array.isArray(e)?e.map(jR):lf[e]}function PR(e,t,n,{delay:r=0,duration:i=300,repeat:s=0,repeatType:o="loop",ease:a,times:l}={}){const u={[t]:n};l&&(u.offset=l);const c=px(a);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:r,duration:i,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:s+1,direction:o==="reverse"?"alternate":"normal"})}const RR=J0(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),NR=new Set(["opacity","clipPath","filter","transform"]),ua=10,OR=2e4;function LR(e){return e.type==="spring"||e.name==="backgroundColor"||!fx(e.ease)}function AR(e,t){const n=new af({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const i=[];let s=0;for(;!r.done&&sthis.onKeyframesResolved(s,o),n,r),this.resolver.scheduleResolve()}initPlayback(t,n){var r;let{duration:i=300,times:s,ease:o,type:a,motionValue:l,name:u}=this.options;if(!(!((r=l.owner)===null||r===void 0)&&r.current))return!1;if(LR(this.options)){const{onComplete:d,onUpdate:p,motionValue:v,...y}=this.options,w=AR(t,y);t=w.keyframes,t.length===1&&(t[1]=t[0]),i=w.duration,s=w.times,o=w.ease,a="keyframes"}const c=PR(l.owner.current,u,t,{...this.options,duration:i,times:s,ease:o});return c.startTime=bn.now(),this.pendingTimeline?(c.timeline=this.pendingTimeline,this.pendingTimeline=void 0):c.onfinish=()=>{const{onComplete:d}=this.options;l.set(Qa(t,this.options,n)),d&&d(),this.cancel(),this.resolveFinishedPromise()},{animation:c,duration:i,times:s,type:a,ease:o,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return qt(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return qt(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=An(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return _e;const{animation:r}=n;r.timeline=t,r.onfinish=null}return _e}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:i,type:s,ease:o,times:a}=t;if(!(n.playState==="idle"||n.playState==="finished")){if(this.time){const{motionValue:l,onUpdate:u,onComplete:c,...d}=this.options,p=new af({...d,keyframes:r,duration:i,type:s,ease:o,times:a,isGenerator:!0}),v=An(this.time);l.setWithVelocity(p.sample(v-ua).value,p.sample(v).value,ua)}this.cancel()}}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:i,repeatType:s,damping:o,type:a}=t;return RR()&&r&&NR.has(r)&&n&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate&&!i&&s!=="mirror"&&o!==0&&a!=="inertia"}}function bR(e,t){let n;const r=()=>{const{currentTime:i}=t,o=(i===null?0:i.value)/100;n!==o&&e(o),n=o};return G.update(r,!0),()=>rn(r)}const MR=J0(()=>window.ScrollTimeline!==void 0);class DR{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}then(t,n){return Promise.all(this.animations).then(t).catch(n)}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r{if(MR()&&r.attachTimeline)r.attachTimeline(t);else return r.pause(),bR(i=>{r.time=r.duration*i},t)});return()=>{n.forEach((r,i)=>{r&&r(),this.animations[i].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get duration(){let t=0;for(let n=0;nn[t]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}const uf=(e,t,n,r={},i,s)=>o=>{const a=Zd(r,e)||{},l=a.delay||r.delay||0;let{elapsed:u=0}=r;u=u-An(l);let c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-u,onUpdate:p=>{t.set(p),a.onUpdate&&a.onUpdate(p)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:s?void 0:i};hP(a)||(c={...c,...pP(e,c)}),c.duration&&(c.duration=An(c.duration)),c.repeatDelay&&(c.repeatDelay=An(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let d=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(c.duration=0,c.delay===0&&(d=!0)),d&&!s&&t.get()!==void 0){const p=Qa(c.keyframes,a);if(p!==void 0)return G.update(()=>{c.onUpdate(p),c.onComplete()}),new DR([])}return!s&&bh.supports(c)?new bh(c):new af(c)};function ca(e){return!!(Ie(e)&&e.add)}function cf(e,t){e.indexOf(t)===-1&&e.push(t)}function df(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class ff{constructor(){this.subscriptions=[]}add(t){return cf(this.subscriptions,t),()=>df(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let s=0;s!isNaN(parseFloat(e));class _R{constructor(t,n={}){this.version="11.2.12",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const s=bn.now();this.updatedAt!==s&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=bn.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=IR(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new ff);const r=this.events[t].add(n);return t==="change"?()=>{r(),G.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=bn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Mh)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Mh);return ex(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Cs(e,t){return new _R(e,t)}function FR(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Cs(n))}function VR(e,t){const n=Ya(e,t);let{transitionEnd:r={},transition:i={},...s}=n||{};s={...s,...r};for(const o in s){const a=Hj(s[o]);FR(e,o,a)}}function hx(e){return e.getProps()[h0]}function BR({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function mx(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var s;let{transition:o=e.getDefaultTransition(),transitionEnd:a,...l}=t;const u=e.getValue("willChange");r&&(o=r);const c=[],d=i&&e.animationState&&e.animationState.getState()[i];for(const p in l){const v=e.getValue(p,(s=e.latestValues[p])!==null&&s!==void 0?s:null),y=l[p];if(y===void 0||d&&BR(d,p))continue;const w={delay:n,elapsed:0,...Zd(o||{},p)};let S=!1;if(window.HandoffAppearAnimations){const m=hx(e);if(m){const g=window.HandoffAppearAnimations(m,p,v,G);g!==null&&(w.elapsed=g,S=!0)}}v.start(uf(p,v,y,e.shouldReduceMotion&&gr.has(p)?{type:!1}:w,e,S));const x=v.animation;x&&(ca(u)&&(u.add(p),x.then(()=>u.remove(p))),c.push(x))}return a&&Promise.all(c).then(()=>{G.update(()=>{a&&VR(e,a)})}),c}function mc(e,t,n={}){var r;const i=Ya(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:s=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(s=n.transitionOverride);const o=i?()=>Promise.all(mx(e,i,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:c=0,staggerChildren:d,staggerDirection:p}=s;return $R(e,t,c+u,d,p,n)}:()=>Promise.resolve(),{when:l}=s;if(l){const[u,c]=l==="beforeChildren"?[o,a]:[a,o];return u().then(()=>c())}else return Promise.all([o(),a(n.delay)])}function $R(e,t,n=0,r=0,i=1,s){const o=[],a=(e.variantChildren.size-1)*r,l=i===1?(u=0)=>u*r:(u=0)=>a-u*r;return Array.from(e.variantChildren).sort(UR).forEach((u,c)=>{u.notify("AnimationStart",t),o.push(mc(u,t,{...s,delay:n+l(c)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(o)}function UR(e,t){return e.sortNodePosition(t)}function zR(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(s=>mc(e,s,n));r=Promise.all(i)}else if(typeof t=="string")r=mc(e,t,n);else{const i=typeof t=="function"?Ya(e,t,n.custom):t;r=Promise.all(mx(e,i,n))}return r.then(()=>{G.postRender(()=>{e.notify("AnimationComplete",t)})})}const HR=[...Ud].reverse(),WR=Ud.length;function KR(e){return t=>Promise.all(t.map(({animation:n,options:r})=>zR(e,n,r)))}function GR(e){let t=KR(e),n=Dh(),r=!0;const i=l=>(u,c)=>{var d;const p=Ya(e,c,l==="exit"?(d=e.presenceContext)===null||d===void 0?void 0:d.custom:void 0);if(p){const{transition:v,transitionEnd:y,...w}=p;u={...u,...w,...y}}return u};function s(l){t=l(e)}function o(l){const u=e.getProps(),c=e.getVariantContext(!0)||{},d=[],p=new Set;let v={},y=1/0;for(let S=0;Sy&&C,I=!1;const b=Array.isArray(g)?g:[g];let X=b.reduce(i(x),{});T===!1&&(X={});const{prevResolvedValues:Ve={}}=m,Le={...Ve,...X},et=te=>{j=!0,p.has(te)&&(I=!0,p.delete(te)),m.needsAnimating[te]=!0;const ne=e.getValue(te);ne&&(ne.liveStyle=!1)};for(const te in Le){const ne=X[te],ke=Ve[te];if(v.hasOwnProperty(te))continue;let N=!1;ac(ne)&&ac(ke)?N=!_0(ne,ke):N=ne!==ke,N?ne!=null?et(te):p.add(te):ne!==void 0&&p.has(te)?et(te):m.protectedKeys[te]=!0}m.prevProp=g,m.prevResolvedValues=X,m.isActive&&(v={...v,...X}),r&&e.blockInitialAnimation&&(j=!1),j&&(!E||I)&&d.push(...b.map(te=>({animation:te,options:{type:x}})))}if(p.size){const S={};p.forEach(x=>{const m=e.getBaseTarget(x),g=e.getValue(x);g&&(g.liveStyle=!0),S[x]=m??null}),d.push({animation:S})}let w=!!d.length;return r&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(w=!1),r=!1,w?t(d):Promise.resolve()}function a(l,u){var c;if(n[l].isActive===u)return Promise.resolve();(c=e.variantChildren)===null||c===void 0||c.forEach(p=>{var v;return(v=p.animationState)===null||v===void 0?void 0:v.setActive(l,u)}),n[l].isActive=u;const d=o(l);for(const p in n)n[p].protectedKeys={};return d}return{animateChanges:o,setActive:a,setAnimateFunction:s,getState:()=>n,reset:()=>{n=Dh(),r=!0}}}function YR(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!_0(t,e):!1}function zn(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Dh(){return{animate:zn(!0),whileInView:zn(),whileHover:zn(),whileTap:zn(),whileDrag:zn(),whileFocus:zn(),exit:zn()}}class QR extends Un{constructor(t){super(t),t.animationState||(t.animationState=GR(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Wa(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let XR=0;class qR extends Un{constructor(){super(...arguments),this.id=XR++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const JR={animation:{Feature:QR},exit:{Feature:qR}},Ih=(e,t)=>Math.abs(e-t);function ZR(e,t){const n=Ih(e.x,t.x),r=Ih(e.y,t.y);return Math.sqrt(n**2+r**2)}class gx{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:s=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const d=zl(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,v=ZR(d.offset,{x:0,y:0})>=3;if(!p&&!v)return;const{point:y}=d,{timestamp:w}=Re;this.history.push({...y,timestamp:w});const{onStart:S,onMove:x}=this.handlers;p||(S&&S(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),x&&x(this.lastMoveEvent,d)},this.handlePointerMove=(d,p)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=Ul(p,this.transformPagePoint),G.update(this.updatePoint,!0)},this.handlePointerUp=(d,p)=>{this.end();const{onEnd:v,onSessionEnd:y,resumeAnimation:w}=this.handlers;if(this.dragSnapToOrigin&&w&&w(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const S=zl(d.type==="pointercancel"?this.lastMoveEventInfo:Ul(p,this.transformPagePoint),this.history);this.startEvent&&v&&v(d,S),y&&y(d,S)},!A0(t))return;this.dragSnapToOrigin=s,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const o=Ga(t),a=Ul(o,this.transformPagePoint),{point:l}=a,{timestamp:u}=Re;this.history=[{...l,timestamp:u}];const{onSessionStart:c}=n;c&&c(t,zl(a,this.history)),this.removeListeners=Xt(Qt(this.contextWindow,"pointermove",this.handlePointerMove),Qt(this.contextWindow,"pointerup",this.handlePointerUp),Qt(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),rn(this.updatePoint)}}function Ul(e,t){return t?{point:t(e.point)}:e}function _h(e,t){return{x:e.x-t.x,y:e.y-t.y}}function zl({point:e},t){return{point:e,delta:_h(e,yx(t)),offset:_h(e,eN(t)),velocity:tN(t,.1)}}function eN(e){return e[0]}function yx(e){return e[e.length-1]}function tN(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=yx(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>An(t)));)n--;if(!r)return{x:0,y:0};const s=qt(i.timestamp-r.timestamp);if(s===0)return{x:0,y:0};const o={x:(i.x-r.x)/s,y:(i.y-r.y)/s};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function st(e){return e.max-e.min}function gc(e,t=0,n=.01){return Math.abs(e-t)<=n}function Fh(e,t,n,r=.5){e.origin=r,e.originPoint=oe(t.min,t.max,e.origin),e.scale=st(n)/st(t),(gc(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=oe(n.min,n.max,e.origin)-e.originPoint,(gc(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Xi(e,t,n,r){Fh(e.x,t.x,n.x,r?r.originX:void 0),Fh(e.y,t.y,n.y,r?r.originY:void 0)}function Vh(e,t,n){e.min=n.min+t.min,e.max=e.min+st(t)}function nN(e,t,n){Vh(e.x,t.x,n.x),Vh(e.y,t.y,n.y)}function Bh(e,t,n){e.min=t.min-n.min,e.max=e.min+st(t)}function qi(e,t,n){Bh(e.x,t.x,n.x),Bh(e.y,t.y,n.y)}function rN(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?oe(n,e,r.max):Math.min(e,n)),e}function $h(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function iN(e,{top:t,left:n,bottom:r,right:i}){return{x:$h(e.x,n,i),y:$h(e.y,t,r)}}function Uh(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=Ss(t.min,t.max-r,e.min):r>i&&(n=Ss(e.min,e.max-i,t.min)),In(0,1,n)}function aN(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const yc=.35;function lN(e=yc){return e===!1?e=0:e===!0&&(e=yc),{x:zh(e,"left","right"),y:zh(e,"top","bottom")}}function zh(e,t,n){return{min:Hh(e,t),max:Hh(e,n)}}function Hh(e,t){return typeof e=="number"?e:e[t]||0}const Wh=()=>({translate:0,scale:1,origin:0,originPoint:0}),Vr=()=>({x:Wh(),y:Wh()}),Kh=()=>({min:0,max:0}),ce=()=>({x:Kh(),y:Kh()});function ut(e){return[e("x"),e("y")]}function vx({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function uN({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function cN(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Hl(e){return e===void 0||e===1}function vc({scale:e,scaleX:t,scaleY:n}){return!Hl(e)||!Hl(t)||!Hl(n)}function Gn(e){return vc(e)||xx(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function xx(e){return Gh(e.x)||Gh(e.y)}function Gh(e){return e&&e!=="0%"}function da(e,t,n){const r=e-n,i=t*r;return n+i}function Yh(e,t,n,r,i){return i!==void 0&&(e=da(e,i,r)),da(e,n,r)+t}function xc(e,t=0,n=1,r,i){e.min=Yh(e.min,t,n,r,i),e.max=Yh(e.max,t,n,r,i)}function wx(e,{x:t,y:n}){xc(e.x,t.translate,t.scale,t.originPoint),xc(e.y,n.translate,n.scale,n.originPoint)}function dN(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let s,o;for(let a=0;a1.0000000000001||e<.999999999999?e:1}function yn(e,t){e.min=e.min+t,e.max=e.max+t}function Xh(e,t,[n,r,i]){const s=t[i]!==void 0?t[i]:.5,o=oe(e.min,e.max,s);xc(e,t[n],t[r],o,t.scale)}const fN=["x","scaleX","originX"],pN=["y","scaleY","originY"];function Br(e,t){Xh(e.x,t,fN),Xh(e.y,t,pN)}function Sx(e,t){return vx(cN(e.getBoundingClientRect(),t))}function hN(e,t,n){const r=Sx(e,n),{scroll:i}=t;return i&&(yn(r.x,i.offset.x),yn(r.y,i.offset.y)),r}const Cx=({current:e})=>e?e.ownerDocument.defaultView:null,mN=new WeakMap;class gN{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=ce(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=c=>{const{dragSnapToOrigin:d}=this.getProps();d?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Ga(c,"page").point)},s=(c,d)=>{const{drag:p,dragPropagation:v,onDragStart:y}=this.getProps();if(p&&!v&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=M0(p),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),ut(S=>{let x=this.getAxisMotionValue(S).get()||0;if(Ft.test(x)){const{projection:m}=this.visualElement;if(m&&m.layout){const g=m.layout.layoutBox[S];g&&(x=st(g)*(parseFloat(x)/100))}}this.originPoint[S]=x}),y&&G.postRender(()=>y(c,d));const{animationState:w}=this.visualElement;w&&w.setActive("whileDrag",!0)},o=(c,d)=>{const{dragPropagation:p,dragDirectionLock:v,onDirectionLock:y,onDrag:w}=this.getProps();if(!p&&!this.openGlobalLock)return;const{offset:S}=d;if(v&&this.currentDirection===null){this.currentDirection=yN(S),this.currentDirection!==null&&y&&y(this.currentDirection);return}this.updateAxis("x",d.point,S),this.updateAxis("y",d.point,S),this.visualElement.render(),w&&w(c,d)},a=(c,d)=>this.stop(c,d),l=()=>ut(c=>{var d;return this.getAnimationState(c)==="paused"&&((d=this.getAxisMotionValue(c).animation)===null||d===void 0?void 0:d.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new gx(t,{onSessionStart:i,onStart:s,onMove:o,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:Cx(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:s}=this.getProps();s&&G.postRender(()=>s(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!ao(t,i,this.currentDirection))return;const s=this.getAxisMotionValue(t);let o=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(o=rN(o,this.constraints[t],this.elastic[t])),s.set(o)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,s=this.constraints;n&&_r(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=iN(i.layoutBox,n):this.constraints=!1,this.elastic=lN(r),s!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&ut(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=aN(i.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!_r(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const s=hN(r,i.root,this.visualElement.getTransformPagePoint());let o=sN(i.layout.layoutBox,s);if(n){const a=n(uN(o));this.hasMutatedConstraints=!!a,a&&(o=vx(a))}return o}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:s,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=ut(c=>{if(!ao(c,n,this.currentDirection))return;let d=l&&l[c]||{};o&&(d={min:0,max:0});const p=i?200:1e6,v=i?40:1e7,y={type:"inertia",velocity:r?t[c]:0,bounceStiffness:p,bounceDamping:v,timeConstant:750,restDelta:1,restSpeed:10,...s,...d};return this.startAxisValueAnimation(c,y)});return Promise.all(u).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return r.start(uf(t,r,0,n,this.visualElement))}stopAnimation(){ut(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){ut(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){ut(n=>{const{drag:r}=this.getProps();if(!ao(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,s=this.getAxisMotionValue(n);if(i&&i.layout){const{min:o,max:a}=i.layout.layoutBox[n];s.set(t[n]-oe(o,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!_r(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};ut(o=>{const a=this.getAxisMotionValue(o);if(a&&this.constraints!==!1){const l=a.get();i[o]=oN({min:l,max:l},this.constraints[o])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),ut(o=>{if(!ao(o,t,null))return;const a=this.getAxisMotionValue(o),{min:l,max:u}=this.constraints[o];a.set(oe(l,u,i[o]))})}addListeners(){if(!this.visualElement.current)return;mN.set(this.visualElement,this);const t=this.visualElement.current,n=Qt(t,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();_r(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,s=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),G.read(r);const o=Kt(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(ut(c=>{const d=this.getAxisMotionValue(c);d&&(this.originPoint[c]+=l[c].translate,d.set(d.get()+l[c].translate))}),this.visualElement.render())});return()=>{o(),n(),s(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:s=!1,dragElastic:o=yc,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:s,dragElastic:o,dragMomentum:a}}}function ao(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function yN(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class vN extends Un{constructor(t){super(t),this.removeGroupControls=_e,this.removeListeners=_e,this.controls=new gN(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||_e}unmount(){this.removeGroupControls(),this.removeListeners()}}const qh=e=>(t,n)=>{e&&G.postRender(()=>e(t,n))};class xN extends Un{constructor(){super(...arguments),this.removePointerDownListener=_e}onPointerDown(t){this.session=new gx(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Cx(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:qh(t),onStart:qh(n),onMove:r,onEnd:(s,o)=>{delete this.session,i&&G.postRender(()=>i(s,o))}}}mount(){this.removePointerDownListener=Qt(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function wN(){const e=h.useContext(Fd);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,i=h.useId();return h.useEffect(()=>r(i),[]),!t&&n?[!1,()=>n&&n(i)]:[!0]}const jo={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Jh(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Ni={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(D.test(e))e=parseFloat(e);else return e;const n=Jh(e,t.target.x),r=Jh(e,t.target.y);return`${n}% ${r}%`}},SN={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=_n.parse(e);if(i.length>5)return r;const s=_n.createTransformer(e),o=typeof i[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;i[0+o]/=a,i[1+o]/=l;const u=oe(a,l,.5);return typeof i[2+o]=="number"&&(i[2+o]/=u),typeof i[3+o]=="number"&&(i[3+o]/=u),s(i)}};class CN extends h.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:s}=t;xj(EN),s&&(n.group&&n.group.add(s),r&&r.register&&i&&r.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),jo.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:s}=this.props,o=r.projection;return o&&(o.isPresent=s,i||t.layoutDependency!==n||n===void 0?o.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?o.promote():o.relegate()||G.postRender(()=>{const a=o.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),$d.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Ex(e){const[t,n]=wN(),r=h.useContext(x0);return f.jsx(CN,{...e,layoutGroup:r,switchLayoutGroup:h.useContext(g0),isPresent:t,safeToRemove:n})}const EN={borderRadius:{...Ni,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Ni,borderTopRightRadius:Ni,borderBottomLeftRadius:Ni,borderBottomRightRadius:Ni,boxShadow:SN},Tx=["TopLeft","TopRight","BottomLeft","BottomRight"],TN=Tx.length,Zh=e=>typeof e=="string"?parseFloat(e):e,em=e=>typeof e=="number"||D.test(e);function kN(e,t,n,r,i,s){i?(e.opacity=oe(0,n.opacity!==void 0?n.opacity:1,jN(r)),e.opacityExit=oe(t.opacity!==void 0?t.opacity:1,0,PN(r))):s&&(e.opacity=oe(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let o=0;ort?1:n(Ss(e,t,r))}function nm(e,t){e.min=t.min,e.max=t.max}function lt(e,t){nm(e.x,t.x),nm(e.y,t.y)}function rm(e,t,n,r,i){return e-=t,e=da(e,1/n,r),i!==void 0&&(e=da(e,1/i,r)),e}function RN(e,t=0,n=1,r=.5,i,s=e,o=e){if(Ft.test(t)&&(t=parseFloat(t),t=oe(o.min,o.max,t/100)-o.min),typeof t!="number")return;let a=oe(s.min,s.max,r);e===s&&(a-=t),e.min=rm(e.min,t,n,a,i),e.max=rm(e.max,t,n,a,i)}function im(e,t,[n,r,i],s,o){RN(e,t[n],t[r],t[i],t.scale,s,o)}const NN=["x","scaleX","originX"],ON=["y","scaleY","originY"];function sm(e,t,n,r){im(e.x,t,NN,n?n.x:void 0,r?r.x:void 0),im(e.y,t,ON,n?n.y:void 0,r?r.y:void 0)}function om(e){return e.translate===0&&e.scale===1}function jx(e){return om(e.x)&&om(e.y)}function LN(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function Px(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function am(e){return st(e.x)/st(e.y)}class AN{constructor(){this.members=[]}add(t){cf(this.members,t),t.scheduleRender()}remove(t){if(df(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const s=this.members[i];if(s.isPresent!==!1){r=s;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function lm(e,t,n){let r="";const i=e.x.translate/t.x,s=e.y.translate/t.y,o=(n==null?void 0:n.z)||0;if((i||s||o)&&(r=`translate3d(${i}px, ${s}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:u,rotate:c,rotateX:d,rotateY:p,skewX:v,skewY:y}=n;u&&(r=`perspective(${u}px) ${r}`),c&&(r+=`rotate(${c}deg) `),d&&(r+=`rotateX(${d}deg) `),p&&(r+=`rotateY(${p}deg) `),v&&(r+=`skewX(${v}deg) `),y&&(r+=`skewY(${y}deg) `)}const a=e.x.scale*t.x,l=e.y.scale*t.y;return(a!==1||l!==1)&&(r+=`scale(${a}, ${l})`),r||"none"}const bN=(e,t)=>e.depth-t.depth;class MN{constructor(){this.children=[],this.isDirty=!1}add(t){cf(this.children,t),this.isDirty=!0}remove(t){df(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(bN),this.isDirty=!1,this.children.forEach(t)}}function DN(e,t){const n=bn.now(),r=({timestamp:i})=>{const s=i-n;s>=t&&(rn(r),e(s-t))};return G.read(r,!0),()=>rn(r)}function IN(e){window.MotionDebug&&window.MotionDebug.record(e)}function _N(e){return e instanceof SVGElement&&e.tagName!=="svg"}function FN(e,t,n){const r=Ie(e)?e:Cs(e);return r.start(uf("",r,t,n)),r.animation}const Wl=["","X","Y","Z"],VN={visibility:"hidden"},um=1e3;let BN=0;const Yn={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function Kl(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Rx(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return!1;const{visualElement:t}=e.options;return t?hx(t)?!0:e.parent&&!e.parent.hasCheckedOptimisedAppear?Rx(e.parent):!1:!1}function Nx({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(o={},a=t==null?void 0:t()){this.id=BN++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Yn.totalNodes=Yn.resolvedTargetDeltas=Yn.recalculatedProjection=0,this.nodes.forEach(zN),this.nodes.forEach(YN),this.nodes.forEach(QN),this.nodes.forEach(HN),IN(Yn)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;lthis.root.updateBlockedByResize=!1;e(o,()=>{this.root.updateBlockedByResize=!0,d&&d(),d=DN(p,250),jo.hasAnimatedSinceResize&&(jo.hasAnimatedSinceResize=!1,this.nodes.forEach(dm))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&c&&(l||u)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:p,hasRelativeTargetChanged:v,layout:y})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const w=this.options.transition||c.getDefaultTransition()||eO,{onLayoutAnimationStart:S,onLayoutAnimationComplete:x}=c.getProps(),m=!this.targetLayout||!Px(this.targetLayout,y)||v,g=!p&&v;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||g||p&&(m||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,g);const C={...Zd(w,"layout"),onPlay:S,onComplete:x};(c.shouldReduceMotion||this.options.layoutRoot)&&(C.delay=0,C.type=!1),this.startAnimation(C)}else p||dm(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=y})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,rn(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(XN),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.HandoffCancelAllAnimations&&Rx(this)&&window.HandoffCancelAllAnimations(),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l{const T=C/1e3;fm(d.x,o.x,T),fm(d.y,o.y,T),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(qi(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox),JN(this.relativeTarget,this.relativeTargetOrigin,p,T),g&&LN(this.relativeTarget,g)&&(this.isProjectionDirty=!1),g||(g=ce()),lt(g,this.relativeTarget)),w&&(this.animationValues=c,kN(c,u,this.latestValues,T,m,x)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=T},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(rn(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=G.update(()=>{jo.hasAnimatedSinceResize=!0,this.currentAnimation=FN(0,um,{...o,onUpdate:a=>{this.mixTargetDelta(a),o.onUpdate&&o.onUpdate(a)},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(um),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:a,target:l,layout:u,latestValues:c}=o;if(!(!a||!l||!u)){if(this!==o&&this.layout&&u&&Ox(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||ce();const d=st(this.layout.layoutBox.x);l.x.min=o.target.x.min,l.x.max=l.x.min+d;const p=st(this.layout.layoutBox.y);l.y.min=o.target.y.min,l.y.max=l.y.min+p}lt(a,l),Br(a,c),Xi(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new AN),this.sharedNodes.get(o).add(a);const u=a.options.initialPromotionConfig;a.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(a):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var o;const{layoutId:a}=this.options;return a?((o=this.getStack())===null||o===void 0?void 0:o.lead)||this:this}getPrevLead(){var o;const{layoutId:a}=this.options;return a?(o=this.getStack())===null||o===void 0?void 0:o.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:a,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),o&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let a=!1;const{latestValues:l}=o;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const u={};l.z&&Kl("z",o,u,this.animationValues);for(let c=0;c{var a;return(a=o.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(cm),this.root.sharedNodes.clear()}}}function $N(e){e.updateLayout()}function UN(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:s}=e.options,o=n.source!==e.layout.source;s==="size"?ut(d=>{const p=o?n.measuredBox[d]:n.layoutBox[d],v=st(p);p.min=r[d].min,p.max=p.min+v}):Ox(s,n.layoutBox,r)&&ut(d=>{const p=o?n.measuredBox[d]:n.layoutBox[d],v=st(r[d]);p.max=p.min+v,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+v)});const a=Vr();Xi(a,r,n.layoutBox);const l=Vr();o?Xi(l,e.applyTransform(i,!0),n.measuredBox):Xi(l,r,n.layoutBox);const u=!jx(a);let c=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:p,layout:v}=d;if(p&&v){const y=ce();qi(y,n.layoutBox,p.layoutBox);const w=ce();qi(w,r,v.layoutBox),Px(y,w)||(c=!0),d.options.layoutRoot&&(e.relativeTarget=w,e.relativeTargetOrigin=y,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:u,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function zN(e){Yn.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function HN(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function WN(e){e.clearSnapshot()}function cm(e){e.clearMeasurements()}function KN(e){e.isLayoutDirty=!1}function GN(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function dm(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function YN(e){e.resolveTargetDelta()}function QN(e){e.calcProjection()}function XN(e){e.resetSkewAndRotation()}function qN(e){e.removeLeadSnapshot()}function fm(e,t,n){e.translate=oe(t.translate,0,n),e.scale=oe(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function pm(e,t,n,r){e.min=oe(t.min,n.min,r),e.max=oe(t.max,n.max,r)}function JN(e,t,n,r){pm(e.x,t.x,n.x,r),pm(e.y,t.y,n.y,r)}function ZN(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const eO={duration:.45,ease:[.4,0,.1,1]},hm=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),mm=hm("applewebkit/")&&!hm("chrome/")?Math.round:_e;function gm(e){e.min=mm(e.min),e.max=mm(e.max)}function tO(e){gm(e.x),gm(e.y)}function Ox(e,t,n){return e==="position"||e==="preserve-aspect"&&!gc(am(t),am(n),.2)}const nO=Nx({attachResizeListener:(e,t)=>Kt(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Gl={current:void 0},Lx=Nx({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Gl.current){const e=new nO({});e.mount(window),e.setOptions({layoutScroll:!0}),Gl.current=e}return Gl.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),rO={pan:{Feature:xN},drag:{Feature:vN,ProjectionNode:Lx,MeasureLayout:Ex}},wc={current:null},Ax={current:!1};function iO(){if(Ax.current=!0,!!Vd)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>wc.current=e.matches;e.addListener(t),t()}else wc.current=!1}function sO(e,t,n){const{willChange:r}=t;for(const i in t){const s=t[i],o=n[i];if(Ie(s))e.addValue(i,s),ca(r)&&r.add(i);else if(Ie(o))e.addValue(i,Cs(s,{owner:e})),ca(r)&&r.remove(i);else if(o!==s)if(e.hasValue(i)){const a=e.getValue(i);a.liveStyle===!0?a.jump(s):a.hasAnimated||a.set(s)}else{const a=e.getStaticValue(i);e.addValue(i,Cs(a!==void 0?a:s,{owner:e}))}}for(const i in n)t[i]===void 0&&e.removeValue(i);return t}const ym=new WeakMap,oO=[...U0,Me,_n],aO=e=>oO.find($0(e)),vm=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],lO=zd.length;class uO{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:s,visualState:o},a={}){this.resolveKeyframes=(p,v,y,w)=>new this.KeyframeResolver(p,v,y,w,this),this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=ef,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>G.render(this.render,!1,!0);const{latestValues:l,renderState:u}=o;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=u,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=a,this.blockInitialAnimation=!!s,this.isControllingVariants=Ka(n),this.isVariantNode=v0(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:c,...d}=this.scrapeMotionValuesFromProps(n,{},this);for(const p in d){const v=d[p];l[p]!==void 0&&Ie(v)&&(v.set(l[p],!1),ca(c)&&c.add(p))}}mount(t){this.current=t,ym.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),Ax.current||iO(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:wc.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){ym.delete(this.current),this.projection&&this.projection.unmount(),rn(this.notifyUpdate),rn(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){const r=gr.has(t),i=n.on("change",o=>{this.latestValues[t]=o,this.props.onUpdate&&G.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),s=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{i(),s(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in ni){const n=ni[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const s=this.features[t];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):ce()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;rn.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Cs(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let i=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return i!=null&&(typeof i=="string"&&(V0(i)||F0(i))?i=parseFloat(i):!aO(i)&&_n.test(n)&&(i=X0(t,n)),this.setBaseTarget(t,Ie(i)?i.get():i)),Ie(i)?i.get():i}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let i;if(typeof r=="string"||typeof r=="object"){const o=Jd(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);o&&(i=o[t])}if(r&&i!==void 0)return i;const s=this.getBaseTargetFromProps(this.props,t);return s!==void 0&&!Ie(s)?s:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new ff),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class bx extends uO{constructor(){super(...arguments),this.KeyframeResolver=q0}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}}function cO(e){return window.getComputedStyle(e)}class dO extends bx{constructor(){super(...arguments),this.type="html"}readValueFromInstance(t,n){if(gr.has(n)){const r=nf(n);return r&&r.default||0}else{const r=cO(t),i=(C0(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Sx(t,n)}build(t,n,r,i){Gd(t,n,r,i.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return qd(t,n,r)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Ie(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(t,n,r,i){P0(t,n,r,i)}}class fO extends bx{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(gr.has(n)){const r=nf(n);return r&&r.default||0}return n=R0.has(n)?n:Bd(n),t.getAttribute(n)}measureInstanceViewportBox(){return ce()}scrapeMotionValuesFromProps(t,n,r){return O0(t,n,r)}build(t,n,r,i){Qd(t,n,r,this.isSVGTag,i.transformTemplate)}renderInstance(t,n,r,i){N0(t,n,r,i)}mount(t){this.isSVGTag=Xd(t.tagName),super.mount(t)}}const pO=(e,t)=>Hd(e)?new fO(t,{enableHardwareAcceleration:!1}):new dO(t,{allowProjection:e!==h.Fragment,enableHardwareAcceleration:!0}),hO={layout:{ProjectionNode:Lx,MeasureLayout:Ex}},mO={...JR,...lP,...rO,...hO},Nt=yj((e,t)=>Qj(e,t,mO,pO)),Mx=({triggerFeedback:e})=>{const[t,n]=h.useState(!0),[r,i]=h.useState(!0),[s,o]=h.useState(!1),[a,l]=h.useState(""),[u,c]=h.useState(""),[d,p]=h.useState(!1),[v,y]=h.useState(""),{register:w}=an();h.useEffect(()=>{lh(u)&&ah(a)&&u===v?o(!0):o(!1)},[a,u,v]);const S=C=>Gi(C,l),x=C=>Gi(C,c),m=C=>Gi(C,y),g=async C=>{p(!0);const T=[];if(C.preventDefault(),s)try{const E=await w({username:a,password:u});E.status===201?T.push({title:"Registration Successful",message:E.data.msg,type:"success"}):(T.push({title:"Registration Failed",message:E.data.msg,type:"error"}),p(!1))}catch(E){console.log(E.message),p(!1)}else{C.stopPropagation();const E=[];u!==v&&E.push("passwords_not_matching"),lh(u)||E.push("invalid_password"),ah(a)||E.push("invalid_username");for(const P of E)for(const j of Hk)j.name===P&&T.push(j.info)}e(T)};return f.jsx(un,{className:"pt-5 mt-5 px-4 align-middle col-12 col-sm-10 col-md-8 col-lg-6 col-xl-5",children:f.jsxs(Nt.div,{initial:{opacity:0,x:-100,scale:.95},animate:{opacity:1,x:0,scale:1},transition:{duration:.8,delay:.5,ease:[0,.71,.2,1.01]},children:[f.jsxs(ti,{gap:1,children:[f.jsx("h1",{className:"display-3 mt-5 pt-5","aria-label":"title",children:"Create an account"}),f.jsx("p",{"aria-label":"subtitle",children:"Enter a username and password"})]}),f.jsxs(O,{noValidate:!0,validated:s,onSubmit:g,children:[f.jsxs(O.Group,{controlId:"form",children:[f.jsx(nr,{controlId:"username-label",label:"Your username",children:f.jsx(O.Control,{type:"text",placeholder:"Your username",className:"mb-2",title:"Type your username here.","aria-label":"username-input",onChange:S})}),f.jsxs(xe,{hasValidation:!0,className:"mb-2",children:[f.jsx(nr,{controlId:"password-label",label:"Your password",children:f.jsx(O.Control,{type:t?"password":"text",placeholder:"Your password",title:"Type your password here.","aria-label":"password-input",onChange:x})}),f.jsx(B,{variant:"outline-secondary",onClick:()=>n(!t),title:"Click here to reveal your password.","aria-label":"hide-password-button",children:f.jsx(Q,{src:t?"/simplifica/eye.svg":"/simplifica/eye-slash.svg",alt:"Icon of an eye."})})]}),f.jsxs(xe,{hasValidation:!0,className:"mb-2",children:[f.jsx(nr,{controlId:"confirm-password-label",label:"Confirm your password",children:f.jsx(O.Control,{type:r?"password":"text",placeholder:"Confirm your password","aria-label":"confirm-password-input",title:"Type your password again here.",onChange:m})}),f.jsx(B,{variant:"outline-secondary",onClick:()=>i(!r),title:"Click here to reveal your password.","aria-label":"hide-confirm-password-button",children:f.jsx(Q,{src:r?"/simplifica/eye.svg":"/simplifica/eye-slash.svg",alt:"Icon of an eye."})})]})]}),d?f.jsxs(B,{variant:"dark","aria-label":"get-started-button",title:"Signing you up...",className:"w-100",disabled:!0,children:["Creating your account...",f.jsx(mr,{as:"span",animation:"border",className:"mx-3",size:"sm",role:"status","aria-hidden":"true"})]}):f.jsx(B,{type:"submit",variant:"dark",className:"w-100","aria-label":"get-started-button",title:"Click here to register your account.",children:"Get Started"})]})]})})};Mx.propTypes={triggerFeedback:$.func.isRequired};const Dx=({triggerFeedback:e})=>{const[t,n]=h.useState(""),[r,i]=h.useState(""),[s,o]=h.useState(!0),[a,l]=h.useState(!1),{signIn:u}=an(),c=v=>Gi(v,n),d=v=>Gi(v,i),p=async v=>{v.preventDefault(),l(!0);const y=[],w={username:t,password:r};try{const S=await u(w);S.status===200?y.push({type:"success",title:"Successfully Signed In",message:S.data.msg}):(y.push({type:"error",title:"Unsuccessful",message:S.data.msg}),l(!1))}catch(S){y.push({type:"error",title:"Error",message:S.message}),l(!1)}e(y)};return f.jsx(un,{className:"pt-5 mt-5 px-4 align-middle col-12 col-sm-10 col-md-8 col-lg-6 col-xl-5",children:f.jsxs(Nt.div,{initial:{opacity:0,x:-100,scale:.95},animate:{opacity:1,x:0,scale:1},transition:{duration:.8,delay:.5,ease:[0,.71,.2,1.01]},children:[f.jsx(ti,{gap:1,className:"mb-3",children:f.jsx("h1",{className:"display-3 mt-5 pt-5","aria-label":"title",children:"Welcome back"})}),f.jsxs(O,{noValidate:!0,onSubmit:p,children:[f.jsxs(O.Group,{controlId:"form",children:[f.jsx(nr,{controlId:"username-label",label:"Your username",children:f.jsx(O.Control,{type:"text",placeholder:"Your username",className:"mb-2",title:"Type your username here.","aria-label":"username-input",onChange:c})}),f.jsxs(xe,{className:"mb-2",children:[f.jsx(nr,{controlId:"password-label",label:"Your password",children:f.jsx(O.Control,{type:s?"password":"text",placeholder:"Your password",title:"Type your password here.","aria-label":"password-input",onChange:d})}),f.jsx(B,{variant:"outline-secondary",onClick:()=>o(!s),title:"Click here to reveal your password.","aria-label":"hide-password-button",children:f.jsx(Q,{src:s?"/simplifica/eye.svg":"/simplifica/eye-slash.svg",alt:"Icon of an eye."})})]})]}),a?f.jsxs(B,{variant:"dark","aria-label":"sign-in-button",title:"Signing in...",className:"w-100",disabled:!0,children:["Signing in...",f.jsx(mr,{as:"span",animation:"border",className:"mx-3",size:"sm",role:"status","aria-hidden":"true"})]}):f.jsx(B,{type:"submit",variant:"dark",className:"w-100","aria-label":"sign-in-button",title:"Click here to sign into your account.",children:"Sign In"})]})]})})};Dx.propTypes={triggerFeedback:$.func};var bt,Mt;class Xa{constructor(t,n){Vs(this,bt);Vs(this,Mt);Bs(this,bt,he.create({baseURL:t})),Bs(this,Mt,n)}getInstance(){return Se(this,bt)}getUserId(){return Se(this,Mt)}async getLessonPlans(){try{return await Se(this,bt).get(`/${Se(this,Mt)}/lesson-plans`)}catch(t){return t.message}}async getOneLessonPlan(t){try{return await Se(this,bt).get(`/${Se(this,Mt)}/lesson-plans/${t}`)}catch(n){return n.message}}async createLessonPlan(t){try{return await Se(this,bt).post(`/${Se(this,Mt)}/lesson-plans`,{lessonPlan:t})}catch(n){return n.message}}async updateLessonPlan(t,n){try{return await Se(this,bt).put(`/${Se(this,Mt)}/lesson-plans/${t}`,{newLessonPlan:n})}catch(r){return r.message}}async deleteLessonPlan(t){try{return await Se(this,bt).delete(`/${Se(this,Mt)}/lesson-plans/${t}`)}catch(n){return n.message}}}bt=new WeakMap,Mt=new WeakMap;const gO=async(e,t)=>{try{const n=await e.current.getLessonPlans();t(n.data.lessonPlans)}catch(n){console.log(n.message)}},Ix=async(e,t,n)=>{try{const r=await e.current.getOneLessonPlan(t);n(r.data.lessonPlan)}catch(r){console.log(r.message)}},ct=({message:e=""})=>f.jsx(un,{className:"pt-5 mt-5 px-4 h-100 align-middle",children:f.jsxs(ti,{gap:1,className:"col-12 col-sm-10 col-md-8 col-lg-6 col-xl-5",children:[f.jsx("h1",{className:"display-1 mt-5 pt-5 text-danger","aria-label":"title",children:"Uh-oh..."}),f.jsx("p",{"aria-label":"message",children:e.trim()!==""?e:"An unexpected error occurred. Click below to return to the homepage or see the console for more information."}),f.jsx(Et,{to:"/",children:f.jsx(B,{variant:"dark",className:"w-100",title:"Return to home page.","aria-label":"back-button",children:"Back"})})]})});ct.propTypes={message:$.string};const Is=h.forwardRef(({bsPrefix:e,className:t,as:n="div",...r},i)=>{const s=M(e,"row"),o=jd(),a=Pd(),l=`${s}-cols`,u=[];return o.forEach(c=>{const d=r[c];delete r[c];let p;d!=null&&typeof d=="object"?{cols:p}=d:p=d;const v=c!==a?`-${c}`:"";p!=null&&u.push(`${l}${v}-${p}`)}),f.jsx(n,{ref:i,...r,className:A(t,s,...u)})});Is.displayName="Row";const yO=h.forwardRef(({bsPrefix:e,className:t,striped:n,bordered:r,borderless:i,hover:s,size:o,variant:a,responsive:l,...u},c)=>{const d=M(e,"table"),p=A(t,d,a&&`${d}-${a}`,o&&`${d}-${o}`,n&&`${d}-${typeof n=="string"?`striped-${n}`:"striped"}`,r&&`${d}-bordered`,i&&`${d}-borderless`,s&&`${d}-hover`),v=f.jsx("table",{...u,className:p,ref:c});if(l){let y=`${d}-responsive`;return typeof l=="string"&&(y=`${y}-${l}`),f.jsx("div",{className:y,children:v})}return v}),vO=()=>{const[e,t]=h.useState([]),[n,r]=h.useState(!1),i=h.useRef(),{user:s}=an(),{userId:o}=La();return h.useEffect(()=>{s&&(s._id===o?r(!0):r(!1)),n&&!i.current&&(i.current=new Xa("https://simplifica-backend-spring-smoke-3356.fly.dev/",o),gO(i,t))},[n,s,o]),f.jsx(f.Fragment,{children:n?f.jsx(Nt.div,{initial:{opacity:0,x:-100,scale:.95},animate:{opacity:1,x:0,scale:1},transition:{duration:.8,delay:.5,ease:[0,.71,.2,1.01]},children:f.jsxs(un,{className:"pt-5 mt-3 mt-lg-5 mx-lg-5 px-4 align-middle",children:[f.jsxs(Is,{className:"mb-3 mx-2 mt-3 mt-lg-5 mx-lg-5 pt-5 align-items-center",children:[f.jsx(Pt,{xs:8,md:10,children:f.jsx("h1",{className:"display-3","aria-label":"title",children:"My Lesson Plans"})}),f.jsx(Pt,{xs:{span:2,offset:1},md:1,children:f.jsx(Et,{to:`/${o}/create`,children:f.jsx(B,{variant:"outline-success",children:f.jsx(Q,{src:"/simplifica/plus.svg"})})})})]}),f.jsxs(yO,{striped:!0,className:"mx-1 mx-lg-5",children:[f.jsx("thead",{children:f.jsxs("tr",{children:[f.jsx("th",{children:"#"}),f.jsx("th",{children:"Topic"}),f.jsx("th",{children:"Date"})]})}),f.jsx("tbody",{children:e!==void 0&&e.map((a,l)=>f.jsxs("tr",{children:[f.jsx("td",{children:f.jsx(Et,{to:`/${o}/view/${a._id}`,children:l+1})}),f.jsx("td",{children:f.jsx(Et,{to:`/${o}/view/${a._id}`,children:a.topic})}),f.jsx("td",{children:f.jsx(Et,{to:`/${o}/view/${a._id}`,children:new Date(a.date).toLocaleDateString("en-GB")})})]},l))})]})]})}):f.jsx(Nt.div,{initial:{opacity:0,x:-100,scale:.95},animate:{opacity:1,x:0,scale:1},transition:{duration:.8,delay:.5,ease:[0,.71,.2,1.01]},children:f.jsx(ct,{message:"You are trying to access someone else's profile. To access their profile, you must be signed in with their account."})})})},xO=()=>f.jsxs(un,{className:"pt-5 mt-5 px-4 align-middle",children:[f.jsxs(ti,{gap:1,children:[f.jsxs("h1",{className:"display-1 mt-5 pt-5","aria-label":"title",children:["Simplifica",f.jsx(Nt.span,{initial:{opacity:0,scale:0},animate:{opacity:1,scale:1},transition:{type:"spring",stiffness:260,damping:20},children:"."})]}),f.jsx("p",{"aria-label":"subtitle",children:"Who said planning lessons couldn't be quick?"})]}),f.jsxs(ti,{gap:2,className:"col-12 col-sm-10 col-md-8 col-lg-6 col-xl-5",children:[f.jsx(Et,{to:"/register",children:f.jsx(B,{variant:"dark","aria-label":"sign-up-button",className:"w-100",title:"Register for an account.",children:"Sign Up (it's free!)"})}),f.jsx(Et,{to:"/login",children:f.jsx(B,{variant:"outline-secondary","aria-label":"sign-in-button",className:"w-100",title:"Sign in to an account.",children:"Sign In"})})]})]}),wO="",SO="",CO={objective:"",materials:[],connection:""},EO={real_life_application:"",feedback_method:"",activities:[]},TO={learner_interaction:"",success_criteria:[],activities:[]},pf={topic:wO,date:SO,presentation:CO,practice:EO,production:TO};var lo;function xm(e){if((!lo&&lo!==0||e)&&fi){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),lo=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return lo}function kO(){return h.useState(null)}const _x=h.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=M(t,"modal-body"),f.jsx(n,{ref:i,className:A(e,t),...r})));_x.displayName="ModalBody";const hf=h.forwardRef(({bsPrefix:e,className:t,contentClassName:n,centered:r,size:i,fullscreen:s,children:o,scrollable:a,...l},u)=>{e=M(e,"modal");const c=`${e}-dialog`,d=typeof s=="string"?`${e}-fullscreen-${s}`:`${e}-fullscreen`;return f.jsx("div",{...l,ref:u,className:A(c,t,i&&`${e}-${i}`,r&&`${c}-centered`,a&&`${c}-scrollable`,s&&d),children:f.jsx("div",{className:A(`${e}-content`,n),children:o})})});hf.displayName="ModalDialog";const Fx=h.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=M(t,"modal-footer"),f.jsx(n,{ref:i,className:A(e,t),...r})));Fx.displayName="ModalFooter";const Vx=h.forwardRef(({bsPrefix:e,className:t,closeLabel:n="Close",closeButton:r=!1,...i},s)=>(e=M(e,"modal-header"),f.jsx(Fv,{ref:s,...i,className:A(t,e),closeLabel:n,closeButton:r})));Vx.displayName="ModalHeader";const jO=$a("h4"),Bx=h.forwardRef(({className:e,bsPrefix:t,as:n=jO,...r},i)=>(t=M(t,"modal-title"),f.jsx(n,{ref:i,className:A(e,t),...r})));Bx.displayName="ModalTitle";function PO(e){return f.jsx(hr,{...e,timeout:null})}function RO(e){return f.jsx(hr,{...e,timeout:null})}const $x=h.forwardRef(({bsPrefix:e,className:t,style:n,dialogClassName:r,contentClassName:i,children:s,dialogAs:o=hf,"data-bs-theme":a,"aria-labelledby":l,"aria-describedby":u,"aria-label":c,show:d=!1,animation:p=!0,backdrop:v=!0,keyboard:y=!0,onEscapeKeyDown:w,onShow:S,onHide:x,container:m,autoFocus:g=!0,enforceFocus:C=!0,restoreFocus:T=!0,restoreFocusOptions:E,onEntered:P,onExit:j,onExiting:I,onEnter:b,onEntering:X,onExited:Ve,backdropClassName:Le,manager:et,...te},ne)=>{const[ke,N]=h.useState({}),[_,F]=h.useState(!1),H=h.useRef(!1),q=h.useRef(!1),je=h.useRef(null),[ye,me]=kO(),Be=pi(ne,me),Vt=ze(x),qa=DT();e=M(e,"modal");const gi=h.useMemo(()=>({onHide:Vt}),[Vt]);function yr(){return et||Uv({isRTL:qa})}function _s(W){if(!fi)return;const wr=yr().getScrollbarWidth()>0,xf=W.scrollHeight>Fa(W).documentElement.clientHeight;N({paddingRight:wr&&!xf?xm():void 0,paddingLeft:!wr&&xf?xm():void 0})}const vr=ze(()=>{ye&&_s(ye.dialog)});Od(()=>{nc(window,"resize",vr),je.current==null||je.current()});const yi=()=>{H.current=!0},xr=W=>{H.current&&ye&&W.target===ye.dialog&&(q.current=!0),H.current=!1},re=()=>{F(!0),je.current=Rv(ye.dialog,()=>{F(!1)})},Fs=W=>{W.target===W.currentTarget&&re()},vi=W=>{if(v==="static"){Fs(W);return}if(q.current||W.target!==W.currentTarget){q.current=!1;return}x==null||x()},yw=W=>{y?w==null||w(W):(W.preventDefault(),v==="static"&&re())},vw=(W,wr)=>{W&&_s(W),b==null||b(W,wr)},xw=W=>{je.current==null||je.current(),j==null||j(W)},ww=(W,wr)=>{X==null||X(W,wr),Pv(window,"resize",vr)},Sw=W=>{W&&(W.style.display=""),Ve==null||Ve(W),nc(window,"resize",vr)},Cw=h.useCallback(W=>f.jsx("div",{...W,className:A(`${e}-backdrop`,Le,!p&&"show")}),[p,Le,e]),vf={...n,...ke};vf.display="block";const Ew=W=>f.jsx("div",{role:"dialog",...W,style:vf,className:A(t,e,_&&`${e}-static`,!p&&"show"),onClick:v?vi:void 0,onMouseUp:xr,"data-bs-theme":a,"aria-label":c,"aria-labelledby":l,"aria-describedby":u,children:f.jsx(o,{...te,onMouseDown:yi,className:r,contentClassName:i,children:s})});return f.jsx(Md.Provider,{value:gi,children:f.jsx(Dv,{show:d,ref:Be,backdrop:v,container:m,keyboard:!0,autoFocus:g,enforceFocus:C,restoreFocus:T,restoreFocusOptions:E,onEscapeKeyDown:yw,onShow:S,onHide:x,onEnter:vw,onEntering:ww,onEntered:P,onExit:xw,onExiting:I,onExited:Sw,manager:yr(),transition:p?PO:void 0,backdropTransition:p?RO:void 0,renderBackdrop:Cw,renderDialog:Ew})})});$x.displayName="Modal";const Oi=Object.assign($x,{Body:_x,Header:Vx,Title:Bx,Footer:Fx,Dialog:hf,TRANSITION_DURATION:300,BACKDROP_TRANSITION_DURATION:150}),Ux=({show:e,toggleShow:t,handleDeleteConfirmed:n})=>{const r=()=>{t(),n()};return f.jsxs(Oi,{variant:"warning",show:e,onHide:t,children:[f.jsx(Oi.Header,{closeButton:!0,children:f.jsx(Oi.Title,{children:"Warning"})}),f.jsx(Oi.Body,{children:"You are about to delete this lesson plan. Are you sure you want to continue?"}),f.jsxs(Oi.Footer,{children:[f.jsx(B,{variant:"secondary",onClick:t,children:"Cancel"}),f.jsx(B,{variant:"danger",onClick:r,children:"Delete"})]})]})};Ux.propTypes={show:$.bool,toggleShow:$.func,handleDeleteConfirmed:$.func};var wm={exports:{}},Sc={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r){function i(o,a,l,u,c,d){var p=u||"<>",v=d||l;if(a[l]==null)return o?new Error("Required "+c+" `"+v+"` was not specified "+("in `"+p+"`.")):null;for(var y=arguments.length,w=Array(y>6?y-6:0),S=6;S!t,!1);return e}const mf=h.createContext(null);mf.displayName="NavContext";const mi=h.createContext(null),LO=["as","active","eventKey"];function AO(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,s;for(s=0;s=0)&&(n[i]=e[i]);return n}function zx({key:e,onClick:t,active:n,id:r,role:i,disabled:s}){const o=h.useContext(cr),a=h.useContext(mf),l=h.useContext(mi);let u=n;const c={role:i};if(a){!i&&a.role==="tablist"&&(c.role="tab");const d=a.getControllerId(e??null),p=a.getControlledId(e??null);c[Va("event-key")]=e,c.id=d||r,u=n==null&&e!=null?a.activeKey===e:n,(u||!(l!=null&&l.unmountOnExit)&&!(l!=null&&l.mountOnEnter))&&(c["aria-controls"]=p)}return c.role==="tab"&&(c["aria-selected"]=u,u||(c.tabIndex=-1),s&&(c.tabIndex=-1,c["aria-disabled"]=!0)),c.onClick=ze(d=>{s||(t==null||t(d),e!=null&&o&&!d.isPropagationStopped()&&o(e,d))}),[c,{isActive:u}]}const Hx=h.forwardRef((e,t)=>{let{as:n=Gv,active:r,eventKey:i}=e,s=AO(e,LO);const[o,a]=zx(Object.assign({key:vs(i,s.href),active:r},s));return o[Va("active")]=a.isActive,f.jsx(n,Object.assign({},s,o,{ref:t}))});Hx.displayName="NavItem";const bO=Hx,MO=["as","onSelect","activeKey","role","onKeyDown"];function DO(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,s;for(s=0;s=0)&&(n[i]=e[i]);return n}const Sm=()=>{},Cm=Va("event-key"),Wx=h.forwardRef((e,t)=>{let{as:n="div",onSelect:r,activeKey:i,role:s,onKeyDown:o}=e,a=DO(e,MO);const l=OO(),u=h.useRef(!1),c=h.useContext(cr),d=h.useContext(mi);let p,v;d&&(s=s||"tablist",i=d.activeKey,p=d.getControlledId,v=d.getControllerId);const y=h.useRef(null),w=g=>{const C=y.current;if(!C)return null;const T=Kn(C,`[${Cm}]:not([aria-disabled=true])`),E=C.querySelector("[aria-selected=true]");if(!E||E!==document.activeElement)return null;const P=T.indexOf(E);if(P===-1)return null;let j=P+g;return j>=T.length&&(j=0),j<0&&(j=T.length-1),T[j]},S=(g,C)=>{g!=null&&(r==null||r(g,C),c==null||c(g,C))},x=g=>{if(o==null||o(g),!d)return;let C;switch(g.key){case"ArrowLeft":case"ArrowUp":C=w(-1);break;case"ArrowRight":case"ArrowDown":C=w(1);break;default:return}C&&(g.preventDefault(),S(C.dataset[uk("EventKey")]||null,g),u.current=!0,l())};h.useEffect(()=>{if(y.current&&u.current){const g=y.current.querySelector(`[${Cm}][aria-selected=true]`);g==null||g.focus()}u.current=!1});const m=pi(t,y);return f.jsx(cr.Provider,{value:S,children:f.jsx(mf.Provider,{value:{role:s,activeKey:vs(i),getControlledId:p||Sm,getControllerId:v||Sm},children:f.jsx(n,Object.assign({},a,{onKeyDown:x,ref:m,role:s}))})})});Wx.displayName="Nav";const IO=Object.assign(Wx,{Item:bO}),gf=h.createContext(null);gf.displayName="CardHeaderContext";const Kx=h.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=M(t,"nav-item"),f.jsx(n,{ref:i,className:A(e,t),...r})));Kx.displayName="NavItem";const _O=["onKeyDown"];function FO(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,s;for(s=0;s=0)&&(n[i]=e[i]);return n}function VO(e){return!e||e.trim()==="#"}const Gx=h.forwardRef((e,t)=>{let{onKeyDown:n}=e,r=FO(e,_O);const[i]=Dd(Object.assign({tagName:"a"},r)),s=ze(o=>{i.onKeyDown(o),n==null||n(o)});return VO(r.href)||r.role==="button"?f.jsx("a",Object.assign({ref:t},r,i,{onKeyDown:s})):f.jsx("a",Object.assign({ref:t},r,{onKeyDown:n}))});Gx.displayName="Anchor";const Yx=h.forwardRef(({bsPrefix:e,className:t,as:n=Gx,active:r,eventKey:i,disabled:s=!1,...o},a)=>{e=M(e,"nav-link");const[l,u]=zx({key:vs(i,o.href),active:r,disabled:s,...o});return f.jsx(n,{...o,...l,ref:a,disabled:s,className:A(t,e,s&&"disabled",u.isActive&&"active")})});Yx.displayName="NavLink";const Qx=h.forwardRef((e,t)=>{const{as:n="div",bsPrefix:r,variant:i,fill:s=!1,justify:o=!1,navbar:a,navbarScroll:l,className:u,activeKey:c,...d}=Cv(e,{activeKey:"onSelect"}),p=M(r,"nav");let v,y,w=!1;const S=h.useContext(pr),x=h.useContext(gf);return S?(v=S.bsPrefix,w=a??!0):x&&({cardHeaderBsPrefix:y}=x),f.jsx(IO,{as:n,ref:t,activeKey:c,className:A(u,{[p]:!w,[`${v}-nav`]:w,[`${v}-nav-scroll`]:w&&l,[`${y}-${i}`]:!!y,[`${p}-${i}`]:!!i,[`${p}-fill`]:s,[`${p}-justified`]:o}),...d})});Qx.displayName="Nav";const de=Object.assign(Qx,{Item:Kx,Link:Yx});function BO(e,t,n){const r=h.useRef(e!==void 0),[i,s]=h.useState(t),o=e!==void 0,a=r.current;return r.current=o,!o&&a&&i!==t&&s(t),[o?e:i,h.useCallback((...l)=>{const[u,...c]=l;let d=n==null?void 0:n(u,...c);return s(u),d},[n])]}const fa={prefix:String(Math.round(Math.random()*1e10)),current:0},Xx=Ee.createContext(fa),$O=Ee.createContext(!1);let UO=!!(typeof window<"u"&&window.document&&window.document.createElement),Yl=new WeakMap;function zO(e=!1){let t=h.useContext(Xx),n=h.useRef(null);if(n.current===null&&!e){var r,i;let s=(i=Ee.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||i===void 0||(r=i.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(s){let o=Yl.get(s);o==null?Yl.set(s,{id:t.current,state:s.memoizedState}):s.memoizedState!==o.state&&(t.current=o.id,Yl.delete(s))}n.current=++t.current}return n.current}function HO(e){let t=h.useContext(Xx);t===fa&&!UO&&console.warn("When server rendering, you must wrap your application in an to ensure consistent ids are generated between the client and server.");let n=zO(!!e),r=`react-aria${t.prefix}`;return e||`${r}-${n}`}function WO(e){let t=Ee.useId(),[n]=h.useState(XO()),r=n?"react-aria":`react-aria${fa.prefix}`;return e||`${r}-${t}`}const KO=typeof Ee.useId=="function"?WO:HO;function GO(){return!1}function YO(){return!0}function QO(e){return()=>{}}function XO(){return typeof Ee.useSyncExternalStore=="function"?Ee.useSyncExternalStore(QO,GO,YO):h.useContext($O)}const qO=["active","eventKey","mountOnEnter","transition","unmountOnExit","role","onEnter","onEntering","onEntered","onExit","onExiting","onExited"],JO=["activeKey","getControlledId","getControllerId"],ZO=["as"];function Cc(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,s;for(s=0;s=0)&&(n[i]=e[i]);return n}function qx(e){let{active:t,eventKey:n,mountOnEnter:r,transition:i,unmountOnExit:s,role:o="tabpanel",onEnter:a,onEntering:l,onEntered:u,onExit:c,onExiting:d,onExited:p}=e,v=Cc(e,qO);const y=h.useContext(mi);if(!y)return[Object.assign({},v,{role:o}),{eventKey:n,isActive:t,mountOnEnter:r,transition:i,unmountOnExit:s,onEnter:a,onEntering:l,onEntered:u,onExit:c,onExiting:d,onExited:p}];const{activeKey:w,getControlledId:S,getControllerId:x}=y,m=Cc(y,JO),g=vs(n);return[Object.assign({},v,{role:o,id:S(n),"aria-labelledby":x(n)}),{eventKey:n,isActive:t==null&&g!=null?vs(w)===g:t,transition:i||m.transition,mountOnEnter:r??m.mountOnEnter,unmountOnExit:s??m.unmountOnExit,onEnter:a,onEntering:l,onEntered:u,onExit:c,onExiting:d,onExited:p}]}const Jx=h.forwardRef((e,t)=>{let{as:n="div"}=e,r=Cc(e,ZO);const[i,{isActive:s,onEnter:o,onEntering:a,onEntered:l,onExit:u,onExiting:c,onExited:d,mountOnEnter:p,unmountOnExit:v,transition:y=bd}]=qx(r);return f.jsx(mi.Provider,{value:null,children:f.jsx(cr.Provider,{value:null,children:f.jsx(y,{in:s,onEnter:o,onEntering:a,onEntered:l,onExit:u,onExiting:c,onExited:d,mountOnEnter:p,unmountOnExit:v,children:f.jsx(n,Object.assign({},i,{ref:t,hidden:!s,"aria-hidden":!s}))})})})});Jx.displayName="TabPanel";const Zx=e=>{const{id:t,generateChildId:n,onSelect:r,activeKey:i,defaultActiveKey:s,transition:o,mountOnEnter:a,unmountOnExit:l,children:u}=e,[c,d]=BO(i,s,r),p=KO(t),v=h.useMemo(()=>n||((w,S)=>p?`${p}-${S}-${w}`:null),[p,n]),y=h.useMemo(()=>({onSelect:d,activeKey:c,transition:o,mountOnEnter:a||!1,unmountOnExit:l||!1,getControlledId:w=>v(w,"tabpane"),getControllerId:w=>v(w,"tab")}),[d,c,o,a,l,v]);return f.jsx(mi.Provider,{value:y,children:f.jsx(cr.Provider,{value:d||null,children:u})})};Zx.Panel=Jx;function ew(e){return typeof e=="boolean"?e?hr:bd:e}const tw=({transition:e,...t})=>f.jsx(Zx,{...t,transition:ew(e)});tw.displayName="TabContainer";const nw=h.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=M(t,"tab-content"),f.jsx(n,{ref:i,className:A(e,t),...r})));nw.displayName="TabContent";const rw=h.forwardRef(({bsPrefix:e,transition:t,...n},r)=>{const[{className:i,as:s="div",...o},{isActive:a,onEnter:l,onEntering:u,onEntered:c,onExit:d,onExiting:p,onExited:v,mountOnEnter:y,unmountOnExit:w,transition:S=hr}]=qx({...n,transition:ew(t)}),x=M(e,"tab-pane");return f.jsx(mi.Provider,{value:null,children:f.jsx(cr.Provider,{value:null,children:f.jsx(S,{in:a,onEnter:l,onEntering:u,onEntered:c,onExit:d,onExiting:p,onExited:v,mountOnEnter:y,unmountOnExit:w,children:f.jsx(s,{...o,ref:r,className:A(i,x,a&&"active")})})})})});rw.displayName="TabPane";const eL={eventKey:$.oneOfType([$.string,$.number]),title:$.node.isRequired,disabled:$.bool,tabClassName:$.string,tabAttrs:$.object},iw=()=>{throw new Error("ReactBootstrap: The `Tab` component is not meant to be rendered! It's an abstract component that is only valid as a direct Child of the `Tabs` Component. For custom tabs components use TabPane and TabsContainer directly")};iw.propTypes=eL;const He=Object.assign(iw,{Container:tw,Content:nw,Pane:rw}),yf=h.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=M(t,"card-body"),f.jsx(n,{ref:i,className:A(e,t),...r})));yf.displayName="CardBody";const sw=h.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=M(t,"card-footer"),f.jsx(n,{ref:i,className:A(e,t),...r})));sw.displayName="CardFooter";const ow=h.forwardRef(({bsPrefix:e,className:t,as:n="div",...r},i)=>{const s=M(e,"card-header"),o=h.useMemo(()=>({cardHeaderBsPrefix:s}),[s]);return f.jsx(gf.Provider,{value:o,children:f.jsx(n,{ref:i,...r,className:A(t,s)})})});ow.displayName="CardHeader";const aw=h.forwardRef(({bsPrefix:e,className:t,variant:n,as:r="img",...i},s)=>{const o=M(e,"card-img");return f.jsx(r,{ref:s,className:A(n?`${o}-${n}`:o,t),...i})});aw.displayName="CardImg";const lw=h.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=M(t,"card-img-overlay"),f.jsx(n,{ref:i,className:A(e,t),...r})));lw.displayName="CardImgOverlay";const uw=h.forwardRef(({className:e,bsPrefix:t,as:n="a",...r},i)=>(t=M(t,"card-link"),f.jsx(n,{ref:i,className:A(e,t),...r})));uw.displayName="CardLink";const tL=$a("h6"),cw=h.forwardRef(({className:e,bsPrefix:t,as:n=tL,...r},i)=>(t=M(t,"card-subtitle"),f.jsx(n,{ref:i,className:A(e,t),...r})));cw.displayName="CardSubtitle";const dw=h.forwardRef(({className:e,bsPrefix:t,as:n="p",...r},i)=>(t=M(t,"card-text"),f.jsx(n,{ref:i,className:A(e,t),...r})));dw.displayName="CardText";const nL=$a("h5"),fw=h.forwardRef(({className:e,bsPrefix:t,as:n=nL,...r},i)=>(t=M(t,"card-title"),f.jsx(n,{ref:i,className:A(e,t),...r})));fw.displayName="CardTitle";const pw=h.forwardRef(({bsPrefix:e,className:t,bg:n,text:r,border:i,body:s=!1,children:o,as:a="div",...l},u)=>{const c=M(e,"card");return f.jsx(a,{ref:u,...l,className:A(t,c,n&&`bg-${n}`,r&&`text-${r}`,i&&`border-${i}`),children:s?f.jsx(yf,{children:o}):o})});pw.displayName="Card";const K=Object.assign(pw,{Img:aw,Title:fw,Subtitle:cw,Body:yf,Link:uw,Text:dw,Header:ow,Footer:sw,ImgOverlay:lw}),hw=()=>{const[e,t]=h.useState(pf),[n,r]=h.useState(!1),[i,s]=h.useState(!1),[o,a]=h.useState(!0),[l,u]=h.useState(!1),{userId:c,lessonId:d}=La(),p=h.useRef(null),{user:v}=an(),y=ui();h.useEffect(()=>{v&&v._id===c?r(!0):r(!1),n&&!p.current&&(p.current=new Xa("https://simplifica-backend-spring-smoke-3356.fly.dev/",c),Ix(p,d,t),a(!1))},[v,c,p,d,n]);const w=async()=>{y(`/${c}/edit/${d}`)},S=async()=>{try{s(!0),(await p.current.deleteLessonPlan(d)).status<300&&setTimeout(()=>{y(`/${c}`),s(!1)},2e3)}catch(m){console.log(m.message)}},x=async m=>{m.preventDefault(),u(!0)};return f.jsxs(f.Fragment,{children:[f.jsx(Ux,{show:l,toggleShow:()=>u(!1),handleDeleteConfirmed:S}),n&&!o&&f.jsxs(f.Fragment,{children:[f.jsx(un,{fluid:!0,children:f.jsx(Et,{to:`/${c}`,children:f.jsx(B,{variant:"outline-secondary",className:"my-2",title:"Go back to profile.","aria-label":"back-button",children:f.jsx(Q,{src:"/simplifica/arrow-left.svg"})})})}),f.jsx(Nt.div,{initial:{opacity:0,x:-100,scale:.95},animate:{opacity:1,x:0,scale:1},transition:{duration:.8,delay:.5,ease:[0,.71,.2,1.01]},children:f.jsxs(K,{className:"mx-3 mx-lg-5",children:[f.jsx(K.Header,{"aria-label":"success-title",children:"Lesson Plan"}),f.jsxs(K.Body,{children:[f.jsx(K.Title,{children:f.jsxs(Is,{className:"align-items-center",children:[f.jsx(Pt,{xs:8,sm:8,md:10,children:f.jsx("h1",{className:"display-6","aria-label":"topic",children:e.topic})}),f.jsx(Pt,{xs:2,sm:2,md:1,children:f.jsx(B,{variant:"outline-secondary",onClick:w,"aria-label":"edit-button",children:f.jsx(Q,{src:"/simplifica/pencil.svg"})})}),f.jsx(Pt,{xs:2,sm:2,md:1,className:"d-flex justify-content center align-items-center",children:i?f.jsx(mr,{animation:"border",role:"status",size:"sm",children:f.jsx("span",{className:"visually-hidden",children:"Loading..."})}):f.jsx(B,{variant:"outline-danger",onClick:x,"aria-label":"delete-button",children:f.jsx(Q,{src:"/simplifica/trash.svg"})})})]})}),f.jsx(K.Subtitle,{className:"mb-4 text-muted","aria-label":"lesson-date",children:new Date(e.date).toLocaleDateString("en-GB")}),f.jsxs(He.Container,{id:"phase-tabs",defaultActiveKey:"presentation",children:[f.jsxs(He.Content,{children:[f.jsxs(He.Pane,{eventKey:"presentation",children:[f.jsx(K.Text,{className:"h6","aria-label":"lesson-objective-question",children:"What is the main language point (grammar, vocabulary, function) you want to teach?"}),f.jsx(K.Text,{"aria-label":"lesson-objective-answer",children:e.presentation.objective}),f.jsx(K.Text,{className:"h6",children:"What materials (textbook, audio, video, visual aids) will you need?"}),f.jsx("ul",{children:e.presentation.materials.map((m,g)=>f.jsx("li",{children:m},g))}),f.jsx(K.Text,{className:"h6",children:"How will you introduce the topic to make it relevant and engaging for students?"}),f.jsx(K.Text,{children:e.presentation.connection})]}),f.jsxs(He.Pane,{eventKey:"practice",children:[f.jsx(K.Text,{className:"h6",children:"How is the target language applicable to the students' everyday lives?"}),f.jsx(K.Text,{children:e.practice.real_life_application}),f.jsx(K.Text,{className:"h6",children:"What type of feedback will you provide to correct errors and reinforce learning?"}),f.jsx(K.Text,{children:e.practice.feedback_method}),f.jsx(K.Text,{className:"h6",children:"What activities will you use to help students practice the new language in a controlled way?"}),f.jsx("ul",{children:e.practice.activities.map((m,g)=>f.jsx("li",{children:m},g))})]}),f.jsxs(He.Pane,{eventKey:"production",children:[f.jsx(K.Text,{className:"h6",children:"How will you facilitate student interaction and collaboration during the production phase?"}),f.jsx(K.Text,{children:e.production.learner_interaction}),f.jsx(K.Text,{className:"h6",children:"What criteria will you use to evaluate their performance?"}),f.jsx("ul",{className:"list-group-flush",children:e.production.success_criteria.map((m,g)=>f.jsx("li",{children:m},g))}),f.jsx(K.Text,{className:"h6",children:"What activities will allow students to use the new language more freely and creatively?"}),f.jsx("ul",{className:"list-group-flush",children:e.production.activities.map((m,g)=>f.jsx("li",{children:m},g))})]})]}),f.jsxs(de,{variant:"pills",className:"flex-row mt-3",children:[f.jsx(de.Item,{children:f.jsx(de.Link,{eventKey:"presentation",title:"See the presentation phase.",children:"Presentation"})}),f.jsx(de.Item,{children:f.jsx(de.Link,{eventKey:"practice",title:"See the practice phase.",variant:"outline-dark",children:"Practice"})}),f.jsx(de.Item,{children:f.jsx(de.Link,{eventKey:"production",title:"See the production phase.",children:"Production"})})]})]})]})]})})]}),!n&&f.jsx(Nt.div,{initial:{opacity:0,x:-100},animate:{opacity:1,x:0},transition:{duration:.8,delay:.5,ease:[0,.71,.2,1.01]},children:f.jsx(ct,{message:"You are trying to view someone else's lesson. In order to view their lessons, you must sign in to their account."})})]})};hw.propTypes={triggerFeedback:$.func};const mw=e=>{const[t,n]=h.useState(e);return[t,(i,s=null,o=null)=>{n(s===null&&o===null?i:a=>({...a,[s]:o!==null?{...a[s],[o]:i}:i}))}]},gw=({triggerFeedback:e})=>{const{user:t}=an(),{userId:n}=La(),r=ui(),i=h.useRef(null),[s,o]=h.useState(!1),[a,l]=h.useState(!1),[u,c]=mw(pf),[d,p]=h.useState(!1),[v,y]=h.useState(!1);h.useEffect(()=>{t&&(t._id===n?o(!0):o(!1)),s&&!i.current&&(i.current=new Xa("https://simplifica-backend-spring-smoke-3356.fly.dev/",n))},[t,n,s,u]);const w=async T=>{if(T.preventDefault(),!v||!d)return e([{type:"error",title:"Error",message:"Lesson needs at least a topic and a date."}]);try{l(!0),await i.current.createLessonPlan(u),setTimeout(()=>{r(`/${n}`),l(!1)},2e3)}catch(E){console.log(E.message)}},S=T=>T.trim()!=="",x=(T,E)=>{switch(T){case"date":p(E);break;case"topic":y(E);break}},m=T=>{const{name:E,value:P}=T.target,j=E.split("."),I=S(P);j.length===1&&(x(j[0],I),c(P,j[0],null)),j.length===1?c(P,j[0],null):c(P,j[0],j[1])},g=(T,E,P,j)=>{T.preventDefault();const I=document.getElementById(j).value;I.trim()!==""&&(c([...u[E][P],I],E,P),document.getElementById(j).value="")},C=(T,E,P,j)=>{T.preventDefault();const I=u[E][P].filter((b,X)=>X!==j);c(I,E,P)};return f.jsx(f.Fragment,{children:s?f.jsxs(f.Fragment,{children:[f.jsx(un,{fluid:!0,children:f.jsx(Et,{to:`/${n}`,children:f.jsx(B,{variant:"outline-secondary",className:"my-2",title:"Go back to profile.","aria-label":"back-button",children:f.jsx(Q,{src:"/simplifica/arrow-left.svg"})})})}),f.jsx(Nt.div,{initial:{opacity:0,x:-100,scale:.95},animate:{opacity:1,x:0,scale:1},transition:{duration:.8,delay:.5,ease:[0,.71,.2,1.01]},children:f.jsxs(K,{className:"mx-3 mx-lg-5",children:[f.jsx(K.Header,{children:"New Lesson Plan"}),f.jsx(K.Body,{children:f.jsxs(O,{children:[f.jsx(K.Title,{className:"mb-3",children:f.jsxs(Is,{className:"align-items-center",children:[f.jsx(Pt,{xs:9,sm:10,md:10,children:f.jsx(O.Group,{children:f.jsx(O.Control,{type:"text",placeholder:"Lesson Topic","aria-label":"topic-input",name:"topic",onChange:m})})}),f.jsx(Pt,{xs:1,sm:2,md:{span:1,offset:1},children:a?f.jsx(mr,{animation:"border",role:"status",size:"sm",children:f.jsx("span",{className:"visually-hidden",children:"Loading..."})}):f.jsx(B,{variant:"outline-success","aria-label":"save-button",onClick:w,children:f.jsx(Q,{src:"/simplifica/floppy.svg"})})})]})}),f.jsx(K.Subtitle,{className:"mb-4 text-muted",children:f.jsx(O.Control,{type:"date",placeholder:"Date",name:"date",onChange:m})}),f.jsxs(He.Container,{id:"phase-tabs",defaultActiveKey:"presentation",children:[f.jsxs(He.Content,{children:[f.jsxs(He.Pane,{eventKey:"presentation",children:[f.jsxs(O.Group,{className:"mb-3",controlId:"lessonObjective",children:[f.jsx(O.Label,{className:"h5",children:"What is the main language point you want to teach?"}),f.jsx(O.Control,{as:"textarea",rows:3,name:"presentation.objective",placeholder:"Grammar, vocabulary, functions, etc.",onChange:m,"aria-label":"objective-textarea"})]}),f.jsx(O.Label,{className:"h5",children:"What materials will you need?"}),u.presentation.materials.length>0&&u.presentation.materials.map((T,E)=>f.jsxs(xe,{className:"mb-3",children:[f.jsx(O.Control,{type:"text",placeholder:T,"aria-label":`material-${E}`,disabled:!0,readOnly:!0}),f.jsx(B,{variant:"outline-danger",id:"removeMaterialButton","aria-label":"remove-material-button",onClick:P=>C(P,"presentation","materials",E),children:f.jsx(Q,{src:"/simplifica/dash-lg.svg"})})]},E)),f.jsxs(xe,{className:"mb-3",children:[f.jsx(O.Control,{placeholder:"Textbooks, audio, video, visual aids, etc.",name:"presentation.materials",id:"materialInput","aria-label":"material-input"}),f.jsx(B,{variant:"outline-success",id:"addMaterialButton","aria-label":"add-material-button",onClick:T=>g(T,"presentation","materials","materialInput"),children:f.jsx(Q,{src:"/simplifica/plus.svg"})})]}),f.jsxs(O.Group,{className:"mb-3",controlId:"connection",children:[f.jsx(O.Label,{className:"h5",children:"How will you introduce the topic to make it relevant and engaging for students?"}),f.jsx(O.Control,{as:"textarea",rows:3,name:"presentation.connection",onChange:m,"aria-label":"connection-textarea",placeholder:"I will..."})]})]}),f.jsxs(He.Pane,{eventKey:"practice",children:[f.jsxs(O.Group,{className:"mb-3",controlId:"realLifeApplication",children:[f.jsx(O.Label,{className:"h5",children:"How is the target language applicable to the students' everyday lives?"}),f.jsx(O.Control,{as:"textarea",rows:3,onChange:m,name:"practice.real_life_application","aria-label":"real-life-application-textarea"})]}),f.jsxs(O.Group,{className:"mb-3",controlId:"feedbackMethod",children:[f.jsx(O.Label,{className:"h5",children:"What type of feedback will you provide to correct errors and reinforce learning?"}),f.jsx(O.Control,{as:"textarea",rows:3,onChange:m,name:"practice.feedback_method","aria-label":"feedback-method-textarea"})]}),f.jsx(O.Label,{className:"h5",children:"What activities will you use to help students practice the target language?"}),u.practice.activities.length>0&&u.practice.activities.map((T,E)=>f.jsxs(xe,{className:"mb-3",children:[f.jsx(O.Control,{type:"text",placeholder:T,"aria-label":`practice-activity-${E}`,disabled:!0,readOnly:!0}),f.jsx(B,{variant:"outline-danger",id:"removePracticeActivityButton","aria-label":"remove-practice-activity-button",onClick:P=>C(P,"practice","activities",E),children:f.jsx(Q,{src:"/simplifica/dash-lg.svg"})})]},E)),f.jsxs(xe,{className:"mb-3",children:[f.jsx(O.Control,{placeholder:"Musical chairs, hot potato, word association, etc.",name:"practice.activities",id:"practiceActivityInput","aria-label":"practice-activity-input"}),f.jsx(B,{variant:"outline-success",id:"addPracticeActivityButton","aria-label":"add-practice-activity-button",onClick:T=>g(T,"practice","activities","practiceActivityInput"),children:f.jsx(Q,{src:"/simplifica/plus.svg"})})]})]}),f.jsxs(He.Pane,{eventKey:"production",children:[f.jsxs(O.Group,{className:"mb-3",controlId:"learnerInteraction",children:[f.jsx(O.Label,{className:"h5",children:"How will you facilitate student interaction and collaboration during the production phase?"}),f.jsx(O.Control,{as:"textarea",rows:3,onChange:m,name:"production.learner_interaction"})]}),f.jsx(O.Label,{className:"h5",children:"What criteria will you use to evaluate their performance?"}),u.production.success_criteria.length>0&&u.production.success_criteria.map((T,E)=>f.jsxs(xe,{className:"mb-3",children:[f.jsx(O.Control,{type:"text",placeholder:T,"aria-label":`criterion-${E}`,disabled:!0,readOnly:!0}),f.jsx(B,{variant:"outline-danger",id:"removeSuccessCriterionButton","aria-label":"remove-success-criterion-button",onClick:P=>C(P,"production","success_criteria",E),children:f.jsx(Q,{src:"/simplifica/dash-lg.svg"})})]},E)),f.jsxs(xe,{className:"mb-3",children:[f.jsx(O.Control,{placeholder:"Ability to use target language without help, etc.",name:"production.success_criteria",id:"successCriteriaInput","aria-label":"success-criteria-input"}),f.jsx(B,{variant:"outline-success",id:"addSuccessCriterionButton","aria-label":"add-success-criterion-button",onClick:T=>g(T,"production","success_criteria","successCriteriaInput"),children:f.jsx(Q,{src:"/simplifica/plus.svg"})})]}),f.jsx(O.Label,{className:"h5",children:"What activities will allow students to use the new language more freely and creatively?"}),u.production.activities.length>0&&u.production.activities.map((T,E)=>f.jsxs(xe,{className:"mb-3",children:[f.jsx(O.Control,{type:"text",placeholder:T,"aria-label":`production-activity-${E}`,disabled:!0,readOnly:!0}),f.jsx(B,{variant:"outline-danger",id:"removeProductionActivityButton","aria-label":"remove-production-activity-button",onClick:P=>C(P,"production","activities",E),children:f.jsx(Q,{src:"/simplifica/dash-lg.svg"})})]},E)),f.jsxs(xe,{className:"mb-3",children:[f.jsx(O.Control,{placeholder:"Musical chairs, hot potato, word association, etc.",name:"production.activities",id:"productionActivityInput","aria-label":"production-activity-input"}),f.jsx(B,{variant:"outline-success",id:"addProductionActivityButton","aria-label":"add-production-activity-button",onClick:T=>g(T,"production","activities","productionActivityInput"),children:f.jsx(Q,{src:"/simplifica/plus.svg"})})]})]})]}),f.jsxs(de,{variant:"pills",className:"flex-row mt-3",children:[f.jsx(de.Item,{children:f.jsx(de.Link,{eventKey:"presentation",title:"See the presentation phase.",children:"Presentation"})}),f.jsx(de.Item,{children:f.jsx(de.Link,{eventKey:"practice",title:"See the practice phase.",variant:"outline-dark",children:"Practice"})}),f.jsx(de.Item,{children:f.jsx(de.Link,{eventKey:"production",title:"See the production phase.",children:"Production"})})]})]})]})})]})})]}):f.jsx(Nt.div,{initial:{opacity:0,x:-100,scale:.95},animate:{opacity:1,x:0,scale:1},transition:{duration:.8,delay:.5,ease:[0,.71,.2,1.01]},children:f.jsx(ct,{message:"You are trying to create a lesson for an account which you are not signed in to. To create a lesson for that account, you must sign in with their details."})})})};gw.propTypes={triggerFeedback:$.func};const _i=({children:e})=>{const{user:t,authenticate:n}=an();return h.useEffect(()=>{n()},[n,t]),t?e:f.jsx(Wy,{to:"/login"})};_i.propTypes={children:$.element};const Po=({children:e})=>{const{user:t}=an();return t?f.jsx(Wy,{to:`/${t._id}`}):e};Po.propTypes={children:$.element};const rL=()=>{const{user:e}=an(),{userId:t,lessonId:n}=La(),r=ui(),i=h.useRef(null),[s,o]=h.useState(!1),[a,l]=h.useState(!1),[u,c]=mw(pf);h.useEffect(()=>{e&&(e._id===t?o(!0):o(!1)),s&&!i.current&&(i.current=new Xa("https://simplifica-backend-spring-smoke-3356.fly.dev/",t),Ix(i,n,c))},[e,t,s,u,n,c]);const d=async w=>{w.preventDefault();try{l(!0),await i.current.updateLessonPlan(n,u),setTimeout(()=>{r(`/${t}`),l(!1)},2e3)}catch(S){console.log(S.message)}},p=w=>{const{name:S,value:x}=w.target,m=S.split(".");m.length===1?c(x,m[0],null):c(x,m[0],m[1])},v=(w,S,x,m)=>{w.preventDefault();const g=document.getElementById(m).value;g.trim()!==""&&(c([...u[S][x],g],S,x),document.getElementById(m).value="")},y=(w,S,x,m)=>{w.preventDefault();const g=u[S][x].filter((C,T)=>T!==m);c(g,S,x)};return f.jsx(f.Fragment,{children:s?f.jsxs(f.Fragment,{children:[f.jsx(un,{fluid:!0,children:f.jsx(Et,{to:`/${t}`,children:f.jsx(B,{variant:"outline-secondary",className:"my-2",title:"Go back to profile.","aria-label":"back-button",children:f.jsx(Q,{src:"/simplifica/arrow-left.svg"})})})}),f.jsx(Nt.div,{initial:{opacity:0,x:-100,scale:.95},animate:{opacity:1,x:0,scale:1},transition:{duration:.8,delay:.5,ease:[0,.71,.2,1.01]},children:f.jsxs(K,{className:"mx-3 mx-lg-5",children:[f.jsx(K.Header,{children:"New Lesson Plan"}),f.jsx(K.Body,{children:f.jsxs(O,{children:[f.jsx(K.Title,{className:"mb-3",children:f.jsxs(Is,{className:"align-items-center",children:[f.jsx(Pt,{xs:9,sm:10,md:10,children:f.jsx(O.Group,{children:f.jsx(O.Control,{type:"text",placeholder:"Lesson Topic","aria-label":"topic-input",name:"topic",value:u.topic,onChange:p})})}),f.jsx(Pt,{xs:1,sm:2,md:{span:1,offset:1},children:a?f.jsx(mr,{animation:"border",role:"status",size:"sm",children:f.jsx("span",{className:"visually-hidden",children:"Loading..."})}):f.jsx(B,{variant:"outline-success","aria-label":"save-button",onClick:d,children:f.jsx(Q,{src:"/simplifica/floppy.svg"})})})]})}),f.jsx(K.Subtitle,{className:"mb-4 text-muted",children:f.jsx(O.Control,{type:"date",placeholder:"Date",name:"date",value:u.date!==""?new Date(u.date).toISOString().split("T")[0]:"",onChange:p})}),f.jsxs(He.Container,{id:"phase-tabs",defaultActiveKey:"presentation",children:[f.jsxs(He.Content,{children:[f.jsxs(He.Pane,{eventKey:"presentation",children:[f.jsxs(O.Group,{className:"mb-3",controlId:"lessonObjective",children:[f.jsx(O.Label,{className:"h5",children:"What is the main language point you want to teach?"}),f.jsx(O.Control,{as:"textarea",rows:3,name:"presentation.objective",placeholder:"Grammar, vocabulary, functions, etc.",defaultValue:u.presentation.objective,onChange:p,"aria-label":"objective-textarea"})]}),f.jsx(O.Label,{className:"h5",children:"What materials will you need?"}),u.presentation.materials.length>0&&u.presentation.materials.map((w,S)=>f.jsxs(xe,{className:"mb-3",children:[f.jsx(O.Control,{type:"text",placeholder:w,"aria-label":`material-${S}`,defaultValue:u.presentation.materials[S],disabled:!0,readOnly:!0}),f.jsx(B,{variant:"outline-danger",id:"removeMaterialButton","aria-label":"remove-material-button",onClick:x=>y(x,"presentation","materials",S),children:f.jsx(Q,{src:"/simplifica/dash-lg.svg"})})]},S)),f.jsxs(xe,{className:"mb-3",children:[f.jsx(O.Control,{placeholder:"Textbooks, audio, video, visual aids, etc.",name:"presentation.materials",id:"materialInput","aria-label":"material-input"}),f.jsx(B,{variant:"outline-success",id:"addMaterialButton","aria-label":"add-material-button",onClick:w=>v(w,"presentation","materials","materialInput"),children:f.jsx(Q,{src:"/simplifica/plus.svg"})})]}),f.jsxs(O.Group,{className:"mb-3",controlId:"connection",children:[f.jsx(O.Label,{className:"h5",children:"How will you introduce the topic to make it relevant and engaging for students?"}),f.jsx(O.Control,{as:"textarea",rows:3,name:"presentation.connection",defaultValue:u.presentation.connection,onChange:p,"aria-label":"connection-textarea",placeholder:"I will..."})]})]}),f.jsxs(He.Pane,{eventKey:"practice",children:[f.jsxs(O.Group,{className:"mb-3",controlId:"realLifeApplication",children:[f.jsx(O.Label,{className:"h5",children:"How is the target language applicable to the students' everyday lives?"}),f.jsx(O.Control,{as:"textarea",rows:3,onChange:p,defaultValue:u.practice.real_life_application,name:"practice.real_life_application","aria-label":"real-life-application-textarea"})]}),f.jsxs(O.Group,{className:"mb-3",controlId:"feedbackMethod",children:[f.jsx(O.Label,{className:"h5",children:"What type of feedback will you provide to correct errors and reinforce learning?"}),f.jsx(O.Control,{as:"textarea",rows:3,onChange:p,defaultValue:u.practice.feedback_method,name:"practice.feedback_method","aria-label":"feedback-method-textarea"})]}),f.jsx(O.Label,{className:"h5",children:"What activities will you use to help students practice the target language?"}),u.practice.activities.length>0&&u.practice.activities.map((w,S)=>f.jsxs(xe,{className:"mb-3",children:[f.jsx(O.Control,{type:"text",placeholder:w,"aria-label":`practice-activity-${S}`,defaultValue:u.practice.activities[S],disabled:!0,readOnly:!0}),f.jsx(B,{variant:"outline-danger",id:"removePracticeActivityButton","aria-label":"remove-practice-activity-button",onClick:x=>y(x,"practice","activities",S),children:f.jsx(Q,{src:"/simplifica/dash-lg.svg"})})]},S)),f.jsxs(xe,{className:"mb-3",children:[f.jsx(O.Control,{placeholder:"Musical chairs, hot potato, word association, etc.",name:"practice.activities",id:"practiceActivityInput","aria-label":"practice-activity-input"}),f.jsx(B,{variant:"outline-success",id:"addPracticeActivityButton","aria-label":"add-practice-activity-button",onClick:w=>v(w,"practice","activities","practiceActivityInput"),children:f.jsx(Q,{src:"/simplifica/plus.svg"})})]})]}),f.jsxs(He.Pane,{eventKey:"production",children:[f.jsxs(O.Group,{className:"mb-3",controlId:"learnerInteraction",children:[f.jsx(O.Label,{className:"h5",children:"How will you facilitate student interaction and collaboration during the production phase?"}),f.jsx(O.Control,{as:"textarea",rows:3,onChange:p,defaultValue:u.production.learner_interaction,name:"production.learner_interaction"})]}),f.jsx(O.Label,{className:"h5",children:"What criteria will you use to evaluate their performance?"}),u.production.success_criteria.length>0&&u.production.success_criteria.map((w,S)=>f.jsxs(xe,{className:"mb-3",children:[f.jsx(O.Control,{type:"text",placeholder:w,"aria-label":`criterion-${S}`,defaultValue:u.production.success_criteria[S],disabled:!0,readOnly:!0}),f.jsx(B,{variant:"outline-danger",id:"removeSuccessCriterionButton","aria-label":"remove-success-criterion-button",onClick:x=>y(x,"production","success_criteria",S),children:f.jsx(Q,{src:"/simplifica/dash-lg.svg"})})]},S)),f.jsxs(xe,{className:"mb-3",children:[f.jsx(O.Control,{placeholder:"Ability to use target language without help, etc.",name:"production.success_criteria",id:"successCriteriaInput","aria-label":"success-criteria-input"}),f.jsx(B,{variant:"outline-success",id:"addSuccessCriterionButton","aria-label":"add-success-criterion-button",onClick:w=>v(w,"production","success_criteria","successCriteriaInput"),children:f.jsx(Q,{src:"/simplifica/plus.svg"})})]}),f.jsx(O.Label,{className:"h5",children:"What activities will allow students to use the new language more freely and creatively?"}),u.production.activities.length>0&&u.production.activities.map((w,S)=>f.jsxs(xe,{className:"mb-3",children:[f.jsx(O.Control,{type:"text",placeholder:w,"aria-label":`production-activity-${S}`,defaultValue:u.production.activities[S],disabled:!0,readOnly:!0}),f.jsx(B,{variant:"outline-danger",id:"removeProductionActivityButton","aria-label":"remove-production-activity-button",onClick:x=>y(x,"production","activities",S),children:f.jsx(Q,{src:"/simplifica/dash-lg.svg"})})]},S)),f.jsxs(xe,{className:"mb-3",children:[f.jsx(O.Control,{placeholder:"Musical chairs, hot potato, word association, etc.",name:"production.activities",id:"productionActivityInput","aria-label":"production-activity-input"}),f.jsx(B,{variant:"outline-success",id:"addProductionActivityButton","aria-label":"add-production-activity-button",onClick:w=>v(w,"production","activities","productionActivityInput"),children:f.jsx(Q,{src:"/simplifica/plus.svg"})})]})]})]}),f.jsxs(de,{variant:"pills",className:"flex-row mt-3",children:[f.jsx(de.Item,{children:f.jsx(de.Link,{eventKey:"presentation",title:"See the presentation phase.",children:"Presentation"})}),f.jsx(de.Item,{children:f.jsx(de.Link,{eventKey:"practice",title:"See the practice phase.",variant:"outline-dark",children:"Practice"})}),f.jsx(de.Item,{children:f.jsx(de.Link,{eventKey:"production",title:"See the production phase.",children:"Production"})})]})]})]})})]})})]}):f.jsx(Nt.div,{initial:{opacity:0,x:-100,scale:.95},animate:{opacity:1,x:0,scale:1},transition:{duration:.8,delay:.5,ease:[0,.71,.2,1.01]},children:f.jsx(ct,{message:"You are trying to edit a lesson for an account which you are not signed in to. To edit a lesson for that account, you must sign in with their details."})})})},iL=()=>f.jsx(xv,{children:f.jsxs(FC,{children:[f.jsx(fn,{path:"/",element:f.jsx(Po,{children:f.jsx($e,{MainComponent:xO})}),errorElement:f.jsx($e,{MainComponent:ct})}),f.jsx(fn,{path:"/register",element:f.jsx(Po,{children:f.jsx($e,{MainComponent:Mx})}),errorElement:f.jsx($e,{MainComponent:ct})}),f.jsx(fn,{path:"/login",element:f.jsx(Po,{children:f.jsx($e,{MainComponent:Dx})}),errorElement:f.jsx($e,{MainComponent:ct})}),f.jsx(fn,{path:"/:userId",element:f.jsx(_i,{children:f.jsx($e,{MainComponent:vO})}),errorElement:f.jsx($e,{MainComponent:ct})}),f.jsx(fn,{path:"/:userId/view/:lessonId",element:f.jsx(_i,{children:f.jsx($e,{MainComponent:hw})}),errorElement:f.jsx($e,{MainComponent:ct})}),f.jsx(fn,{path:"/:userId/edit/:lessonId",element:f.jsx(_i,{children:f.jsx($e,{MainComponent:rL})}),errorElement:f.jsx($e,{MainComponent:ct})}),f.jsx(fn,{path:"/:userId/create",element:f.jsx(_i,{children:f.jsx($e,{MainComponent:gw})}),errorElement:f.jsx($e,{MainComponent:ct})})]})});Ql.createRoot(document.getElementById("root")).render(f.jsx(Ee.StrictMode,{children:f.jsx(WC,{basename:"/simplifica",children:f.jsx(iL,{})})})); +*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var s="",o=0;oe!=null?String(e):t||null,cr=OT;function Ju(){return Ju=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)continue;n[r]=e[r]}return n}function qp(e){return"default"+e.charAt(0).toUpperCase()+e.substr(1)}function LT(e){var t=AT(e,"string");return typeof t=="symbol"?t:String(t)}function AT(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function bT(e,t,n){var r=h.useRef(e!==void 0),i=h.useState(t),s=i[0],o=i[1],a=e!==void 0,l=r.current;return r.current=a,!a&&l&&s!==t&&o(t),[a?e:s,h.useCallback(function(u){for(var c=arguments.length,d=new Array(c>1?c-1:0),p=1;p{e=D(e,"navbar-brand");const s=n||(r.href?"a":"span");return f.jsx(s,{...r,ref:i,className:A(t,e)})});kv.displayName="NavbarBrand";function Fa(e){return e&&e.ownerDocument||document}function _T(e){var t=Fa(e);return t&&t.defaultView||window}function IT(e,t){return _T(e).getComputedStyle(e,t)}var FT=/([A-Z])/g;function VT(e){return e.replace(FT,"-$1").toLowerCase()}var BT=/^ms-/;function io(e){return VT(e).replace(BT,"-ms-")}var $T=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;function UT(e){return!!(e&&$T.test(e))}function Yt(e,t){var n="",r="";if(typeof t=="string")return e.style.getPropertyValue(io(t))||IT(e).getPropertyValue(io(t));Object.keys(t).forEach(function(i){var s=t[i];!s&&s!==0?e.style.removeProperty(io(i)):UT(i)?r+=i+"("+s+") ":n+=io(i)+": "+s+";"}),r&&(n+="transform: "+r+";"),e.style.cssText+=";"+n}const Jp={disabled:!1},jv=Ee.createContext(null);var zT=function(t){return t.scrollTop},Mi="unmounted",gn="exited",pt="entering",zt="entered",ei="exiting",ln=function(e){DT(t,e);function t(r,i){var s;s=e.call(this,r,i)||this;var o=i,a=o&&!o.isMounting?r.enter:r.appear,l;return s.appearStatus=null,r.in?a?(l=gn,s.appearStatus=pt):l=zt:r.unmountOnExit||r.mountOnEnter?l=Mi:l=gn,s.state={status:l},s.nextCallback=null,s}t.getDerivedStateFromProps=function(i,s){var o=i.in;return o&&s.status===Mi?{status:gn}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var s=null;if(i!==this.props){var o=this.state.status;this.props.in?o!==pt&&o!==zt&&(s=pt):(o===pt||o===zt)&&(s=ei)}this.updateStatus(!1,s)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,s,o,a;return s=o=a=i,i!=null&&typeof i!="number"&&(s=i.exit,o=i.enter,a=i.appear!==void 0?i.appear:o),{exit:s,enter:o,appear:a}},n.updateStatus=function(i,s){if(i===void 0&&(i=!1),s!==null)if(this.cancelNextCallback(),s===pt){if(this.props.unmountOnExit||this.props.mountOnEnter){var o=this.props.nodeRef?this.props.nodeRef.current:_r.findDOMNode(this);o&&zT(o)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===gn&&this.setState({status:Mi})},n.performEnter=function(i){var s=this,o=this.props.enter,a=this.context?this.context.isMounting:i,l=this.props.nodeRef?[a]:[_r.findDOMNode(this),a],u=l[0],c=l[1],d=this.getTimeouts(),p=a?d.appear:d.enter;if(!i&&!o||Jp.disabled){this.safeSetState({status:zt},function(){s.props.onEntered(u)});return}this.props.onEnter(u,c),this.safeSetState({status:pt},function(){s.props.onEntering(u,c),s.onTransitionEnd(p,function(){s.safeSetState({status:zt},function(){s.props.onEntered(u,c)})})})},n.performExit=function(){var i=this,s=this.props.exit,o=this.getTimeouts(),a=this.props.nodeRef?void 0:_r.findDOMNode(this);if(!s||Jp.disabled){this.safeSetState({status:gn},function(){i.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:ei},function(){i.props.onExiting(a),i.onTransitionEnd(o.exit,function(){i.safeSetState({status:gn},function(){i.props.onExited(a)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,s){s=this.setNextCallback(s),this.setState(i,s)},n.setNextCallback=function(i){var s=this,o=!0;return this.nextCallback=function(a){o&&(o=!1,s.nextCallback=null,i(a))},this.nextCallback.cancel=function(){o=!1},this.nextCallback},n.onTransitionEnd=function(i,s){this.setNextCallback(s);var o=this.props.nodeRef?this.props.nodeRef.current:_r.findDOMNode(this),a=i==null&&!this.props.addEndListener;if(!o||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[o,this.nextCallback],u=l[0],c=l[1];this.props.addEndListener(u,c)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===Mi)return null;var s=this.props,o=s.children;s.in,s.mountOnEnter,s.unmountOnExit,s.appear,s.enter,s.exit,s.timeout,s.addEndListener,s.onEnter,s.onEntering,s.onEntered,s.onExit,s.onExiting,s.onExited,s.nodeRef;var a=Sv(s,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Ee.createElement(jv.Provider,{value:null},typeof o=="function"?o(i,a):Ee.cloneElement(Ee.Children.only(o),a))},t}(Ee.Component);ln.contextType=jv;ln.propTypes={};function Cr(){}ln.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Cr,onEntering:Cr,onEntered:Cr,onExit:Cr,onExiting:Cr,onExited:Cr};ln.UNMOUNTED=Mi;ln.EXITED=gn;ln.ENTERING=pt;ln.ENTERED=zt;ln.EXITING=ei;const fi=!!(typeof window<"u"&&window.document&&window.document.createElement);var ec=!1,tc=!1;try{var Nl={get passive(){return ec=!0},get once(){return tc=ec=!0}};fi&&(window.addEventListener("test",Nl,Nl),window.removeEventListener("test",Nl,!0))}catch{}function Pv(e,t,n,r){if(r&&typeof r!="boolean"&&!tc){var i=r.once,s=r.capture,o=n;!tc&&i&&(o=n.__once||function a(l){this.removeEventListener(t,a,s),n.call(this,l)},n.__once=o),e.addEventListener(t,o,ec?r:s)}e.addEventListener(t,n,r)}function nc(e,t,n,r){var i=r&&typeof r!="boolean"?r.capture:r;e.removeEventListener(t,n,i),n.__once&&e.removeEventListener(t,n.__once,i)}function na(e,t,n,r){return Pv(e,t,n,r),function(){nc(e,t,n,r)}}function HT(e,t,n,r){if(r===void 0&&(r=!0),e){var i=document.createEvent("HTMLEvents");i.initEvent(t,n,r),e.dispatchEvent(i)}}function WT(e){var t=Yt(e,"transitionDuration")||"",n=t.indexOf("ms")===-1?1e3:1;return parseFloat(t)*n}function KT(e,t,n){n===void 0&&(n=5);var r=!1,i=setTimeout(function(){r||HT(e,"transitionend",!0)},t+n),s=na(e,"transitionend",function(){r=!0},{once:!0});return function(){clearTimeout(i),s()}}function Rv(e,t,n,r){n==null&&(n=WT(e)||0);var i=KT(e,n,r),s=na(e,"transitionend",t);return function(){i(),s()}}function Zp(e,t){const n=Yt(e,t)||"",r=n.indexOf("ms")===-1?1e3:1;return parseFloat(n)*r}function Rd(e,t){const n=Zp(e,"transitionDuration"),r=Zp(e,"transitionDelay"),i=Rv(e,s=>{s.target===e&&(i(),t(s))},n+r)}function Ri(...e){return e.filter(t=>t!=null).reduce((t,n)=>{if(typeof n!="function")throw new Error("Invalid Argument Type, must only provide functions, undefined, or null.");return t===null?n:function(...i){t.apply(this,i),n.apply(this,i)}},null)}function Nv(e){e.offsetHeight}const eh=e=>!e||typeof e=="function"?e:t=>{e.current=t};function GT(e,t){const n=eh(e),r=eh(t);return i=>{n&&n(i),r&&r(i)}}function pi(e,t){return h.useMemo(()=>GT(e,t),[e,t])}function YT(e){return e&&"setState"in e?_r.findDOMNode(e):e??null}const Nd=Ee.forwardRef(({onEnter:e,onEntering:t,onEntered:n,onExit:r,onExiting:i,onExited:s,addEndListener:o,children:a,childRef:l,...u},c)=>{const d=h.useRef(null),p=pi(d,l),v=E=>{p(YT(E))},y=E=>P=>{E&&d.current&&E(d.current,P)},w=h.useCallback(y(e),[e]),S=h.useCallback(y(t),[t]),x=h.useCallback(y(n),[n]),m=h.useCallback(y(r),[r]),g=h.useCallback(y(i),[i]),C=h.useCallback(y(s),[s]),T=h.useCallback(y(o),[o]);return f.jsx(ln,{ref:c,...u,onEnter:w,onEntered:x,onEntering:S,onExit:m,onExited:C,onExiting:g,addEndListener:T,nodeRef:d,children:typeof a=="function"?(E,P)=>a(E,{...P,ref:v}):Ee.cloneElement(a,{ref:v})})}),QT={height:["marginTop","marginBottom"],width:["marginLeft","marginRight"]};function XT(e,t){const n=`offset${e[0].toUpperCase()}${e.slice(1)}`,r=t[n],i=QT[e];return r+parseInt(Yt(t,i[0]),10)+parseInt(Yt(t,i[1]),10)}const qT={[gn]:"collapse",[ei]:"collapsing",[pt]:"collapsing",[zt]:"collapse show"},JT=Ee.forwardRef(({onEnter:e,onEntering:t,onEntered:n,onExit:r,onExiting:i,className:s,children:o,dimension:a="height",in:l=!1,timeout:u=300,mountOnEnter:c=!1,unmountOnExit:d=!1,appear:p=!1,getDimensionValue:v=XT,...y},w)=>{const S=typeof a=="function"?a():a,x=h.useMemo(()=>Ri(E=>{E.style[S]="0"},e),[S,e]),m=h.useMemo(()=>Ri(E=>{const P=`scroll${S[0].toUpperCase()}${S.slice(1)}`;E.style[S]=`${E[P]}px`},t),[S,t]),g=h.useMemo(()=>Ri(E=>{E.style[S]=null},n),[S,n]),C=h.useMemo(()=>Ri(E=>{E.style[S]=`${v(S,E)}px`,Nv(E)},r),[r,v,S]),T=h.useMemo(()=>Ri(E=>{E.style[S]=null},i),[S,i]);return f.jsx(Nd,{ref:w,addEndListener:Rd,...y,"aria-expanded":y.role?l:null,onEnter:x,onEntering:m,onEntered:g,onExit:C,onExiting:T,childRef:o.ref,in:l,timeout:u,mountOnEnter:c,unmountOnExit:d,appear:p,children:(E,P)=>Ee.cloneElement(o,{...P,className:A(s,o.props.className,qT[E],S==="width"&&"collapse-horizontal")})})}),pr=h.createContext(null);pr.displayName="NavbarContext";const Ov=h.forwardRef(({children:e,bsPrefix:t,...n},r)=>{t=D(t,"navbar-collapse");const i=h.useContext(pr);return f.jsx(JT,{in:!!(i&&i.expanded),...n,children:f.jsx("div",{ref:r,className:t,children:e})})});Ov.displayName="NavbarCollapse";function ZT(e){const t=h.useRef(e);return h.useEffect(()=>{t.current=e},[e]),t}function ze(e){const t=ZT(e);return h.useCallback(function(...n){return t.current&&t.current(...n)},[t])}const Lv=h.forwardRef(({bsPrefix:e,className:t,children:n,label:r="Toggle navigation",as:i="button",onClick:s,...o},a)=>{e=D(e,"navbar-toggler");const{onToggle:l,expanded:u}=h.useContext(pr)||{},c=ze(d=>{s&&s(d),l&&l()});return i==="button"&&(o.type="button"),f.jsx(i,{...o,ref:a,onClick:c,"aria-label":r,className:A(t,e,!u&&"collapsed"),children:n||f.jsx("span",{className:`${e}-icon`})})});Lv.displayName="NavbarToggle";const ek=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",tk=typeof document<"u",rc=tk||ek?h.useLayoutEffect:h.useEffect,ic=new WeakMap,th=(e,t)=>{if(!e||!t)return;const n=ic.get(t)||new Map;ic.set(t,n);let r=n.get(e);return r||(r=t.matchMedia(e),r.refCount=0,n.set(r.media,r)),r};function nk(e,t=typeof window>"u"?void 0:window){const n=th(e,t),[r,i]=h.useState(()=>n?n.matches:!1);return rc(()=>{let s=th(e,t);if(!s)return i(!1);let o=ic.get(t);const a=()=>{i(s.matches)};return s.refCount++,s.addListener(a),a(),()=>{s.removeListener(a),s.refCount--,s.refCount<=0&&(o==null||o.delete(s.media)),s=void 0}},[e]),r}function rk(e){const t=Object.keys(e);function n(a,l){return a===l?l:a?`${a} and ${l}`:l}function r(a){return t[Math.min(t.indexOf(a)+1,t.length-1)]}function i(a){const l=r(a);let u=e[l];return typeof u=="number"?u=`${u-.2}px`:u=`calc(${u} - 0.2px)`,`(max-width: ${u})`}function s(a){let l=e[a];return typeof l=="number"&&(l=`${l}px`),`(min-width: ${l})`}function o(a,l,u){let c;typeof a=="object"?(c=a,u=l,l=!0):(l=l||!0,c={[a]:l});let d=h.useMemo(()=>Object.entries(c).reduce((p,[v,y])=>((y==="up"||y===!0)&&(p=n(p,s(v))),(y==="down"||y===!0)&&(p=n(p,i(v))),p),""),[JSON.stringify(c)]);return nk(d,u)}return o}const ik=rk({xs:0,sm:576,md:768,lg:992,xl:1200,xxl:1400});function Ol(e){e===void 0&&(e=Fa());try{var t=e.activeElement;return!t||!t.nodeName?null:t}catch{return e.body}}function nh(e,t){if(e.contains)return e.contains(t);if(e.compareDocumentPosition)return e===t||!!(e.compareDocumentPosition(t)&16)}function Av(){const e=h.useRef(!0),t=h.useRef(()=>e.current);return h.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),t.current}function sk(e){const t=h.useRef(e);return t.current=e,t}function Od(e){const t=sk(e);h.useEffect(()=>()=>t.current(),[])}function ok(e){const t=h.useRef(null);return h.useEffect(()=>{t.current=e}),t.current}const ak="data-rr-ui-",lk="rrUi";function Va(e){return`${ak}${e}`}function uk(e){return`${lk}${e}`}function ck(e=document){const t=e.defaultView;return Math.abs(t.innerWidth-e.documentElement.clientWidth)}const rh=Va("modal-open");class Ld{constructor({ownerDocument:t,handleContainerOverflow:n=!0,isRTL:r=!1}={}){this.handleContainerOverflow=n,this.isRTL=r,this.modals=[],this.ownerDocument=t}getScrollbarWidth(){return ck(this.ownerDocument)}getElement(){return(this.ownerDocument||document).body}setModalAttributes(t){}removeModalAttributes(t){}setContainerStyle(t){const n={overflow:"hidden"},r=this.isRTL?"paddingLeft":"paddingRight",i=this.getElement();t.style={overflow:i.style.overflow,[r]:i.style[r]},t.scrollBarWidth&&(n[r]=`${parseInt(Yt(i,r)||"0",10)+t.scrollBarWidth}px`),i.setAttribute(rh,""),Yt(i,n)}reset(){[...this.modals].forEach(t=>this.remove(t))}removeContainerStyle(t){const n=this.getElement();n.removeAttribute(rh),Object.assign(n.style,t.style)}add(t){let n=this.modals.indexOf(t);return n!==-1||(n=this.modals.length,this.modals.push(t),this.setModalAttributes(t),n!==0)||(this.state={scrollBarWidth:this.getScrollbarWidth(),style:{}},this.handleContainerOverflow&&this.setContainerStyle(this.state)),n}remove(t){const n=this.modals.indexOf(t);n!==-1&&(this.modals.splice(n,1),!this.modals.length&&this.handleContainerOverflow&&this.removeContainerStyle(this.state),this.removeModalAttributes(t))}isTopModal(t){return!!this.modals.length&&this.modals[this.modals.length-1]===t}}const bv=h.createContext(fi?window:void 0);bv.Provider;function Ad(){return h.useContext(bv)}const Ll=(e,t)=>fi?e==null?(t||Fa()).body:(typeof e=="function"&&(e=e()),e&&"current"in e&&(e=e.current),e&&("nodeType"in e||e.getBoundingClientRect)?e:null):null;function dk(e,t){const n=Ad(),[r,i]=h.useState(()=>Ll(e,n==null?void 0:n.document));if(!r){const s=Ll(e);s&&i(s)}return h.useEffect(()=>{},[t,r]),h.useEffect(()=>{const s=Ll(e);s!==r&&i(s)},[e,r]),r}function bd({children:e,in:t,onExited:n,mountOnEnter:r,unmountOnExit:i}){const s=h.useRef(null),o=h.useRef(t),a=ze(n);h.useEffect(()=>{t?o.current=!0:a(s.current)},[t,a]);const l=pi(s,e.ref),u=h.cloneElement(e,{ref:l});return t?u:i||!o.current&&r?null:u}function fk(e){return e.code==="Escape"||e.keyCode===27}function pk(){const e=h.version.split(".");return{major:+e[0],minor:+e[1],patch:+e[2]}}const hk=["onEnter","onEntering","onEntered","onExit","onExiting","onExited","addEndListener","children"];function mk(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,s;for(s=0;s=0)&&(n[i]=e[i]);return n}function gk(e){let{onEnter:t,onEntering:n,onEntered:r,onExit:i,onExiting:s,onExited:o,addEndListener:a,children:l}=e,u=mk(e,hk);const{major:c}=pk(),d=c>=19?l.props.ref:l.ref,p=h.useRef(null),v=pi(p,typeof l=="function"?null:d),y=E=>P=>{E&&p.current&&E(p.current,P)},w=h.useCallback(y(t),[t]),S=h.useCallback(y(n),[n]),x=h.useCallback(y(r),[r]),m=h.useCallback(y(i),[i]),g=h.useCallback(y(s),[s]),C=h.useCallback(y(o),[o]),T=h.useCallback(y(a),[a]);return Object.assign({},u,{nodeRef:p},t&&{onEnter:w},n&&{onEntering:S},r&&{onEntered:x},i&&{onExit:m},s&&{onExiting:g},o&&{onExited:C},a&&{addEndListener:T},{children:typeof l=="function"?(E,P)=>l(E,Object.assign({},P,{ref:v})):h.cloneElement(l,{ref:v})})}const yk=["component"];function vk(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,s;for(s=0;s=0)&&(n[i]=e[i]);return n}const xk=h.forwardRef((e,t)=>{let{component:n}=e,r=vk(e,yk);const i=gk(r);return f.jsx(n,Object.assign({ref:t},i))});function wk({in:e,onTransition:t}){const n=h.useRef(null),r=h.useRef(!0),i=ze(t);return rc(()=>{if(!n.current)return;let s=!1;return i({in:e,element:n.current,initial:r.current,isStale:()=>s}),()=>{s=!0}},[e,i]),rc(()=>(r.current=!1,()=>{r.current=!0}),[]),n}function Sk({children:e,in:t,onExited:n,onEntered:r,transition:i}){const[s,o]=h.useState(!t);t&&s&&o(!1);const a=wk({in:!!t,onTransition:u=>{const c=()=>{u.isStale()||(u.in?r==null||r(u.element,u.initial):(o(!0),n==null||n(u.element)))};Promise.resolve(i(u)).then(c,d=>{throw u.in||o(!0),d})}}),l=pi(a,e.ref);return s&&!t?null:h.cloneElement(e,{ref:l})}function ih(e,t,n){return e?f.jsx(xk,Object.assign({},n,{component:e})):t?f.jsx(Sk,Object.assign({},n,{transition:t})):f.jsx(bd,Object.assign({},n))}const Ck=["show","role","className","style","children","backdrop","keyboard","onBackdropClick","onEscapeKeyDown","transition","runTransition","backdropTransition","runBackdropTransition","autoFocus","enforceFocus","restoreFocus","restoreFocusOptions","renderDialog","renderBackdrop","manager","container","onShow","onHide","onExit","onExited","onExiting","onEnter","onEntering","onEntered"];function Ek(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,s;for(s=0;s=0)&&(n[i]=e[i]);return n}let Al;function Tk(e){return Al||(Al=new Ld({ownerDocument:e==null?void 0:e.document})),Al}function kk(e){const t=Ad(),n=e||Tk(t),r=h.useRef({dialog:null,backdrop:null});return Object.assign(r.current,{add:()=>n.add(r.current),remove:()=>n.remove(r.current),isTopModal:()=>n.isTopModal(r.current),setDialogRef:h.useCallback(i=>{r.current.dialog=i},[]),setBackdropRef:h.useCallback(i=>{r.current.backdrop=i},[])})}const Dv=h.forwardRef((e,t)=>{let{show:n=!1,role:r="dialog",className:i,style:s,children:o,backdrop:a=!0,keyboard:l=!0,onBackdropClick:u,onEscapeKeyDown:c,transition:d,runTransition:p,backdropTransition:v,runBackdropTransition:y,autoFocus:w=!0,enforceFocus:S=!0,restoreFocus:x=!0,restoreFocusOptions:m,renderDialog:g,renderBackdrop:C=re=>f.jsx("div",Object.assign({},re)),manager:T,container:E,onShow:P,onHide:j=()=>{},onExit:_,onExited:b,onExiting:X,onEnter:Ve,onEntering:Le,onEntered:et}=e,te=Ek(e,Ck);const ne=Ad(),ke=dk(E),N=kk(T),I=Av(),F=ok(n),[H,q]=h.useState(!n),je=h.useRef(null);h.useImperativeHandle(t,()=>N,[N]),fi&&!F&&n&&(je.current=Ol(ne==null?void 0:ne.document)),n&&H&&q(!1);const ye=ze(()=>{if(N.add(),yr.current=na(document,"keydown",qa),gi.current=na(document,"focus",()=>setTimeout(Be),!0),P&&P(),w){var re,Fs;const vi=Ol((re=(Fs=N.dialog)==null?void 0:Fs.ownerDocument)!=null?re:ne==null?void 0:ne.document);N.dialog&&vi&&!nh(N.dialog,vi)&&(je.current=vi,N.dialog.focus())}}),me=ze(()=>{if(N.remove(),yr.current==null||yr.current(),gi.current==null||gi.current(),x){var re;(re=je.current)==null||re.focus==null||re.focus(m),je.current=null}});h.useEffect(()=>{!n||!ke||ye()},[n,ke,ye]),h.useEffect(()=>{H&&me()},[H,me]),Od(()=>{me()});const Be=ze(()=>{if(!S||!I()||!N.isTopModal())return;const re=Ol(ne==null?void 0:ne.document);N.dialog&&re&&!nh(N.dialog,re)&&N.dialog.focus()}),Vt=ze(re=>{re.target===re.currentTarget&&(u==null||u(re),a===!0&&j())}),qa=ze(re=>{l&&fk(re)&&N.isTopModal()&&(c==null||c(re),re.defaultPrevented||j())}),gi=h.useRef(),yr=h.useRef(),Is=(...re)=>{q(!0),b==null||b(...re)};if(!ke)return null;const vr=Object.assign({role:r,ref:N.setDialogRef,"aria-modal":r==="dialog"?!0:void 0},te,{style:s,className:i,tabIndex:-1});let yi=g?g(vr):f.jsx("div",Object.assign({},vr,{children:h.cloneElement(o,{role:"document"})}));yi=ih(d,p,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!n,onExit:_,onExiting:X,onExited:Is,onEnter:Ve,onEntering:Le,onEntered:et,children:yi});let xr=null;return a&&(xr=C({ref:N.setBackdropRef,onClick:Vt}),xr=ih(v,y,{in:!!n,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:xr})),f.jsx(f.Fragment,{children:_r.createPortal(f.jsxs(f.Fragment,{children:[xr,yi]}),ke)})});Dv.displayName="Modal";const Mv=Object.assign(Dv,{Manager:Ld}),jk={[pt]:"show",[zt]:"show"},hr=h.forwardRef(({className:e,children:t,transitionClasses:n={},onEnter:r,...i},s)=>{const o={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,...i},a=h.useCallback((l,u)=>{Nv(l),r==null||r(l,u)},[r]);return f.jsx(Nd,{ref:s,addEndListener:Rd,...o,onEnter:a,childRef:t.ref,children:(l,u)=>h.cloneElement(t,{...u,className:A("fade",e,t.props.className,jk[l],n[l])})})});hr.displayName="Fade";const _v=h.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=D(t,"offcanvas-body"),f.jsx(n,{ref:i,className:A(e,t),...r})));_v.displayName="OffcanvasBody";const Pk={[pt]:"show",[zt]:"show"},Iv=h.forwardRef(({bsPrefix:e,className:t,children:n,in:r=!1,mountOnEnter:i=!1,unmountOnExit:s=!1,appear:o=!1,...a},l)=>(e=D(e,"offcanvas"),f.jsx(Nd,{ref:l,addEndListener:Rd,in:r,mountOnEnter:i,unmountOnExit:s,appear:o,...a,childRef:n.ref,children:(u,c)=>h.cloneElement(n,{...c,className:A(t,n.props.className,(u===pt||u===ei)&&`${e}-toggling`,Pk[u])})})));Iv.displayName="OffcanvasToggling";const Dd=h.createContext({onHide(){}}),Rk={"aria-label":$.string,onClick:$.func,variant:$.oneOf(["white"])},Ba=h.forwardRef(({className:e,variant:t,"aria-label":n="Close",...r},i)=>f.jsx("button",{ref:i,type:"button",className:A("btn-close",t&&`btn-close-${t}`,e),"aria-label":n,...r}));Ba.displayName="CloseButton";Ba.propTypes=Rk;const Fv=h.forwardRef(({closeLabel:e="Close",closeVariant:t,closeButton:n=!1,onHide:r,children:i,...s},o)=>{const a=h.useContext(Dd),l=ze(()=>{a==null||a.onHide(),r==null||r()});return f.jsxs("div",{ref:o,...s,children:[i,n&&f.jsx(Ba,{"aria-label":e,variant:t,onClick:l})]})}),Vv=h.forwardRef(({bsPrefix:e,className:t,closeLabel:n="Close",closeButton:r=!1,...i},s)=>(e=D(e,"offcanvas-header"),f.jsx(Fv,{ref:s,...i,className:A(t,e),closeLabel:n,closeButton:r})));Vv.displayName="OffcanvasHeader";const $a=e=>h.forwardRef((t,n)=>f.jsx("div",{...t,ref:n,className:A(t.className,e)})),Nk=$a("h5"),Bv=h.forwardRef(({className:e,bsPrefix:t,as:n=Nk,...r},i)=>(t=D(t,"offcanvas-title"),f.jsx(n,{ref:i,className:A(e,t),...r})));Bv.displayName="OffcanvasTitle";function Ok(e,t){return e.classList?e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function Lk(e,t){e.classList?e.classList.add(t):Ok(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}var Ak=Function.prototype.bind.call(Function.prototype.call,[].slice);function Kn(e,t){return Ak(e.querySelectorAll(t))}function sh(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function bk(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=sh(e.className,t):e.setAttribute("class",sh(e.className&&e.className.baseVal||"",t))}const Er={FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"};class $v extends Ld{adjustAndStore(t,n,r){const i=n.style[t];n.dataset[t]=i,Yt(n,{[t]:`${parseFloat(Yt(n,t))+r}px`})}restore(t,n){const r=n.dataset[t];r!==void 0&&(delete n.dataset[t],Yt(n,{[t]:r}))}setContainerStyle(t){super.setContainerStyle(t);const n=this.getElement();if(Lk(n,"modal-open"),!t.scrollBarWidth)return;const r=this.isRTL?"paddingLeft":"paddingRight",i=this.isRTL?"marginLeft":"marginRight";Kn(n,Er.FIXED_CONTENT).forEach(s=>this.adjustAndStore(r,s,t.scrollBarWidth)),Kn(n,Er.STICKY_CONTENT).forEach(s=>this.adjustAndStore(i,s,-t.scrollBarWidth)),Kn(n,Er.NAVBAR_TOGGLER).forEach(s=>this.adjustAndStore(i,s,t.scrollBarWidth))}removeContainerStyle(t){super.removeContainerStyle(t);const n=this.getElement();bk(n,"modal-open");const r=this.isRTL?"paddingLeft":"paddingRight",i=this.isRTL?"marginLeft":"marginRight";Kn(n,Er.FIXED_CONTENT).forEach(s=>this.restore(r,s)),Kn(n,Er.STICKY_CONTENT).forEach(s=>this.restore(i,s)),Kn(n,Er.NAVBAR_TOGGLER).forEach(s=>this.restore(i,s))}}let bl;function Uv(e){return bl||(bl=new $v(e)),bl}function Dk(e){return f.jsx(Iv,{...e})}function Mk(e){return f.jsx(hr,{...e})}const zv=h.forwardRef(({bsPrefix:e,className:t,children:n,"aria-labelledby":r,placement:i="start",responsive:s,show:o=!1,backdrop:a=!0,keyboard:l=!0,scroll:u=!1,onEscapeKeyDown:c,onShow:d,onHide:p,container:v,autoFocus:y=!0,enforceFocus:w=!0,restoreFocus:S=!0,restoreFocusOptions:x,onEntered:m,onExit:g,onExiting:C,onEnter:T,onEntering:E,onExited:P,backdropClassName:j,manager:_,renderStaticNode:b=!1,...X},Ve)=>{const Le=h.useRef();e=D(e,"offcanvas");const{onToggle:et}=h.useContext(pr)||{},[te,ne]=h.useState(!1),ke=ik(s||"xs","up");h.useEffect(()=>{ne(s?o&&!ke:o)},[o,s,ke]);const N=ze(()=>{et==null||et(),p==null||p()}),I=h.useMemo(()=>({onHide:N}),[N]);function F(){return _||(u?(Le.current||(Le.current=new $v({handleContainerOverflow:!1})),Le.current):Uv())}const H=(me,...Be)=>{me&&(me.style.visibility="visible"),T==null||T(me,...Be)},q=(me,...Be)=>{me&&(me.style.visibility=""),P==null||P(...Be)},je=h.useCallback(me=>f.jsx("div",{...me,className:A(`${e}-backdrop`,j)}),[j,e]),ye=me=>f.jsx("div",{...me,...X,className:A(t,s?`${e}-${s}`:e,`${e}-${i}`),"aria-labelledby":r,children:n});return f.jsxs(f.Fragment,{children:[!te&&(s||b)&&ye({}),f.jsx(Dd.Provider,{value:I,children:f.jsx(Mv,{show:te,ref:Ve,backdrop:a,container:v,keyboard:l,autoFocus:y,enforceFocus:w&&!u,restoreFocus:S,restoreFocusOptions:x,onEscapeKeyDown:c,onShow:d,onHide:N,onEnter:H,onEntering:E,onEntered:m,onExit:g,onExiting:C,onExited:q,manager:F(),transition:Dk,backdropTransition:Mk,renderBackdrop:je,renderDialog:ye})})]})});zv.displayName="Offcanvas";const _k=Object.assign(zv,{Body:_v,Header:Vv,Title:Bv}),Hv=h.forwardRef((e,t)=>{const n=h.useContext(pr);return f.jsx(_k,{ref:t,show:!!(n!=null&&n.expanded),...e,renderStaticNode:!0})});Hv.displayName="NavbarOffcanvas";const Wv=h.forwardRef(({className:e,bsPrefix:t,as:n="span",...r},i)=>(t=D(t,"navbar-text"),f.jsx(n,{ref:i,className:A(e,t),...r})));Wv.displayName="NavbarText";const Kv=h.forwardRef((e,t)=>{const{bsPrefix:n,expand:r=!0,variant:i="light",bg:s,fixed:o,sticky:a,className:l,as:u="nav",expanded:c,onToggle:d,onSelect:p,collapseOnSelect:v=!1,...y}=Cv(e,{expanded:"onToggle"}),w=D(n,"navbar"),S=h.useCallback((...g)=>{p==null||p(...g),v&&c&&(d==null||d(!1))},[p,v,c,d]);y.role===void 0&&u!=="nav"&&(y.role="navigation");let x=`${w}-expand`;typeof r=="string"&&(x=`${x}-${r}`);const m=h.useMemo(()=>({onToggle:()=>d==null?void 0:d(!c),bsPrefix:w,expanded:!!c,expand:r}),[w,c,r,d]);return f.jsx(pr.Provider,{value:m,children:f.jsx(cr.Provider,{value:S,children:f.jsx(u,{ref:t,...y,className:A(l,w,r&&x,i&&`${w}-${i}`,s&&`bg-${s}`,a&&`sticky-${a}`,o&&`fixed-${o}`)})})})});Kv.displayName="Navbar";const oh=Object.assign(Kv,{Brand:kv,Collapse:Ov,Offcanvas:Hv,Text:Wv,Toggle:Lv}),Ik=["as","disabled"];function Fk(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,s;for(s=0;s=0)&&(n[i]=e[i]);return n}function Vk(e){return!e||e.trim()==="#"}function Md({tagName:e,disabled:t,href:n,target:r,rel:i,role:s,onClick:o,tabIndex:a=0,type:l}){e||(n!=null||r!=null||i!=null?e="a":e="button");const u={tagName:e};if(e==="button")return[{type:l||"button",disabled:t},u];const c=p=>{if((t||e==="a"&&Vk(n))&&p.preventDefault(),t){p.stopPropagation();return}o==null||o(p)},d=p=>{p.key===" "&&(p.preventDefault(),c(p))};return e==="a"&&(n||(n="#"),t&&(n=void 0)),[{role:s??"button",disabled:void 0,tabIndex:t?void 0:a,href:n,target:e==="a"?r:void 0,"aria-disabled":t||void 0,rel:e==="a"?i:void 0,onClick:c,onKeyDown:d},u]}const Gv=h.forwardRef((e,t)=>{let{as:n,disabled:r}=e,i=Fk(e,Ik);const[s,{tagName:o}]=Md(Object.assign({tagName:n,disabled:r},i));return f.jsx(o,Object.assign({},i,s,{ref:t}))});Gv.displayName="Button";const B=h.forwardRef(({as:e,bsPrefix:t,variant:n="primary",size:r,active:i=!1,disabled:s=!1,className:o,...a},l)=>{const u=D(t,"btn"),[c,{tagName:d}]=Md({tagName:e,disabled:s,...a}),p=d;return f.jsx(p,{...c,...a,ref:l,disabled:s,className:A(o,u,i&&"active",n&&`${u}-${n}`,r&&`${u}-${r}`,a.href&&s&&"disabled")})});B.displayName="Button";const mr=h.forwardRef(({bsPrefix:e,variant:t,animation:n="border",size:r,as:i="div",className:s,...o},a)=>{e=D(e,"spinner");const l=`${e}-${n}`;return f.jsx(i,{ref:a,...o,className:A(s,l,r&&`${l}-${r}`,t&&`text-${t}`)})});mr.displayName="Spinner";const Bk=()=>{const{user:e,signOut:t}=an(),[n,r]=h.useState(!1),i=async s=>{s.preventDefault(),r(!0);try{await t()}catch(o){console.log(o.message)}};return f.jsxs(oh,{expand:"lg",className:"bg-body-tertiary justify-content-between text-center align-items-center px-5",sticky:"top",children:[f.jsx(oh.Brand,{children:f.jsx(Et,{className:"align-items-center text-decoration-none",to:"/",children:f.jsx("h1",{className:"display-6 mb-0","aria-label":"brand",title:"Return to home page.",children:"Simplifica."})})}),e&&!n&&f.jsx(B,{variant:"dark",onClick:i,children:"Sign Out"}),n&&f.jsx(mr,{animation:"border",role:"status",size:"sm",className:"d-flex justify-content center align-items-center",children:f.jsx("span",{className:"visually-hidden",children:"Loading..."})})]})},sc=2**31-1;function Yv(e,t,n){const r=n-Date.now();e.current=r<=sc?setTimeout(t,r):setTimeout(()=>Yv(e,t,n),sc)}function $k(){const e=Av(),t=h.useRef();return Od(()=>clearTimeout(t.current)),h.useMemo(()=>{const n=()=>clearTimeout(t.current);function r(i,s=0){e()&&(n(),s<=sc?t.current=setTimeout(i,s):Yv(t,i,Date.now()+s))}return{set:r,clear:n,handleRef:t}},[])}const Uk={[pt]:"showing",[ei]:"showing show"},Qv=h.forwardRef((e,t)=>f.jsx(hr,{...e,ref:t,transitionClasses:Uk}));Qv.displayName="ToastFade";const Xv=h.createContext({onClose(){}}),qv=h.forwardRef(({bsPrefix:e,closeLabel:t="Close",closeVariant:n,closeButton:r=!0,className:i,children:s,...o},a)=>{e=D(e,"toast-header");const l=h.useContext(Xv),u=ze(c=>{l==null||l.onClose==null||l.onClose(c)});return f.jsxs("div",{ref:a,...o,className:A(e,i),children:[s,r&&f.jsx(Ba,{"aria-label":t,variant:n,onClick:u,"data-dismiss":"toast"})]})});qv.displayName="ToastHeader";const Jv=h.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=D(t,"toast-body"),f.jsx(n,{ref:i,className:A(e,t),...r})));Jv.displayName="ToastBody";const Zv=h.forwardRef(({bsPrefix:e,className:t,transition:n=Qv,show:r=!0,animation:i=!0,delay:s=5e3,autohide:o=!1,onClose:a,onEntered:l,onExit:u,onExiting:c,onEnter:d,onEntering:p,onExited:v,bg:y,...w},S)=>{e=D(e,"toast");const x=h.useRef(s),m=h.useRef(a);h.useEffect(()=>{x.current=s,m.current=a},[s,a]);const g=$k(),C=!!(o&&r),T=h.useCallback(()=>{C&&(m.current==null||m.current())},[C]);h.useEffect(()=>{g.set(T,x.current)},[g,T]);const E=h.useMemo(()=>({onClose:a}),[a]),P=!!(n&&i),j=f.jsx("div",{...w,ref:S,className:A(e,t,y&&`bg-${y}`,!P&&(r?"show":"hide")),role:"alert","aria-live":"assertive","aria-atomic":"true"});return f.jsx(Xv.Provider,{value:E,children:P&&n?f.jsx(n,{in:r,onEnter:d,onEntering:p,onEntered:l,onExit:u,onExiting:c,onExited:v,unmountOnExit:!0,children:j}):j})});Zv.displayName="Toast";const Dl=Object.assign(Zv,{Body:Jv,Header:qv}),e0=({title:e,message:t,type:n,toggleVisible:r})=>{const i=new Date;return f.jsxs(Dl,{onClose:r,delay:5e3,bg:n==="error"?"warning":n,autohide:!0,children:[f.jsxs(Dl.Header,{children:[f.jsx("strong",{className:"me-auto","aria-label":"feedback-title",children:e}),f.jsx("small",{"aria-label":"feedback-timestamp",children:i.toLocaleTimeString()})]}),f.jsx(Dl.Body,{className:n==="error"?"text-grey":"text-white","aria-label":"feedback-message",children:t})]})};e0.propTypes={title:$.string.isRequired,message:$.string.isRequired,type:$.string.isRequired,toggleVisible:$.func.isRequired};const zk={"top-start":"top-0 start-0","top-center":"top-0 start-50 translate-middle-x","top-end":"top-0 end-0","middle-start":"top-50 start-0 translate-middle-y","middle-center":"top-50 start-50 translate-middle","middle-end":"top-50 end-0 translate-middle-y","bottom-start":"bottom-0 start-0","bottom-center":"bottom-0 start-50 translate-middle-x","bottom-end":"bottom-0 end-0"},t0=h.forwardRef(({bsPrefix:e,position:t,containerPosition:n,className:r,as:i="div",...s},o)=>(e=D(e,"toast-container"),f.jsx(i,{ref:o,...s,className:A(e,t&&zk[t],n&&`position-${n}`,r)})));t0.displayName="ToastContainer";const $e=({MainComponent:e})=>{const[t,n]=h.useState(!1),[r,i]=h.useState([]),s=o=>{i(o),n(!0)};return f.jsxs(f.Fragment,{children:[f.jsx(Bk,{}),f.jsx(e,{triggerFeedback:s}),f.jsx(t0,{position:"top-end",className:"m-4",children:t&&r.map((o,a)=>f.jsx(e0,{title:o.title,message:o.message,type:o.type,toggleVisible:()=>n(!t)},a))})]})};$e.propTypes={MainComponent:$.elementType.isRequired};const Gi=(e,t)=>{const n=e.target.value;t(n)},ah=e=>/^[a-zA-Z][a-zA-Z0-9_]{4,19}$/.test(e),lh=e=>/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,}$/.test(e),Hk=[{name:"invalid_password",info:{type:"error",title:"Invalid Password",message:"Password is invalid. It should be at least 8 characters long, and should contain at least 1 uppercase letter, lowercase letter, special character and number."}},{name:"invalid_username",info:{type:"error",title:"Invalid Username",message:"Username is invalid. It should be between 4 and 19 characters long, and should only contain numbers, letters and underscores."}},{name:"passwords_not_matching",info:{type:"error",title:"Non-Matching Passwords",message:"Passwords do not match. Verify that the two passwords you have typed in are the same."}}],un=h.forwardRef(({bsPrefix:e,fluid:t=!1,as:n="div",className:r,...i},s)=>{const o=D(e,"container"),a=typeof t=="string"?`-${t}`:"-fluid";return f.jsx(n,{ref:s,...i,className:A(r,t?`${o}${a}`:o)})});un.displayName="Container";function Wk(e,t=Ev,n=Tv){const r=[];return Object.entries(e).forEach(([i,s])=>{s!=null&&(typeof s=="object"?t.forEach(o=>{const a=s[o];if(a!=null){const l=o!==n?`-${o}`:"";r.push(`${i}${l}-${a}`)}}):r.push(`${i}-${s}`))}),r}const ti=h.forwardRef(({as:e="div",bsPrefix:t,className:n,direction:r,gap:i,...s},o)=>{t=D(t,r==="horizontal"?"hstack":"vstack");const a=jd(),l=Pd();return f.jsx(e,{...s,ref:o,className:A(n,t,...Wk({gap:i},a,l))})});ti.displayName="Stack";const nn=h.createContext({}),_d=h.forwardRef(({controlId:e,as:t="div",...n},r)=>{const i=h.useMemo(()=>({controlId:e}),[e]);return f.jsx(nn.Provider,{value:i,children:f.jsx(t,{...n,ref:r})})});_d.displayName="FormGroup";const nr=h.forwardRef(({bsPrefix:e,className:t,children:n,controlId:r,label:i,...s},o)=>(e=D(e,"form-floating"),f.jsxs(_d,{ref:o,className:A(t,e),controlId:r,...s,children:[n,f.jsx("label",{htmlFor:r,children:i})]})));nr.displayName="FloatingLabel";const Kk={type:$.string,tooltip:$.bool,as:$.elementType},Ua=h.forwardRef(({as:e="div",className:t,type:n="valid",tooltip:r=!1,...i},s)=>f.jsx(e,{...i,ref:s,className:A(t,`${n}-${r?"tooltip":"feedback"}`)}));Ua.displayName="Feedback";Ua.propTypes=Kk;const Ls=h.forwardRef(({id:e,bsPrefix:t,className:n,type:r="checkbox",isValid:i=!1,isInvalid:s=!1,as:o="input",...a},l)=>{const{controlId:u}=h.useContext(nn);return t=D(t,"form-check-input"),f.jsx(o,{...a,ref:l,type:r,id:e||u,className:A(n,t,i&&"is-valid",s&&"is-invalid")})});Ls.displayName="FormCheckInput";const ra=h.forwardRef(({bsPrefix:e,className:t,htmlFor:n,...r},i)=>{const{controlId:s}=h.useContext(nn);return e=D(e,"form-check-label"),f.jsx("label",{...r,ref:i,htmlFor:n||s,className:A(t,e)})});ra.displayName="FormCheckLabel";function Gk(e,t){return h.Children.toArray(e).some(n=>h.isValidElement(n)&&n.type===t)}const n0=h.forwardRef(({id:e,bsPrefix:t,bsSwitchPrefix:n,inline:r=!1,reverse:i=!1,disabled:s=!1,isValid:o=!1,isInvalid:a=!1,feedbackTooltip:l=!1,feedback:u,feedbackType:c,className:d,style:p,title:v="",type:y="checkbox",label:w,children:S,as:x="input",...m},g)=>{t=D(t,"form-check"),n=D(n,"form-switch");const{controlId:C}=h.useContext(nn),T=h.useMemo(()=>({controlId:e||C}),[C,e]),E=!S&&w!=null&&w!==!1||Gk(S,ra),P=f.jsx(Ls,{...m,type:y==="switch"?"checkbox":y,ref:g,isValid:o,isInvalid:a,disabled:s,as:x});return f.jsx(nn.Provider,{value:T,children:f.jsx("div",{style:p,className:A(d,E&&t,r&&`${t}-inline`,i&&`${t}-reverse`,y==="switch"&&n),children:S||f.jsxs(f.Fragment,{children:[P,E&&f.jsx(ra,{title:v,children:w}),u&&f.jsx(Ua,{type:c,tooltip:l,children:u})]})})})});n0.displayName="FormCheck";const ia=Object.assign(n0,{Input:Ls,Label:ra}),r0=h.forwardRef(({bsPrefix:e,type:t,size:n,htmlSize:r,id:i,className:s,isValid:o=!1,isInvalid:a=!1,plaintext:l,readOnly:u,as:c="input",...d},p)=>{const{controlId:v}=h.useContext(nn);return e=D(e,"form-control"),f.jsx(c,{...d,type:t,size:r,ref:p,readOnly:u,id:i||v,className:A(s,l?`${e}-plaintext`:e,n&&`${e}-${n}`,t==="color"&&`${e}-color`,o&&"is-valid",a&&"is-invalid")})});r0.displayName="FormControl";const Yk=Object.assign(r0,{Feedback:Ua}),i0=h.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=D(t,"form-floating"),f.jsx(n,{ref:i,className:A(e,t),...r})));i0.displayName="FormFloating";function Qk({as:e,bsPrefix:t,className:n,...r}){t=D(t,"col");const i=jd(),s=Pd(),o=[],a=[];return i.forEach(l=>{const u=r[l];delete r[l];let c,d,p;typeof u=="object"&&u!=null?{span:c,offset:d,order:p}=u:c=u;const v=l!==s?`-${l}`:"";c&&o.push(c===!0?`${t}${v}`:`${t}${v}-${c}`),p!=null&&a.push(`order${v}-${p}`),d!=null&&a.push(`offset${v}-${d}`)}),[{...r,className:A(n,...o,...a)},{as:e,bsPrefix:t,spans:o}]}const Pt=h.forwardRef((e,t)=>{const[{className:n,...r},{as:i="div",bsPrefix:s,spans:o}]=Qk(e);return f.jsx(i,{...r,ref:t,className:A(n,!o.length&&s)})});Pt.displayName="Col";const s0=h.forwardRef(({as:e="label",bsPrefix:t,column:n=!1,visuallyHidden:r=!1,className:i,htmlFor:s,...o},a)=>{const{controlId:l}=h.useContext(nn);t=D(t,"form-label");let u="col-form-label";typeof n=="string"&&(u=`${u} ${u}-${n}`);const c=A(i,t,r&&"visually-hidden",n&&u);return s=s||l,n?f.jsx(Pt,{ref:a,as:"label",className:c,htmlFor:s,...o}):f.jsx(e,{ref:a,className:c,htmlFor:s,...o})});s0.displayName="FormLabel";const o0=h.forwardRef(({bsPrefix:e,className:t,id:n,...r},i)=>{const{controlId:s}=h.useContext(nn);return e=D(e,"form-range"),f.jsx("input",{...r,type:"range",ref:i,className:A(t,e),id:n||s})});o0.displayName="FormRange";const a0=h.forwardRef(({bsPrefix:e,size:t,htmlSize:n,className:r,isValid:i=!1,isInvalid:s=!1,id:o,...a},l)=>{const{controlId:u}=h.useContext(nn);return e=D(e,"form-select"),f.jsx("select",{...a,size:n,ref:l,className:A(r,e,t&&`${e}-${t}`,i&&"is-valid",s&&"is-invalid"),id:o||u})});a0.displayName="FormSelect";const l0=h.forwardRef(({bsPrefix:e,className:t,as:n="small",muted:r,...i},s)=>(e=D(e,"form-text"),f.jsx(n,{...i,ref:s,className:A(t,e,r&&"text-muted")})));l0.displayName="FormText";const u0=h.forwardRef((e,t)=>f.jsx(ia,{...e,ref:t,type:"switch"}));u0.displayName="Switch";const Xk=Object.assign(u0,{Input:ia.Input,Label:ia.Label}),qk={_ref:$.any,validated:$.bool,as:$.elementType},Id=h.forwardRef(({className:e,validated:t,as:n="form",...r},i)=>f.jsx(n,{...r,ref:i,className:A(e,t&&"was-validated")}));Id.displayName="Form";Id.propTypes=qk;const O=Object.assign(Id,{Group:_d,Control:Yk,Floating:i0,Check:ia,Switch:Xk,Label:s0,Text:l0,Range:o0,Select:a0,FloatingLabel:nr});$.string,$.bool,$.bool,$.bool,$.bool;const Q=h.forwardRef(({bsPrefix:e,className:t,fluid:n=!1,rounded:r=!1,roundedCircle:i=!1,thumbnail:s=!1,...o},a)=>(e=D(e,"img"),f.jsx("img",{ref:a,...o,className:A(t,n&&`${e}-fluid`,r&&"rounded",i&&"rounded-circle",s&&`${e}-thumbnail`)})));Q.displayName="Image";const c0=h.createContext(null);c0.displayName="InputGroupContext";const za=h.forwardRef(({className:e,bsPrefix:t,as:n="span",...r},i)=>(t=D(t,"input-group-text"),f.jsx(n,{ref:i,className:A(e,t),...r})));za.displayName="InputGroupText";const Jk=e=>f.jsx(za,{children:f.jsx(Ls,{type:"checkbox",...e})}),Zk=e=>f.jsx(za,{children:f.jsx(Ls,{type:"radio",...e})}),d0=h.forwardRef(({bsPrefix:e,size:t,hasValidation:n,className:r,as:i="div",...s},o)=>{e=D(e,"input-group");const a=h.useMemo(()=>({}),[]);return f.jsx(c0.Provider,{value:a,children:f.jsx(i,{ref:o,...s,className:A(r,e,t&&`${e}-${t}`,n&&"has-validation")})})});d0.displayName="InputGroup";const xe=Object.assign(d0,{Text:za,Radio:Zk,Checkbox:Jk}),f0=h.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Ha=h.createContext({}),Fd=h.createContext(null),Vd=typeof document<"u",ej=Vd?h.useLayoutEffect:h.useEffect,p0=h.createContext({strict:!1}),Bd=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),tj="framerAppearId",h0="data-"+Bd(tj),nj={skipAnimations:!1,useManualTiming:!1};class uh{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){const n=this.order.indexOf(t);n!==-1&&(this.order.splice(n,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}function rj(e){let t=new uh,n=new uh,r=0,i=!1,s=!1;const o=new WeakSet,a={schedule:(l,u=!1,c=!1)=>{const d=c&&i,p=d?t:n;return u&&o.add(l),p.add(l)&&d&&i&&(r=t.order.length),l},cancel:l=>{n.remove(l),o.delete(l)},process:l=>{if(i){s=!0;return}if(i=!0,[t,n]=[n,t],n.clear(),r=t.order.length,r)for(let u=0;u(d[p]=rj(()=>n=!0),d),{}),o=d=>{s[d].process(i)},a=()=>{const d=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(d-i.timestamp,ij),1),i.timestamp=d,i.isProcessing=!0,so.forEach(o),i.isProcessing=!1,n&&t&&(r=!1,e(a))},l=()=>{n=!0,r=!0,i.isProcessing||e(a)};return{schedule:so.reduce((d,p)=>{const v=s[p];return d[p]=(y,w=!1,S=!1)=>(n||l(),v.schedule(y,w,S)),d},{}),cancel:d=>so.forEach(p=>s[p].cancel(d)),state:i,steps:s}}const{schedule:$d,cancel:cL}=m0(queueMicrotask,!1);function Ir(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}const g0=h.createContext({});let ch=!1;function sj(e,t,n,r,i){const{visualElement:s}=h.useContext(Ha),o=h.useContext(p0),a=h.useContext(Fd),l=h.useContext(f0).reducedMotion,u=h.useRef();r=r||o.renderer,!u.current&&r&&(u.current=r(e,{visualState:t,parent:s,props:n,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:l}));const c=u.current,d=h.useContext(g0);c&&!c.projection&&i&&(c.type==="html"||c.type==="svg")&&aj(u.current,n,i,d),h.useInsertionEffect(()=>{c&&c.update(n,a)});const p=h.useRef(!!(n[h0]&&!window.HandoffComplete));return ej(()=>{c&&(c.updateFeatures(),$d.render(c.render),p.current&&c.animationState&&c.animationState.animateChanges())}),h.useEffect(()=>{c&&(!p.current&&c.animationState&&c.animationState.animateChanges(),p.current&&(p.current=!1,ch||(ch=!0,queueMicrotask(oj))))}),c}function oj(){window.HandoffComplete=!0}function aj(e,t,n,r){const{layoutId:i,layout:s,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:y0(e.parent)),e.projection.setOptions({layoutId:i,layout:s,alwaysMeasureLayout:!!o||a&&Ir(a),visualElement:e,scheduleRender:()=>e.scheduleRender(),animationType:typeof s=="string"?s:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:u})}function y0(e){if(e)return e.options.allowProjection!==!1?e.projection:y0(e.parent)}function lj(e,t,n){return h.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Ir(n)&&(n.current=r))},[t])}function xs(e){return typeof e=="string"||Array.isArray(e)}function Wa(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const Ud=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],zd=["initial",...Ud];function Ka(e){return Wa(e.animate)||zd.some(t=>xs(e[t]))}function v0(e){return!!(Ka(e)||e.variants)}function uj(e,t){if(Ka(e)){const{initial:n,animate:r}=e;return{initial:n===!1||xs(n)?n:void 0,animate:xs(r)?r:void 0}}return e.inherit!==!1?t:{}}function cj(e){const{initial:t,animate:n}=uj(e,h.useContext(Ha));return h.useMemo(()=>({initial:t,animate:n}),[dh(t),dh(n)])}function dh(e){return Array.isArray(e)?e.join(" "):e}const fh={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},ni={};for(const e in fh)ni[e]={isEnabled:t=>fh[e].some(n=>!!t[n])};function dj(e){for(const t in e)ni[t]={...ni[t],...e[t]}}const x0=h.createContext({}),fj=Symbol.for("motionComponentSymbol"),Ie=e=>e;let oc=Ie;function pj({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){e&&dj(e);function s(a,l){let u;const c={...h.useContext(f0),...a,layoutId:hj(a)},{isStatic:d}=c,p=cj(a),v=r(a,d);if(!d&&Vd){mj();const y=gj(c);u=y.MeasureLayout,p.visualElement=sj(i,v,c,t,y.ProjectionNode)}return f.jsxs(Ha.Provider,{value:p,children:[u&&p.visualElement?f.jsx(u,{visualElement:p.visualElement,...c}):null,n(i,a,lj(v,p.visualElement,l),v,d,p.visualElement)]})}const o=h.forwardRef(s);return o[fj]=i,o}function hj({layoutId:e}){const t=h.useContext(x0).id;return t&&e!==void 0?t+"-"+e:e}function mj(e,t){h.useContext(p0).strict}function gj(e){const{drag:t,layout:n}=ni;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function yj(e){function t(r,i={}){return pj(e(r,i))}if(typeof Proxy>"u")return t;const n=new Map;return new Proxy(t,{get:(r,i)=>(n.has(i)||n.set(i,t(i)),n.get(i))})}const vj=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Hd(e){return typeof e!="string"||e.includes("-")?!1:!!(vj.indexOf(e)>-1||/[A-Z]/u.test(e))}const sa={};function xj(e){Object.assign(sa,e)}const As=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],gr=new Set(As);function w0(e,{layout:t,layoutId:n}){return gr.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!sa[e]||e==="opacity")}const _e=e=>!!(e&&e.getVelocity),wj={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Sj=As.length;function Cj(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,i){let s="";for(let o=0;ot=>typeof t=="string"&&t.startsWith(e),C0=S0("--"),Ej=S0("var(--"),Wd=e=>Ej(e)?Tj.test(e.split("/*")[0].trim()):!1,Tj=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,kj=(e,t)=>t&&typeof e=="number"?t.transform(e):e,_n=(e,t,n)=>n>t?t:ntypeof e=="number",parse:parseFloat,transform:e=>e},Yi={...hi,transform:e=>_n(0,1,e)},oo={...hi,default:1},Qi=e=>Math.round(e*1e5)/1e5,Kd=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,jj=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,Pj=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;function bs(e){return typeof e=="string"}const Ds=e=>({test:t=>bs(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),pn=Ds("deg"),Ft=Ds("%"),M=Ds("px"),Rj=Ds("vh"),Nj=Ds("vw"),ph={...Ft,parse:e=>Ft.parse(e)/100,transform:e=>Ft.transform(e*100)},hh={...hi,transform:Math.round},E0={borderWidth:M,borderTopWidth:M,borderRightWidth:M,borderBottomWidth:M,borderLeftWidth:M,borderRadius:M,radius:M,borderTopLeftRadius:M,borderTopRightRadius:M,borderBottomRightRadius:M,borderBottomLeftRadius:M,width:M,maxWidth:M,height:M,maxHeight:M,size:M,top:M,right:M,bottom:M,left:M,padding:M,paddingTop:M,paddingRight:M,paddingBottom:M,paddingLeft:M,margin:M,marginTop:M,marginRight:M,marginBottom:M,marginLeft:M,rotate:pn,rotateX:pn,rotateY:pn,rotateZ:pn,scale:oo,scaleX:oo,scaleY:oo,scaleZ:oo,skew:pn,skewX:pn,skewY:pn,distance:M,translateX:M,translateY:M,translateZ:M,x:M,y:M,z:M,perspective:M,transformPerspective:M,opacity:Yi,originX:ph,originY:ph,originZ:M,zIndex:hh,backgroundPositionX:M,backgroundPositionY:M,fillOpacity:Yi,strokeOpacity:Yi,numOctaves:hh};function Gd(e,t,n,r){const{style:i,vars:s,transform:o,transformOrigin:a}=e;let l=!1,u=!1,c=!0;for(const d in t){const p=t[d];if(C0(d)){s[d]=p;continue}const v=E0[d],y=kj(p,v);if(gr.has(d)){if(l=!0,o[d]=y,!c)continue;p!==(v.default||0)&&(c=!1)}else d.startsWith("origin")?(u=!0,a[d]=y):i[d]=y}if(t.transform||(l||r?i.transform=Cj(e.transform,n,c,r):i.transform&&(i.transform="none")),u){const{originX:d="50%",originY:p="50%",originZ:v=0}=a;i.transformOrigin=`${d} ${p} ${v}`}}const Yd=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function T0(e,t,n){for(const r in t)!_e(t[r])&&!w0(r,n)&&(e[r]=t[r])}function Oj({transformTemplate:e},t,n){return h.useMemo(()=>{const r=Yd();return Gd(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}function Lj(e,t,n){const r=e.style||{},i={};return T0(i,r,e),Object.assign(i,Oj(e,t,n)),i}function Aj(e,t,n){const r={},i=Lj(e,t,n);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=i,r}const bj=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function oa(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||bj.has(e)}let k0=e=>!oa(e);function Dj(e){e&&(k0=t=>t.startsWith("on")?!oa(t):e(t))}try{Dj(require("@emotion/is-prop-valid").default)}catch{}function Mj(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(k0(i)||n===!0&&oa(i)||!t&&!oa(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function mh(e,t,n){return typeof e=="string"?e:M.transform(t+n*e)}function _j(e,t,n){const r=mh(t,e.x,e.width),i=mh(n,e.y,e.height);return`${r} ${i}`}const Ij={offset:"stroke-dashoffset",array:"stroke-dasharray"},Fj={offset:"strokeDashoffset",array:"strokeDasharray"};function Vj(e,t,n=1,r=0,i=!0){e.pathLength=1;const s=i?Ij:Fj;e[s.offset]=M.transform(-r);const o=M.transform(t),a=M.transform(n);e[s.array]=`${o} ${a}`}function Qd(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:s,pathLength:o,pathSpacing:a=1,pathOffset:l=0,...u},c,d,p){if(Gd(e,u,c,p),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:v,style:y,dimensions:w}=e;v.transform&&(w&&(y.transform=v.transform),delete v.transform),w&&(i!==void 0||s!==void 0||y.transform)&&(y.transformOrigin=_j(w,i!==void 0?i:.5,s!==void 0?s:.5)),t!==void 0&&(v.x=t),n!==void 0&&(v.y=n),r!==void 0&&(v.scale=r),o!==void 0&&Vj(v,o,a,l,!1)}const j0=()=>({...Yd(),attrs:{}}),Xd=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Bj(e,t,n,r){const i=h.useMemo(()=>{const s=j0();return Qd(s,t,{enableHardwareAcceleration:!1},Xd(r),e.transformTemplate),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};T0(s,e.style,e),i.style={...s,...i.style}}return i}function $j(e=!1){return(n,r,i,{latestValues:s},o)=>{const l=(Hd(n)?Bj:Aj)(r,s,o,n),u=Mj(r,typeof n=="string",e),c=n!==h.Fragment?{...u,...l,ref:i}:{},{children:d}=r,p=h.useMemo(()=>_e(d)?d.get():d,[d]);return h.createElement(n,{...c,children:p})}}function P0(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const s in n)e.style.setProperty(s,n[s])}const R0=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function N0(e,t,n,r){P0(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(R0.has(i)?i:Bd(i),t.attrs[i])}function qd(e,t,n){var r;const{style:i}=e,s={};for(const o in i)(_e(i[o])||t.style&&_e(t.style[o])||w0(o,e)||((r=n==null?void 0:n.getValue(o))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(s[o]=i[o]);return s}function O0(e,t,n){const r=qd(e,t,n);for(const i in e)if(_e(e[i])||_e(t[i])){const s=As.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[s]=e[i]}return r}function gh(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Jd(e,t,n,r){if(typeof t=="function"){const[i,s]=gh(r);t=t(n!==void 0?n:e.custom,i,s)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,s]=gh(r);t=t(n!==void 0?n:e.custom,i,s)}return t}function Uj(e){const t=h.useRef(null);return t.current===null&&(t.current=e()),t.current}const ac=e=>Array.isArray(e),zj=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),Hj=e=>ac(e)?e[e.length-1]||0:e;function To(e){const t=_e(e)?e.get():e;return zj(t)?t.toValue():t}function Wj({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,i,s){const o={latestValues:Kj(r,i,s,e),renderState:t()};return n&&(o.mount=a=>n(r,a,o)),o}const L0=e=>(t,n)=>{const r=h.useContext(Ha),i=h.useContext(Fd),s=()=>Wj(e,t,r,i);return n?s():Uj(s)};function Kj(e,t,n,r){const i={},s=r(e,{});for(const p in s)i[p]=To(s[p]);let{initial:o,animate:a}=e;const l=Ka(e),u=v0(e);t&&u&&!l&&e.inherit!==!1&&(o===void 0&&(o=t.initial),a===void 0&&(a=t.animate));let c=n?n.initial===!1:!1;c=c||o===!1;const d=c?a:o;return d&&typeof d!="boolean"&&!Wa(d)&&(Array.isArray(d)?d:[d]).forEach(v=>{const y=Jd(e,v);if(!y)return;const{transitionEnd:w,transition:S,...x}=y;for(const m in x){let g=x[m];if(Array.isArray(g)){const C=c?g.length-1:0;g=g[C]}g!==null&&(i[m]=g)}for(const m in w)i[m]=w[m]}),i}const{schedule:G,cancel:rn,state:Re,steps:Ml}=m0(typeof requestAnimationFrame<"u"?requestAnimationFrame:Ie,!0),Gj={useVisualState:L0({scrapeMotionValuesFromProps:O0,createRenderState:j0,onMount:(e,t,{renderState:n,latestValues:r})=>{G.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),G.render(()=>{Qd(n,r,{enableHardwareAcceleration:!1},Xd(t.tagName),e.transformTemplate),N0(t,n)})}})},Yj={useVisualState:L0({scrapeMotionValuesFromProps:qd,createRenderState:Yd})};function Qj(e,{forwardMotionProps:t=!1},n,r){return{...Hd(e)?Gj:Yj,preloadedFeatures:n,useRender:$j(t),createVisualElement:r,Component:e}}function Kt(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const A0=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function Ga(e,t="page"){return{point:{x:e[`${t}X`],y:e[`${t}Y`]}}}const Xj=e=>t=>A0(t)&&e(t,Ga(t));function Qt(e,t,n,r){return Kt(e,t,Xj(n),r)}const qj=(e,t)=>n=>t(e(n)),Xt=(...e)=>e.reduce(qj);function b0(e){let t=null;return()=>{const n=()=>{t=null};return t===null?(t=e,n):!1}}const yh=b0("dragHorizontal"),vh=b0("dragVertical");function D0(e){let t=!1;if(e==="y")t=vh();else if(e==="x")t=yh();else{const n=yh(),r=vh();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function M0(){const e=D0(!0);return e?(e(),!1):!0}class Un{constructor(t){this.isMounted=!1,this.node=t}update(){}}function xh(e,t){const n=t?"pointerenter":"pointerleave",r=t?"onHoverStart":"onHoverEnd",i=(s,o)=>{if(s.pointerType==="touch"||M0())return;const a=e.getProps();e.animationState&&a.whileHover&&e.animationState.setActive("whileHover",t);const l=a[r];l&&G.postRender(()=>l(s,o))};return Qt(e.current,n,i,{passive:!e.getProps()[r]})}class Jj extends Un{mount(){this.unmount=Xt(xh(this.node,!0),xh(this.node,!1))}unmount(){}}class Zj extends Un{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Xt(Kt(this.node.current,"focus",()=>this.onFocus()),Kt(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const _0=(e,t)=>t?e===t?!0:_0(e,t.parentElement):!1;function _l(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,Ga(n))}class eP extends Un{constructor(){super(...arguments),this.removeStartListeners=Ie,this.removeEndListeners=Ie,this.removeAccessibleListeners=Ie,this.startPointerPress=(t,n)=>{if(this.isPressing)return;this.removeEndListeners();const r=this.node.getProps(),s=Qt(window,"pointerup",(a,l)=>{if(!this.checkPressEnd())return;const{onTap:u,onTapCancel:c,globalTapTarget:d}=this.node.getProps(),p=!d&&!_0(this.node.current,a.target)?c:u;p&&G.update(()=>p(a,l))},{passive:!(r.onTap||r.onPointerUp)}),o=Qt(window,"pointercancel",(a,l)=>this.cancelPress(a,l),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=Xt(s,o),this.startPress(t,n)},this.startAccessiblePress=()=>{const t=s=>{if(s.key!=="Enter"||this.isPressing)return;const o=a=>{a.key!=="Enter"||!this.checkPressEnd()||_l("up",(l,u)=>{const{onTap:c}=this.node.getProps();c&&G.postRender(()=>c(l,u))})};this.removeEndListeners(),this.removeEndListeners=Kt(this.node.current,"keyup",o),_l("down",(a,l)=>{this.startPress(a,l)})},n=Kt(this.node.current,"keydown",t),r=()=>{this.isPressing&&_l("cancel",(s,o)=>this.cancelPress(s,o))},i=Kt(this.node.current,"blur",r);this.removeAccessibleListeners=Xt(n,i)}}startPress(t,n){this.isPressing=!0;const{onTapStart:r,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&G.postRender(()=>r(t,n))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!M0()}cancelPress(t,n){if(!this.checkPressEnd())return;const{onTapCancel:r}=this.node.getProps();r&&G.postRender(()=>r(t,n))}mount(){const t=this.node.getProps(),n=Qt(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),r=Kt(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Xt(n,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const lc=new WeakMap,Il=new WeakMap,tP=e=>{const t=lc.get(e.target);t&&t(e)},nP=e=>{e.forEach(tP)};function rP({root:e,...t}){const n=e||document;Il.has(n)||Il.set(n,{});const r=Il.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(nP,{root:e,...t})),r[i]}function iP(e,t,n){const r=rP(t);return lc.set(e,n),r.observe(e),()=>{lc.delete(e),r.unobserve(e)}}const sP={some:0,all:1};class oP extends Un{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:s}=t,o={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:sP[i]},a=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,s&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:d}=this.node.getProps(),p=u?c:d;p&&p(l)};return iP(this.node.current,o,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(aP(t,n))&&this.startObserver()}unmount(){}}function aP({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const lP={inView:{Feature:oP},tap:{Feature:eP},focus:{Feature:Zj},hover:{Feature:Jj}};function I0(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;re*1e3,qt=e=>e/1e3,uP={type:"spring",stiffness:500,damping:25,restSpeed:10},cP=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),dP={type:"keyframes",duration:.8},fP={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},pP=(e,{keyframes:t})=>t.length>2?dP:gr.has(e)?e.startsWith("scale")?cP(t[1]):uP:fP;function hP({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:s,repeatType:o,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length}function Zd(e,t){return e[t]||e.default||e}const mP=e=>e!==null;function Qa(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(mP),s=t&&n!=="loop"&&t%2===1?0:i.length-1;return!s||r===void 0?i[s]:r}let ko;function gP(){ko=void 0}const bn={now:()=>(ko===void 0&&bn.set(Re.isProcessing||nj.useManualTiming?Re.timestamp:performance.now()),ko),set:e=>{ko=e,queueMicrotask(gP)}},F0=e=>/^0[^.\s]+$/u.test(e);function yP(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||F0(e):!0}const V0=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),vP=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function xP(e){const t=vP.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}function B0(e,t,n=1){const[r,i]=xP(e);if(!r)return;const s=window.getComputedStyle(t).getPropertyValue(r);if(s){const o=s.trim();return V0(o)?parseFloat(o):o}return Wd(i)?B0(i,t,n+1):i}const wP=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),wh=e=>e===hi||e===M,Sh=(e,t)=>parseFloat(e.split(", ")[t]),Ch=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return Sh(i[1],t);{const s=r.match(/^matrix\((.+)\)$/u);return s?Sh(s[1],e):0}},SP=new Set(["x","y","z"]),CP=As.filter(e=>!SP.has(e));function EP(e){const t=[];return CP.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const ri={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:Ch(4,13),y:Ch(5,14)};ri.translateX=ri.x;ri.translateY=ri.y;const $0=e=>t=>t.test(e),TP={test:e=>e==="auto",parse:e=>e},U0=[hi,M,Ft,pn,Nj,Rj,TP],Eh=e=>U0.find($0(e)),rr=new Set;let uc=!1,cc=!1;function z0(){if(cc){const e=Array.from(rr).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=EP(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([s,o])=>{var a;(a=r.getValue(s))===null||a===void 0||a.set(o)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}cc=!1,uc=!1,rr.forEach(e=>e.complete()),rr.clear()}function H0(){rr.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(cc=!0)})}function kP(){H0(),z0()}class ef{constructor(t,n,r,i,s,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=s,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(rr.add(this),uc||(uc=!0,G.read(H0),G.resolveKeyframes(z0))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;for(let s=0;sn=>!!(bs(n)&&Pj.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),W0=(e,t,n)=>r=>{if(!bs(r))return r;const[i,s,o,a]=r.match(Kd);return{[e]:parseFloat(i),[t]:parseFloat(s),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},jP=e=>_n(0,255,e),Fl={...hi,transform:e=>Math.round(jP(e))},Jn={test:tf("rgb","red"),parse:W0("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Fl.transform(e)+", "+Fl.transform(t)+", "+Fl.transform(n)+", "+Qi(Yi.transform(r))+")"};function PP(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const dc={test:tf("#"),parse:PP,transform:Jn.transform},Fr={test:tf("hsl","hue"),parse:W0("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Ft.transform(Qi(t))+", "+Ft.transform(Qi(n))+", "+Qi(Yi.transform(r))+")"},De={test:e=>Jn.test(e)||dc.test(e)||Fr.test(e),parse:e=>Jn.test(e)?Jn.parse(e):Fr.test(e)?Fr.parse(e):dc.parse(e),transform:e=>bs(e)?e:e.hasOwnProperty("red")?Jn.transform(e):Fr.transform(e)};function RP(e){var t,n;return isNaN(e)&&bs(e)&&(((t=e.match(Kd))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(jj))===null||n===void 0?void 0:n.length)||0)>0}const K0="number",G0="color",NP="var",OP="var(",Th="${}",LP=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function ws(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let s=0;const a=t.replace(LP,l=>(De.test(l)?(r.color.push(s),i.push(G0),n.push(De.parse(l))):l.startsWith(OP)?(r.var.push(s),i.push(NP),n.push(l)):(r.number.push(s),i.push(K0),n.push(parseFloat(l))),++s,Th)).split(Th);return{values:n,split:a,indexes:r,types:i}}function Y0(e){return ws(e).values}function Q0(e){const{split:t,types:n}=ws(e),r=t.length;return i=>{let s="";for(let o=0;otypeof e=="number"?0:e;function bP(e){const t=Y0(e);return Q0(e)(t.map(AP))}const In={test:RP,parse:Y0,createTransformer:Q0,getAnimatableNone:bP},DP=new Set(["brightness","contrast","saturate","opacity"]);function MP(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Kd)||[];if(!r)return e;const i=n.replace(r,"");let s=DP.has(t)?1:0;return r!==n&&(s*=100),t+"("+s+i+")"}const _P=/\b([a-z-]*)\(.*?\)/gu,fc={...In,getAnimatableNone:e=>{const t=e.match(_P);return t?t.map(MP).join(" "):e}},IP={...E0,color:De,backgroundColor:De,outlineColor:De,fill:De,stroke:De,borderColor:De,borderTopColor:De,borderRightColor:De,borderBottomColor:De,borderLeftColor:De,filter:fc,WebkitFilter:fc},nf=e=>IP[e];function X0(e,t){let n=nf(e);return n!==fc&&(n=In),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const FP=new Set(["auto","none","0"]);function VP(e,t,n){let r=0,i;for(;r{n.getValue(l).set(u)}),this.resolveNoneKeyframes()}}function J0(e){let t;return()=>(t===void 0&&(t=e()),t)}const kh=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(In.test(e)||e==="0")&&!e.startsWith("url("));function BP(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n{this.resolveFinishedPromise=t})}}function ex(e,t){return t?e*(1e3/t):0}const UP=5;function tx(e,t,n){const r=Math.max(t-UP,0);return ex(n-e(r),t-r)}const Vl=.001,zP=.01,HP=10,WP=.05,KP=1;function GP({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,s,o=1-t;o=_n(WP,KP,o),e=_n(zP,HP,qt(e)),o<1?(i=u=>{const c=u*o,d=c*e,p=c-n,v=pc(u,o),y=Math.exp(-d);return Vl-p/v*y},s=u=>{const d=u*o*e,p=d*n+n,v=Math.pow(o,2)*Math.pow(u,2)*e,y=Math.exp(-d),w=pc(Math.pow(u,2),o);return(-i(u)+Vl>0?-1:1)*((p-v)*y)/w}):(i=u=>{const c=Math.exp(-u*e),d=(u-n)*e+1;return-Vl+c*d},s=u=>{const c=Math.exp(-u*e),d=(n-u)*(e*e);return c*d});const a=5/e,l=QP(i,s,a);if(e=An(e),isNaN(l))return{stiffness:100,damping:10,duration:e};{const u=Math.pow(l,2)*r;return{stiffness:u,damping:o*2*Math.sqrt(r*u),duration:e}}}const YP=12;function QP(e,t,n){let r=n;for(let i=1;ie[n]!==void 0)}function JP(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!jh(e,qP)&&jh(e,XP)){const n=GP(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}function nx({keyframes:e,restDelta:t,restSpeed:n,...r}){const i=e[0],s=e[e.length-1],o={done:!1,value:i},{stiffness:a,damping:l,mass:u,duration:c,velocity:d,isResolvedFromDuration:p}=JP({...r,velocity:-qt(r.velocity||0)}),v=d||0,y=l/(2*Math.sqrt(a*u)),w=s-i,S=qt(Math.sqrt(a/u)),x=Math.abs(w)<5;n||(n=x?.01:2),t||(t=x?.005:.5);let m;if(y<1){const g=pc(S,y);m=C=>{const T=Math.exp(-y*S*C);return s-T*((v+y*S*w)/g*Math.sin(g*C)+w*Math.cos(g*C))}}else if(y===1)m=g=>s-Math.exp(-S*g)*(w+(v+S*w)*g);else{const g=S*Math.sqrt(y*y-1);m=C=>{const T=Math.exp(-y*S*C),E=Math.min(g*C,300);return s-T*((v+y*S*w)*Math.sinh(E)+g*w*Math.cosh(E))/g}}return{calculatedDuration:p&&c||null,next:g=>{const C=m(g);if(p)o.done=g>=c;else{let T=v;g!==0&&(y<1?T=tx(m,g,C):T=0);const E=Math.abs(T)<=n,P=Math.abs(s-C)<=t;o.done=E&&P}return o.value=o.done?s:C,o}}}function Ph({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:s=500,modifyTarget:o,min:a,max:l,restDelta:u=.5,restSpeed:c}){const d=e[0],p={done:!1,value:d},v=j=>a!==void 0&&jl,y=j=>a===void 0?l:l===void 0||Math.abs(a-j)-w*Math.exp(-j/r),g=j=>x+m(j),C=j=>{const _=m(j),b=g(j);p.done=Math.abs(_)<=u,p.value=p.done?x:b};let T,E;const P=j=>{v(p.value)&&(T=j,E=nx({keyframes:[p.value,y(p.value)],velocity:tx(g,j,p.value),damping:i,stiffness:s,restDelta:u,restSpeed:c}))};return P(0),{calculatedDuration:null,next:j=>{let _=!1;return!E&&T===void 0&&(_=!0,C(j),P(j)),T!==void 0&&j>=T?E.next(j-T):(!_&&C(j),p)}}}const rx=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,ZP=1e-7,eR=12;function tR(e,t,n,r,i){let s,o,a=0;do o=t+(n-t)/2,s=rx(o,r,i)-e,s>0?n=o:t=o;while(Math.abs(s)>ZP&&++atR(s,0,1,e,n);return s=>s===0||s===1?s:rx(i(s),t,r)}const nR=Ms(.42,0,1,1),rR=Ms(0,0,.58,1),ix=Ms(.42,0,.58,1),iR=e=>Array.isArray(e)&&typeof e[0]!="number",sx=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,ox=e=>t=>1-e(1-t),rf=e=>1-Math.sin(Math.acos(e)),ax=ox(rf),sR=sx(rf),lx=Ms(.33,1.53,.69,.99),sf=ox(lx),oR=sx(sf),aR=e=>(e*=2)<1?.5*sf(e):.5*(2-Math.pow(2,-10*(e-1))),Rh={linear:Ie,easeIn:nR,easeInOut:ix,easeOut:rR,circIn:rf,circInOut:sR,circOut:ax,backIn:sf,backInOut:oR,backOut:lx,anticipate:aR},Nh=e=>{if(Array.isArray(e)){oc(e.length===4);const[t,n,r,i]=e;return Ms(t,n,r,i)}else if(typeof e=="string")return oc(Rh[e]!==void 0),Rh[e];return e},Ss=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},oe=(e,t,n)=>e+(t-e)*n;function Bl(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function lR({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,s=0,o=0;if(!t)i=s=o=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;i=Bl(l,a,e+1/3),s=Bl(l,a,e),o=Bl(l,a,e-1/3)}return{red:Math.round(i*255),green:Math.round(s*255),blue:Math.round(o*255),alpha:r}}function aa(e,t){return n=>n>0?t:e}const $l=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},uR=[dc,Jn,Fr],cR=e=>uR.find(t=>t.test(e));function Oh(e){const t=cR(e);if(!t)return!1;let n=t.parse(e);return t===Fr&&(n=lR(n)),n}const Lh=(e,t)=>{const n=Oh(e),r=Oh(t);if(!n||!r)return aa(e,t);const i={...n};return s=>(i.red=$l(n.red,r.red,s),i.green=$l(n.green,r.green,s),i.blue=$l(n.blue,r.blue,s),i.alpha=oe(n.alpha,r.alpha,s),Jn.transform(i))},hc=new Set(["none","hidden"]);function dR(e,t){return hc.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function fR(e,t){return n=>oe(e,t,n)}function of(e){return typeof e=="number"?fR:typeof e=="string"?Wd(e)?aa:De.test(e)?Lh:mR:Array.isArray(e)?ux:typeof e=="object"?De.test(e)?Lh:pR:aa}function ux(e,t){const n=[...e],r=n.length,i=e.map((s,o)=>of(s)(s,t[o]));return s=>{for(let o=0;o{for(const s in r)n[s]=r[s](i);return n}}function hR(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let s=0;s{const n=In.createTransformer(t),r=ws(e),i=ws(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?hc.has(e)&&!i.values.length||hc.has(t)&&!r.values.length?dR(e,t):Xt(ux(hR(r,i),i.values),n):aa(e,t)};function cx(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?oe(e,t,n):of(e)(e,t)}function gR(e,t,n){const r=[],i=n||cx,s=e.length-1;for(let o=0;ot[0];if(s===2&&e[0]===e[1])return()=>t[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const o=gR(t,r,i),a=o.length,l=u=>{let c=0;if(a>1)for(;cl(_n(e[0],e[s-1],u)):l}function vR(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Ss(0,t,r);e.push(oe(n,1,i))}}function xR(e){const t=[0];return vR(t,e.length-1),t}function wR(e,t){return e.map(n=>n*t)}function SR(e,t){return e.map(()=>t||ix).splice(0,e.length-1)}function la({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=iR(r)?r.map(Nh):Nh(r),s={done:!1,value:t[0]},o=wR(n&&n.length===t.length?n:xR(t),e),a=yR(o,t,{ease:Array.isArray(i)?i:SR(t,i)});return{calculatedDuration:e,next:l=>(s.value=a(l),s.done=l>=e,s)}}const Ah=2e4;function CR(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t=Ah?1/0:t}const ER=e=>{const t=({timestamp:n})=>e(n);return{start:()=>G.update(t,!0),stop:()=>rn(t),now:()=>Re.isProcessing?Re.timestamp:bn.now()}},TR={decay:Ph,inertia:Ph,tween:la,keyframes:la,spring:nx},kR=e=>e/100;class af extends Z0{constructor({KeyframeResolver:t=ef,...n}){super(n),this.holdTime=null,this.startTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:a}=this.options;a&&a()};const{name:r,motionValue:i,keyframes:s}=this.options,o=(a,l)=>this.onKeyframesResolved(a,l);r&&i&&i.owner?this.resolver=i.owner.resolveKeyframes(s,o,r,i):this.resolver=new t(s,o,r,i),this.resolver.scheduleResolve()}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:s,velocity:o=0}=this.options,a=TR[n]||la;let l,u;a!==la&&typeof t[0]!="number"&&(l=Xt(kR,cx(t[0],t[1])),t=[0,100]);const c=a({...this.options,keyframes:t});s==="mirror"&&(u=a({...this.options,keyframes:[...t].reverse(),velocity:-o})),c.calculatedDuration===null&&(c.calculatedDuration=CR(c));const{calculatedDuration:d}=c,p=d+i,v=p*(r+1)-i;return{generator:c,mirroredGenerator:u,mapPercentToKeyframes:l,calculatedDuration:d,resolvedDuration:p,totalDuration:v}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:j}=this.options;return{done:!0,value:j[j.length-1]}}const{finalKeyframe:i,generator:s,mirroredGenerator:o,mapPercentToKeyframes:a,keyframes:l,calculatedDuration:u,totalDuration:c,resolvedDuration:d}=r;if(this.startTime===null)return s.next(0);const{delay:p,repeat:v,repeatType:y,repeatDelay:w,onUpdate:S}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-c/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const x=this.currentTime-p*(this.speed>=0?1:-1),m=this.speed>=0?x<0:x>c;this.currentTime=Math.max(x,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let g=this.currentTime,C=s;if(v){const j=Math.min(this.currentTime,c)/d;let _=Math.floor(j),b=j%1;!b&&j>=1&&(b=1),b===1&&_--,_=Math.min(_,v+1),!!(_%2)&&(y==="reverse"?(b=1-b,w&&(b-=w/d)):y==="mirror"&&(C=o)),g=_n(0,1,b)*d}const T=m?{done:!1,value:l[0]}:C.next(g);a&&(T.value=a(T.value));let{done:E}=T;!m&&u!==null&&(E=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const P=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&E);return P&&i!==void 0&&(T.value=Qa(l,this.options,i)),S&&S(T.value),P&&this.finish(),T}get duration(){const{resolved:t}=this;return t?qt(t.calculatedDuration):0}get time(){return qt(this.currentTime)}set time(t){t=An(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=qt(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=ER,onPlay:n}=this.options;this.driver||(this.driver=t(i=>this.tick(i))),n&&n();const r=this.driver.now();this.holdTime!==null?this.startTime=r-this.holdTime:(!this.startTime||this.state==="finished")&&(this.startTime=r),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const dx=e=>Array.isArray(e)&&typeof e[0]=="number";function fx(e){return!!(!e||typeof e=="string"&&e in lf||dx(e)||Array.isArray(e)&&e.every(fx))}const _i=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,lf={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:_i([0,.65,.55,1]),circOut:_i([.55,0,1,.45]),backIn:_i([.31,.01,.66,-.59]),backOut:_i([.33,1.53,.69,.99])};function jR(e){return px(e)||lf.easeOut}function px(e){if(e)return dx(e)?_i(e):Array.isArray(e)?e.map(jR):lf[e]}function PR(e,t,n,{delay:r=0,duration:i=300,repeat:s=0,repeatType:o="loop",ease:a,times:l}={}){const u={[t]:n};l&&(u.offset=l);const c=px(a);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:r,duration:i,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:s+1,direction:o==="reverse"?"alternate":"normal"})}const RR=J0(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),NR=new Set(["opacity","clipPath","filter","transform"]),ua=10,OR=2e4;function LR(e){return e.type==="spring"||e.name==="backgroundColor"||!fx(e.ease)}function AR(e,t){const n=new af({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const i=[];let s=0;for(;!r.done&&sthis.onKeyframesResolved(s,o),n,r),this.resolver.scheduleResolve()}initPlayback(t,n){var r;let{duration:i=300,times:s,ease:o,type:a,motionValue:l,name:u}=this.options;if(!(!((r=l.owner)===null||r===void 0)&&r.current))return!1;if(LR(this.options)){const{onComplete:d,onUpdate:p,motionValue:v,...y}=this.options,w=AR(t,y);t=w.keyframes,t.length===1&&(t[1]=t[0]),i=w.duration,s=w.times,o=w.ease,a="keyframes"}const c=PR(l.owner.current,u,t,{...this.options,duration:i,times:s,ease:o});return c.startTime=bn.now(),this.pendingTimeline?(c.timeline=this.pendingTimeline,this.pendingTimeline=void 0):c.onfinish=()=>{const{onComplete:d}=this.options;l.set(Qa(t,this.options,n)),d&&d(),this.cancel(),this.resolveFinishedPromise()},{animation:c,duration:i,times:s,type:a,ease:o,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return qt(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return qt(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=An(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return Ie;const{animation:r}=n;r.timeline=t,r.onfinish=null}return Ie}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:i,type:s,ease:o,times:a}=t;if(!(n.playState==="idle"||n.playState==="finished")){if(this.time){const{motionValue:l,onUpdate:u,onComplete:c,...d}=this.options,p=new af({...d,keyframes:r,duration:i,type:s,ease:o,times:a,isGenerator:!0}),v=An(this.time);l.setWithVelocity(p.sample(v-ua).value,p.sample(v).value,ua)}this.cancel()}}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:i,repeatType:s,damping:o,type:a}=t;return RR()&&r&&NR.has(r)&&n&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate&&!i&&s!=="mirror"&&o!==0&&a!=="inertia"}}function bR(e,t){let n;const r=()=>{const{currentTime:i}=t,o=(i===null?0:i.value)/100;n!==o&&e(o),n=o};return G.update(r,!0),()=>rn(r)}const DR=J0(()=>window.ScrollTimeline!==void 0);class MR{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}then(t,n){return Promise.all(this.animations).then(t).catch(n)}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r{if(DR()&&r.attachTimeline)r.attachTimeline(t);else return r.pause(),bR(i=>{r.time=r.duration*i},t)});return()=>{n.forEach((r,i)=>{r&&r(),this.animations[i].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get duration(){let t=0;for(let n=0;nn[t]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}const uf=(e,t,n,r={},i,s)=>o=>{const a=Zd(r,e)||{},l=a.delay||r.delay||0;let{elapsed:u=0}=r;u=u-An(l);let c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-u,onUpdate:p=>{t.set(p),a.onUpdate&&a.onUpdate(p)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:s?void 0:i};hP(a)||(c={...c,...pP(e,c)}),c.duration&&(c.duration=An(c.duration)),c.repeatDelay&&(c.repeatDelay=An(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let d=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(c.duration=0,c.delay===0&&(d=!0)),d&&!s&&t.get()!==void 0){const p=Qa(c.keyframes,a);if(p!==void 0)return G.update(()=>{c.onUpdate(p),c.onComplete()}),new MR([])}return!s&&bh.supports(c)?new bh(c):new af(c)};function ca(e){return!!(_e(e)&&e.add)}function cf(e,t){e.indexOf(t)===-1&&e.push(t)}function df(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class ff{constructor(){this.subscriptions=[]}add(t){return cf(this.subscriptions,t),()=>df(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let s=0;s!isNaN(parseFloat(e));class IR{constructor(t,n={}){this.version="11.2.12",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const s=bn.now();this.updatedAt!==s&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=bn.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=_R(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new ff);const r=this.events[t].add(n);return t==="change"?()=>{r(),G.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=bn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Dh)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Dh);return ex(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Cs(e,t){return new IR(e,t)}function FR(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Cs(n))}function VR(e,t){const n=Ya(e,t);let{transitionEnd:r={},transition:i={},...s}=n||{};s={...s,...r};for(const o in s){const a=Hj(s[o]);FR(e,o,a)}}function hx(e){return e.getProps()[h0]}function BR({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function mx(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var s;let{transition:o=e.getDefaultTransition(),transitionEnd:a,...l}=t;const u=e.getValue("willChange");r&&(o=r);const c=[],d=i&&e.animationState&&e.animationState.getState()[i];for(const p in l){const v=e.getValue(p,(s=e.latestValues[p])!==null&&s!==void 0?s:null),y=l[p];if(y===void 0||d&&BR(d,p))continue;const w={delay:n,elapsed:0,...Zd(o||{},p)};let S=!1;if(window.HandoffAppearAnimations){const m=hx(e);if(m){const g=window.HandoffAppearAnimations(m,p,v,G);g!==null&&(w.elapsed=g,S=!0)}}v.start(uf(p,v,y,e.shouldReduceMotion&&gr.has(p)?{type:!1}:w,e,S));const x=v.animation;x&&(ca(u)&&(u.add(p),x.then(()=>u.remove(p))),c.push(x))}return a&&Promise.all(c).then(()=>{G.update(()=>{a&&VR(e,a)})}),c}function mc(e,t,n={}){var r;const i=Ya(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:s=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(s=n.transitionOverride);const o=i?()=>Promise.all(mx(e,i,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:c=0,staggerChildren:d,staggerDirection:p}=s;return $R(e,t,c+u,d,p,n)}:()=>Promise.resolve(),{when:l}=s;if(l){const[u,c]=l==="beforeChildren"?[o,a]:[a,o];return u().then(()=>c())}else return Promise.all([o(),a(n.delay)])}function $R(e,t,n=0,r=0,i=1,s){const o=[],a=(e.variantChildren.size-1)*r,l=i===1?(u=0)=>u*r:(u=0)=>a-u*r;return Array.from(e.variantChildren).sort(UR).forEach((u,c)=>{u.notify("AnimationStart",t),o.push(mc(u,t,{...s,delay:n+l(c)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(o)}function UR(e,t){return e.sortNodePosition(t)}function zR(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(s=>mc(e,s,n));r=Promise.all(i)}else if(typeof t=="string")r=mc(e,t,n);else{const i=typeof t=="function"?Ya(e,t,n.custom):t;r=Promise.all(mx(e,i,n))}return r.then(()=>{G.postRender(()=>{e.notify("AnimationComplete",t)})})}const HR=[...Ud].reverse(),WR=Ud.length;function KR(e){return t=>Promise.all(t.map(({animation:n,options:r})=>zR(e,n,r)))}function GR(e){let t=KR(e),n=Mh(),r=!0;const i=l=>(u,c)=>{var d;const p=Ya(e,c,l==="exit"?(d=e.presenceContext)===null||d===void 0?void 0:d.custom:void 0);if(p){const{transition:v,transitionEnd:y,...w}=p;u={...u,...w,...y}}return u};function s(l){t=l(e)}function o(l){const u=e.getProps(),c=e.getVariantContext(!0)||{},d=[],p=new Set;let v={},y=1/0;for(let S=0;Sy&&C,_=!1;const b=Array.isArray(g)?g:[g];let X=b.reduce(i(x),{});T===!1&&(X={});const{prevResolvedValues:Ve={}}=m,Le={...Ve,...X},et=te=>{j=!0,p.has(te)&&(_=!0,p.delete(te)),m.needsAnimating[te]=!0;const ne=e.getValue(te);ne&&(ne.liveStyle=!1)};for(const te in Le){const ne=X[te],ke=Ve[te];if(v.hasOwnProperty(te))continue;let N=!1;ac(ne)&&ac(ke)?N=!I0(ne,ke):N=ne!==ke,N?ne!=null?et(te):p.add(te):ne!==void 0&&p.has(te)?et(te):m.protectedKeys[te]=!0}m.prevProp=g,m.prevResolvedValues=X,m.isActive&&(v={...v,...X}),r&&e.blockInitialAnimation&&(j=!1),j&&(!E||_)&&d.push(...b.map(te=>({animation:te,options:{type:x}})))}if(p.size){const S={};p.forEach(x=>{const m=e.getBaseTarget(x),g=e.getValue(x);g&&(g.liveStyle=!0),S[x]=m??null}),d.push({animation:S})}let w=!!d.length;return r&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(w=!1),r=!1,w?t(d):Promise.resolve()}function a(l,u){var c;if(n[l].isActive===u)return Promise.resolve();(c=e.variantChildren)===null||c===void 0||c.forEach(p=>{var v;return(v=p.animationState)===null||v===void 0?void 0:v.setActive(l,u)}),n[l].isActive=u;const d=o(l);for(const p in n)n[p].protectedKeys={};return d}return{animateChanges:o,setActive:a,setAnimateFunction:s,getState:()=>n,reset:()=>{n=Mh(),r=!0}}}function YR(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!I0(t,e):!1}function zn(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Mh(){return{animate:zn(!0),whileInView:zn(),whileHover:zn(),whileTap:zn(),whileDrag:zn(),whileFocus:zn(),exit:zn()}}class QR extends Un{constructor(t){super(t),t.animationState||(t.animationState=GR(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Wa(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let XR=0;class qR extends Un{constructor(){super(...arguments),this.id=XR++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const JR={animation:{Feature:QR},exit:{Feature:qR}},_h=(e,t)=>Math.abs(e-t);function ZR(e,t){const n=_h(e.x,t.x),r=_h(e.y,t.y);return Math.sqrt(n**2+r**2)}class gx{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:s=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const d=zl(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,v=ZR(d.offset,{x:0,y:0})>=3;if(!p&&!v)return;const{point:y}=d,{timestamp:w}=Re;this.history.push({...y,timestamp:w});const{onStart:S,onMove:x}=this.handlers;p||(S&&S(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),x&&x(this.lastMoveEvent,d)},this.handlePointerMove=(d,p)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=Ul(p,this.transformPagePoint),G.update(this.updatePoint,!0)},this.handlePointerUp=(d,p)=>{this.end();const{onEnd:v,onSessionEnd:y,resumeAnimation:w}=this.handlers;if(this.dragSnapToOrigin&&w&&w(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const S=zl(d.type==="pointercancel"?this.lastMoveEventInfo:Ul(p,this.transformPagePoint),this.history);this.startEvent&&v&&v(d,S),y&&y(d,S)},!A0(t))return;this.dragSnapToOrigin=s,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const o=Ga(t),a=Ul(o,this.transformPagePoint),{point:l}=a,{timestamp:u}=Re;this.history=[{...l,timestamp:u}];const{onSessionStart:c}=n;c&&c(t,zl(a,this.history)),this.removeListeners=Xt(Qt(this.contextWindow,"pointermove",this.handlePointerMove),Qt(this.contextWindow,"pointerup",this.handlePointerUp),Qt(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),rn(this.updatePoint)}}function Ul(e,t){return t?{point:t(e.point)}:e}function Ih(e,t){return{x:e.x-t.x,y:e.y-t.y}}function zl({point:e},t){return{point:e,delta:Ih(e,yx(t)),offset:Ih(e,eN(t)),velocity:tN(t,.1)}}function eN(e){return e[0]}function yx(e){return e[e.length-1]}function tN(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=yx(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>An(t)));)n--;if(!r)return{x:0,y:0};const s=qt(i.timestamp-r.timestamp);if(s===0)return{x:0,y:0};const o={x:(i.x-r.x)/s,y:(i.y-r.y)/s};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function st(e){return e.max-e.min}function gc(e,t=0,n=.01){return Math.abs(e-t)<=n}function Fh(e,t,n,r=.5){e.origin=r,e.originPoint=oe(t.min,t.max,e.origin),e.scale=st(n)/st(t),(gc(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=oe(n.min,n.max,e.origin)-e.originPoint,(gc(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Xi(e,t,n,r){Fh(e.x,t.x,n.x,r?r.originX:void 0),Fh(e.y,t.y,n.y,r?r.originY:void 0)}function Vh(e,t,n){e.min=n.min+t.min,e.max=e.min+st(t)}function nN(e,t,n){Vh(e.x,t.x,n.x),Vh(e.y,t.y,n.y)}function Bh(e,t,n){e.min=t.min-n.min,e.max=e.min+st(t)}function qi(e,t,n){Bh(e.x,t.x,n.x),Bh(e.y,t.y,n.y)}function rN(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?oe(n,e,r.max):Math.min(e,n)),e}function $h(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function iN(e,{top:t,left:n,bottom:r,right:i}){return{x:$h(e.x,n,i),y:$h(e.y,t,r)}}function Uh(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=Ss(t.min,t.max-r,e.min):r>i&&(n=Ss(e.min,e.max-i,t.min)),_n(0,1,n)}function aN(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const yc=.35;function lN(e=yc){return e===!1?e=0:e===!0&&(e=yc),{x:zh(e,"left","right"),y:zh(e,"top","bottom")}}function zh(e,t,n){return{min:Hh(e,t),max:Hh(e,n)}}function Hh(e,t){return typeof e=="number"?e:e[t]||0}const Wh=()=>({translate:0,scale:1,origin:0,originPoint:0}),Vr=()=>({x:Wh(),y:Wh()}),Kh=()=>({min:0,max:0}),ce=()=>({x:Kh(),y:Kh()});function ut(e){return[e("x"),e("y")]}function vx({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function uN({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function cN(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Hl(e){return e===void 0||e===1}function vc({scale:e,scaleX:t,scaleY:n}){return!Hl(e)||!Hl(t)||!Hl(n)}function Gn(e){return vc(e)||xx(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function xx(e){return Gh(e.x)||Gh(e.y)}function Gh(e){return e&&e!=="0%"}function da(e,t,n){const r=e-n,i=t*r;return n+i}function Yh(e,t,n,r,i){return i!==void 0&&(e=da(e,i,r)),da(e,n,r)+t}function xc(e,t=0,n=1,r,i){e.min=Yh(e.min,t,n,r,i),e.max=Yh(e.max,t,n,r,i)}function wx(e,{x:t,y:n}){xc(e.x,t.translate,t.scale,t.originPoint),xc(e.y,n.translate,n.scale,n.originPoint)}function dN(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let s,o;for(let a=0;a1.0000000000001||e<.999999999999?e:1}function yn(e,t){e.min=e.min+t,e.max=e.max+t}function Xh(e,t,[n,r,i]){const s=t[i]!==void 0?t[i]:.5,o=oe(e.min,e.max,s);xc(e,t[n],t[r],o,t.scale)}const fN=["x","scaleX","originX"],pN=["y","scaleY","originY"];function Br(e,t){Xh(e.x,t,fN),Xh(e.y,t,pN)}function Sx(e,t){return vx(cN(e.getBoundingClientRect(),t))}function hN(e,t,n){const r=Sx(e,n),{scroll:i}=t;return i&&(yn(r.x,i.offset.x),yn(r.y,i.offset.y)),r}const Cx=({current:e})=>e?e.ownerDocument.defaultView:null,mN=new WeakMap;class gN{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=ce(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=c=>{const{dragSnapToOrigin:d}=this.getProps();d?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Ga(c,"page").point)},s=(c,d)=>{const{drag:p,dragPropagation:v,onDragStart:y}=this.getProps();if(p&&!v&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=D0(p),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),ut(S=>{let x=this.getAxisMotionValue(S).get()||0;if(Ft.test(x)){const{projection:m}=this.visualElement;if(m&&m.layout){const g=m.layout.layoutBox[S];g&&(x=st(g)*(parseFloat(x)/100))}}this.originPoint[S]=x}),y&&G.postRender(()=>y(c,d));const{animationState:w}=this.visualElement;w&&w.setActive("whileDrag",!0)},o=(c,d)=>{const{dragPropagation:p,dragDirectionLock:v,onDirectionLock:y,onDrag:w}=this.getProps();if(!p&&!this.openGlobalLock)return;const{offset:S}=d;if(v&&this.currentDirection===null){this.currentDirection=yN(S),this.currentDirection!==null&&y&&y(this.currentDirection);return}this.updateAxis("x",d.point,S),this.updateAxis("y",d.point,S),this.visualElement.render(),w&&w(c,d)},a=(c,d)=>this.stop(c,d),l=()=>ut(c=>{var d;return this.getAnimationState(c)==="paused"&&((d=this.getAxisMotionValue(c).animation)===null||d===void 0?void 0:d.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new gx(t,{onSessionStart:i,onStart:s,onMove:o,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:Cx(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:s}=this.getProps();s&&G.postRender(()=>s(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!ao(t,i,this.currentDirection))return;const s=this.getAxisMotionValue(t);let o=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(o=rN(o,this.constraints[t],this.elastic[t])),s.set(o)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,s=this.constraints;n&&Ir(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=iN(i.layoutBox,n):this.constraints=!1,this.elastic=lN(r),s!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&ut(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=aN(i.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Ir(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const s=hN(r,i.root,this.visualElement.getTransformPagePoint());let o=sN(i.layout.layoutBox,s);if(n){const a=n(uN(o));this.hasMutatedConstraints=!!a,a&&(o=vx(a))}return o}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:s,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=ut(c=>{if(!ao(c,n,this.currentDirection))return;let d=l&&l[c]||{};o&&(d={min:0,max:0});const p=i?200:1e6,v=i?40:1e7,y={type:"inertia",velocity:r?t[c]:0,bounceStiffness:p,bounceDamping:v,timeConstant:750,restDelta:1,restSpeed:10,...s,...d};return this.startAxisValueAnimation(c,y)});return Promise.all(u).then(a)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return r.start(uf(t,r,0,n,this.visualElement))}stopAnimation(){ut(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){ut(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){ut(n=>{const{drag:r}=this.getProps();if(!ao(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,s=this.getAxisMotionValue(n);if(i&&i.layout){const{min:o,max:a}=i.layout.layoutBox[n];s.set(t[n]-oe(o,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Ir(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};ut(o=>{const a=this.getAxisMotionValue(o);if(a&&this.constraints!==!1){const l=a.get();i[o]=oN({min:l,max:l},this.constraints[o])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),ut(o=>{if(!ao(o,t,null))return;const a=this.getAxisMotionValue(o),{min:l,max:u}=this.constraints[o];a.set(oe(l,u,i[o]))})}addListeners(){if(!this.visualElement.current)return;mN.set(this.visualElement,this);const t=this.visualElement.current,n=Qt(t,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();Ir(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,s=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),G.read(r);const o=Kt(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(ut(c=>{const d=this.getAxisMotionValue(c);d&&(this.originPoint[c]+=l[c].translate,d.set(d.get()+l[c].translate))}),this.visualElement.render())});return()=>{o(),n(),s(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:s=!1,dragElastic:o=yc,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:s,dragElastic:o,dragMomentum:a}}}function ao(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function yN(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class vN extends Un{constructor(t){super(t),this.removeGroupControls=Ie,this.removeListeners=Ie,this.controls=new gN(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Ie}unmount(){this.removeGroupControls(),this.removeListeners()}}const qh=e=>(t,n)=>{e&&G.postRender(()=>e(t,n))};class xN extends Un{constructor(){super(...arguments),this.removePointerDownListener=Ie}onPointerDown(t){this.session=new gx(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Cx(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:qh(t),onStart:qh(n),onMove:r,onEnd:(s,o)=>{delete this.session,i&&G.postRender(()=>i(s,o))}}}mount(){this.removePointerDownListener=Qt(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function wN(){const e=h.useContext(Fd);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,i=h.useId();return h.useEffect(()=>r(i),[]),!t&&n?[!1,()=>n&&n(i)]:[!0]}const jo={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Jh(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Ni={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(M.test(e))e=parseFloat(e);else return e;const n=Jh(e,t.target.x),r=Jh(e,t.target.y);return`${n}% ${r}%`}},SN={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=In.parse(e);if(i.length>5)return r;const s=In.createTransformer(e),o=typeof i[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;i[0+o]/=a,i[1+o]/=l;const u=oe(a,l,.5);return typeof i[2+o]=="number"&&(i[2+o]/=u),typeof i[3+o]=="number"&&(i[3+o]/=u),s(i)}};class CN extends h.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:s}=t;xj(EN),s&&(n.group&&n.group.add(s),r&&r.register&&i&&r.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),jo.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:s}=this.props,o=r.projection;return o&&(o.isPresent=s,i||t.layoutDependency!==n||n===void 0?o.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?o.promote():o.relegate()||G.postRender(()=>{const a=o.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),$d.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Ex(e){const[t,n]=wN(),r=h.useContext(x0);return f.jsx(CN,{...e,layoutGroup:r,switchLayoutGroup:h.useContext(g0),isPresent:t,safeToRemove:n})}const EN={borderRadius:{...Ni,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Ni,borderTopRightRadius:Ni,borderBottomLeftRadius:Ni,borderBottomRightRadius:Ni,boxShadow:SN},Tx=["TopLeft","TopRight","BottomLeft","BottomRight"],TN=Tx.length,Zh=e=>typeof e=="string"?parseFloat(e):e,em=e=>typeof e=="number"||M.test(e);function kN(e,t,n,r,i,s){i?(e.opacity=oe(0,n.opacity!==void 0?n.opacity:1,jN(r)),e.opacityExit=oe(t.opacity!==void 0?t.opacity:1,0,PN(r))):s&&(e.opacity=oe(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let o=0;ort?1:n(Ss(e,t,r))}function nm(e,t){e.min=t.min,e.max=t.max}function lt(e,t){nm(e.x,t.x),nm(e.y,t.y)}function rm(e,t,n,r,i){return e-=t,e=da(e,1/n,r),i!==void 0&&(e=da(e,1/i,r)),e}function RN(e,t=0,n=1,r=.5,i,s=e,o=e){if(Ft.test(t)&&(t=parseFloat(t),t=oe(o.min,o.max,t/100)-o.min),typeof t!="number")return;let a=oe(s.min,s.max,r);e===s&&(a-=t),e.min=rm(e.min,t,n,a,i),e.max=rm(e.max,t,n,a,i)}function im(e,t,[n,r,i],s,o){RN(e,t[n],t[r],t[i],t.scale,s,o)}const NN=["x","scaleX","originX"],ON=["y","scaleY","originY"];function sm(e,t,n,r){im(e.x,t,NN,n?n.x:void 0,r?r.x:void 0),im(e.y,t,ON,n?n.y:void 0,r?r.y:void 0)}function om(e){return e.translate===0&&e.scale===1}function jx(e){return om(e.x)&&om(e.y)}function LN(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function Px(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function am(e){return st(e.x)/st(e.y)}class AN{constructor(){this.members=[]}add(t){cf(this.members,t),t.scheduleRender()}remove(t){if(df(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const s=this.members[i];if(s.isPresent!==!1){r=s;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function lm(e,t,n){let r="";const i=e.x.translate/t.x,s=e.y.translate/t.y,o=(n==null?void 0:n.z)||0;if((i||s||o)&&(r=`translate3d(${i}px, ${s}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:u,rotate:c,rotateX:d,rotateY:p,skewX:v,skewY:y}=n;u&&(r=`perspective(${u}px) ${r}`),c&&(r+=`rotate(${c}deg) `),d&&(r+=`rotateX(${d}deg) `),p&&(r+=`rotateY(${p}deg) `),v&&(r+=`skewX(${v}deg) `),y&&(r+=`skewY(${y}deg) `)}const a=e.x.scale*t.x,l=e.y.scale*t.y;return(a!==1||l!==1)&&(r+=`scale(${a}, ${l})`),r||"none"}const bN=(e,t)=>e.depth-t.depth;class DN{constructor(){this.children=[],this.isDirty=!1}add(t){cf(this.children,t),this.isDirty=!0}remove(t){df(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(bN),this.isDirty=!1,this.children.forEach(t)}}function MN(e,t){const n=bn.now(),r=({timestamp:i})=>{const s=i-n;s>=t&&(rn(r),e(s-t))};return G.read(r,!0),()=>rn(r)}function _N(e){window.MotionDebug&&window.MotionDebug.record(e)}function IN(e){return e instanceof SVGElement&&e.tagName!=="svg"}function FN(e,t,n){const r=_e(e)?e:Cs(e);return r.start(uf("",r,t,n)),r.animation}const Wl=["","X","Y","Z"],VN={visibility:"hidden"},um=1e3;let BN=0;const Yn={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function Kl(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Rx(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return!1;const{visualElement:t}=e.options;return t?hx(t)?!0:e.parent&&!e.parent.hasCheckedOptimisedAppear?Rx(e.parent):!1:!1}function Nx({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(o={},a=t==null?void 0:t()){this.id=BN++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Yn.totalNodes=Yn.resolvedTargetDeltas=Yn.recalculatedProjection=0,this.nodes.forEach(zN),this.nodes.forEach(YN),this.nodes.forEach(QN),this.nodes.forEach(HN),_N(Yn)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;lthis.root.updateBlockedByResize=!1;e(o,()=>{this.root.updateBlockedByResize=!0,d&&d(),d=MN(p,250),jo.hasAnimatedSinceResize&&(jo.hasAnimatedSinceResize=!1,this.nodes.forEach(dm))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&c&&(l||u)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:p,hasRelativeTargetChanged:v,layout:y})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const w=this.options.transition||c.getDefaultTransition()||eO,{onLayoutAnimationStart:S,onLayoutAnimationComplete:x}=c.getProps(),m=!this.targetLayout||!Px(this.targetLayout,y)||v,g=!p&&v;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||g||p&&(m||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,g);const C={...Zd(w,"layout"),onPlay:S,onComplete:x};(c.shouldReduceMotion||this.options.layoutRoot)&&(C.delay=0,C.type=!1),this.startAnimation(C)}else p||dm(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=y})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,rn(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(XN),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.HandoffCancelAllAnimations&&Rx(this)&&window.HandoffCancelAllAnimations(),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l{const T=C/1e3;fm(d.x,o.x,T),fm(d.y,o.y,T),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(qi(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox),JN(this.relativeTarget,this.relativeTargetOrigin,p,T),g&&LN(this.relativeTarget,g)&&(this.isProjectionDirty=!1),g||(g=ce()),lt(g,this.relativeTarget)),w&&(this.animationValues=c,kN(c,u,this.latestValues,T,m,x)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=T},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(rn(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=G.update(()=>{jo.hasAnimatedSinceResize=!0,this.currentAnimation=FN(0,um,{...o,onUpdate:a=>{this.mixTargetDelta(a),o.onUpdate&&o.onUpdate(a)},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(um),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:a,target:l,layout:u,latestValues:c}=o;if(!(!a||!l||!u)){if(this!==o&&this.layout&&u&&Ox(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||ce();const d=st(this.layout.layoutBox.x);l.x.min=o.target.x.min,l.x.max=l.x.min+d;const p=st(this.layout.layoutBox.y);l.y.min=o.target.y.min,l.y.max=l.y.min+p}lt(a,l),Br(a,c),Xi(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new AN),this.sharedNodes.get(o).add(a);const u=a.options.initialPromotionConfig;a.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(a):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var o;const{layoutId:a}=this.options;return a?((o=this.getStack())===null||o===void 0?void 0:o.lead)||this:this}getPrevLead(){var o;const{layoutId:a}=this.options;return a?(o=this.getStack())===null||o===void 0?void 0:o.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:a,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),o&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let a=!1;const{latestValues:l}=o;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const u={};l.z&&Kl("z",o,u,this.animationValues);for(let c=0;c{var a;return(a=o.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(cm),this.root.sharedNodes.clear()}}}function $N(e){e.updateLayout()}function UN(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:s}=e.options,o=n.source!==e.layout.source;s==="size"?ut(d=>{const p=o?n.measuredBox[d]:n.layoutBox[d],v=st(p);p.min=r[d].min,p.max=p.min+v}):Ox(s,n.layoutBox,r)&&ut(d=>{const p=o?n.measuredBox[d]:n.layoutBox[d],v=st(r[d]);p.max=p.min+v,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+v)});const a=Vr();Xi(a,r,n.layoutBox);const l=Vr();o?Xi(l,e.applyTransform(i,!0),n.measuredBox):Xi(l,r,n.layoutBox);const u=!jx(a);let c=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:p,layout:v}=d;if(p&&v){const y=ce();qi(y,n.layoutBox,p.layoutBox);const w=ce();qi(w,r,v.layoutBox),Px(y,w)||(c=!0),d.options.layoutRoot&&(e.relativeTarget=w,e.relativeTargetOrigin=y,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:u,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function zN(e){Yn.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function HN(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function WN(e){e.clearSnapshot()}function cm(e){e.clearMeasurements()}function KN(e){e.isLayoutDirty=!1}function GN(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function dm(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function YN(e){e.resolveTargetDelta()}function QN(e){e.calcProjection()}function XN(e){e.resetSkewAndRotation()}function qN(e){e.removeLeadSnapshot()}function fm(e,t,n){e.translate=oe(t.translate,0,n),e.scale=oe(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function pm(e,t,n,r){e.min=oe(t.min,n.min,r),e.max=oe(t.max,n.max,r)}function JN(e,t,n,r){pm(e.x,t.x,n.x,r),pm(e.y,t.y,n.y,r)}function ZN(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const eO={duration:.45,ease:[.4,0,.1,1]},hm=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),mm=hm("applewebkit/")&&!hm("chrome/")?Math.round:Ie;function gm(e){e.min=mm(e.min),e.max=mm(e.max)}function tO(e){gm(e.x),gm(e.y)}function Ox(e,t,n){return e==="position"||e==="preserve-aspect"&&!gc(am(t),am(n),.2)}const nO=Nx({attachResizeListener:(e,t)=>Kt(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Gl={current:void 0},Lx=Nx({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Gl.current){const e=new nO({});e.mount(window),e.setOptions({layoutScroll:!0}),Gl.current=e}return Gl.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),rO={pan:{Feature:xN},drag:{Feature:vN,ProjectionNode:Lx,MeasureLayout:Ex}},wc={current:null},Ax={current:!1};function iO(){if(Ax.current=!0,!!Vd)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>wc.current=e.matches;e.addListener(t),t()}else wc.current=!1}function sO(e,t,n){const{willChange:r}=t;for(const i in t){const s=t[i],o=n[i];if(_e(s))e.addValue(i,s),ca(r)&&r.add(i);else if(_e(o))e.addValue(i,Cs(s,{owner:e})),ca(r)&&r.remove(i);else if(o!==s)if(e.hasValue(i)){const a=e.getValue(i);a.liveStyle===!0?a.jump(s):a.hasAnimated||a.set(s)}else{const a=e.getStaticValue(i);e.addValue(i,Cs(a!==void 0?a:s,{owner:e}))}}for(const i in n)t[i]===void 0&&e.removeValue(i);return t}const ym=new WeakMap,oO=[...U0,De,In],aO=e=>oO.find($0(e)),vm=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],lO=zd.length;class uO{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:s,visualState:o},a={}){this.resolveKeyframes=(p,v,y,w)=>new this.KeyframeResolver(p,v,y,w,this),this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=ef,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>G.render(this.render,!1,!0);const{latestValues:l,renderState:u}=o;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=u,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=a,this.blockInitialAnimation=!!s,this.isControllingVariants=Ka(n),this.isVariantNode=v0(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:c,...d}=this.scrapeMotionValuesFromProps(n,{},this);for(const p in d){const v=d[p];l[p]!==void 0&&_e(v)&&(v.set(l[p],!1),ca(c)&&c.add(p))}}mount(t){this.current=t,ym.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),Ax.current||iO(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:wc.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){ym.delete(this.current),this.projection&&this.projection.unmount(),rn(this.notifyUpdate),rn(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){const r=gr.has(t),i=n.on("change",o=>{this.latestValues[t]=o,this.props.onUpdate&&G.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),s=n.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{i(),s(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in ni){const n=ni[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const s=this.features[t];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):ce()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;rn.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Cs(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let i=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return i!=null&&(typeof i=="string"&&(V0(i)||F0(i))?i=parseFloat(i):!aO(i)&&In.test(n)&&(i=X0(t,n)),this.setBaseTarget(t,_e(i)?i.get():i)),_e(i)?i.get():i}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let i;if(typeof r=="string"||typeof r=="object"){const o=Jd(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);o&&(i=o[t])}if(r&&i!==void 0)return i;const s=this.getBaseTargetFromProps(this.props,t);return s!==void 0&&!_e(s)?s:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new ff),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class bx extends uO{constructor(){super(...arguments),this.KeyframeResolver=q0}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}}function cO(e){return window.getComputedStyle(e)}class dO extends bx{constructor(){super(...arguments),this.type="html"}readValueFromInstance(t,n){if(gr.has(n)){const r=nf(n);return r&&r.default||0}else{const r=cO(t),i=(C0(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Sx(t,n)}build(t,n,r,i){Gd(t,n,r,i.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return qd(t,n,r)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;_e(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}renderInstance(t,n,r,i){P0(t,n,r,i)}}class fO extends bx{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(gr.has(n)){const r=nf(n);return r&&r.default||0}return n=R0.has(n)?n:Bd(n),t.getAttribute(n)}measureInstanceViewportBox(){return ce()}scrapeMotionValuesFromProps(t,n,r){return O0(t,n,r)}build(t,n,r,i){Qd(t,n,r,this.isSVGTag,i.transformTemplate)}renderInstance(t,n,r,i){N0(t,n,r,i)}mount(t){this.isSVGTag=Xd(t.tagName),super.mount(t)}}const pO=(e,t)=>Hd(e)?new fO(t,{enableHardwareAcceleration:!1}):new dO(t,{allowProjection:e!==h.Fragment,enableHardwareAcceleration:!0}),hO={layout:{ProjectionNode:Lx,MeasureLayout:Ex}},mO={...JR,...lP,...rO,...hO},Nt=yj((e,t)=>Qj(e,t,mO,pO)),Dx=({triggerFeedback:e})=>{const[t,n]=h.useState(!0),[r,i]=h.useState(!0),[s,o]=h.useState(!1),[a,l]=h.useState(""),[u,c]=h.useState(""),[d,p]=h.useState(!1),[v,y]=h.useState(""),{register:w}=an();h.useEffect(()=>{lh(u)&&ah(a)&&u===v?o(!0):o(!1)},[a,u,v]);const S=C=>Gi(C,l),x=C=>Gi(C,c),m=C=>Gi(C,y),g=async C=>{p(!0);const T=[];if(C.preventDefault(),s)try{const E=await w({username:a,password:u});E.status===201?T.push({title:"Registration Successful",message:E.data.msg,type:"success"}):(T.push({title:"Registration Failed",message:E.data.msg,type:"error"}),p(!1))}catch(E){console.log(E.message),p(!1)}else{C.stopPropagation();const E=[];u!==v&&E.push("passwords_not_matching"),lh(u)||E.push("invalid_password"),ah(a)||E.push("invalid_username");for(const P of E)for(const j of Hk)j.name===P&&T.push(j.info)}e(T)};return f.jsx(un,{className:"pt-5 mt-5 px-4 align-middle col-12 col-sm-10 col-md-8 col-lg-6 col-xl-5",children:f.jsxs(Nt.div,{initial:{opacity:0,x:-100,scale:.95},animate:{opacity:1,x:0,scale:1},transition:{duration:.8,delay:.5,ease:[0,.71,.2,1.01]},children:[f.jsxs(ti,{gap:1,children:[f.jsx("h1",{className:"display-3 mt-5 pt-5","aria-label":"title",children:"Create an account"}),f.jsx("p",{"aria-label":"subtitle",children:"Enter a username and password"})]}),f.jsxs(O,{noValidate:!0,validated:s,onSubmit:g,children:[f.jsxs(O.Group,{controlId:"form",children:[f.jsx(nr,{controlId:"username-label",label:"Your username",children:f.jsx(O.Control,{type:"text",placeholder:"Your username",className:"mb-2",title:"Type your username here.","aria-label":"username-input",onChange:S})}),f.jsxs(xe,{hasValidation:!0,className:"mb-2",children:[f.jsx(nr,{controlId:"password-label",label:"Your password",children:f.jsx(O.Control,{type:t?"password":"text",placeholder:"Your password",title:"Type your password here.","aria-label":"password-input",onChange:x})}),f.jsx(B,{variant:"outline-secondary",onClick:()=>n(!t),title:"Click here to reveal your password.","aria-label":"hide-password-button",children:f.jsx(Q,{src:t?"/simplifica/eye.svg":"/simplifica/eye-slash.svg",alt:"Icon of an eye."})})]}),f.jsxs(xe,{hasValidation:!0,className:"mb-2",children:[f.jsx(nr,{controlId:"confirm-password-label",label:"Confirm your password",children:f.jsx(O.Control,{type:r?"password":"text",placeholder:"Confirm your password","aria-label":"confirm-password-input",title:"Type your password again here.",onChange:m})}),f.jsx(B,{variant:"outline-secondary",onClick:()=>i(!r),title:"Click here to reveal your password.","aria-label":"hide-confirm-password-button",children:f.jsx(Q,{src:r?"/simplifica/eye.svg":"/simplifica/eye-slash.svg",alt:"Icon of an eye."})})]})]}),d?f.jsxs(B,{variant:"dark","aria-label":"get-started-button",title:"Signing you up...",className:"w-100",disabled:!0,children:["Creating your account...",f.jsx(mr,{as:"span",animation:"border",className:"mx-3",size:"sm",role:"status","aria-hidden":"true"})]}):f.jsx(B,{type:"submit",variant:"dark",className:"w-100","aria-label":"get-started-button",title:"Click here to register your account.",children:"Get Started"})]})]})})};Dx.propTypes={triggerFeedback:$.func.isRequired};const Mx=({triggerFeedback:e})=>{const[t,n]=h.useState(""),[r,i]=h.useState(""),[s,o]=h.useState(!0),[a,l]=h.useState(!1),{signIn:u}=an(),c=v=>Gi(v,n),d=v=>Gi(v,i),p=async v=>{v.preventDefault(),l(!0);const y=[],w={username:t,password:r};try{const S=await u(w);S.status===200?y.push({type:"success",title:"Successfully Signed In",message:S.data.msg}):(y.push({type:"error",title:"Unsuccessful",message:S.data.msg}),l(!1))}catch(S){y.push({type:"error",title:"Error",message:S.message}),l(!1)}e(y)};return f.jsx(un,{className:"pt-5 mt-5 px-4 align-middle col-12 col-sm-10 col-md-8 col-lg-6 col-xl-5",children:f.jsxs(Nt.div,{initial:{opacity:0,x:-100,scale:.95},animate:{opacity:1,x:0,scale:1},transition:{duration:.8,delay:.5,ease:[0,.71,.2,1.01]},children:[f.jsx(ti,{gap:1,className:"mb-3",children:f.jsx("h1",{className:"display-3 mt-5 pt-5","aria-label":"title",children:"Welcome back"})}),f.jsxs(O,{noValidate:!0,onSubmit:p,children:[f.jsxs(O.Group,{controlId:"form",children:[f.jsx(nr,{controlId:"username-label",label:"Your username",children:f.jsx(O.Control,{type:"text",placeholder:"Your username",className:"mb-2",title:"Type your username here.","aria-label":"username-input",onChange:c})}),f.jsxs(xe,{className:"mb-2",children:[f.jsx(nr,{controlId:"password-label",label:"Your password",children:f.jsx(O.Control,{type:s?"password":"text",placeholder:"Your password",title:"Type your password here.","aria-label":"password-input",onChange:d})}),f.jsx(B,{variant:"outline-secondary",onClick:()=>o(!s),title:"Click here to reveal your password.","aria-label":"hide-password-button",children:f.jsx(Q,{src:s?"/simplifica/eye.svg":"/simplifica/eye-slash.svg",alt:"Icon of an eye."})})]})]}),a?f.jsxs(B,{variant:"dark","aria-label":"sign-in-button",title:"Signing in...",className:"w-100",disabled:!0,children:["Signing in...",f.jsx(mr,{as:"span",animation:"border",className:"mx-3",size:"sm",role:"status","aria-hidden":"true"})]}):f.jsx(B,{type:"submit",variant:"dark",className:"w-100","aria-label":"sign-in-button",title:"Click here to sign into your account.",children:"Sign In"})]})]})})};Mx.propTypes={triggerFeedback:$.func};var bt,Dt;class Xa{constructor(t,n){Vs(this,bt);Vs(this,Dt);Bs(this,bt,he.create({baseURL:t})),Bs(this,Dt,n)}getInstance(){return Se(this,bt)}getUserId(){return Se(this,Dt)}async getLessonPlans(){try{return await Se(this,bt).get(`/${Se(this,Dt)}/lesson-plans`)}catch(t){return t.message}}async getOneLessonPlan(t){try{return await Se(this,bt).get(`/${Se(this,Dt)}/lesson-plans/${t}`)}catch(n){return n.message}}async createLessonPlan(t){try{return await Se(this,bt).post(`/${Se(this,Dt)}/lesson-plans`,{lessonPlan:t})}catch(n){return n.message}}async updateLessonPlan(t,n){try{return await Se(this,bt).put(`/${Se(this,Dt)}/lesson-plans/${t}`,{newLessonPlan:n})}catch(r){return r.message}}async deleteLessonPlan(t){try{return await Se(this,bt).delete(`/${Se(this,Dt)}/lesson-plans/${t}`)}catch(n){return n.message}}}bt=new WeakMap,Dt=new WeakMap;const gO=async(e,t)=>{try{const n=await e.current.getLessonPlans();t(n.data.lessonPlans)}catch(n){console.log(n.message)}},_x=async(e,t,n)=>{try{const r=await e.current.getOneLessonPlan(t);n(r.data.lessonPlan)}catch(r){console.log(r.message)}},ct=({message:e=""})=>f.jsx(un,{className:"pt-5 mt-5 px-4 h-100 align-middle",children:f.jsxs(ti,{gap:1,className:"col-12 col-sm-10 col-md-8 col-lg-6 col-xl-5",children:[f.jsx("h1",{className:"display-1 mt-5 pt-5 text-danger","aria-label":"title",children:"Uh-oh..."}),f.jsx("p",{"aria-label":"message",children:e.trim()!==""?e:"An unexpected error occurred. Click below to return to the homepage or see the console for more information."}),f.jsx(Et,{to:"/",children:f.jsx(B,{variant:"dark",className:"w-100",title:"Return to home page.","aria-label":"back-button",children:"Back"})})]})});ct.propTypes={message:$.string};const _s=h.forwardRef(({bsPrefix:e,className:t,as:n="div",...r},i)=>{const s=D(e,"row"),o=jd(),a=Pd(),l=`${s}-cols`,u=[];return o.forEach(c=>{const d=r[c];delete r[c];let p;d!=null&&typeof d=="object"?{cols:p}=d:p=d;const v=c!==a?`-${c}`:"";p!=null&&u.push(`${l}${v}-${p}`)}),f.jsx(n,{ref:i,...r,className:A(t,s,...u)})});_s.displayName="Row";const yO=h.forwardRef(({bsPrefix:e,className:t,striped:n,bordered:r,borderless:i,hover:s,size:o,variant:a,responsive:l,...u},c)=>{const d=D(e,"table"),p=A(t,d,a&&`${d}-${a}`,o&&`${d}-${o}`,n&&`${d}-${typeof n=="string"?`striped-${n}`:"striped"}`,r&&`${d}-bordered`,i&&`${d}-borderless`,s&&`${d}-hover`),v=f.jsx("table",{...u,className:p,ref:c});if(l){let y=`${d}-responsive`;return typeof l=="string"&&(y=`${y}-${l}`),f.jsx("div",{className:y,children:v})}return v});var vO={BASE_URL:"/simplifica/",MODE:"prod",DEV:!1,PROD:!0,SSR:!1};const xO=()=>{const[e,t]=h.useState([]),[n,r]=h.useState(!1),i=h.useRef(),{user:s}=an(),{userId:o}=La();return h.useEffect(()=>{s&&(s._id===o?r(!0):r(!1)),n&&!i.current&&(i.current=new Xa(vO.VITE_API_ENDPOINT,o),gO(i,t))},[n,s,o]),f.jsx(f.Fragment,{children:n?f.jsx(Nt.div,{initial:{opacity:0,x:-100,scale:.95},animate:{opacity:1,x:0,scale:1},transition:{duration:.8,delay:.5,ease:[0,.71,.2,1.01]},children:f.jsxs(un,{className:"pt-5 mt-3 mt-lg-5 mx-lg-5 px-4 align-middle",children:[f.jsxs(_s,{className:"mb-3 mx-2 mt-3 mt-lg-5 mx-lg-5 pt-5 align-items-center",children:[f.jsx(Pt,{xs:8,md:10,children:f.jsx("h1",{className:"display-3","aria-label":"title",children:"My Lesson Plans"})}),f.jsx(Pt,{xs:{span:2,offset:1},md:1,children:f.jsx(Et,{to:`/${o}/create`,children:f.jsx(B,{variant:"outline-success",children:f.jsx(Q,{src:"/simplifica/plus.svg"})})})})]}),f.jsxs(yO,{striped:!0,className:"mx-1 mx-lg-5",children:[f.jsx("thead",{children:f.jsxs("tr",{children:[f.jsx("th",{children:"#"}),f.jsx("th",{children:"Topic"}),f.jsx("th",{children:"Date"})]})}),f.jsx("tbody",{children:e!==void 0&&e.map((a,l)=>f.jsxs("tr",{children:[f.jsx("td",{children:f.jsx(Et,{to:`/${o}/view/${a._id}`,children:l+1})}),f.jsx("td",{children:f.jsx(Et,{to:`/${o}/view/${a._id}`,children:a.topic})}),f.jsx("td",{children:f.jsx(Et,{to:`/${o}/view/${a._id}`,children:new Date(a.date).toLocaleDateString("en-GB")})})]},l))})]})]})}):f.jsx(Nt.div,{initial:{opacity:0,x:-100,scale:.95},animate:{opacity:1,x:0,scale:1},transition:{duration:.8,delay:.5,ease:[0,.71,.2,1.01]},children:f.jsx(ct,{message:"You are trying to access someone else's profile. To access their profile, you must be signed in with their account."})})})},wO=()=>f.jsxs(un,{className:"pt-5 mt-5 px-4 align-middle",children:[f.jsxs(ti,{gap:1,children:[f.jsxs("h1",{className:"display-1 mt-5 pt-5","aria-label":"title",children:["Simplifica",f.jsx(Nt.span,{initial:{opacity:0,scale:0},animate:{opacity:1,scale:1},transition:{type:"spring",stiffness:260,damping:20},children:"."})]}),f.jsx("p",{"aria-label":"subtitle",children:"Who said planning lessons couldn't be quick?"})]}),f.jsxs(ti,{gap:2,className:"col-12 col-sm-10 col-md-8 col-lg-6 col-xl-5",children:[f.jsx(Et,{to:"/register",children:f.jsx(B,{variant:"dark","aria-label":"sign-up-button",className:"w-100",title:"Register for an account.",children:"Sign Up (it's free!)"})}),f.jsx(Et,{to:"/login",children:f.jsx(B,{variant:"outline-secondary","aria-label":"sign-in-button",className:"w-100",title:"Sign in to an account.",children:"Sign In"})})]})]}),SO="",CO="",EO={objective:"",materials:[],connection:""},TO={real_life_application:"",feedback_method:"",activities:[]},kO={learner_interaction:"",success_criteria:[],activities:[]},pf={topic:SO,date:CO,presentation:EO,practice:TO,production:kO};var lo;function xm(e){if((!lo&&lo!==0||e)&&fi){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),lo=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return lo}function jO(){return h.useState(null)}const Ix=h.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=D(t,"modal-body"),f.jsx(n,{ref:i,className:A(e,t),...r})));Ix.displayName="ModalBody";const hf=h.forwardRef(({bsPrefix:e,className:t,contentClassName:n,centered:r,size:i,fullscreen:s,children:o,scrollable:a,...l},u)=>{e=D(e,"modal");const c=`${e}-dialog`,d=typeof s=="string"?`${e}-fullscreen-${s}`:`${e}-fullscreen`;return f.jsx("div",{...l,ref:u,className:A(c,t,i&&`${e}-${i}`,r&&`${c}-centered`,a&&`${c}-scrollable`,s&&d),children:f.jsx("div",{className:A(`${e}-content`,n),children:o})})});hf.displayName="ModalDialog";const Fx=h.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=D(t,"modal-footer"),f.jsx(n,{ref:i,className:A(e,t),...r})));Fx.displayName="ModalFooter";const Vx=h.forwardRef(({bsPrefix:e,className:t,closeLabel:n="Close",closeButton:r=!1,...i},s)=>(e=D(e,"modal-header"),f.jsx(Fv,{ref:s,...i,className:A(t,e),closeLabel:n,closeButton:r})));Vx.displayName="ModalHeader";const PO=$a("h4"),Bx=h.forwardRef(({className:e,bsPrefix:t,as:n=PO,...r},i)=>(t=D(t,"modal-title"),f.jsx(n,{ref:i,className:A(e,t),...r})));Bx.displayName="ModalTitle";function RO(e){return f.jsx(hr,{...e,timeout:null})}function NO(e){return f.jsx(hr,{...e,timeout:null})}const $x=h.forwardRef(({bsPrefix:e,className:t,style:n,dialogClassName:r,contentClassName:i,children:s,dialogAs:o=hf,"data-bs-theme":a,"aria-labelledby":l,"aria-describedby":u,"aria-label":c,show:d=!1,animation:p=!0,backdrop:v=!0,keyboard:y=!0,onEscapeKeyDown:w,onShow:S,onHide:x,container:m,autoFocus:g=!0,enforceFocus:C=!0,restoreFocus:T=!0,restoreFocusOptions:E,onEntered:P,onExit:j,onExiting:_,onEnter:b,onEntering:X,onExited:Ve,backdropClassName:Le,manager:et,...te},ne)=>{const[ke,N]=h.useState({}),[I,F]=h.useState(!1),H=h.useRef(!1),q=h.useRef(!1),je=h.useRef(null),[ye,me]=jO(),Be=pi(ne,me),Vt=ze(x),qa=MT();e=D(e,"modal");const gi=h.useMemo(()=>({onHide:Vt}),[Vt]);function yr(){return et||Uv({isRTL:qa})}function Is(W){if(!fi)return;const wr=yr().getScrollbarWidth()>0,xf=W.scrollHeight>Fa(W).documentElement.clientHeight;N({paddingRight:wr&&!xf?xm():void 0,paddingLeft:!wr&&xf?xm():void 0})}const vr=ze(()=>{ye&&Is(ye.dialog)});Od(()=>{nc(window,"resize",vr),je.current==null||je.current()});const yi=()=>{H.current=!0},xr=W=>{H.current&&ye&&W.target===ye.dialog&&(q.current=!0),H.current=!1},re=()=>{F(!0),je.current=Rv(ye.dialog,()=>{F(!1)})},Fs=W=>{W.target===W.currentTarget&&re()},vi=W=>{if(v==="static"){Fs(W);return}if(q.current||W.target!==W.currentTarget){q.current=!1;return}x==null||x()},yw=W=>{y?w==null||w(W):(W.preventDefault(),v==="static"&&re())},vw=(W,wr)=>{W&&Is(W),b==null||b(W,wr)},xw=W=>{je.current==null||je.current(),j==null||j(W)},ww=(W,wr)=>{X==null||X(W,wr),Pv(window,"resize",vr)},Sw=W=>{W&&(W.style.display=""),Ve==null||Ve(W),nc(window,"resize",vr)},Cw=h.useCallback(W=>f.jsx("div",{...W,className:A(`${e}-backdrop`,Le,!p&&"show")}),[p,Le,e]),vf={...n,...ke};vf.display="block";const Ew=W=>f.jsx("div",{role:"dialog",...W,style:vf,className:A(t,e,I&&`${e}-static`,!p&&"show"),onClick:v?vi:void 0,onMouseUp:xr,"data-bs-theme":a,"aria-label":c,"aria-labelledby":l,"aria-describedby":u,children:f.jsx(o,{...te,onMouseDown:yi,className:r,contentClassName:i,children:s})});return f.jsx(Dd.Provider,{value:gi,children:f.jsx(Mv,{show:d,ref:Be,backdrop:v,container:m,keyboard:!0,autoFocus:g,enforceFocus:C,restoreFocus:T,restoreFocusOptions:E,onEscapeKeyDown:yw,onShow:S,onHide:x,onEnter:vw,onEntering:ww,onEntered:P,onExit:xw,onExiting:_,onExited:Sw,manager:yr(),transition:p?RO:void 0,backdropTransition:p?NO:void 0,renderBackdrop:Cw,renderDialog:Ew})})});$x.displayName="Modal";const Oi=Object.assign($x,{Body:Ix,Header:Vx,Title:Bx,Footer:Fx,Dialog:hf,TRANSITION_DURATION:300,BACKDROP_TRANSITION_DURATION:150}),Ux=({show:e,toggleShow:t,handleDeleteConfirmed:n})=>{const r=()=>{t(),n()};return f.jsxs(Oi,{variant:"warning",show:e,onHide:t,children:[f.jsx(Oi.Header,{closeButton:!0,children:f.jsx(Oi.Title,{children:"Warning"})}),f.jsx(Oi.Body,{children:"You are about to delete this lesson plan. Are you sure you want to continue?"}),f.jsxs(Oi.Footer,{children:[f.jsx(B,{variant:"secondary",onClick:t,children:"Cancel"}),f.jsx(B,{variant:"danger",onClick:r,children:"Delete"})]})]})};Ux.propTypes={show:$.bool,toggleShow:$.func,handleDeleteConfirmed:$.func};var wm={exports:{}},Sc={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r){function i(o,a,l,u,c,d){var p=u||"<>",v=d||l;if(a[l]==null)return o?new Error("Required "+c+" `"+v+"` was not specified "+("in `"+p+"`.")):null;for(var y=arguments.length,w=Array(y>6?y-6:0),S=6;S!t,!1);return e}const mf=h.createContext(null);mf.displayName="NavContext";const mi=h.createContext(null),AO=["as","active","eventKey"];function bO(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,s;for(s=0;s=0)&&(n[i]=e[i]);return n}function zx({key:e,onClick:t,active:n,id:r,role:i,disabled:s}){const o=h.useContext(cr),a=h.useContext(mf),l=h.useContext(mi);let u=n;const c={role:i};if(a){!i&&a.role==="tablist"&&(c.role="tab");const d=a.getControllerId(e??null),p=a.getControlledId(e??null);c[Va("event-key")]=e,c.id=d||r,u=n==null&&e!=null?a.activeKey===e:n,(u||!(l!=null&&l.unmountOnExit)&&!(l!=null&&l.mountOnEnter))&&(c["aria-controls"]=p)}return c.role==="tab"&&(c["aria-selected"]=u,u||(c.tabIndex=-1),s&&(c.tabIndex=-1,c["aria-disabled"]=!0)),c.onClick=ze(d=>{s||(t==null||t(d),e!=null&&o&&!d.isPropagationStopped()&&o(e,d))}),[c,{isActive:u}]}const Hx=h.forwardRef((e,t)=>{let{as:n=Gv,active:r,eventKey:i}=e,s=bO(e,AO);const[o,a]=zx(Object.assign({key:vs(i,s.href),active:r},s));return o[Va("active")]=a.isActive,f.jsx(n,Object.assign({},s,o,{ref:t}))});Hx.displayName="NavItem";const DO=Hx,MO=["as","onSelect","activeKey","role","onKeyDown"];function _O(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,s;for(s=0;s=0)&&(n[i]=e[i]);return n}const Sm=()=>{},Cm=Va("event-key"),Wx=h.forwardRef((e,t)=>{let{as:n="div",onSelect:r,activeKey:i,role:s,onKeyDown:o}=e,a=_O(e,MO);const l=LO(),u=h.useRef(!1),c=h.useContext(cr),d=h.useContext(mi);let p,v;d&&(s=s||"tablist",i=d.activeKey,p=d.getControlledId,v=d.getControllerId);const y=h.useRef(null),w=g=>{const C=y.current;if(!C)return null;const T=Kn(C,`[${Cm}]:not([aria-disabled=true])`),E=C.querySelector("[aria-selected=true]");if(!E||E!==document.activeElement)return null;const P=T.indexOf(E);if(P===-1)return null;let j=P+g;return j>=T.length&&(j=0),j<0&&(j=T.length-1),T[j]},S=(g,C)=>{g!=null&&(r==null||r(g,C),c==null||c(g,C))},x=g=>{if(o==null||o(g),!d)return;let C;switch(g.key){case"ArrowLeft":case"ArrowUp":C=w(-1);break;case"ArrowRight":case"ArrowDown":C=w(1);break;default:return}C&&(g.preventDefault(),S(C.dataset[uk("EventKey")]||null,g),u.current=!0,l())};h.useEffect(()=>{if(y.current&&u.current){const g=y.current.querySelector(`[${Cm}][aria-selected=true]`);g==null||g.focus()}u.current=!1});const m=pi(t,y);return f.jsx(cr.Provider,{value:S,children:f.jsx(mf.Provider,{value:{role:s,activeKey:vs(i),getControlledId:p||Sm,getControllerId:v||Sm},children:f.jsx(n,Object.assign({},a,{onKeyDown:x,ref:m,role:s}))})})});Wx.displayName="Nav";const IO=Object.assign(Wx,{Item:DO}),gf=h.createContext(null);gf.displayName="CardHeaderContext";const Kx=h.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=D(t,"nav-item"),f.jsx(n,{ref:i,className:A(e,t),...r})));Kx.displayName="NavItem";const FO=["onKeyDown"];function VO(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,s;for(s=0;s=0)&&(n[i]=e[i]);return n}function BO(e){return!e||e.trim()==="#"}const Gx=h.forwardRef((e,t)=>{let{onKeyDown:n}=e,r=VO(e,FO);const[i]=Md(Object.assign({tagName:"a"},r)),s=ze(o=>{i.onKeyDown(o),n==null||n(o)});return BO(r.href)||r.role==="button"?f.jsx("a",Object.assign({ref:t},r,i,{onKeyDown:s})):f.jsx("a",Object.assign({ref:t},r,{onKeyDown:n}))});Gx.displayName="Anchor";const Yx=h.forwardRef(({bsPrefix:e,className:t,as:n=Gx,active:r,eventKey:i,disabled:s=!1,...o},a)=>{e=D(e,"nav-link");const[l,u]=zx({key:vs(i,o.href),active:r,disabled:s,...o});return f.jsx(n,{...o,...l,ref:a,disabled:s,className:A(t,e,s&&"disabled",u.isActive&&"active")})});Yx.displayName="NavLink";const Qx=h.forwardRef((e,t)=>{const{as:n="div",bsPrefix:r,variant:i,fill:s=!1,justify:o=!1,navbar:a,navbarScroll:l,className:u,activeKey:c,...d}=Cv(e,{activeKey:"onSelect"}),p=D(r,"nav");let v,y,w=!1;const S=h.useContext(pr),x=h.useContext(gf);return S?(v=S.bsPrefix,w=a??!0):x&&({cardHeaderBsPrefix:y}=x),f.jsx(IO,{as:n,ref:t,activeKey:c,className:A(u,{[p]:!w,[`${v}-nav`]:w,[`${v}-nav-scroll`]:w&&l,[`${y}-${i}`]:!!y,[`${p}-${i}`]:!!i,[`${p}-fill`]:s,[`${p}-justified`]:o}),...d})});Qx.displayName="Nav";const de=Object.assign(Qx,{Item:Kx,Link:Yx});function $O(e,t,n){const r=h.useRef(e!==void 0),[i,s]=h.useState(t),o=e!==void 0,a=r.current;return r.current=o,!o&&a&&i!==t&&s(t),[o?e:i,h.useCallback((...l)=>{const[u,...c]=l;let d=n==null?void 0:n(u,...c);return s(u),d},[n])]}const fa={prefix:String(Math.round(Math.random()*1e10)),current:0},Xx=Ee.createContext(fa),UO=Ee.createContext(!1);let zO=!!(typeof window<"u"&&window.document&&window.document.createElement),Yl=new WeakMap;function HO(e=!1){let t=h.useContext(Xx),n=h.useRef(null);if(n.current===null&&!e){var r,i;let s=(i=Ee.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||i===void 0||(r=i.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(s){let o=Yl.get(s);o==null?Yl.set(s,{id:t.current,state:s.memoizedState}):s.memoizedState!==o.state&&(t.current=o.id,Yl.delete(s))}n.current=++t.current}return n.current}function WO(e){let t=h.useContext(Xx);t===fa&&!zO&&console.warn("When server rendering, you must wrap your application in an to ensure consistent ids are generated between the client and server.");let n=HO(!!e),r=`react-aria${t.prefix}`;return e||`${r}-${n}`}function KO(e){let t=Ee.useId(),[n]=h.useState(qO()),r=n?"react-aria":`react-aria${fa.prefix}`;return e||`${r}-${t}`}const GO=typeof Ee.useId=="function"?KO:WO;function YO(){return!1}function QO(){return!0}function XO(e){return()=>{}}function qO(){return typeof Ee.useSyncExternalStore=="function"?Ee.useSyncExternalStore(XO,YO,QO):h.useContext(UO)}const JO=["active","eventKey","mountOnEnter","transition","unmountOnExit","role","onEnter","onEntering","onEntered","onExit","onExiting","onExited"],ZO=["activeKey","getControlledId","getControllerId"],eL=["as"];function Cc(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,s;for(s=0;s=0)&&(n[i]=e[i]);return n}function qx(e){let{active:t,eventKey:n,mountOnEnter:r,transition:i,unmountOnExit:s,role:o="tabpanel",onEnter:a,onEntering:l,onEntered:u,onExit:c,onExiting:d,onExited:p}=e,v=Cc(e,JO);const y=h.useContext(mi);if(!y)return[Object.assign({},v,{role:o}),{eventKey:n,isActive:t,mountOnEnter:r,transition:i,unmountOnExit:s,onEnter:a,onEntering:l,onEntered:u,onExit:c,onExiting:d,onExited:p}];const{activeKey:w,getControlledId:S,getControllerId:x}=y,m=Cc(y,ZO),g=vs(n);return[Object.assign({},v,{role:o,id:S(n),"aria-labelledby":x(n)}),{eventKey:n,isActive:t==null&&g!=null?vs(w)===g:t,transition:i||m.transition,mountOnEnter:r??m.mountOnEnter,unmountOnExit:s??m.unmountOnExit,onEnter:a,onEntering:l,onEntered:u,onExit:c,onExiting:d,onExited:p}]}const Jx=h.forwardRef((e,t)=>{let{as:n="div"}=e,r=Cc(e,eL);const[i,{isActive:s,onEnter:o,onEntering:a,onEntered:l,onExit:u,onExiting:c,onExited:d,mountOnEnter:p,unmountOnExit:v,transition:y=bd}]=qx(r);return f.jsx(mi.Provider,{value:null,children:f.jsx(cr.Provider,{value:null,children:f.jsx(y,{in:s,onEnter:o,onEntering:a,onEntered:l,onExit:u,onExiting:c,onExited:d,mountOnEnter:p,unmountOnExit:v,children:f.jsx(n,Object.assign({},i,{ref:t,hidden:!s,"aria-hidden":!s}))})})})});Jx.displayName="TabPanel";const Zx=e=>{const{id:t,generateChildId:n,onSelect:r,activeKey:i,defaultActiveKey:s,transition:o,mountOnEnter:a,unmountOnExit:l,children:u}=e,[c,d]=$O(i,s,r),p=GO(t),v=h.useMemo(()=>n||((w,S)=>p?`${p}-${S}-${w}`:null),[p,n]),y=h.useMemo(()=>({onSelect:d,activeKey:c,transition:o,mountOnEnter:a||!1,unmountOnExit:l||!1,getControlledId:w=>v(w,"tabpane"),getControllerId:w=>v(w,"tab")}),[d,c,o,a,l,v]);return f.jsx(mi.Provider,{value:y,children:f.jsx(cr.Provider,{value:d||null,children:u})})};Zx.Panel=Jx;function ew(e){return typeof e=="boolean"?e?hr:bd:e}const tw=({transition:e,...t})=>f.jsx(Zx,{...t,transition:ew(e)});tw.displayName="TabContainer";const nw=h.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=D(t,"tab-content"),f.jsx(n,{ref:i,className:A(e,t),...r})));nw.displayName="TabContent";const rw=h.forwardRef(({bsPrefix:e,transition:t,...n},r)=>{const[{className:i,as:s="div",...o},{isActive:a,onEnter:l,onEntering:u,onEntered:c,onExit:d,onExiting:p,onExited:v,mountOnEnter:y,unmountOnExit:w,transition:S=hr}]=qx({...n,transition:ew(t)}),x=D(e,"tab-pane");return f.jsx(mi.Provider,{value:null,children:f.jsx(cr.Provider,{value:null,children:f.jsx(S,{in:a,onEnter:l,onEntering:u,onEntered:c,onExit:d,onExiting:p,onExited:v,mountOnEnter:y,unmountOnExit:w,children:f.jsx(s,{...o,ref:r,className:A(i,x,a&&"active")})})})})});rw.displayName="TabPane";const tL={eventKey:$.oneOfType([$.string,$.number]),title:$.node.isRequired,disabled:$.bool,tabClassName:$.string,tabAttrs:$.object},iw=()=>{throw new Error("ReactBootstrap: The `Tab` component is not meant to be rendered! It's an abstract component that is only valid as a direct Child of the `Tabs` Component. For custom tabs components use TabPane and TabsContainer directly")};iw.propTypes=tL;const He=Object.assign(iw,{Container:tw,Content:nw,Pane:rw}),yf=h.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=D(t,"card-body"),f.jsx(n,{ref:i,className:A(e,t),...r})));yf.displayName="CardBody";const sw=h.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=D(t,"card-footer"),f.jsx(n,{ref:i,className:A(e,t),...r})));sw.displayName="CardFooter";const ow=h.forwardRef(({bsPrefix:e,className:t,as:n="div",...r},i)=>{const s=D(e,"card-header"),o=h.useMemo(()=>({cardHeaderBsPrefix:s}),[s]);return f.jsx(gf.Provider,{value:o,children:f.jsx(n,{ref:i,...r,className:A(t,s)})})});ow.displayName="CardHeader";const aw=h.forwardRef(({bsPrefix:e,className:t,variant:n,as:r="img",...i},s)=>{const o=D(e,"card-img");return f.jsx(r,{ref:s,className:A(n?`${o}-${n}`:o,t),...i})});aw.displayName="CardImg";const lw=h.forwardRef(({className:e,bsPrefix:t,as:n="div",...r},i)=>(t=D(t,"card-img-overlay"),f.jsx(n,{ref:i,className:A(e,t),...r})));lw.displayName="CardImgOverlay";const uw=h.forwardRef(({className:e,bsPrefix:t,as:n="a",...r},i)=>(t=D(t,"card-link"),f.jsx(n,{ref:i,className:A(e,t),...r})));uw.displayName="CardLink";const nL=$a("h6"),cw=h.forwardRef(({className:e,bsPrefix:t,as:n=nL,...r},i)=>(t=D(t,"card-subtitle"),f.jsx(n,{ref:i,className:A(e,t),...r})));cw.displayName="CardSubtitle";const dw=h.forwardRef(({className:e,bsPrefix:t,as:n="p",...r},i)=>(t=D(t,"card-text"),f.jsx(n,{ref:i,className:A(e,t),...r})));dw.displayName="CardText";const rL=$a("h5"),fw=h.forwardRef(({className:e,bsPrefix:t,as:n=rL,...r},i)=>(t=D(t,"card-title"),f.jsx(n,{ref:i,className:A(e,t),...r})));fw.displayName="CardTitle";const pw=h.forwardRef(({bsPrefix:e,className:t,bg:n,text:r,border:i,body:s=!1,children:o,as:a="div",...l},u)=>{const c=D(e,"card");return f.jsx(a,{ref:u,...l,className:A(t,c,n&&`bg-${n}`,r&&`text-${r}`,i&&`border-${i}`),children:s?f.jsx(yf,{children:o}):o})});pw.displayName="Card";const K=Object.assign(pw,{Img:aw,Title:fw,Subtitle:cw,Body:yf,Link:uw,Text:dw,Header:ow,Footer:sw,ImgOverlay:lw});var iL={BASE_URL:"/simplifica/",MODE:"prod",DEV:!1,PROD:!0,SSR:!1};const hw=()=>{const[e,t]=h.useState(pf),[n,r]=h.useState(!1),[i,s]=h.useState(!1),[o,a]=h.useState(!0),[l,u]=h.useState(!1),{userId:c,lessonId:d}=La(),p=h.useRef(null),{user:v}=an(),y=ui();h.useEffect(()=>{v&&v._id===c?r(!0):r(!1),n&&!p.current&&(p.current=new Xa(iL.VITE_API_ENDPOINT,c),_x(p,d,t),a(!1))},[v,c,p,d,n]);const w=async()=>{y(`/${c}/edit/${d}`)},S=async()=>{try{s(!0),(await p.current.deleteLessonPlan(d)).status<300&&setTimeout(()=>{y(`/${c}`),s(!1)},2e3)}catch(m){console.log(m.message)}},x=async m=>{m.preventDefault(),u(!0)};return f.jsxs(f.Fragment,{children:[f.jsx(Ux,{show:l,toggleShow:()=>u(!1),handleDeleteConfirmed:S}),n&&!o&&f.jsxs(f.Fragment,{children:[f.jsx(un,{fluid:!0,children:f.jsx(Et,{to:`/${c}`,children:f.jsx(B,{variant:"outline-secondary",className:"my-2",title:"Go back to profile.","aria-label":"back-button",children:f.jsx(Q,{src:"/simplifica/arrow-left.svg"})})})}),f.jsx(Nt.div,{initial:{opacity:0,x:-100,scale:.95},animate:{opacity:1,x:0,scale:1},transition:{duration:.8,delay:.5,ease:[0,.71,.2,1.01]},children:f.jsxs(K,{className:"mx-3 mx-lg-5",children:[f.jsx(K.Header,{"aria-label":"success-title",children:"Lesson Plan"}),f.jsxs(K.Body,{children:[f.jsx(K.Title,{children:f.jsxs(_s,{className:"align-items-center",children:[f.jsx(Pt,{xs:8,sm:8,md:10,children:f.jsx("h1",{className:"display-6","aria-label":"topic",children:e.topic})}),f.jsx(Pt,{xs:2,sm:2,md:1,children:f.jsx(B,{variant:"outline-secondary",onClick:w,"aria-label":"edit-button",children:f.jsx(Q,{src:"/simplifica/pencil.svg"})})}),f.jsx(Pt,{xs:2,sm:2,md:1,className:"d-flex justify-content center align-items-center",children:i?f.jsx(mr,{animation:"border",role:"status",size:"sm",children:f.jsx("span",{className:"visually-hidden",children:"Loading..."})}):f.jsx(B,{variant:"outline-danger",onClick:x,"aria-label":"delete-button",children:f.jsx(Q,{src:"/simplifica/trash.svg"})})})]})}),f.jsx(K.Subtitle,{className:"mb-4 text-muted","aria-label":"lesson-date",children:new Date(e.date).toLocaleDateString("en-GB")}),f.jsxs(He.Container,{id:"phase-tabs",defaultActiveKey:"presentation",children:[f.jsxs(He.Content,{children:[f.jsxs(He.Pane,{eventKey:"presentation",children:[f.jsx(K.Text,{className:"h6","aria-label":"lesson-objective-question",children:"What is the main language point (grammar, vocabulary, function) you want to teach?"}),f.jsx(K.Text,{"aria-label":"lesson-objective-answer",children:e.presentation.objective}),f.jsx(K.Text,{className:"h6",children:"What materials (textbook, audio, video, visual aids) will you need?"}),f.jsx("ul",{children:e.presentation.materials.map((m,g)=>f.jsx("li",{children:m},g))}),f.jsx(K.Text,{className:"h6",children:"How will you introduce the topic to make it relevant and engaging for students?"}),f.jsx(K.Text,{children:e.presentation.connection})]}),f.jsxs(He.Pane,{eventKey:"practice",children:[f.jsx(K.Text,{className:"h6",children:"How is the target language applicable to the students' everyday lives?"}),f.jsx(K.Text,{children:e.practice.real_life_application}),f.jsx(K.Text,{className:"h6",children:"What type of feedback will you provide to correct errors and reinforce learning?"}),f.jsx(K.Text,{children:e.practice.feedback_method}),f.jsx(K.Text,{className:"h6",children:"What activities will you use to help students practice the new language in a controlled way?"}),f.jsx("ul",{children:e.practice.activities.map((m,g)=>f.jsx("li",{children:m},g))})]}),f.jsxs(He.Pane,{eventKey:"production",children:[f.jsx(K.Text,{className:"h6",children:"How will you facilitate student interaction and collaboration during the production phase?"}),f.jsx(K.Text,{children:e.production.learner_interaction}),f.jsx(K.Text,{className:"h6",children:"What criteria will you use to evaluate their performance?"}),f.jsx("ul",{className:"list-group-flush",children:e.production.success_criteria.map((m,g)=>f.jsx("li",{children:m},g))}),f.jsx(K.Text,{className:"h6",children:"What activities will allow students to use the new language more freely and creatively?"}),f.jsx("ul",{className:"list-group-flush",children:e.production.activities.map((m,g)=>f.jsx("li",{children:m},g))})]})]}),f.jsxs(de,{variant:"pills",className:"flex-row mt-3",children:[f.jsx(de.Item,{children:f.jsx(de.Link,{eventKey:"presentation",title:"See the presentation phase.",children:"Presentation"})}),f.jsx(de.Item,{children:f.jsx(de.Link,{eventKey:"practice",title:"See the practice phase.",variant:"outline-dark",children:"Practice"})}),f.jsx(de.Item,{children:f.jsx(de.Link,{eventKey:"production",title:"See the production phase.",children:"Production"})})]})]})]})]})})]}),!n&&f.jsx(Nt.div,{initial:{opacity:0,x:-100},animate:{opacity:1,x:0},transition:{duration:.8,delay:.5,ease:[0,.71,.2,1.01]},children:f.jsx(ct,{message:"You are trying to view someone else's lesson. In order to view their lessons, you must sign in to their account."})})]})};hw.propTypes={triggerFeedback:$.func};const mw=e=>{const[t,n]=h.useState(e);return[t,(i,s=null,o=null)=>{n(s===null&&o===null?i:a=>({...a,[s]:o!==null?{...a[s],[o]:i}:i}))}]};var sL={BASE_URL:"/simplifica/",MODE:"prod",DEV:!1,PROD:!0,SSR:!1};const gw=({triggerFeedback:e})=>{const{user:t}=an(),{userId:n}=La(),r=ui(),i=h.useRef(null),[s,o]=h.useState(!1),[a,l]=h.useState(!1),[u,c]=mw(pf),[d,p]=h.useState(!1),[v,y]=h.useState(!1);h.useEffect(()=>{t&&(t._id===n?o(!0):o(!1)),s&&!i.current&&(i.current=new Xa(sL.VITE_API_ENDPOINT,n))},[t,n,s,u]);const w=async T=>{if(T.preventDefault(),!v||!d)return e([{type:"error",title:"Error",message:"Lesson needs at least a topic and a date."}]);try{l(!0),await i.current.createLessonPlan(u),setTimeout(()=>{r(`/${n}`),l(!1)},2e3)}catch(E){console.log(E.message)}},S=T=>T.trim()!=="",x=(T,E)=>{switch(T){case"date":p(E);break;case"topic":y(E);break}},m=T=>{const{name:E,value:P}=T.target,j=E.split("."),_=S(P);j.length===1&&(x(j[0],_),c(P,j[0],null)),j.length===1?c(P,j[0],null):c(P,j[0],j[1])},g=(T,E,P,j)=>{T.preventDefault();const _=document.getElementById(j).value;_.trim()!==""&&(c([...u[E][P],_],E,P),document.getElementById(j).value="")},C=(T,E,P,j)=>{T.preventDefault();const _=u[E][P].filter((b,X)=>X!==j);c(_,E,P)};return f.jsx(f.Fragment,{children:s?f.jsxs(f.Fragment,{children:[f.jsx(un,{fluid:!0,children:f.jsx(Et,{to:`/${n}`,children:f.jsx(B,{variant:"outline-secondary",className:"my-2",title:"Go back to profile.","aria-label":"back-button",children:f.jsx(Q,{src:"/simplifica/arrow-left.svg"})})})}),f.jsx(Nt.div,{initial:{opacity:0,x:-100,scale:.95},animate:{opacity:1,x:0,scale:1},transition:{duration:.8,delay:.5,ease:[0,.71,.2,1.01]},children:f.jsxs(K,{className:"mx-3 mx-lg-5",children:[f.jsx(K.Header,{children:"New Lesson Plan"}),f.jsx(K.Body,{children:f.jsxs(O,{children:[f.jsx(K.Title,{className:"mb-3",children:f.jsxs(_s,{className:"align-items-center",children:[f.jsx(Pt,{xs:9,sm:10,md:10,children:f.jsx(O.Group,{children:f.jsx(O.Control,{type:"text",placeholder:"Lesson Topic","aria-label":"topic-input",name:"topic",onChange:m})})}),f.jsx(Pt,{xs:1,sm:2,md:{span:1,offset:1},children:a?f.jsx(mr,{animation:"border",role:"status",size:"sm",children:f.jsx("span",{className:"visually-hidden",children:"Loading..."})}):f.jsx(B,{variant:"outline-success","aria-label":"save-button",onClick:w,children:f.jsx(Q,{src:"/simplifica/floppy.svg"})})})]})}),f.jsx(K.Subtitle,{className:"mb-4 text-muted",children:f.jsx(O.Control,{type:"date",placeholder:"Date",name:"date",onChange:m})}),f.jsxs(He.Container,{id:"phase-tabs",defaultActiveKey:"presentation",children:[f.jsxs(He.Content,{children:[f.jsxs(He.Pane,{eventKey:"presentation",children:[f.jsxs(O.Group,{className:"mb-3",controlId:"lessonObjective",children:[f.jsx(O.Label,{className:"h5",children:"What is the main language point you want to teach?"}),f.jsx(O.Control,{as:"textarea",rows:3,name:"presentation.objective",placeholder:"Grammar, vocabulary, functions, etc.",onChange:m,"aria-label":"objective-textarea"})]}),f.jsx(O.Label,{className:"h5",children:"What materials will you need?"}),u.presentation.materials.length>0&&u.presentation.materials.map((T,E)=>f.jsxs(xe,{className:"mb-3",children:[f.jsx(O.Control,{type:"text",placeholder:T,"aria-label":`material-${E}`,disabled:!0,readOnly:!0}),f.jsx(B,{variant:"outline-danger",id:"removeMaterialButton","aria-label":"remove-material-button",onClick:P=>C(P,"presentation","materials",E),children:f.jsx(Q,{src:"/simplifica/dash-lg.svg"})})]},E)),f.jsxs(xe,{className:"mb-3",children:[f.jsx(O.Control,{placeholder:"Textbooks, audio, video, visual aids, etc.",name:"presentation.materials",id:"materialInput","aria-label":"material-input"}),f.jsx(B,{variant:"outline-success",id:"addMaterialButton","aria-label":"add-material-button",onClick:T=>g(T,"presentation","materials","materialInput"),children:f.jsx(Q,{src:"/simplifica/plus.svg"})})]}),f.jsxs(O.Group,{className:"mb-3",controlId:"connection",children:[f.jsx(O.Label,{className:"h5",children:"How will you introduce the topic to make it relevant and engaging for students?"}),f.jsx(O.Control,{as:"textarea",rows:3,name:"presentation.connection",onChange:m,"aria-label":"connection-textarea",placeholder:"I will..."})]})]}),f.jsxs(He.Pane,{eventKey:"practice",children:[f.jsxs(O.Group,{className:"mb-3",controlId:"realLifeApplication",children:[f.jsx(O.Label,{className:"h5",children:"How is the target language applicable to the students' everyday lives?"}),f.jsx(O.Control,{as:"textarea",rows:3,onChange:m,name:"practice.real_life_application","aria-label":"real-life-application-textarea"})]}),f.jsxs(O.Group,{className:"mb-3",controlId:"feedbackMethod",children:[f.jsx(O.Label,{className:"h5",children:"What type of feedback will you provide to correct errors and reinforce learning?"}),f.jsx(O.Control,{as:"textarea",rows:3,onChange:m,name:"practice.feedback_method","aria-label":"feedback-method-textarea"})]}),f.jsx(O.Label,{className:"h5",children:"What activities will you use to help students practice the target language?"}),u.practice.activities.length>0&&u.practice.activities.map((T,E)=>f.jsxs(xe,{className:"mb-3",children:[f.jsx(O.Control,{type:"text",placeholder:T,"aria-label":`practice-activity-${E}`,disabled:!0,readOnly:!0}),f.jsx(B,{variant:"outline-danger",id:"removePracticeActivityButton","aria-label":"remove-practice-activity-button",onClick:P=>C(P,"practice","activities",E),children:f.jsx(Q,{src:"/simplifica/dash-lg.svg"})})]},E)),f.jsxs(xe,{className:"mb-3",children:[f.jsx(O.Control,{placeholder:"Musical chairs, hot potato, word association, etc.",name:"practice.activities",id:"practiceActivityInput","aria-label":"practice-activity-input"}),f.jsx(B,{variant:"outline-success",id:"addPracticeActivityButton","aria-label":"add-practice-activity-button",onClick:T=>g(T,"practice","activities","practiceActivityInput"),children:f.jsx(Q,{src:"/simplifica/plus.svg"})})]})]}),f.jsxs(He.Pane,{eventKey:"production",children:[f.jsxs(O.Group,{className:"mb-3",controlId:"learnerInteraction",children:[f.jsx(O.Label,{className:"h5",children:"How will you facilitate student interaction and collaboration during the production phase?"}),f.jsx(O.Control,{as:"textarea",rows:3,onChange:m,name:"production.learner_interaction"})]}),f.jsx(O.Label,{className:"h5",children:"What criteria will you use to evaluate their performance?"}),u.production.success_criteria.length>0&&u.production.success_criteria.map((T,E)=>f.jsxs(xe,{className:"mb-3",children:[f.jsx(O.Control,{type:"text",placeholder:T,"aria-label":`criterion-${E}`,disabled:!0,readOnly:!0}),f.jsx(B,{variant:"outline-danger",id:"removeSuccessCriterionButton","aria-label":"remove-success-criterion-button",onClick:P=>C(P,"production","success_criteria",E),children:f.jsx(Q,{src:"/simplifica/dash-lg.svg"})})]},E)),f.jsxs(xe,{className:"mb-3",children:[f.jsx(O.Control,{placeholder:"Ability to use target language without help, etc.",name:"production.success_criteria",id:"successCriteriaInput","aria-label":"success-criteria-input"}),f.jsx(B,{variant:"outline-success",id:"addSuccessCriterionButton","aria-label":"add-success-criterion-button",onClick:T=>g(T,"production","success_criteria","successCriteriaInput"),children:f.jsx(Q,{src:"/simplifica/plus.svg"})})]}),f.jsx(O.Label,{className:"h5",children:"What activities will allow students to use the new language more freely and creatively?"}),u.production.activities.length>0&&u.production.activities.map((T,E)=>f.jsxs(xe,{className:"mb-3",children:[f.jsx(O.Control,{type:"text",placeholder:T,"aria-label":`production-activity-${E}`,disabled:!0,readOnly:!0}),f.jsx(B,{variant:"outline-danger",id:"removeProductionActivityButton","aria-label":"remove-production-activity-button",onClick:P=>C(P,"production","activities",E),children:f.jsx(Q,{src:"/simplifica/dash-lg.svg"})})]},E)),f.jsxs(xe,{className:"mb-3",children:[f.jsx(O.Control,{placeholder:"Musical chairs, hot potato, word association, etc.",name:"production.activities",id:"productionActivityInput","aria-label":"production-activity-input"}),f.jsx(B,{variant:"outline-success",id:"addProductionActivityButton","aria-label":"add-production-activity-button",onClick:T=>g(T,"production","activities","productionActivityInput"),children:f.jsx(Q,{src:"/simplifica/plus.svg"})})]})]})]}),f.jsxs(de,{variant:"pills",className:"flex-row mt-3",children:[f.jsx(de.Item,{children:f.jsx(de.Link,{eventKey:"presentation",title:"See the presentation phase.",children:"Presentation"})}),f.jsx(de.Item,{children:f.jsx(de.Link,{eventKey:"practice",title:"See the practice phase.",variant:"outline-dark",children:"Practice"})}),f.jsx(de.Item,{children:f.jsx(de.Link,{eventKey:"production",title:"See the production phase.",children:"Production"})})]})]})]})})]})})]}):f.jsx(Nt.div,{initial:{opacity:0,x:-100,scale:.95},animate:{opacity:1,x:0,scale:1},transition:{duration:.8,delay:.5,ease:[0,.71,.2,1.01]},children:f.jsx(ct,{message:"You are trying to create a lesson for an account which you are not signed in to. To create a lesson for that account, you must sign in with their details."})})})};gw.propTypes={triggerFeedback:$.func};const Ii=({children:e})=>{const{user:t,authenticate:n}=an();return h.useEffect(()=>{n()},[n,t]),t?e:f.jsx(Wy,{to:"/login"})};Ii.propTypes={children:$.element};const Po=({children:e})=>{const{user:t}=an();return t?f.jsx(Wy,{to:`/${t._id}`}):e};Po.propTypes={children:$.element};var oL={BASE_URL:"/simplifica/",MODE:"prod",DEV:!1,PROD:!0,SSR:!1};const aL=()=>{const{user:e}=an(),{userId:t,lessonId:n}=La(),r=ui(),i=h.useRef(null),[s,o]=h.useState(!1),[a,l]=h.useState(!1),[u,c]=mw(pf);h.useEffect(()=>{e&&(e._id===t?o(!0):o(!1)),s&&!i.current&&(i.current=new Xa(oL.VITE_API_ENDPOINT,t),_x(i,n,c))},[e,t,s,u,n,c]);const d=async w=>{w.preventDefault();try{l(!0),await i.current.updateLessonPlan(n,u),setTimeout(()=>{r(`/${t}`),l(!1)},2e3)}catch(S){console.log(S.message)}},p=w=>{const{name:S,value:x}=w.target,m=S.split(".");m.length===1?c(x,m[0],null):c(x,m[0],m[1])},v=(w,S,x,m)=>{w.preventDefault();const g=document.getElementById(m).value;g.trim()!==""&&(c([...u[S][x],g],S,x),document.getElementById(m).value="")},y=(w,S,x,m)=>{w.preventDefault();const g=u[S][x].filter((C,T)=>T!==m);c(g,S,x)};return f.jsx(f.Fragment,{children:s?f.jsxs(f.Fragment,{children:[f.jsx(un,{fluid:!0,children:f.jsx(Et,{to:`/${t}`,children:f.jsx(B,{variant:"outline-secondary",className:"my-2",title:"Go back to profile.","aria-label":"back-button",children:f.jsx(Q,{src:"/simplifica/arrow-left.svg"})})})}),f.jsx(Nt.div,{initial:{opacity:0,x:-100,scale:.95},animate:{opacity:1,x:0,scale:1},transition:{duration:.8,delay:.5,ease:[0,.71,.2,1.01]},children:f.jsxs(K,{className:"mx-3 mx-lg-5",children:[f.jsx(K.Header,{children:"New Lesson Plan"}),f.jsx(K.Body,{children:f.jsxs(O,{children:[f.jsx(K.Title,{className:"mb-3",children:f.jsxs(_s,{className:"align-items-center",children:[f.jsx(Pt,{xs:9,sm:10,md:10,children:f.jsx(O.Group,{children:f.jsx(O.Control,{type:"text",placeholder:"Lesson Topic","aria-label":"topic-input",name:"topic",value:u.topic,onChange:p})})}),f.jsx(Pt,{xs:1,sm:2,md:{span:1,offset:1},children:a?f.jsx(mr,{animation:"border",role:"status",size:"sm",children:f.jsx("span",{className:"visually-hidden",children:"Loading..."})}):f.jsx(B,{variant:"outline-success","aria-label":"save-button",onClick:d,children:f.jsx(Q,{src:"/simplifica/floppy.svg"})})})]})}),f.jsx(K.Subtitle,{className:"mb-4 text-muted",children:f.jsx(O.Control,{type:"date",placeholder:"Date",name:"date",value:u.date!==""?new Date(u.date).toISOString().split("T")[0]:"",onChange:p})}),f.jsxs(He.Container,{id:"phase-tabs",defaultActiveKey:"presentation",children:[f.jsxs(He.Content,{children:[f.jsxs(He.Pane,{eventKey:"presentation",children:[f.jsxs(O.Group,{className:"mb-3",controlId:"lessonObjective",children:[f.jsx(O.Label,{className:"h5",children:"What is the main language point you want to teach?"}),f.jsx(O.Control,{as:"textarea",rows:3,name:"presentation.objective",placeholder:"Grammar, vocabulary, functions, etc.",defaultValue:u.presentation.objective,onChange:p,"aria-label":"objective-textarea"})]}),f.jsx(O.Label,{className:"h5",children:"What materials will you need?"}),u.presentation.materials.length>0&&u.presentation.materials.map((w,S)=>f.jsxs(xe,{className:"mb-3",children:[f.jsx(O.Control,{type:"text",placeholder:w,"aria-label":`material-${S}`,defaultValue:u.presentation.materials[S],disabled:!0,readOnly:!0}),f.jsx(B,{variant:"outline-danger",id:"removeMaterialButton","aria-label":"remove-material-button",onClick:x=>y(x,"presentation","materials",S),children:f.jsx(Q,{src:"/simplifica/dash-lg.svg"})})]},S)),f.jsxs(xe,{className:"mb-3",children:[f.jsx(O.Control,{placeholder:"Textbooks, audio, video, visual aids, etc.",name:"presentation.materials",id:"materialInput","aria-label":"material-input"}),f.jsx(B,{variant:"outline-success",id:"addMaterialButton","aria-label":"add-material-button",onClick:w=>v(w,"presentation","materials","materialInput"),children:f.jsx(Q,{src:"/simplifica/plus.svg"})})]}),f.jsxs(O.Group,{className:"mb-3",controlId:"connection",children:[f.jsx(O.Label,{className:"h5",children:"How will you introduce the topic to make it relevant and engaging for students?"}),f.jsx(O.Control,{as:"textarea",rows:3,name:"presentation.connection",defaultValue:u.presentation.connection,onChange:p,"aria-label":"connection-textarea",placeholder:"I will..."})]})]}),f.jsxs(He.Pane,{eventKey:"practice",children:[f.jsxs(O.Group,{className:"mb-3",controlId:"realLifeApplication",children:[f.jsx(O.Label,{className:"h5",children:"How is the target language applicable to the students' everyday lives?"}),f.jsx(O.Control,{as:"textarea",rows:3,onChange:p,defaultValue:u.practice.real_life_application,name:"practice.real_life_application","aria-label":"real-life-application-textarea"})]}),f.jsxs(O.Group,{className:"mb-3",controlId:"feedbackMethod",children:[f.jsx(O.Label,{className:"h5",children:"What type of feedback will you provide to correct errors and reinforce learning?"}),f.jsx(O.Control,{as:"textarea",rows:3,onChange:p,defaultValue:u.practice.feedback_method,name:"practice.feedback_method","aria-label":"feedback-method-textarea"})]}),f.jsx(O.Label,{className:"h5",children:"What activities will you use to help students practice the target language?"}),u.practice.activities.length>0&&u.practice.activities.map((w,S)=>f.jsxs(xe,{className:"mb-3",children:[f.jsx(O.Control,{type:"text",placeholder:w,"aria-label":`practice-activity-${S}`,defaultValue:u.practice.activities[S],disabled:!0,readOnly:!0}),f.jsx(B,{variant:"outline-danger",id:"removePracticeActivityButton","aria-label":"remove-practice-activity-button",onClick:x=>y(x,"practice","activities",S),children:f.jsx(Q,{src:"/simplifica/dash-lg.svg"})})]},S)),f.jsxs(xe,{className:"mb-3",children:[f.jsx(O.Control,{placeholder:"Musical chairs, hot potato, word association, etc.",name:"practice.activities",id:"practiceActivityInput","aria-label":"practice-activity-input"}),f.jsx(B,{variant:"outline-success",id:"addPracticeActivityButton","aria-label":"add-practice-activity-button",onClick:w=>v(w,"practice","activities","practiceActivityInput"),children:f.jsx(Q,{src:"/simplifica/plus.svg"})})]})]}),f.jsxs(He.Pane,{eventKey:"production",children:[f.jsxs(O.Group,{className:"mb-3",controlId:"learnerInteraction",children:[f.jsx(O.Label,{className:"h5",children:"How will you facilitate student interaction and collaboration during the production phase?"}),f.jsx(O.Control,{as:"textarea",rows:3,onChange:p,defaultValue:u.production.learner_interaction,name:"production.learner_interaction"})]}),f.jsx(O.Label,{className:"h5",children:"What criteria will you use to evaluate their performance?"}),u.production.success_criteria.length>0&&u.production.success_criteria.map((w,S)=>f.jsxs(xe,{className:"mb-3",children:[f.jsx(O.Control,{type:"text",placeholder:w,"aria-label":`criterion-${S}`,defaultValue:u.production.success_criteria[S],disabled:!0,readOnly:!0}),f.jsx(B,{variant:"outline-danger",id:"removeSuccessCriterionButton","aria-label":"remove-success-criterion-button",onClick:x=>y(x,"production","success_criteria",S),children:f.jsx(Q,{src:"/simplifica/dash-lg.svg"})})]},S)),f.jsxs(xe,{className:"mb-3",children:[f.jsx(O.Control,{placeholder:"Ability to use target language without help, etc.",name:"production.success_criteria",id:"successCriteriaInput","aria-label":"success-criteria-input"}),f.jsx(B,{variant:"outline-success",id:"addSuccessCriterionButton","aria-label":"add-success-criterion-button",onClick:w=>v(w,"production","success_criteria","successCriteriaInput"),children:f.jsx(Q,{src:"/simplifica/plus.svg"})})]}),f.jsx(O.Label,{className:"h5",children:"What activities will allow students to use the new language more freely and creatively?"}),u.production.activities.length>0&&u.production.activities.map((w,S)=>f.jsxs(xe,{className:"mb-3",children:[f.jsx(O.Control,{type:"text",placeholder:w,"aria-label":`production-activity-${S}`,defaultValue:u.production.activities[S],disabled:!0,readOnly:!0}),f.jsx(B,{variant:"outline-danger",id:"removeProductionActivityButton","aria-label":"remove-production-activity-button",onClick:x=>y(x,"production","activities",S),children:f.jsx(Q,{src:"/simplifica/dash-lg.svg"})})]},S)),f.jsxs(xe,{className:"mb-3",children:[f.jsx(O.Control,{placeholder:"Musical chairs, hot potato, word association, etc.",name:"production.activities",id:"productionActivityInput","aria-label":"production-activity-input"}),f.jsx(B,{variant:"outline-success",id:"addProductionActivityButton","aria-label":"add-production-activity-button",onClick:w=>v(w,"production","activities","productionActivityInput"),children:f.jsx(Q,{src:"/simplifica/plus.svg"})})]})]})]}),f.jsxs(de,{variant:"pills",className:"flex-row mt-3",children:[f.jsx(de.Item,{children:f.jsx(de.Link,{eventKey:"presentation",title:"See the presentation phase.",children:"Presentation"})}),f.jsx(de.Item,{children:f.jsx(de.Link,{eventKey:"practice",title:"See the practice phase.",variant:"outline-dark",children:"Practice"})}),f.jsx(de.Item,{children:f.jsx(de.Link,{eventKey:"production",title:"See the production phase.",children:"Production"})})]})]})]})})]})})]}):f.jsx(Nt.div,{initial:{opacity:0,x:-100,scale:.95},animate:{opacity:1,x:0,scale:1},transition:{duration:.8,delay:.5,ease:[0,.71,.2,1.01]},children:f.jsx(ct,{message:"You are trying to edit a lesson for an account which you are not signed in to. To edit a lesson for that account, you must sign in with their details."})})})},lL=()=>f.jsx(xv,{children:f.jsxs(FC,{children:[f.jsx(fn,{path:"/",element:f.jsx(Po,{children:f.jsx($e,{MainComponent:wO})}),errorElement:f.jsx($e,{MainComponent:ct})}),f.jsx(fn,{path:"/register",element:f.jsx(Po,{children:f.jsx($e,{MainComponent:Dx})}),errorElement:f.jsx($e,{MainComponent:ct})}),f.jsx(fn,{path:"/login",element:f.jsx(Po,{children:f.jsx($e,{MainComponent:Mx})}),errorElement:f.jsx($e,{MainComponent:ct})}),f.jsx(fn,{path:"/:userId",element:f.jsx(Ii,{children:f.jsx($e,{MainComponent:xO})}),errorElement:f.jsx($e,{MainComponent:ct})}),f.jsx(fn,{path:"/:userId/view/:lessonId",element:f.jsx(Ii,{children:f.jsx($e,{MainComponent:hw})}),errorElement:f.jsx($e,{MainComponent:ct})}),f.jsx(fn,{path:"/:userId/edit/:lessonId",element:f.jsx(Ii,{children:f.jsx($e,{MainComponent:aL})}),errorElement:f.jsx($e,{MainComponent:ct})}),f.jsx(fn,{path:"/:userId/create",element:f.jsx(Ii,{children:f.jsx($e,{MainComponent:gw})}),errorElement:f.jsx($e,{MainComponent:ct})})]})});Ql.createRoot(document.getElementById("root")).render(f.jsx(Ee.StrictMode,{children:f.jsx(WC,{basename:"/simplifica",children:f.jsx(lL,{})})})); diff --git a/index.html b/index.html index d9d44be..18dd256 100644 --- a/index.html +++ b/index.html @@ -5,7 +5,7 @@ Simplifica - +