@agrada_digital/pbm 0.0.117 → 0.0.118

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/vanilla.js CHANGED
@@ -1,12 +1,12 @@
1
- var rw=Object.defineProperty;var iw=(Ja,Pa,tr)=>Pa in Ja?rw(Ja,Pa,{enumerable:!0,configurable:!0,writable:!0,value:tr}):Ja[Pa]=tr;var Ed=(Ja,Pa,tr)=>iw(Ja,typeof Pa!="symbol"?Pa+"":Pa,tr);(function(){"use strict";var Ja=typeof document<"u"?document.currentScript:null;function Pa(n,r){for(var l=0;l<r.length;l++){const s=r[l];if(typeof s!="string"&&!Array.isArray(s)){for(const u in s)if(u!=="default"&&!(u in n)){const f=Object.getOwnPropertyDescriptor(s,u);f&&Object.defineProperty(n,u,f.get?f:{enumerable:!0,get:()=>s[u]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}function tr(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var ru={exports:{}},Ui={};/**
1
+ var IC=Object.defineProperty;var PC=(Ja,Ia,tr)=>Ia in Ja?IC(Ja,Ia,{enumerable:!0,configurable:!0,writable:!0,value:tr}):Ja[Ia]=tr;var qd=(Ja,Ia,tr)=>PC(Ja,typeof Ia!="symbol"?Ia+"":Ia,tr);(function(){"use strict";var Ja=typeof document<"u"?document.currentScript:null;function Ia(n,r){for(var l=0;l<r.length;l++){const s=r[l];if(typeof s!="string"&&!Array.isArray(s)){for(const u in s)if(u!=="default"&&!(u in n)){const f=Object.getOwnPropertyDescriptor(s,u);f&&Object.defineProperty(n,u,f.get?f:{enumerable:!0,get:()=>s[u]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}function tr(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var fu={exports:{}},rs={};/**
2
2
  * @license React
3
- * react-jsx-runtime.production.js
3
+ * react-jsx-dev-runtime.production.js
4
4
  *
5
5
  * Copyright (c) Meta Platforms, Inc. and affiliates.
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var Od;function nv(){if(Od)return Ui;Od=1;var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function l(s,u,f){var d=null;if(f!==void 0&&(d=""+f),u.key!==void 0&&(d=""+u.key),"key"in u){f={};for(var m in u)m!=="key"&&(f[m]=u[m])}else f=u;return u=f.ref,{$$typeof:n,type:s,key:d,ref:u!==void 0?u:null,props:f}}return Ui.Fragment=r,Ui.jsx=l,Ui.jsxs=l,Ui}var zd;function rv(){return zd||(zd=1,ru.exports=nv()),ru.exports}var b=rv(),iu={exports:{}},Bi={},lu={exports:{}},su={};/**
9
+ */var Gd;function wb(){if(Gd)return rs;Gd=1;var n=Symbol.for("react.fragment");return rs.Fragment=n,rs.jsxDEV=void 0,rs}var Zd;function Db(){return Zd||(Zd=1,fu.exports=wb()),fu.exports}var x=Db(),du={exports:{}},Ui={},mu={exports:{}},hu={};/**
10
10
  * @license React
11
11
  * scheduler.production.js
12
12
  *
@@ -14,7 +14,7 @@ var rw=Object.defineProperty;var iw=(Ja,Pa,tr)=>Pa in Ja?rw(Ja,Pa,{enumerable:!0
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var Nd;function iv(){return Nd||(Nd=1,(function(n){function r(N,Q){var se=N.length;N.push(Q);e:for(;0<se;){var ze=se-1>>>1,Ve=N[ze];if(0<u(Ve,Q))N[ze]=Q,N[se]=Ve,se=ze;else break e}}function l(N){return N.length===0?null:N[0]}function s(N){if(N.length===0)return null;var Q=N[0],se=N.pop();if(se!==Q){N[0]=se;e:for(var ze=0,Ve=N.length,E=Ve>>>1;ze<E;){var Y=2*(ze+1)-1,ne=N[Y],ue=Y+1,be=N[ue];if(0>u(ne,se))ue<Ve&&0>u(be,ne)?(N[ze]=be,N[ue]=se,ze=ue):(N[ze]=ne,N[Y]=se,ze=Y);else if(ue<Ve&&0>u(be,se))N[ze]=be,N[ue]=se,ze=ue;else break e}}return Q}function u(N,Q){var se=N.sortIndex-Q.sortIndex;return se!==0?se:N.id-Q.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;n.unstable_now=function(){return f.now()}}else{var d=Date,m=d.now();n.unstable_now=function(){return d.now()-m}}var y=[],p=[],_=1,x=null,O=3,S=!1,U=!1,C=!1,Z=!1,I=typeof setTimeout=="function"?setTimeout:null,F=typeof clearTimeout=="function"?clearTimeout:null,ae=typeof setImmediate<"u"?setImmediate:null;function te(N){for(var Q=l(p);Q!==null;){if(Q.callback===null)s(p);else if(Q.startTime<=N)s(p),Q.sortIndex=Q.expirationTime,r(y,Q);else break;Q=l(p)}}function L(N){if(C=!1,te(N),!U)if(l(y)!==null)U=!0,K||(K=!0,v());else{var Q=l(p);Q!==null&&le(L,Q.startTime-N)}}var K=!1,J=-1,we=5,je=-1;function Ie(){return Z?!0:!(n.unstable_now()-je<we)}function ve(){if(Z=!1,K){var N=n.unstable_now();je=N;var Q=!0;try{e:{U=!1,C&&(C=!1,F(J),J=-1),S=!0;var se=O;try{t:{for(te(N),x=l(y);x!==null&&!(x.expirationTime>N&&Ie());){var ze=x.callback;if(typeof ze=="function"){x.callback=null,O=x.priorityLevel;var Ve=ze(x.expirationTime<=N);if(N=n.unstable_now(),typeof Ve=="function"){x.callback=Ve,te(N),Q=!0;break t}x===l(y)&&s(y),te(N)}else s(y);x=l(y)}if(x!==null)Q=!0;else{var E=l(p);E!==null&&le(L,E.startTime-N),Q=!1}}break e}finally{x=null,O=se,S=!1}Q=void 0}}finally{Q?v():K=!1}}}var v;if(typeof ae=="function")v=function(){ae(ve)};else if(typeof MessageChannel<"u"){var $=new MessageChannel,X=$.port2;$.port1.onmessage=ve,v=function(){X.postMessage(null)}}else v=function(){I(ve,0)};function le(N,Q){J=I(function(){N(n.unstable_now())},Q)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(N){N.callback=null},n.unstable_forceFrameRate=function(N){0>N||125<N?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):we=0<N?Math.floor(1e3/N):5},n.unstable_getCurrentPriorityLevel=function(){return O},n.unstable_next=function(N){switch(O){case 1:case 2:case 3:var Q=3;break;default:Q=O}var se=O;O=Q;try{return N()}finally{O=se}},n.unstable_requestPaint=function(){Z=!0},n.unstable_runWithPriority=function(N,Q){switch(N){case 1:case 2:case 3:case 4:case 5:break;default:N=3}var se=O;O=N;try{return Q()}finally{O=se}},n.unstable_scheduleCallback=function(N,Q,se){var ze=n.unstable_now();switch(typeof se=="object"&&se!==null?(se=se.delay,se=typeof se=="number"&&0<se?ze+se:ze):se=ze,N){case 1:var Ve=-1;break;case 2:Ve=250;break;case 5:Ve=1073741823;break;case 4:Ve=1e4;break;default:Ve=5e3}return Ve=se+Ve,N={id:_++,callback:Q,priorityLevel:N,startTime:se,expirationTime:Ve,sortIndex:-1},se>ze?(N.sortIndex=se,r(p,N),l(y)===null&&N===l(p)&&(C?(F(J),J=-1):C=!0,le(L,se-ze))):(N.sortIndex=Ve,r(y,N),U||S||(U=!0,K||(K=!0,v()))),N},n.unstable_shouldYield=Ie,n.unstable_wrapCallback=function(N){var Q=O;return function(){var se=O;O=Q;try{return N.apply(this,arguments)}finally{O=se}}}})(su)),su}var kd;function lv(){return kd||(kd=1,lu.exports=iv()),lu.exports}var ou={exports:{}},xe={};/**
17
+ */var Yd;function Ab(){return Yd||(Yd=1,(function(n){function r(O,X){var se=O.length;O.push(X);e:for(;0<se;){var Te=se-1>>>1,Le=O[Te];if(0<u(Le,X))O[Te]=X,O[se]=Le,se=Te;else break e}}function l(O){return O.length===0?null:O[0]}function s(O){if(O.length===0)return null;var X=O[0],se=O.pop();if(se!==X){O[0]=se;e:for(var Te=0,Le=O.length,A=Le>>>1;Te<A;){var Y=2*(Te+1)-1,ne=O[Y],ue=Y+1,ve=O[ue];if(0>u(ne,se))ue<Le&&0>u(ve,ne)?(O[Te]=ve,O[ue]=se,Te=ue):(O[Te]=ne,O[Y]=se,Te=Y);else if(ue<Le&&0>u(ve,se))O[Te]=ve,O[ue]=se,Te=ue;else break e}}return X}function u(O,X){var se=O.sortIndex-X.sortIndex;return se!==0?se:O.id-X.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;n.unstable_now=function(){return f.now()}}else{var d=Date,h=d.now();n.unstable_now=function(){return d.now()-h}}var y=[],p=[],S=1,v=null,D=3,N=!1,V=!1,E=!1,q=!1,P=typeof setTimeout=="function"?setTimeout:null,K=typeof clearTimeout=="function"?clearTimeout:null,ae=typeof setImmediate<"u"?setImmediate:null;function ee(O){for(var X=l(p);X!==null;){if(X.callback===null)s(p);else if(X.startTime<=O)s(p),X.sortIndex=X.expirationTime,r(y,X);else break;X=l(p)}}function U(O){if(E=!1,ee(O),!V)if(l(y)!==null)V=!0,Q||(Q=!0,b());else{var X=l(p);X!==null&&le(U,X.startTime-O)}}var Q=!1,J=-1,_e=5,Me=-1;function We(){return q?!0:!(n.unstable_now()-Me<_e)}function be(){if(q=!1,Q){var O=n.unstable_now();Me=O;var X=!0;try{e:{V=!1,E&&(E=!1,K(J),J=-1),N=!0;var se=D;try{t:{for(ee(O),v=l(y);v!==null&&!(v.expirationTime>O&&We());){var Te=v.callback;if(typeof Te=="function"){v.callback=null,D=v.priorityLevel;var Le=Te(v.expirationTime<=O);if(O=n.unstable_now(),typeof Le=="function"){v.callback=Le,ee(O),X=!0;break t}v===l(y)&&s(y),ee(O)}else s(y);v=l(y)}if(v!==null)X=!0;else{var A=l(p);A!==null&&le(U,A.startTime-O),X=!1}}break e}finally{v=null,D=se,N=!1}X=void 0}}finally{X?b():Q=!1}}}var b;if(typeof ae=="function")b=function(){ae(be)};else if(typeof MessageChannel<"u"){var $=new MessageChannel,F=$.port2;$.port1.onmessage=be,b=function(){F.postMessage(null)}}else b=function(){P(be,0)};function le(O,X){J=P(function(){O(n.unstable_now())},X)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(O){O.callback=null},n.unstable_forceFrameRate=function(O){0>O||125<O?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):_e=0<O?Math.floor(1e3/O):5},n.unstable_getCurrentPriorityLevel=function(){return D},n.unstable_next=function(O){switch(D){case 1:case 2:case 3:var X=3;break;default:X=D}var se=D;D=X;try{return O()}finally{D=se}},n.unstable_requestPaint=function(){q=!0},n.unstable_runWithPriority=function(O,X){switch(O){case 1:case 2:case 3:case 4:case 5:break;default:O=3}var se=D;D=O;try{return X()}finally{D=se}},n.unstable_scheduleCallback=function(O,X,se){var Te=n.unstable_now();switch(typeof se=="object"&&se!==null?(se=se.delay,se=typeof se=="number"&&0<se?Te+se:Te):se=Te,O){case 1:var Le=-1;break;case 2:Le=250;break;case 5:Le=1073741823;break;case 4:Le=1e4;break;default:Le=5e3}return Le=se+Le,O={id:S++,callback:X,priorityLevel:O,startTime:se,expirationTime:Le,sortIndex:-1},se>Te?(O.sortIndex=se,r(p,O),l(y)===null&&O===l(p)&&(E?(K(J),J=-1):E=!0,le(U,se-Te))):(O.sortIndex=Le,r(y,O),V||N||(V=!0,Q||(Q=!0,b()))),O},n.unstable_shouldYield=We,n.unstable_wrapCallback=function(O){var X=D;return function(){var se=D;D=X;try{return O.apply(this,arguments)}finally{D=se}}}})(hu)),hu}var $d;function Tb(){return $d||($d=1,mu.exports=Ab()),mu.exports}var pu={exports:{}},xe={};/**
18
18
  * @license React
19
19
  * react.production.js
20
20
  *
@@ -22,7 +22,7 @@ var rw=Object.defineProperty;var iw=(Ja,Pa,tr)=>Pa in Ja?rw(Ja,Pa,{enumerable:!0
22
22
  *
23
23
  * This source code is licensed under the MIT license found in the
24
24
  * LICENSE file in the root directory of this source tree.
25
- */var jd;function sv(){if(jd)return xe;jd=1;var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),d=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),_=Symbol.for("react.lazy"),x=Symbol.for("react.activity"),O=Symbol.iterator;function S(E){return E===null||typeof E!="object"?null:(E=O&&E[O]||E["@@iterator"],typeof E=="function"?E:null)}var U={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,Z={};function I(E,Y,ne){this.props=E,this.context=Y,this.refs=Z,this.updater=ne||U}I.prototype.isReactComponent={},I.prototype.setState=function(E,Y){if(typeof E!="object"&&typeof E!="function"&&E!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,E,Y,"setState")},I.prototype.forceUpdate=function(E){this.updater.enqueueForceUpdate(this,E,"forceUpdate")};function F(){}F.prototype=I.prototype;function ae(E,Y,ne){this.props=E,this.context=Y,this.refs=Z,this.updater=ne||U}var te=ae.prototype=new F;te.constructor=ae,C(te,I.prototype),te.isPureReactComponent=!0;var L=Array.isArray;function K(){}var J={H:null,A:null,T:null,S:null},we=Object.prototype.hasOwnProperty;function je(E,Y,ne){var ue=ne.ref;return{$$typeof:n,type:E,key:Y,ref:ue!==void 0?ue:null,props:ne}}function Ie(E,Y){return je(E.type,Y,E.props)}function ve(E){return typeof E=="object"&&E!==null&&E.$$typeof===n}function v(E){var Y={"=":"=0",":":"=2"};return"$"+E.replace(/[=:]/g,function(ne){return Y[ne]})}var $=/\/+/g;function X(E,Y){return typeof E=="object"&&E!==null&&E.key!=null?v(""+E.key):Y.toString(36)}function le(E){switch(E.status){case"fulfilled":return E.value;case"rejected":throw E.reason;default:switch(typeof E.status=="string"?E.then(K,K):(E.status="pending",E.then(function(Y){E.status==="pending"&&(E.status="fulfilled",E.value=Y)},function(Y){E.status==="pending"&&(E.status="rejected",E.reason=Y)})),E.status){case"fulfilled":return E.value;case"rejected":throw E.reason}}throw E}function N(E,Y,ne,ue,be){var Ee=typeof E;(Ee==="undefined"||Ee==="boolean")&&(E=null);var Be=!1;if(E===null)Be=!0;else switch(Ee){case"bigint":case"string":case"number":Be=!0;break;case"object":switch(E.$$typeof){case n:case r:Be=!0;break;case _:return Be=E._init,N(Be(E._payload),Y,ne,ue,be)}}if(Be)return be=be(E),Be=ue===""?"."+X(E,0):ue,L(be)?(ne="",Be!=null&&(ne=Be.replace($,"$&/")+"/"),N(be,Y,ne,"",function(zn){return zn})):be!=null&&(ve(be)&&(be=Ie(be,ne+(be.key==null||E&&E.key===be.key?"":(""+be.key).replace($,"$&/")+"/")+Be)),Y.push(be)),1;Be=0;var Rt=ue===""?".":ue+":";if(L(E))for(var it=0;it<E.length;it++)ue=E[it],Ee=Rt+X(ue,it),Be+=N(ue,Y,ne,Ee,be);else if(it=S(E),typeof it=="function")for(E=it.call(E),it=0;!(ue=E.next()).done;)ue=ue.value,Ee=Rt+X(ue,it++),Be+=N(ue,Y,ne,Ee,be);else if(Ee==="object"){if(typeof E.then=="function")return N(le(E),Y,ne,ue,be);throw Y=String(E),Error("Objects are not valid as a React child (found: "+(Y==="[object Object]"?"object with keys {"+Object.keys(E).join(", ")+"}":Y)+"). If you meant to render a collection of children, use an array instead.")}return Be}function Q(E,Y,ne){if(E==null)return E;var ue=[],be=0;return N(E,ue,"","",function(Ee){return Y.call(ne,Ee,be++)}),ue}function se(E){if(E._status===-1){var Y=E._result;Y=Y(),Y.then(function(ne){(E._status===0||E._status===-1)&&(E._status=1,E._result=ne)},function(ne){(E._status===0||E._status===-1)&&(E._status=2,E._result=ne)}),E._status===-1&&(E._status=0,E._result=Y)}if(E._status===1)return E._result.default;throw E._result}var ze=typeof reportError=="function"?reportError:function(E){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Y=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof E=="object"&&E!==null&&typeof E.message=="string"?String(E.message):String(E),error:E});if(!window.dispatchEvent(Y))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",E);return}console.error(E)},Ve={map:Q,forEach:function(E,Y,ne){Q(E,function(){Y.apply(this,arguments)},ne)},count:function(E){var Y=0;return Q(E,function(){Y++}),Y},toArray:function(E){return Q(E,function(Y){return Y})||[]},only:function(E){if(!ve(E))throw Error("React.Children.only expected to receive a single React element child.");return E}};return xe.Activity=x,xe.Children=Ve,xe.Component=I,xe.Fragment=l,xe.Profiler=u,xe.PureComponent=ae,xe.StrictMode=s,xe.Suspense=y,xe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=J,xe.__COMPILER_RUNTIME={__proto__:null,c:function(E){return J.H.useMemoCache(E)}},xe.cache=function(E){return function(){return E.apply(null,arguments)}},xe.cacheSignal=function(){return null},xe.cloneElement=function(E,Y,ne){if(E==null)throw Error("The argument must be a React element, but you passed "+E+".");var ue=C({},E.props),be=E.key;if(Y!=null)for(Ee in Y.key!==void 0&&(be=""+Y.key),Y)!we.call(Y,Ee)||Ee==="key"||Ee==="__self"||Ee==="__source"||Ee==="ref"&&Y.ref===void 0||(ue[Ee]=Y[Ee]);var Ee=arguments.length-2;if(Ee===1)ue.children=ne;else if(1<Ee){for(var Be=Array(Ee),Rt=0;Rt<Ee;Rt++)Be[Rt]=arguments[Rt+2];ue.children=Be}return je(E.type,be,ue)},xe.createContext=function(E){return E={$$typeof:d,_currentValue:E,_currentValue2:E,_threadCount:0,Provider:null,Consumer:null},E.Provider=E,E.Consumer={$$typeof:f,_context:E},E},xe.createElement=function(E,Y,ne){var ue,be={},Ee=null;if(Y!=null)for(ue in Y.key!==void 0&&(Ee=""+Y.key),Y)we.call(Y,ue)&&ue!=="key"&&ue!=="__self"&&ue!=="__source"&&(be[ue]=Y[ue]);var Be=arguments.length-2;if(Be===1)be.children=ne;else if(1<Be){for(var Rt=Array(Be),it=0;it<Be;it++)Rt[it]=arguments[it+2];be.children=Rt}if(E&&E.defaultProps)for(ue in Be=E.defaultProps,Be)be[ue]===void 0&&(be[ue]=Be[ue]);return je(E,Ee,be)},xe.createRef=function(){return{current:null}},xe.forwardRef=function(E){return{$$typeof:m,render:E}},xe.isValidElement=ve,xe.lazy=function(E){return{$$typeof:_,_payload:{_status:-1,_result:E},_init:se}},xe.memo=function(E,Y){return{$$typeof:p,type:E,compare:Y===void 0?null:Y}},xe.startTransition=function(E){var Y=J.T,ne={};J.T=ne;try{var ue=E(),be=J.S;be!==null&&be(ne,ue),typeof ue=="object"&&ue!==null&&typeof ue.then=="function"&&ue.then(K,ze)}catch(Ee){ze(Ee)}finally{Y!==null&&ne.types!==null&&(Y.types=ne.types),J.T=Y}},xe.unstable_useCacheRefresh=function(){return J.H.useCacheRefresh()},xe.use=function(E){return J.H.use(E)},xe.useActionState=function(E,Y,ne){return J.H.useActionState(E,Y,ne)},xe.useCallback=function(E,Y){return J.H.useCallback(E,Y)},xe.useContext=function(E){return J.H.useContext(E)},xe.useDebugValue=function(){},xe.useDeferredValue=function(E,Y){return J.H.useDeferredValue(E,Y)},xe.useEffect=function(E,Y){return J.H.useEffect(E,Y)},xe.useEffectEvent=function(E){return J.H.useEffectEvent(E)},xe.useId=function(){return J.H.useId()},xe.useImperativeHandle=function(E,Y,ne){return J.H.useImperativeHandle(E,Y,ne)},xe.useInsertionEffect=function(E,Y){return J.H.useInsertionEffect(E,Y)},xe.useLayoutEffect=function(E,Y){return J.H.useLayoutEffect(E,Y)},xe.useMemo=function(E,Y){return J.H.useMemo(E,Y)},xe.useOptimistic=function(E,Y){return J.H.useOptimistic(E,Y)},xe.useReducer=function(E,Y,ne){return J.H.useReducer(E,Y,ne)},xe.useRef=function(E){return J.H.useRef(E)},xe.useState=function(E){return J.H.useState(E)},xe.useSyncExternalStore=function(E,Y,ne){return J.H.useSyncExternalStore(E,Y,ne)},xe.useTransition=function(){return J.H.useTransition()},xe.version="19.2.4",xe}var Md;function uu(){return Md||(Md=1,ou.exports=sv()),ou.exports}var cu={exports:{}},qt={};/**
25
+ */var Fd;function Ob(){if(Fd)return xe;Fd=1;var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),d=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),D=Symbol.iterator;function N(A){return A===null||typeof A!="object"?null:(A=D&&A[D]||A["@@iterator"],typeof A=="function"?A:null)}var V={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E=Object.assign,q={};function P(A,Y,ne){this.props=A,this.context=Y,this.refs=q,this.updater=ne||V}P.prototype.isReactComponent={},P.prototype.setState=function(A,Y){if(typeof A!="object"&&typeof A!="function"&&A!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,A,Y,"setState")},P.prototype.forceUpdate=function(A){this.updater.enqueueForceUpdate(this,A,"forceUpdate")};function K(){}K.prototype=P.prototype;function ae(A,Y,ne){this.props=A,this.context=Y,this.refs=q,this.updater=ne||V}var ee=ae.prototype=new K;ee.constructor=ae,E(ee,P.prototype),ee.isPureReactComponent=!0;var U=Array.isArray;function Q(){}var J={H:null,A:null,T:null,S:null},_e=Object.prototype.hasOwnProperty;function Me(A,Y,ne){var ue=ne.ref;return{$$typeof:n,type:A,key:Y,ref:ue!==void 0?ue:null,props:ne}}function We(A,Y){return Me(A.type,Y,A.props)}function be(A){return typeof A=="object"&&A!==null&&A.$$typeof===n}function b(A){var Y={"=":"=0",":":"=2"};return"$"+A.replace(/[=:]/g,function(ne){return Y[ne]})}var $=/\/+/g;function F(A,Y){return typeof A=="object"&&A!==null&&A.key!=null?b(""+A.key):Y.toString(36)}function le(A){switch(A.status){case"fulfilled":return A.value;case"rejected":throw A.reason;default:switch(typeof A.status=="string"?A.then(Q,Q):(A.status="pending",A.then(function(Y){A.status==="pending"&&(A.status="fulfilled",A.value=Y)},function(Y){A.status==="pending"&&(A.status="rejected",A.reason=Y)})),A.status){case"fulfilled":return A.value;case"rejected":throw A.reason}}throw A}function O(A,Y,ne,ue,ve){var De=typeof A;(De==="undefined"||De==="boolean")&&(A=null);var Be=!1;if(A===null)Be=!0;else switch(De){case"bigint":case"string":case"number":Be=!0;break;case"object":switch(A.$$typeof){case n:case r:Be=!0;break;case S:return Be=A._init,O(Be(A._payload),Y,ne,ue,ve)}}if(Be)return ve=ve(A),Be=ue===""?"."+F(A,0):ue,U(ve)?(ne="",Be!=null&&(ne=Be.replace($,"$&/")+"/"),O(ve,Y,ne,"",function(Tn){return Tn})):ve!=null&&(be(ve)&&(ve=We(ve,ne+(ve.key==null||A&&A.key===ve.key?"":(""+ve.key).replace($,"$&/")+"/")+Be)),Y.push(ve)),1;Be=0;var kt=ue===""?".":ue+":";if(U(A))for(var it=0;it<A.length;it++)ue=A[it],De=kt+F(ue,it),Be+=O(ue,Y,ne,De,ve);else if(it=N(A),typeof it=="function")for(A=it.call(A),it=0;!(ue=A.next()).done;)ue=ue.value,De=kt+F(ue,it++),Be+=O(ue,Y,ne,De,ve);else if(De==="object"){if(typeof A.then=="function")return O(le(A),Y,ne,ue,ve);throw Y=String(A),Error("Objects are not valid as a React child (found: "+(Y==="[object Object]"?"object with keys {"+Object.keys(A).join(", ")+"}":Y)+"). If you meant to render a collection of children, use an array instead.")}return Be}function X(A,Y,ne){if(A==null)return A;var ue=[],ve=0;return O(A,ue,"","",function(De){return Y.call(ne,De,ve++)}),ue}function se(A){if(A._status===-1){var Y=A._result;Y=Y(),Y.then(function(ne){(A._status===0||A._status===-1)&&(A._status=1,A._result=ne)},function(ne){(A._status===0||A._status===-1)&&(A._status=2,A._result=ne)}),A._status===-1&&(A._status=0,A._result=Y)}if(A._status===1)return A._result.default;throw A._result}var Te=typeof reportError=="function"?reportError:function(A){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Y=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof A=="object"&&A!==null&&typeof A.message=="string"?String(A.message):String(A),error:A});if(!window.dispatchEvent(Y))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",A);return}console.error(A)},Le={map:X,forEach:function(A,Y,ne){X(A,function(){Y.apply(this,arguments)},ne)},count:function(A){var Y=0;return X(A,function(){Y++}),Y},toArray:function(A){return X(A,function(Y){return Y})||[]},only:function(A){if(!be(A))throw Error("React.Children.only expected to receive a single React element child.");return A}};return xe.Activity=v,xe.Children=Le,xe.Component=P,xe.Fragment=l,xe.Profiler=u,xe.PureComponent=ae,xe.StrictMode=s,xe.Suspense=y,xe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=J,xe.__COMPILER_RUNTIME={__proto__:null,c:function(A){return J.H.useMemoCache(A)}},xe.cache=function(A){return function(){return A.apply(null,arguments)}},xe.cacheSignal=function(){return null},xe.cloneElement=function(A,Y,ne){if(A==null)throw Error("The argument must be a React element, but you passed "+A+".");var ue=E({},A.props),ve=A.key;if(Y!=null)for(De in Y.key!==void 0&&(ve=""+Y.key),Y)!_e.call(Y,De)||De==="key"||De==="__self"||De==="__source"||De==="ref"&&Y.ref===void 0||(ue[De]=Y[De]);var De=arguments.length-2;if(De===1)ue.children=ne;else if(1<De){for(var Be=Array(De),kt=0;kt<De;kt++)Be[kt]=arguments[kt+2];ue.children=Be}return Me(A.type,ve,ue)},xe.createContext=function(A){return A={$$typeof:d,_currentValue:A,_currentValue2:A,_threadCount:0,Provider:null,Consumer:null},A.Provider=A,A.Consumer={$$typeof:f,_context:A},A},xe.createElement=function(A,Y,ne){var ue,ve={},De=null;if(Y!=null)for(ue in Y.key!==void 0&&(De=""+Y.key),Y)_e.call(Y,ue)&&ue!=="key"&&ue!=="__self"&&ue!=="__source"&&(ve[ue]=Y[ue]);var Be=arguments.length-2;if(Be===1)ve.children=ne;else if(1<Be){for(var kt=Array(Be),it=0;it<Be;it++)kt[it]=arguments[it+2];ve.children=kt}if(A&&A.defaultProps)for(ue in Be=A.defaultProps,Be)ve[ue]===void 0&&(ve[ue]=Be[ue]);return Me(A,De,ve)},xe.createRef=function(){return{current:null}},xe.forwardRef=function(A){return{$$typeof:h,render:A}},xe.isValidElement=be,xe.lazy=function(A){return{$$typeof:S,_payload:{_status:-1,_result:A},_init:se}},xe.memo=function(A,Y){return{$$typeof:p,type:A,compare:Y===void 0?null:Y}},xe.startTransition=function(A){var Y=J.T,ne={};J.T=ne;try{var ue=A(),ve=J.S;ve!==null&&ve(ne,ue),typeof ue=="object"&&ue!==null&&typeof ue.then=="function"&&ue.then(Q,Te)}catch(De){Te(De)}finally{Y!==null&&ne.types!==null&&(Y.types=ne.types),J.T=Y}},xe.unstable_useCacheRefresh=function(){return J.H.useCacheRefresh()},xe.use=function(A){return J.H.use(A)},xe.useActionState=function(A,Y,ne){return J.H.useActionState(A,Y,ne)},xe.useCallback=function(A,Y){return J.H.useCallback(A,Y)},xe.useContext=function(A){return J.H.useContext(A)},xe.useDebugValue=function(){},xe.useDeferredValue=function(A,Y){return J.H.useDeferredValue(A,Y)},xe.useEffect=function(A,Y){return J.H.useEffect(A,Y)},xe.useEffectEvent=function(A){return J.H.useEffectEvent(A)},xe.useId=function(){return J.H.useId()},xe.useImperativeHandle=function(A,Y,ne){return J.H.useImperativeHandle(A,Y,ne)},xe.useInsertionEffect=function(A,Y){return J.H.useInsertionEffect(A,Y)},xe.useLayoutEffect=function(A,Y){return J.H.useLayoutEffect(A,Y)},xe.useMemo=function(A,Y){return J.H.useMemo(A,Y)},xe.useOptimistic=function(A,Y){return J.H.useOptimistic(A,Y)},xe.useReducer=function(A,Y,ne){return J.H.useReducer(A,Y,ne)},xe.useRef=function(A){return J.H.useRef(A)},xe.useState=function(A){return J.H.useState(A)},xe.useSyncExternalStore=function(A,Y,ne){return J.H.useSyncExternalStore(A,Y,ne)},xe.useTransition=function(){return J.H.useTransition()},xe.version="19.2.4",xe}var Qd;function gu(){return Qd||(Qd=1,pu.exports=Ob()),pu.exports}var yu={exports:{}},qt={};/**
26
26
  * @license React
27
27
  * react-dom.production.js
28
28
  *
@@ -30,7 +30,7 @@ var rw=Object.defineProperty;var iw=(Ja,Pa,tr)=>Pa in Ja?rw(Ja,Pa,{enumerable:!0
30
30
  *
31
31
  * This source code is licensed under the MIT license found in the
32
32
  * LICENSE file in the root directory of this source tree.
33
- */var Rd;function ov(){if(Rd)return qt;Rd=1;var n=uu();function r(y){var p="https://react.dev/errors/"+y;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var _=2;_<arguments.length;_++)p+="&args[]="+encodeURIComponent(arguments[_])}return"Minified React error #"+y+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function l(){}var s={d:{f:l,r:function(){throw Error(r(522))},D:l,C:l,L:l,m:l,X:l,S:l,M:l},p:0,findDOMNode:null},u=Symbol.for("react.portal");function f(y,p,_){var x=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:u,key:x==null?null:""+x,children:y,containerInfo:p,implementation:_}}var d=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function m(y,p){if(y==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return qt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,qt.createPortal=function(y,p){var _=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(r(299));return f(y,p,null,_)},qt.flushSync=function(y){var p=d.T,_=s.p;try{if(d.T=null,s.p=2,y)return y()}finally{d.T=p,s.p=_,s.d.f()}},qt.preconnect=function(y,p){typeof y=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,s.d.C(y,p))},qt.prefetchDNS=function(y){typeof y=="string"&&s.d.D(y)},qt.preinit=function(y,p){if(typeof y=="string"&&p&&typeof p.as=="string"){var _=p.as,x=m(_,p.crossOrigin),O=typeof p.integrity=="string"?p.integrity:void 0,S=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;_==="style"?s.d.S(y,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:x,integrity:O,fetchPriority:S}):_==="script"&&s.d.X(y,{crossOrigin:x,integrity:O,fetchPriority:S,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},qt.preinitModule=function(y,p){if(typeof y=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var _=m(p.as,p.crossOrigin);s.d.M(y,{crossOrigin:_,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&s.d.M(y)},qt.preload=function(y,p){if(typeof y=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var _=p.as,x=m(_,p.crossOrigin);s.d.L(y,_,{crossOrigin:x,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},qt.preloadModule=function(y,p){if(typeof y=="string")if(p){var _=m(p.as,p.crossOrigin);s.d.m(y,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:_,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else s.d.m(y)},qt.requestFormReset=function(y){s.d.r(y)},qt.unstable_batchedUpdates=function(y,p){return y(p)},qt.useFormState=function(y,p,_){return d.H.useFormState(y,p,_)},qt.useFormStatus=function(){return d.H.useHostTransitionStatus()},qt.version="19.2.4",qt}var Dd;function uv(){if(Dd)return cu.exports;Dd=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(r){console.error(r)}}return n(),cu.exports=ov(),cu.exports}/**
33
+ */var Xd;function Rb(){if(Xd)return qt;Xd=1;var n=gu();function r(y){var p="https://react.dev/errors/"+y;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var S=2;S<arguments.length;S++)p+="&args[]="+encodeURIComponent(arguments[S])}return"Minified React error #"+y+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function l(){}var s={d:{f:l,r:function(){throw Error(r(522))},D:l,C:l,L:l,m:l,X:l,S:l,M:l},p:0,findDOMNode:null},u=Symbol.for("react.portal");function f(y,p,S){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:u,key:v==null?null:""+v,children:y,containerInfo:p,implementation:S}}var d=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function h(y,p){if(y==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return qt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,qt.createPortal=function(y,p){var S=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(r(299));return f(y,p,null,S)},qt.flushSync=function(y){var p=d.T,S=s.p;try{if(d.T=null,s.p=2,y)return y()}finally{d.T=p,s.p=S,s.d.f()}},qt.preconnect=function(y,p){typeof y=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,s.d.C(y,p))},qt.prefetchDNS=function(y){typeof y=="string"&&s.d.D(y)},qt.preinit=function(y,p){if(typeof y=="string"&&p&&typeof p.as=="string"){var S=p.as,v=h(S,p.crossOrigin),D=typeof p.integrity=="string"?p.integrity:void 0,N=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;S==="style"?s.d.S(y,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:v,integrity:D,fetchPriority:N}):S==="script"&&s.d.X(y,{crossOrigin:v,integrity:D,fetchPriority:N,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},qt.preinitModule=function(y,p){if(typeof y=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var S=h(p.as,p.crossOrigin);s.d.M(y,{crossOrigin:S,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&s.d.M(y)},qt.preload=function(y,p){if(typeof y=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var S=p.as,v=h(S,p.crossOrigin);s.d.L(y,S,{crossOrigin:v,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},qt.preloadModule=function(y,p){if(typeof y=="string")if(p){var S=h(p.as,p.crossOrigin);s.d.m(y,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:S,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else s.d.m(y)},qt.requestFormReset=function(y){s.d.r(y)},qt.unstable_batchedUpdates=function(y,p){return y(p)},qt.useFormState=function(y,p,S){return d.H.useFormState(y,p,S)},qt.useFormStatus=function(){return d.H.useHostTransitionStatus()},qt.version="19.2.4",qt}var Kd;function Mb(){if(Kd)return yu.exports;Kd=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(r){console.error(r)}}return n(),yu.exports=Rb(),yu.exports}/**
34
34
  * @license React
35
35
  * react-dom-client.production.js
36
36
  *
@@ -38,56 +38,79 @@ var rw=Object.defineProperty;var iw=(Ja,Pa,tr)=>Pa in Ja?rw(Ja,Pa,{enumerable:!0
38
38
  *
39
39
  * This source code is licensed under the MIT license found in the
40
40
  * LICENSE file in the root directory of this source tree.
41
- */var Ud;function cv(){if(Ud)return Bi;Ud=1;var n=lv(),r=uu(),l=uv();function s(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function d(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function m(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function y(e){if(f(e)!==e)throw Error(s(188))}function p(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(s(188));return t!==e?null:e}for(var a=e,i=t;;){var o=a.return;if(o===null)break;var c=o.alternate;if(c===null){if(i=o.return,i!==null){a=i;continue}break}if(o.child===c.child){for(c=o.child;c;){if(c===a)return y(o),e;if(c===i)return y(o),t;c=c.sibling}throw Error(s(188))}if(a.return!==i.return)a=o,i=c;else{for(var h=!1,g=o.child;g;){if(g===a){h=!0,a=o,i=c;break}if(g===i){h=!0,i=o,a=c;break}g=g.sibling}if(!h){for(g=c.child;g;){if(g===a){h=!0,a=c,i=o;break}if(g===i){h=!0,i=c,a=o;break}g=g.sibling}if(!h)throw Error(s(189))}}if(a.alternate!==i)throw Error(s(190))}if(a.tag!==3)throw Error(s(188));return a.stateNode.current===a?e:t}function _(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=_(e),t!==null)return t;e=e.sibling}return null}var x=Object.assign,O=Symbol.for("react.element"),S=Symbol.for("react.transitional.element"),U=Symbol.for("react.portal"),C=Symbol.for("react.fragment"),Z=Symbol.for("react.strict_mode"),I=Symbol.for("react.profiler"),F=Symbol.for("react.consumer"),ae=Symbol.for("react.context"),te=Symbol.for("react.forward_ref"),L=Symbol.for("react.suspense"),K=Symbol.for("react.suspense_list"),J=Symbol.for("react.memo"),we=Symbol.for("react.lazy"),je=Symbol.for("react.activity"),Ie=Symbol.for("react.memo_cache_sentinel"),ve=Symbol.iterator;function v(e){return e===null||typeof e!="object"?null:(e=ve&&e[ve]||e["@@iterator"],typeof e=="function"?e:null)}var $=Symbol.for("react.client.reference");function X(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===$?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case C:return"Fragment";case I:return"Profiler";case Z:return"StrictMode";case L:return"Suspense";case K:return"SuspenseList";case je:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case U:return"Portal";case ae:return e.displayName||"Context";case F:return(e._context.displayName||"Context")+".Consumer";case te:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case J:return t=e.displayName||null,t!==null?t:X(e.type)||"Memo";case we:t=e._payload,e=e._init;try{return X(e(t))}catch{}}return null}var le=Array.isArray,N=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q=l.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,se={pending:!1,data:null,method:null,action:null},ze=[],Ve=-1;function E(e){return{current:e}}function Y(e){0>Ve||(e.current=ze[Ve],ze[Ve]=null,Ve--)}function ne(e,t){Ve++,ze[Ve]=e.current,e.current=t}var ue=E(null),be=E(null),Ee=E(null),Be=E(null);function Rt(e,t){switch(ne(Ee,t),ne(be,e),ne(ue,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Ty(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Ty(t),e=Ey(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Y(ue),ne(ue,e)}function it(){Y(ue),Y(be),Y(Ee)}function zn(e){e.memoizedState!==null&&ne(Be,e);var t=ue.current,a=Ey(t,e.type);t!==a&&(ne(be,e),ne(ue,a))}function Nn(e){be.current===e&&(Y(ue),Y(be)),Be.current===e&&(Y(Be),Pl._currentValue=se)}var fr,Bs;function $a(e){if(fr===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);fr=t&&t[1]||"",Bs=-1<a.stack.indexOf(`
41
+ */var Jd;function zb(){if(Jd)return Ui;Jd=1;var n=Tb(),r=gu(),l=Mb();function s(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function d(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function h(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function y(e){if(f(e)!==e)throw Error(s(188))}function p(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(s(188));return t!==e?null:e}for(var a=e,i=t;;){var o=a.return;if(o===null)break;var c=o.alternate;if(c===null){if(i=o.return,i!==null){a=i;continue}break}if(o.child===c.child){for(c=o.child;c;){if(c===a)return y(o),e;if(c===i)return y(o),t;c=c.sibling}throw Error(s(188))}if(a.return!==i.return)a=o,i=c;else{for(var m=!1,g=o.child;g;){if(g===a){m=!0,a=o,i=c;break}if(g===i){m=!0,i=o,a=c;break}g=g.sibling}if(!m){for(g=c.child;g;){if(g===a){m=!0,a=c,i=o;break}if(g===i){m=!0,i=c,a=o;break}g=g.sibling}if(!m)throw Error(s(189))}}if(a.alternate!==i)throw Error(s(190))}if(a.tag!==3)throw Error(s(188));return a.stateNode.current===a?e:t}function S(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=S(e),t!==null)return t;e=e.sibling}return null}var v=Object.assign,D=Symbol.for("react.element"),N=Symbol.for("react.transitional.element"),V=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),q=Symbol.for("react.strict_mode"),P=Symbol.for("react.profiler"),K=Symbol.for("react.consumer"),ae=Symbol.for("react.context"),ee=Symbol.for("react.forward_ref"),U=Symbol.for("react.suspense"),Q=Symbol.for("react.suspense_list"),J=Symbol.for("react.memo"),_e=Symbol.for("react.lazy"),Me=Symbol.for("react.activity"),We=Symbol.for("react.memo_cache_sentinel"),be=Symbol.iterator;function b(e){return e===null||typeof e!="object"?null:(e=be&&e[be]||e["@@iterator"],typeof e=="function"?e:null)}var $=Symbol.for("react.client.reference");function F(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===$?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case E:return"Fragment";case P:return"Profiler";case q:return"StrictMode";case U:return"Suspense";case Q:return"SuspenseList";case Me:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case V:return"Portal";case ae:return e.displayName||"Context";case K:return(e._context.displayName||"Context")+".Consumer";case ee:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case J:return t=e.displayName||null,t!==null?t:F(e.type)||"Memo";case _e:t=e._payload,e=e._init;try{return F(e(t))}catch{}}return null}var le=Array.isArray,O=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,X=l.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,se={pending:!1,data:null,method:null,action:null},Te=[],Le=-1;function A(e){return{current:e}}function Y(e){0>Le||(e.current=Te[Le],Te[Le]=null,Le--)}function ne(e,t){Le++,Te[Le]=e.current,e.current=t}var ue=A(null),ve=A(null),De=A(null),Be=A(null);function kt(e,t){switch(ne(De,t),ne(ve,e),ne(ue,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?K0(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=K0(t),e=J0(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Y(ue),ne(ue,e)}function it(){Y(ue),Y(ve),Y(De)}function Tn(e){e.memoizedState!==null&&ne(Be,e);var t=ue.current,a=J0(t,e.type);t!==a&&(ne(ve,e),ne(ue,a))}function On(e){ve.current===e&&(Y(ue),Y(ve)),Be.current===e&&(Y(Be),es._currentValue=se)}var dr,Ys;function $a(e){if(dr===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);dr=t&&t[1]||"",Ys=-1<a.stack.indexOf(`
42
42
  at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
43
- `+fr+e+Bs}var ol=!1;function Jr(e,t){if(!e||ol)return"";ol=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var i={DetermineComponentFrameRoot:function(){try{if(t){var G=function(){throw Error()};if(Object.defineProperty(G.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(G,[])}catch(B){var D=B}Reflect.construct(e,[],G)}else{try{G.call()}catch(B){D=B}e.call(G.prototype)}}else{try{throw Error()}catch(B){D=B}(G=e())&&typeof G.catch=="function"&&G.catch(function(){})}}catch(B){if(B&&D&&typeof B.stack=="string")return[B.stack,D.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=i.DetermineComponentFrameRoot(),h=c[0],g=c[1];if(h&&g){var w=h.split(`
44
- `),M=g.split(`
45
- `);for(o=i=0;i<w.length&&!w[i].includes("DetermineComponentFrameRoot");)i++;for(;o<M.length&&!M[o].includes("DetermineComponentFrameRoot");)o++;if(i===w.length||o===M.length)for(i=w.length-1,o=M.length-1;1<=i&&0<=o&&w[i]!==M[o];)o--;for(;1<=i&&0<=o;i--,o--)if(w[i]!==M[o]){if(i!==1||o!==1)do if(i--,o--,0>o||w[i]!==M[o]){var H=`
46
- `+w[i].replace(" at new "," at ");return e.displayName&&H.includes("<anonymous>")&&(H=H.replace("<anonymous>",e.displayName)),H}while(1<=i&&0<=o);break}}}finally{ol=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?$a(a):""}function Ls(e,t){switch(e.tag){case 26:case 27:case 5:return $a(e.type);case 16:return $a("Lazy");case 13:return e.child!==t&&t!==null?$a("Suspense Fallback"):$a("Suspense");case 19:return $a("SuspenseList");case 0:case 15:return Jr(e.type,!1);case 11:return Jr(e.type.render,!1);case 1:return Jr(e.type,!0);case 31:return $a("Activity");default:return""}}function Vs(e){try{var t="",a=null;do t+=Ls(e,a),a=e,e=e.return;while(e);return t}catch(i){return`
43
+ `+dr+e+Ys}var fl=!1;function Ir(e,t){if(!e||fl)return"";fl=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var i={DetermineComponentFrameRoot:function(){try{if(t){var Z=function(){throw Error()};if(Object.defineProperty(Z.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Z,[])}catch(B){var j=B}Reflect.construct(e,[],Z)}else{try{Z.call()}catch(B){j=B}e.call(Z.prototype)}}else{try{throw Error()}catch(B){j=B}(Z=e())&&typeof Z.catch=="function"&&Z.catch(function(){})}}catch(B){if(B&&j&&typeof B.stack=="string")return[B.stack,j.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=i.DetermineComponentFrameRoot(),m=c[0],g=c[1];if(m&&g){var _=m.split(`
44
+ `),z=g.split(`
45
+ `);for(o=i=0;i<_.length&&!_[i].includes("DetermineComponentFrameRoot");)i++;for(;o<z.length&&!z[o].includes("DetermineComponentFrameRoot");)o++;if(i===_.length||o===z.length)for(i=_.length-1,o=z.length-1;1<=i&&0<=o&&_[i]!==z[o];)o--;for(;1<=i&&0<=o;i--,o--)if(_[i]!==z[o]){if(i!==1||o!==1)do if(i--,o--,0>o||_[i]!==z[o]){var H=`
46
+ `+_[i].replace(" at new "," at ");return e.displayName&&H.includes("<anonymous>")&&(H=H.replace("<anonymous>",e.displayName)),H}while(1<=i&&0<=o);break}}}finally{fl=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?$a(a):""}function $s(e,t){switch(e.tag){case 26:case 27:case 5:return $a(e.type);case 16:return $a("Lazy");case 13:return e.child!==t&&t!==null?$a("Suspense Fallback"):$a("Suspense");case 19:return $a("SuspenseList");case 0:case 15:return Ir(e.type,!1);case 11:return Ir(e.type.render,!1);case 1:return Ir(e.type,!0);case 31:return $a("Activity");default:return""}}function Fs(e){try{var t="",a=null;do t+=$s(e,a),a=e,e=e.return;while(e);return t}catch(i){return`
47
47
  Error generating stack: `+i.message+`
48
- `+i.stack}}var ul=Object.prototype.hasOwnProperty,Hs=n.unstable_scheduleCallback,Pr=n.unstable_cancelCallback,A=n.unstable_shouldYield,k=n.unstable_requestPaint,R=n.unstable_now,re=n.unstable_getCurrentPriorityLevel,W=n.unstable_ImmediatePriority,ee=n.unstable_UserBlockingPriority,fe=n.unstable_NormalPriority,Ae=n.unstable_LowPriority,He=n.unstable_IdlePriority,Xt=n.log,xa=n.unstable_setDisableYieldValue,At=null,Qt=null;function _a(e){if(typeof Xt=="function"&&xa(e),Qt&&typeof Qt.setStrictMode=="function")try{Qt.setStrictMode(At,e)}catch{}}var Dt=Math.clz32?Math.clz32:hc,dc=Math.log,qs=Math.LN2;function hc(e){return e>>>=0,e===0?32:31-(dc(e)/qs|0)|0}var dr=256,Zs=262144,Gs=4194304;function hr(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Ys(e,t,a){var i=e.pendingLanes;if(i===0)return 0;var o=0,c=e.suspendedLanes,h=e.pingedLanes;e=e.warmLanes;var g=i&134217727;return g!==0?(i=g&~c,i!==0?o=hr(i):(h&=g,h!==0?o=hr(h):a||(a=g&~e,a!==0&&(o=hr(a))))):(g=i&~c,g!==0?o=hr(g):h!==0?o=hr(h):a||(a=i&~e,a!==0&&(o=hr(a)))),o===0?0:t!==0&&t!==o&&(t&c)===0&&(c=o&-o,a=t&-t,c>=a||c===32&&(a&4194048)!==0)?t:o}function cl(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function $S(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function sp(){var e=Gs;return Gs<<=1,(Gs&62914560)===0&&(Gs=4194304),e}function mc(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function fl(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function XS(e,t,a,i,o,c){var h=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var g=e.entanglements,w=e.expirationTimes,M=e.hiddenUpdates;for(a=h&~a;0<a;){var H=31-Dt(a),G=1<<H;g[H]=0,w[H]=-1;var D=M[H];if(D!==null)for(M[H]=null,H=0;H<D.length;H++){var B=D[H];B!==null&&(B.lane&=-536870913)}a&=~G}i!==0&&op(e,i,0),c!==0&&o===0&&e.tag!==0&&(e.suspendedLanes|=c&~(h&~t))}function op(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var i=31-Dt(t);e.entangledLanes|=t,e.entanglements[i]=e.entanglements[i]|1073741824|a&261930}function up(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var i=31-Dt(a),o=1<<i;o&t|e[i]&t&&(e[i]|=t),a&=~o}}function cp(e,t){var a=t&-t;return a=(a&42)!==0?1:pc(a),(a&(e.suspendedLanes|t))!==0?0:a}function pc(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function gc(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function fp(){var e=Q.p;return e!==0?e:(e=window.event,e===void 0?32:Jy(e.type))}function dp(e,t){var a=Q.p;try{return Q.p=e,t()}finally{Q.p=a}}var kn=Math.random().toString(36).slice(2),Ut="__reactFiber$"+kn,Wt="__reactProps$"+kn,Wr="__reactContainer$"+kn,yc="__reactEvents$"+kn,QS="__reactListeners$"+kn,KS="__reactHandles$"+kn,hp="__reactResources$"+kn,dl="__reactMarker$"+kn;function vc(e){delete e[Ut],delete e[Wt],delete e[yc],delete e[QS],delete e[KS]}function Ir(e){var t=e[Ut];if(t)return t;for(var a=e.parentNode;a;){if(t=a[Wr]||a[Ut]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=Ry(e);e!==null;){if(a=e[Ut])return a;e=Ry(e)}return t}e=a,a=e.parentNode}return null}function ei(e){if(e=e[Ut]||e[Wr]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function hl(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(s(33))}function ti(e){var t=e[hp];return t||(t=e[hp]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function kt(e){e[dl]=!0}var mp=new Set,pp={};function mr(e,t){ai(e,t),ai(e+"Capture",t)}function ai(e,t){for(pp[e]=t,e=0;e<t.length;e++)mp.add(t[e])}var FS=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),gp={},yp={};function JS(e){return ul.call(yp,e)?!0:ul.call(gp,e)?!1:FS.test(e)?yp[e]=!0:(gp[e]=!0,!1)}function $s(e,t,a){if(JS(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var i=t.toLowerCase().slice(0,5);if(i!=="data-"&&i!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function Xs(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+a)}}function nn(e,t,a,i){if(i===null)e.removeAttribute(a);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+i)}}function Sa(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function vp(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function PS(e,t,a){var i=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var o=i.get,c=i.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(h){a=""+h,c.call(this,h)}}),Object.defineProperty(e,t,{enumerable:i.enumerable}),{getValue:function(){return a},setValue:function(h){a=""+h},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function bc(e){if(!e._valueTracker){var t=vp(e)?"checked":"value";e._valueTracker=PS(e,t,""+e[t])}}function bp(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),i="";return e&&(i=vp(e)?e.checked?"true":"false":e.value),e=i,e!==a?(t.setValue(e),!0):!1}function Qs(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}}var WS=/[\n"\\]/g;function wa(e){return e.replace(WS,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function xc(e,t,a,i,o,c,h,g){e.name="",h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?e.type=h:e.removeAttribute("type"),t!=null?h==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Sa(t)):e.value!==""+Sa(t)&&(e.value=""+Sa(t)):h!=="submit"&&h!=="reset"||e.removeAttribute("value"),t!=null?_c(e,h,Sa(t)):a!=null?_c(e,h,Sa(a)):i!=null&&e.removeAttribute("value"),o==null&&c!=null&&(e.defaultChecked=!!c),o!=null&&(e.checked=o&&typeof o!="function"&&typeof o!="symbol"),g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"?e.name=""+Sa(g):e.removeAttribute("name")}function xp(e,t,a,i,o,c,h,g){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||a!=null){if(!(c!=="submit"&&c!=="reset"||t!=null)){bc(e);return}a=a!=null?""+Sa(a):"",t=t!=null?""+Sa(t):a,g||t===e.value||(e.value=t),e.defaultValue=t}i=i??o,i=typeof i!="function"&&typeof i!="symbol"&&!!i,e.checked=g?e.checked:!!i,e.defaultChecked=!!i,h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(e.name=h),bc(e)}function _c(e,t,a){t==="number"&&Qs(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function ni(e,t,a,i){if(e=e.options,t){t={};for(var o=0;o<a.length;o++)t["$"+a[o]]=!0;for(a=0;a<e.length;a++)o=t.hasOwnProperty("$"+e[a].value),e[a].selected!==o&&(e[a].selected=o),o&&i&&(e[a].defaultSelected=!0)}else{for(a=""+Sa(a),t=null,o=0;o<e.length;o++){if(e[o].value===a){e[o].selected=!0,i&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function _p(e,t,a){if(t!=null&&(t=""+Sa(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+Sa(a):""}function Sp(e,t,a,i){if(t==null){if(i!=null){if(a!=null)throw Error(s(92));if(le(i)){if(1<i.length)throw Error(s(93));i=i[0]}a=i}a==null&&(a=""),t=a}a=Sa(t),e.defaultValue=a,i=e.textContent,i===a&&i!==""&&i!==null&&(e.value=i),bc(e)}function ri(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var IS=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function wp(e,t,a){var i=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?i?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":i?e.setProperty(t,a):typeof a!="number"||a===0||IS.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function Ap(e,t,a){if(t!=null&&typeof t!="object")throw Error(s(62));if(e=e.style,a!=null){for(var i in a)!a.hasOwnProperty(i)||t!=null&&t.hasOwnProperty(i)||(i.indexOf("--")===0?e.setProperty(i,""):i==="float"?e.cssFloat="":e[i]="");for(var o in t)i=t[o],t.hasOwnProperty(o)&&a[o]!==i&&wp(e,o,i)}else for(var c in t)t.hasOwnProperty(c)&&wp(e,c,t[c])}function Sc(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var e2=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),t2=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Ks(e){return t2.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function rn(){}var wc=null;function Ac(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ii=null,li=null;function Cp(e){var t=ei(e);if(t&&(e=t.stateNode)){var a=e[Wt]||null;e:switch(e=t.stateNode,t.type){case"input":if(xc(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+wa(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var i=a[t];if(i!==e&&i.form===e.form){var o=i[Wt]||null;if(!o)throw Error(s(90));xc(i,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(t=0;t<a.length;t++)i=a[t],i.form===e.form&&bp(i)}break e;case"textarea":_p(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&ni(e,!!a.multiple,t,!1)}}}var Cc=!1;function Tp(e,t,a){if(Cc)return e(t,a);Cc=!0;try{var i=e(t);return i}finally{if(Cc=!1,(ii!==null||li!==null)&&(Uo(),ii&&(t=ii,e=li,li=ii=null,Cp(t),e)))for(t=0;t<e.length;t++)Cp(e[t])}}function ml(e,t){var a=e.stateNode;if(a===null)return null;var i=a[Wt]||null;if(i===null)return null;a=i[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(i=!i.disabled)||(e=e.type,i=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!i;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(s(231,t,typeof a));return a}var ln=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Tc=!1;if(ln)try{var pl={};Object.defineProperty(pl,"passive",{get:function(){Tc=!0}}),window.addEventListener("test",pl,pl),window.removeEventListener("test",pl,pl)}catch{Tc=!1}var jn=null,Ec=null,Fs=null;function Ep(){if(Fs)return Fs;var e,t=Ec,a=t.length,i,o="value"in jn?jn.value:jn.textContent,c=o.length;for(e=0;e<a&&t[e]===o[e];e++);var h=a-e;for(i=1;i<=h&&t[a-i]===o[c-i];i++);return Fs=o.slice(e,1<i?1-i:void 0)}function Js(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Ps(){return!0}function Op(){return!1}function It(e){function t(a,i,o,c,h){this._reactName=a,this._targetInst=o,this.type=i,this.nativeEvent=c,this.target=h,this.currentTarget=null;for(var g in e)e.hasOwnProperty(g)&&(a=e[g],this[g]=a?a(c):c[g]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?Ps:Op,this.isPropagationStopped=Op,this}return x(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=Ps)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Ps)},persist:function(){},isPersistent:Ps}),t}var pr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ws=It(pr),gl=x({},pr,{view:0,detail:0}),a2=It(gl),Oc,zc,yl,Is=x({},gl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:kc,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==yl&&(yl&&e.type==="mousemove"?(Oc=e.screenX-yl.screenX,zc=e.screenY-yl.screenY):zc=Oc=0,yl=e),Oc)},movementY:function(e){return"movementY"in e?e.movementY:zc}}),zp=It(Is),n2=x({},Is,{dataTransfer:0}),r2=It(n2),i2=x({},gl,{relatedTarget:0}),Nc=It(i2),l2=x({},pr,{animationName:0,elapsedTime:0,pseudoElement:0}),s2=It(l2),o2=x({},pr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),u2=It(o2),c2=x({},pr,{data:0}),Np=It(c2),f2={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},d2={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},h2={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function m2(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=h2[e])?!!t[e]:!1}function kc(){return m2}var p2=x({},gl,{key:function(e){if(e.key){var t=f2[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Js(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?d2[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:kc,charCode:function(e){return e.type==="keypress"?Js(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Js(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),g2=It(p2),y2=x({},Is,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),kp=It(y2),v2=x({},gl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:kc}),b2=It(v2),x2=x({},pr,{propertyName:0,elapsedTime:0,pseudoElement:0}),_2=It(x2),S2=x({},Is,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),w2=It(S2),A2=x({},pr,{newState:0,oldState:0}),C2=It(A2),T2=[9,13,27,32],jc=ln&&"CompositionEvent"in window,vl=null;ln&&"documentMode"in document&&(vl=document.documentMode);var E2=ln&&"TextEvent"in window&&!vl,jp=ln&&(!jc||vl&&8<vl&&11>=vl),Mp=" ",Rp=!1;function Dp(e,t){switch(e){case"keyup":return T2.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Up(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var si=!1;function O2(e,t){switch(e){case"compositionend":return Up(t);case"keypress":return t.which!==32?null:(Rp=!0,Mp);case"textInput":return e=t.data,e===Mp&&Rp?null:e;default:return null}}function z2(e,t){if(si)return e==="compositionend"||!jc&&Dp(e,t)?(e=Ep(),Fs=Ec=jn=null,si=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return jp&&t.locale!=="ko"?null:t.data;default:return null}}var N2={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Bp(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!N2[e.type]:t==="textarea"}function Lp(e,t,a,i){ii?li?li.push(i):li=[i]:ii=i,t=Go(t,"onChange"),0<t.length&&(a=new Ws("onChange","change",null,a,i),e.push({event:a,listeners:t}))}var bl=null,xl=null;function k2(e){xy(e,0)}function eo(e){var t=hl(e);if(bp(t))return e}function Vp(e,t){if(e==="change")return t}var Hp=!1;if(ln){var Mc;if(ln){var Rc="oninput"in document;if(!Rc){var qp=document.createElement("div");qp.setAttribute("oninput","return;"),Rc=typeof qp.oninput=="function"}Mc=Rc}else Mc=!1;Hp=Mc&&(!document.documentMode||9<document.documentMode)}function Zp(){bl&&(bl.detachEvent("onpropertychange",Gp),xl=bl=null)}function Gp(e){if(e.propertyName==="value"&&eo(xl)){var t=[];Lp(t,xl,e,Ac(e)),Tp(k2,t)}}function j2(e,t,a){e==="focusin"?(Zp(),bl=t,xl=a,bl.attachEvent("onpropertychange",Gp)):e==="focusout"&&Zp()}function M2(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return eo(xl)}function R2(e,t){if(e==="click")return eo(t)}function D2(e,t){if(e==="input"||e==="change")return eo(t)}function U2(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var ca=typeof Object.is=="function"?Object.is:U2;function _l(e,t){if(ca(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),i=Object.keys(t);if(a.length!==i.length)return!1;for(i=0;i<a.length;i++){var o=a[i];if(!ul.call(t,o)||!ca(e[o],t[o]))return!1}return!0}function Yp(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function $p(e,t){var a=Yp(e);e=0;for(var i;a;){if(a.nodeType===3){if(i=e+a.textContent.length,e<=t&&i>=t)return{node:a,offset:t-e};e=i}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=Yp(a)}}function Xp(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Xp(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Qp(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Qs(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=Qs(e.document)}return t}function Dc(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")}var B2=ln&&"documentMode"in document&&11>=document.documentMode,oi=null,Uc=null,Sl=null,Bc=!1;function Kp(e,t,a){var i=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Bc||oi==null||oi!==Qs(i)||(i=oi,"selectionStart"in i&&Dc(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),Sl&&_l(Sl,i)||(Sl=i,i=Go(Uc,"onSelect"),0<i.length&&(t=new Ws("onSelect","select",null,t,a),e.push({event:t,listeners:i}),t.target=oi)))}function gr(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var ui={animationend:gr("Animation","AnimationEnd"),animationiteration:gr("Animation","AnimationIteration"),animationstart:gr("Animation","AnimationStart"),transitionrun:gr("Transition","TransitionRun"),transitionstart:gr("Transition","TransitionStart"),transitioncancel:gr("Transition","TransitionCancel"),transitionend:gr("Transition","TransitionEnd")},Lc={},Fp={};ln&&(Fp=document.createElement("div").style,"AnimationEvent"in window||(delete ui.animationend.animation,delete ui.animationiteration.animation,delete ui.animationstart.animation),"TransitionEvent"in window||delete ui.transitionend.transition);function yr(e){if(Lc[e])return Lc[e];if(!ui[e])return e;var t=ui[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in Fp)return Lc[e]=t[a];return e}var Jp=yr("animationend"),Pp=yr("animationiteration"),Wp=yr("animationstart"),L2=yr("transitionrun"),V2=yr("transitionstart"),H2=yr("transitioncancel"),Ip=yr("transitionend"),eg=new Map,Vc="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Vc.push("scrollEnd");function Ua(e,t){eg.set(e,t),mr(t,[e])}var to=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Aa=[],ci=0,Hc=0;function ao(){for(var e=ci,t=Hc=ci=0;t<e;){var a=Aa[t];Aa[t++]=null;var i=Aa[t];Aa[t++]=null;var o=Aa[t];Aa[t++]=null;var c=Aa[t];if(Aa[t++]=null,i!==null&&o!==null){var h=i.pending;h===null?o.next=o:(o.next=h.next,h.next=o),i.pending=o}c!==0&&tg(a,o,c)}}function no(e,t,a,i){Aa[ci++]=e,Aa[ci++]=t,Aa[ci++]=a,Aa[ci++]=i,Hc|=i,e.lanes|=i,e=e.alternate,e!==null&&(e.lanes|=i)}function qc(e,t,a,i){return no(e,t,a,i),ro(e)}function vr(e,t){return no(e,null,null,t),ro(e)}function tg(e,t,a){e.lanes|=a;var i=e.alternate;i!==null&&(i.lanes|=a);for(var o=!1,c=e.return;c!==null;)c.childLanes|=a,i=c.alternate,i!==null&&(i.childLanes|=a),c.tag===22&&(e=c.stateNode,e===null||e._visibility&1||(o=!0)),e=c,c=c.return;return e.tag===3?(c=e.stateNode,o&&t!==null&&(o=31-Dt(a),e=c.hiddenUpdates,i=e[o],i===null?e[o]=[t]:i.push(t),t.lane=a|536870912),c):null}function ro(e){if(50<Yl)throw Yl=0,Pf=null,Error(s(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var fi={};function q2(e,t,a,i){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function fa(e,t,a,i){return new q2(e,t,a,i)}function Zc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function sn(e,t){var a=e.alternate;return a===null?(a=fa(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function ag(e,t){e.flags&=65011714;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function io(e,t,a,i,o,c){var h=0;if(i=e,typeof e=="function")Zc(e)&&(h=1);else if(typeof e=="string")h=X5(e,a,ue.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case je:return e=fa(31,a,t,o),e.elementType=je,e.lanes=c,e;case C:return br(a.children,o,c,t);case Z:h=8,o|=24;break;case I:return e=fa(12,a,t,o|2),e.elementType=I,e.lanes=c,e;case L:return e=fa(13,a,t,o),e.elementType=L,e.lanes=c,e;case K:return e=fa(19,a,t,o),e.elementType=K,e.lanes=c,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ae:h=10;break e;case F:h=9;break e;case te:h=11;break e;case J:h=14;break e;case we:h=16,i=null;break e}h=29,a=Error(s(130,e===null?"null":typeof e,"")),i=null}return t=fa(h,a,t,o),t.elementType=e,t.type=i,t.lanes=c,t}function br(e,t,a,i){return e=fa(7,e,i,t),e.lanes=a,e}function Gc(e,t,a){return e=fa(6,e,null,t),e.lanes=a,e}function ng(e){var t=fa(18,null,null,0);return t.stateNode=e,t}function Yc(e,t,a){return t=fa(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var rg=new WeakMap;function Ca(e,t){if(typeof e=="object"&&e!==null){var a=rg.get(e);return a!==void 0?a:(t={value:e,source:t,stack:Vs(t)},rg.set(e,t),t)}return{value:e,source:t,stack:Vs(t)}}var di=[],hi=0,lo=null,wl=0,Ta=[],Ea=0,Mn=null,Xa=1,Qa="";function on(e,t){di[hi++]=wl,di[hi++]=lo,lo=e,wl=t}function ig(e,t,a){Ta[Ea++]=Xa,Ta[Ea++]=Qa,Ta[Ea++]=Mn,Mn=e;var i=Xa;e=Qa;var o=32-Dt(i)-1;i&=~(1<<o),a+=1;var c=32-Dt(t)+o;if(30<c){var h=o-o%5;c=(i&(1<<h)-1).toString(32),i>>=h,o-=h,Xa=1<<32-Dt(t)+o|a<<o|i,Qa=c+e}else Xa=1<<c|a<<o|i,Qa=e}function $c(e){e.return!==null&&(on(e,1),ig(e,1,0))}function Xc(e){for(;e===lo;)lo=di[--hi],di[hi]=null,wl=di[--hi],di[hi]=null;for(;e===Mn;)Mn=Ta[--Ea],Ta[Ea]=null,Qa=Ta[--Ea],Ta[Ea]=null,Xa=Ta[--Ea],Ta[Ea]=null}function lg(e,t){Ta[Ea++]=Xa,Ta[Ea++]=Qa,Ta[Ea++]=Mn,Xa=t.id,Qa=t.overflow,Mn=e}var Bt=null,lt=null,De=!1,Rn=null,Oa=!1,Qc=Error(s(519));function Dn(e){var t=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Al(Ca(t,e)),Qc}function sg(e){var t=e.stateNode,a=e.type,i=e.memoizedProps;switch(t[Ut]=e,t[Wt]=i,a){case"dialog":ke("cancel",t),ke("close",t);break;case"iframe":case"object":case"embed":ke("load",t);break;case"video":case"audio":for(a=0;a<Xl.length;a++)ke(Xl[a],t);break;case"source":ke("error",t);break;case"img":case"image":case"link":ke("error",t),ke("load",t);break;case"details":ke("toggle",t);break;case"input":ke("invalid",t),xp(t,i.value,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name,!0);break;case"select":ke("invalid",t);break;case"textarea":ke("invalid",t),Sp(t,i.value,i.defaultValue,i.children)}a=i.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||i.suppressHydrationWarning===!0||Ay(t.textContent,a)?(i.popover!=null&&(ke("beforetoggle",t),ke("toggle",t)),i.onScroll!=null&&ke("scroll",t),i.onScrollEnd!=null&&ke("scrollend",t),i.onClick!=null&&(t.onclick=rn),t=!0):t=!1,t||Dn(e,!0)}function og(e){for(Bt=e.return;Bt;)switch(Bt.tag){case 5:case 31:case 13:Oa=!1;return;case 27:case 3:Oa=!0;return;default:Bt=Bt.return}}function mi(e){if(e!==Bt)return!1;if(!De)return og(e),De=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||dd(e.type,e.memoizedProps)),a=!a),a&&lt&&Dn(e),og(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));lt=My(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));lt=My(e)}else t===27?(t=lt,Fn(e.type)?(e=yd,yd=null,lt=e):lt=t):lt=Bt?Na(e.stateNode.nextSibling):null;return!0}function xr(){lt=Bt=null,De=!1}function Kc(){var e=Rn;return e!==null&&(na===null?na=e:na.push.apply(na,e),Rn=null),e}function Al(e){Rn===null?Rn=[e]:Rn.push(e)}var Fc=E(null),_r=null,un=null;function Un(e,t,a){ne(Fc,t._currentValue),t._currentValue=a}function cn(e){e._currentValue=Fc.current,Y(Fc)}function Jc(e,t,a){for(;e!==null;){var i=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,i!==null&&(i.childLanes|=t)):i!==null&&(i.childLanes&t)!==t&&(i.childLanes|=t),e===a)break;e=e.return}}function Pc(e,t,a,i){var o=e.child;for(o!==null&&(o.return=e);o!==null;){var c=o.dependencies;if(c!==null){var h=o.child;c=c.firstContext;e:for(;c!==null;){var g=c;c=o;for(var w=0;w<t.length;w++)if(g.context===t[w]){c.lanes|=a,g=c.alternate,g!==null&&(g.lanes|=a),Jc(c.return,a,e),i||(h=null);break e}c=g.next}}else if(o.tag===18){if(h=o.return,h===null)throw Error(s(341));h.lanes|=a,c=h.alternate,c!==null&&(c.lanes|=a),Jc(h,a,e),h=null}else h=o.child;if(h!==null)h.return=o;else for(h=o;h!==null;){if(h===e){h=null;break}if(o=h.sibling,o!==null){o.return=h.return,h=o;break}h=h.return}o=h}}function pi(e,t,a,i){e=null;for(var o=t,c=!1;o!==null;){if(!c){if((o.flags&524288)!==0)c=!0;else if((o.flags&262144)!==0)break}if(o.tag===10){var h=o.alternate;if(h===null)throw Error(s(387));if(h=h.memoizedProps,h!==null){var g=o.type;ca(o.pendingProps.value,h.value)||(e!==null?e.push(g):e=[g])}}else if(o===Be.current){if(h=o.alternate,h===null)throw Error(s(387));h.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(e!==null?e.push(Pl):e=[Pl])}o=o.return}e!==null&&Pc(t,e,a,i),t.flags|=262144}function so(e){for(e=e.firstContext;e!==null;){if(!ca(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Sr(e){_r=e,un=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Lt(e){return ug(_r,e)}function oo(e,t){return _r===null&&Sr(e),ug(e,t)}function ug(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},un===null){if(e===null)throw Error(s(308));un=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else un=un.next=t;return a}var Z2=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,i){e.push(i)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},G2=n.unstable_scheduleCallback,Y2=n.unstable_NormalPriority,Ct={$$typeof:ae,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Wc(){return{controller:new Z2,data:new Map,refCount:0}}function Cl(e){e.refCount--,e.refCount===0&&G2(Y2,function(){e.controller.abort()})}var Tl=null,Ic=0,gi=0,yi=null;function $2(e,t){if(Tl===null){var a=Tl=[];Ic=0,gi=nd(),yi={status:"pending",value:void 0,then:function(i){a.push(i)}}}return Ic++,t.then(cg,cg),t}function cg(){if(--Ic===0&&Tl!==null){yi!==null&&(yi.status="fulfilled");var e=Tl;Tl=null,gi=0,yi=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function X2(e,t){var a=[],i={status:"pending",value:null,reason:null,then:function(o){a.push(o)}};return e.then(function(){i.status="fulfilled",i.value=t;for(var o=0;o<a.length;o++)(0,a[o])(t)},function(o){for(i.status="rejected",i.reason=o,o=0;o<a.length;o++)(0,a[o])(void 0)}),i}var fg=N.S;N.S=function(e,t){K0=R(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&$2(e,t),fg!==null&&fg(e,t)};var wr=E(null);function ef(){var e=wr.current;return e!==null?e:nt.pooledCache}function uo(e,t){t===null?ne(wr,wr.current):ne(wr,t.pool)}function dg(){var e=ef();return e===null?null:{parent:Ct._currentValue,pool:e}}var vi=Error(s(460)),tf=Error(s(474)),co=Error(s(542)),fo={then:function(){}};function hg(e){return e=e.status,e==="fulfilled"||e==="rejected"}function mg(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(rn,rn),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,gg(e),e;default:if(typeof t.status=="string")t.then(rn,rn);else{if(e=nt,e!==null&&100<e.shellSuspendCounter)throw Error(s(482));e=t,e.status="pending",e.then(function(i){if(t.status==="pending"){var o=t;o.status="fulfilled",o.value=i}},function(i){if(t.status==="pending"){var o=t;o.status="rejected",o.reason=i}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,gg(e),e}throw Cr=t,vi}}function Ar(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(Cr=a,vi):a}}var Cr=null;function pg(){if(Cr===null)throw Error(s(459));var e=Cr;return Cr=null,e}function gg(e){if(e===vi||e===co)throw Error(s(483))}var bi=null,El=0;function ho(e){var t=El;return El+=1,bi===null&&(bi=[]),mg(bi,e,t)}function Ol(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function mo(e,t){throw t.$$typeof===O?Error(s(525)):(e=Object.prototype.toString.call(t),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function yg(e){function t(z,T){if(e){var j=z.deletions;j===null?(z.deletions=[T],z.flags|=16):j.push(T)}}function a(z,T){if(!e)return null;for(;T!==null;)t(z,T),T=T.sibling;return null}function i(z){for(var T=new Map;z!==null;)z.key!==null?T.set(z.key,z):T.set(z.index,z),z=z.sibling;return T}function o(z,T){return z=sn(z,T),z.index=0,z.sibling=null,z}function c(z,T,j){return z.index=j,e?(j=z.alternate,j!==null?(j=j.index,j<T?(z.flags|=67108866,T):j):(z.flags|=67108866,T)):(z.flags|=1048576,T)}function h(z){return e&&z.alternate===null&&(z.flags|=67108866),z}function g(z,T,j,q){return T===null||T.tag!==6?(T=Gc(j,z.mode,q),T.return=z,T):(T=o(T,j),T.return=z,T)}function w(z,T,j,q){var pe=j.type;return pe===C?H(z,T,j.props.children,q,j.key):T!==null&&(T.elementType===pe||typeof pe=="object"&&pe!==null&&pe.$$typeof===we&&Ar(pe)===T.type)?(T=o(T,j.props),Ol(T,j),T.return=z,T):(T=io(j.type,j.key,j.props,null,z.mode,q),Ol(T,j),T.return=z,T)}function M(z,T,j,q){return T===null||T.tag!==4||T.stateNode.containerInfo!==j.containerInfo||T.stateNode.implementation!==j.implementation?(T=Yc(j,z.mode,q),T.return=z,T):(T=o(T,j.children||[]),T.return=z,T)}function H(z,T,j,q,pe){return T===null||T.tag!==7?(T=br(j,z.mode,q,pe),T.return=z,T):(T=o(T,j),T.return=z,T)}function G(z,T,j){if(typeof T=="string"&&T!==""||typeof T=="number"||typeof T=="bigint")return T=Gc(""+T,z.mode,j),T.return=z,T;if(typeof T=="object"&&T!==null){switch(T.$$typeof){case S:return j=io(T.type,T.key,T.props,null,z.mode,j),Ol(j,T),j.return=z,j;case U:return T=Yc(T,z.mode,j),T.return=z,T;case we:return T=Ar(T),G(z,T,j)}if(le(T)||v(T))return T=br(T,z.mode,j,null),T.return=z,T;if(typeof T.then=="function")return G(z,ho(T),j);if(T.$$typeof===ae)return G(z,oo(z,T),j);mo(z,T)}return null}function D(z,T,j,q){var pe=T!==null?T.key:null;if(typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint")return pe!==null?null:g(z,T,""+j,q);if(typeof j=="object"&&j!==null){switch(j.$$typeof){case S:return j.key===pe?w(z,T,j,q):null;case U:return j.key===pe?M(z,T,j,q):null;case we:return j=Ar(j),D(z,T,j,q)}if(le(j)||v(j))return pe!==null?null:H(z,T,j,q,null);if(typeof j.then=="function")return D(z,T,ho(j),q);if(j.$$typeof===ae)return D(z,T,oo(z,j),q);mo(z,j)}return null}function B(z,T,j,q,pe){if(typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint")return z=z.get(j)||null,g(T,z,""+q,pe);if(typeof q=="object"&&q!==null){switch(q.$$typeof){case S:return z=z.get(q.key===null?j:q.key)||null,w(T,z,q,pe);case U:return z=z.get(q.key===null?j:q.key)||null,M(T,z,q,pe);case we:return q=Ar(q),B(z,T,j,q,pe)}if(le(q)||v(q))return z=z.get(j)||null,H(T,z,q,pe,null);if(typeof q.then=="function")return B(z,T,j,ho(q),pe);if(q.$$typeof===ae)return B(z,T,j,oo(T,q),pe);mo(T,q)}return null}function ce(z,T,j,q){for(var pe=null,qe=null,he=T,Te=T=0,Re=null;he!==null&&Te<j.length;Te++){he.index>Te?(Re=he,he=null):Re=he.sibling;var Ze=D(z,he,j[Te],q);if(Ze===null){he===null&&(he=Re);break}e&&he&&Ze.alternate===null&&t(z,he),T=c(Ze,T,Te),qe===null?pe=Ze:qe.sibling=Ze,qe=Ze,he=Re}if(Te===j.length)return a(z,he),De&&on(z,Te),pe;if(he===null){for(;Te<j.length;Te++)he=G(z,j[Te],q),he!==null&&(T=c(he,T,Te),qe===null?pe=he:qe.sibling=he,qe=he);return De&&on(z,Te),pe}for(he=i(he);Te<j.length;Te++)Re=B(he,z,Te,j[Te],q),Re!==null&&(e&&Re.alternate!==null&&he.delete(Re.key===null?Te:Re.key),T=c(Re,T,Te),qe===null?pe=Re:qe.sibling=Re,qe=Re);return e&&he.forEach(function(er){return t(z,er)}),De&&on(z,Te),pe}function ye(z,T,j,q){if(j==null)throw Error(s(151));for(var pe=null,qe=null,he=T,Te=T=0,Re=null,Ze=j.next();he!==null&&!Ze.done;Te++,Ze=j.next()){he.index>Te?(Re=he,he=null):Re=he.sibling;var er=D(z,he,Ze.value,q);if(er===null){he===null&&(he=Re);break}e&&he&&er.alternate===null&&t(z,he),T=c(er,T,Te),qe===null?pe=er:qe.sibling=er,qe=er,he=Re}if(Ze.done)return a(z,he),De&&on(z,Te),pe;if(he===null){for(;!Ze.done;Te++,Ze=j.next())Ze=G(z,Ze.value,q),Ze!==null&&(T=c(Ze,T,Te),qe===null?pe=Ze:qe.sibling=Ze,qe=Ze);return De&&on(z,Te),pe}for(he=i(he);!Ze.done;Te++,Ze=j.next())Ze=B(he,z,Te,Ze.value,q),Ze!==null&&(e&&Ze.alternate!==null&&he.delete(Ze.key===null?Te:Ze.key),T=c(Ze,T,Te),qe===null?pe=Ze:qe.sibling=Ze,qe=Ze);return e&&he.forEach(function(nw){return t(z,nw)}),De&&on(z,Te),pe}function at(z,T,j,q){if(typeof j=="object"&&j!==null&&j.type===C&&j.key===null&&(j=j.props.children),typeof j=="object"&&j!==null){switch(j.$$typeof){case S:e:{for(var pe=j.key;T!==null;){if(T.key===pe){if(pe=j.type,pe===C){if(T.tag===7){a(z,T.sibling),q=o(T,j.props.children),q.return=z,z=q;break e}}else if(T.elementType===pe||typeof pe=="object"&&pe!==null&&pe.$$typeof===we&&Ar(pe)===T.type){a(z,T.sibling),q=o(T,j.props),Ol(q,j),q.return=z,z=q;break e}a(z,T);break}else t(z,T);T=T.sibling}j.type===C?(q=br(j.props.children,z.mode,q,j.key),q.return=z,z=q):(q=io(j.type,j.key,j.props,null,z.mode,q),Ol(q,j),q.return=z,z=q)}return h(z);case U:e:{for(pe=j.key;T!==null;){if(T.key===pe)if(T.tag===4&&T.stateNode.containerInfo===j.containerInfo&&T.stateNode.implementation===j.implementation){a(z,T.sibling),q=o(T,j.children||[]),q.return=z,z=q;break e}else{a(z,T);break}else t(z,T);T=T.sibling}q=Yc(j,z.mode,q),q.return=z,z=q}return h(z);case we:return j=Ar(j),at(z,T,j,q)}if(le(j))return ce(z,T,j,q);if(v(j)){if(pe=v(j),typeof pe!="function")throw Error(s(150));return j=pe.call(j),ye(z,T,j,q)}if(typeof j.then=="function")return at(z,T,ho(j),q);if(j.$$typeof===ae)return at(z,T,oo(z,j),q);mo(z,j)}return typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint"?(j=""+j,T!==null&&T.tag===6?(a(z,T.sibling),q=o(T,j),q.return=z,z=q):(a(z,T),q=Gc(j,z.mode,q),q.return=z,z=q),h(z)):a(z,T)}return function(z,T,j,q){try{El=0;var pe=at(z,T,j,q);return bi=null,pe}catch(he){if(he===vi||he===co)throw he;var qe=fa(29,he,null,z.mode);return qe.lanes=q,qe.return=z,qe}finally{}}}var Tr=yg(!0),vg=yg(!1),Bn=!1;function af(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function nf(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Ln(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Vn(e,t,a){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,($e&2)!==0){var o=i.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),i.pending=t,t=ro(e),tg(e,null,a),t}return no(e,i,t,a),ro(e)}function zl(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var i=t.lanes;i&=e.pendingLanes,a|=i,t.lanes=a,up(e,a)}}function rf(e,t){var a=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,a===i)){var o=null,c=null;if(a=a.firstBaseUpdate,a!==null){do{var h={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};c===null?o=c=h:c=c.next=h,a=a.next}while(a!==null);c===null?o=c=t:c=c.next=t}else o=c=t;a={baseState:i.baseState,firstBaseUpdate:o,lastBaseUpdate:c,shared:i.shared,callbacks:i.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var lf=!1;function Nl(){if(lf){var e=yi;if(e!==null)throw e}}function kl(e,t,a,i){lf=!1;var o=e.updateQueue;Bn=!1;var c=o.firstBaseUpdate,h=o.lastBaseUpdate,g=o.shared.pending;if(g!==null){o.shared.pending=null;var w=g,M=w.next;w.next=null,h===null?c=M:h.next=M,h=w;var H=e.alternate;H!==null&&(H=H.updateQueue,g=H.lastBaseUpdate,g!==h&&(g===null?H.firstBaseUpdate=M:g.next=M,H.lastBaseUpdate=w))}if(c!==null){var G=o.baseState;h=0,H=M=w=null,g=c;do{var D=g.lane&-536870913,B=D!==g.lane;if(B?(Me&D)===D:(i&D)===D){D!==0&&D===gi&&(lf=!0),H!==null&&(H=H.next={lane:0,tag:g.tag,payload:g.payload,callback:null,next:null});e:{var ce=e,ye=g;D=t;var at=a;switch(ye.tag){case 1:if(ce=ye.payload,typeof ce=="function"){G=ce.call(at,G,D);break e}G=ce;break e;case 3:ce.flags=ce.flags&-65537|128;case 0:if(ce=ye.payload,D=typeof ce=="function"?ce.call(at,G,D):ce,D==null)break e;G=x({},G,D);break e;case 2:Bn=!0}}D=g.callback,D!==null&&(e.flags|=64,B&&(e.flags|=8192),B=o.callbacks,B===null?o.callbacks=[D]:B.push(D))}else B={lane:D,tag:g.tag,payload:g.payload,callback:g.callback,next:null},H===null?(M=H=B,w=G):H=H.next=B,h|=D;if(g=g.next,g===null){if(g=o.shared.pending,g===null)break;B=g,g=B.next,B.next=null,o.lastBaseUpdate=B,o.shared.pending=null}}while(!0);H===null&&(w=G),o.baseState=w,o.firstBaseUpdate=M,o.lastBaseUpdate=H,c===null&&(o.shared.lanes=0),Yn|=h,e.lanes=h,e.memoizedState=G}}function bg(e,t){if(typeof e!="function")throw Error(s(191,e));e.call(t)}function xg(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)bg(a[e],t)}var xi=E(null),po=E(0);function _g(e,t){e=bn,ne(po,e),ne(xi,t),bn=e|t.baseLanes}function sf(){ne(po,bn),ne(xi,xi.current)}function of(){bn=po.current,Y(xi),Y(po)}var da=E(null),za=null;function Hn(e){var t=e.alternate;ne(vt,vt.current&1),ne(da,e),za===null&&(t===null||xi.current!==null||t.memoizedState!==null)&&(za=e)}function uf(e){ne(vt,vt.current),ne(da,e),za===null&&(za=e)}function Sg(e){e.tag===22?(ne(vt,vt.current),ne(da,e),za===null&&(za=e)):qn()}function qn(){ne(vt,vt.current),ne(da,da.current)}function ha(e){Y(da),za===e&&(za=null),Y(vt)}var vt=E(0);function go(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||pd(a)||gd(a)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var fn=0,Ce=null,et=null,Tt=null,yo=!1,_i=!1,Er=!1,vo=0,jl=0,Si=null,Q2=0;function mt(){throw Error(s(321))}function cf(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!ca(e[a],t[a]))return!1;return!0}function ff(e,t,a,i,o,c){return fn=c,Ce=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,N.H=e===null||e.memoizedState===null?i0:Tf,Er=!1,c=a(i,o),Er=!1,_i&&(c=Ag(t,a,i,o)),wg(e),c}function wg(e){N.H=Dl;var t=et!==null&&et.next!==null;if(fn=0,Tt=et=Ce=null,yo=!1,jl=0,Si=null,t)throw Error(s(300));e===null||Et||(e=e.dependencies,e!==null&&so(e)&&(Et=!0))}function Ag(e,t,a,i){Ce=e;var o=0;do{if(_i&&(Si=null),jl=0,_i=!1,25<=o)throw Error(s(301));if(o+=1,Tt=et=null,e.updateQueue!=null){var c=e.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}N.H=l0,c=t(a,i)}while(_i);return c}function K2(){var e=N.H,t=e.useState()[0];return t=typeof t.then=="function"?Ml(t):t,e=e.useState()[0],(et!==null?et.memoizedState:null)!==e&&(Ce.flags|=1024),t}function df(){var e=vo!==0;return vo=0,e}function hf(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function mf(e){if(yo){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}yo=!1}fn=0,Tt=et=Ce=null,_i=!1,jl=vo=0,Si=null}function Kt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Tt===null?Ce.memoizedState=Tt=e:Tt=Tt.next=e,Tt}function bt(){if(et===null){var e=Ce.alternate;e=e!==null?e.memoizedState:null}else e=et.next;var t=Tt===null?Ce.memoizedState:Tt.next;if(t!==null)Tt=t,et=e;else{if(e===null)throw Ce.alternate===null?Error(s(467)):Error(s(310));et=e,e={memoizedState:et.memoizedState,baseState:et.baseState,baseQueue:et.baseQueue,queue:et.queue,next:null},Tt===null?Ce.memoizedState=Tt=e:Tt=Tt.next=e}return Tt}function bo(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ml(e){var t=jl;return jl+=1,Si===null&&(Si=[]),e=mg(Si,e,t),t=Ce,(Tt===null?t.memoizedState:Tt.next)===null&&(t=t.alternate,N.H=t===null||t.memoizedState===null?i0:Tf),e}function xo(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Ml(e);if(e.$$typeof===ae)return Lt(e)}throw Error(s(438,String(e)))}function pf(e){var t=null,a=Ce.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var i=Ce.alternate;i!==null&&(i=i.updateQueue,i!==null&&(i=i.memoCache,i!=null&&(t={data:i.data.map(function(o){return o.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=bo(),Ce.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),i=0;i<e;i++)a[i]=Ie;return t.index++,a}function dn(e,t){return typeof t=="function"?t(e):t}function _o(e){var t=bt();return gf(t,et,e)}function gf(e,t,a){var i=e.queue;if(i===null)throw Error(s(311));i.lastRenderedReducer=a;var o=e.baseQueue,c=i.pending;if(c!==null){if(o!==null){var h=o.next;o.next=c.next,c.next=h}t.baseQueue=o=c,i.pending=null}if(c=e.baseState,o===null)e.memoizedState=c;else{t=o.next;var g=h=null,w=null,M=t,H=!1;do{var G=M.lane&-536870913;if(G!==M.lane?(Me&G)===G:(fn&G)===G){var D=M.revertLane;if(D===0)w!==null&&(w=w.next={lane:0,revertLane:0,gesture:null,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null}),G===gi&&(H=!0);else if((fn&D)===D){M=M.next,D===gi&&(H=!0);continue}else G={lane:0,revertLane:M.revertLane,gesture:null,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null},w===null?(g=w=G,h=c):w=w.next=G,Ce.lanes|=D,Yn|=D;G=M.action,Er&&a(c,G),c=M.hasEagerState?M.eagerState:a(c,G)}else D={lane:G,revertLane:M.revertLane,gesture:M.gesture,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null},w===null?(g=w=D,h=c):w=w.next=D,Ce.lanes|=G,Yn|=G;M=M.next}while(M!==null&&M!==t);if(w===null?h=c:w.next=g,!ca(c,e.memoizedState)&&(Et=!0,H&&(a=yi,a!==null)))throw a;e.memoizedState=c,e.baseState=h,e.baseQueue=w,i.lastRenderedState=c}return o===null&&(i.lanes=0),[e.memoizedState,i.dispatch]}function yf(e){var t=bt(),a=t.queue;if(a===null)throw Error(s(311));a.lastRenderedReducer=e;var i=a.dispatch,o=a.pending,c=t.memoizedState;if(o!==null){a.pending=null;var h=o=o.next;do c=e(c,h.action),h=h.next;while(h!==o);ca(c,t.memoizedState)||(Et=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),a.lastRenderedState=c}return[c,i]}function Cg(e,t,a){var i=Ce,o=bt(),c=De;if(c){if(a===void 0)throw Error(s(407));a=a()}else a=t();var h=!ca((et||o).memoizedState,a);if(h&&(o.memoizedState=a,Et=!0),o=o.queue,xf(Og.bind(null,i,o,e),[e]),o.getSnapshot!==t||h||Tt!==null&&Tt.memoizedState.tag&1){if(i.flags|=2048,wi(9,{destroy:void 0},Eg.bind(null,i,o,a,t),null),nt===null)throw Error(s(349));c||(fn&127)!==0||Tg(i,t,a)}return a}function Tg(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=Ce.updateQueue,t===null?(t=bo(),Ce.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function Eg(e,t,a,i){t.value=a,t.getSnapshot=i,zg(t)&&Ng(e)}function Og(e,t,a){return a(function(){zg(t)&&Ng(e)})}function zg(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!ca(e,a)}catch{return!0}}function Ng(e){var t=vr(e,2);t!==null&&ra(t,e,2)}function vf(e){var t=Kt();if(typeof e=="function"){var a=e;if(e=a(),Er){_a(!0);try{a()}finally{_a(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:dn,lastRenderedState:e},t}function kg(e,t,a,i){return e.baseState=a,gf(e,et,typeof i=="function"?i:dn)}function F2(e,t,a,i,o){if(Ao(e))throw Error(s(485));if(e=t.action,e!==null){var c={payload:o,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(h){c.listeners.push(h)}};N.T!==null?a(!0):c.isTransition=!1,i(c),a=t.pending,a===null?(c.next=t.pending=c,jg(t,c)):(c.next=a.next,t.pending=a.next=c)}}function jg(e,t){var a=t.action,i=t.payload,o=e.state;if(t.isTransition){var c=N.T,h={};N.T=h;try{var g=a(o,i),w=N.S;w!==null&&w(h,g),Mg(e,t,g)}catch(M){bf(e,t,M)}finally{c!==null&&h.types!==null&&(c.types=h.types),N.T=c}}else try{c=a(o,i),Mg(e,t,c)}catch(M){bf(e,t,M)}}function Mg(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(i){Rg(e,t,i)},function(i){return bf(e,t,i)}):Rg(e,t,a)}function Rg(e,t,a){t.status="fulfilled",t.value=a,Dg(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,jg(e,a)))}function bf(e,t,a){var i=e.pending;if(e.pending=null,i!==null){i=i.next;do t.status="rejected",t.reason=a,Dg(t),t=t.next;while(t!==i)}e.action=null}function Dg(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Ug(e,t){return t}function Bg(e,t){if(De){var a=nt.formState;if(a!==null){e:{var i=Ce;if(De){if(lt){t:{for(var o=lt,c=Oa;o.nodeType!==8;){if(!c){o=null;break t}if(o=Na(o.nextSibling),o===null){o=null;break t}}c=o.data,o=c==="F!"||c==="F"?o:null}if(o){lt=Na(o.nextSibling),i=o.data==="F!";break e}}Dn(i)}i=!1}i&&(t=a[0])}}return a=Kt(),a.memoizedState=a.baseState=t,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ug,lastRenderedState:t},a.queue=i,a=a0.bind(null,Ce,i),i.dispatch=a,i=vf(!1),c=Cf.bind(null,Ce,!1,i.queue),i=Kt(),o={state:t,dispatch:null,action:e,pending:null},i.queue=o,a=F2.bind(null,Ce,o,c,a),o.dispatch=a,i.memoizedState=e,[t,a,!1]}function Lg(e){var t=bt();return Vg(t,et,e)}function Vg(e,t,a){if(t=gf(e,t,Ug)[0],e=_o(dn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var i=Ml(t)}catch(h){throw h===vi?co:h}else i=t;t=bt();var o=t.queue,c=o.dispatch;return a!==t.memoizedState&&(Ce.flags|=2048,wi(9,{destroy:void 0},J2.bind(null,o,a),null)),[i,c,e]}function J2(e,t){e.action=t}function Hg(e){var t=bt(),a=et;if(a!==null)return Vg(t,a,e);bt(),t=t.memoizedState,a=bt();var i=a.queue.dispatch;return a.memoizedState=e,[t,i,!1]}function wi(e,t,a,i){return e={tag:e,create:a,deps:i,inst:t,next:null},t=Ce.updateQueue,t===null&&(t=bo(),Ce.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(i=a.next,a.next=e,e.next=i,t.lastEffect=e),e}function qg(){return bt().memoizedState}function So(e,t,a,i){var o=Kt();Ce.flags|=e,o.memoizedState=wi(1|t,{destroy:void 0},a,i===void 0?null:i)}function wo(e,t,a,i){var o=bt();i=i===void 0?null:i;var c=o.memoizedState.inst;et!==null&&i!==null&&cf(i,et.memoizedState.deps)?o.memoizedState=wi(t,c,a,i):(Ce.flags|=e,o.memoizedState=wi(1|t,c,a,i))}function Zg(e,t){So(8390656,8,e,t)}function xf(e,t){wo(2048,8,e,t)}function P2(e){Ce.flags|=4;var t=Ce.updateQueue;if(t===null)t=bo(),Ce.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function Gg(e){var t=bt().memoizedState;return P2({ref:t,nextImpl:e}),function(){if(($e&2)!==0)throw Error(s(440));return t.impl.apply(void 0,arguments)}}function Yg(e,t){return wo(4,2,e,t)}function $g(e,t){return wo(4,4,e,t)}function Xg(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Qg(e,t,a){a=a!=null?a.concat([e]):null,wo(4,4,Xg.bind(null,t,e),a)}function _f(){}function Kg(e,t){var a=bt();t=t===void 0?null:t;var i=a.memoizedState;return t!==null&&cf(t,i[1])?i[0]:(a.memoizedState=[e,t],e)}function Fg(e,t){var a=bt();t=t===void 0?null:t;var i=a.memoizedState;if(t!==null&&cf(t,i[1]))return i[0];if(i=e(),Er){_a(!0);try{e()}finally{_a(!1)}}return a.memoizedState=[i,t],i}function Sf(e,t,a){return a===void 0||(fn&1073741824)!==0&&(Me&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=J0(),Ce.lanes|=e,Yn|=e,a)}function Jg(e,t,a,i){return ca(a,t)?a:xi.current!==null?(e=Sf(e,a,i),ca(e,t)||(Et=!0),e):(fn&42)===0||(fn&1073741824)!==0&&(Me&261930)===0?(Et=!0,e.memoizedState=a):(e=J0(),Ce.lanes|=e,Yn|=e,t)}function Pg(e,t,a,i,o){var c=Q.p;Q.p=c!==0&&8>c?c:8;var h=N.T,g={};N.T=g,Cf(e,!1,t,a);try{var w=o(),M=N.S;if(M!==null&&M(g,w),w!==null&&typeof w=="object"&&typeof w.then=="function"){var H=X2(w,i);Rl(e,t,H,ga(e))}else Rl(e,t,i,ga(e))}catch(G){Rl(e,t,{then:function(){},status:"rejected",reason:G},ga())}finally{Q.p=c,h!==null&&g.types!==null&&(h.types=g.types),N.T=h}}function W2(){}function wf(e,t,a,i){if(e.tag!==5)throw Error(s(476));var o=Wg(e).queue;Pg(e,o,t,se,a===null?W2:function(){return Ig(e),a(i)})}function Wg(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:se,baseState:se,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:dn,lastRenderedState:se},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:dn,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Ig(e){var t=Wg(e);t.next===null&&(t=e.alternate.memoizedState),Rl(e,t.next.queue,{},ga())}function Af(){return Lt(Pl)}function e0(){return bt().memoizedState}function t0(){return bt().memoizedState}function I2(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=ga();e=Ln(a);var i=Vn(t,e,a);i!==null&&(ra(i,t,a),zl(i,t,a)),t={cache:Wc()},e.payload=t;return}t=t.return}}function e5(e,t,a){var i=ga();a={lane:i,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Ao(e)?n0(t,a):(a=qc(e,t,a,i),a!==null&&(ra(a,e,i),r0(a,t,i)))}function a0(e,t,a){var i=ga();Rl(e,t,a,i)}function Rl(e,t,a,i){var o={lane:i,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Ao(e))n0(t,o);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var h=t.lastRenderedState,g=c(h,a);if(o.hasEagerState=!0,o.eagerState=g,ca(g,h))return no(e,t,o,0),nt===null&&ao(),!1}catch{}finally{}if(a=qc(e,t,o,i),a!==null)return ra(a,e,i),r0(a,t,i),!0}return!1}function Cf(e,t,a,i){if(i={lane:2,revertLane:nd(),gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},Ao(e)){if(t)throw Error(s(479))}else t=qc(e,a,i,2),t!==null&&ra(t,e,2)}function Ao(e){var t=e.alternate;return e===Ce||t!==null&&t===Ce}function n0(e,t){_i=yo=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function r0(e,t,a){if((a&4194048)!==0){var i=t.lanes;i&=e.pendingLanes,a|=i,t.lanes=a,up(e,a)}}var Dl={readContext:Lt,use:xo,useCallback:mt,useContext:mt,useEffect:mt,useImperativeHandle:mt,useLayoutEffect:mt,useInsertionEffect:mt,useMemo:mt,useReducer:mt,useRef:mt,useState:mt,useDebugValue:mt,useDeferredValue:mt,useTransition:mt,useSyncExternalStore:mt,useId:mt,useHostTransitionStatus:mt,useFormState:mt,useActionState:mt,useOptimistic:mt,useMemoCache:mt,useCacheRefresh:mt};Dl.useEffectEvent=mt;var i0={readContext:Lt,use:xo,useCallback:function(e,t){return Kt().memoizedState=[e,t===void 0?null:t],e},useContext:Lt,useEffect:Zg,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,So(4194308,4,Xg.bind(null,t,e),a)},useLayoutEffect:function(e,t){return So(4194308,4,e,t)},useInsertionEffect:function(e,t){So(4,2,e,t)},useMemo:function(e,t){var a=Kt();t=t===void 0?null:t;var i=e();if(Er){_a(!0);try{e()}finally{_a(!1)}}return a.memoizedState=[i,t],i},useReducer:function(e,t,a){var i=Kt();if(a!==void 0){var o=a(t);if(Er){_a(!0);try{a(t)}finally{_a(!1)}}}else o=t;return i.memoizedState=i.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},i.queue=e,e=e.dispatch=e5.bind(null,Ce,e),[i.memoizedState,e]},useRef:function(e){var t=Kt();return e={current:e},t.memoizedState=e},useState:function(e){e=vf(e);var t=e.queue,a=a0.bind(null,Ce,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:_f,useDeferredValue:function(e,t){var a=Kt();return Sf(a,e,t)},useTransition:function(){var e=vf(!1);return e=Pg.bind(null,Ce,e.queue,!0,!1),Kt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var i=Ce,o=Kt();if(De){if(a===void 0)throw Error(s(407));a=a()}else{if(a=t(),nt===null)throw Error(s(349));(Me&127)!==0||Tg(i,t,a)}o.memoizedState=a;var c={value:a,getSnapshot:t};return o.queue=c,Zg(Og.bind(null,i,c,e),[e]),i.flags|=2048,wi(9,{destroy:void 0},Eg.bind(null,i,c,a,t),null),a},useId:function(){var e=Kt(),t=nt.identifierPrefix;if(De){var a=Qa,i=Xa;a=(i&~(1<<32-Dt(i)-1)).toString(32)+a,t="_"+t+"R_"+a,a=vo++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=Q2++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Af,useFormState:Bg,useActionState:Bg,useOptimistic:function(e){var t=Kt();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=Cf.bind(null,Ce,!0,a),a.dispatch=t,[e,t]},useMemoCache:pf,useCacheRefresh:function(){return Kt().memoizedState=I2.bind(null,Ce)},useEffectEvent:function(e){var t=Kt(),a={impl:e};return t.memoizedState=a,function(){if(($e&2)!==0)throw Error(s(440));return a.impl.apply(void 0,arguments)}}},Tf={readContext:Lt,use:xo,useCallback:Kg,useContext:Lt,useEffect:xf,useImperativeHandle:Qg,useInsertionEffect:Yg,useLayoutEffect:$g,useMemo:Fg,useReducer:_o,useRef:qg,useState:function(){return _o(dn)},useDebugValue:_f,useDeferredValue:function(e,t){var a=bt();return Jg(a,et.memoizedState,e,t)},useTransition:function(){var e=_o(dn)[0],t=bt().memoizedState;return[typeof e=="boolean"?e:Ml(e),t]},useSyncExternalStore:Cg,useId:e0,useHostTransitionStatus:Af,useFormState:Lg,useActionState:Lg,useOptimistic:function(e,t){var a=bt();return kg(a,et,e,t)},useMemoCache:pf,useCacheRefresh:t0};Tf.useEffectEvent=Gg;var l0={readContext:Lt,use:xo,useCallback:Kg,useContext:Lt,useEffect:xf,useImperativeHandle:Qg,useInsertionEffect:Yg,useLayoutEffect:$g,useMemo:Fg,useReducer:yf,useRef:qg,useState:function(){return yf(dn)},useDebugValue:_f,useDeferredValue:function(e,t){var a=bt();return et===null?Sf(a,e,t):Jg(a,et.memoizedState,e,t)},useTransition:function(){var e=yf(dn)[0],t=bt().memoizedState;return[typeof e=="boolean"?e:Ml(e),t]},useSyncExternalStore:Cg,useId:e0,useHostTransitionStatus:Af,useFormState:Hg,useActionState:Hg,useOptimistic:function(e,t){var a=bt();return et!==null?kg(a,et,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:pf,useCacheRefresh:t0};l0.useEffectEvent=Gg;function Ef(e,t,a,i){t=e.memoizedState,a=a(i,t),a=a==null?t:x({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var Of={enqueueSetState:function(e,t,a){e=e._reactInternals;var i=ga(),o=Ln(i);o.payload=t,a!=null&&(o.callback=a),t=Vn(e,o,i),t!==null&&(ra(t,e,i),zl(t,e,i))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var i=ga(),o=Ln(i);o.tag=1,o.payload=t,a!=null&&(o.callback=a),t=Vn(e,o,i),t!==null&&(ra(t,e,i),zl(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=ga(),i=Ln(a);i.tag=2,t!=null&&(i.callback=t),t=Vn(e,i,a),t!==null&&(ra(t,e,a),zl(t,e,a))}};function s0(e,t,a,i,o,c,h){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(i,c,h):t.prototype&&t.prototype.isPureReactComponent?!_l(a,i)||!_l(o,c):!0}function o0(e,t,a,i){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,i),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,i),t.state!==e&&Of.enqueueReplaceState(t,t.state,null)}function Or(e,t){var a=t;if("ref"in t){a={};for(var i in t)i!=="ref"&&(a[i]=t[i])}if(e=e.defaultProps){a===t&&(a=x({},a));for(var o in e)a[o]===void 0&&(a[o]=e[o])}return a}function u0(e){to(e)}function c0(e){console.error(e)}function f0(e){to(e)}function Co(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(i){setTimeout(function(){throw i})}}function d0(e,t,a){try{var i=e.onCaughtError;i(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(o){setTimeout(function(){throw o})}}function zf(e,t,a){return a=Ln(a),a.tag=3,a.payload={element:null},a.callback=function(){Co(e,t)},a}function h0(e){return e=Ln(e),e.tag=3,e}function m0(e,t,a,i){var o=a.type.getDerivedStateFromError;if(typeof o=="function"){var c=i.value;e.payload=function(){return o(c)},e.callback=function(){d0(t,a,i)}}var h=a.stateNode;h!==null&&typeof h.componentDidCatch=="function"&&(e.callback=function(){d0(t,a,i),typeof o!="function"&&($n===null?$n=new Set([this]):$n.add(this));var g=i.stack;this.componentDidCatch(i.value,{componentStack:g!==null?g:""})})}function t5(e,t,a,i,o){if(a.flags|=32768,i!==null&&typeof i=="object"&&typeof i.then=="function"){if(t=a.alternate,t!==null&&pi(t,a,o,!0),a=da.current,a!==null){switch(a.tag){case 31:case 13:return za===null?Bo():a.alternate===null&&pt===0&&(pt=3),a.flags&=-257,a.flags|=65536,a.lanes=o,i===fo?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([i]):t.add(i),ed(e,i,o)),!1;case 22:return a.flags|=65536,i===fo?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([i])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([i]):a.add(i)),ed(e,i,o)),!1}throw Error(s(435,a.tag))}return ed(e,i,o),Bo(),!1}if(De)return t=da.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=o,i!==Qc&&(e=Error(s(422),{cause:i}),Al(Ca(e,a)))):(i!==Qc&&(t=Error(s(423),{cause:i}),Al(Ca(t,a))),e=e.current.alternate,e.flags|=65536,o&=-o,e.lanes|=o,i=Ca(i,a),o=zf(e.stateNode,i,o),rf(e,o),pt!==4&&(pt=2)),!1;var c=Error(s(520),{cause:i});if(c=Ca(c,a),Gl===null?Gl=[c]:Gl.push(c),pt!==4&&(pt=2),t===null)return!0;i=Ca(i,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=o&-o,a.lanes|=e,e=zf(a.stateNode,i,e),rf(a,e),!1;case 1:if(t=a.type,c=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&($n===null||!$n.has(c))))return a.flags|=65536,o&=-o,a.lanes|=o,o=h0(o),m0(o,e,a,i),rf(a,o),!1}a=a.return}while(a!==null);return!1}var Nf=Error(s(461)),Et=!1;function Vt(e,t,a,i){t.child=e===null?vg(t,null,a,i):Tr(t,e.child,a,i)}function p0(e,t,a,i,o){a=a.render;var c=t.ref;if("ref"in i){var h={};for(var g in i)g!=="ref"&&(h[g]=i[g])}else h=i;return Sr(t),i=ff(e,t,a,h,c,o),g=df(),e!==null&&!Et?(hf(e,t,o),hn(e,t,o)):(De&&g&&$c(t),t.flags|=1,Vt(e,t,i,o),t.child)}function g0(e,t,a,i,o){if(e===null){var c=a.type;return typeof c=="function"&&!Zc(c)&&c.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=c,y0(e,t,c,i,o)):(e=io(a.type,null,i,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,!Lf(e,o)){var h=c.memoizedProps;if(a=a.compare,a=a!==null?a:_l,a(h,i)&&e.ref===t.ref)return hn(e,t,o)}return t.flags|=1,e=sn(c,i),e.ref=t.ref,e.return=t,t.child=e}function y0(e,t,a,i,o){if(e!==null){var c=e.memoizedProps;if(_l(c,i)&&e.ref===t.ref)if(Et=!1,t.pendingProps=i=c,Lf(e,o))(e.flags&131072)!==0&&(Et=!0);else return t.lanes=e.lanes,hn(e,t,o)}return kf(e,t,a,i,o)}function v0(e,t,a,i){var o=i.children,c=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.mode==="hidden"){if((t.flags&128)!==0){if(c=c!==null?c.baseLanes|a:a,e!==null){for(i=t.child=e.child,o=0;i!==null;)o=o|i.lanes|i.childLanes,i=i.sibling;i=o&~c}else i=0,t.child=null;return b0(e,t,c,a,i)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&uo(t,c!==null?c.cachePool:null),c!==null?_g(t,c):sf(),Sg(t);else return i=t.lanes=536870912,b0(e,t,c!==null?c.baseLanes|a:a,a,i)}else c!==null?(uo(t,c.cachePool),_g(t,c),qn(),t.memoizedState=null):(e!==null&&uo(t,null),sf(),qn());return Vt(e,t,o,a),t.child}function Ul(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function b0(e,t,a,i,o){var c=ef();return c=c===null?null:{parent:Ct._currentValue,pool:c},t.memoizedState={baseLanes:a,cachePool:c},e!==null&&uo(t,null),sf(),Sg(t),e!==null&&pi(e,t,i,!0),t.childLanes=o,null}function To(e,t){return t=Oo({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function x0(e,t,a){return Tr(t,e.child,null,a),e=To(t,t.pendingProps),e.flags|=2,ha(t),t.memoizedState=null,e}function a5(e,t,a){var i=t.pendingProps,o=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(De){if(i.mode==="hidden")return e=To(t,i),t.lanes=536870912,Ul(null,e);if(uf(t),(e=lt)?(e=jy(e,Oa),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Mn!==null?{id:Xa,overflow:Qa}:null,retryLane:536870912,hydrationErrors:null},a=ng(e),a.return=t,t.child=a,Bt=t,lt=null)):e=null,e===null)throw Dn(t);return t.lanes=536870912,null}return To(t,i)}var c=e.memoizedState;if(c!==null){var h=c.dehydrated;if(uf(t),o)if(t.flags&256)t.flags&=-257,t=x0(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(s(558));else if(Et||pi(e,t,a,!1),o=(a&e.childLanes)!==0,Et||o){if(i=nt,i!==null&&(h=cp(i,a),h!==0&&h!==c.retryLane))throw c.retryLane=h,vr(e,h),ra(i,e,h),Nf;Bo(),t=x0(e,t,a)}else e=c.treeContext,lt=Na(h.nextSibling),Bt=t,De=!0,Rn=null,Oa=!1,e!==null&&lg(t,e),t=To(t,i),t.flags|=4096;return t}return e=sn(e.child,{mode:i.mode,children:i.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Eo(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(s(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function kf(e,t,a,i,o){return Sr(t),a=ff(e,t,a,i,void 0,o),i=df(),e!==null&&!Et?(hf(e,t,o),hn(e,t,o)):(De&&i&&$c(t),t.flags|=1,Vt(e,t,a,o),t.child)}function _0(e,t,a,i,o,c){return Sr(t),t.updateQueue=null,a=Ag(t,i,a,o),wg(e),i=df(),e!==null&&!Et?(hf(e,t,c),hn(e,t,c)):(De&&i&&$c(t),t.flags|=1,Vt(e,t,a,c),t.child)}function S0(e,t,a,i,o){if(Sr(t),t.stateNode===null){var c=fi,h=a.contextType;typeof h=="object"&&h!==null&&(c=Lt(h)),c=new a(i,c),t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=Of,t.stateNode=c,c._reactInternals=t,c=t.stateNode,c.props=i,c.state=t.memoizedState,c.refs={},af(t),h=a.contextType,c.context=typeof h=="object"&&h!==null?Lt(h):fi,c.state=t.memoizedState,h=a.getDerivedStateFromProps,typeof h=="function"&&(Ef(t,a,h,i),c.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(h=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),h!==c.state&&Of.enqueueReplaceState(c,c.state,null),kl(t,i,c,o),Nl(),c.state=t.memoizedState),typeof c.componentDidMount=="function"&&(t.flags|=4194308),i=!0}else if(e===null){c=t.stateNode;var g=t.memoizedProps,w=Or(a,g);c.props=w;var M=c.context,H=a.contextType;h=fi,typeof H=="object"&&H!==null&&(h=Lt(H));var G=a.getDerivedStateFromProps;H=typeof G=="function"||typeof c.getSnapshotBeforeUpdate=="function",g=t.pendingProps!==g,H||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(g||M!==h)&&o0(t,c,i,h),Bn=!1;var D=t.memoizedState;c.state=D,kl(t,i,c,o),Nl(),M=t.memoizedState,g||D!==M||Bn?(typeof G=="function"&&(Ef(t,a,G,i),M=t.memoizedState),(w=Bn||s0(t,a,w,i,D,M,h))?(H||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount=="function"&&(t.flags|=4194308)):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=i,t.memoizedState=M),c.props=i,c.state=M,c.context=h,i=w):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),i=!1)}else{c=t.stateNode,nf(e,t),h=t.memoizedProps,H=Or(a,h),c.props=H,G=t.pendingProps,D=c.context,M=a.contextType,w=fi,typeof M=="object"&&M!==null&&(w=Lt(M)),g=a.getDerivedStateFromProps,(M=typeof g=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(h!==G||D!==w)&&o0(t,c,i,w),Bn=!1,D=t.memoizedState,c.state=D,kl(t,i,c,o),Nl();var B=t.memoizedState;h!==G||D!==B||Bn||e!==null&&e.dependencies!==null&&so(e.dependencies)?(typeof g=="function"&&(Ef(t,a,g,i),B=t.memoizedState),(H=Bn||s0(t,a,H,i,D,B,w)||e!==null&&e.dependencies!==null&&so(e.dependencies))?(M||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(i,B,w),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(i,B,w)),typeof c.componentDidUpdate=="function"&&(t.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof c.componentDidUpdate!="function"||h===e.memoizedProps&&D===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||h===e.memoizedProps&&D===e.memoizedState||(t.flags|=1024),t.memoizedProps=i,t.memoizedState=B),c.props=i,c.state=B,c.context=w,i=H):(typeof c.componentDidUpdate!="function"||h===e.memoizedProps&&D===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||h===e.memoizedProps&&D===e.memoizedState||(t.flags|=1024),i=!1)}return c=i,Eo(e,t),i=(t.flags&128)!==0,c||i?(c=t.stateNode,a=i&&typeof a.getDerivedStateFromError!="function"?null:c.render(),t.flags|=1,e!==null&&i?(t.child=Tr(t,e.child,null,o),t.child=Tr(t,null,a,o)):Vt(e,t,a,o),t.memoizedState=c.state,e=t.child):e=hn(e,t,o),e}function w0(e,t,a,i){return xr(),t.flags|=256,Vt(e,t,a,i),t.child}var jf={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Mf(e){return{baseLanes:e,cachePool:dg()}}function Rf(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=pa),e}function A0(e,t,a){var i=t.pendingProps,o=!1,c=(t.flags&128)!==0,h;if((h=c)||(h=e!==null&&e.memoizedState===null?!1:(vt.current&2)!==0),h&&(o=!0,t.flags&=-129),h=(t.flags&32)!==0,t.flags&=-33,e===null){if(De){if(o?Hn(t):qn(),(e=lt)?(e=jy(e,Oa),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Mn!==null?{id:Xa,overflow:Qa}:null,retryLane:536870912,hydrationErrors:null},a=ng(e),a.return=t,t.child=a,Bt=t,lt=null)):e=null,e===null)throw Dn(t);return gd(e)?t.lanes=32:t.lanes=536870912,null}var g=i.children;return i=i.fallback,o?(qn(),o=t.mode,g=Oo({mode:"hidden",children:g},o),i=br(i,o,a,null),g.return=t,i.return=t,g.sibling=i,t.child=g,i=t.child,i.memoizedState=Mf(a),i.childLanes=Rf(e,h,a),t.memoizedState=jf,Ul(null,i)):(Hn(t),Df(t,g))}var w=e.memoizedState;if(w!==null&&(g=w.dehydrated,g!==null)){if(c)t.flags&256?(Hn(t),t.flags&=-257,t=Uf(e,t,a)):t.memoizedState!==null?(qn(),t.child=e.child,t.flags|=128,t=null):(qn(),g=i.fallback,o=t.mode,i=Oo({mode:"visible",children:i.children},o),g=br(g,o,a,null),g.flags|=2,i.return=t,g.return=t,i.sibling=g,t.child=i,Tr(t,e.child,null,a),i=t.child,i.memoizedState=Mf(a),i.childLanes=Rf(e,h,a),t.memoizedState=jf,t=Ul(null,i));else if(Hn(t),gd(g)){if(h=g.nextSibling&&g.nextSibling.dataset,h)var M=h.dgst;h=M,i=Error(s(419)),i.stack="",i.digest=h,Al({value:i,source:null,stack:null}),t=Uf(e,t,a)}else if(Et||pi(e,t,a,!1),h=(a&e.childLanes)!==0,Et||h){if(h=nt,h!==null&&(i=cp(h,a),i!==0&&i!==w.retryLane))throw w.retryLane=i,vr(e,i),ra(h,e,i),Nf;pd(g)||Bo(),t=Uf(e,t,a)}else pd(g)?(t.flags|=192,t.child=e.child,t=null):(e=w.treeContext,lt=Na(g.nextSibling),Bt=t,De=!0,Rn=null,Oa=!1,e!==null&&lg(t,e),t=Df(t,i.children),t.flags|=4096);return t}return o?(qn(),g=i.fallback,o=t.mode,w=e.child,M=w.sibling,i=sn(w,{mode:"hidden",children:i.children}),i.subtreeFlags=w.subtreeFlags&65011712,M!==null?g=sn(M,g):(g=br(g,o,a,null),g.flags|=2),g.return=t,i.return=t,i.sibling=g,t.child=i,Ul(null,i),i=t.child,g=e.child.memoizedState,g===null?g=Mf(a):(o=g.cachePool,o!==null?(w=Ct._currentValue,o=o.parent!==w?{parent:w,pool:w}:o):o=dg(),g={baseLanes:g.baseLanes|a,cachePool:o}),i.memoizedState=g,i.childLanes=Rf(e,h,a),t.memoizedState=jf,Ul(e.child,i)):(Hn(t),a=e.child,e=a.sibling,a=sn(a,{mode:"visible",children:i.children}),a.return=t,a.sibling=null,e!==null&&(h=t.deletions,h===null?(t.deletions=[e],t.flags|=16):h.push(e)),t.child=a,t.memoizedState=null,a)}function Df(e,t){return t=Oo({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Oo(e,t){return e=fa(22,e,null,t),e.lanes=0,e}function Uf(e,t,a){return Tr(t,e.child,null,a),e=Df(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function C0(e,t,a){e.lanes|=t;var i=e.alternate;i!==null&&(i.lanes|=t),Jc(e.return,t,a)}function Bf(e,t,a,i,o,c){var h=e.memoizedState;h===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:i,tail:a,tailMode:o,treeForkCount:c}:(h.isBackwards=t,h.rendering=null,h.renderingStartTime=0,h.last=i,h.tail=a,h.tailMode=o,h.treeForkCount=c)}function T0(e,t,a){var i=t.pendingProps,o=i.revealOrder,c=i.tail;i=i.children;var h=vt.current,g=(h&2)!==0;if(g?(h=h&1|2,t.flags|=128):h&=1,ne(vt,h),Vt(e,t,i,a),i=De?wl:0,!g&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&C0(e,a,t);else if(e.tag===19)C0(e,a,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}switch(o){case"forwards":for(a=t.child,o=null;a!==null;)e=a.alternate,e!==null&&go(e)===null&&(o=a),a=a.sibling;a=o,a===null?(o=t.child,t.child=null):(o=a.sibling,a.sibling=null),Bf(t,!1,o,a,c,i);break;case"backwards":case"unstable_legacy-backwards":for(a=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&go(e)===null){t.child=o;break}e=o.sibling,o.sibling=a,a=o,o=e}Bf(t,!0,a,null,c,i);break;case"together":Bf(t,!1,null,null,void 0,i);break;default:t.memoizedState=null}return t.child}function hn(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),Yn|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(pi(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(s(153));if(t.child!==null){for(e=t.child,a=sn(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=sn(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function Lf(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&so(e)))}function n5(e,t,a){switch(t.tag){case 3:Rt(t,t.stateNode.containerInfo),Un(t,Ct,e.memoizedState.cache),xr();break;case 27:case 5:zn(t);break;case 4:Rt(t,t.stateNode.containerInfo);break;case 10:Un(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,uf(t),null;break;case 13:var i=t.memoizedState;if(i!==null)return i.dehydrated!==null?(Hn(t),t.flags|=128,null):(a&t.child.childLanes)!==0?A0(e,t,a):(Hn(t),e=hn(e,t,a),e!==null?e.sibling:null);Hn(t);break;case 19:var o=(e.flags&128)!==0;if(i=(a&t.childLanes)!==0,i||(pi(e,t,a,!1),i=(a&t.childLanes)!==0),o){if(i)return T0(e,t,a);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),ne(vt,vt.current),i)break;return null;case 22:return t.lanes=0,v0(e,t,a,t.pendingProps);case 24:Un(t,Ct,e.memoizedState.cache)}return hn(e,t,a)}function E0(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)Et=!0;else{if(!Lf(e,a)&&(t.flags&128)===0)return Et=!1,n5(e,t,a);Et=(e.flags&131072)!==0}else Et=!1,De&&(t.flags&1048576)!==0&&ig(t,wl,t.index);switch(t.lanes=0,t.tag){case 16:e:{var i=t.pendingProps;if(e=Ar(t.elementType),t.type=e,typeof e=="function")Zc(e)?(i=Or(e,i),t.tag=1,t=S0(null,t,e,i,a)):(t.tag=0,t=kf(null,t,e,i,a));else{if(e!=null){var o=e.$$typeof;if(o===te){t.tag=11,t=p0(null,t,e,i,a);break e}else if(o===J){t.tag=14,t=g0(null,t,e,i,a);break e}}throw t=X(e)||e,Error(s(306,t,""))}}return t;case 0:return kf(e,t,t.type,t.pendingProps,a);case 1:return i=t.type,o=Or(i,t.pendingProps),S0(e,t,i,o,a);case 3:e:{if(Rt(t,t.stateNode.containerInfo),e===null)throw Error(s(387));i=t.pendingProps;var c=t.memoizedState;o=c.element,nf(e,t),kl(t,i,null,a);var h=t.memoizedState;if(i=h.cache,Un(t,Ct,i),i!==c.cache&&Pc(t,[Ct],a,!0),Nl(),i=h.element,c.isDehydrated)if(c={element:i,isDehydrated:!1,cache:h.cache},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){t=w0(e,t,i,a);break e}else if(i!==o){o=Ca(Error(s(424)),t),Al(o),t=w0(e,t,i,a);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(lt=Na(e.firstChild),Bt=t,De=!0,Rn=null,Oa=!0,a=vg(t,null,i,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(xr(),i===o){t=hn(e,t,a);break e}Vt(e,t,i,a)}t=t.child}return t;case 26:return Eo(e,t),e===null?(a=Ly(t.type,null,t.pendingProps,null))?t.memoizedState=a:De||(a=t.type,e=t.pendingProps,i=Yo(Ee.current).createElement(a),i[Ut]=t,i[Wt]=e,Ht(i,a,e),kt(i),t.stateNode=i):t.memoizedState=Ly(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return zn(t),e===null&&De&&(i=t.stateNode=Dy(t.type,t.pendingProps,Ee.current),Bt=t,Oa=!0,o=lt,Fn(t.type)?(yd=o,lt=Na(i.firstChild)):lt=o),Vt(e,t,t.pendingProps.children,a),Eo(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&De&&((o=i=lt)&&(i=M5(i,t.type,t.pendingProps,Oa),i!==null?(t.stateNode=i,Bt=t,lt=Na(i.firstChild),Oa=!1,o=!0):o=!1),o||Dn(t)),zn(t),o=t.type,c=t.pendingProps,h=e!==null?e.memoizedProps:null,i=c.children,dd(o,c)?i=null:h!==null&&dd(o,h)&&(t.flags|=32),t.memoizedState!==null&&(o=ff(e,t,K2,null,null,a),Pl._currentValue=o),Eo(e,t),Vt(e,t,i,a),t.child;case 6:return e===null&&De&&((e=a=lt)&&(a=R5(a,t.pendingProps,Oa),a!==null?(t.stateNode=a,Bt=t,lt=null,e=!0):e=!1),e||Dn(t)),null;case 13:return A0(e,t,a);case 4:return Rt(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=Tr(t,null,i,a):Vt(e,t,i,a),t.child;case 11:return p0(e,t,t.type,t.pendingProps,a);case 7:return Vt(e,t,t.pendingProps,a),t.child;case 8:return Vt(e,t,t.pendingProps.children,a),t.child;case 12:return Vt(e,t,t.pendingProps.children,a),t.child;case 10:return i=t.pendingProps,Un(t,t.type,i.value),Vt(e,t,i.children,a),t.child;case 9:return o=t.type._context,i=t.pendingProps.children,Sr(t),o=Lt(o),i=i(o),t.flags|=1,Vt(e,t,i,a),t.child;case 14:return g0(e,t,t.type,t.pendingProps,a);case 15:return y0(e,t,t.type,t.pendingProps,a);case 19:return T0(e,t,a);case 31:return a5(e,t,a);case 22:return v0(e,t,a,t.pendingProps);case 24:return Sr(t),i=Lt(Ct),e===null?(o=ef(),o===null&&(o=nt,c=Wc(),o.pooledCache=c,c.refCount++,c!==null&&(o.pooledCacheLanes|=a),o=c),t.memoizedState={parent:i,cache:o},af(t),Un(t,Ct,o)):((e.lanes&a)!==0&&(nf(e,t),kl(t,null,null,a),Nl()),o=e.memoizedState,c=t.memoizedState,o.parent!==i?(o={parent:i,cache:i},t.memoizedState=o,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=o),Un(t,Ct,i)):(i=c.cache,Un(t,Ct,i),i!==o.cache&&Pc(t,[Ct],a,!0))),Vt(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}function mn(e){e.flags|=4}function Vf(e,t,a,i,o){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(o&335544128)===o)if(e.stateNode.complete)e.flags|=8192;else if(ey())e.flags|=8192;else throw Cr=fo,tf}else e.flags&=-16777217}function O0(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Gy(t))if(ey())e.flags|=8192;else throw Cr=fo,tf}function zo(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?sp():536870912,e.lanes|=t,Ei|=t)}function Bl(e,t){if(!De)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var i=null;a!==null;)a.alternate!==null&&(i=a),a=a.sibling;i===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:i.sibling=null}}function st(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,i=0;if(t)for(var o=e.child;o!==null;)a|=o.lanes|o.childLanes,i|=o.subtreeFlags&65011712,i|=o.flags&65011712,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)a|=o.lanes|o.childLanes,i|=o.subtreeFlags,i|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=i,e.childLanes=a,t}function r5(e,t,a){var i=t.pendingProps;switch(Xc(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return st(t),null;case 1:return st(t),null;case 3:return a=t.stateNode,i=null,e!==null&&(i=e.memoizedState.cache),t.memoizedState.cache!==i&&(t.flags|=2048),cn(Ct),it(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(mi(t)?mn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Kc())),st(t),null;case 26:var o=t.type,c=t.memoizedState;return e===null?(mn(t),c!==null?(st(t),O0(t,c)):(st(t),Vf(t,o,null,i,a))):c?c!==e.memoizedState?(mn(t),st(t),O0(t,c)):(st(t),t.flags&=-16777217):(e=e.memoizedProps,e!==i&&mn(t),st(t),Vf(t,o,e,i,a)),null;case 27:if(Nn(t),a=Ee.current,o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&mn(t);else{if(!i){if(t.stateNode===null)throw Error(s(166));return st(t),null}e=ue.current,mi(t)?sg(t):(e=Dy(o,i,a),t.stateNode=e,mn(t))}return st(t),null;case 5:if(Nn(t),o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&mn(t);else{if(!i){if(t.stateNode===null)throw Error(s(166));return st(t),null}if(c=ue.current,mi(t))sg(t);else{var h=Yo(Ee.current);switch(c){case 1:c=h.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:c=h.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":c=h.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":c=h.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":c=h.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof i.is=="string"?h.createElement("select",{is:i.is}):h.createElement("select"),i.multiple?c.multiple=!0:i.size&&(c.size=i.size);break;default:c=typeof i.is=="string"?h.createElement(o,{is:i.is}):h.createElement(o)}}c[Ut]=t,c[Wt]=i;e:for(h=t.child;h!==null;){if(h.tag===5||h.tag===6)c.appendChild(h.stateNode);else if(h.tag!==4&&h.tag!==27&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===t)break e;for(;h.sibling===null;){if(h.return===null||h.return===t)break e;h=h.return}h.sibling.return=h.return,h=h.sibling}t.stateNode=c;e:switch(Ht(c,o,i),o){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}i&&mn(t)}}return st(t),Vf(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==i&&mn(t);else{if(typeof i!="string"&&t.stateNode===null)throw Error(s(166));if(e=Ee.current,mi(t)){if(e=t.stateNode,a=t.memoizedProps,i=null,o=Bt,o!==null)switch(o.tag){case 27:case 5:i=o.memoizedProps}e[Ut]=t,e=!!(e.nodeValue===a||i!==null&&i.suppressHydrationWarning===!0||Ay(e.nodeValue,a)),e||Dn(t,!0)}else e=Yo(e).createTextNode(i),e[Ut]=t,t.stateNode=e}return st(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(i=mi(t),a!==null){if(e===null){if(!i)throw Error(s(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(557));e[Ut]=t}else xr(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;st(t),e=!1}else a=Kc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(ha(t),t):(ha(t),null);if((t.flags&128)!==0)throw Error(s(558))}return st(t),null;case 13:if(i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(o=mi(t),i!==null&&i.dehydrated!==null){if(e===null){if(!o)throw Error(s(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(s(317));o[Ut]=t}else xr(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;st(t),o=!1}else o=Kc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return t.flags&256?(ha(t),t):(ha(t),null)}return ha(t),(t.flags&128)!==0?(t.lanes=a,t):(a=i!==null,e=e!==null&&e.memoizedState!==null,a&&(i=t.child,o=null,i.alternate!==null&&i.alternate.memoizedState!==null&&i.alternate.memoizedState.cachePool!==null&&(o=i.alternate.memoizedState.cachePool.pool),c=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(c=i.memoizedState.cachePool.pool),c!==o&&(i.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),zo(t,t.updateQueue),st(t),null);case 4:return it(),e===null&&sd(t.stateNode.containerInfo),st(t),null;case 10:return cn(t.type),st(t),null;case 19:if(Y(vt),i=t.memoizedState,i===null)return st(t),null;if(o=(t.flags&128)!==0,c=i.rendering,c===null)if(o)Bl(i,!1);else{if(pt!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=go(e),c!==null){for(t.flags|=128,Bl(i,!1),e=c.updateQueue,t.updateQueue=e,zo(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)ag(a,e),a=a.sibling;return ne(vt,vt.current&1|2),De&&on(t,i.treeForkCount),t.child}e=e.sibling}i.tail!==null&&R()>Ro&&(t.flags|=128,o=!0,Bl(i,!1),t.lanes=4194304)}else{if(!o)if(e=go(c),e!==null){if(t.flags|=128,o=!0,e=e.updateQueue,t.updateQueue=e,zo(t,e),Bl(i,!0),i.tail===null&&i.tailMode==="hidden"&&!c.alternate&&!De)return st(t),null}else 2*R()-i.renderingStartTime>Ro&&a!==536870912&&(t.flags|=128,o=!0,Bl(i,!1),t.lanes=4194304);i.isBackwards?(c.sibling=t.child,t.child=c):(e=i.last,e!==null?e.sibling=c:t.child=c,i.last=c)}return i.tail!==null?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=R(),e.sibling=null,a=vt.current,ne(vt,o?a&1|2:a&1),De&&on(t,i.treeForkCount),e):(st(t),null);case 22:case 23:return ha(t),of(),i=t.memoizedState!==null,e!==null?e.memoizedState!==null!==i&&(t.flags|=8192):i&&(t.flags|=8192),i?(a&536870912)!==0&&(t.flags&128)===0&&(st(t),t.subtreeFlags&6&&(t.flags|=8192)):st(t),a=t.updateQueue,a!==null&&zo(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),i=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),i!==a&&(t.flags|=2048),e!==null&&Y(wr),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),cn(Ct),st(t),null;case 25:return null;case 30:return null}throw Error(s(156,t.tag))}function i5(e,t){switch(Xc(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return cn(Ct),it(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Nn(t),null;case 31:if(t.memoizedState!==null){if(ha(t),t.alternate===null)throw Error(s(340));xr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(ha(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));xr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Y(vt),null;case 4:return it(),null;case 10:return cn(t.type),null;case 22:case 23:return ha(t),of(),e!==null&&Y(wr),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return cn(Ct),null;case 25:return null;default:return null}}function z0(e,t){switch(Xc(t),t.tag){case 3:cn(Ct),it();break;case 26:case 27:case 5:Nn(t);break;case 4:it();break;case 31:t.memoizedState!==null&&ha(t);break;case 13:ha(t);break;case 19:Y(vt);break;case 10:cn(t.type);break;case 22:case 23:ha(t),of(),e!==null&&Y(wr);break;case 24:cn(Ct)}}function Ll(e,t){try{var a=t.updateQueue,i=a!==null?a.lastEffect:null;if(i!==null){var o=i.next;a=o;do{if((a.tag&e)===e){i=void 0;var c=a.create,h=a.inst;i=c(),h.destroy=i}a=a.next}while(a!==o)}}catch(g){Je(t,t.return,g)}}function Zn(e,t,a){try{var i=t.updateQueue,o=i!==null?i.lastEffect:null;if(o!==null){var c=o.next;i=c;do{if((i.tag&e)===e){var h=i.inst,g=h.destroy;if(g!==void 0){h.destroy=void 0,o=t;var w=a,M=g;try{M()}catch(H){Je(o,w,H)}}}i=i.next}while(i!==c)}}catch(H){Je(t,t.return,H)}}function N0(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{xg(t,a)}catch(i){Je(e,e.return,i)}}}function k0(e,t,a){a.props=Or(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(i){Je(e,t,i)}}function Vl(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var i=e.stateNode;break;case 30:i=e.stateNode;break;default:i=e.stateNode}typeof a=="function"?e.refCleanup=a(i):a.current=i}}catch(o){Je(e,t,o)}}function Ka(e,t){var a=e.ref,i=e.refCleanup;if(a!==null)if(typeof i=="function")try{i()}catch(o){Je(e,t,o)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(o){Je(e,t,o)}else a.current=null}function j0(e){var t=e.type,a=e.memoizedProps,i=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&i.focus();break e;case"img":a.src?i.src=a.src:a.srcSet&&(i.srcset=a.srcSet)}}catch(o){Je(e,e.return,o)}}function Hf(e,t,a){try{var i=e.stateNode;E5(i,e.type,a,t),i[Wt]=t}catch(o){Je(e,e.return,o)}}function M0(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Fn(e.type)||e.tag===4}function qf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||M0(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.tag===27&&Fn(e.type)||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 Zf(e,t,a){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=rn));else if(i!==4&&(i===27&&Fn(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(Zf(e,t,a),e=e.sibling;e!==null;)Zf(e,t,a),e=e.sibling}function No(e,t,a){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(i!==4&&(i===27&&Fn(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(No(e,t,a),e=e.sibling;e!==null;)No(e,t,a),e=e.sibling}function R0(e){var t=e.stateNode,a=e.memoizedProps;try{for(var i=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);Ht(t,i,a),t[Ut]=e,t[Wt]=a}catch(c){Je(e,e.return,c)}}var pn=!1,Ot=!1,Gf=!1,D0=typeof WeakSet=="function"?WeakSet:Set,jt=null;function l5(e,t){if(e=e.containerInfo,cd=Po,e=Qp(e),Dc(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var i=a.getSelection&&a.getSelection();if(i&&i.rangeCount!==0){a=i.anchorNode;var o=i.anchorOffset,c=i.focusNode;i=i.focusOffset;try{a.nodeType,c.nodeType}catch{a=null;break e}var h=0,g=-1,w=-1,M=0,H=0,G=e,D=null;t:for(;;){for(var B;G!==a||o!==0&&G.nodeType!==3||(g=h+o),G!==c||i!==0&&G.nodeType!==3||(w=h+i),G.nodeType===3&&(h+=G.nodeValue.length),(B=G.firstChild)!==null;)D=G,G=B;for(;;){if(G===e)break t;if(D===a&&++M===o&&(g=h),D===c&&++H===i&&(w=h),(B=G.nextSibling)!==null)break;G=D,D=G.parentNode}G=B}a=g===-1||w===-1?null:{start:g,end:w}}else a=null}a=a||{start:0,end:0}}else a=null;for(fd={focusedElem:e,selectionRange:a},Po=!1,jt=t;jt!==null;)if(t=jt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,jt=e;else for(;jt!==null;){switch(t=jt,c=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(a=0;a<e.length;a++)o=e[a],o.ref.impl=o.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&c!==null){e=void 0,a=t,o=c.memoizedProps,c=c.memoizedState,i=a.stateNode;try{var ce=Or(a.type,o);e=i.getSnapshotBeforeUpdate(ce,c),i.__reactInternalSnapshotBeforeUpdate=e}catch(ye){Je(a,a.return,ye)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)md(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":md(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(s(163))}if(e=t.sibling,e!==null){e.return=t.return,jt=e;break}jt=t.return}}function U0(e,t,a){var i=a.flags;switch(a.tag){case 0:case 11:case 15:yn(e,a),i&4&&Ll(5,a);break;case 1:if(yn(e,a),i&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(h){Je(a,a.return,h)}else{var o=Or(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(h){Je(a,a.return,h)}}i&64&&N0(a),i&512&&Vl(a,a.return);break;case 3:if(yn(e,a),i&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{xg(e,t)}catch(h){Je(a,a.return,h)}}break;case 27:t===null&&i&4&&R0(a);case 26:case 5:yn(e,a),t===null&&i&4&&j0(a),i&512&&Vl(a,a.return);break;case 12:yn(e,a);break;case 31:yn(e,a),i&4&&V0(e,a);break;case 13:yn(e,a),i&4&&H0(e,a),i&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=p5.bind(null,a),D5(e,a))));break;case 22:if(i=a.memoizedState!==null||pn,!i){t=t!==null&&t.memoizedState!==null||Ot,o=pn;var c=Ot;pn=i,(Ot=t)&&!c?vn(e,a,(a.subtreeFlags&8772)!==0):yn(e,a),pn=o,Ot=c}break;case 30:break;default:yn(e,a)}}function B0(e){var t=e.alternate;t!==null&&(e.alternate=null,B0(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&vc(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var ct=null,ea=!1;function gn(e,t,a){for(a=a.child;a!==null;)L0(e,t,a),a=a.sibling}function L0(e,t,a){if(Qt&&typeof Qt.onCommitFiberUnmount=="function")try{Qt.onCommitFiberUnmount(At,a)}catch{}switch(a.tag){case 26:Ot||Ka(a,t),gn(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:Ot||Ka(a,t);var i=ct,o=ea;Fn(a.type)&&(ct=a.stateNode,ea=!1),gn(e,t,a),Kl(a.stateNode),ct=i,ea=o;break;case 5:Ot||Ka(a,t);case 6:if(i=ct,o=ea,ct=null,gn(e,t,a),ct=i,ea=o,ct!==null)if(ea)try{(ct.nodeType===9?ct.body:ct.nodeName==="HTML"?ct.ownerDocument.body:ct).removeChild(a.stateNode)}catch(c){Je(a,t,c)}else try{ct.removeChild(a.stateNode)}catch(c){Je(a,t,c)}break;case 18:ct!==null&&(ea?(e=ct,Ny(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Di(e)):Ny(ct,a.stateNode));break;case 4:i=ct,o=ea,ct=a.stateNode.containerInfo,ea=!0,gn(e,t,a),ct=i,ea=o;break;case 0:case 11:case 14:case 15:Zn(2,a,t),Ot||Zn(4,a,t),gn(e,t,a);break;case 1:Ot||(Ka(a,t),i=a.stateNode,typeof i.componentWillUnmount=="function"&&k0(a,t,i)),gn(e,t,a);break;case 21:gn(e,t,a);break;case 22:Ot=(i=Ot)||a.memoizedState!==null,gn(e,t,a),Ot=i;break;default:gn(e,t,a)}}function V0(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Di(e)}catch(a){Je(t,t.return,a)}}}function H0(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Di(e)}catch(a){Je(t,t.return,a)}}function s5(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new D0),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new D0),t;default:throw Error(s(435,e.tag))}}function ko(e,t){var a=s5(e);t.forEach(function(i){if(!a.has(i)){a.add(i);var o=g5.bind(null,e,i);i.then(o,o)}})}function ta(e,t){var a=t.deletions;if(a!==null)for(var i=0;i<a.length;i++){var o=a[i],c=e,h=t,g=h;e:for(;g!==null;){switch(g.tag){case 27:if(Fn(g.type)){ct=g.stateNode,ea=!1;break e}break;case 5:ct=g.stateNode,ea=!1;break e;case 3:case 4:ct=g.stateNode.containerInfo,ea=!0;break e}g=g.return}if(ct===null)throw Error(s(160));L0(c,h,o),ct=null,ea=!1,c=o.alternate,c!==null&&(c.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)q0(t,e),t=t.sibling}var Ba=null;function q0(e,t){var a=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:ta(t,e),aa(e),i&4&&(Zn(3,e,e.return),Ll(3,e),Zn(5,e,e.return));break;case 1:ta(t,e),aa(e),i&512&&(Ot||a===null||Ka(a,a.return)),i&64&&pn&&(e=e.updateQueue,e!==null&&(i=e.callbacks,i!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?i:a.concat(i))));break;case 26:var o=Ba;if(ta(t,e),aa(e),i&512&&(Ot||a===null||Ka(a,a.return)),i&4){var c=a!==null?a.memoizedState:null;if(i=e.memoizedState,a===null)if(i===null)if(e.stateNode===null){e:{i=e.type,a=e.memoizedProps,o=o.ownerDocument||o;t:switch(i){case"title":c=o.getElementsByTagName("title")[0],(!c||c[dl]||c[Ut]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=o.createElement(i),o.head.insertBefore(c,o.querySelector("head > title"))),Ht(c,i,a),c[Ut]=e,kt(c),i=c;break e;case"link":var h=qy("link","href",o).get(i+(a.href||""));if(h){for(var g=0;g<h.length;g++)if(c=h[g],c.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&c.getAttribute("rel")===(a.rel==null?null:a.rel)&&c.getAttribute("title")===(a.title==null?null:a.title)&&c.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){h.splice(g,1);break t}}c=o.createElement(i),Ht(c,i,a),o.head.appendChild(c);break;case"meta":if(h=qy("meta","content",o).get(i+(a.content||""))){for(g=0;g<h.length;g++)if(c=h[g],c.getAttribute("content")===(a.content==null?null:""+a.content)&&c.getAttribute("name")===(a.name==null?null:a.name)&&c.getAttribute("property")===(a.property==null?null:a.property)&&c.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&c.getAttribute("charset")===(a.charSet==null?null:a.charSet)){h.splice(g,1);break t}}c=o.createElement(i),Ht(c,i,a),o.head.appendChild(c);break;default:throw Error(s(468,i))}c[Ut]=e,kt(c),i=c}e.stateNode=i}else Zy(o,e.type,e.stateNode);else e.stateNode=Hy(o,i,e.memoizedProps);else c!==i?(c===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):c.count--,i===null?Zy(o,e.type,e.stateNode):Hy(o,i,e.memoizedProps)):i===null&&e.stateNode!==null&&Hf(e,e.memoizedProps,a.memoizedProps)}break;case 27:ta(t,e),aa(e),i&512&&(Ot||a===null||Ka(a,a.return)),a!==null&&i&4&&Hf(e,e.memoizedProps,a.memoizedProps);break;case 5:if(ta(t,e),aa(e),i&512&&(Ot||a===null||Ka(a,a.return)),e.flags&32){o=e.stateNode;try{ri(o,"")}catch(ce){Je(e,e.return,ce)}}i&4&&e.stateNode!=null&&(o=e.memoizedProps,Hf(e,o,a!==null?a.memoizedProps:o)),i&1024&&(Gf=!0);break;case 6:if(ta(t,e),aa(e),i&4){if(e.stateNode===null)throw Error(s(162));i=e.memoizedProps,a=e.stateNode;try{a.nodeValue=i}catch(ce){Je(e,e.return,ce)}}break;case 3:if(Qo=null,o=Ba,Ba=$o(t.containerInfo),ta(t,e),Ba=o,aa(e),i&4&&a!==null&&a.memoizedState.isDehydrated)try{Di(t.containerInfo)}catch(ce){Je(e,e.return,ce)}Gf&&(Gf=!1,Z0(e));break;case 4:i=Ba,Ba=$o(e.stateNode.containerInfo),ta(t,e),aa(e),Ba=i;break;case 12:ta(t,e),aa(e);break;case 31:ta(t,e),aa(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,ko(e,i)));break;case 13:ta(t,e),aa(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(Mo=R()),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,ko(e,i)));break;case 22:o=e.memoizedState!==null;var w=a!==null&&a.memoizedState!==null,M=pn,H=Ot;if(pn=M||o,Ot=H||w,ta(t,e),Ot=H,pn=M,aa(e),i&8192)e:for(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,o&&(a===null||w||pn||Ot||zr(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){w=a=t;try{if(c=w.stateNode,o)h=c.style,typeof h.setProperty=="function"?h.setProperty("display","none","important"):h.display="none";else{g=w.stateNode;var G=w.memoizedProps.style,D=G!=null&&G.hasOwnProperty("display")?G.display:null;g.style.display=D==null||typeof D=="boolean"?"":(""+D).trim()}}catch(ce){Je(w,w.return,ce)}}}else if(t.tag===6){if(a===null){w=t;try{w.stateNode.nodeValue=o?"":w.memoizedProps}catch(ce){Je(w,w.return,ce)}}}else if(t.tag===18){if(a===null){w=t;try{var B=w.stateNode;o?ky(B,!0):ky(w.stateNode,!1)}catch(ce){Je(w,w.return,ce)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;a===t&&(a=null),t=t.return}a===t&&(a=null),t.sibling.return=t.return,t=t.sibling}i&4&&(i=e.updateQueue,i!==null&&(a=i.retryQueue,a!==null&&(i.retryQueue=null,ko(e,a))));break;case 19:ta(t,e),aa(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,ko(e,i)));break;case 30:break;case 21:break;default:ta(t,e),aa(e)}}function aa(e){var t=e.flags;if(t&2){try{for(var a,i=e.return;i!==null;){if(M0(i)){a=i;break}i=i.return}if(a==null)throw Error(s(160));switch(a.tag){case 27:var o=a.stateNode,c=qf(e);No(e,c,o);break;case 5:var h=a.stateNode;a.flags&32&&(ri(h,""),a.flags&=-33);var g=qf(e);No(e,g,h);break;case 3:case 4:var w=a.stateNode.containerInfo,M=qf(e);Zf(e,M,w);break;default:throw Error(s(161))}}catch(H){Je(e,e.return,H)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Z0(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Z0(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function yn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)U0(e,t.alternate,t),t=t.sibling}function zr(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Zn(4,t,t.return),zr(t);break;case 1:Ka(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&k0(t,t.return,a),zr(t);break;case 27:Kl(t.stateNode);case 26:case 5:Ka(t,t.return),zr(t);break;case 22:t.memoizedState===null&&zr(t);break;case 30:zr(t);break;default:zr(t)}e=e.sibling}}function vn(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var i=t.alternate,o=e,c=t,h=c.flags;switch(c.tag){case 0:case 11:case 15:vn(o,c,a),Ll(4,c);break;case 1:if(vn(o,c,a),i=c,o=i.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(M){Je(i,i.return,M)}if(i=c,o=i.updateQueue,o!==null){var g=i.stateNode;try{var w=o.shared.hiddenCallbacks;if(w!==null)for(o.shared.hiddenCallbacks=null,o=0;o<w.length;o++)bg(w[o],g)}catch(M){Je(i,i.return,M)}}a&&h&64&&N0(c),Vl(c,c.return);break;case 27:R0(c);case 26:case 5:vn(o,c,a),a&&i===null&&h&4&&j0(c),Vl(c,c.return);break;case 12:vn(o,c,a);break;case 31:vn(o,c,a),a&&h&4&&V0(o,c);break;case 13:vn(o,c,a),a&&h&4&&H0(o,c);break;case 22:c.memoizedState===null&&vn(o,c,a),Vl(c,c.return);break;case 30:break;default:vn(o,c,a)}t=t.sibling}}function Yf(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&Cl(a))}function $f(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Cl(e))}function La(e,t,a,i){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)G0(e,t,a,i),t=t.sibling}function G0(e,t,a,i){var o=t.flags;switch(t.tag){case 0:case 11:case 15:La(e,t,a,i),o&2048&&Ll(9,t);break;case 1:La(e,t,a,i);break;case 3:La(e,t,a,i),o&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Cl(e)));break;case 12:if(o&2048){La(e,t,a,i),e=t.stateNode;try{var c=t.memoizedProps,h=c.id,g=c.onPostCommit;typeof g=="function"&&g(h,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(w){Je(t,t.return,w)}}else La(e,t,a,i);break;case 31:La(e,t,a,i);break;case 13:La(e,t,a,i);break;case 23:break;case 22:c=t.stateNode,h=t.alternate,t.memoizedState!==null?c._visibility&2?La(e,t,a,i):Hl(e,t):c._visibility&2?La(e,t,a,i):(c._visibility|=2,Ai(e,t,a,i,(t.subtreeFlags&10256)!==0||!1)),o&2048&&Yf(h,t);break;case 24:La(e,t,a,i),o&2048&&$f(t.alternate,t);break;default:La(e,t,a,i)}}function Ai(e,t,a,i,o){for(o=o&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var c=e,h=t,g=a,w=i,M=h.flags;switch(h.tag){case 0:case 11:case 15:Ai(c,h,g,w,o),Ll(8,h);break;case 23:break;case 22:var H=h.stateNode;h.memoizedState!==null?H._visibility&2?Ai(c,h,g,w,o):Hl(c,h):(H._visibility|=2,Ai(c,h,g,w,o)),o&&M&2048&&Yf(h.alternate,h);break;case 24:Ai(c,h,g,w,o),o&&M&2048&&$f(h.alternate,h);break;default:Ai(c,h,g,w,o)}t=t.sibling}}function Hl(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,i=t,o=i.flags;switch(i.tag){case 22:Hl(a,i),o&2048&&Yf(i.alternate,i);break;case 24:Hl(a,i),o&2048&&$f(i.alternate,i);break;default:Hl(a,i)}t=t.sibling}}var ql=8192;function Ci(e,t,a){if(e.subtreeFlags&ql)for(e=e.child;e!==null;)Y0(e,t,a),e=e.sibling}function Y0(e,t,a){switch(e.tag){case 26:Ci(e,t,a),e.flags&ql&&e.memoizedState!==null&&Q5(a,Ba,e.memoizedState,e.memoizedProps);break;case 5:Ci(e,t,a);break;case 3:case 4:var i=Ba;Ba=$o(e.stateNode.containerInfo),Ci(e,t,a),Ba=i;break;case 22:e.memoizedState===null&&(i=e.alternate,i!==null&&i.memoizedState!==null?(i=ql,ql=16777216,Ci(e,t,a),ql=i):Ci(e,t,a));break;default:Ci(e,t,a)}}function $0(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Zl(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var i=t[a];jt=i,Q0(i,e)}$0(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)X0(e),e=e.sibling}function X0(e){switch(e.tag){case 0:case 11:case 15:Zl(e),e.flags&2048&&Zn(9,e,e.return);break;case 3:Zl(e);break;case 12:Zl(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,jo(e)):Zl(e);break;default:Zl(e)}}function jo(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var i=t[a];jt=i,Q0(i,e)}$0(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Zn(8,t,t.return),jo(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,jo(t));break;default:jo(t)}e=e.sibling}}function Q0(e,t){for(;jt!==null;){var a=jt;switch(a.tag){case 0:case 11:case 15:Zn(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var i=a.memoizedState.cachePool.pool;i!=null&&i.refCount++}break;case 24:Cl(a.memoizedState.cache)}if(i=a.child,i!==null)i.return=a,jt=i;else e:for(a=e;jt!==null;){i=jt;var o=i.sibling,c=i.return;if(B0(i),i===a){jt=null;break e}if(o!==null){o.return=c,jt=o;break e}jt=c}}}var o5={getCacheForType:function(e){var t=Lt(Ct),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return Lt(Ct).controller.signal}},u5=typeof WeakMap=="function"?WeakMap:Map,$e=0,nt=null,Ne=null,Me=0,Fe=0,ma=null,Gn=!1,Ti=!1,Xf=!1,bn=0,pt=0,Yn=0,Nr=0,Qf=0,pa=0,Ei=0,Gl=null,na=null,Kf=!1,Mo=0,K0=0,Ro=1/0,Do=null,$n=null,Nt=0,Xn=null,Oi=null,xn=0,Ff=0,Jf=null,F0=null,Yl=0,Pf=null;function ga(){return($e&2)!==0&&Me!==0?Me&-Me:N.T!==null?nd():fp()}function J0(){if(pa===0)if((Me&536870912)===0||De){var e=Zs;Zs<<=1,(Zs&3932160)===0&&(Zs=262144),pa=e}else pa=536870912;return e=da.current,e!==null&&(e.flags|=32),pa}function ra(e,t,a){(e===nt&&(Fe===2||Fe===9)||e.cancelPendingCommit!==null)&&(zi(e,0),Qn(e,Me,pa,!1)),fl(e,a),(($e&2)===0||e!==nt)&&(e===nt&&(($e&2)===0&&(Nr|=a),pt===4&&Qn(e,Me,pa,!1)),Fa(e))}function P0(e,t,a){if(($e&6)!==0)throw Error(s(327));var i=!a&&(t&127)===0&&(t&e.expiredLanes)===0||cl(e,t),o=i?d5(e,t):If(e,t,!0),c=i;do{if(o===0){Ti&&!i&&Qn(e,t,0,!1);break}else{if(a=e.current.alternate,c&&!c5(a)){o=If(e,t,!1),c=!1;continue}if(o===2){if(c=t,e.errorRecoveryDisabledLanes&c)var h=0;else h=e.pendingLanes&-536870913,h=h!==0?h:h&536870912?536870912:0;if(h!==0){t=h;e:{var g=e;o=Gl;var w=g.current.memoizedState.isDehydrated;if(w&&(zi(g,h).flags|=256),h=If(g,h,!1),h!==2){if(Xf&&!w){g.errorRecoveryDisabledLanes|=c,Nr|=c,o=4;break e}c=na,na=o,c!==null&&(na===null?na=c:na.push.apply(na,c))}o=h}if(c=!1,o!==2)continue}}if(o===1){zi(e,0),Qn(e,t,0,!0);break}e:{switch(i=e,c=o,c){case 0:case 1:throw Error(s(345));case 4:if((t&4194048)!==t)break;case 6:Qn(i,t,pa,!Gn);break e;case 2:na=null;break;case 3:case 5:break;default:throw Error(s(329))}if((t&62914560)===t&&(o=Mo+300-R(),10<o)){if(Qn(i,t,pa,!Gn),Ys(i,0,!0)!==0)break e;xn=t,i.timeoutHandle=Oy(W0.bind(null,i,a,na,Do,Kf,t,pa,Nr,Ei,Gn,c,"Throttled",-0,0),o);break e}W0(i,a,na,Do,Kf,t,pa,Nr,Ei,Gn,c,null,-0,0)}}break}while(!0);Fa(e)}function W0(e,t,a,i,o,c,h,g,w,M,H,G,D,B){if(e.timeoutHandle=-1,G=t.subtreeFlags,G&8192||(G&16785408)===16785408){G={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:rn},Y0(t,c,G);var ce=(c&62914560)===c?Mo-R():(c&4194048)===c?K0-R():0;if(ce=K5(G,ce),ce!==null){xn=c,e.cancelPendingCommit=ce(ly.bind(null,e,t,c,a,i,o,h,g,w,H,G,null,D,B)),Qn(e,c,h,!M);return}}ly(e,t,c,a,i,o,h,g,w)}function c5(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var i=0;i<a.length;i++){var o=a[i],c=o.getSnapshot;o=o.value;try{if(!ca(c(),o))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Qn(e,t,a,i){t&=~Qf,t&=~Nr,e.suspendedLanes|=t,e.pingedLanes&=~t,i&&(e.warmLanes|=t),i=e.expirationTimes;for(var o=t;0<o;){var c=31-Dt(o),h=1<<c;i[c]=-1,o&=~h}a!==0&&op(e,a,t)}function Uo(){return($e&6)===0?($l(0),!1):!0}function Wf(){if(Ne!==null){if(Fe===0)var e=Ne.return;else e=Ne,un=_r=null,mf(e),bi=null,El=0,e=Ne;for(;e!==null;)z0(e.alternate,e),e=e.return;Ne=null}}function zi(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,N5(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),xn=0,Wf(),nt=e,Ne=a=sn(e.current,null),Me=t,Fe=0,ma=null,Gn=!1,Ti=cl(e,t),Xf=!1,Ei=pa=Qf=Nr=Yn=pt=0,na=Gl=null,Kf=!1,(t&8)!==0&&(t|=t&32);var i=e.entangledLanes;if(i!==0)for(e=e.entanglements,i&=t;0<i;){var o=31-Dt(i),c=1<<o;t|=e[o],i&=~c}return bn=t,ao(),a}function I0(e,t){Ce=null,N.H=Dl,t===vi||t===co?(t=pg(),Fe=3):t===tf?(t=pg(),Fe=4):Fe=t===Nf?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,ma=t,Ne===null&&(pt=1,Co(e,Ca(t,e.current)))}function ey(){var e=da.current;return e===null?!0:(Me&4194048)===Me?za===null:(Me&62914560)===Me||(Me&536870912)!==0?e===za:!1}function ty(){var e=N.H;return N.H=Dl,e===null?Dl:e}function ay(){var e=N.A;return N.A=o5,e}function Bo(){pt=4,Gn||(Me&4194048)!==Me&&da.current!==null||(Ti=!0),(Yn&134217727)===0&&(Nr&134217727)===0||nt===null||Qn(nt,Me,pa,!1)}function If(e,t,a){var i=$e;$e|=2;var o=ty(),c=ay();(nt!==e||Me!==t)&&(Do=null,zi(e,t)),t=!1;var h=pt;e:do try{if(Fe!==0&&Ne!==null){var g=Ne,w=ma;switch(Fe){case 8:Wf(),h=6;break e;case 3:case 2:case 9:case 6:da.current===null&&(t=!0);var M=Fe;if(Fe=0,ma=null,Ni(e,g,w,M),a&&Ti){h=0;break e}break;default:M=Fe,Fe=0,ma=null,Ni(e,g,w,M)}}f5(),h=pt;break}catch(H){I0(e,H)}while(!0);return t&&e.shellSuspendCounter++,un=_r=null,$e=i,N.H=o,N.A=c,Ne===null&&(nt=null,Me=0,ao()),h}function f5(){for(;Ne!==null;)ny(Ne)}function d5(e,t){var a=$e;$e|=2;var i=ty(),o=ay();nt!==e||Me!==t?(Do=null,Ro=R()+500,zi(e,t)):Ti=cl(e,t);e:do try{if(Fe!==0&&Ne!==null){t=Ne;var c=ma;t:switch(Fe){case 1:Fe=0,ma=null,Ni(e,t,c,1);break;case 2:case 9:if(hg(c)){Fe=0,ma=null,ry(t);break}t=function(){Fe!==2&&Fe!==9||nt!==e||(Fe=7),Fa(e)},c.then(t,t);break e;case 3:Fe=7;break e;case 4:Fe=5;break e;case 7:hg(c)?(Fe=0,ma=null,ry(t)):(Fe=0,ma=null,Ni(e,t,c,7));break;case 5:var h=null;switch(Ne.tag){case 26:h=Ne.memoizedState;case 5:case 27:var g=Ne;if(h?Gy(h):g.stateNode.complete){Fe=0,ma=null;var w=g.sibling;if(w!==null)Ne=w;else{var M=g.return;M!==null?(Ne=M,Lo(M)):Ne=null}break t}}Fe=0,ma=null,Ni(e,t,c,5);break;case 6:Fe=0,ma=null,Ni(e,t,c,6);break;case 8:Wf(),pt=6;break e;default:throw Error(s(462))}}h5();break}catch(H){I0(e,H)}while(!0);return un=_r=null,N.H=i,N.A=o,$e=a,Ne!==null?0:(nt=null,Me=0,ao(),pt)}function h5(){for(;Ne!==null&&!A();)ny(Ne)}function ny(e){var t=E0(e.alternate,e,bn);e.memoizedProps=e.pendingProps,t===null?Lo(e):Ne=t}function ry(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=_0(a,t,t.pendingProps,t.type,void 0,Me);break;case 11:t=_0(a,t,t.pendingProps,t.type.render,t.ref,Me);break;case 5:mf(t);default:z0(a,t),t=Ne=ag(t,bn),t=E0(a,t,bn)}e.memoizedProps=e.pendingProps,t===null?Lo(e):Ne=t}function Ni(e,t,a,i){un=_r=null,mf(t),bi=null,El=0;var o=t.return;try{if(t5(e,o,t,a,Me)){pt=1,Co(e,Ca(a,e.current)),Ne=null;return}}catch(c){if(o!==null)throw Ne=o,c;pt=1,Co(e,Ca(a,e.current)),Ne=null;return}t.flags&32768?(De||i===1?e=!0:Ti||(Me&536870912)!==0?e=!1:(Gn=e=!0,(i===2||i===9||i===3||i===6)&&(i=da.current,i!==null&&i.tag===13&&(i.flags|=16384))),iy(t,e)):Lo(t)}function Lo(e){var t=e;do{if((t.flags&32768)!==0){iy(t,Gn);return}e=t.return;var a=r5(t.alternate,t,bn);if(a!==null){Ne=a;return}if(t=t.sibling,t!==null){Ne=t;return}Ne=t=e}while(t!==null);pt===0&&(pt=5)}function iy(e,t){do{var a=i5(e.alternate,e);if(a!==null){a.flags&=32767,Ne=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){Ne=e;return}Ne=e=a}while(e!==null);pt=6,Ne=null}function ly(e,t,a,i,o,c,h,g,w){e.cancelPendingCommit=null;do Vo();while(Nt!==0);if(($e&6)!==0)throw Error(s(327));if(t!==null){if(t===e.current)throw Error(s(177));if(c=t.lanes|t.childLanes,c|=Hc,XS(e,a,c,h,g,w),e===nt&&(Ne=nt=null,Me=0),Oi=t,Xn=e,xn=a,Ff=c,Jf=o,F0=i,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,y5(fe,function(){return fy(),null})):(e.callbackNode=null,e.callbackPriority=0),i=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||i){i=N.T,N.T=null,o=Q.p,Q.p=2,h=$e,$e|=4;try{l5(e,t,a)}finally{$e=h,Q.p=o,N.T=i}}Nt=1,sy(),oy(),uy()}}function sy(){if(Nt===1){Nt=0;var e=Xn,t=Oi,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=N.T,N.T=null;var i=Q.p;Q.p=2;var o=$e;$e|=4;try{q0(t,e);var c=fd,h=Qp(e.containerInfo),g=c.focusedElem,w=c.selectionRange;if(h!==g&&g&&g.ownerDocument&&Xp(g.ownerDocument.documentElement,g)){if(w!==null&&Dc(g)){var M=w.start,H=w.end;if(H===void 0&&(H=M),"selectionStart"in g)g.selectionStart=M,g.selectionEnd=Math.min(H,g.value.length);else{var G=g.ownerDocument||document,D=G&&G.defaultView||window;if(D.getSelection){var B=D.getSelection(),ce=g.textContent.length,ye=Math.min(w.start,ce),at=w.end===void 0?ye:Math.min(w.end,ce);!B.extend&&ye>at&&(h=at,at=ye,ye=h);var z=$p(g,ye),T=$p(g,at);if(z&&T&&(B.rangeCount!==1||B.anchorNode!==z.node||B.anchorOffset!==z.offset||B.focusNode!==T.node||B.focusOffset!==T.offset)){var j=G.createRange();j.setStart(z.node,z.offset),B.removeAllRanges(),ye>at?(B.addRange(j),B.extend(T.node,T.offset)):(j.setEnd(T.node,T.offset),B.addRange(j))}}}}for(G=[],B=g;B=B.parentNode;)B.nodeType===1&&G.push({element:B,left:B.scrollLeft,top:B.scrollTop});for(typeof g.focus=="function"&&g.focus(),g=0;g<G.length;g++){var q=G[g];q.element.scrollLeft=q.left,q.element.scrollTop=q.top}}Po=!!cd,fd=cd=null}finally{$e=o,Q.p=i,N.T=a}}e.current=t,Nt=2}}function oy(){if(Nt===2){Nt=0;var e=Xn,t=Oi,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=N.T,N.T=null;var i=Q.p;Q.p=2;var o=$e;$e|=4;try{U0(e,t.alternate,t)}finally{$e=o,Q.p=i,N.T=a}}Nt=3}}function uy(){if(Nt===4||Nt===3){Nt=0,k();var e=Xn,t=Oi,a=xn,i=F0;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Nt=5:(Nt=0,Oi=Xn=null,cy(e,e.pendingLanes));var o=e.pendingLanes;if(o===0&&($n=null),gc(a),t=t.stateNode,Qt&&typeof Qt.onCommitFiberRoot=="function")try{Qt.onCommitFiberRoot(At,t,void 0,(t.current.flags&128)===128)}catch{}if(i!==null){t=N.T,o=Q.p,Q.p=2,N.T=null;try{for(var c=e.onRecoverableError,h=0;h<i.length;h++){var g=i[h];c(g.value,{componentStack:g.stack})}}finally{N.T=t,Q.p=o}}(xn&3)!==0&&Vo(),Fa(e),o=e.pendingLanes,(a&261930)!==0&&(o&42)!==0?e===Pf?Yl++:(Yl=0,Pf=e):Yl=0,$l(0)}}function cy(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Cl(t)))}function Vo(){return sy(),oy(),uy(),fy()}function fy(){if(Nt!==5)return!1;var e=Xn,t=Ff;Ff=0;var a=gc(xn),i=N.T,o=Q.p;try{Q.p=32>a?32:a,N.T=null,a=Jf,Jf=null;var c=Xn,h=xn;if(Nt=0,Oi=Xn=null,xn=0,($e&6)!==0)throw Error(s(331));var g=$e;if($e|=4,X0(c.current),G0(c,c.current,h,a),$e=g,$l(0,!1),Qt&&typeof Qt.onPostCommitFiberRoot=="function")try{Qt.onPostCommitFiberRoot(At,c)}catch{}return!0}finally{Q.p=o,N.T=i,cy(e,t)}}function dy(e,t,a){t=Ca(a,t),t=zf(e.stateNode,t,2),e=Vn(e,t,2),e!==null&&(fl(e,2),Fa(e))}function Je(e,t,a){if(e.tag===3)dy(e,e,a);else for(;t!==null;){if(t.tag===3){dy(t,e,a);break}else if(t.tag===1){var i=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&($n===null||!$n.has(i))){e=Ca(a,e),a=h0(2),i=Vn(t,a,2),i!==null&&(m0(a,i,t,e),fl(i,2),Fa(i));break}}t=t.return}}function ed(e,t,a){var i=e.pingCache;if(i===null){i=e.pingCache=new u5;var o=new Set;i.set(t,o)}else o=i.get(t),o===void 0&&(o=new Set,i.set(t,o));o.has(a)||(Xf=!0,o.add(a),e=m5.bind(null,e,t,a),t.then(e,e))}function m5(e,t,a){var i=e.pingCache;i!==null&&i.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,nt===e&&(Me&a)===a&&(pt===4||pt===3&&(Me&62914560)===Me&&300>R()-Mo?($e&2)===0&&zi(e,0):Qf|=a,Ei===Me&&(Ei=0)),Fa(e)}function hy(e,t){t===0&&(t=sp()),e=vr(e,t),e!==null&&(fl(e,t),Fa(e))}function p5(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),hy(e,a)}function g5(e,t){var a=0;switch(e.tag){case 31:case 13:var i=e.stateNode,o=e.memoizedState;o!==null&&(a=o.retryLane);break;case 19:i=e.stateNode;break;case 22:i=e.stateNode._retryCache;break;default:throw Error(s(314))}i!==null&&i.delete(t),hy(e,a)}function y5(e,t){return Hs(e,t)}var Ho=null,ki=null,td=!1,qo=!1,ad=!1,Kn=0;function Fa(e){e!==ki&&e.next===null&&(ki===null?Ho=ki=e:ki=ki.next=e),qo=!0,td||(td=!0,b5())}function $l(e,t){if(!ad&&qo){ad=!0;do for(var a=!1,i=Ho;i!==null;){if(e!==0){var o=i.pendingLanes;if(o===0)var c=0;else{var h=i.suspendedLanes,g=i.pingedLanes;c=(1<<31-Dt(42|e)+1)-1,c&=o&~(h&~g),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(a=!0,yy(i,c))}else c=Me,c=Ys(i,i===nt?c:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),(c&3)===0||cl(i,c)||(a=!0,yy(i,c));i=i.next}while(a);ad=!1}}function v5(){my()}function my(){qo=td=!1;var e=0;Kn!==0&&z5()&&(e=Kn);for(var t=R(),a=null,i=Ho;i!==null;){var o=i.next,c=py(i,t);c===0?(i.next=null,a===null?Ho=o:a.next=o,o===null&&(ki=a)):(a=i,(e!==0||(c&3)!==0)&&(qo=!0)),i=o}Nt!==0&&Nt!==5||$l(e),Kn!==0&&(Kn=0)}function py(e,t){for(var a=e.suspendedLanes,i=e.pingedLanes,o=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var h=31-Dt(c),g=1<<h,w=o[h];w===-1?((g&a)===0||(g&i)!==0)&&(o[h]=$S(g,t)):w<=t&&(e.expiredLanes|=g),c&=~g}if(t=nt,a=Me,a=Ys(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i=e.callbackNode,a===0||e===t&&(Fe===2||Fe===9)||e.cancelPendingCommit!==null)return i!==null&&i!==null&&Pr(i),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||cl(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(i!==null&&Pr(i),gc(a)){case 2:case 8:a=ee;break;case 32:a=fe;break;case 268435456:a=He;break;default:a=fe}return i=gy.bind(null,e),a=Hs(a,i),e.callbackPriority=t,e.callbackNode=a,t}return i!==null&&i!==null&&Pr(i),e.callbackPriority=2,e.callbackNode=null,2}function gy(e,t){if(Nt!==0&&Nt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(Vo()&&e.callbackNode!==a)return null;var i=Me;return i=Ys(e,e===nt?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i===0?null:(P0(e,i,t),py(e,R()),e.callbackNode!=null&&e.callbackNode===a?gy.bind(null,e):null)}function yy(e,t){if(Vo())return null;P0(e,t,!0)}function b5(){k5(function(){($e&6)!==0?Hs(W,v5):my()})}function nd(){if(Kn===0){var e=gi;e===0&&(e=dr,dr<<=1,(dr&261888)===0&&(dr=256)),Kn=e}return Kn}function vy(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Ks(""+e)}function by(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function x5(e,t,a,i,o){if(t==="submit"&&a&&a.stateNode===o){var c=vy((o[Wt]||null).action),h=i.submitter;h&&(t=(t=h[Wt]||null)?vy(t.formAction):h.getAttribute("formAction"),t!==null&&(c=t,h=null));var g=new Ws("action","action",null,i,o);e.push({event:g,listeners:[{instance:null,listener:function(){if(i.defaultPrevented){if(Kn!==0){var w=h?by(o,h):new FormData(o);wf(a,{pending:!0,data:w,method:o.method,action:c},null,w)}}else typeof c=="function"&&(g.preventDefault(),w=h?by(o,h):new FormData(o),wf(a,{pending:!0,data:w,method:o.method,action:c},c,w))},currentTarget:o}]})}}for(var rd=0;rd<Vc.length;rd++){var id=Vc[rd],_5=id.toLowerCase(),S5=id[0].toUpperCase()+id.slice(1);Ua(_5,"on"+S5)}Ua(Jp,"onAnimationEnd"),Ua(Pp,"onAnimationIteration"),Ua(Wp,"onAnimationStart"),Ua("dblclick","onDoubleClick"),Ua("focusin","onFocus"),Ua("focusout","onBlur"),Ua(L2,"onTransitionRun"),Ua(V2,"onTransitionStart"),Ua(H2,"onTransitionCancel"),Ua(Ip,"onTransitionEnd"),ai("onMouseEnter",["mouseout","mouseover"]),ai("onMouseLeave",["mouseout","mouseover"]),ai("onPointerEnter",["pointerout","pointerover"]),ai("onPointerLeave",["pointerout","pointerover"]),mr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),mr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),mr("onBeforeInput",["compositionend","keypress","textInput","paste"]),mr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),mr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),mr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Xl="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),w5=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Xl));function xy(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var i=e[a],o=i.event;i=i.listeners;e:{var c=void 0;if(t)for(var h=i.length-1;0<=h;h--){var g=i[h],w=g.instance,M=g.currentTarget;if(g=g.listener,w!==c&&o.isPropagationStopped())break e;c=g,o.currentTarget=M;try{c(o)}catch(H){to(H)}o.currentTarget=null,c=w}else for(h=0;h<i.length;h++){if(g=i[h],w=g.instance,M=g.currentTarget,g=g.listener,w!==c&&o.isPropagationStopped())break e;c=g,o.currentTarget=M;try{c(o)}catch(H){to(H)}o.currentTarget=null,c=w}}}}function ke(e,t){var a=t[yc];a===void 0&&(a=t[yc]=new Set);var i=e+"__bubble";a.has(i)||(_y(t,e,2,!1),a.add(i))}function ld(e,t,a){var i=0;t&&(i|=4),_y(a,e,i,t)}var Zo="_reactListening"+Math.random().toString(36).slice(2);function sd(e){if(!e[Zo]){e[Zo]=!0,mp.forEach(function(a){a!=="selectionchange"&&(w5.has(a)||ld(a,!1,e),ld(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Zo]||(t[Zo]=!0,ld("selectionchange",!1,t))}}function _y(e,t,a,i){switch(Jy(t)){case 2:var o=P5;break;case 8:o=W5;break;default:o=Sd}a=o.bind(null,t,a,e),o=void 0,!Tc||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),i?o!==void 0?e.addEventListener(t,a,{capture:!0,passive:o}):e.addEventListener(t,a,!0):o!==void 0?e.addEventListener(t,a,{passive:o}):e.addEventListener(t,a,!1)}function od(e,t,a,i,o){var c=i;if((t&1)===0&&(t&2)===0&&i!==null)e:for(;;){if(i===null)return;var h=i.tag;if(h===3||h===4){var g=i.stateNode.containerInfo;if(g===o)break;if(h===4)for(h=i.return;h!==null;){var w=h.tag;if((w===3||w===4)&&h.stateNode.containerInfo===o)return;h=h.return}for(;g!==null;){if(h=Ir(g),h===null)return;if(w=h.tag,w===5||w===6||w===26||w===27){i=c=h;continue e}g=g.parentNode}}i=i.return}Tp(function(){var M=c,H=Ac(a),G=[];e:{var D=eg.get(e);if(D!==void 0){var B=Ws,ce=e;switch(e){case"keypress":if(Js(a)===0)break e;case"keydown":case"keyup":B=g2;break;case"focusin":ce="focus",B=Nc;break;case"focusout":ce="blur",B=Nc;break;case"beforeblur":case"afterblur":B=Nc;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":B=zp;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":B=r2;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":B=b2;break;case Jp:case Pp:case Wp:B=s2;break;case Ip:B=_2;break;case"scroll":case"scrollend":B=a2;break;case"wheel":B=w2;break;case"copy":case"cut":case"paste":B=u2;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":B=kp;break;case"toggle":case"beforetoggle":B=C2}var ye=(t&4)!==0,at=!ye&&(e==="scroll"||e==="scrollend"),z=ye?D!==null?D+"Capture":null:D;ye=[];for(var T=M,j;T!==null;){var q=T;if(j=q.stateNode,q=q.tag,q!==5&&q!==26&&q!==27||j===null||z===null||(q=ml(T,z),q!=null&&ye.push(Ql(T,q,j))),at)break;T=T.return}0<ye.length&&(D=new B(D,ce,null,a,H),G.push({event:D,listeners:ye}))}}if((t&7)===0){e:{if(D=e==="mouseover"||e==="pointerover",B=e==="mouseout"||e==="pointerout",D&&a!==wc&&(ce=a.relatedTarget||a.fromElement)&&(Ir(ce)||ce[Wr]))break e;if((B||D)&&(D=H.window===H?H:(D=H.ownerDocument)?D.defaultView||D.parentWindow:window,B?(ce=a.relatedTarget||a.toElement,B=M,ce=ce?Ir(ce):null,ce!==null&&(at=f(ce),ye=ce.tag,ce!==at||ye!==5&&ye!==27&&ye!==6)&&(ce=null)):(B=null,ce=M),B!==ce)){if(ye=zp,q="onMouseLeave",z="onMouseEnter",T="mouse",(e==="pointerout"||e==="pointerover")&&(ye=kp,q="onPointerLeave",z="onPointerEnter",T="pointer"),at=B==null?D:hl(B),j=ce==null?D:hl(ce),D=new ye(q,T+"leave",B,a,H),D.target=at,D.relatedTarget=j,q=null,Ir(H)===M&&(ye=new ye(z,T+"enter",ce,a,H),ye.target=j,ye.relatedTarget=at,q=ye),at=q,B&&ce)t:{for(ye=A5,z=B,T=ce,j=0,q=z;q;q=ye(q))j++;q=0;for(var pe=T;pe;pe=ye(pe))q++;for(;0<j-q;)z=ye(z),j--;for(;0<q-j;)T=ye(T),q--;for(;j--;){if(z===T||T!==null&&z===T.alternate){ye=z;break t}z=ye(z),T=ye(T)}ye=null}else ye=null;B!==null&&Sy(G,D,B,ye,!1),ce!==null&&at!==null&&Sy(G,at,ce,ye,!0)}}e:{if(D=M?hl(M):window,B=D.nodeName&&D.nodeName.toLowerCase(),B==="select"||B==="input"&&D.type==="file")var qe=Vp;else if(Bp(D))if(Hp)qe=D2;else{qe=M2;var he=j2}else B=D.nodeName,!B||B.toLowerCase()!=="input"||D.type!=="checkbox"&&D.type!=="radio"?M&&Sc(M.elementType)&&(qe=Vp):qe=R2;if(qe&&(qe=qe(e,M))){Lp(G,qe,a,H);break e}he&&he(e,D,M),e==="focusout"&&M&&D.type==="number"&&M.memoizedProps.value!=null&&_c(D,"number",D.value)}switch(he=M?hl(M):window,e){case"focusin":(Bp(he)||he.contentEditable==="true")&&(oi=he,Uc=M,Sl=null);break;case"focusout":Sl=Uc=oi=null;break;case"mousedown":Bc=!0;break;case"contextmenu":case"mouseup":case"dragend":Bc=!1,Kp(G,a,H);break;case"selectionchange":if(B2)break;case"keydown":case"keyup":Kp(G,a,H)}var Te;if(jc)e:{switch(e){case"compositionstart":var Re="onCompositionStart";break e;case"compositionend":Re="onCompositionEnd";break e;case"compositionupdate":Re="onCompositionUpdate";break e}Re=void 0}else si?Dp(e,a)&&(Re="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(Re="onCompositionStart");Re&&(jp&&a.locale!=="ko"&&(si||Re!=="onCompositionStart"?Re==="onCompositionEnd"&&si&&(Te=Ep()):(jn=H,Ec="value"in jn?jn.value:jn.textContent,si=!0)),he=Go(M,Re),0<he.length&&(Re=new Np(Re,e,null,a,H),G.push({event:Re,listeners:he}),Te?Re.data=Te:(Te=Up(a),Te!==null&&(Re.data=Te)))),(Te=E2?O2(e,a):z2(e,a))&&(Re=Go(M,"onBeforeInput"),0<Re.length&&(he=new Np("onBeforeInput","beforeinput",null,a,H),G.push({event:he,listeners:Re}),he.data=Te)),x5(G,e,M,a,H)}xy(G,t)})}function Ql(e,t,a){return{instance:e,listener:t,currentTarget:a}}function Go(e,t){for(var a=t+"Capture",i=[];e!==null;){var o=e,c=o.stateNode;if(o=o.tag,o!==5&&o!==26&&o!==27||c===null||(o=ml(e,a),o!=null&&i.unshift(Ql(e,o,c)),o=ml(e,t),o!=null&&i.push(Ql(e,o,c))),e.tag===3)return i;e=e.return}return[]}function A5(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Sy(e,t,a,i,o){for(var c=t._reactName,h=[];a!==null&&a!==i;){var g=a,w=g.alternate,M=g.stateNode;if(g=g.tag,w!==null&&w===i)break;g!==5&&g!==26&&g!==27||M===null||(w=M,o?(M=ml(a,c),M!=null&&h.unshift(Ql(a,M,w))):o||(M=ml(a,c),M!=null&&h.push(Ql(a,M,w)))),a=a.return}h.length!==0&&e.push({event:t,listeners:h})}var C5=/\r\n?/g,T5=/\u0000|\uFFFD/g;function wy(e){return(typeof e=="string"?e:""+e).replace(C5,`
49
- `).replace(T5,"")}function Ay(e,t){return t=wy(t),wy(e)===t}function tt(e,t,a,i,o,c){switch(a){case"children":typeof i=="string"?t==="body"||t==="textarea"&&i===""||ri(e,i):(typeof i=="number"||typeof i=="bigint")&&t!=="body"&&ri(e,""+i);break;case"className":Xs(e,"class",i);break;case"tabIndex":Xs(e,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":Xs(e,a,i);break;case"style":Ap(e,i,c);break;case"data":if(t!=="object"){Xs(e,"data",i);break}case"src":case"href":if(i===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(i==null||typeof i=="function"||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(a);break}i=Ks(""+i),e.setAttribute(a,i);break;case"action":case"formAction":if(typeof i=="function"){e.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof c=="function"&&(a==="formAction"?(t!=="input"&&tt(e,t,"name",o.name,o,null),tt(e,t,"formEncType",o.formEncType,o,null),tt(e,t,"formMethod",o.formMethod,o,null),tt(e,t,"formTarget",o.formTarget,o,null)):(tt(e,t,"encType",o.encType,o,null),tt(e,t,"method",o.method,o,null),tt(e,t,"target",o.target,o,null)));if(i==null||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(a);break}i=Ks(""+i),e.setAttribute(a,i);break;case"onClick":i!=null&&(e.onclick=rn);break;case"onScroll":i!=null&&ke("scroll",e);break;case"onScrollEnd":i!=null&&ke("scrollend",e);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(s(61));if(a=i.__html,a!=null){if(o.children!=null)throw Error(s(60));e.innerHTML=a}}break;case"multiple":e.multiple=i&&typeof i!="function"&&typeof i!="symbol";break;case"muted":e.muted=i&&typeof i!="function"&&typeof i!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(i==null||typeof i=="function"||typeof i=="boolean"||typeof i=="symbol"){e.removeAttribute("xlink:href");break}a=Ks(""+i),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(a,""+i):e.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":i&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":i===!0?e.setAttribute(a,""):i!==!1&&i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(a,i):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":i!=null&&typeof i!="function"&&typeof i!="symbol"&&!isNaN(i)&&1<=i?e.setAttribute(a,i):e.removeAttribute(a);break;case"rowSpan":case"start":i==null||typeof i=="function"||typeof i=="symbol"||isNaN(i)?e.removeAttribute(a):e.setAttribute(a,i);break;case"popover":ke("beforetoggle",e),ke("toggle",e),$s(e,"popover",i);break;case"xlinkActuate":nn(e,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":nn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":nn(e,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":nn(e,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":nn(e,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":nn(e,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":nn(e,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":nn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":nn(e,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case"is":$s(e,"is",i);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=e2.get(a)||a,$s(e,a,i))}}function ud(e,t,a,i,o,c){switch(a){case"style":Ap(e,i,c);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(s(61));if(a=i.__html,a!=null){if(o.children!=null)throw Error(s(60));e.innerHTML=a}}break;case"children":typeof i=="string"?ri(e,i):(typeof i=="number"||typeof i=="bigint")&&ri(e,""+i);break;case"onScroll":i!=null&&ke("scroll",e);break;case"onScrollEnd":i!=null&&ke("scrollend",e);break;case"onClick":i!=null&&(e.onclick=rn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!pp.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(o=a.endsWith("Capture"),t=a.slice(2,o?a.length-7:void 0),c=e[Wt]||null,c=c!=null?c[a]:null,typeof c=="function"&&e.removeEventListener(t,c,o),typeof i=="function")){typeof c!="function"&&c!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,i,o);break e}a in e?e[a]=i:i===!0?e.setAttribute(a,""):$s(e,a,i)}}}function Ht(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ke("error",e),ke("load",e);var i=!1,o=!1,c;for(c in a)if(a.hasOwnProperty(c)){var h=a[c];if(h!=null)switch(c){case"src":i=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:tt(e,t,c,h,a,null)}}o&&tt(e,t,"srcSet",a.srcSet,a,null),i&&tt(e,t,"src",a.src,a,null);return;case"input":ke("invalid",e);var g=c=h=o=null,w=null,M=null;for(i in a)if(a.hasOwnProperty(i)){var H=a[i];if(H!=null)switch(i){case"name":o=H;break;case"type":h=H;break;case"checked":w=H;break;case"defaultChecked":M=H;break;case"value":c=H;break;case"defaultValue":g=H;break;case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(s(137,t));break;default:tt(e,t,i,H,a,null)}}xp(e,c,g,w,M,h,o,!1);return;case"select":ke("invalid",e),i=h=c=null;for(o in a)if(a.hasOwnProperty(o)&&(g=a[o],g!=null))switch(o){case"value":c=g;break;case"defaultValue":h=g;break;case"multiple":i=g;default:tt(e,t,o,g,a,null)}t=c,a=h,e.multiple=!!i,t!=null?ni(e,!!i,t,!1):a!=null&&ni(e,!!i,a,!0);return;case"textarea":ke("invalid",e),c=o=i=null;for(h in a)if(a.hasOwnProperty(h)&&(g=a[h],g!=null))switch(h){case"value":i=g;break;case"defaultValue":o=g;break;case"children":c=g;break;case"dangerouslySetInnerHTML":if(g!=null)throw Error(s(91));break;default:tt(e,t,h,g,a,null)}Sp(e,i,o,c);return;case"option":for(w in a)if(a.hasOwnProperty(w)&&(i=a[w],i!=null))switch(w){case"selected":e.selected=i&&typeof i!="function"&&typeof i!="symbol";break;default:tt(e,t,w,i,a,null)}return;case"dialog":ke("beforetoggle",e),ke("toggle",e),ke("cancel",e),ke("close",e);break;case"iframe":case"object":ke("load",e);break;case"video":case"audio":for(i=0;i<Xl.length;i++)ke(Xl[i],e);break;case"image":ke("error",e),ke("load",e);break;case"details":ke("toggle",e);break;case"embed":case"source":case"link":ke("error",e),ke("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(M in a)if(a.hasOwnProperty(M)&&(i=a[M],i!=null))switch(M){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:tt(e,t,M,i,a,null)}return;default:if(Sc(t)){for(H in a)a.hasOwnProperty(H)&&(i=a[H],i!==void 0&&ud(e,t,H,i,a,void 0));return}}for(g in a)a.hasOwnProperty(g)&&(i=a[g],i!=null&&tt(e,t,g,i,a,null))}function E5(e,t,a,i){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,c=null,h=null,g=null,w=null,M=null,H=null;for(B in a){var G=a[B];if(a.hasOwnProperty(B)&&G!=null)switch(B){case"checked":break;case"value":break;case"defaultValue":w=G;default:i.hasOwnProperty(B)||tt(e,t,B,null,i,G)}}for(var D in i){var B=i[D];if(G=a[D],i.hasOwnProperty(D)&&(B!=null||G!=null))switch(D){case"type":c=B;break;case"name":o=B;break;case"checked":M=B;break;case"defaultChecked":H=B;break;case"value":h=B;break;case"defaultValue":g=B;break;case"children":case"dangerouslySetInnerHTML":if(B!=null)throw Error(s(137,t));break;default:B!==G&&tt(e,t,D,B,i,G)}}xc(e,h,g,w,M,H,c,o);return;case"select":B=h=g=D=null;for(c in a)if(w=a[c],a.hasOwnProperty(c)&&w!=null)switch(c){case"value":break;case"multiple":B=w;default:i.hasOwnProperty(c)||tt(e,t,c,null,i,w)}for(o in i)if(c=i[o],w=a[o],i.hasOwnProperty(o)&&(c!=null||w!=null))switch(o){case"value":D=c;break;case"defaultValue":g=c;break;case"multiple":h=c;default:c!==w&&tt(e,t,o,c,i,w)}t=g,a=h,i=B,D!=null?ni(e,!!a,D,!1):!!i!=!!a&&(t!=null?ni(e,!!a,t,!0):ni(e,!!a,a?[]:"",!1));return;case"textarea":B=D=null;for(g in a)if(o=a[g],a.hasOwnProperty(g)&&o!=null&&!i.hasOwnProperty(g))switch(g){case"value":break;case"children":break;default:tt(e,t,g,null,i,o)}for(h in i)if(o=i[h],c=a[h],i.hasOwnProperty(h)&&(o!=null||c!=null))switch(h){case"value":D=o;break;case"defaultValue":B=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(s(91));break;default:o!==c&&tt(e,t,h,o,i,c)}_p(e,D,B);return;case"option":for(var ce in a)if(D=a[ce],a.hasOwnProperty(ce)&&D!=null&&!i.hasOwnProperty(ce))switch(ce){case"selected":e.selected=!1;break;default:tt(e,t,ce,null,i,D)}for(w in i)if(D=i[w],B=a[w],i.hasOwnProperty(w)&&D!==B&&(D!=null||B!=null))switch(w){case"selected":e.selected=D&&typeof D!="function"&&typeof D!="symbol";break;default:tt(e,t,w,D,i,B)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var ye in a)D=a[ye],a.hasOwnProperty(ye)&&D!=null&&!i.hasOwnProperty(ye)&&tt(e,t,ye,null,i,D);for(M in i)if(D=i[M],B=a[M],i.hasOwnProperty(M)&&D!==B&&(D!=null||B!=null))switch(M){case"children":case"dangerouslySetInnerHTML":if(D!=null)throw Error(s(137,t));break;default:tt(e,t,M,D,i,B)}return;default:if(Sc(t)){for(var at in a)D=a[at],a.hasOwnProperty(at)&&D!==void 0&&!i.hasOwnProperty(at)&&ud(e,t,at,void 0,i,D);for(H in i)D=i[H],B=a[H],!i.hasOwnProperty(H)||D===B||D===void 0&&B===void 0||ud(e,t,H,D,i,B);return}}for(var z in a)D=a[z],a.hasOwnProperty(z)&&D!=null&&!i.hasOwnProperty(z)&&tt(e,t,z,null,i,D);for(G in i)D=i[G],B=a[G],!i.hasOwnProperty(G)||D===B||D==null&&B==null||tt(e,t,G,D,i,B)}function Cy(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function O5(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),i=0;i<a.length;i++){var o=a[i],c=o.transferSize,h=o.initiatorType,g=o.duration;if(c&&g&&Cy(h)){for(h=0,g=o.responseEnd,i+=1;i<a.length;i++){var w=a[i],M=w.startTime;if(M>g)break;var H=w.transferSize,G=w.initiatorType;H&&Cy(G)&&(w=w.responseEnd,h+=H*(w<g?1:(g-M)/(w-M)))}if(--i,t+=8*(c+h)/(o.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var cd=null,fd=null;function Yo(e){return e.nodeType===9?e:e.ownerDocument}function Ty(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Ey(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function dd(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var hd=null;function z5(){var e=window.event;return e&&e.type==="popstate"?e===hd?!1:(hd=e,!0):(hd=null,!1)}var Oy=typeof setTimeout=="function"?setTimeout:void 0,N5=typeof clearTimeout=="function"?clearTimeout:void 0,zy=typeof Promise=="function"?Promise:void 0,k5=typeof queueMicrotask=="function"?queueMicrotask:typeof zy<"u"?function(e){return zy.resolve(null).then(e).catch(j5)}:Oy;function j5(e){setTimeout(function(){throw e})}function Fn(e){return e==="head"}function Ny(e,t){var a=t,i=0;do{var o=a.nextSibling;if(e.removeChild(a),o&&o.nodeType===8)if(a=o.data,a==="/$"||a==="/&"){if(i===0){e.removeChild(o),Di(t);return}i--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")i++;else if(a==="html")Kl(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,Kl(a);for(var c=a.firstChild;c;){var h=c.nextSibling,g=c.nodeName;c[dl]||g==="SCRIPT"||g==="STYLE"||g==="LINK"&&c.rel.toLowerCase()==="stylesheet"||a.removeChild(c),c=h}}else a==="body"&&Kl(e.ownerDocument.body);a=o}while(a);Di(t)}function ky(e,t){var a=e;e=0;do{var i=a.nextSibling;if(a.nodeType===1?t?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(t?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),i&&i.nodeType===8)if(a=i.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=i}while(a)}function md(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":md(a),vc(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function M5(e,t,a,i){for(;e.nodeType===1;){var o=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!i&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(i){if(!e[dl])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(c=e.getAttribute("rel"),c==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(c!==o.rel||e.getAttribute("href")!==(o.href==null||o.href===""?null:o.href)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin)||e.getAttribute("title")!==(o.title==null?null:o.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(c=e.getAttribute("src"),(c!==(o.src==null?null:o.src)||e.getAttribute("type")!==(o.type==null?null:o.type)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin))&&c&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var c=o.name==null?null:""+o.name;if(o.type==="hidden"&&e.getAttribute("name")===c)return e}else return e;if(e=Na(e.nextSibling),e===null)break}return null}function R5(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=Na(e.nextSibling),e===null))return null;return e}function jy(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Na(e.nextSibling),e===null))return null;return e}function pd(e){return e.data==="$?"||e.data==="$~"}function gd(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function D5(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var i=function(){t(),a.removeEventListener("DOMContentLoaded",i)};a.addEventListener("DOMContentLoaded",i),e._reactRetry=i}}function Na(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var yd=null;function My(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return Na(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function Ry(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(t===0)return e;t--}else a!=="/$"&&a!=="/&"||t++}e=e.previousSibling}return null}function Dy(e,t,a){switch(t=Yo(a),e){case"html":if(e=t.documentElement,!e)throw Error(s(452));return e;case"head":if(e=t.head,!e)throw Error(s(453));return e;case"body":if(e=t.body,!e)throw Error(s(454));return e;default:throw Error(s(451))}}function Kl(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);vc(e)}var ka=new Map,Uy=new Set;function $o(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var _n=Q.d;Q.d={f:U5,r:B5,D:L5,C:V5,L:H5,m:q5,X:G5,S:Z5,M:Y5};function U5(){var e=_n.f(),t=Uo();return e||t}function B5(e){var t=ei(e);t!==null&&t.tag===5&&t.type==="form"?Ig(t):_n.r(e)}var ji=typeof document>"u"?null:document;function By(e,t,a){var i=ji;if(i&&typeof t=="string"&&t){var o=wa(t);o='link[rel="'+e+'"][href="'+o+'"]',typeof a=="string"&&(o+='[crossorigin="'+a+'"]'),Uy.has(o)||(Uy.add(o),e={rel:e,crossOrigin:a,href:t},i.querySelector(o)===null&&(t=i.createElement("link"),Ht(t,"link",e),kt(t),i.head.appendChild(t)))}}function L5(e){_n.D(e),By("dns-prefetch",e,null)}function V5(e,t){_n.C(e,t),By("preconnect",e,t)}function H5(e,t,a){_n.L(e,t,a);var i=ji;if(i&&e&&t){var o='link[rel="preload"][as="'+wa(t)+'"]';t==="image"&&a&&a.imageSrcSet?(o+='[imagesrcset="'+wa(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(o+='[imagesizes="'+wa(a.imageSizes)+'"]')):o+='[href="'+wa(e)+'"]';var c=o;switch(t){case"style":c=Mi(e);break;case"script":c=Ri(e)}ka.has(c)||(e=x({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),ka.set(c,e),i.querySelector(o)!==null||t==="style"&&i.querySelector(Fl(c))||t==="script"&&i.querySelector(Jl(c))||(t=i.createElement("link"),Ht(t,"link",e),kt(t),i.head.appendChild(t)))}}function q5(e,t){_n.m(e,t);var a=ji;if(a&&e){var i=t&&typeof t.as=="string"?t.as:"script",o='link[rel="modulepreload"][as="'+wa(i)+'"][href="'+wa(e)+'"]',c=o;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=Ri(e)}if(!ka.has(c)&&(e=x({rel:"modulepreload",href:e},t),ka.set(c,e),a.querySelector(o)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Jl(c)))return}i=a.createElement("link"),Ht(i,"link",e),kt(i),a.head.appendChild(i)}}}function Z5(e,t,a){_n.S(e,t,a);var i=ji;if(i&&e){var o=ti(i).hoistableStyles,c=Mi(e);t=t||"default";var h=o.get(c);if(!h){var g={loading:0,preload:null};if(h=i.querySelector(Fl(c)))g.loading=5;else{e=x({rel:"stylesheet",href:e,"data-precedence":t},a),(a=ka.get(c))&&vd(e,a);var w=h=i.createElement("link");kt(w),Ht(w,"link",e),w._p=new Promise(function(M,H){w.onload=M,w.onerror=H}),w.addEventListener("load",function(){g.loading|=1}),w.addEventListener("error",function(){g.loading|=2}),g.loading|=4,Xo(h,t,i)}h={type:"stylesheet",instance:h,count:1,state:g},o.set(c,h)}}}function G5(e,t){_n.X(e,t);var a=ji;if(a&&e){var i=ti(a).hoistableScripts,o=Ri(e),c=i.get(o);c||(c=a.querySelector(Jl(o)),c||(e=x({src:e,async:!0},t),(t=ka.get(o))&&bd(e,t),c=a.createElement("script"),kt(c),Ht(c,"link",e),a.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},i.set(o,c))}}function Y5(e,t){_n.M(e,t);var a=ji;if(a&&e){var i=ti(a).hoistableScripts,o=Ri(e),c=i.get(o);c||(c=a.querySelector(Jl(o)),c||(e=x({src:e,async:!0,type:"module"},t),(t=ka.get(o))&&bd(e,t),c=a.createElement("script"),kt(c),Ht(c,"link",e),a.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},i.set(o,c))}}function Ly(e,t,a,i){var o=(o=Ee.current)?$o(o):null;if(!o)throw Error(s(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=Mi(a.href),a=ti(o).hoistableStyles,i=a.get(t),i||(i={type:"style",instance:null,count:0,state:null},a.set(t,i)),i):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=Mi(a.href);var c=ti(o).hoistableStyles,h=c.get(e);if(h||(o=o.ownerDocument||o,h={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,h),(c=o.querySelector(Fl(e)))&&!c._p&&(h.instance=c,h.state.loading=5),ka.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},ka.set(e,a),c||$5(o,e,a,h.state))),t&&i===null)throw Error(s(528,""));return h}if(t&&i!==null)throw Error(s(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Ri(a),a=ti(o).hoistableScripts,i=a.get(t),i||(i={type:"script",instance:null,count:0,state:null},a.set(t,i)),i):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,e))}}function Mi(e){return'href="'+wa(e)+'"'}function Fl(e){return'link[rel="stylesheet"]['+e+"]"}function Vy(e){return x({},e,{"data-precedence":e.precedence,precedence:null})}function $5(e,t,a,i){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?i.loading=1:(t=e.createElement("link"),i.preload=t,t.addEventListener("load",function(){return i.loading|=1}),t.addEventListener("error",function(){return i.loading|=2}),Ht(t,"link",a),kt(t),e.head.appendChild(t))}function Ri(e){return'[src="'+wa(e)+'"]'}function Jl(e){return"script[async]"+e}function Hy(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var i=e.querySelector('style[data-href~="'+wa(a.href)+'"]');if(i)return t.instance=i,kt(i),i;var o=x({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return i=(e.ownerDocument||e).createElement("style"),kt(i),Ht(i,"style",o),Xo(i,a.precedence,e),t.instance=i;case"stylesheet":o=Mi(a.href);var c=e.querySelector(Fl(o));if(c)return t.state.loading|=4,t.instance=c,kt(c),c;i=Vy(a),(o=ka.get(o))&&vd(i,o),c=(e.ownerDocument||e).createElement("link"),kt(c);var h=c;return h._p=new Promise(function(g,w){h.onload=g,h.onerror=w}),Ht(c,"link",i),t.state.loading|=4,Xo(c,a.precedence,e),t.instance=c;case"script":return c=Ri(a.src),(o=e.querySelector(Jl(c)))?(t.instance=o,kt(o),o):(i=a,(o=ka.get(c))&&(i=x({},a),bd(i,o)),e=e.ownerDocument||e,o=e.createElement("script"),kt(o),Ht(o,"link",i),e.head.appendChild(o),t.instance=o);case"void":return null;default:throw Error(s(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(i=t.instance,t.state.loading|=4,Xo(i,a.precedence,e));return t.instance}function Xo(e,t,a){for(var i=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=i.length?i[i.length-1]:null,c=o,h=0;h<i.length;h++){var g=i[h];if(g.dataset.precedence===t)c=g;else if(c!==o)break}c?c.parentNode.insertBefore(e,c.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function vd(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function bd(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Qo=null;function qy(e,t,a){if(Qo===null){var i=new Map,o=Qo=new Map;o.set(a,i)}else o=Qo,i=o.get(a),i||(i=new Map,o.set(a,i));if(i.has(e))return i;for(i.set(e,null),a=a.getElementsByTagName(e),o=0;o<a.length;o++){var c=a[o];if(!(c[dl]||c[Ut]||e==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var h=c.getAttribute(t)||"";h=e+h;var g=i.get(h);g?g.push(c):i.set(h,[c])}}return i}function Zy(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function X5(e,t,a){if(a===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Gy(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Q5(e,t,a,i){if(a.type==="stylesheet"&&(typeof i.media!="string"||matchMedia(i.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var o=Mi(i.href),c=t.querySelector(Fl(o));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Ko.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=c,kt(c);return}c=t.ownerDocument||t,i=Vy(i),(o=ka.get(o))&&vd(i,o),c=c.createElement("link"),kt(c);var h=c;h._p=new Promise(function(g,w){h.onload=g,h.onerror=w}),Ht(c,"link",i),a.instance=c}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=Ko.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var xd=0;function K5(e,t){return e.stylesheets&&e.count===0&&Jo(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var i=setTimeout(function(){if(e.stylesheets&&Jo(e,e.stylesheets),e.unsuspend){var c=e.unsuspend;e.unsuspend=null,c()}},6e4+t);0<e.imgBytes&&xd===0&&(xd=62500*O5());var o=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Jo(e,e.stylesheets),e.unsuspend)){var c=e.unsuspend;e.unsuspend=null,c()}},(e.imgBytes>xd?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(i),clearTimeout(o)}}:null}function Ko(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Jo(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Fo=null;function Jo(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Fo=new Map,t.forEach(F5,e),Fo=null,Ko.call(e))}function F5(e,t){if(!(t.state.loading&4)){var a=Fo.get(e);if(a)var i=a.get(null);else{a=new Map,Fo.set(e,a);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<o.length;c++){var h=o[c];(h.nodeName==="LINK"||h.getAttribute("media")!=="not all")&&(a.set(h.dataset.precedence,h),i=h)}i&&a.set(null,i)}o=t.instance,h=o.getAttribute("data-precedence"),c=a.get(h)||i,c===i&&a.set(null,o),a.set(h,o),this.count++,i=Ko.bind(this),o.addEventListener("load",i),o.addEventListener("error",i),c?c.parentNode.insertBefore(o,c.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(o,e.firstChild)),t.state.loading|=4}}var Pl={$$typeof:ae,Provider:null,Consumer:null,_currentValue:se,_currentValue2:se,_threadCount:0};function J5(e,t,a,i,o,c,h,g,w){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=mc(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=mc(0),this.hiddenUpdates=mc(null),this.identifierPrefix=i,this.onUncaughtError=o,this.onCaughtError=c,this.onRecoverableError=h,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=w,this.incompleteTransitions=new Map}function Yy(e,t,a,i,o,c,h,g,w,M,H,G){return e=new J5(e,t,a,h,w,M,H,G,g),t=1,c===!0&&(t|=24),c=fa(3,null,null,t),e.current=c,c.stateNode=e,t=Wc(),t.refCount++,e.pooledCache=t,t.refCount++,c.memoizedState={element:i,isDehydrated:a,cache:t},af(c),e}function $y(e){return e?(e=fi,e):fi}function Xy(e,t,a,i,o,c){o=$y(o),i.context===null?i.context=o:i.pendingContext=o,i=Ln(t),i.payload={element:a},c=c===void 0?null:c,c!==null&&(i.callback=c),a=Vn(e,i,t),a!==null&&(ra(a,e,t),zl(a,e,t))}function Qy(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function _d(e,t){Qy(e,t),(e=e.alternate)&&Qy(e,t)}function Ky(e){if(e.tag===13||e.tag===31){var t=vr(e,67108864);t!==null&&ra(t,e,67108864),_d(e,67108864)}}function Fy(e){if(e.tag===13||e.tag===31){var t=ga();t=pc(t);var a=vr(e,t);a!==null&&ra(a,e,t),_d(e,t)}}var Po=!0;function P5(e,t,a,i){var o=N.T;N.T=null;var c=Q.p;try{Q.p=2,Sd(e,t,a,i)}finally{Q.p=c,N.T=o}}function W5(e,t,a,i){var o=N.T;N.T=null;var c=Q.p;try{Q.p=8,Sd(e,t,a,i)}finally{Q.p=c,N.T=o}}function Sd(e,t,a,i){if(Po){var o=wd(i);if(o===null)od(e,t,i,Wo,a),Py(e,i);else if(ew(o,e,t,a,i))i.stopPropagation();else if(Py(e,i),t&4&&-1<I5.indexOf(e)){for(;o!==null;){var c=ei(o);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var h=hr(c.pendingLanes);if(h!==0){var g=c;for(g.pendingLanes|=2,g.entangledLanes|=2;h;){var w=1<<31-Dt(h);g.entanglements[1]|=w,h&=~w}Fa(c),($e&6)===0&&(Ro=R()+500,$l(0))}}break;case 31:case 13:g=vr(c,2),g!==null&&ra(g,c,2),Uo(),_d(c,2)}if(c=wd(i),c===null&&od(e,t,i,Wo,a),c===o)break;o=c}o!==null&&i.stopPropagation()}else od(e,t,i,null,a)}}function wd(e){return e=Ac(e),Ad(e)}var Wo=null;function Ad(e){if(Wo=null,e=Ir(e),e!==null){var t=f(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=d(t),e!==null)return e;e=null}else if(a===31){if(e=m(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Wo=e,null}function Jy(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(re()){case W:return 2;case ee:return 8;case fe:case Ae:return 32;case He:return 268435456;default:return 32}default:return 32}}var Cd=!1,Jn=null,Pn=null,Wn=null,Wl=new Map,Il=new Map,In=[],I5="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Py(e,t){switch(e){case"focusin":case"focusout":Jn=null;break;case"dragenter":case"dragleave":Pn=null;break;case"mouseover":case"mouseout":Wn=null;break;case"pointerover":case"pointerout":Wl.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Il.delete(t.pointerId)}}function es(e,t,a,i,o,c){return e===null||e.nativeEvent!==c?(e={blockedOn:t,domEventName:a,eventSystemFlags:i,nativeEvent:c,targetContainers:[o]},t!==null&&(t=ei(t),t!==null&&Ky(t)),e):(e.eventSystemFlags|=i,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function ew(e,t,a,i,o){switch(t){case"focusin":return Jn=es(Jn,e,t,a,i,o),!0;case"dragenter":return Pn=es(Pn,e,t,a,i,o),!0;case"mouseover":return Wn=es(Wn,e,t,a,i,o),!0;case"pointerover":var c=o.pointerId;return Wl.set(c,es(Wl.get(c)||null,e,t,a,i,o)),!0;case"gotpointercapture":return c=o.pointerId,Il.set(c,es(Il.get(c)||null,e,t,a,i,o)),!0}return!1}function Wy(e){var t=Ir(e.target);if(t!==null){var a=f(t);if(a!==null){if(t=a.tag,t===13){if(t=d(a),t!==null){e.blockedOn=t,dp(e.priority,function(){Fy(a)});return}}else if(t===31){if(t=m(a),t!==null){e.blockedOn=t,dp(e.priority,function(){Fy(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Io(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=wd(e.nativeEvent);if(a===null){a=e.nativeEvent;var i=new a.constructor(a.type,a);wc=i,a.target.dispatchEvent(i),wc=null}else return t=ei(a),t!==null&&Ky(t),e.blockedOn=a,!1;t.shift()}return!0}function Iy(e,t,a){Io(e)&&a.delete(t)}function tw(){Cd=!1,Jn!==null&&Io(Jn)&&(Jn=null),Pn!==null&&Io(Pn)&&(Pn=null),Wn!==null&&Io(Wn)&&(Wn=null),Wl.forEach(Iy),Il.forEach(Iy)}function eu(e,t){e.blockedOn===t&&(e.blockedOn=null,Cd||(Cd=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,tw)))}var tu=null;function ev(e){tu!==e&&(tu=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){tu===e&&(tu=null);for(var t=0;t<e.length;t+=3){var a=e[t],i=e[t+1],o=e[t+2];if(typeof i!="function"){if(Ad(i||a)===null)continue;break}var c=ei(a);c!==null&&(e.splice(t,3),t-=3,wf(c,{pending:!0,data:o,method:a.method,action:i},i,o))}}))}function Di(e){function t(w){return eu(w,e)}Jn!==null&&eu(Jn,e),Pn!==null&&eu(Pn,e),Wn!==null&&eu(Wn,e),Wl.forEach(t),Il.forEach(t);for(var a=0;a<In.length;a++){var i=In[a];i.blockedOn===e&&(i.blockedOn=null)}for(;0<In.length&&(a=In[0],a.blockedOn===null);)Wy(a),a.blockedOn===null&&In.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(i=0;i<a.length;i+=3){var o=a[i],c=a[i+1],h=o[Wt]||null;if(typeof c=="function")h||ev(a);else if(h){var g=null;if(c&&c.hasAttribute("formAction")){if(o=c,h=c[Wt]||null)g=h.formAction;else if(Ad(o)!==null)continue}else g=h.action;typeof g=="function"?a[i+1]=g:(a.splice(i,3),i-=3),ev(a)}}}function tv(){function e(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(h){return o=h})},focusReset:"manual",scroll:"manual"})}function t(){o!==null&&(o(),o=null),i||setTimeout(a,20)}function a(){if(!i&&!navigation.transition){var c=navigation.currentEntry;c&&c.url!=null&&navigation.navigate(c.url,{state:c.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var i=!1,o=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){i=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),o!==null&&(o(),o=null)}}}function Td(e){this._internalRoot=e}au.prototype.render=Td.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));var a=t.current,i=ga();Xy(a,i,e,t,null,null)},au.prototype.unmount=Td.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Xy(e.current,2,null,e,null,null),Uo(),t[Wr]=null}};function au(e){this._internalRoot=e}au.prototype.unstable_scheduleHydration=function(e){if(e){var t=fp();e={blockedOn:null,target:e,priority:t};for(var a=0;a<In.length&&t!==0&&t<In[a].priority;a++);In.splice(a,0,e),a===0&&Wy(e)}};var av=r.version;if(av!=="19.2.4")throw Error(s(527,av,"19.2.4"));Q.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(s(188)):(e=Object.keys(e).join(","),Error(s(268,e)));return e=p(t),e=e!==null?_(e):null,e=e===null?null:e.stateNode,e};var aw={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:N,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var nu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!nu.isDisabled&&nu.supportsFiber)try{At=nu.inject(aw),Qt=nu}catch{}}return Bi.createRoot=function(e,t){if(!u(e))throw Error(s(299));var a=!1,i="",o=u0,c=c0,h=f0;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(i=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(c=t.onCaughtError),t.onRecoverableError!==void 0&&(h=t.onRecoverableError)),t=Yy(e,1,!1,null,null,a,i,null,o,c,h,tv),e[Wr]=t.current,sd(e),new Td(t)},Bi.hydrateRoot=function(e,t,a){if(!u(e))throw Error(s(299));var i=!1,o="",c=u0,h=c0,g=f0,w=null;return a!=null&&(a.unstable_strictMode===!0&&(i=!0),a.identifierPrefix!==void 0&&(o=a.identifierPrefix),a.onUncaughtError!==void 0&&(c=a.onUncaughtError),a.onCaughtError!==void 0&&(h=a.onCaughtError),a.onRecoverableError!==void 0&&(g=a.onRecoverableError),a.formState!==void 0&&(w=a.formState)),t=Yy(e,1,!0,t,a??null,i,o,w,c,h,g,tv),t.context=$y(null),a=t.current,i=ga(),i=pc(i),o=Ln(i),o.callback=null,Vn(a,o,i),a=i,t.current.lanes=a,fl(t,a),Fa(t),e[Wr]=t.current,sd(e),new au(t)},Bi.version="19.2.4",Bi}var Bd;function fv(){if(Bd)return iu.exports;Bd=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(r){console.error(r)}}return n(),iu.exports=cv(),iu.exports}var dv=fv(),Le;(function(n){n.assertEqual=u=>{};function r(u){}n.assertIs=r;function l(u){throw new Error}n.assertNever=l,n.arrayToEnum=u=>{const f={};for(const d of u)f[d]=d;return f},n.getValidEnumValues=u=>{const f=n.objectKeys(u).filter(m=>typeof u[u[m]]!="number"),d={};for(const m of f)d[m]=u[m];return n.objectValues(d)},n.objectValues=u=>n.objectKeys(u).map(function(f){return u[f]}),n.objectKeys=typeof Object.keys=="function"?u=>Object.keys(u):u=>{const f=[];for(const d in u)Object.prototype.hasOwnProperty.call(u,d)&&f.push(d);return f},n.find=(u,f)=>{for(const d of u)if(f(d))return d},n.isInteger=typeof Number.isInteger=="function"?u=>Number.isInteger(u):u=>typeof u=="number"&&Number.isFinite(u)&&Math.floor(u)===u;function s(u,f=" | "){return u.map(d=>typeof d=="string"?`'${d}'`:d).join(f)}n.joinValues=s,n.jsonStringifyReplacer=(u,f)=>typeof f=="bigint"?f.toString():f})(Le||(Le={}));var Ld;(function(n){n.mergeShapes=(r,l)=>({...r,...l})})(Ld||(Ld={}));const de=Le.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Sn=n=>{switch(typeof n){case"undefined":return de.undefined;case"string":return de.string;case"number":return Number.isNaN(n)?de.nan:de.number;case"boolean":return de.boolean;case"function":return de.function;case"bigint":return de.bigint;case"symbol":return de.symbol;case"object":return Array.isArray(n)?de.array:n===null?de.null:n.then&&typeof n.then=="function"&&n.catch&&typeof n.catch=="function"?de.promise:typeof Map<"u"&&n instanceof Map?de.map:typeof Set<"u"&&n instanceof Set?de.set:typeof Date<"u"&&n instanceof Date?de.date:de.object;default:return de.unknown}},P=Le.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class Wa extends Error{get errors(){return this.issues}constructor(r){super(),this.issues=[],this.addIssue=s=>{this.issues=[...this.issues,s]},this.addIssues=(s=[])=>{this.issues=[...this.issues,...s]};const l=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,l):this.__proto__=l,this.name="ZodError",this.issues=r}format(r){const l=r||function(f){return f.message},s={_errors:[]},u=f=>{for(const d of f.issues)if(d.code==="invalid_union")d.unionErrors.map(u);else if(d.code==="invalid_return_type")u(d.returnTypeError);else if(d.code==="invalid_arguments")u(d.argumentsError);else if(d.path.length===0)s._errors.push(l(d));else{let m=s,y=0;for(;y<d.path.length;){const p=d.path[y];y===d.path.length-1?(m[p]=m[p]||{_errors:[]},m[p]._errors.push(l(d))):m[p]=m[p]||{_errors:[]},m=m[p],y++}}};return u(this),s}static assert(r){if(!(r instanceof Wa))throw new Error(`Not a ZodError: ${r}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,Le.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(r=l=>l.message){const l={},s=[];for(const u of this.issues)if(u.path.length>0){const f=u.path[0];l[f]=l[f]||[],l[f].push(r(u))}else s.push(r(u));return{formErrors:s,fieldErrors:l}}get formErrors(){return this.flatten()}}Wa.create=n=>new Wa(n);const fu=(n,r)=>{let l;switch(n.code){case P.invalid_type:n.received===de.undefined?l="Required":l=`Expected ${n.expected}, received ${n.received}`;break;case P.invalid_literal:l=`Invalid literal value, expected ${JSON.stringify(n.expected,Le.jsonStringifyReplacer)}`;break;case P.unrecognized_keys:l=`Unrecognized key(s) in object: ${Le.joinValues(n.keys,", ")}`;break;case P.invalid_union:l="Invalid input";break;case P.invalid_union_discriminator:l=`Invalid discriminator value. Expected ${Le.joinValues(n.options)}`;break;case P.invalid_enum_value:l=`Invalid enum value. Expected ${Le.joinValues(n.options)}, received '${n.received}'`;break;case P.invalid_arguments:l="Invalid function arguments";break;case P.invalid_return_type:l="Invalid function return type";break;case P.invalid_date:l="Invalid date";break;case P.invalid_string:typeof n.validation=="object"?"includes"in n.validation?(l=`Invalid input: must include "${n.validation.includes}"`,typeof n.validation.position=="number"&&(l=`${l} at one or more positions greater than or equal to ${n.validation.position}`)):"startsWith"in n.validation?l=`Invalid input: must start with "${n.validation.startsWith}"`:"endsWith"in n.validation?l=`Invalid input: must end with "${n.validation.endsWith}"`:Le.assertNever(n.validation):n.validation!=="regex"?l=`Invalid ${n.validation}`:l="Invalid";break;case P.too_small:n.type==="array"?l=`Array must contain ${n.exact?"exactly":n.inclusive?"at least":"more than"} ${n.minimum} element(s)`:n.type==="string"?l=`String must contain ${n.exact?"exactly":n.inclusive?"at least":"over"} ${n.minimum} character(s)`:n.type==="number"?l=`Number must be ${n.exact?"exactly equal to ":n.inclusive?"greater than or equal to ":"greater than "}${n.minimum}`:n.type==="bigint"?l=`Number must be ${n.exact?"exactly equal to ":n.inclusive?"greater than or equal to ":"greater than "}${n.minimum}`:n.type==="date"?l=`Date must be ${n.exact?"exactly equal to ":n.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(n.minimum))}`:l="Invalid input";break;case P.too_big:n.type==="array"?l=`Array must contain ${n.exact?"exactly":n.inclusive?"at most":"less than"} ${n.maximum} element(s)`:n.type==="string"?l=`String must contain ${n.exact?"exactly":n.inclusive?"at most":"under"} ${n.maximum} character(s)`:n.type==="number"?l=`Number must be ${n.exact?"exactly":n.inclusive?"less than or equal to":"less than"} ${n.maximum}`:n.type==="bigint"?l=`BigInt must be ${n.exact?"exactly":n.inclusive?"less than or equal to":"less than"} ${n.maximum}`:n.type==="date"?l=`Date must be ${n.exact?"exactly":n.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(n.maximum))}`:l="Invalid input";break;case P.custom:l="Invalid input";break;case P.invalid_intersection_types:l="Intersection results could not be merged";break;case P.not_multiple_of:l=`Number must be a multiple of ${n.multipleOf}`;break;case P.not_finite:l="Number must be finite";break;default:l=r.defaultError,Le.assertNever(n)}return{message:l}};let hv=fu;function mv(){return hv}const pv=n=>{const{data:r,path:l,errorMaps:s,issueData:u}=n,f=[...l,...u.path||[]],d={...u,path:f};if(u.message!==void 0)return{...u,path:f,message:u.message};let m="";const y=s.filter(p=>!!p).slice().reverse();for(const p of y)m=p(d,{data:r,defaultError:m}).message;return{...u,path:f,message:m}};function ie(n,r){const l=mv(),s=pv({issueData:r,data:n.data,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,l,l===fu?void 0:fu].filter(u=>!!u)});n.common.issues.push(s)}class ia{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(r,l){const s=[];for(const u of l){if(u.status==="aborted")return _e;u.status==="dirty"&&r.dirty(),s.push(u.value)}return{status:r.value,value:s}}static async mergeObjectAsync(r,l){const s=[];for(const u of l){const f=await u.key,d=await u.value;s.push({key:f,value:d})}return ia.mergeObjectSync(r,s)}static mergeObjectSync(r,l){const s={};for(const u of l){const{key:f,value:d}=u;if(f.status==="aborted"||d.status==="aborted")return _e;f.status==="dirty"&&r.dirty(),d.status==="dirty"&&r.dirty(),f.value!=="__proto__"&&(typeof d.value<"u"||u.alwaysSet)&&(s[f.value]=d.value)}return{status:r.value,value:s}}}const _e=Object.freeze({status:"aborted"}),Li=n=>({status:"dirty",value:n}),ya=n=>({status:"valid",value:n}),Vd=n=>n.status==="aborted",Hd=n=>n.status==="dirty",kr=n=>n.status==="valid",ts=n=>typeof Promise<"u"&&n instanceof Promise;var me;(function(n){n.errToObj=r=>typeof r=="string"?{message:r}:r||{},n.toString=r=>typeof r=="string"?r:r==null?void 0:r.message})(me||(me={}));class wn{constructor(r,l,s,u){this._cachedPath=[],this.parent=r,this.data=l,this._path=s,this._key=u}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const qd=(n,r)=>{if(kr(r))return{success:!0,data:r.value};if(!n.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const l=new Wa(n.common.issues);return this._error=l,this._error}}};function Oe(n){if(!n)return{};const{errorMap:r,invalid_type_error:l,required_error:s,description:u}=n;if(r&&(l||s))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return r?{errorMap:r,description:u}:{errorMap:(d,m)=>{const{message:y}=n;return d.code==="invalid_enum_value"?{message:y??m.defaultError}:typeof m.data>"u"?{message:y??s??m.defaultError}:d.code!=="invalid_type"?{message:m.defaultError}:{message:y??l??m.defaultError}},description:u}}class Ue{get description(){return this._def.description}_getType(r){return Sn(r.data)}_getOrReturnCtx(r,l){return l||{common:r.parent.common,data:r.data,parsedType:Sn(r.data),schemaErrorMap:this._def.errorMap,path:r.path,parent:r.parent}}_processInputParams(r){return{status:new ia,ctx:{common:r.parent.common,data:r.data,parsedType:Sn(r.data),schemaErrorMap:this._def.errorMap,path:r.path,parent:r.parent}}}_parseSync(r){const l=this._parse(r);if(ts(l))throw new Error("Synchronous parse encountered promise.");return l}_parseAsync(r){const l=this._parse(r);return Promise.resolve(l)}parse(r,l){const s=this.safeParse(r,l);if(s.success)return s.data;throw s.error}safeParse(r,l){const s={common:{issues:[],async:(l==null?void 0:l.async)??!1,contextualErrorMap:l==null?void 0:l.errorMap},path:(l==null?void 0:l.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:r,parsedType:Sn(r)},u=this._parseSync({data:r,path:s.path,parent:s});return qd(s,u)}"~validate"(r){var s,u;const l={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:r,parsedType:Sn(r)};if(!this["~standard"].async)try{const f=this._parseSync({data:r,path:[],parent:l});return kr(f)?{value:f.value}:{issues:l.common.issues}}catch(f){(u=(s=f==null?void 0:f.message)==null?void 0:s.toLowerCase())!=null&&u.includes("encountered")&&(this["~standard"].async=!0),l.common={issues:[],async:!0}}return this._parseAsync({data:r,path:[],parent:l}).then(f=>kr(f)?{value:f.value}:{issues:l.common.issues})}async parseAsync(r,l){const s=await this.safeParseAsync(r,l);if(s.success)return s.data;throw s.error}async safeParseAsync(r,l){const s={common:{issues:[],contextualErrorMap:l==null?void 0:l.errorMap,async:!0},path:(l==null?void 0:l.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:r,parsedType:Sn(r)},u=this._parse({data:r,path:s.path,parent:s}),f=await(ts(u)?u:Promise.resolve(u));return qd(s,f)}refine(r,l){const s=u=>typeof l=="string"||typeof l>"u"?{message:l}:typeof l=="function"?l(u):l;return this._refinement((u,f)=>{const d=r(u),m=()=>f.addIssue({code:P.custom,...s(u)});return typeof Promise<"u"&&d instanceof Promise?d.then(y=>y?!0:(m(),!1)):d?!0:(m(),!1)})}refinement(r,l){return this._refinement((s,u)=>r(s)?!0:(u.addIssue(typeof l=="function"?l(s,u):l),!1))}_refinement(r){return new Rr({schema:this,typeName:Se.ZodEffects,effect:{type:"refinement",refinement:r}})}superRefine(r){return this._refinement(r)}constructor(r){this.spa=this.safeParseAsync,this._def=r,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:l=>this["~validate"](l)}}optional(){return Tn.create(this,this._def)}nullable(){return Dr.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Va.create(this)}promise(){return is.create(this,this._def)}or(r){return ns.create([this,r],this._def)}and(r){return rs.create(this,r,this._def)}transform(r){return new Rr({...Oe(this._def),schema:this,typeName:Se.ZodEffects,effect:{type:"transform",transform:r}})}default(r){const l=typeof r=="function"?r:()=>r;return new mu({...Oe(this._def),innerType:this,defaultValue:l,typeName:Se.ZodDefault})}brand(){return new Lv({typeName:Se.ZodBranded,type:this,...Oe(this._def)})}catch(r){const l=typeof r=="function"?r:()=>r;return new pu({...Oe(this._def),innerType:this,catchValue:l,typeName:Se.ZodCatch})}describe(r){const l=this.constructor;return new l({...this._def,description:r})}pipe(r){return gu.create(this,r)}readonly(){return yu.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const gv=/^c[^\s-]{8,}$/i,yv=/^[0-9a-z]+$/,vv=/^[0-9A-HJKMNP-TV-Z]{26}$/i,bv=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,xv=/^[a-z0-9_-]{21}$/i,_v=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,Sv=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,wv=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,Av="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let du;const Cv=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Tv=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,Ev=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,Ov=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,zv=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,Nv=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,Zd="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",kv=new RegExp(`^${Zd}$`);function Gd(n){let r="[0-5]\\d";n.precision?r=`${r}\\.\\d{${n.precision}}`:n.precision==null&&(r=`${r}(\\.\\d+)?`);const l=n.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${r})${l}`}function jv(n){return new RegExp(`^${Gd(n)}$`)}function Mv(n){let r=`${Zd}T${Gd(n)}`;const l=[];return l.push(n.local?"Z?":"Z"),n.offset&&l.push("([+-]\\d{2}:?\\d{2})"),r=`${r}(${l.join("|")})`,new RegExp(`^${r}$`)}function Rv(n,r){return!!((r==="v4"||!r)&&Cv.test(n)||(r==="v6"||!r)&&Ev.test(n))}function Dv(n,r){if(!_v.test(n))return!1;try{const[l]=n.split(".");if(!l)return!1;const s=l.replace(/-/g,"+").replace(/_/g,"/").padEnd(l.length+(4-l.length%4)%4,"="),u=JSON.parse(atob(s));return!(typeof u!="object"||u===null||"typ"in u&&(u==null?void 0:u.typ)!=="JWT"||!u.alg||r&&u.alg!==r)}catch{return!1}}function Uv(n,r){return!!((r==="v4"||!r)&&Tv.test(n)||(r==="v6"||!r)&&Ov.test(n))}class An extends Ue{_parse(r){if(this._def.coerce&&(r.data=String(r.data)),this._getType(r)!==de.string){const f=this._getOrReturnCtx(r);return ie(f,{code:P.invalid_type,expected:de.string,received:f.parsedType}),_e}const s=new ia;let u;for(const f of this._def.checks)if(f.kind==="min")r.data.length<f.value&&(u=this._getOrReturnCtx(r,u),ie(u,{code:P.too_small,minimum:f.value,type:"string",inclusive:!0,exact:!1,message:f.message}),s.dirty());else if(f.kind==="max")r.data.length>f.value&&(u=this._getOrReturnCtx(r,u),ie(u,{code:P.too_big,maximum:f.value,type:"string",inclusive:!0,exact:!1,message:f.message}),s.dirty());else if(f.kind==="length"){const d=r.data.length>f.value,m=r.data.length<f.value;(d||m)&&(u=this._getOrReturnCtx(r,u),d?ie(u,{code:P.too_big,maximum:f.value,type:"string",inclusive:!0,exact:!0,message:f.message}):m&&ie(u,{code:P.too_small,minimum:f.value,type:"string",inclusive:!0,exact:!0,message:f.message}),s.dirty())}else if(f.kind==="email")wv.test(r.data)||(u=this._getOrReturnCtx(r,u),ie(u,{validation:"email",code:P.invalid_string,message:f.message}),s.dirty());else if(f.kind==="emoji")du||(du=new RegExp(Av,"u")),du.test(r.data)||(u=this._getOrReturnCtx(r,u),ie(u,{validation:"emoji",code:P.invalid_string,message:f.message}),s.dirty());else if(f.kind==="uuid")bv.test(r.data)||(u=this._getOrReturnCtx(r,u),ie(u,{validation:"uuid",code:P.invalid_string,message:f.message}),s.dirty());else if(f.kind==="nanoid")xv.test(r.data)||(u=this._getOrReturnCtx(r,u),ie(u,{validation:"nanoid",code:P.invalid_string,message:f.message}),s.dirty());else if(f.kind==="cuid")gv.test(r.data)||(u=this._getOrReturnCtx(r,u),ie(u,{validation:"cuid",code:P.invalid_string,message:f.message}),s.dirty());else if(f.kind==="cuid2")yv.test(r.data)||(u=this._getOrReturnCtx(r,u),ie(u,{validation:"cuid2",code:P.invalid_string,message:f.message}),s.dirty());else if(f.kind==="ulid")vv.test(r.data)||(u=this._getOrReturnCtx(r,u),ie(u,{validation:"ulid",code:P.invalid_string,message:f.message}),s.dirty());else if(f.kind==="url")try{new URL(r.data)}catch{u=this._getOrReturnCtx(r,u),ie(u,{validation:"url",code:P.invalid_string,message:f.message}),s.dirty()}else f.kind==="regex"?(f.regex.lastIndex=0,f.regex.test(r.data)||(u=this._getOrReturnCtx(r,u),ie(u,{validation:"regex",code:P.invalid_string,message:f.message}),s.dirty())):f.kind==="trim"?r.data=r.data.trim():f.kind==="includes"?r.data.includes(f.value,f.position)||(u=this._getOrReturnCtx(r,u),ie(u,{code:P.invalid_string,validation:{includes:f.value,position:f.position},message:f.message}),s.dirty()):f.kind==="toLowerCase"?r.data=r.data.toLowerCase():f.kind==="toUpperCase"?r.data=r.data.toUpperCase():f.kind==="startsWith"?r.data.startsWith(f.value)||(u=this._getOrReturnCtx(r,u),ie(u,{code:P.invalid_string,validation:{startsWith:f.value},message:f.message}),s.dirty()):f.kind==="endsWith"?r.data.endsWith(f.value)||(u=this._getOrReturnCtx(r,u),ie(u,{code:P.invalid_string,validation:{endsWith:f.value},message:f.message}),s.dirty()):f.kind==="datetime"?Mv(f).test(r.data)||(u=this._getOrReturnCtx(r,u),ie(u,{code:P.invalid_string,validation:"datetime",message:f.message}),s.dirty()):f.kind==="date"?kv.test(r.data)||(u=this._getOrReturnCtx(r,u),ie(u,{code:P.invalid_string,validation:"date",message:f.message}),s.dirty()):f.kind==="time"?jv(f).test(r.data)||(u=this._getOrReturnCtx(r,u),ie(u,{code:P.invalid_string,validation:"time",message:f.message}),s.dirty()):f.kind==="duration"?Sv.test(r.data)||(u=this._getOrReturnCtx(r,u),ie(u,{validation:"duration",code:P.invalid_string,message:f.message}),s.dirty()):f.kind==="ip"?Rv(r.data,f.version)||(u=this._getOrReturnCtx(r,u),ie(u,{validation:"ip",code:P.invalid_string,message:f.message}),s.dirty()):f.kind==="jwt"?Dv(r.data,f.alg)||(u=this._getOrReturnCtx(r,u),ie(u,{validation:"jwt",code:P.invalid_string,message:f.message}),s.dirty()):f.kind==="cidr"?Uv(r.data,f.version)||(u=this._getOrReturnCtx(r,u),ie(u,{validation:"cidr",code:P.invalid_string,message:f.message}),s.dirty()):f.kind==="base64"?zv.test(r.data)||(u=this._getOrReturnCtx(r,u),ie(u,{validation:"base64",code:P.invalid_string,message:f.message}),s.dirty()):f.kind==="base64url"?Nv.test(r.data)||(u=this._getOrReturnCtx(r,u),ie(u,{validation:"base64url",code:P.invalid_string,message:f.message}),s.dirty()):Le.assertNever(f);return{status:s.value,value:r.data}}_regex(r,l,s){return this.refinement(u=>r.test(u),{validation:l,code:P.invalid_string,...me.errToObj(s)})}_addCheck(r){return new An({...this._def,checks:[...this._def.checks,r]})}email(r){return this._addCheck({kind:"email",...me.errToObj(r)})}url(r){return this._addCheck({kind:"url",...me.errToObj(r)})}emoji(r){return this._addCheck({kind:"emoji",...me.errToObj(r)})}uuid(r){return this._addCheck({kind:"uuid",...me.errToObj(r)})}nanoid(r){return this._addCheck({kind:"nanoid",...me.errToObj(r)})}cuid(r){return this._addCheck({kind:"cuid",...me.errToObj(r)})}cuid2(r){return this._addCheck({kind:"cuid2",...me.errToObj(r)})}ulid(r){return this._addCheck({kind:"ulid",...me.errToObj(r)})}base64(r){return this._addCheck({kind:"base64",...me.errToObj(r)})}base64url(r){return this._addCheck({kind:"base64url",...me.errToObj(r)})}jwt(r){return this._addCheck({kind:"jwt",...me.errToObj(r)})}ip(r){return this._addCheck({kind:"ip",...me.errToObj(r)})}cidr(r){return this._addCheck({kind:"cidr",...me.errToObj(r)})}datetime(r){return typeof r=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:r}):this._addCheck({kind:"datetime",precision:typeof(r==null?void 0:r.precision)>"u"?null:r==null?void 0:r.precision,offset:(r==null?void 0:r.offset)??!1,local:(r==null?void 0:r.local)??!1,...me.errToObj(r==null?void 0:r.message)})}date(r){return this._addCheck({kind:"date",message:r})}time(r){return typeof r=="string"?this._addCheck({kind:"time",precision:null,message:r}):this._addCheck({kind:"time",precision:typeof(r==null?void 0:r.precision)>"u"?null:r==null?void 0:r.precision,...me.errToObj(r==null?void 0:r.message)})}duration(r){return this._addCheck({kind:"duration",...me.errToObj(r)})}regex(r,l){return this._addCheck({kind:"regex",regex:r,...me.errToObj(l)})}includes(r,l){return this._addCheck({kind:"includes",value:r,position:l==null?void 0:l.position,...me.errToObj(l==null?void 0:l.message)})}startsWith(r,l){return this._addCheck({kind:"startsWith",value:r,...me.errToObj(l)})}endsWith(r,l){return this._addCheck({kind:"endsWith",value:r,...me.errToObj(l)})}min(r,l){return this._addCheck({kind:"min",value:r,...me.errToObj(l)})}max(r,l){return this._addCheck({kind:"max",value:r,...me.errToObj(l)})}length(r,l){return this._addCheck({kind:"length",value:r,...me.errToObj(l)})}nonempty(r){return this.min(1,me.errToObj(r))}trim(){return new An({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new An({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new An({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(r=>r.kind==="datetime")}get isDate(){return!!this._def.checks.find(r=>r.kind==="date")}get isTime(){return!!this._def.checks.find(r=>r.kind==="time")}get isDuration(){return!!this._def.checks.find(r=>r.kind==="duration")}get isEmail(){return!!this._def.checks.find(r=>r.kind==="email")}get isURL(){return!!this._def.checks.find(r=>r.kind==="url")}get isEmoji(){return!!this._def.checks.find(r=>r.kind==="emoji")}get isUUID(){return!!this._def.checks.find(r=>r.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(r=>r.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(r=>r.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(r=>r.kind==="cuid2")}get isULID(){return!!this._def.checks.find(r=>r.kind==="ulid")}get isIP(){return!!this._def.checks.find(r=>r.kind==="ip")}get isCIDR(){return!!this._def.checks.find(r=>r.kind==="cidr")}get isBase64(){return!!this._def.checks.find(r=>r.kind==="base64")}get isBase64url(){return!!this._def.checks.find(r=>r.kind==="base64url")}get minLength(){let r=null;for(const l of this._def.checks)l.kind==="min"&&(r===null||l.value>r)&&(r=l.value);return r}get maxLength(){let r=null;for(const l of this._def.checks)l.kind==="max"&&(r===null||l.value<r)&&(r=l.value);return r}}An.create=n=>new An({checks:[],typeName:Se.ZodString,coerce:(n==null?void 0:n.coerce)??!1,...Oe(n)});function Bv(n,r){const l=(n.toString().split(".")[1]||"").length,s=(r.toString().split(".")[1]||"").length,u=l>s?l:s,f=Number.parseInt(n.toFixed(u).replace(".","")),d=Number.parseInt(r.toFixed(u).replace(".",""));return f%d/10**u}class Vi extends Ue{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(r){if(this._def.coerce&&(r.data=Number(r.data)),this._getType(r)!==de.number){const f=this._getOrReturnCtx(r);return ie(f,{code:P.invalid_type,expected:de.number,received:f.parsedType}),_e}let s;const u=new ia;for(const f of this._def.checks)f.kind==="int"?Le.isInteger(r.data)||(s=this._getOrReturnCtx(r,s),ie(s,{code:P.invalid_type,expected:"integer",received:"float",message:f.message}),u.dirty()):f.kind==="min"?(f.inclusive?r.data<f.value:r.data<=f.value)&&(s=this._getOrReturnCtx(r,s),ie(s,{code:P.too_small,minimum:f.value,type:"number",inclusive:f.inclusive,exact:!1,message:f.message}),u.dirty()):f.kind==="max"?(f.inclusive?r.data>f.value:r.data>=f.value)&&(s=this._getOrReturnCtx(r,s),ie(s,{code:P.too_big,maximum:f.value,type:"number",inclusive:f.inclusive,exact:!1,message:f.message}),u.dirty()):f.kind==="multipleOf"?Bv(r.data,f.value)!==0&&(s=this._getOrReturnCtx(r,s),ie(s,{code:P.not_multiple_of,multipleOf:f.value,message:f.message}),u.dirty()):f.kind==="finite"?Number.isFinite(r.data)||(s=this._getOrReturnCtx(r,s),ie(s,{code:P.not_finite,message:f.message}),u.dirty()):Le.assertNever(f);return{status:u.value,value:r.data}}gte(r,l){return this.setLimit("min",r,!0,me.toString(l))}gt(r,l){return this.setLimit("min",r,!1,me.toString(l))}lte(r,l){return this.setLimit("max",r,!0,me.toString(l))}lt(r,l){return this.setLimit("max",r,!1,me.toString(l))}setLimit(r,l,s,u){return new Vi({...this._def,checks:[...this._def.checks,{kind:r,value:l,inclusive:s,message:me.toString(u)}]})}_addCheck(r){return new Vi({...this._def,checks:[...this._def.checks,r]})}int(r){return this._addCheck({kind:"int",message:me.toString(r)})}positive(r){return this._addCheck({kind:"min",value:0,inclusive:!1,message:me.toString(r)})}negative(r){return this._addCheck({kind:"max",value:0,inclusive:!1,message:me.toString(r)})}nonpositive(r){return this._addCheck({kind:"max",value:0,inclusive:!0,message:me.toString(r)})}nonnegative(r){return this._addCheck({kind:"min",value:0,inclusive:!0,message:me.toString(r)})}multipleOf(r,l){return this._addCheck({kind:"multipleOf",value:r,message:me.toString(l)})}finite(r){return this._addCheck({kind:"finite",message:me.toString(r)})}safe(r){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:me.toString(r)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:me.toString(r)})}get minValue(){let r=null;for(const l of this._def.checks)l.kind==="min"&&(r===null||l.value>r)&&(r=l.value);return r}get maxValue(){let r=null;for(const l of this._def.checks)l.kind==="max"&&(r===null||l.value<r)&&(r=l.value);return r}get isInt(){return!!this._def.checks.find(r=>r.kind==="int"||r.kind==="multipleOf"&&Le.isInteger(r.value))}get isFinite(){let r=null,l=null;for(const s of this._def.checks){if(s.kind==="finite"||s.kind==="int"||s.kind==="multipleOf")return!0;s.kind==="min"?(l===null||s.value>l)&&(l=s.value):s.kind==="max"&&(r===null||s.value<r)&&(r=s.value)}return Number.isFinite(l)&&Number.isFinite(r)}}Vi.create=n=>new Vi({checks:[],typeName:Se.ZodNumber,coerce:(n==null?void 0:n.coerce)||!1,...Oe(n)});class Hi extends Ue{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(r){if(this._def.coerce)try{r.data=BigInt(r.data)}catch{return this._getInvalidInput(r)}if(this._getType(r)!==de.bigint)return this._getInvalidInput(r);let s;const u=new ia;for(const f of this._def.checks)f.kind==="min"?(f.inclusive?r.data<f.value:r.data<=f.value)&&(s=this._getOrReturnCtx(r,s),ie(s,{code:P.too_small,type:"bigint",minimum:f.value,inclusive:f.inclusive,message:f.message}),u.dirty()):f.kind==="max"?(f.inclusive?r.data>f.value:r.data>=f.value)&&(s=this._getOrReturnCtx(r,s),ie(s,{code:P.too_big,type:"bigint",maximum:f.value,inclusive:f.inclusive,message:f.message}),u.dirty()):f.kind==="multipleOf"?r.data%f.value!==BigInt(0)&&(s=this._getOrReturnCtx(r,s),ie(s,{code:P.not_multiple_of,multipleOf:f.value,message:f.message}),u.dirty()):Le.assertNever(f);return{status:u.value,value:r.data}}_getInvalidInput(r){const l=this._getOrReturnCtx(r);return ie(l,{code:P.invalid_type,expected:de.bigint,received:l.parsedType}),_e}gte(r,l){return this.setLimit("min",r,!0,me.toString(l))}gt(r,l){return this.setLimit("min",r,!1,me.toString(l))}lte(r,l){return this.setLimit("max",r,!0,me.toString(l))}lt(r,l){return this.setLimit("max",r,!1,me.toString(l))}setLimit(r,l,s,u){return new Hi({...this._def,checks:[...this._def.checks,{kind:r,value:l,inclusive:s,message:me.toString(u)}]})}_addCheck(r){return new Hi({...this._def,checks:[...this._def.checks,r]})}positive(r){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:me.toString(r)})}negative(r){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:me.toString(r)})}nonpositive(r){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:me.toString(r)})}nonnegative(r){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:me.toString(r)})}multipleOf(r,l){return this._addCheck({kind:"multipleOf",value:r,message:me.toString(l)})}get minValue(){let r=null;for(const l of this._def.checks)l.kind==="min"&&(r===null||l.value>r)&&(r=l.value);return r}get maxValue(){let r=null;for(const l of this._def.checks)l.kind==="max"&&(r===null||l.value<r)&&(r=l.value);return r}}Hi.create=n=>new Hi({checks:[],typeName:Se.ZodBigInt,coerce:(n==null?void 0:n.coerce)??!1,...Oe(n)});class Yd extends Ue{_parse(r){if(this._def.coerce&&(r.data=!!r.data),this._getType(r)!==de.boolean){const s=this._getOrReturnCtx(r);return ie(s,{code:P.invalid_type,expected:de.boolean,received:s.parsedType}),_e}return ya(r.data)}}Yd.create=n=>new Yd({typeName:Se.ZodBoolean,coerce:(n==null?void 0:n.coerce)||!1,...Oe(n)});class as extends Ue{_parse(r){if(this._def.coerce&&(r.data=new Date(r.data)),this._getType(r)!==de.date){const f=this._getOrReturnCtx(r);return ie(f,{code:P.invalid_type,expected:de.date,received:f.parsedType}),_e}if(Number.isNaN(r.data.getTime())){const f=this._getOrReturnCtx(r);return ie(f,{code:P.invalid_date}),_e}const s=new ia;let u;for(const f of this._def.checks)f.kind==="min"?r.data.getTime()<f.value&&(u=this._getOrReturnCtx(r,u),ie(u,{code:P.too_small,message:f.message,inclusive:!0,exact:!1,minimum:f.value,type:"date"}),s.dirty()):f.kind==="max"?r.data.getTime()>f.value&&(u=this._getOrReturnCtx(r,u),ie(u,{code:P.too_big,message:f.message,inclusive:!0,exact:!1,maximum:f.value,type:"date"}),s.dirty()):Le.assertNever(f);return{status:s.value,value:new Date(r.data.getTime())}}_addCheck(r){return new as({...this._def,checks:[...this._def.checks,r]})}min(r,l){return this._addCheck({kind:"min",value:r.getTime(),message:me.toString(l)})}max(r,l){return this._addCheck({kind:"max",value:r.getTime(),message:me.toString(l)})}get minDate(){let r=null;for(const l of this._def.checks)l.kind==="min"&&(r===null||l.value>r)&&(r=l.value);return r!=null?new Date(r):null}get maxDate(){let r=null;for(const l of this._def.checks)l.kind==="max"&&(r===null||l.value<r)&&(r=l.value);return r!=null?new Date(r):null}}as.create=n=>new as({checks:[],coerce:(n==null?void 0:n.coerce)||!1,typeName:Se.ZodDate,...Oe(n)});class $d extends Ue{_parse(r){if(this._getType(r)!==de.symbol){const s=this._getOrReturnCtx(r);return ie(s,{code:P.invalid_type,expected:de.symbol,received:s.parsedType}),_e}return ya(r.data)}}$d.create=n=>new $d({typeName:Se.ZodSymbol,...Oe(n)});class Xd extends Ue{_parse(r){if(this._getType(r)!==de.undefined){const s=this._getOrReturnCtx(r);return ie(s,{code:P.invalid_type,expected:de.undefined,received:s.parsedType}),_e}return ya(r.data)}}Xd.create=n=>new Xd({typeName:Se.ZodUndefined,...Oe(n)});class Qd extends Ue{_parse(r){if(this._getType(r)!==de.null){const s=this._getOrReturnCtx(r);return ie(s,{code:P.invalid_type,expected:de.null,received:s.parsedType}),_e}return ya(r.data)}}Qd.create=n=>new Qd({typeName:Se.ZodNull,...Oe(n)});class Kd extends Ue{constructor(){super(...arguments),this._any=!0}_parse(r){return ya(r.data)}}Kd.create=n=>new Kd({typeName:Se.ZodAny,...Oe(n)});class Fd extends Ue{constructor(){super(...arguments),this._unknown=!0}_parse(r){return ya(r.data)}}Fd.create=n=>new Fd({typeName:Se.ZodUnknown,...Oe(n)});class Cn extends Ue{_parse(r){const l=this._getOrReturnCtx(r);return ie(l,{code:P.invalid_type,expected:de.never,received:l.parsedType}),_e}}Cn.create=n=>new Cn({typeName:Se.ZodNever,...Oe(n)});class Jd extends Ue{_parse(r){if(this._getType(r)!==de.undefined){const s=this._getOrReturnCtx(r);return ie(s,{code:P.invalid_type,expected:de.void,received:s.parsedType}),_e}return ya(r.data)}}Jd.create=n=>new Jd({typeName:Se.ZodVoid,...Oe(n)});class Va extends Ue{_parse(r){const{ctx:l,status:s}=this._processInputParams(r),u=this._def;if(l.parsedType!==de.array)return ie(l,{code:P.invalid_type,expected:de.array,received:l.parsedType}),_e;if(u.exactLength!==null){const d=l.data.length>u.exactLength.value,m=l.data.length<u.exactLength.value;(d||m)&&(ie(l,{code:d?P.too_big:P.too_small,minimum:m?u.exactLength.value:void 0,maximum:d?u.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:u.exactLength.message}),s.dirty())}if(u.minLength!==null&&l.data.length<u.minLength.value&&(ie(l,{code:P.too_small,minimum:u.minLength.value,type:"array",inclusive:!0,exact:!1,message:u.minLength.message}),s.dirty()),u.maxLength!==null&&l.data.length>u.maxLength.value&&(ie(l,{code:P.too_big,maximum:u.maxLength.value,type:"array",inclusive:!0,exact:!1,message:u.maxLength.message}),s.dirty()),l.common.async)return Promise.all([...l.data].map((d,m)=>u.type._parseAsync(new wn(l,d,l.path,m)))).then(d=>ia.mergeArray(s,d));const f=[...l.data].map((d,m)=>u.type._parseSync(new wn(l,d,l.path,m)));return ia.mergeArray(s,f)}get element(){return this._def.type}min(r,l){return new Va({...this._def,minLength:{value:r,message:me.toString(l)}})}max(r,l){return new Va({...this._def,maxLength:{value:r,message:me.toString(l)}})}length(r,l){return new Va({...this._def,exactLength:{value:r,message:me.toString(l)}})}nonempty(r){return this.min(1,r)}}Va.create=(n,r)=>new Va({type:n,minLength:null,maxLength:null,exactLength:null,typeName:Se.ZodArray,...Oe(r)});function jr(n){if(n instanceof xt){const r={};for(const l in n.shape){const s=n.shape[l];r[l]=Tn.create(jr(s))}return new xt({...n._def,shape:()=>r})}else return n instanceof Va?new Va({...n._def,type:jr(n.element)}):n instanceof Tn?Tn.create(jr(n.unwrap())):n instanceof Dr?Dr.create(jr(n.unwrap())):n instanceof ar?ar.create(n.items.map(r=>jr(r))):n}class xt extends Ue{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const r=this._def.shape(),l=Le.objectKeys(r);return this._cached={shape:r,keys:l},this._cached}_parse(r){if(this._getType(r)!==de.object){const p=this._getOrReturnCtx(r);return ie(p,{code:P.invalid_type,expected:de.object,received:p.parsedType}),_e}const{status:s,ctx:u}=this._processInputParams(r),{shape:f,keys:d}=this._getCached(),m=[];if(!(this._def.catchall instanceof Cn&&this._def.unknownKeys==="strip"))for(const p in u.data)d.includes(p)||m.push(p);const y=[];for(const p of d){const _=f[p],x=u.data[p];y.push({key:{status:"valid",value:p},value:_._parse(new wn(u,x,u.path,p)),alwaysSet:p in u.data})}if(this._def.catchall instanceof Cn){const p=this._def.unknownKeys;if(p==="passthrough")for(const _ of m)y.push({key:{status:"valid",value:_},value:{status:"valid",value:u.data[_]}});else if(p==="strict")m.length>0&&(ie(u,{code:P.unrecognized_keys,keys:m}),s.dirty());else if(p!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const p=this._def.catchall;for(const _ of m){const x=u.data[_];y.push({key:{status:"valid",value:_},value:p._parse(new wn(u,x,u.path,_)),alwaysSet:_ in u.data})}}return u.common.async?Promise.resolve().then(async()=>{const p=[];for(const _ of y){const x=await _.key,O=await _.value;p.push({key:x,value:O,alwaysSet:_.alwaysSet})}return p}).then(p=>ia.mergeObjectSync(s,p)):ia.mergeObjectSync(s,y)}get shape(){return this._def.shape()}strict(r){return me.errToObj,new xt({...this._def,unknownKeys:"strict",...r!==void 0?{errorMap:(l,s)=>{var f,d;const u=((d=(f=this._def).errorMap)==null?void 0:d.call(f,l,s).message)??s.defaultError;return l.code==="unrecognized_keys"?{message:me.errToObj(r).message??u}:{message:u}}}:{}})}strip(){return new xt({...this._def,unknownKeys:"strip"})}passthrough(){return new xt({...this._def,unknownKeys:"passthrough"})}extend(r){return new xt({...this._def,shape:()=>({...this._def.shape(),...r})})}merge(r){return new xt({unknownKeys:r._def.unknownKeys,catchall:r._def.catchall,shape:()=>({...this._def.shape(),...r._def.shape()}),typeName:Se.ZodObject})}setKey(r,l){return this.augment({[r]:l})}catchall(r){return new xt({...this._def,catchall:r})}pick(r){const l={};for(const s of Le.objectKeys(r))r[s]&&this.shape[s]&&(l[s]=this.shape[s]);return new xt({...this._def,shape:()=>l})}omit(r){const l={};for(const s of Le.objectKeys(this.shape))r[s]||(l[s]=this.shape[s]);return new xt({...this._def,shape:()=>l})}deepPartial(){return jr(this)}partial(r){const l={};for(const s of Le.objectKeys(this.shape)){const u=this.shape[s];r&&!r[s]?l[s]=u:l[s]=u.optional()}return new xt({...this._def,shape:()=>l})}required(r){const l={};for(const s of Le.objectKeys(this.shape))if(r&&!r[s])l[s]=this.shape[s];else{let f=this.shape[s];for(;f instanceof Tn;)f=f._def.innerType;l[s]=f}return new xt({...this._def,shape:()=>l})}keyof(){return eh(Le.objectKeys(this.shape))}}xt.create=(n,r)=>new xt({shape:()=>n,unknownKeys:"strip",catchall:Cn.create(),typeName:Se.ZodObject,...Oe(r)}),xt.strictCreate=(n,r)=>new xt({shape:()=>n,unknownKeys:"strict",catchall:Cn.create(),typeName:Se.ZodObject,...Oe(r)}),xt.lazycreate=(n,r)=>new xt({shape:n,unknownKeys:"strip",catchall:Cn.create(),typeName:Se.ZodObject,...Oe(r)});class ns extends Ue{_parse(r){const{ctx:l}=this._processInputParams(r),s=this._def.options;function u(f){for(const m of f)if(m.result.status==="valid")return m.result;for(const m of f)if(m.result.status==="dirty")return l.common.issues.push(...m.ctx.common.issues),m.result;const d=f.map(m=>new Wa(m.ctx.common.issues));return ie(l,{code:P.invalid_union,unionErrors:d}),_e}if(l.common.async)return Promise.all(s.map(async f=>{const d={...l,common:{...l.common,issues:[]},parent:null};return{result:await f._parseAsync({data:l.data,path:l.path,parent:d}),ctx:d}})).then(u);{let f;const d=[];for(const y of s){const p={...l,common:{...l.common,issues:[]},parent:null},_=y._parseSync({data:l.data,path:l.path,parent:p});if(_.status==="valid")return _;_.status==="dirty"&&!f&&(f={result:_,ctx:p}),p.common.issues.length&&d.push(p.common.issues)}if(f)return l.common.issues.push(...f.ctx.common.issues),f.result;const m=d.map(y=>new Wa(y));return ie(l,{code:P.invalid_union,unionErrors:m}),_e}}get options(){return this._def.options}}ns.create=(n,r)=>new ns({options:n,typeName:Se.ZodUnion,...Oe(r)});function hu(n,r){const l=Sn(n),s=Sn(r);if(n===r)return{valid:!0,data:n};if(l===de.object&&s===de.object){const u=Le.objectKeys(r),f=Le.objectKeys(n).filter(m=>u.indexOf(m)!==-1),d={...n,...r};for(const m of f){const y=hu(n[m],r[m]);if(!y.valid)return{valid:!1};d[m]=y.data}return{valid:!0,data:d}}else if(l===de.array&&s===de.array){if(n.length!==r.length)return{valid:!1};const u=[];for(let f=0;f<n.length;f++){const d=n[f],m=r[f],y=hu(d,m);if(!y.valid)return{valid:!1};u.push(y.data)}return{valid:!0,data:u}}else return l===de.date&&s===de.date&&+n==+r?{valid:!0,data:n}:{valid:!1}}class rs extends Ue{_parse(r){const{status:l,ctx:s}=this._processInputParams(r),u=(f,d)=>{if(Vd(f)||Vd(d))return _e;const m=hu(f.value,d.value);return m.valid?((Hd(f)||Hd(d))&&l.dirty(),{status:l.value,value:m.data}):(ie(s,{code:P.invalid_intersection_types}),_e)};return s.common.async?Promise.all([this._def.left._parseAsync({data:s.data,path:s.path,parent:s}),this._def.right._parseAsync({data:s.data,path:s.path,parent:s})]).then(([f,d])=>u(f,d)):u(this._def.left._parseSync({data:s.data,path:s.path,parent:s}),this._def.right._parseSync({data:s.data,path:s.path,parent:s}))}}rs.create=(n,r,l)=>new rs({left:n,right:r,typeName:Se.ZodIntersection,...Oe(l)});class ar extends Ue{_parse(r){const{status:l,ctx:s}=this._processInputParams(r);if(s.parsedType!==de.array)return ie(s,{code:P.invalid_type,expected:de.array,received:s.parsedType}),_e;if(s.data.length<this._def.items.length)return ie(s,{code:P.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),_e;!this._def.rest&&s.data.length>this._def.items.length&&(ie(s,{code:P.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),l.dirty());const f=[...s.data].map((d,m)=>{const y=this._def.items[m]||this._def.rest;return y?y._parse(new wn(s,d,s.path,m)):null}).filter(d=>!!d);return s.common.async?Promise.all(f).then(d=>ia.mergeArray(l,d)):ia.mergeArray(l,f)}get items(){return this._def.items}rest(r){return new ar({...this._def,rest:r})}}ar.create=(n,r)=>{if(!Array.isArray(n))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new ar({items:n,typeName:Se.ZodTuple,rest:null,...Oe(r)})};class Pd extends Ue{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(r){const{status:l,ctx:s}=this._processInputParams(r);if(s.parsedType!==de.map)return ie(s,{code:P.invalid_type,expected:de.map,received:s.parsedType}),_e;const u=this._def.keyType,f=this._def.valueType,d=[...s.data.entries()].map(([m,y],p)=>({key:u._parse(new wn(s,m,s.path,[p,"key"])),value:f._parse(new wn(s,y,s.path,[p,"value"]))}));if(s.common.async){const m=new Map;return Promise.resolve().then(async()=>{for(const y of d){const p=await y.key,_=await y.value;if(p.status==="aborted"||_.status==="aborted")return _e;(p.status==="dirty"||_.status==="dirty")&&l.dirty(),m.set(p.value,_.value)}return{status:l.value,value:m}})}else{const m=new Map;for(const y of d){const p=y.key,_=y.value;if(p.status==="aborted"||_.status==="aborted")return _e;(p.status==="dirty"||_.status==="dirty")&&l.dirty(),m.set(p.value,_.value)}return{status:l.value,value:m}}}}Pd.create=(n,r,l)=>new Pd({valueType:r,keyType:n,typeName:Se.ZodMap,...Oe(l)});class qi extends Ue{_parse(r){const{status:l,ctx:s}=this._processInputParams(r);if(s.parsedType!==de.set)return ie(s,{code:P.invalid_type,expected:de.set,received:s.parsedType}),_e;const u=this._def;u.minSize!==null&&s.data.size<u.minSize.value&&(ie(s,{code:P.too_small,minimum:u.minSize.value,type:"set",inclusive:!0,exact:!1,message:u.minSize.message}),l.dirty()),u.maxSize!==null&&s.data.size>u.maxSize.value&&(ie(s,{code:P.too_big,maximum:u.maxSize.value,type:"set",inclusive:!0,exact:!1,message:u.maxSize.message}),l.dirty());const f=this._def.valueType;function d(y){const p=new Set;for(const _ of y){if(_.status==="aborted")return _e;_.status==="dirty"&&l.dirty(),p.add(_.value)}return{status:l.value,value:p}}const m=[...s.data.values()].map((y,p)=>f._parse(new wn(s,y,s.path,p)));return s.common.async?Promise.all(m).then(y=>d(y)):d(m)}min(r,l){return new qi({...this._def,minSize:{value:r,message:me.toString(l)}})}max(r,l){return new qi({...this._def,maxSize:{value:r,message:me.toString(l)}})}size(r,l){return this.min(r,l).max(r,l)}nonempty(r){return this.min(1,r)}}qi.create=(n,r)=>new qi({valueType:n,minSize:null,maxSize:null,typeName:Se.ZodSet,...Oe(r)});class Wd extends Ue{get schema(){return this._def.getter()}_parse(r){const{ctx:l}=this._processInputParams(r);return this._def.getter()._parse({data:l.data,path:l.path,parent:l})}}Wd.create=(n,r)=>new Wd({getter:n,typeName:Se.ZodLazy,...Oe(r)});class Id extends Ue{_parse(r){if(r.data!==this._def.value){const l=this._getOrReturnCtx(r);return ie(l,{received:l.data,code:P.invalid_literal,expected:this._def.value}),_e}return{status:"valid",value:r.data}}get value(){return this._def.value}}Id.create=(n,r)=>new Id({value:n,typeName:Se.ZodLiteral,...Oe(r)});function eh(n,r){return new Mr({values:n,typeName:Se.ZodEnum,...Oe(r)})}class Mr extends Ue{_parse(r){if(typeof r.data!="string"){const l=this._getOrReturnCtx(r),s=this._def.values;return ie(l,{expected:Le.joinValues(s),received:l.parsedType,code:P.invalid_type}),_e}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(r.data)){const l=this._getOrReturnCtx(r),s=this._def.values;return ie(l,{received:l.data,code:P.invalid_enum_value,options:s}),_e}return ya(r.data)}get options(){return this._def.values}get enum(){const r={};for(const l of this._def.values)r[l]=l;return r}get Values(){const r={};for(const l of this._def.values)r[l]=l;return r}get Enum(){const r={};for(const l of this._def.values)r[l]=l;return r}extract(r,l=this._def){return Mr.create(r,{...this._def,...l})}exclude(r,l=this._def){return Mr.create(this.options.filter(s=>!r.includes(s)),{...this._def,...l})}}Mr.create=eh;class th extends Ue{_parse(r){const l=Le.getValidEnumValues(this._def.values),s=this._getOrReturnCtx(r);if(s.parsedType!==de.string&&s.parsedType!==de.number){const u=Le.objectValues(l);return ie(s,{expected:Le.joinValues(u),received:s.parsedType,code:P.invalid_type}),_e}if(this._cache||(this._cache=new Set(Le.getValidEnumValues(this._def.values))),!this._cache.has(r.data)){const u=Le.objectValues(l);return ie(s,{received:s.data,code:P.invalid_enum_value,options:u}),_e}return ya(r.data)}get enum(){return this._def.values}}th.create=(n,r)=>new th({values:n,typeName:Se.ZodNativeEnum,...Oe(r)});class is extends Ue{unwrap(){return this._def.type}_parse(r){const{ctx:l}=this._processInputParams(r);if(l.parsedType!==de.promise&&l.common.async===!1)return ie(l,{code:P.invalid_type,expected:de.promise,received:l.parsedType}),_e;const s=l.parsedType===de.promise?l.data:Promise.resolve(l.data);return ya(s.then(u=>this._def.type.parseAsync(u,{path:l.path,errorMap:l.common.contextualErrorMap})))}}is.create=(n,r)=>new is({type:n,typeName:Se.ZodPromise,...Oe(r)});class Rr extends Ue{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Se.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(r){const{status:l,ctx:s}=this._processInputParams(r),u=this._def.effect||null,f={addIssue:d=>{ie(s,d),d.fatal?l.abort():l.dirty()},get path(){return s.path}};if(f.addIssue=f.addIssue.bind(f),u.type==="preprocess"){const d=u.transform(s.data,f);if(s.common.async)return Promise.resolve(d).then(async m=>{if(l.value==="aborted")return _e;const y=await this._def.schema._parseAsync({data:m,path:s.path,parent:s});return y.status==="aborted"?_e:y.status==="dirty"||l.value==="dirty"?Li(y.value):y});{if(l.value==="aborted")return _e;const m=this._def.schema._parseSync({data:d,path:s.path,parent:s});return m.status==="aborted"?_e:m.status==="dirty"||l.value==="dirty"?Li(m.value):m}}if(u.type==="refinement"){const d=m=>{const y=u.refinement(m,f);if(s.common.async)return Promise.resolve(y);if(y instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return m};if(s.common.async===!1){const m=this._def.schema._parseSync({data:s.data,path:s.path,parent:s});return m.status==="aborted"?_e:(m.status==="dirty"&&l.dirty(),d(m.value),{status:l.value,value:m.value})}else return this._def.schema._parseAsync({data:s.data,path:s.path,parent:s}).then(m=>m.status==="aborted"?_e:(m.status==="dirty"&&l.dirty(),d(m.value).then(()=>({status:l.value,value:m.value}))))}if(u.type==="transform")if(s.common.async===!1){const d=this._def.schema._parseSync({data:s.data,path:s.path,parent:s});if(!kr(d))return _e;const m=u.transform(d.value,f);if(m instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:l.value,value:m}}else return this._def.schema._parseAsync({data:s.data,path:s.path,parent:s}).then(d=>kr(d)?Promise.resolve(u.transform(d.value,f)).then(m=>({status:l.value,value:m})):_e);Le.assertNever(u)}}Rr.create=(n,r,l)=>new Rr({schema:n,typeName:Se.ZodEffects,effect:r,...Oe(l)}),Rr.createWithPreprocess=(n,r,l)=>new Rr({schema:r,effect:{type:"preprocess",transform:n},typeName:Se.ZodEffects,...Oe(l)});class Tn extends Ue{_parse(r){return this._getType(r)===de.undefined?ya(void 0):this._def.innerType._parse(r)}unwrap(){return this._def.innerType}}Tn.create=(n,r)=>new Tn({innerType:n,typeName:Se.ZodOptional,...Oe(r)});class Dr extends Ue{_parse(r){return this._getType(r)===de.null?ya(null):this._def.innerType._parse(r)}unwrap(){return this._def.innerType}}Dr.create=(n,r)=>new Dr({innerType:n,typeName:Se.ZodNullable,...Oe(r)});class mu extends Ue{_parse(r){const{ctx:l}=this._processInputParams(r);let s=l.data;return l.parsedType===de.undefined&&(s=this._def.defaultValue()),this._def.innerType._parse({data:s,path:l.path,parent:l})}removeDefault(){return this._def.innerType}}mu.create=(n,r)=>new mu({innerType:n,typeName:Se.ZodDefault,defaultValue:typeof r.default=="function"?r.default:()=>r.default,...Oe(r)});class pu extends Ue{_parse(r){const{ctx:l}=this._processInputParams(r),s={...l,common:{...l.common,issues:[]}},u=this._def.innerType._parse({data:s.data,path:s.path,parent:{...s}});return ts(u)?u.then(f=>({status:"valid",value:f.status==="valid"?f.value:this._def.catchValue({get error(){return new Wa(s.common.issues)},input:s.data})})):{status:"valid",value:u.status==="valid"?u.value:this._def.catchValue({get error(){return new Wa(s.common.issues)},input:s.data})}}removeCatch(){return this._def.innerType}}pu.create=(n,r)=>new pu({innerType:n,typeName:Se.ZodCatch,catchValue:typeof r.catch=="function"?r.catch:()=>r.catch,...Oe(r)});class ah extends Ue{_parse(r){if(this._getType(r)!==de.nan){const s=this._getOrReturnCtx(r);return ie(s,{code:P.invalid_type,expected:de.nan,received:s.parsedType}),_e}return{status:"valid",value:r.data}}}ah.create=n=>new ah({typeName:Se.ZodNaN,...Oe(n)});class Lv extends Ue{_parse(r){const{ctx:l}=this._processInputParams(r),s=l.data;return this._def.type._parse({data:s,path:l.path,parent:l})}unwrap(){return this._def.type}}class gu extends Ue{_parse(r){const{status:l,ctx:s}=this._processInputParams(r);if(s.common.async)return(async()=>{const f=await this._def.in._parseAsync({data:s.data,path:s.path,parent:s});return f.status==="aborted"?_e:f.status==="dirty"?(l.dirty(),Li(f.value)):this._def.out._parseAsync({data:f.value,path:s.path,parent:s})})();{const u=this._def.in._parseSync({data:s.data,path:s.path,parent:s});return u.status==="aborted"?_e:u.status==="dirty"?(l.dirty(),{status:"dirty",value:u.value}):this._def.out._parseSync({data:u.value,path:s.path,parent:s})}}static create(r,l){return new gu({in:r,out:l,typeName:Se.ZodPipeline})}}class yu extends Ue{_parse(r){const l=this._def.innerType._parse(r),s=u=>(kr(u)&&(u.value=Object.freeze(u.value)),u);return ts(l)?l.then(u=>s(u)):s(l)}unwrap(){return this._def.innerType}}yu.create=(n,r)=>new yu({innerType:n,typeName:Se.ZodReadonly,...Oe(r)});var Se;(function(n){n.ZodString="ZodString",n.ZodNumber="ZodNumber",n.ZodNaN="ZodNaN",n.ZodBigInt="ZodBigInt",n.ZodBoolean="ZodBoolean",n.ZodDate="ZodDate",n.ZodSymbol="ZodSymbol",n.ZodUndefined="ZodUndefined",n.ZodNull="ZodNull",n.ZodAny="ZodAny",n.ZodUnknown="ZodUnknown",n.ZodNever="ZodNever",n.ZodVoid="ZodVoid",n.ZodArray="ZodArray",n.ZodObject="ZodObject",n.ZodUnion="ZodUnion",n.ZodDiscriminatedUnion="ZodDiscriminatedUnion",n.ZodIntersection="ZodIntersection",n.ZodTuple="ZodTuple",n.ZodRecord="ZodRecord",n.ZodMap="ZodMap",n.ZodSet="ZodSet",n.ZodFunction="ZodFunction",n.ZodLazy="ZodLazy",n.ZodLiteral="ZodLiteral",n.ZodEnum="ZodEnum",n.ZodEffects="ZodEffects",n.ZodNativeEnum="ZodNativeEnum",n.ZodOptional="ZodOptional",n.ZodNullable="ZodNullable",n.ZodDefault="ZodDefault",n.ZodCatch="ZodCatch",n.ZodPromise="ZodPromise",n.ZodBranded="ZodBranded",n.ZodPipeline="ZodPipeline",n.ZodReadonly="ZodReadonly"})(Se||(Se={}));const nh=An.create;Cn.create,Va.create;const Vv=xt.create;ns.create,rs.create,ar.create,Mr.create,is.create,Tn.create,Dr.create;const Hv=Vv({securityNumber:nh({required_error:"CPF é obrigatório."}).refine(n=>n.replace(/\D/g,"").length>=11,"CPF deve conter no mínimo 11 caracteres.").refine(n=>{const r=n.replace(/\D/g,"");return!!Number(r)},"CPF deve conter apenas números."),coupon:nh({required_error:"Cupom / ID do Cartão obrigatório."}).optional()});var vu={exports:{}};/*!
48
+ `+i.stack}}var dl=Object.prototype.hasOwnProperty,Qs=n.unstable_scheduleCallback,Pr=n.unstable_cancelCallback,C=n.unstable_shouldYield,R=n.unstable_requestPaint,k=n.unstable_now,re=n.unstable_getCurrentPriorityLevel,W=n.unstable_ImmediatePriority,te=n.unstable_UserBlockingPriority,fe=n.unstable_NormalPriority,Ce=n.unstable_LowPriority,He=n.unstable_IdlePriority,Ft=n.log,xa=n.unstable_setDisableYieldValue,Ct=null,Qt=null;function Sa(e){if(typeof Ft=="function"&&xa(e),Qt&&typeof Qt.setStrictMode=="function")try{Qt.setStrictMode(Ct,e)}catch{}}var jt=Math.clz32?Math.clz32:Dc,wc=Math.log,Xs=Math.LN2;function Dc(e){return e>>>=0,e===0?32:31-(wc(e)/Xs|0)|0}var mr=256,Ks=262144,Js=4194304;function hr(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Is(e,t,a){var i=e.pendingLanes;if(i===0)return 0;var o=0,c=e.suspendedLanes,m=e.pingedLanes;e=e.warmLanes;var g=i&134217727;return g!==0?(i=g&~c,i!==0?o=hr(i):(m&=g,m!==0?o=hr(m):a||(a=g&~e,a!==0&&(o=hr(a))))):(g=i&~c,g!==0?o=hr(g):m!==0?o=hr(m):a||(a=i&~e,a!==0&&(o=hr(a)))),o===0?0:t!==0&&t!==o&&(t&c)===0&&(c=o&-o,a=t&-t,c>=a||c===32&&(a&4194048)!==0)?t:o}function ml(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function U_(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Op(){var e=Js;return Js<<=1,(Js&62914560)===0&&(Js=4194304),e}function Ac(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function hl(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function L_(e,t,a,i,o,c){var m=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var g=e.entanglements,_=e.expirationTimes,z=e.hiddenUpdates;for(a=m&~a;0<a;){var H=31-jt(a),Z=1<<H;g[H]=0,_[H]=-1;var j=z[H];if(j!==null)for(z[H]=null,H=0;H<j.length;H++){var B=j[H];B!==null&&(B.lane&=-536870913)}a&=~Z}i!==0&&Rp(e,i,0),c!==0&&o===0&&e.tag!==0&&(e.suspendedLanes|=c&~(m&~t))}function Rp(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var i=31-jt(t);e.entangledLanes|=t,e.entanglements[i]=e.entanglements[i]|1073741824|a&261930}function Mp(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var i=31-jt(a),o=1<<i;o&t|e[i]&t&&(e[i]|=t),a&=~o}}function zp(e,t){var a=t&-t;return a=(a&42)!==0?1:Tc(a),(a&(e.suspendedLanes|t))!==0?0:a}function Tc(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Oc(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function kp(){var e=X.p;return e!==0?e:(e=window.event,e===void 0?32:vb(e.type))}function jp(e,t){var a=X.p;try{return X.p=e,t()}finally{X.p=a}}var Rn=Math.random().toString(36).slice(2),Vt="__reactFiber$"+Rn,Pt="__reactProps$"+Rn,Wr="__reactContainer$"+Rn,Rc="__reactEvents$"+Rn,H_="__reactListeners$"+Rn,q_="__reactHandles$"+Rn,Vp="__reactResources$"+Rn,pl="__reactMarker$"+Rn;function Mc(e){delete e[Vt],delete e[Pt],delete e[Rc],delete e[H_],delete e[q_]}function ei(e){var t=e[Vt];if(t)return t;for(var a=e.parentNode;a;){if(t=a[Wr]||a[Vt]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=nb(e);e!==null;){if(a=e[Vt])return a;e=nb(e)}return t}e=a,a=e.parentNode}return null}function ti(e){if(e=e[Vt]||e[Wr]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function gl(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(s(33))}function ai(e){var t=e[Vp];return t||(t=e[Vp]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Rt(e){e[pl]=!0}var Bp=new Set,Up={};function pr(e,t){ni(e,t),ni(e+"Capture",t)}function ni(e,t){for(Up[e]=t,e=0;e<t.length;e++)Bp.add(t[e])}var G_=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Lp={},Hp={};function Z_(e){return dl.call(Hp,e)?!0:dl.call(Lp,e)?!1:G_.test(e)?Hp[e]=!0:(Lp[e]=!0,!1)}function Ps(e,t,a){if(Z_(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var i=t.toLowerCase().slice(0,5);if(i!=="data-"&&i!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function Ws(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+a)}}function nn(e,t,a,i){if(i===null)e.removeAttribute(a);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+i)}}function Na(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function qp(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Y_(e,t,a){var i=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var o=i.get,c=i.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(m){a=""+m,c.call(this,m)}}),Object.defineProperty(e,t,{enumerable:i.enumerable}),{getValue:function(){return a},setValue:function(m){a=""+m},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function zc(e){if(!e._valueTracker){var t=qp(e)?"checked":"value";e._valueTracker=Y_(e,t,""+e[t])}}function Gp(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),i="";return e&&(i=qp(e)?e.checked?"true":"false":e.value),e=i,e!==a?(t.setValue(e),!0):!1}function eo(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}}var $_=/[\n"\\]/g;function _a(e){return e.replace($_,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function kc(e,t,a,i,o,c,m,g){e.name="",m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"?e.type=m:e.removeAttribute("type"),t!=null?m==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Na(t)):e.value!==""+Na(t)&&(e.value=""+Na(t)):m!=="submit"&&m!=="reset"||e.removeAttribute("value"),t!=null?jc(e,m,Na(t)):a!=null?jc(e,m,Na(a)):i!=null&&e.removeAttribute("value"),o==null&&c!=null&&(e.defaultChecked=!!c),o!=null&&(e.checked=o&&typeof o!="function"&&typeof o!="symbol"),g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"?e.name=""+Na(g):e.removeAttribute("name")}function Zp(e,t,a,i,o,c,m,g){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||a!=null){if(!(c!=="submit"&&c!=="reset"||t!=null)){zc(e);return}a=a!=null?""+Na(a):"",t=t!=null?""+Na(t):a,g||t===e.value||(e.value=t),e.defaultValue=t}i=i??o,i=typeof i!="function"&&typeof i!="symbol"&&!!i,e.checked=g?e.checked:!!i,e.defaultChecked=!!i,m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(e.name=m),zc(e)}function jc(e,t,a){t==="number"&&eo(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function ri(e,t,a,i){if(e=e.options,t){t={};for(var o=0;o<a.length;o++)t["$"+a[o]]=!0;for(a=0;a<e.length;a++)o=t.hasOwnProperty("$"+e[a].value),e[a].selected!==o&&(e[a].selected=o),o&&i&&(e[a].defaultSelected=!0)}else{for(a=""+Na(a),t=null,o=0;o<e.length;o++){if(e[o].value===a){e[o].selected=!0,i&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function Yp(e,t,a){if(t!=null&&(t=""+Na(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+Na(a):""}function $p(e,t,a,i){if(t==null){if(i!=null){if(a!=null)throw Error(s(92));if(le(i)){if(1<i.length)throw Error(s(93));i=i[0]}a=i}a==null&&(a=""),t=a}a=Na(t),e.defaultValue=a,i=e.textContent,i===a&&i!==""&&i!==null&&(e.value=i),zc(e)}function ii(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var F_=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Fp(e,t,a){var i=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?i?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":i?e.setProperty(t,a):typeof a!="number"||a===0||F_.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function Qp(e,t,a){if(t!=null&&typeof t!="object")throw Error(s(62));if(e=e.style,a!=null){for(var i in a)!a.hasOwnProperty(i)||t!=null&&t.hasOwnProperty(i)||(i.indexOf("--")===0?e.setProperty(i,""):i==="float"?e.cssFloat="":e[i]="");for(var o in t)i=t[o],t.hasOwnProperty(o)&&a[o]!==i&&Fp(e,o,i)}else for(var c in t)t.hasOwnProperty(c)&&Fp(e,c,t[c])}function Vc(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Q_=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),X_=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function to(e){return X_.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function rn(){}var Bc=null;function Uc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var li=null,si=null;function Xp(e){var t=ti(e);if(t&&(e=t.stateNode)){var a=e[Pt]||null;e:switch(e=t.stateNode,t.type){case"input":if(kc(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+_a(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var i=a[t];if(i!==e&&i.form===e.form){var o=i[Pt]||null;if(!o)throw Error(s(90));kc(i,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(t=0;t<a.length;t++)i=a[t],i.form===e.form&&Gp(i)}break e;case"textarea":Yp(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&ri(e,!!a.multiple,t,!1)}}}var Lc=!1;function Kp(e,t,a){if(Lc)return e(t,a);Lc=!0;try{var i=e(t);return i}finally{if(Lc=!1,(li!==null||si!==null)&&(Zo(),li&&(t=li,e=si,si=li=null,Xp(t),e)))for(t=0;t<e.length;t++)Xp(e[t])}}function yl(e,t){var a=e.stateNode;if(a===null)return null;var i=a[Pt]||null;if(i===null)return null;a=i[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(i=!i.disabled)||(e=e.type,i=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!i;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(s(231,t,typeof a));return a}var ln=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Hc=!1;if(ln)try{var bl={};Object.defineProperty(bl,"passive",{get:function(){Hc=!0}}),window.addEventListener("test",bl,bl),window.removeEventListener("test",bl,bl)}catch{Hc=!1}var Mn=null,qc=null,ao=null;function Jp(){if(ao)return ao;var e,t=qc,a=t.length,i,o="value"in Mn?Mn.value:Mn.textContent,c=o.length;for(e=0;e<a&&t[e]===o[e];e++);var m=a-e;for(i=1;i<=m&&t[a-i]===o[c-i];i++);return ao=o.slice(e,1<i?1-i:void 0)}function no(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function ro(){return!0}function Ip(){return!1}function Wt(e){function t(a,i,o,c,m){this._reactName=a,this._targetInst=o,this.type=i,this.nativeEvent=c,this.target=m,this.currentTarget=null;for(var g in e)e.hasOwnProperty(g)&&(a=e[g],this[g]=a?a(c):c[g]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?ro:Ip,this.isPropagationStopped=Ip,this}return v(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=ro)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=ro)},persist:function(){},isPersistent:ro}),t}var gr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},io=Wt(gr),vl=v({},gr,{view:0,detail:0}),K_=Wt(vl),Gc,Zc,xl,lo=v({},vl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:$c,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==xl&&(xl&&e.type==="mousemove"?(Gc=e.screenX-xl.screenX,Zc=e.screenY-xl.screenY):Zc=Gc=0,xl=e),Gc)},movementY:function(e){return"movementY"in e?e.movementY:Zc}}),Pp=Wt(lo),J_=v({},lo,{dataTransfer:0}),I_=Wt(J_),P_=v({},vl,{relatedTarget:0}),Yc=Wt(P_),W_=v({},gr,{animationName:0,elapsedTime:0,pseudoElement:0}),e2=Wt(W_),t2=v({},gr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),a2=Wt(t2),n2=v({},gr,{data:0}),Wp=Wt(n2),r2={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},i2={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},l2={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function s2(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=l2[e])?!!t[e]:!1}function $c(){return s2}var o2=v({},vl,{key:function(e){if(e.key){var t=r2[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=no(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?i2[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:$c,charCode:function(e){return e.type==="keypress"?no(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?no(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),u2=Wt(o2),c2=v({},lo,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),eg=Wt(c2),f2=v({},vl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:$c}),d2=Wt(f2),m2=v({},gr,{propertyName:0,elapsedTime:0,pseudoElement:0}),h2=Wt(m2),p2=v({},lo,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),g2=Wt(p2),y2=v({},gr,{newState:0,oldState:0}),b2=Wt(y2),v2=[9,13,27,32],Fc=ln&&"CompositionEvent"in window,Sl=null;ln&&"documentMode"in document&&(Sl=document.documentMode);var x2=ln&&"TextEvent"in window&&!Sl,tg=ln&&(!Fc||Sl&&8<Sl&&11>=Sl),ag=" ",ng=!1;function rg(e,t){switch(e){case"keyup":return v2.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ig(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var oi=!1;function S2(e,t){switch(e){case"compositionend":return ig(t);case"keypress":return t.which!==32?null:(ng=!0,ag);case"textInput":return e=t.data,e===ag&&ng?null:e;default:return null}}function N2(e,t){if(oi)return e==="compositionend"||!Fc&&rg(e,t)?(e=Jp(),ao=qc=Mn=null,oi=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return tg&&t.locale!=="ko"?null:t.data;default:return null}}var _2={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function lg(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!_2[e.type]:t==="textarea"}function sg(e,t,a,i){li?si?si.push(i):si=[i]:li=i,t=Jo(t,"onChange"),0<t.length&&(a=new io("onChange","change",null,a,i),e.push({event:a,listeners:t}))}var Nl=null,_l=null;function C2(e){Z0(e,0)}function so(e){var t=gl(e);if(Gp(t))return e}function og(e,t){if(e==="change")return t}var ug=!1;if(ln){var Qc;if(ln){var Xc="oninput"in document;if(!Xc){var cg=document.createElement("div");cg.setAttribute("oninput","return;"),Xc=typeof cg.oninput=="function"}Qc=Xc}else Qc=!1;ug=Qc&&(!document.documentMode||9<document.documentMode)}function fg(){Nl&&(Nl.detachEvent("onpropertychange",dg),_l=Nl=null)}function dg(e){if(e.propertyName==="value"&&so(_l)){var t=[];sg(t,_l,e,Uc(e)),Kp(C2,t)}}function E2(e,t,a){e==="focusin"?(fg(),Nl=t,_l=a,Nl.attachEvent("onpropertychange",dg)):e==="focusout"&&fg()}function w2(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return so(_l)}function D2(e,t){if(e==="click")return so(t)}function A2(e,t){if(e==="input"||e==="change")return so(t)}function T2(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var ua=typeof Object.is=="function"?Object.is:T2;function Cl(e,t){if(ua(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),i=Object.keys(t);if(a.length!==i.length)return!1;for(i=0;i<a.length;i++){var o=a[i];if(!dl.call(t,o)||!ua(e[o],t[o]))return!1}return!0}function mg(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function hg(e,t){var a=mg(e);e=0;for(var i;a;){if(a.nodeType===3){if(i=e+a.textContent.length,e<=t&&i>=t)return{node:a,offset:t-e};e=i}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=mg(a)}}function pg(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?pg(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function gg(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=eo(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=eo(e.document)}return t}function Kc(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")}var O2=ln&&"documentMode"in document&&11>=document.documentMode,ui=null,Jc=null,El=null,Ic=!1;function yg(e,t,a){var i=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Ic||ui==null||ui!==eo(i)||(i=ui,"selectionStart"in i&&Kc(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),El&&Cl(El,i)||(El=i,i=Jo(Jc,"onSelect"),0<i.length&&(t=new io("onSelect","select",null,t,a),e.push({event:t,listeners:i}),t.target=ui)))}function yr(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var ci={animationend:yr("Animation","AnimationEnd"),animationiteration:yr("Animation","AnimationIteration"),animationstart:yr("Animation","AnimationStart"),transitionrun:yr("Transition","TransitionRun"),transitionstart:yr("Transition","TransitionStart"),transitioncancel:yr("Transition","TransitionCancel"),transitionend:yr("Transition","TransitionEnd")},Pc={},bg={};ln&&(bg=document.createElement("div").style,"AnimationEvent"in window||(delete ci.animationend.animation,delete ci.animationiteration.animation,delete ci.animationstart.animation),"TransitionEvent"in window||delete ci.transitionend.transition);function br(e){if(Pc[e])return Pc[e];if(!ci[e])return e;var t=ci[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in bg)return Pc[e]=t[a];return e}var vg=br("animationend"),xg=br("animationiteration"),Sg=br("animationstart"),R2=br("transitionrun"),M2=br("transitionstart"),z2=br("transitioncancel"),Ng=br("transitionend"),_g=new Map,Wc="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Wc.push("scrollEnd");function Va(e,t){_g.set(e,t),pr(t,[e])}var oo=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Ca=[],fi=0,ef=0;function uo(){for(var e=fi,t=ef=fi=0;t<e;){var a=Ca[t];Ca[t++]=null;var i=Ca[t];Ca[t++]=null;var o=Ca[t];Ca[t++]=null;var c=Ca[t];if(Ca[t++]=null,i!==null&&o!==null){var m=i.pending;m===null?o.next=o:(o.next=m.next,m.next=o),i.pending=o}c!==0&&Cg(a,o,c)}}function co(e,t,a,i){Ca[fi++]=e,Ca[fi++]=t,Ca[fi++]=a,Ca[fi++]=i,ef|=i,e.lanes|=i,e=e.alternate,e!==null&&(e.lanes|=i)}function tf(e,t,a,i){return co(e,t,a,i),fo(e)}function vr(e,t){return co(e,null,null,t),fo(e)}function Cg(e,t,a){e.lanes|=a;var i=e.alternate;i!==null&&(i.lanes|=a);for(var o=!1,c=e.return;c!==null;)c.childLanes|=a,i=c.alternate,i!==null&&(i.childLanes|=a),c.tag===22&&(e=c.stateNode,e===null||e._visibility&1||(o=!0)),e=c,c=c.return;return e.tag===3?(c=e.stateNode,o&&t!==null&&(o=31-jt(a),e=c.hiddenUpdates,i=e[o],i===null?e[o]=[t]:i.push(t),t.lane=a|536870912),c):null}function fo(e){if(50<Ql)throw Ql=0,fd=null,Error(s(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var di={};function k2(e,t,a,i){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ca(e,t,a,i){return new k2(e,t,a,i)}function af(e){return e=e.prototype,!(!e||!e.isReactComponent)}function sn(e,t){var a=e.alternate;return a===null?(a=ca(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function Eg(e,t){e.flags&=65011714;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function mo(e,t,a,i,o,c){var m=0;if(i=e,typeof e=="function")af(e)&&(m=1);else if(typeof e=="string")m=LC(e,a,ue.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Me:return e=ca(31,a,t,o),e.elementType=Me,e.lanes=c,e;case E:return xr(a.children,o,c,t);case q:m=8,o|=24;break;case P:return e=ca(12,a,t,o|2),e.elementType=P,e.lanes=c,e;case U:return e=ca(13,a,t,o),e.elementType=U,e.lanes=c,e;case Q:return e=ca(19,a,t,o),e.elementType=Q,e.lanes=c,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ae:m=10;break e;case K:m=9;break e;case ee:m=11;break e;case J:m=14;break e;case _e:m=16,i=null;break e}m=29,a=Error(s(130,e===null?"null":typeof e,"")),i=null}return t=ca(m,a,t,o),t.elementType=e,t.type=i,t.lanes=c,t}function xr(e,t,a,i){return e=ca(7,e,i,t),e.lanes=a,e}function nf(e,t,a){return e=ca(6,e,null,t),e.lanes=a,e}function wg(e){var t=ca(18,null,null,0);return t.stateNode=e,t}function rf(e,t,a){return t=ca(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Dg=new WeakMap;function Ea(e,t){if(typeof e=="object"&&e!==null){var a=Dg.get(e);return a!==void 0?a:(t={value:e,source:t,stack:Fs(t)},Dg.set(e,t),t)}return{value:e,source:t,stack:Fs(t)}}var mi=[],hi=0,ho=null,wl=0,wa=[],Da=0,zn=null,Fa=1,Qa="";function on(e,t){mi[hi++]=wl,mi[hi++]=ho,ho=e,wl=t}function Ag(e,t,a){wa[Da++]=Fa,wa[Da++]=Qa,wa[Da++]=zn,zn=e;var i=Fa;e=Qa;var o=32-jt(i)-1;i&=~(1<<o),a+=1;var c=32-jt(t)+o;if(30<c){var m=o-o%5;c=(i&(1<<m)-1).toString(32),i>>=m,o-=m,Fa=1<<32-jt(t)+o|a<<o|i,Qa=c+e}else Fa=1<<c|a<<o|i,Qa=e}function lf(e){e.return!==null&&(on(e,1),Ag(e,1,0))}function sf(e){for(;e===ho;)ho=mi[--hi],mi[hi]=null,wl=mi[--hi],mi[hi]=null;for(;e===zn;)zn=wa[--Da],wa[Da]=null,Qa=wa[--Da],wa[Da]=null,Fa=wa[--Da],wa[Da]=null}function Tg(e,t){wa[Da++]=Fa,wa[Da++]=Qa,wa[Da++]=zn,Fa=t.id,Qa=t.overflow,zn=e}var Bt=null,lt=null,je=!1,kn=null,Aa=!1,of=Error(s(519));function jn(e){var t=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Dl(Ea(t,e)),of}function Og(e){var t=e.stateNode,a=e.type,i=e.memoizedProps;switch(t[Vt]=e,t[Pt]=i,a){case"dialog":Re("cancel",t),Re("close",t);break;case"iframe":case"object":case"embed":Re("load",t);break;case"video":case"audio":for(a=0;a<Kl.length;a++)Re(Kl[a],t);break;case"source":Re("error",t);break;case"img":case"image":case"link":Re("error",t),Re("load",t);break;case"details":Re("toggle",t);break;case"input":Re("invalid",t),Zp(t,i.value,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name,!0);break;case"select":Re("invalid",t);break;case"textarea":Re("invalid",t),$p(t,i.value,i.defaultValue,i.children)}a=i.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||i.suppressHydrationWarning===!0||Q0(t.textContent,a)?(i.popover!=null&&(Re("beforetoggle",t),Re("toggle",t)),i.onScroll!=null&&Re("scroll",t),i.onScrollEnd!=null&&Re("scrollend",t),i.onClick!=null&&(t.onclick=rn),t=!0):t=!1,t||jn(e,!0)}function Rg(e){for(Bt=e.return;Bt;)switch(Bt.tag){case 5:case 31:case 13:Aa=!1;return;case 27:case 3:Aa=!0;return;default:Bt=Bt.return}}function pi(e){if(e!==Bt)return!1;if(!je)return Rg(e),je=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||wd(e.type,e.memoizedProps)),a=!a),a&&lt&&jn(e),Rg(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));lt=ab(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));lt=ab(e)}else t===27?(t=lt,Kn(e.type)?(e=Rd,Rd=null,lt=e):lt=t):lt=Bt?Oa(e.stateNode.nextSibling):null;return!0}function Sr(){lt=Bt=null,je=!1}function uf(){var e=kn;return e!==null&&(na===null?na=e:na.push.apply(na,e),kn=null),e}function Dl(e){kn===null?kn=[e]:kn.push(e)}var cf=A(null),Nr=null,un=null;function Vn(e,t,a){ne(cf,t._currentValue),t._currentValue=a}function cn(e){e._currentValue=cf.current,Y(cf)}function ff(e,t,a){for(;e!==null;){var i=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,i!==null&&(i.childLanes|=t)):i!==null&&(i.childLanes&t)!==t&&(i.childLanes|=t),e===a)break;e=e.return}}function df(e,t,a,i){var o=e.child;for(o!==null&&(o.return=e);o!==null;){var c=o.dependencies;if(c!==null){var m=o.child;c=c.firstContext;e:for(;c!==null;){var g=c;c=o;for(var _=0;_<t.length;_++)if(g.context===t[_]){c.lanes|=a,g=c.alternate,g!==null&&(g.lanes|=a),ff(c.return,a,e),i||(m=null);break e}c=g.next}}else if(o.tag===18){if(m=o.return,m===null)throw Error(s(341));m.lanes|=a,c=m.alternate,c!==null&&(c.lanes|=a),ff(m,a,e),m=null}else m=o.child;if(m!==null)m.return=o;else for(m=o;m!==null;){if(m===e){m=null;break}if(o=m.sibling,o!==null){o.return=m.return,m=o;break}m=m.return}o=m}}function gi(e,t,a,i){e=null;for(var o=t,c=!1;o!==null;){if(!c){if((o.flags&524288)!==0)c=!0;else if((o.flags&262144)!==0)break}if(o.tag===10){var m=o.alternate;if(m===null)throw Error(s(387));if(m=m.memoizedProps,m!==null){var g=o.type;ua(o.pendingProps.value,m.value)||(e!==null?e.push(g):e=[g])}}else if(o===Be.current){if(m=o.alternate,m===null)throw Error(s(387));m.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(e!==null?e.push(es):e=[es])}o=o.return}e!==null&&df(t,e,a,i),t.flags|=262144}function po(e){for(e=e.firstContext;e!==null;){if(!ua(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function _r(e){Nr=e,un=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Ut(e){return Mg(Nr,e)}function go(e,t){return Nr===null&&_r(e),Mg(e,t)}function Mg(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},un===null){if(e===null)throw Error(s(308));un=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else un=un.next=t;return a}var j2=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,i){e.push(i)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},V2=n.unstable_scheduleCallback,B2=n.unstable_NormalPriority,Et={$$typeof:ae,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function mf(){return{controller:new j2,data:new Map,refCount:0}}function Al(e){e.refCount--,e.refCount===0&&V2(B2,function(){e.controller.abort()})}var Tl=null,hf=0,yi=0,bi=null;function U2(e,t){if(Tl===null){var a=Tl=[];hf=0,yi=yd(),bi={status:"pending",value:void 0,then:function(i){a.push(i)}}}return hf++,t.then(zg,zg),t}function zg(){if(--hf===0&&Tl!==null){bi!==null&&(bi.status="fulfilled");var e=Tl;Tl=null,yi=0,bi=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function L2(e,t){var a=[],i={status:"pending",value:null,reason:null,then:function(o){a.push(o)}};return e.then(function(){i.status="fulfilled",i.value=t;for(var o=0;o<a.length;o++)(0,a[o])(t)},function(o){for(i.status="rejected",i.reason=o,o=0;o<a.length;o++)(0,a[o])(void 0)}),i}var kg=O.S;O.S=function(e,t){y0=k(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&U2(e,t),kg!==null&&kg(e,t)};var Cr=A(null);function pf(){var e=Cr.current;return e!==null?e:nt.pooledCache}function yo(e,t){t===null?ne(Cr,Cr.current):ne(Cr,t.pool)}function jg(){var e=pf();return e===null?null:{parent:Et._currentValue,pool:e}}var xi=Error(s(460)),gf=Error(s(474)),bo=Error(s(542)),vo={then:function(){}};function Vg(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Bg(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(rn,rn),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Lg(e),e;default:if(typeof t.status=="string")t.then(rn,rn);else{if(e=nt,e!==null&&100<e.shellSuspendCounter)throw Error(s(482));e=t,e.status="pending",e.then(function(i){if(t.status==="pending"){var o=t;o.status="fulfilled",o.value=i}},function(i){if(t.status==="pending"){var o=t;o.status="rejected",o.reason=i}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Lg(e),e}throw wr=t,xi}}function Er(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(wr=a,xi):a}}var wr=null;function Ug(){if(wr===null)throw Error(s(459));var e=wr;return wr=null,e}function Lg(e){if(e===xi||e===bo)throw Error(s(483))}var Si=null,Ol=0;function xo(e){var t=Ol;return Ol+=1,Si===null&&(Si=[]),Bg(Si,e,t)}function Rl(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function So(e,t){throw t.$$typeof===D?Error(s(525)):(e=Object.prototype.toString.call(t),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Hg(e){function t(T,w){if(e){var M=T.deletions;M===null?(T.deletions=[w],T.flags|=16):M.push(w)}}function a(T,w){if(!e)return null;for(;w!==null;)t(T,w),w=w.sibling;return null}function i(T){for(var w=new Map;T!==null;)T.key!==null?w.set(T.key,T):w.set(T.index,T),T=T.sibling;return w}function o(T,w){return T=sn(T,w),T.index=0,T.sibling=null,T}function c(T,w,M){return T.index=M,e?(M=T.alternate,M!==null?(M=M.index,M<w?(T.flags|=67108866,w):M):(T.flags|=67108866,w)):(T.flags|=1048576,w)}function m(T){return e&&T.alternate===null&&(T.flags|=67108866),T}function g(T,w,M,G){return w===null||w.tag!==6?(w=nf(M,T.mode,G),w.return=T,w):(w=o(w,M),w.return=T,w)}function _(T,w,M,G){var ge=M.type;return ge===E?H(T,w,M.props.children,G,M.key):w!==null&&(w.elementType===ge||typeof ge=="object"&&ge!==null&&ge.$$typeof===_e&&Er(ge)===w.type)?(w=o(w,M.props),Rl(w,M),w.return=T,w):(w=mo(M.type,M.key,M.props,null,T.mode,G),Rl(w,M),w.return=T,w)}function z(T,w,M,G){return w===null||w.tag!==4||w.stateNode.containerInfo!==M.containerInfo||w.stateNode.implementation!==M.implementation?(w=rf(M,T.mode,G),w.return=T,w):(w=o(w,M.children||[]),w.return=T,w)}function H(T,w,M,G,ge){return w===null||w.tag!==7?(w=xr(M,T.mode,G,ge),w.return=T,w):(w=o(w,M),w.return=T,w)}function Z(T,w,M){if(typeof w=="string"&&w!==""||typeof w=="number"||typeof w=="bigint")return w=nf(""+w,T.mode,M),w.return=T,w;if(typeof w=="object"&&w!==null){switch(w.$$typeof){case N:return M=mo(w.type,w.key,w.props,null,T.mode,M),Rl(M,w),M.return=T,M;case V:return w=rf(w,T.mode,M),w.return=T,w;case _e:return w=Er(w),Z(T,w,M)}if(le(w)||b(w))return w=xr(w,T.mode,M,null),w.return=T,w;if(typeof w.then=="function")return Z(T,xo(w),M);if(w.$$typeof===ae)return Z(T,go(T,w),M);So(T,w)}return null}function j(T,w,M,G){var ge=w!==null?w.key:null;if(typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint")return ge!==null?null:g(T,w,""+M,G);if(typeof M=="object"&&M!==null){switch(M.$$typeof){case N:return M.key===ge?_(T,w,M,G):null;case V:return M.key===ge?z(T,w,M,G):null;case _e:return M=Er(M),j(T,w,M,G)}if(le(M)||b(M))return ge!==null?null:H(T,w,M,G,null);if(typeof M.then=="function")return j(T,w,xo(M),G);if(M.$$typeof===ae)return j(T,w,go(T,M),G);So(T,M)}return null}function B(T,w,M,G,ge){if(typeof G=="string"&&G!==""||typeof G=="number"||typeof G=="bigint")return T=T.get(M)||null,g(w,T,""+G,ge);if(typeof G=="object"&&G!==null){switch(G.$$typeof){case N:return T=T.get(G.key===null?M:G.key)||null,_(w,T,G,ge);case V:return T=T.get(G.key===null?M:G.key)||null,z(w,T,G,ge);case _e:return G=Er(G),B(T,w,M,G,ge)}if(le(G)||b(G))return T=T.get(M)||null,H(w,T,G,ge,null);if(typeof G.then=="function")return B(T,w,M,xo(G),ge);if(G.$$typeof===ae)return B(T,w,M,go(w,G),ge);So(w,G)}return null}function ce(T,w,M,G){for(var ge=null,qe=null,me=w,we=w=0,ke=null;me!==null&&we<M.length;we++){me.index>we?(ke=me,me=null):ke=me.sibling;var Ge=j(T,me,M[we],G);if(Ge===null){me===null&&(me=ke);break}e&&me&&Ge.alternate===null&&t(T,me),w=c(Ge,w,we),qe===null?ge=Ge:qe.sibling=Ge,qe=Ge,me=ke}if(we===M.length)return a(T,me),je&&on(T,we),ge;if(me===null){for(;we<M.length;we++)me=Z(T,M[we],G),me!==null&&(w=c(me,w,we),qe===null?ge=me:qe.sibling=me,qe=me);return je&&on(T,we),ge}for(me=i(me);we<M.length;we++)ke=B(me,T,we,M[we],G),ke!==null&&(e&&ke.alternate!==null&&me.delete(ke.key===null?we:ke.key),w=c(ke,w,we),qe===null?ge=ke:qe.sibling=ke,qe=ke);return e&&me.forEach(function(er){return t(T,er)}),je&&on(T,we),ge}function ye(T,w,M,G){if(M==null)throw Error(s(151));for(var ge=null,qe=null,me=w,we=w=0,ke=null,Ge=M.next();me!==null&&!Ge.done;we++,Ge=M.next()){me.index>we?(ke=me,me=null):ke=me.sibling;var er=j(T,me,Ge.value,G);if(er===null){me===null&&(me=ke);break}e&&me&&er.alternate===null&&t(T,me),w=c(er,w,we),qe===null?ge=er:qe.sibling=er,qe=er,me=ke}if(Ge.done)return a(T,me),je&&on(T,we),ge;if(me===null){for(;!Ge.done;we++,Ge=M.next())Ge=Z(T,Ge.value,G),Ge!==null&&(w=c(Ge,w,we),qe===null?ge=Ge:qe.sibling=Ge,qe=Ge);return je&&on(T,we),ge}for(me=i(me);!Ge.done;we++,Ge=M.next())Ge=B(me,T,we,Ge.value,G),Ge!==null&&(e&&Ge.alternate!==null&&me.delete(Ge.key===null?we:Ge.key),w=c(Ge,w,we),qe===null?ge=Ge:qe.sibling=Ge,qe=Ge);return e&&me.forEach(function(JC){return t(T,JC)}),je&&on(T,we),ge}function at(T,w,M,G){if(typeof M=="object"&&M!==null&&M.type===E&&M.key===null&&(M=M.props.children),typeof M=="object"&&M!==null){switch(M.$$typeof){case N:e:{for(var ge=M.key;w!==null;){if(w.key===ge){if(ge=M.type,ge===E){if(w.tag===7){a(T,w.sibling),G=o(w,M.props.children),G.return=T,T=G;break e}}else if(w.elementType===ge||typeof ge=="object"&&ge!==null&&ge.$$typeof===_e&&Er(ge)===w.type){a(T,w.sibling),G=o(w,M.props),Rl(G,M),G.return=T,T=G;break e}a(T,w);break}else t(T,w);w=w.sibling}M.type===E?(G=xr(M.props.children,T.mode,G,M.key),G.return=T,T=G):(G=mo(M.type,M.key,M.props,null,T.mode,G),Rl(G,M),G.return=T,T=G)}return m(T);case V:e:{for(ge=M.key;w!==null;){if(w.key===ge)if(w.tag===4&&w.stateNode.containerInfo===M.containerInfo&&w.stateNode.implementation===M.implementation){a(T,w.sibling),G=o(w,M.children||[]),G.return=T,T=G;break e}else{a(T,w);break}else t(T,w);w=w.sibling}G=rf(M,T.mode,G),G.return=T,T=G}return m(T);case _e:return M=Er(M),at(T,w,M,G)}if(le(M))return ce(T,w,M,G);if(b(M)){if(ge=b(M),typeof ge!="function")throw Error(s(150));return M=ge.call(M),ye(T,w,M,G)}if(typeof M.then=="function")return at(T,w,xo(M),G);if(M.$$typeof===ae)return at(T,w,go(T,M),G);So(T,M)}return typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint"?(M=""+M,w!==null&&w.tag===6?(a(T,w.sibling),G=o(w,M),G.return=T,T=G):(a(T,w),G=nf(M,T.mode,G),G.return=T,T=G),m(T)):a(T,w)}return function(T,w,M,G){try{Ol=0;var ge=at(T,w,M,G);return Si=null,ge}catch(me){if(me===xi||me===bo)throw me;var qe=ca(29,me,null,T.mode);return qe.lanes=G,qe.return=T,qe}finally{}}}var Dr=Hg(!0),qg=Hg(!1),Bn=!1;function yf(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function bf(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Un(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ln(e,t,a){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,($e&2)!==0){var o=i.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),i.pending=t,t=fo(e),Cg(e,null,a),t}return co(e,i,t,a),fo(e)}function Ml(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var i=t.lanes;i&=e.pendingLanes,a|=i,t.lanes=a,Mp(e,a)}}function vf(e,t){var a=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,a===i)){var o=null,c=null;if(a=a.firstBaseUpdate,a!==null){do{var m={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};c===null?o=c=m:c=c.next=m,a=a.next}while(a!==null);c===null?o=c=t:c=c.next=t}else o=c=t;a={baseState:i.baseState,firstBaseUpdate:o,lastBaseUpdate:c,shared:i.shared,callbacks:i.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var xf=!1;function zl(){if(xf){var e=bi;if(e!==null)throw e}}function kl(e,t,a,i){xf=!1;var o=e.updateQueue;Bn=!1;var c=o.firstBaseUpdate,m=o.lastBaseUpdate,g=o.shared.pending;if(g!==null){o.shared.pending=null;var _=g,z=_.next;_.next=null,m===null?c=z:m.next=z,m=_;var H=e.alternate;H!==null&&(H=H.updateQueue,g=H.lastBaseUpdate,g!==m&&(g===null?H.firstBaseUpdate=z:g.next=z,H.lastBaseUpdate=_))}if(c!==null){var Z=o.baseState;m=0,H=z=_=null,g=c;do{var j=g.lane&-536870913,B=j!==g.lane;if(B?(ze&j)===j:(i&j)===j){j!==0&&j===yi&&(xf=!0),H!==null&&(H=H.next={lane:0,tag:g.tag,payload:g.payload,callback:null,next:null});e:{var ce=e,ye=g;j=t;var at=a;switch(ye.tag){case 1:if(ce=ye.payload,typeof ce=="function"){Z=ce.call(at,Z,j);break e}Z=ce;break e;case 3:ce.flags=ce.flags&-65537|128;case 0:if(ce=ye.payload,j=typeof ce=="function"?ce.call(at,Z,j):ce,j==null)break e;Z=v({},Z,j);break e;case 2:Bn=!0}}j=g.callback,j!==null&&(e.flags|=64,B&&(e.flags|=8192),B=o.callbacks,B===null?o.callbacks=[j]:B.push(j))}else B={lane:j,tag:g.tag,payload:g.payload,callback:g.callback,next:null},H===null?(z=H=B,_=Z):H=H.next=B,m|=j;if(g=g.next,g===null){if(g=o.shared.pending,g===null)break;B=g,g=B.next,B.next=null,o.lastBaseUpdate=B,o.shared.pending=null}}while(!0);H===null&&(_=Z),o.baseState=_,o.firstBaseUpdate=z,o.lastBaseUpdate=H,c===null&&(o.shared.lanes=0),Yn|=m,e.lanes=m,e.memoizedState=Z}}function Gg(e,t){if(typeof e!="function")throw Error(s(191,e));e.call(t)}function Zg(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)Gg(a[e],t)}var Ni=A(null),No=A(0);function Yg(e,t){e=vn,ne(No,e),ne(Ni,t),vn=e|t.baseLanes}function Sf(){ne(No,vn),ne(Ni,Ni.current)}function Nf(){vn=No.current,Y(Ni),Y(No)}var fa=A(null),Ta=null;function Hn(e){var t=e.alternate;ne(bt,bt.current&1),ne(fa,e),Ta===null&&(t===null||Ni.current!==null||t.memoizedState!==null)&&(Ta=e)}function _f(e){ne(bt,bt.current),ne(fa,e),Ta===null&&(Ta=e)}function $g(e){e.tag===22?(ne(bt,bt.current),ne(fa,e),Ta===null&&(Ta=e)):qn()}function qn(){ne(bt,bt.current),ne(fa,fa.current)}function da(e){Y(fa),Ta===e&&(Ta=null),Y(bt)}var bt=A(0);function _o(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||Td(a)||Od(a)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var fn=0,Ee=null,et=null,wt=null,Co=!1,_i=!1,Ar=!1,Eo=0,jl=0,Ci=null,H2=0;function ht(){throw Error(s(321))}function Cf(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!ua(e[a],t[a]))return!1;return!0}function Ef(e,t,a,i,o,c){return fn=c,Ee=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,O.H=e===null||e.memoizedState===null?Ay:Hf,Ar=!1,c=a(i,o),Ar=!1,_i&&(c=Qg(t,a,i,o)),Fg(e),c}function Fg(e){O.H=Ul;var t=et!==null&&et.next!==null;if(fn=0,wt=et=Ee=null,Co=!1,jl=0,Ci=null,t)throw Error(s(300));e===null||Dt||(e=e.dependencies,e!==null&&po(e)&&(Dt=!0))}function Qg(e,t,a,i){Ee=e;var o=0;do{if(_i&&(Ci=null),jl=0,_i=!1,25<=o)throw Error(s(301));if(o+=1,wt=et=null,e.updateQueue!=null){var c=e.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}O.H=Ty,c=t(a,i)}while(_i);return c}function q2(){var e=O.H,t=e.useState()[0];return t=typeof t.then=="function"?Vl(t):t,e=e.useState()[0],(et!==null?et.memoizedState:null)!==e&&(Ee.flags|=1024),t}function wf(){var e=Eo!==0;return Eo=0,e}function Df(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function Af(e){if(Co){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Co=!1}fn=0,wt=et=Ee=null,_i=!1,jl=Eo=0,Ci=null}function Xt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return wt===null?Ee.memoizedState=wt=e:wt=wt.next=e,wt}function vt(){if(et===null){var e=Ee.alternate;e=e!==null?e.memoizedState:null}else e=et.next;var t=wt===null?Ee.memoizedState:wt.next;if(t!==null)wt=t,et=e;else{if(e===null)throw Ee.alternate===null?Error(s(467)):Error(s(310));et=e,e={memoizedState:et.memoizedState,baseState:et.baseState,baseQueue:et.baseQueue,queue:et.queue,next:null},wt===null?Ee.memoizedState=wt=e:wt=wt.next=e}return wt}function wo(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Vl(e){var t=jl;return jl+=1,Ci===null&&(Ci=[]),e=Bg(Ci,e,t),t=Ee,(wt===null?t.memoizedState:wt.next)===null&&(t=t.alternate,O.H=t===null||t.memoizedState===null?Ay:Hf),e}function Do(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Vl(e);if(e.$$typeof===ae)return Ut(e)}throw Error(s(438,String(e)))}function Tf(e){var t=null,a=Ee.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var i=Ee.alternate;i!==null&&(i=i.updateQueue,i!==null&&(i=i.memoCache,i!=null&&(t={data:i.data.map(function(o){return o.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=wo(),Ee.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),i=0;i<e;i++)a[i]=We;return t.index++,a}function dn(e,t){return typeof t=="function"?t(e):t}function Ao(e){var t=vt();return Of(t,et,e)}function Of(e,t,a){var i=e.queue;if(i===null)throw Error(s(311));i.lastRenderedReducer=a;var o=e.baseQueue,c=i.pending;if(c!==null){if(o!==null){var m=o.next;o.next=c.next,c.next=m}t.baseQueue=o=c,i.pending=null}if(c=e.baseState,o===null)e.memoizedState=c;else{t=o.next;var g=m=null,_=null,z=t,H=!1;do{var Z=z.lane&-536870913;if(Z!==z.lane?(ze&Z)===Z:(fn&Z)===Z){var j=z.revertLane;if(j===0)_!==null&&(_=_.next={lane:0,revertLane:0,gesture:null,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null}),Z===yi&&(H=!0);else if((fn&j)===j){z=z.next,j===yi&&(H=!0);continue}else Z={lane:0,revertLane:z.revertLane,gesture:null,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},_===null?(g=_=Z,m=c):_=_.next=Z,Ee.lanes|=j,Yn|=j;Z=z.action,Ar&&a(c,Z),c=z.hasEagerState?z.eagerState:a(c,Z)}else j={lane:Z,revertLane:z.revertLane,gesture:z.gesture,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},_===null?(g=_=j,m=c):_=_.next=j,Ee.lanes|=Z,Yn|=Z;z=z.next}while(z!==null&&z!==t);if(_===null?m=c:_.next=g,!ua(c,e.memoizedState)&&(Dt=!0,H&&(a=bi,a!==null)))throw a;e.memoizedState=c,e.baseState=m,e.baseQueue=_,i.lastRenderedState=c}return o===null&&(i.lanes=0),[e.memoizedState,i.dispatch]}function Rf(e){var t=vt(),a=t.queue;if(a===null)throw Error(s(311));a.lastRenderedReducer=e;var i=a.dispatch,o=a.pending,c=t.memoizedState;if(o!==null){a.pending=null;var m=o=o.next;do c=e(c,m.action),m=m.next;while(m!==o);ua(c,t.memoizedState)||(Dt=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),a.lastRenderedState=c}return[c,i]}function Xg(e,t,a){var i=Ee,o=vt(),c=je;if(c){if(a===void 0)throw Error(s(407));a=a()}else a=t();var m=!ua((et||o).memoizedState,a);if(m&&(o.memoizedState=a,Dt=!0),o=o.queue,kf(Ig.bind(null,i,o,e),[e]),o.getSnapshot!==t||m||wt!==null&&wt.memoizedState.tag&1){if(i.flags|=2048,Ei(9,{destroy:void 0},Jg.bind(null,i,o,a,t),null),nt===null)throw Error(s(349));c||(fn&127)!==0||Kg(i,t,a)}return a}function Kg(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=Ee.updateQueue,t===null?(t=wo(),Ee.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function Jg(e,t,a,i){t.value=a,t.getSnapshot=i,Pg(t)&&Wg(e)}function Ig(e,t,a){return a(function(){Pg(t)&&Wg(e)})}function Pg(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!ua(e,a)}catch{return!0}}function Wg(e){var t=vr(e,2);t!==null&&ra(t,e,2)}function Mf(e){var t=Xt();if(typeof e=="function"){var a=e;if(e=a(),Ar){Sa(!0);try{a()}finally{Sa(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:dn,lastRenderedState:e},t}function ey(e,t,a,i){return e.baseState=a,Of(e,et,typeof i=="function"?i:dn)}function G2(e,t,a,i,o){if(Ro(e))throw Error(s(485));if(e=t.action,e!==null){var c={payload:o,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(m){c.listeners.push(m)}};O.T!==null?a(!0):c.isTransition=!1,i(c),a=t.pending,a===null?(c.next=t.pending=c,ty(t,c)):(c.next=a.next,t.pending=a.next=c)}}function ty(e,t){var a=t.action,i=t.payload,o=e.state;if(t.isTransition){var c=O.T,m={};O.T=m;try{var g=a(o,i),_=O.S;_!==null&&_(m,g),ay(e,t,g)}catch(z){zf(e,t,z)}finally{c!==null&&m.types!==null&&(c.types=m.types),O.T=c}}else try{c=a(o,i),ay(e,t,c)}catch(z){zf(e,t,z)}}function ay(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(i){ny(e,t,i)},function(i){return zf(e,t,i)}):ny(e,t,a)}function ny(e,t,a){t.status="fulfilled",t.value=a,ry(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,ty(e,a)))}function zf(e,t,a){var i=e.pending;if(e.pending=null,i!==null){i=i.next;do t.status="rejected",t.reason=a,ry(t),t=t.next;while(t!==i)}e.action=null}function ry(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function iy(e,t){return t}function ly(e,t){if(je){var a=nt.formState;if(a!==null){e:{var i=Ee;if(je){if(lt){t:{for(var o=lt,c=Aa;o.nodeType!==8;){if(!c){o=null;break t}if(o=Oa(o.nextSibling),o===null){o=null;break t}}c=o.data,o=c==="F!"||c==="F"?o:null}if(o){lt=Oa(o.nextSibling),i=o.data==="F!";break e}}jn(i)}i=!1}i&&(t=a[0])}}return a=Xt(),a.memoizedState=a.baseState=t,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:iy,lastRenderedState:t},a.queue=i,a=Ey.bind(null,Ee,i),i.dispatch=a,i=Mf(!1),c=Lf.bind(null,Ee,!1,i.queue),i=Xt(),o={state:t,dispatch:null,action:e,pending:null},i.queue=o,a=G2.bind(null,Ee,o,c,a),o.dispatch=a,i.memoizedState=e,[t,a,!1]}function sy(e){var t=vt();return oy(t,et,e)}function oy(e,t,a){if(t=Of(e,t,iy)[0],e=Ao(dn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var i=Vl(t)}catch(m){throw m===xi?bo:m}else i=t;t=vt();var o=t.queue,c=o.dispatch;return a!==t.memoizedState&&(Ee.flags|=2048,Ei(9,{destroy:void 0},Z2.bind(null,o,a),null)),[i,c,e]}function Z2(e,t){e.action=t}function uy(e){var t=vt(),a=et;if(a!==null)return oy(t,a,e);vt(),t=t.memoizedState,a=vt();var i=a.queue.dispatch;return a.memoizedState=e,[t,i,!1]}function Ei(e,t,a,i){return e={tag:e,create:a,deps:i,inst:t,next:null},t=Ee.updateQueue,t===null&&(t=wo(),Ee.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(i=a.next,a.next=e,e.next=i,t.lastEffect=e),e}function cy(){return vt().memoizedState}function To(e,t,a,i){var o=Xt();Ee.flags|=e,o.memoizedState=Ei(1|t,{destroy:void 0},a,i===void 0?null:i)}function Oo(e,t,a,i){var o=vt();i=i===void 0?null:i;var c=o.memoizedState.inst;et!==null&&i!==null&&Cf(i,et.memoizedState.deps)?o.memoizedState=Ei(t,c,a,i):(Ee.flags|=e,o.memoizedState=Ei(1|t,c,a,i))}function fy(e,t){To(8390656,8,e,t)}function kf(e,t){Oo(2048,8,e,t)}function Y2(e){Ee.flags|=4;var t=Ee.updateQueue;if(t===null)t=wo(),Ee.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function dy(e){var t=vt().memoizedState;return Y2({ref:t,nextImpl:e}),function(){if(($e&2)!==0)throw Error(s(440));return t.impl.apply(void 0,arguments)}}function my(e,t){return Oo(4,2,e,t)}function hy(e,t){return Oo(4,4,e,t)}function py(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function gy(e,t,a){a=a!=null?a.concat([e]):null,Oo(4,4,py.bind(null,t,e),a)}function jf(){}function yy(e,t){var a=vt();t=t===void 0?null:t;var i=a.memoizedState;return t!==null&&Cf(t,i[1])?i[0]:(a.memoizedState=[e,t],e)}function by(e,t){var a=vt();t=t===void 0?null:t;var i=a.memoizedState;if(t!==null&&Cf(t,i[1]))return i[0];if(i=e(),Ar){Sa(!0);try{e()}finally{Sa(!1)}}return a.memoizedState=[i,t],i}function Vf(e,t,a){return a===void 0||(fn&1073741824)!==0&&(ze&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=v0(),Ee.lanes|=e,Yn|=e,a)}function vy(e,t,a,i){return ua(a,t)?a:Ni.current!==null?(e=Vf(e,a,i),ua(e,t)||(Dt=!0),e):(fn&42)===0||(fn&1073741824)!==0&&(ze&261930)===0?(Dt=!0,e.memoizedState=a):(e=v0(),Ee.lanes|=e,Yn|=e,t)}function xy(e,t,a,i,o){var c=X.p;X.p=c!==0&&8>c?c:8;var m=O.T,g={};O.T=g,Lf(e,!1,t,a);try{var _=o(),z=O.S;if(z!==null&&z(g,_),_!==null&&typeof _=="object"&&typeof _.then=="function"){var H=L2(_,i);Bl(e,t,H,pa(e))}else Bl(e,t,i,pa(e))}catch(Z){Bl(e,t,{then:function(){},status:"rejected",reason:Z},pa())}finally{X.p=c,m!==null&&g.types!==null&&(m.types=g.types),O.T=m}}function $2(){}function Bf(e,t,a,i){if(e.tag!==5)throw Error(s(476));var o=Sy(e).queue;xy(e,o,t,se,a===null?$2:function(){return Ny(e),a(i)})}function Sy(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:se,baseState:se,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:dn,lastRenderedState:se},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:dn,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Ny(e){var t=Sy(e);t.next===null&&(t=e.alternate.memoizedState),Bl(e,t.next.queue,{},pa())}function Uf(){return Ut(es)}function _y(){return vt().memoizedState}function Cy(){return vt().memoizedState}function F2(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=pa();e=Un(a);var i=Ln(t,e,a);i!==null&&(ra(i,t,a),Ml(i,t,a)),t={cache:mf()},e.payload=t;return}t=t.return}}function Q2(e,t,a){var i=pa();a={lane:i,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Ro(e)?wy(t,a):(a=tf(e,t,a,i),a!==null&&(ra(a,e,i),Dy(a,t,i)))}function Ey(e,t,a){var i=pa();Bl(e,t,a,i)}function Bl(e,t,a,i){var o={lane:i,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Ro(e))wy(t,o);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var m=t.lastRenderedState,g=c(m,a);if(o.hasEagerState=!0,o.eagerState=g,ua(g,m))return co(e,t,o,0),nt===null&&uo(),!1}catch{}finally{}if(a=tf(e,t,o,i),a!==null)return ra(a,e,i),Dy(a,t,i),!0}return!1}function Lf(e,t,a,i){if(i={lane:2,revertLane:yd(),gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},Ro(e)){if(t)throw Error(s(479))}else t=tf(e,a,i,2),t!==null&&ra(t,e,2)}function Ro(e){var t=e.alternate;return e===Ee||t!==null&&t===Ee}function wy(e,t){_i=Co=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function Dy(e,t,a){if((a&4194048)!==0){var i=t.lanes;i&=e.pendingLanes,a|=i,t.lanes=a,Mp(e,a)}}var Ul={readContext:Ut,use:Do,useCallback:ht,useContext:ht,useEffect:ht,useImperativeHandle:ht,useLayoutEffect:ht,useInsertionEffect:ht,useMemo:ht,useReducer:ht,useRef:ht,useState:ht,useDebugValue:ht,useDeferredValue:ht,useTransition:ht,useSyncExternalStore:ht,useId:ht,useHostTransitionStatus:ht,useFormState:ht,useActionState:ht,useOptimistic:ht,useMemoCache:ht,useCacheRefresh:ht};Ul.useEffectEvent=ht;var Ay={readContext:Ut,use:Do,useCallback:function(e,t){return Xt().memoizedState=[e,t===void 0?null:t],e},useContext:Ut,useEffect:fy,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,To(4194308,4,py.bind(null,t,e),a)},useLayoutEffect:function(e,t){return To(4194308,4,e,t)},useInsertionEffect:function(e,t){To(4,2,e,t)},useMemo:function(e,t){var a=Xt();t=t===void 0?null:t;var i=e();if(Ar){Sa(!0);try{e()}finally{Sa(!1)}}return a.memoizedState=[i,t],i},useReducer:function(e,t,a){var i=Xt();if(a!==void 0){var o=a(t);if(Ar){Sa(!0);try{a(t)}finally{Sa(!1)}}}else o=t;return i.memoizedState=i.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},i.queue=e,e=e.dispatch=Q2.bind(null,Ee,e),[i.memoizedState,e]},useRef:function(e){var t=Xt();return e={current:e},t.memoizedState=e},useState:function(e){e=Mf(e);var t=e.queue,a=Ey.bind(null,Ee,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:jf,useDeferredValue:function(e,t){var a=Xt();return Vf(a,e,t)},useTransition:function(){var e=Mf(!1);return e=xy.bind(null,Ee,e.queue,!0,!1),Xt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var i=Ee,o=Xt();if(je){if(a===void 0)throw Error(s(407));a=a()}else{if(a=t(),nt===null)throw Error(s(349));(ze&127)!==0||Kg(i,t,a)}o.memoizedState=a;var c={value:a,getSnapshot:t};return o.queue=c,fy(Ig.bind(null,i,c,e),[e]),i.flags|=2048,Ei(9,{destroy:void 0},Jg.bind(null,i,c,a,t),null),a},useId:function(){var e=Xt(),t=nt.identifierPrefix;if(je){var a=Qa,i=Fa;a=(i&~(1<<32-jt(i)-1)).toString(32)+a,t="_"+t+"R_"+a,a=Eo++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=H2++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Uf,useFormState:ly,useActionState:ly,useOptimistic:function(e){var t=Xt();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=Lf.bind(null,Ee,!0,a),a.dispatch=t,[e,t]},useMemoCache:Tf,useCacheRefresh:function(){return Xt().memoizedState=F2.bind(null,Ee)},useEffectEvent:function(e){var t=Xt(),a={impl:e};return t.memoizedState=a,function(){if(($e&2)!==0)throw Error(s(440));return a.impl.apply(void 0,arguments)}}},Hf={readContext:Ut,use:Do,useCallback:yy,useContext:Ut,useEffect:kf,useImperativeHandle:gy,useInsertionEffect:my,useLayoutEffect:hy,useMemo:by,useReducer:Ao,useRef:cy,useState:function(){return Ao(dn)},useDebugValue:jf,useDeferredValue:function(e,t){var a=vt();return vy(a,et.memoizedState,e,t)},useTransition:function(){var e=Ao(dn)[0],t=vt().memoizedState;return[typeof e=="boolean"?e:Vl(e),t]},useSyncExternalStore:Xg,useId:_y,useHostTransitionStatus:Uf,useFormState:sy,useActionState:sy,useOptimistic:function(e,t){var a=vt();return ey(a,et,e,t)},useMemoCache:Tf,useCacheRefresh:Cy};Hf.useEffectEvent=dy;var Ty={readContext:Ut,use:Do,useCallback:yy,useContext:Ut,useEffect:kf,useImperativeHandle:gy,useInsertionEffect:my,useLayoutEffect:hy,useMemo:by,useReducer:Rf,useRef:cy,useState:function(){return Rf(dn)},useDebugValue:jf,useDeferredValue:function(e,t){var a=vt();return et===null?Vf(a,e,t):vy(a,et.memoizedState,e,t)},useTransition:function(){var e=Rf(dn)[0],t=vt().memoizedState;return[typeof e=="boolean"?e:Vl(e),t]},useSyncExternalStore:Xg,useId:_y,useHostTransitionStatus:Uf,useFormState:uy,useActionState:uy,useOptimistic:function(e,t){var a=vt();return et!==null?ey(a,et,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:Tf,useCacheRefresh:Cy};Ty.useEffectEvent=dy;function qf(e,t,a,i){t=e.memoizedState,a=a(i,t),a=a==null?t:v({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var Gf={enqueueSetState:function(e,t,a){e=e._reactInternals;var i=pa(),o=Un(i);o.payload=t,a!=null&&(o.callback=a),t=Ln(e,o,i),t!==null&&(ra(t,e,i),Ml(t,e,i))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var i=pa(),o=Un(i);o.tag=1,o.payload=t,a!=null&&(o.callback=a),t=Ln(e,o,i),t!==null&&(ra(t,e,i),Ml(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=pa(),i=Un(a);i.tag=2,t!=null&&(i.callback=t),t=Ln(e,i,a),t!==null&&(ra(t,e,a),Ml(t,e,a))}};function Oy(e,t,a,i,o,c,m){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(i,c,m):t.prototype&&t.prototype.isPureReactComponent?!Cl(a,i)||!Cl(o,c):!0}function Ry(e,t,a,i){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,i),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,i),t.state!==e&&Gf.enqueueReplaceState(t,t.state,null)}function Tr(e,t){var a=t;if("ref"in t){a={};for(var i in t)i!=="ref"&&(a[i]=t[i])}if(e=e.defaultProps){a===t&&(a=v({},a));for(var o in e)a[o]===void 0&&(a[o]=e[o])}return a}function My(e){oo(e)}function zy(e){console.error(e)}function ky(e){oo(e)}function Mo(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(i){setTimeout(function(){throw i})}}function jy(e,t,a){try{var i=e.onCaughtError;i(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(o){setTimeout(function(){throw o})}}function Zf(e,t,a){return a=Un(a),a.tag=3,a.payload={element:null},a.callback=function(){Mo(e,t)},a}function Vy(e){return e=Un(e),e.tag=3,e}function By(e,t,a,i){var o=a.type.getDerivedStateFromError;if(typeof o=="function"){var c=i.value;e.payload=function(){return o(c)},e.callback=function(){jy(t,a,i)}}var m=a.stateNode;m!==null&&typeof m.componentDidCatch=="function"&&(e.callback=function(){jy(t,a,i),typeof o!="function"&&($n===null?$n=new Set([this]):$n.add(this));var g=i.stack;this.componentDidCatch(i.value,{componentStack:g!==null?g:""})})}function X2(e,t,a,i,o){if(a.flags|=32768,i!==null&&typeof i=="object"&&typeof i.then=="function"){if(t=a.alternate,t!==null&&gi(t,a,o,!0),a=fa.current,a!==null){switch(a.tag){case 31:case 13:return Ta===null?Yo():a.alternate===null&&pt===0&&(pt=3),a.flags&=-257,a.flags|=65536,a.lanes=o,i===vo?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([i]):t.add(i),hd(e,i,o)),!1;case 22:return a.flags|=65536,i===vo?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([i])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([i]):a.add(i)),hd(e,i,o)),!1}throw Error(s(435,a.tag))}return hd(e,i,o),Yo(),!1}if(je)return t=fa.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=o,i!==of&&(e=Error(s(422),{cause:i}),Dl(Ea(e,a)))):(i!==of&&(t=Error(s(423),{cause:i}),Dl(Ea(t,a))),e=e.current.alternate,e.flags|=65536,o&=-o,e.lanes|=o,i=Ea(i,a),o=Zf(e.stateNode,i,o),vf(e,o),pt!==4&&(pt=2)),!1;var c=Error(s(520),{cause:i});if(c=Ea(c,a),Fl===null?Fl=[c]:Fl.push(c),pt!==4&&(pt=2),t===null)return!0;i=Ea(i,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=o&-o,a.lanes|=e,e=Zf(a.stateNode,i,e),vf(a,e),!1;case 1:if(t=a.type,c=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&($n===null||!$n.has(c))))return a.flags|=65536,o&=-o,a.lanes|=o,o=Vy(o),By(o,e,a,i),vf(a,o),!1}a=a.return}while(a!==null);return!1}var Yf=Error(s(461)),Dt=!1;function Lt(e,t,a,i){t.child=e===null?qg(t,null,a,i):Dr(t,e.child,a,i)}function Uy(e,t,a,i,o){a=a.render;var c=t.ref;if("ref"in i){var m={};for(var g in i)g!=="ref"&&(m[g]=i[g])}else m=i;return _r(t),i=Ef(e,t,a,m,c,o),g=wf(),e!==null&&!Dt?(Df(e,t,o),mn(e,t,o)):(je&&g&&lf(t),t.flags|=1,Lt(e,t,i,o),t.child)}function Ly(e,t,a,i,o){if(e===null){var c=a.type;return typeof c=="function"&&!af(c)&&c.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=c,Hy(e,t,c,i,o)):(e=mo(a.type,null,i,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,!Pf(e,o)){var m=c.memoizedProps;if(a=a.compare,a=a!==null?a:Cl,a(m,i)&&e.ref===t.ref)return mn(e,t,o)}return t.flags|=1,e=sn(c,i),e.ref=t.ref,e.return=t,t.child=e}function Hy(e,t,a,i,o){if(e!==null){var c=e.memoizedProps;if(Cl(c,i)&&e.ref===t.ref)if(Dt=!1,t.pendingProps=i=c,Pf(e,o))(e.flags&131072)!==0&&(Dt=!0);else return t.lanes=e.lanes,mn(e,t,o)}return $f(e,t,a,i,o)}function qy(e,t,a,i){var o=i.children,c=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.mode==="hidden"){if((t.flags&128)!==0){if(c=c!==null?c.baseLanes|a:a,e!==null){for(i=t.child=e.child,o=0;i!==null;)o=o|i.lanes|i.childLanes,i=i.sibling;i=o&~c}else i=0,t.child=null;return Gy(e,t,c,a,i)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&yo(t,c!==null?c.cachePool:null),c!==null?Yg(t,c):Sf(),$g(t);else return i=t.lanes=536870912,Gy(e,t,c!==null?c.baseLanes|a:a,a,i)}else c!==null?(yo(t,c.cachePool),Yg(t,c),qn(),t.memoizedState=null):(e!==null&&yo(t,null),Sf(),qn());return Lt(e,t,o,a),t.child}function Ll(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Gy(e,t,a,i,o){var c=pf();return c=c===null?null:{parent:Et._currentValue,pool:c},t.memoizedState={baseLanes:a,cachePool:c},e!==null&&yo(t,null),Sf(),$g(t),e!==null&&gi(e,t,i,!0),t.childLanes=o,null}function zo(e,t){return t=jo({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Zy(e,t,a){return Dr(t,e.child,null,a),e=zo(t,t.pendingProps),e.flags|=2,da(t),t.memoizedState=null,e}function K2(e,t,a){var i=t.pendingProps,o=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(je){if(i.mode==="hidden")return e=zo(t,i),t.lanes=536870912,Ll(null,e);if(_f(t),(e=lt)?(e=tb(e,Aa),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:zn!==null?{id:Fa,overflow:Qa}:null,retryLane:536870912,hydrationErrors:null},a=wg(e),a.return=t,t.child=a,Bt=t,lt=null)):e=null,e===null)throw jn(t);return t.lanes=536870912,null}return zo(t,i)}var c=e.memoizedState;if(c!==null){var m=c.dehydrated;if(_f(t),o)if(t.flags&256)t.flags&=-257,t=Zy(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(s(558));else if(Dt||gi(e,t,a,!1),o=(a&e.childLanes)!==0,Dt||o){if(i=nt,i!==null&&(m=zp(i,a),m!==0&&m!==c.retryLane))throw c.retryLane=m,vr(e,m),ra(i,e,m),Yf;Yo(),t=Zy(e,t,a)}else e=c.treeContext,lt=Oa(m.nextSibling),Bt=t,je=!0,kn=null,Aa=!1,e!==null&&Tg(t,e),t=zo(t,i),t.flags|=4096;return t}return e=sn(e.child,{mode:i.mode,children:i.children}),e.ref=t.ref,t.child=e,e.return=t,e}function ko(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(s(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function $f(e,t,a,i,o){return _r(t),a=Ef(e,t,a,i,void 0,o),i=wf(),e!==null&&!Dt?(Df(e,t,o),mn(e,t,o)):(je&&i&&lf(t),t.flags|=1,Lt(e,t,a,o),t.child)}function Yy(e,t,a,i,o,c){return _r(t),t.updateQueue=null,a=Qg(t,i,a,o),Fg(e),i=wf(),e!==null&&!Dt?(Df(e,t,c),mn(e,t,c)):(je&&i&&lf(t),t.flags|=1,Lt(e,t,a,c),t.child)}function $y(e,t,a,i,o){if(_r(t),t.stateNode===null){var c=di,m=a.contextType;typeof m=="object"&&m!==null&&(c=Ut(m)),c=new a(i,c),t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=Gf,t.stateNode=c,c._reactInternals=t,c=t.stateNode,c.props=i,c.state=t.memoizedState,c.refs={},yf(t),m=a.contextType,c.context=typeof m=="object"&&m!==null?Ut(m):di,c.state=t.memoizedState,m=a.getDerivedStateFromProps,typeof m=="function"&&(qf(t,a,m,i),c.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(m=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),m!==c.state&&Gf.enqueueReplaceState(c,c.state,null),kl(t,i,c,o),zl(),c.state=t.memoizedState),typeof c.componentDidMount=="function"&&(t.flags|=4194308),i=!0}else if(e===null){c=t.stateNode;var g=t.memoizedProps,_=Tr(a,g);c.props=_;var z=c.context,H=a.contextType;m=di,typeof H=="object"&&H!==null&&(m=Ut(H));var Z=a.getDerivedStateFromProps;H=typeof Z=="function"||typeof c.getSnapshotBeforeUpdate=="function",g=t.pendingProps!==g,H||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(g||z!==m)&&Ry(t,c,i,m),Bn=!1;var j=t.memoizedState;c.state=j,kl(t,i,c,o),zl(),z=t.memoizedState,g||j!==z||Bn?(typeof Z=="function"&&(qf(t,a,Z,i),z=t.memoizedState),(_=Bn||Oy(t,a,_,i,j,z,m))?(H||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount=="function"&&(t.flags|=4194308)):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=i,t.memoizedState=z),c.props=i,c.state=z,c.context=m,i=_):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),i=!1)}else{c=t.stateNode,bf(e,t),m=t.memoizedProps,H=Tr(a,m),c.props=H,Z=t.pendingProps,j=c.context,z=a.contextType,_=di,typeof z=="object"&&z!==null&&(_=Ut(z)),g=a.getDerivedStateFromProps,(z=typeof g=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(m!==Z||j!==_)&&Ry(t,c,i,_),Bn=!1,j=t.memoizedState,c.state=j,kl(t,i,c,o),zl();var B=t.memoizedState;m!==Z||j!==B||Bn||e!==null&&e.dependencies!==null&&po(e.dependencies)?(typeof g=="function"&&(qf(t,a,g,i),B=t.memoizedState),(H=Bn||Oy(t,a,H,i,j,B,_)||e!==null&&e.dependencies!==null&&po(e.dependencies))?(z||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(i,B,_),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(i,B,_)),typeof c.componentDidUpdate=="function"&&(t.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof c.componentDidUpdate!="function"||m===e.memoizedProps&&j===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||m===e.memoizedProps&&j===e.memoizedState||(t.flags|=1024),t.memoizedProps=i,t.memoizedState=B),c.props=i,c.state=B,c.context=_,i=H):(typeof c.componentDidUpdate!="function"||m===e.memoizedProps&&j===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||m===e.memoizedProps&&j===e.memoizedState||(t.flags|=1024),i=!1)}return c=i,ko(e,t),i=(t.flags&128)!==0,c||i?(c=t.stateNode,a=i&&typeof a.getDerivedStateFromError!="function"?null:c.render(),t.flags|=1,e!==null&&i?(t.child=Dr(t,e.child,null,o),t.child=Dr(t,null,a,o)):Lt(e,t,a,o),t.memoizedState=c.state,e=t.child):e=mn(e,t,o),e}function Fy(e,t,a,i){return Sr(),t.flags|=256,Lt(e,t,a,i),t.child}var Ff={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Qf(e){return{baseLanes:e,cachePool:jg()}}function Xf(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=ha),e}function Qy(e,t,a){var i=t.pendingProps,o=!1,c=(t.flags&128)!==0,m;if((m=c)||(m=e!==null&&e.memoizedState===null?!1:(bt.current&2)!==0),m&&(o=!0,t.flags&=-129),m=(t.flags&32)!==0,t.flags&=-33,e===null){if(je){if(o?Hn(t):qn(),(e=lt)?(e=tb(e,Aa),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:zn!==null?{id:Fa,overflow:Qa}:null,retryLane:536870912,hydrationErrors:null},a=wg(e),a.return=t,t.child=a,Bt=t,lt=null)):e=null,e===null)throw jn(t);return Od(e)?t.lanes=32:t.lanes=536870912,null}var g=i.children;return i=i.fallback,o?(qn(),o=t.mode,g=jo({mode:"hidden",children:g},o),i=xr(i,o,a,null),g.return=t,i.return=t,g.sibling=i,t.child=g,i=t.child,i.memoizedState=Qf(a),i.childLanes=Xf(e,m,a),t.memoizedState=Ff,Ll(null,i)):(Hn(t),Kf(t,g))}var _=e.memoizedState;if(_!==null&&(g=_.dehydrated,g!==null)){if(c)t.flags&256?(Hn(t),t.flags&=-257,t=Jf(e,t,a)):t.memoizedState!==null?(qn(),t.child=e.child,t.flags|=128,t=null):(qn(),g=i.fallback,o=t.mode,i=jo({mode:"visible",children:i.children},o),g=xr(g,o,a,null),g.flags|=2,i.return=t,g.return=t,i.sibling=g,t.child=i,Dr(t,e.child,null,a),i=t.child,i.memoizedState=Qf(a),i.childLanes=Xf(e,m,a),t.memoizedState=Ff,t=Ll(null,i));else if(Hn(t),Od(g)){if(m=g.nextSibling&&g.nextSibling.dataset,m)var z=m.dgst;m=z,i=Error(s(419)),i.stack="",i.digest=m,Dl({value:i,source:null,stack:null}),t=Jf(e,t,a)}else if(Dt||gi(e,t,a,!1),m=(a&e.childLanes)!==0,Dt||m){if(m=nt,m!==null&&(i=zp(m,a),i!==0&&i!==_.retryLane))throw _.retryLane=i,vr(e,i),ra(m,e,i),Yf;Td(g)||Yo(),t=Jf(e,t,a)}else Td(g)?(t.flags|=192,t.child=e.child,t=null):(e=_.treeContext,lt=Oa(g.nextSibling),Bt=t,je=!0,kn=null,Aa=!1,e!==null&&Tg(t,e),t=Kf(t,i.children),t.flags|=4096);return t}return o?(qn(),g=i.fallback,o=t.mode,_=e.child,z=_.sibling,i=sn(_,{mode:"hidden",children:i.children}),i.subtreeFlags=_.subtreeFlags&65011712,z!==null?g=sn(z,g):(g=xr(g,o,a,null),g.flags|=2),g.return=t,i.return=t,i.sibling=g,t.child=i,Ll(null,i),i=t.child,g=e.child.memoizedState,g===null?g=Qf(a):(o=g.cachePool,o!==null?(_=Et._currentValue,o=o.parent!==_?{parent:_,pool:_}:o):o=jg(),g={baseLanes:g.baseLanes|a,cachePool:o}),i.memoizedState=g,i.childLanes=Xf(e,m,a),t.memoizedState=Ff,Ll(e.child,i)):(Hn(t),a=e.child,e=a.sibling,a=sn(a,{mode:"visible",children:i.children}),a.return=t,a.sibling=null,e!==null&&(m=t.deletions,m===null?(t.deletions=[e],t.flags|=16):m.push(e)),t.child=a,t.memoizedState=null,a)}function Kf(e,t){return t=jo({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function jo(e,t){return e=ca(22,e,null,t),e.lanes=0,e}function Jf(e,t,a){return Dr(t,e.child,null,a),e=Kf(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Xy(e,t,a){e.lanes|=t;var i=e.alternate;i!==null&&(i.lanes|=t),ff(e.return,t,a)}function If(e,t,a,i,o,c){var m=e.memoizedState;m===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:i,tail:a,tailMode:o,treeForkCount:c}:(m.isBackwards=t,m.rendering=null,m.renderingStartTime=0,m.last=i,m.tail=a,m.tailMode=o,m.treeForkCount=c)}function Ky(e,t,a){var i=t.pendingProps,o=i.revealOrder,c=i.tail;i=i.children;var m=bt.current,g=(m&2)!==0;if(g?(m=m&1|2,t.flags|=128):m&=1,ne(bt,m),Lt(e,t,i,a),i=je?wl:0,!g&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Xy(e,a,t);else if(e.tag===19)Xy(e,a,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}switch(o){case"forwards":for(a=t.child,o=null;a!==null;)e=a.alternate,e!==null&&_o(e)===null&&(o=a),a=a.sibling;a=o,a===null?(o=t.child,t.child=null):(o=a.sibling,a.sibling=null),If(t,!1,o,a,c,i);break;case"backwards":case"unstable_legacy-backwards":for(a=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&_o(e)===null){t.child=o;break}e=o.sibling,o.sibling=a,a=o,o=e}If(t,!0,a,null,c,i);break;case"together":If(t,!1,null,null,void 0,i);break;default:t.memoizedState=null}return t.child}function mn(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),Yn|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(gi(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(s(153));if(t.child!==null){for(e=t.child,a=sn(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=sn(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function Pf(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&po(e)))}function J2(e,t,a){switch(t.tag){case 3:kt(t,t.stateNode.containerInfo),Vn(t,Et,e.memoizedState.cache),Sr();break;case 27:case 5:Tn(t);break;case 4:kt(t,t.stateNode.containerInfo);break;case 10:Vn(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,_f(t),null;break;case 13:var i=t.memoizedState;if(i!==null)return i.dehydrated!==null?(Hn(t),t.flags|=128,null):(a&t.child.childLanes)!==0?Qy(e,t,a):(Hn(t),e=mn(e,t,a),e!==null?e.sibling:null);Hn(t);break;case 19:var o=(e.flags&128)!==0;if(i=(a&t.childLanes)!==0,i||(gi(e,t,a,!1),i=(a&t.childLanes)!==0),o){if(i)return Ky(e,t,a);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),ne(bt,bt.current),i)break;return null;case 22:return t.lanes=0,qy(e,t,a,t.pendingProps);case 24:Vn(t,Et,e.memoizedState.cache)}return mn(e,t,a)}function Jy(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)Dt=!0;else{if(!Pf(e,a)&&(t.flags&128)===0)return Dt=!1,J2(e,t,a);Dt=(e.flags&131072)!==0}else Dt=!1,je&&(t.flags&1048576)!==0&&Ag(t,wl,t.index);switch(t.lanes=0,t.tag){case 16:e:{var i=t.pendingProps;if(e=Er(t.elementType),t.type=e,typeof e=="function")af(e)?(i=Tr(e,i),t.tag=1,t=$y(null,t,e,i,a)):(t.tag=0,t=$f(null,t,e,i,a));else{if(e!=null){var o=e.$$typeof;if(o===ee){t.tag=11,t=Uy(null,t,e,i,a);break e}else if(o===J){t.tag=14,t=Ly(null,t,e,i,a);break e}}throw t=F(e)||e,Error(s(306,t,""))}}return t;case 0:return $f(e,t,t.type,t.pendingProps,a);case 1:return i=t.type,o=Tr(i,t.pendingProps),$y(e,t,i,o,a);case 3:e:{if(kt(t,t.stateNode.containerInfo),e===null)throw Error(s(387));i=t.pendingProps;var c=t.memoizedState;o=c.element,bf(e,t),kl(t,i,null,a);var m=t.memoizedState;if(i=m.cache,Vn(t,Et,i),i!==c.cache&&df(t,[Et],a,!0),zl(),i=m.element,c.isDehydrated)if(c={element:i,isDehydrated:!1,cache:m.cache},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){t=Fy(e,t,i,a);break e}else if(i!==o){o=Ea(Error(s(424)),t),Dl(o),t=Fy(e,t,i,a);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(lt=Oa(e.firstChild),Bt=t,je=!0,kn=null,Aa=!0,a=qg(t,null,i,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(Sr(),i===o){t=mn(e,t,a);break e}Lt(e,t,i,a)}t=t.child}return t;case 26:return ko(e,t),e===null?(a=sb(t.type,null,t.pendingProps,null))?t.memoizedState=a:je||(a=t.type,e=t.pendingProps,i=Io(De.current).createElement(a),i[Vt]=t,i[Pt]=e,Ht(i,a,e),Rt(i),t.stateNode=i):t.memoizedState=sb(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Tn(t),e===null&&je&&(i=t.stateNode=rb(t.type,t.pendingProps,De.current),Bt=t,Aa=!0,o=lt,Kn(t.type)?(Rd=o,lt=Oa(i.firstChild)):lt=o),Lt(e,t,t.pendingProps.children,a),ko(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&je&&((o=i=lt)&&(i=wC(i,t.type,t.pendingProps,Aa),i!==null?(t.stateNode=i,Bt=t,lt=Oa(i.firstChild),Aa=!1,o=!0):o=!1),o||jn(t)),Tn(t),o=t.type,c=t.pendingProps,m=e!==null?e.memoizedProps:null,i=c.children,wd(o,c)?i=null:m!==null&&wd(o,m)&&(t.flags|=32),t.memoizedState!==null&&(o=Ef(e,t,q2,null,null,a),es._currentValue=o),ko(e,t),Lt(e,t,i,a),t.child;case 6:return e===null&&je&&((e=a=lt)&&(a=DC(a,t.pendingProps,Aa),a!==null?(t.stateNode=a,Bt=t,lt=null,e=!0):e=!1),e||jn(t)),null;case 13:return Qy(e,t,a);case 4:return kt(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=Dr(t,null,i,a):Lt(e,t,i,a),t.child;case 11:return Uy(e,t,t.type,t.pendingProps,a);case 7:return Lt(e,t,t.pendingProps,a),t.child;case 8:return Lt(e,t,t.pendingProps.children,a),t.child;case 12:return Lt(e,t,t.pendingProps.children,a),t.child;case 10:return i=t.pendingProps,Vn(t,t.type,i.value),Lt(e,t,i.children,a),t.child;case 9:return o=t.type._context,i=t.pendingProps.children,_r(t),o=Ut(o),i=i(o),t.flags|=1,Lt(e,t,i,a),t.child;case 14:return Ly(e,t,t.type,t.pendingProps,a);case 15:return Hy(e,t,t.type,t.pendingProps,a);case 19:return Ky(e,t,a);case 31:return K2(e,t,a);case 22:return qy(e,t,a,t.pendingProps);case 24:return _r(t),i=Ut(Et),e===null?(o=pf(),o===null&&(o=nt,c=mf(),o.pooledCache=c,c.refCount++,c!==null&&(o.pooledCacheLanes|=a),o=c),t.memoizedState={parent:i,cache:o},yf(t),Vn(t,Et,o)):((e.lanes&a)!==0&&(bf(e,t),kl(t,null,null,a),zl()),o=e.memoizedState,c=t.memoizedState,o.parent!==i?(o={parent:i,cache:i},t.memoizedState=o,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=o),Vn(t,Et,i)):(i=c.cache,Vn(t,Et,i),i!==o.cache&&df(t,[Et],a,!0))),Lt(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}function hn(e){e.flags|=4}function Wf(e,t,a,i,o){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(o&335544128)===o)if(e.stateNode.complete)e.flags|=8192;else if(_0())e.flags|=8192;else throw wr=vo,gf}else e.flags&=-16777217}function Iy(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!db(t))if(_0())e.flags|=8192;else throw wr=vo,gf}function Vo(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Op():536870912,e.lanes|=t,Ti|=t)}function Hl(e,t){if(!je)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var i=null;a!==null;)a.alternate!==null&&(i=a),a=a.sibling;i===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:i.sibling=null}}function st(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,i=0;if(t)for(var o=e.child;o!==null;)a|=o.lanes|o.childLanes,i|=o.subtreeFlags&65011712,i|=o.flags&65011712,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)a|=o.lanes|o.childLanes,i|=o.subtreeFlags,i|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=i,e.childLanes=a,t}function I2(e,t,a){var i=t.pendingProps;switch(sf(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return st(t),null;case 1:return st(t),null;case 3:return a=t.stateNode,i=null,e!==null&&(i=e.memoizedState.cache),t.memoizedState.cache!==i&&(t.flags|=2048),cn(Et),it(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(pi(t)?hn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,uf())),st(t),null;case 26:var o=t.type,c=t.memoizedState;return e===null?(hn(t),c!==null?(st(t),Iy(t,c)):(st(t),Wf(t,o,null,i,a))):c?c!==e.memoizedState?(hn(t),st(t),Iy(t,c)):(st(t),t.flags&=-16777217):(e=e.memoizedProps,e!==i&&hn(t),st(t),Wf(t,o,e,i,a)),null;case 27:if(On(t),a=De.current,o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&hn(t);else{if(!i){if(t.stateNode===null)throw Error(s(166));return st(t),null}e=ue.current,pi(t)?Og(t):(e=rb(o,i,a),t.stateNode=e,hn(t))}return st(t),null;case 5:if(On(t),o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&hn(t);else{if(!i){if(t.stateNode===null)throw Error(s(166));return st(t),null}if(c=ue.current,pi(t))Og(t);else{var m=Io(De.current);switch(c){case 1:c=m.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:c=m.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":c=m.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":c=m.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":c=m.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof i.is=="string"?m.createElement("select",{is:i.is}):m.createElement("select"),i.multiple?c.multiple=!0:i.size&&(c.size=i.size);break;default:c=typeof i.is=="string"?m.createElement(o,{is:i.is}):m.createElement(o)}}c[Vt]=t,c[Pt]=i;e:for(m=t.child;m!==null;){if(m.tag===5||m.tag===6)c.appendChild(m.stateNode);else if(m.tag!==4&&m.tag!==27&&m.child!==null){m.child.return=m,m=m.child;continue}if(m===t)break e;for(;m.sibling===null;){if(m.return===null||m.return===t)break e;m=m.return}m.sibling.return=m.return,m=m.sibling}t.stateNode=c;e:switch(Ht(c,o,i),o){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}i&&hn(t)}}return st(t),Wf(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==i&&hn(t);else{if(typeof i!="string"&&t.stateNode===null)throw Error(s(166));if(e=De.current,pi(t)){if(e=t.stateNode,a=t.memoizedProps,i=null,o=Bt,o!==null)switch(o.tag){case 27:case 5:i=o.memoizedProps}e[Vt]=t,e=!!(e.nodeValue===a||i!==null&&i.suppressHydrationWarning===!0||Q0(e.nodeValue,a)),e||jn(t,!0)}else e=Io(e).createTextNode(i),e[Vt]=t,t.stateNode=e}return st(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(i=pi(t),a!==null){if(e===null){if(!i)throw Error(s(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(557));e[Vt]=t}else Sr(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;st(t),e=!1}else a=uf(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(da(t),t):(da(t),null);if((t.flags&128)!==0)throw Error(s(558))}return st(t),null;case 13:if(i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(o=pi(t),i!==null&&i.dehydrated!==null){if(e===null){if(!o)throw Error(s(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(s(317));o[Vt]=t}else Sr(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;st(t),o=!1}else o=uf(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return t.flags&256?(da(t),t):(da(t),null)}return da(t),(t.flags&128)!==0?(t.lanes=a,t):(a=i!==null,e=e!==null&&e.memoizedState!==null,a&&(i=t.child,o=null,i.alternate!==null&&i.alternate.memoizedState!==null&&i.alternate.memoizedState.cachePool!==null&&(o=i.alternate.memoizedState.cachePool.pool),c=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(c=i.memoizedState.cachePool.pool),c!==o&&(i.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),Vo(t,t.updateQueue),st(t),null);case 4:return it(),e===null&&Sd(t.stateNode.containerInfo),st(t),null;case 10:return cn(t.type),st(t),null;case 19:if(Y(bt),i=t.memoizedState,i===null)return st(t),null;if(o=(t.flags&128)!==0,c=i.rendering,c===null)if(o)Hl(i,!1);else{if(pt!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=_o(e),c!==null){for(t.flags|=128,Hl(i,!1),e=c.updateQueue,t.updateQueue=e,Vo(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)Eg(a,e),a=a.sibling;return ne(bt,bt.current&1|2),je&&on(t,i.treeForkCount),t.child}e=e.sibling}i.tail!==null&&k()>qo&&(t.flags|=128,o=!0,Hl(i,!1),t.lanes=4194304)}else{if(!o)if(e=_o(c),e!==null){if(t.flags|=128,o=!0,e=e.updateQueue,t.updateQueue=e,Vo(t,e),Hl(i,!0),i.tail===null&&i.tailMode==="hidden"&&!c.alternate&&!je)return st(t),null}else 2*k()-i.renderingStartTime>qo&&a!==536870912&&(t.flags|=128,o=!0,Hl(i,!1),t.lanes=4194304);i.isBackwards?(c.sibling=t.child,t.child=c):(e=i.last,e!==null?e.sibling=c:t.child=c,i.last=c)}return i.tail!==null?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=k(),e.sibling=null,a=bt.current,ne(bt,o?a&1|2:a&1),je&&on(t,i.treeForkCount),e):(st(t),null);case 22:case 23:return da(t),Nf(),i=t.memoizedState!==null,e!==null?e.memoizedState!==null!==i&&(t.flags|=8192):i&&(t.flags|=8192),i?(a&536870912)!==0&&(t.flags&128)===0&&(st(t),t.subtreeFlags&6&&(t.flags|=8192)):st(t),a=t.updateQueue,a!==null&&Vo(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),i=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),i!==a&&(t.flags|=2048),e!==null&&Y(Cr),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),cn(Et),st(t),null;case 25:return null;case 30:return null}throw Error(s(156,t.tag))}function P2(e,t){switch(sf(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return cn(Et),it(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return On(t),null;case 31:if(t.memoizedState!==null){if(da(t),t.alternate===null)throw Error(s(340));Sr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(da(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));Sr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Y(bt),null;case 4:return it(),null;case 10:return cn(t.type),null;case 22:case 23:return da(t),Nf(),e!==null&&Y(Cr),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return cn(Et),null;case 25:return null;default:return null}}function Py(e,t){switch(sf(t),t.tag){case 3:cn(Et),it();break;case 26:case 27:case 5:On(t);break;case 4:it();break;case 31:t.memoizedState!==null&&da(t);break;case 13:da(t);break;case 19:Y(bt);break;case 10:cn(t.type);break;case 22:case 23:da(t),Nf(),e!==null&&Y(Cr);break;case 24:cn(Et)}}function ql(e,t){try{var a=t.updateQueue,i=a!==null?a.lastEffect:null;if(i!==null){var o=i.next;a=o;do{if((a.tag&e)===e){i=void 0;var c=a.create,m=a.inst;i=c(),m.destroy=i}a=a.next}while(a!==o)}}catch(g){Je(t,t.return,g)}}function Gn(e,t,a){try{var i=t.updateQueue,o=i!==null?i.lastEffect:null;if(o!==null){var c=o.next;i=c;do{if((i.tag&e)===e){var m=i.inst,g=m.destroy;if(g!==void 0){m.destroy=void 0,o=t;var _=a,z=g;try{z()}catch(H){Je(o,_,H)}}}i=i.next}while(i!==c)}}catch(H){Je(t,t.return,H)}}function Wy(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{Zg(t,a)}catch(i){Je(e,e.return,i)}}}function e0(e,t,a){a.props=Tr(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(i){Je(e,t,i)}}function Gl(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var i=e.stateNode;break;case 30:i=e.stateNode;break;default:i=e.stateNode}typeof a=="function"?e.refCleanup=a(i):a.current=i}}catch(o){Je(e,t,o)}}function Xa(e,t){var a=e.ref,i=e.refCleanup;if(a!==null)if(typeof i=="function")try{i()}catch(o){Je(e,t,o)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(o){Je(e,t,o)}else a.current=null}function t0(e){var t=e.type,a=e.memoizedProps,i=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&i.focus();break e;case"img":a.src?i.src=a.src:a.srcSet&&(i.srcset=a.srcSet)}}catch(o){Je(e,e.return,o)}}function ed(e,t,a){try{var i=e.stateNode;xC(i,e.type,a,t),i[Pt]=t}catch(o){Je(e,e.return,o)}}function a0(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Kn(e.type)||e.tag===4}function td(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||a0(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.tag===27&&Kn(e.type)||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 ad(e,t,a){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=rn));else if(i!==4&&(i===27&&Kn(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(ad(e,t,a),e=e.sibling;e!==null;)ad(e,t,a),e=e.sibling}function Bo(e,t,a){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(i!==4&&(i===27&&Kn(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(Bo(e,t,a),e=e.sibling;e!==null;)Bo(e,t,a),e=e.sibling}function n0(e){var t=e.stateNode,a=e.memoizedProps;try{for(var i=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);Ht(t,i,a),t[Vt]=e,t[Pt]=a}catch(c){Je(e,e.return,c)}}var pn=!1,At=!1,nd=!1,r0=typeof WeakSet=="function"?WeakSet:Set,Mt=null;function W2(e,t){if(e=e.containerInfo,Cd=ru,e=gg(e),Kc(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var i=a.getSelection&&a.getSelection();if(i&&i.rangeCount!==0){a=i.anchorNode;var o=i.anchorOffset,c=i.focusNode;i=i.focusOffset;try{a.nodeType,c.nodeType}catch{a=null;break e}var m=0,g=-1,_=-1,z=0,H=0,Z=e,j=null;t:for(;;){for(var B;Z!==a||o!==0&&Z.nodeType!==3||(g=m+o),Z!==c||i!==0&&Z.nodeType!==3||(_=m+i),Z.nodeType===3&&(m+=Z.nodeValue.length),(B=Z.firstChild)!==null;)j=Z,Z=B;for(;;){if(Z===e)break t;if(j===a&&++z===o&&(g=m),j===c&&++H===i&&(_=m),(B=Z.nextSibling)!==null)break;Z=j,j=Z.parentNode}Z=B}a=g===-1||_===-1?null:{start:g,end:_}}else a=null}a=a||{start:0,end:0}}else a=null;for(Ed={focusedElem:e,selectionRange:a},ru=!1,Mt=t;Mt!==null;)if(t=Mt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Mt=e;else for(;Mt!==null;){switch(t=Mt,c=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(a=0;a<e.length;a++)o=e[a],o.ref.impl=o.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&c!==null){e=void 0,a=t,o=c.memoizedProps,c=c.memoizedState,i=a.stateNode;try{var ce=Tr(a.type,o);e=i.getSnapshotBeforeUpdate(ce,c),i.__reactInternalSnapshotBeforeUpdate=e}catch(ye){Je(a,a.return,ye)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)Ad(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Ad(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(s(163))}if(e=t.sibling,e!==null){e.return=t.return,Mt=e;break}Mt=t.return}}function i0(e,t,a){var i=a.flags;switch(a.tag){case 0:case 11:case 15:yn(e,a),i&4&&ql(5,a);break;case 1:if(yn(e,a),i&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(m){Je(a,a.return,m)}else{var o=Tr(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(m){Je(a,a.return,m)}}i&64&&Wy(a),i&512&&Gl(a,a.return);break;case 3:if(yn(e,a),i&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{Zg(e,t)}catch(m){Je(a,a.return,m)}}break;case 27:t===null&&i&4&&n0(a);case 26:case 5:yn(e,a),t===null&&i&4&&t0(a),i&512&&Gl(a,a.return);break;case 12:yn(e,a);break;case 31:yn(e,a),i&4&&o0(e,a);break;case 13:yn(e,a),i&4&&u0(e,a),i&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=oC.bind(null,a),AC(e,a))));break;case 22:if(i=a.memoizedState!==null||pn,!i){t=t!==null&&t.memoizedState!==null||At,o=pn;var c=At;pn=i,(At=t)&&!c?bn(e,a,(a.subtreeFlags&8772)!==0):yn(e,a),pn=o,At=c}break;case 30:break;default:yn(e,a)}}function l0(e){var t=e.alternate;t!==null&&(e.alternate=null,l0(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Mc(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var ct=null,ea=!1;function gn(e,t,a){for(a=a.child;a!==null;)s0(e,t,a),a=a.sibling}function s0(e,t,a){if(Qt&&typeof Qt.onCommitFiberUnmount=="function")try{Qt.onCommitFiberUnmount(Ct,a)}catch{}switch(a.tag){case 26:At||Xa(a,t),gn(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:At||Xa(a,t);var i=ct,o=ea;Kn(a.type)&&(ct=a.stateNode,ea=!1),gn(e,t,a),Il(a.stateNode),ct=i,ea=o;break;case 5:At||Xa(a,t);case 6:if(i=ct,o=ea,ct=null,gn(e,t,a),ct=i,ea=o,ct!==null)if(ea)try{(ct.nodeType===9?ct.body:ct.nodeName==="HTML"?ct.ownerDocument.body:ct).removeChild(a.stateNode)}catch(c){Je(a,t,c)}else try{ct.removeChild(a.stateNode)}catch(c){Je(a,t,c)}break;case 18:ct!==null&&(ea?(e=ct,W0(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Bi(e)):W0(ct,a.stateNode));break;case 4:i=ct,o=ea,ct=a.stateNode.containerInfo,ea=!0,gn(e,t,a),ct=i,ea=o;break;case 0:case 11:case 14:case 15:Gn(2,a,t),At||Gn(4,a,t),gn(e,t,a);break;case 1:At||(Xa(a,t),i=a.stateNode,typeof i.componentWillUnmount=="function"&&e0(a,t,i)),gn(e,t,a);break;case 21:gn(e,t,a);break;case 22:At=(i=At)||a.memoizedState!==null,gn(e,t,a),At=i;break;default:gn(e,t,a)}}function o0(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Bi(e)}catch(a){Je(t,t.return,a)}}}function u0(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Bi(e)}catch(a){Je(t,t.return,a)}}function eC(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new r0),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new r0),t;default:throw Error(s(435,e.tag))}}function Uo(e,t){var a=eC(e);t.forEach(function(i){if(!a.has(i)){a.add(i);var o=uC.bind(null,e,i);i.then(o,o)}})}function ta(e,t){var a=t.deletions;if(a!==null)for(var i=0;i<a.length;i++){var o=a[i],c=e,m=t,g=m;e:for(;g!==null;){switch(g.tag){case 27:if(Kn(g.type)){ct=g.stateNode,ea=!1;break e}break;case 5:ct=g.stateNode,ea=!1;break e;case 3:case 4:ct=g.stateNode.containerInfo,ea=!0;break e}g=g.return}if(ct===null)throw Error(s(160));s0(c,m,o),ct=null,ea=!1,c=o.alternate,c!==null&&(c.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)c0(t,e),t=t.sibling}var Ba=null;function c0(e,t){var a=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:ta(t,e),aa(e),i&4&&(Gn(3,e,e.return),ql(3,e),Gn(5,e,e.return));break;case 1:ta(t,e),aa(e),i&512&&(At||a===null||Xa(a,a.return)),i&64&&pn&&(e=e.updateQueue,e!==null&&(i=e.callbacks,i!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?i:a.concat(i))));break;case 26:var o=Ba;if(ta(t,e),aa(e),i&512&&(At||a===null||Xa(a,a.return)),i&4){var c=a!==null?a.memoizedState:null;if(i=e.memoizedState,a===null)if(i===null)if(e.stateNode===null){e:{i=e.type,a=e.memoizedProps,o=o.ownerDocument||o;t:switch(i){case"title":c=o.getElementsByTagName("title")[0],(!c||c[pl]||c[Vt]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=o.createElement(i),o.head.insertBefore(c,o.querySelector("head > title"))),Ht(c,i,a),c[Vt]=e,Rt(c),i=c;break e;case"link":var m=cb("link","href",o).get(i+(a.href||""));if(m){for(var g=0;g<m.length;g++)if(c=m[g],c.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&c.getAttribute("rel")===(a.rel==null?null:a.rel)&&c.getAttribute("title")===(a.title==null?null:a.title)&&c.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){m.splice(g,1);break t}}c=o.createElement(i),Ht(c,i,a),o.head.appendChild(c);break;case"meta":if(m=cb("meta","content",o).get(i+(a.content||""))){for(g=0;g<m.length;g++)if(c=m[g],c.getAttribute("content")===(a.content==null?null:""+a.content)&&c.getAttribute("name")===(a.name==null?null:a.name)&&c.getAttribute("property")===(a.property==null?null:a.property)&&c.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&c.getAttribute("charset")===(a.charSet==null?null:a.charSet)){m.splice(g,1);break t}}c=o.createElement(i),Ht(c,i,a),o.head.appendChild(c);break;default:throw Error(s(468,i))}c[Vt]=e,Rt(c),i=c}e.stateNode=i}else fb(o,e.type,e.stateNode);else e.stateNode=ub(o,i,e.memoizedProps);else c!==i?(c===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):c.count--,i===null?fb(o,e.type,e.stateNode):ub(o,i,e.memoizedProps)):i===null&&e.stateNode!==null&&ed(e,e.memoizedProps,a.memoizedProps)}break;case 27:ta(t,e),aa(e),i&512&&(At||a===null||Xa(a,a.return)),a!==null&&i&4&&ed(e,e.memoizedProps,a.memoizedProps);break;case 5:if(ta(t,e),aa(e),i&512&&(At||a===null||Xa(a,a.return)),e.flags&32){o=e.stateNode;try{ii(o,"")}catch(ce){Je(e,e.return,ce)}}i&4&&e.stateNode!=null&&(o=e.memoizedProps,ed(e,o,a!==null?a.memoizedProps:o)),i&1024&&(nd=!0);break;case 6:if(ta(t,e),aa(e),i&4){if(e.stateNode===null)throw Error(s(162));i=e.memoizedProps,a=e.stateNode;try{a.nodeValue=i}catch(ce){Je(e,e.return,ce)}}break;case 3:if(eu=null,o=Ba,Ba=Po(t.containerInfo),ta(t,e),Ba=o,aa(e),i&4&&a!==null&&a.memoizedState.isDehydrated)try{Bi(t.containerInfo)}catch(ce){Je(e,e.return,ce)}nd&&(nd=!1,f0(e));break;case 4:i=Ba,Ba=Po(e.stateNode.containerInfo),ta(t,e),aa(e),Ba=i;break;case 12:ta(t,e),aa(e);break;case 31:ta(t,e),aa(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Uo(e,i)));break;case 13:ta(t,e),aa(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(Ho=k()),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Uo(e,i)));break;case 22:o=e.memoizedState!==null;var _=a!==null&&a.memoizedState!==null,z=pn,H=At;if(pn=z||o,At=H||_,ta(t,e),At=H,pn=z,aa(e),i&8192)e:for(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,o&&(a===null||_||pn||At||Or(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){_=a=t;try{if(c=_.stateNode,o)m=c.style,typeof m.setProperty=="function"?m.setProperty("display","none","important"):m.display="none";else{g=_.stateNode;var Z=_.memoizedProps.style,j=Z!=null&&Z.hasOwnProperty("display")?Z.display:null;g.style.display=j==null||typeof j=="boolean"?"":(""+j).trim()}}catch(ce){Je(_,_.return,ce)}}}else if(t.tag===6){if(a===null){_=t;try{_.stateNode.nodeValue=o?"":_.memoizedProps}catch(ce){Je(_,_.return,ce)}}}else if(t.tag===18){if(a===null){_=t;try{var B=_.stateNode;o?eb(B,!0):eb(_.stateNode,!1)}catch(ce){Je(_,_.return,ce)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;a===t&&(a=null),t=t.return}a===t&&(a=null),t.sibling.return=t.return,t=t.sibling}i&4&&(i=e.updateQueue,i!==null&&(a=i.retryQueue,a!==null&&(i.retryQueue=null,Uo(e,a))));break;case 19:ta(t,e),aa(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Uo(e,i)));break;case 30:break;case 21:break;default:ta(t,e),aa(e)}}function aa(e){var t=e.flags;if(t&2){try{for(var a,i=e.return;i!==null;){if(a0(i)){a=i;break}i=i.return}if(a==null)throw Error(s(160));switch(a.tag){case 27:var o=a.stateNode,c=td(e);Bo(e,c,o);break;case 5:var m=a.stateNode;a.flags&32&&(ii(m,""),a.flags&=-33);var g=td(e);Bo(e,g,m);break;case 3:case 4:var _=a.stateNode.containerInfo,z=td(e);ad(e,z,_);break;default:throw Error(s(161))}}catch(H){Je(e,e.return,H)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function f0(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;f0(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function yn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)i0(e,t.alternate,t),t=t.sibling}function Or(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Gn(4,t,t.return),Or(t);break;case 1:Xa(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&e0(t,t.return,a),Or(t);break;case 27:Il(t.stateNode);case 26:case 5:Xa(t,t.return),Or(t);break;case 22:t.memoizedState===null&&Or(t);break;case 30:Or(t);break;default:Or(t)}e=e.sibling}}function bn(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var i=t.alternate,o=e,c=t,m=c.flags;switch(c.tag){case 0:case 11:case 15:bn(o,c,a),ql(4,c);break;case 1:if(bn(o,c,a),i=c,o=i.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(z){Je(i,i.return,z)}if(i=c,o=i.updateQueue,o!==null){var g=i.stateNode;try{var _=o.shared.hiddenCallbacks;if(_!==null)for(o.shared.hiddenCallbacks=null,o=0;o<_.length;o++)Gg(_[o],g)}catch(z){Je(i,i.return,z)}}a&&m&64&&Wy(c),Gl(c,c.return);break;case 27:n0(c);case 26:case 5:bn(o,c,a),a&&i===null&&m&4&&t0(c),Gl(c,c.return);break;case 12:bn(o,c,a);break;case 31:bn(o,c,a),a&&m&4&&o0(o,c);break;case 13:bn(o,c,a),a&&m&4&&u0(o,c);break;case 22:c.memoizedState===null&&bn(o,c,a),Gl(c,c.return);break;case 30:break;default:bn(o,c,a)}t=t.sibling}}function rd(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&Al(a))}function id(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Al(e))}function Ua(e,t,a,i){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)d0(e,t,a,i),t=t.sibling}function d0(e,t,a,i){var o=t.flags;switch(t.tag){case 0:case 11:case 15:Ua(e,t,a,i),o&2048&&ql(9,t);break;case 1:Ua(e,t,a,i);break;case 3:Ua(e,t,a,i),o&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Al(e)));break;case 12:if(o&2048){Ua(e,t,a,i),e=t.stateNode;try{var c=t.memoizedProps,m=c.id,g=c.onPostCommit;typeof g=="function"&&g(m,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(_){Je(t,t.return,_)}}else Ua(e,t,a,i);break;case 31:Ua(e,t,a,i);break;case 13:Ua(e,t,a,i);break;case 23:break;case 22:c=t.stateNode,m=t.alternate,t.memoizedState!==null?c._visibility&2?Ua(e,t,a,i):Zl(e,t):c._visibility&2?Ua(e,t,a,i):(c._visibility|=2,wi(e,t,a,i,(t.subtreeFlags&10256)!==0||!1)),o&2048&&rd(m,t);break;case 24:Ua(e,t,a,i),o&2048&&id(t.alternate,t);break;default:Ua(e,t,a,i)}}function wi(e,t,a,i,o){for(o=o&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var c=e,m=t,g=a,_=i,z=m.flags;switch(m.tag){case 0:case 11:case 15:wi(c,m,g,_,o),ql(8,m);break;case 23:break;case 22:var H=m.stateNode;m.memoizedState!==null?H._visibility&2?wi(c,m,g,_,o):Zl(c,m):(H._visibility|=2,wi(c,m,g,_,o)),o&&z&2048&&rd(m.alternate,m);break;case 24:wi(c,m,g,_,o),o&&z&2048&&id(m.alternate,m);break;default:wi(c,m,g,_,o)}t=t.sibling}}function Zl(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,i=t,o=i.flags;switch(i.tag){case 22:Zl(a,i),o&2048&&rd(i.alternate,i);break;case 24:Zl(a,i),o&2048&&id(i.alternate,i);break;default:Zl(a,i)}t=t.sibling}}var Yl=8192;function Di(e,t,a){if(e.subtreeFlags&Yl)for(e=e.child;e!==null;)m0(e,t,a),e=e.sibling}function m0(e,t,a){switch(e.tag){case 26:Di(e,t,a),e.flags&Yl&&e.memoizedState!==null&&HC(a,Ba,e.memoizedState,e.memoizedProps);break;case 5:Di(e,t,a);break;case 3:case 4:var i=Ba;Ba=Po(e.stateNode.containerInfo),Di(e,t,a),Ba=i;break;case 22:e.memoizedState===null&&(i=e.alternate,i!==null&&i.memoizedState!==null?(i=Yl,Yl=16777216,Di(e,t,a),Yl=i):Di(e,t,a));break;default:Di(e,t,a)}}function h0(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function $l(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var i=t[a];Mt=i,g0(i,e)}h0(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)p0(e),e=e.sibling}function p0(e){switch(e.tag){case 0:case 11:case 15:$l(e),e.flags&2048&&Gn(9,e,e.return);break;case 3:$l(e);break;case 12:$l(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Lo(e)):$l(e);break;default:$l(e)}}function Lo(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var i=t[a];Mt=i,g0(i,e)}h0(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Gn(8,t,t.return),Lo(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,Lo(t));break;default:Lo(t)}e=e.sibling}}function g0(e,t){for(;Mt!==null;){var a=Mt;switch(a.tag){case 0:case 11:case 15:Gn(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var i=a.memoizedState.cachePool.pool;i!=null&&i.refCount++}break;case 24:Al(a.memoizedState.cache)}if(i=a.child,i!==null)i.return=a,Mt=i;else e:for(a=e;Mt!==null;){i=Mt;var o=i.sibling,c=i.return;if(l0(i),i===a){Mt=null;break e}if(o!==null){o.return=c,Mt=o;break e}Mt=c}}}var tC={getCacheForType:function(e){var t=Ut(Et),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return Ut(Et).controller.signal}},aC=typeof WeakMap=="function"?WeakMap:Map,$e=0,nt=null,Oe=null,ze=0,Ke=0,ma=null,Zn=!1,Ai=!1,ld=!1,vn=0,pt=0,Yn=0,Rr=0,sd=0,ha=0,Ti=0,Fl=null,na=null,od=!1,Ho=0,y0=0,qo=1/0,Go=null,$n=null,Ot=0,Fn=null,Oi=null,xn=0,ud=0,cd=null,b0=null,Ql=0,fd=null;function pa(){return($e&2)!==0&&ze!==0?ze&-ze:O.T!==null?yd():kp()}function v0(){if(ha===0)if((ze&536870912)===0||je){var e=Ks;Ks<<=1,(Ks&3932160)===0&&(Ks=262144),ha=e}else ha=536870912;return e=fa.current,e!==null&&(e.flags|=32),ha}function ra(e,t,a){(e===nt&&(Ke===2||Ke===9)||e.cancelPendingCommit!==null)&&(Ri(e,0),Qn(e,ze,ha,!1)),hl(e,a),(($e&2)===0||e!==nt)&&(e===nt&&(($e&2)===0&&(Rr|=a),pt===4&&Qn(e,ze,ha,!1)),Ka(e))}function x0(e,t,a){if(($e&6)!==0)throw Error(s(327));var i=!a&&(t&127)===0&&(t&e.expiredLanes)===0||ml(e,t),o=i?iC(e,t):md(e,t,!0),c=i;do{if(o===0){Ai&&!i&&Qn(e,t,0,!1);break}else{if(a=e.current.alternate,c&&!nC(a)){o=md(e,t,!1),c=!1;continue}if(o===2){if(c=t,e.errorRecoveryDisabledLanes&c)var m=0;else m=e.pendingLanes&-536870913,m=m!==0?m:m&536870912?536870912:0;if(m!==0){t=m;e:{var g=e;o=Fl;var _=g.current.memoizedState.isDehydrated;if(_&&(Ri(g,m).flags|=256),m=md(g,m,!1),m!==2){if(ld&&!_){g.errorRecoveryDisabledLanes|=c,Rr|=c,o=4;break e}c=na,na=o,c!==null&&(na===null?na=c:na.push.apply(na,c))}o=m}if(c=!1,o!==2)continue}}if(o===1){Ri(e,0),Qn(e,t,0,!0);break}e:{switch(i=e,c=o,c){case 0:case 1:throw Error(s(345));case 4:if((t&4194048)!==t)break;case 6:Qn(i,t,ha,!Zn);break e;case 2:na=null;break;case 3:case 5:break;default:throw Error(s(329))}if((t&62914560)===t&&(o=Ho+300-k(),10<o)){if(Qn(i,t,ha,!Zn),Is(i,0,!0)!==0)break e;xn=t,i.timeoutHandle=I0(S0.bind(null,i,a,na,Go,od,t,ha,Rr,Ti,Zn,c,"Throttled",-0,0),o);break e}S0(i,a,na,Go,od,t,ha,Rr,Ti,Zn,c,null,-0,0)}}break}while(!0);Ka(e)}function S0(e,t,a,i,o,c,m,g,_,z,H,Z,j,B){if(e.timeoutHandle=-1,Z=t.subtreeFlags,Z&8192||(Z&16785408)===16785408){Z={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:rn},m0(t,c,Z);var ce=(c&62914560)===c?Ho-k():(c&4194048)===c?y0-k():0;if(ce=qC(Z,ce),ce!==null){xn=c,e.cancelPendingCommit=ce(T0.bind(null,e,t,c,a,i,o,m,g,_,H,Z,null,j,B)),Qn(e,c,m,!z);return}}T0(e,t,c,a,i,o,m,g,_)}function nC(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var i=0;i<a.length;i++){var o=a[i],c=o.getSnapshot;o=o.value;try{if(!ua(c(),o))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Qn(e,t,a,i){t&=~sd,t&=~Rr,e.suspendedLanes|=t,e.pingedLanes&=~t,i&&(e.warmLanes|=t),i=e.expirationTimes;for(var o=t;0<o;){var c=31-jt(o),m=1<<c;i[c]=-1,o&=~m}a!==0&&Rp(e,a,t)}function Zo(){return($e&6)===0?(Xl(0),!1):!0}function dd(){if(Oe!==null){if(Ke===0)var e=Oe.return;else e=Oe,un=Nr=null,Af(e),Si=null,Ol=0,e=Oe;for(;e!==null;)Py(e.alternate,e),e=e.return;Oe=null}}function Ri(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,_C(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),xn=0,dd(),nt=e,Oe=a=sn(e.current,null),ze=t,Ke=0,ma=null,Zn=!1,Ai=ml(e,t),ld=!1,Ti=ha=sd=Rr=Yn=pt=0,na=Fl=null,od=!1,(t&8)!==0&&(t|=t&32);var i=e.entangledLanes;if(i!==0)for(e=e.entanglements,i&=t;0<i;){var o=31-jt(i),c=1<<o;t|=e[o],i&=~c}return vn=t,uo(),a}function N0(e,t){Ee=null,O.H=Ul,t===xi||t===bo?(t=Ug(),Ke=3):t===gf?(t=Ug(),Ke=4):Ke=t===Yf?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,ma=t,Oe===null&&(pt=1,Mo(e,Ea(t,e.current)))}function _0(){var e=fa.current;return e===null?!0:(ze&4194048)===ze?Ta===null:(ze&62914560)===ze||(ze&536870912)!==0?e===Ta:!1}function C0(){var e=O.H;return O.H=Ul,e===null?Ul:e}function E0(){var e=O.A;return O.A=tC,e}function Yo(){pt=4,Zn||(ze&4194048)!==ze&&fa.current!==null||(Ai=!0),(Yn&134217727)===0&&(Rr&134217727)===0||nt===null||Qn(nt,ze,ha,!1)}function md(e,t,a){var i=$e;$e|=2;var o=C0(),c=E0();(nt!==e||ze!==t)&&(Go=null,Ri(e,t)),t=!1;var m=pt;e:do try{if(Ke!==0&&Oe!==null){var g=Oe,_=ma;switch(Ke){case 8:dd(),m=6;break e;case 3:case 2:case 9:case 6:fa.current===null&&(t=!0);var z=Ke;if(Ke=0,ma=null,Mi(e,g,_,z),a&&Ai){m=0;break e}break;default:z=Ke,Ke=0,ma=null,Mi(e,g,_,z)}}rC(),m=pt;break}catch(H){N0(e,H)}while(!0);return t&&e.shellSuspendCounter++,un=Nr=null,$e=i,O.H=o,O.A=c,Oe===null&&(nt=null,ze=0,uo()),m}function rC(){for(;Oe!==null;)w0(Oe)}function iC(e,t){var a=$e;$e|=2;var i=C0(),o=E0();nt!==e||ze!==t?(Go=null,qo=k()+500,Ri(e,t)):Ai=ml(e,t);e:do try{if(Ke!==0&&Oe!==null){t=Oe;var c=ma;t:switch(Ke){case 1:Ke=0,ma=null,Mi(e,t,c,1);break;case 2:case 9:if(Vg(c)){Ke=0,ma=null,D0(t);break}t=function(){Ke!==2&&Ke!==9||nt!==e||(Ke=7),Ka(e)},c.then(t,t);break e;case 3:Ke=7;break e;case 4:Ke=5;break e;case 7:Vg(c)?(Ke=0,ma=null,D0(t)):(Ke=0,ma=null,Mi(e,t,c,7));break;case 5:var m=null;switch(Oe.tag){case 26:m=Oe.memoizedState;case 5:case 27:var g=Oe;if(m?db(m):g.stateNode.complete){Ke=0,ma=null;var _=g.sibling;if(_!==null)Oe=_;else{var z=g.return;z!==null?(Oe=z,$o(z)):Oe=null}break t}}Ke=0,ma=null,Mi(e,t,c,5);break;case 6:Ke=0,ma=null,Mi(e,t,c,6);break;case 8:dd(),pt=6;break e;default:throw Error(s(462))}}lC();break}catch(H){N0(e,H)}while(!0);return un=Nr=null,O.H=i,O.A=o,$e=a,Oe!==null?0:(nt=null,ze=0,uo(),pt)}function lC(){for(;Oe!==null&&!C();)w0(Oe)}function w0(e){var t=Jy(e.alternate,e,vn);e.memoizedProps=e.pendingProps,t===null?$o(e):Oe=t}function D0(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=Yy(a,t,t.pendingProps,t.type,void 0,ze);break;case 11:t=Yy(a,t,t.pendingProps,t.type.render,t.ref,ze);break;case 5:Af(t);default:Py(a,t),t=Oe=Eg(t,vn),t=Jy(a,t,vn)}e.memoizedProps=e.pendingProps,t===null?$o(e):Oe=t}function Mi(e,t,a,i){un=Nr=null,Af(t),Si=null,Ol=0;var o=t.return;try{if(X2(e,o,t,a,ze)){pt=1,Mo(e,Ea(a,e.current)),Oe=null;return}}catch(c){if(o!==null)throw Oe=o,c;pt=1,Mo(e,Ea(a,e.current)),Oe=null;return}t.flags&32768?(je||i===1?e=!0:Ai||(ze&536870912)!==0?e=!1:(Zn=e=!0,(i===2||i===9||i===3||i===6)&&(i=fa.current,i!==null&&i.tag===13&&(i.flags|=16384))),A0(t,e)):$o(t)}function $o(e){var t=e;do{if((t.flags&32768)!==0){A0(t,Zn);return}e=t.return;var a=I2(t.alternate,t,vn);if(a!==null){Oe=a;return}if(t=t.sibling,t!==null){Oe=t;return}Oe=t=e}while(t!==null);pt===0&&(pt=5)}function A0(e,t){do{var a=P2(e.alternate,e);if(a!==null){a.flags&=32767,Oe=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){Oe=e;return}Oe=e=a}while(e!==null);pt=6,Oe=null}function T0(e,t,a,i,o,c,m,g,_){e.cancelPendingCommit=null;do Fo();while(Ot!==0);if(($e&6)!==0)throw Error(s(327));if(t!==null){if(t===e.current)throw Error(s(177));if(c=t.lanes|t.childLanes,c|=ef,L_(e,a,c,m,g,_),e===nt&&(Oe=nt=null,ze=0),Oi=t,Fn=e,xn=a,ud=c,cd=o,b0=i,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,cC(fe,function(){return k0(),null})):(e.callbackNode=null,e.callbackPriority=0),i=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||i){i=O.T,O.T=null,o=X.p,X.p=2,m=$e,$e|=4;try{W2(e,t,a)}finally{$e=m,X.p=o,O.T=i}}Ot=1,O0(),R0(),M0()}}function O0(){if(Ot===1){Ot=0;var e=Fn,t=Oi,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=O.T,O.T=null;var i=X.p;X.p=2;var o=$e;$e|=4;try{c0(t,e);var c=Ed,m=gg(e.containerInfo),g=c.focusedElem,_=c.selectionRange;if(m!==g&&g&&g.ownerDocument&&pg(g.ownerDocument.documentElement,g)){if(_!==null&&Kc(g)){var z=_.start,H=_.end;if(H===void 0&&(H=z),"selectionStart"in g)g.selectionStart=z,g.selectionEnd=Math.min(H,g.value.length);else{var Z=g.ownerDocument||document,j=Z&&Z.defaultView||window;if(j.getSelection){var B=j.getSelection(),ce=g.textContent.length,ye=Math.min(_.start,ce),at=_.end===void 0?ye:Math.min(_.end,ce);!B.extend&&ye>at&&(m=at,at=ye,ye=m);var T=hg(g,ye),w=hg(g,at);if(T&&w&&(B.rangeCount!==1||B.anchorNode!==T.node||B.anchorOffset!==T.offset||B.focusNode!==w.node||B.focusOffset!==w.offset)){var M=Z.createRange();M.setStart(T.node,T.offset),B.removeAllRanges(),ye>at?(B.addRange(M),B.extend(w.node,w.offset)):(M.setEnd(w.node,w.offset),B.addRange(M))}}}}for(Z=[],B=g;B=B.parentNode;)B.nodeType===1&&Z.push({element:B,left:B.scrollLeft,top:B.scrollTop});for(typeof g.focus=="function"&&g.focus(),g=0;g<Z.length;g++){var G=Z[g];G.element.scrollLeft=G.left,G.element.scrollTop=G.top}}ru=!!Cd,Ed=Cd=null}finally{$e=o,X.p=i,O.T=a}}e.current=t,Ot=2}}function R0(){if(Ot===2){Ot=0;var e=Fn,t=Oi,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=O.T,O.T=null;var i=X.p;X.p=2;var o=$e;$e|=4;try{i0(e,t.alternate,t)}finally{$e=o,X.p=i,O.T=a}}Ot=3}}function M0(){if(Ot===4||Ot===3){Ot=0,R();var e=Fn,t=Oi,a=xn,i=b0;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Ot=5:(Ot=0,Oi=Fn=null,z0(e,e.pendingLanes));var o=e.pendingLanes;if(o===0&&($n=null),Oc(a),t=t.stateNode,Qt&&typeof Qt.onCommitFiberRoot=="function")try{Qt.onCommitFiberRoot(Ct,t,void 0,(t.current.flags&128)===128)}catch{}if(i!==null){t=O.T,o=X.p,X.p=2,O.T=null;try{for(var c=e.onRecoverableError,m=0;m<i.length;m++){var g=i[m];c(g.value,{componentStack:g.stack})}}finally{O.T=t,X.p=o}}(xn&3)!==0&&Fo(),Ka(e),o=e.pendingLanes,(a&261930)!==0&&(o&42)!==0?e===fd?Ql++:(Ql=0,fd=e):Ql=0,Xl(0)}}function z0(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Al(t)))}function Fo(){return O0(),R0(),M0(),k0()}function k0(){if(Ot!==5)return!1;var e=Fn,t=ud;ud=0;var a=Oc(xn),i=O.T,o=X.p;try{X.p=32>a?32:a,O.T=null,a=cd,cd=null;var c=Fn,m=xn;if(Ot=0,Oi=Fn=null,xn=0,($e&6)!==0)throw Error(s(331));var g=$e;if($e|=4,p0(c.current),d0(c,c.current,m,a),$e=g,Xl(0,!1),Qt&&typeof Qt.onPostCommitFiberRoot=="function")try{Qt.onPostCommitFiberRoot(Ct,c)}catch{}return!0}finally{X.p=o,O.T=i,z0(e,t)}}function j0(e,t,a){t=Ea(a,t),t=Zf(e.stateNode,t,2),e=Ln(e,t,2),e!==null&&(hl(e,2),Ka(e))}function Je(e,t,a){if(e.tag===3)j0(e,e,a);else for(;t!==null;){if(t.tag===3){j0(t,e,a);break}else if(t.tag===1){var i=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&($n===null||!$n.has(i))){e=Ea(a,e),a=Vy(2),i=Ln(t,a,2),i!==null&&(By(a,i,t,e),hl(i,2),Ka(i));break}}t=t.return}}function hd(e,t,a){var i=e.pingCache;if(i===null){i=e.pingCache=new aC;var o=new Set;i.set(t,o)}else o=i.get(t),o===void 0&&(o=new Set,i.set(t,o));o.has(a)||(ld=!0,o.add(a),e=sC.bind(null,e,t,a),t.then(e,e))}function sC(e,t,a){var i=e.pingCache;i!==null&&i.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,nt===e&&(ze&a)===a&&(pt===4||pt===3&&(ze&62914560)===ze&&300>k()-Ho?($e&2)===0&&Ri(e,0):sd|=a,Ti===ze&&(Ti=0)),Ka(e)}function V0(e,t){t===0&&(t=Op()),e=vr(e,t),e!==null&&(hl(e,t),Ka(e))}function oC(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),V0(e,a)}function uC(e,t){var a=0;switch(e.tag){case 31:case 13:var i=e.stateNode,o=e.memoizedState;o!==null&&(a=o.retryLane);break;case 19:i=e.stateNode;break;case 22:i=e.stateNode._retryCache;break;default:throw Error(s(314))}i!==null&&i.delete(t),V0(e,a)}function cC(e,t){return Qs(e,t)}var Qo=null,zi=null,pd=!1,Xo=!1,gd=!1,Xn=0;function Ka(e){e!==zi&&e.next===null&&(zi===null?Qo=zi=e:zi=zi.next=e),Xo=!0,pd||(pd=!0,dC())}function Xl(e,t){if(!gd&&Xo){gd=!0;do for(var a=!1,i=Qo;i!==null;){if(e!==0){var o=i.pendingLanes;if(o===0)var c=0;else{var m=i.suspendedLanes,g=i.pingedLanes;c=(1<<31-jt(42|e)+1)-1,c&=o&~(m&~g),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(a=!0,H0(i,c))}else c=ze,c=Is(i,i===nt?c:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),(c&3)===0||ml(i,c)||(a=!0,H0(i,c));i=i.next}while(a);gd=!1}}function fC(){B0()}function B0(){Xo=pd=!1;var e=0;Xn!==0&&NC()&&(e=Xn);for(var t=k(),a=null,i=Qo;i!==null;){var o=i.next,c=U0(i,t);c===0?(i.next=null,a===null?Qo=o:a.next=o,o===null&&(zi=a)):(a=i,(e!==0||(c&3)!==0)&&(Xo=!0)),i=o}Ot!==0&&Ot!==5||Xl(e),Xn!==0&&(Xn=0)}function U0(e,t){for(var a=e.suspendedLanes,i=e.pingedLanes,o=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var m=31-jt(c),g=1<<m,_=o[m];_===-1?((g&a)===0||(g&i)!==0)&&(o[m]=U_(g,t)):_<=t&&(e.expiredLanes|=g),c&=~g}if(t=nt,a=ze,a=Is(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i=e.callbackNode,a===0||e===t&&(Ke===2||Ke===9)||e.cancelPendingCommit!==null)return i!==null&&i!==null&&Pr(i),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||ml(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(i!==null&&Pr(i),Oc(a)){case 2:case 8:a=te;break;case 32:a=fe;break;case 268435456:a=He;break;default:a=fe}return i=L0.bind(null,e),a=Qs(a,i),e.callbackPriority=t,e.callbackNode=a,t}return i!==null&&i!==null&&Pr(i),e.callbackPriority=2,e.callbackNode=null,2}function L0(e,t){if(Ot!==0&&Ot!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(Fo()&&e.callbackNode!==a)return null;var i=ze;return i=Is(e,e===nt?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i===0?null:(x0(e,i,t),U0(e,k()),e.callbackNode!=null&&e.callbackNode===a?L0.bind(null,e):null)}function H0(e,t){if(Fo())return null;x0(e,t,!0)}function dC(){CC(function(){($e&6)!==0?Qs(W,fC):B0()})}function yd(){if(Xn===0){var e=yi;e===0&&(e=mr,mr<<=1,(mr&261888)===0&&(mr=256)),Xn=e}return Xn}function q0(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:to(""+e)}function G0(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function mC(e,t,a,i,o){if(t==="submit"&&a&&a.stateNode===o){var c=q0((o[Pt]||null).action),m=i.submitter;m&&(t=(t=m[Pt]||null)?q0(t.formAction):m.getAttribute("formAction"),t!==null&&(c=t,m=null));var g=new io("action","action",null,i,o);e.push({event:g,listeners:[{instance:null,listener:function(){if(i.defaultPrevented){if(Xn!==0){var _=m?G0(o,m):new FormData(o);Bf(a,{pending:!0,data:_,method:o.method,action:c},null,_)}}else typeof c=="function"&&(g.preventDefault(),_=m?G0(o,m):new FormData(o),Bf(a,{pending:!0,data:_,method:o.method,action:c},c,_))},currentTarget:o}]})}}for(var bd=0;bd<Wc.length;bd++){var vd=Wc[bd],hC=vd.toLowerCase(),pC=vd[0].toUpperCase()+vd.slice(1);Va(hC,"on"+pC)}Va(vg,"onAnimationEnd"),Va(xg,"onAnimationIteration"),Va(Sg,"onAnimationStart"),Va("dblclick","onDoubleClick"),Va("focusin","onFocus"),Va("focusout","onBlur"),Va(R2,"onTransitionRun"),Va(M2,"onTransitionStart"),Va(z2,"onTransitionCancel"),Va(Ng,"onTransitionEnd"),ni("onMouseEnter",["mouseout","mouseover"]),ni("onMouseLeave",["mouseout","mouseover"]),ni("onPointerEnter",["pointerout","pointerover"]),ni("onPointerLeave",["pointerout","pointerover"]),pr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),pr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),pr("onBeforeInput",["compositionend","keypress","textInput","paste"]),pr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),pr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),pr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Kl="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),gC=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Kl));function Z0(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var i=e[a],o=i.event;i=i.listeners;e:{var c=void 0;if(t)for(var m=i.length-1;0<=m;m--){var g=i[m],_=g.instance,z=g.currentTarget;if(g=g.listener,_!==c&&o.isPropagationStopped())break e;c=g,o.currentTarget=z;try{c(o)}catch(H){oo(H)}o.currentTarget=null,c=_}else for(m=0;m<i.length;m++){if(g=i[m],_=g.instance,z=g.currentTarget,g=g.listener,_!==c&&o.isPropagationStopped())break e;c=g,o.currentTarget=z;try{c(o)}catch(H){oo(H)}o.currentTarget=null,c=_}}}}function Re(e,t){var a=t[Rc];a===void 0&&(a=t[Rc]=new Set);var i=e+"__bubble";a.has(i)||(Y0(t,e,2,!1),a.add(i))}function xd(e,t,a){var i=0;t&&(i|=4),Y0(a,e,i,t)}var Ko="_reactListening"+Math.random().toString(36).slice(2);function Sd(e){if(!e[Ko]){e[Ko]=!0,Bp.forEach(function(a){a!=="selectionchange"&&(gC.has(a)||xd(a,!1,e),xd(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ko]||(t[Ko]=!0,xd("selectionchange",!1,t))}}function Y0(e,t,a,i){switch(vb(t)){case 2:var o=YC;break;case 8:o=$C;break;default:o=Vd}a=o.bind(null,t,a,e),o=void 0,!Hc||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),i?o!==void 0?e.addEventListener(t,a,{capture:!0,passive:o}):e.addEventListener(t,a,!0):o!==void 0?e.addEventListener(t,a,{passive:o}):e.addEventListener(t,a,!1)}function Nd(e,t,a,i,o){var c=i;if((t&1)===0&&(t&2)===0&&i!==null)e:for(;;){if(i===null)return;var m=i.tag;if(m===3||m===4){var g=i.stateNode.containerInfo;if(g===o)break;if(m===4)for(m=i.return;m!==null;){var _=m.tag;if((_===3||_===4)&&m.stateNode.containerInfo===o)return;m=m.return}for(;g!==null;){if(m=ei(g),m===null)return;if(_=m.tag,_===5||_===6||_===26||_===27){i=c=m;continue e}g=g.parentNode}}i=i.return}Kp(function(){var z=c,H=Uc(a),Z=[];e:{var j=_g.get(e);if(j!==void 0){var B=io,ce=e;switch(e){case"keypress":if(no(a)===0)break e;case"keydown":case"keyup":B=u2;break;case"focusin":ce="focus",B=Yc;break;case"focusout":ce="blur",B=Yc;break;case"beforeblur":case"afterblur":B=Yc;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":B=Pp;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":B=I_;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":B=d2;break;case vg:case xg:case Sg:B=e2;break;case Ng:B=h2;break;case"scroll":case"scrollend":B=K_;break;case"wheel":B=g2;break;case"copy":case"cut":case"paste":B=a2;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":B=eg;break;case"toggle":case"beforetoggle":B=b2}var ye=(t&4)!==0,at=!ye&&(e==="scroll"||e==="scrollend"),T=ye?j!==null?j+"Capture":null:j;ye=[];for(var w=z,M;w!==null;){var G=w;if(M=G.stateNode,G=G.tag,G!==5&&G!==26&&G!==27||M===null||T===null||(G=yl(w,T),G!=null&&ye.push(Jl(w,G,M))),at)break;w=w.return}0<ye.length&&(j=new B(j,ce,null,a,H),Z.push({event:j,listeners:ye}))}}if((t&7)===0){e:{if(j=e==="mouseover"||e==="pointerover",B=e==="mouseout"||e==="pointerout",j&&a!==Bc&&(ce=a.relatedTarget||a.fromElement)&&(ei(ce)||ce[Wr]))break e;if((B||j)&&(j=H.window===H?H:(j=H.ownerDocument)?j.defaultView||j.parentWindow:window,B?(ce=a.relatedTarget||a.toElement,B=z,ce=ce?ei(ce):null,ce!==null&&(at=f(ce),ye=ce.tag,ce!==at||ye!==5&&ye!==27&&ye!==6)&&(ce=null)):(B=null,ce=z),B!==ce)){if(ye=Pp,G="onMouseLeave",T="onMouseEnter",w="mouse",(e==="pointerout"||e==="pointerover")&&(ye=eg,G="onPointerLeave",T="onPointerEnter",w="pointer"),at=B==null?j:gl(B),M=ce==null?j:gl(ce),j=new ye(G,w+"leave",B,a,H),j.target=at,j.relatedTarget=M,G=null,ei(H)===z&&(ye=new ye(T,w+"enter",ce,a,H),ye.target=M,ye.relatedTarget=at,G=ye),at=G,B&&ce)t:{for(ye=yC,T=B,w=ce,M=0,G=T;G;G=ye(G))M++;G=0;for(var ge=w;ge;ge=ye(ge))G++;for(;0<M-G;)T=ye(T),M--;for(;0<G-M;)w=ye(w),G--;for(;M--;){if(T===w||w!==null&&T===w.alternate){ye=T;break t}T=ye(T),w=ye(w)}ye=null}else ye=null;B!==null&&$0(Z,j,B,ye,!1),ce!==null&&at!==null&&$0(Z,at,ce,ye,!0)}}e:{if(j=z?gl(z):window,B=j.nodeName&&j.nodeName.toLowerCase(),B==="select"||B==="input"&&j.type==="file")var qe=og;else if(lg(j))if(ug)qe=A2;else{qe=w2;var me=E2}else B=j.nodeName,!B||B.toLowerCase()!=="input"||j.type!=="checkbox"&&j.type!=="radio"?z&&Vc(z.elementType)&&(qe=og):qe=D2;if(qe&&(qe=qe(e,z))){sg(Z,qe,a,H);break e}me&&me(e,j,z),e==="focusout"&&z&&j.type==="number"&&z.memoizedProps.value!=null&&jc(j,"number",j.value)}switch(me=z?gl(z):window,e){case"focusin":(lg(me)||me.contentEditable==="true")&&(ui=me,Jc=z,El=null);break;case"focusout":El=Jc=ui=null;break;case"mousedown":Ic=!0;break;case"contextmenu":case"mouseup":case"dragend":Ic=!1,yg(Z,a,H);break;case"selectionchange":if(O2)break;case"keydown":case"keyup":yg(Z,a,H)}var we;if(Fc)e:{switch(e){case"compositionstart":var ke="onCompositionStart";break e;case"compositionend":ke="onCompositionEnd";break e;case"compositionupdate":ke="onCompositionUpdate";break e}ke=void 0}else oi?rg(e,a)&&(ke="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(ke="onCompositionStart");ke&&(tg&&a.locale!=="ko"&&(oi||ke!=="onCompositionStart"?ke==="onCompositionEnd"&&oi&&(we=Jp()):(Mn=H,qc="value"in Mn?Mn.value:Mn.textContent,oi=!0)),me=Jo(z,ke),0<me.length&&(ke=new Wp(ke,e,null,a,H),Z.push({event:ke,listeners:me}),we?ke.data=we:(we=ig(a),we!==null&&(ke.data=we)))),(we=x2?S2(e,a):N2(e,a))&&(ke=Jo(z,"onBeforeInput"),0<ke.length&&(me=new Wp("onBeforeInput","beforeinput",null,a,H),Z.push({event:me,listeners:ke}),me.data=we)),mC(Z,e,z,a,H)}Z0(Z,t)})}function Jl(e,t,a){return{instance:e,listener:t,currentTarget:a}}function Jo(e,t){for(var a=t+"Capture",i=[];e!==null;){var o=e,c=o.stateNode;if(o=o.tag,o!==5&&o!==26&&o!==27||c===null||(o=yl(e,a),o!=null&&i.unshift(Jl(e,o,c)),o=yl(e,t),o!=null&&i.push(Jl(e,o,c))),e.tag===3)return i;e=e.return}return[]}function yC(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function $0(e,t,a,i,o){for(var c=t._reactName,m=[];a!==null&&a!==i;){var g=a,_=g.alternate,z=g.stateNode;if(g=g.tag,_!==null&&_===i)break;g!==5&&g!==26&&g!==27||z===null||(_=z,o?(z=yl(a,c),z!=null&&m.unshift(Jl(a,z,_))):o||(z=yl(a,c),z!=null&&m.push(Jl(a,z,_)))),a=a.return}m.length!==0&&e.push({event:t,listeners:m})}var bC=/\r\n?/g,vC=/\u0000|\uFFFD/g;function F0(e){return(typeof e=="string"?e:""+e).replace(bC,`
49
+ `).replace(vC,"")}function Q0(e,t){return t=F0(t),F0(e)===t}function tt(e,t,a,i,o,c){switch(a){case"children":typeof i=="string"?t==="body"||t==="textarea"&&i===""||ii(e,i):(typeof i=="number"||typeof i=="bigint")&&t!=="body"&&ii(e,""+i);break;case"className":Ws(e,"class",i);break;case"tabIndex":Ws(e,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":Ws(e,a,i);break;case"style":Qp(e,i,c);break;case"data":if(t!=="object"){Ws(e,"data",i);break}case"src":case"href":if(i===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(i==null||typeof i=="function"||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(a);break}i=to(""+i),e.setAttribute(a,i);break;case"action":case"formAction":if(typeof i=="function"){e.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof c=="function"&&(a==="formAction"?(t!=="input"&&tt(e,t,"name",o.name,o,null),tt(e,t,"formEncType",o.formEncType,o,null),tt(e,t,"formMethod",o.formMethod,o,null),tt(e,t,"formTarget",o.formTarget,o,null)):(tt(e,t,"encType",o.encType,o,null),tt(e,t,"method",o.method,o,null),tt(e,t,"target",o.target,o,null)));if(i==null||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(a);break}i=to(""+i),e.setAttribute(a,i);break;case"onClick":i!=null&&(e.onclick=rn);break;case"onScroll":i!=null&&Re("scroll",e);break;case"onScrollEnd":i!=null&&Re("scrollend",e);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(s(61));if(a=i.__html,a!=null){if(o.children!=null)throw Error(s(60));e.innerHTML=a}}break;case"multiple":e.multiple=i&&typeof i!="function"&&typeof i!="symbol";break;case"muted":e.muted=i&&typeof i!="function"&&typeof i!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(i==null||typeof i=="function"||typeof i=="boolean"||typeof i=="symbol"){e.removeAttribute("xlink:href");break}a=to(""+i),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(a,""+i):e.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":i&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":i===!0?e.setAttribute(a,""):i!==!1&&i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(a,i):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":i!=null&&typeof i!="function"&&typeof i!="symbol"&&!isNaN(i)&&1<=i?e.setAttribute(a,i):e.removeAttribute(a);break;case"rowSpan":case"start":i==null||typeof i=="function"||typeof i=="symbol"||isNaN(i)?e.removeAttribute(a):e.setAttribute(a,i);break;case"popover":Re("beforetoggle",e),Re("toggle",e),Ps(e,"popover",i);break;case"xlinkActuate":nn(e,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":nn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":nn(e,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":nn(e,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":nn(e,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":nn(e,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":nn(e,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":nn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":nn(e,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case"is":Ps(e,"is",i);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=Q_.get(a)||a,Ps(e,a,i))}}function _d(e,t,a,i,o,c){switch(a){case"style":Qp(e,i,c);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(s(61));if(a=i.__html,a!=null){if(o.children!=null)throw Error(s(60));e.innerHTML=a}}break;case"children":typeof i=="string"?ii(e,i):(typeof i=="number"||typeof i=="bigint")&&ii(e,""+i);break;case"onScroll":i!=null&&Re("scroll",e);break;case"onScrollEnd":i!=null&&Re("scrollend",e);break;case"onClick":i!=null&&(e.onclick=rn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Up.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(o=a.endsWith("Capture"),t=a.slice(2,o?a.length-7:void 0),c=e[Pt]||null,c=c!=null?c[a]:null,typeof c=="function"&&e.removeEventListener(t,c,o),typeof i=="function")){typeof c!="function"&&c!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,i,o);break e}a in e?e[a]=i:i===!0?e.setAttribute(a,""):Ps(e,a,i)}}}function Ht(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Re("error",e),Re("load",e);var i=!1,o=!1,c;for(c in a)if(a.hasOwnProperty(c)){var m=a[c];if(m!=null)switch(c){case"src":i=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:tt(e,t,c,m,a,null)}}o&&tt(e,t,"srcSet",a.srcSet,a,null),i&&tt(e,t,"src",a.src,a,null);return;case"input":Re("invalid",e);var g=c=m=o=null,_=null,z=null;for(i in a)if(a.hasOwnProperty(i)){var H=a[i];if(H!=null)switch(i){case"name":o=H;break;case"type":m=H;break;case"checked":_=H;break;case"defaultChecked":z=H;break;case"value":c=H;break;case"defaultValue":g=H;break;case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(s(137,t));break;default:tt(e,t,i,H,a,null)}}Zp(e,c,g,_,z,m,o,!1);return;case"select":Re("invalid",e),i=m=c=null;for(o in a)if(a.hasOwnProperty(o)&&(g=a[o],g!=null))switch(o){case"value":c=g;break;case"defaultValue":m=g;break;case"multiple":i=g;default:tt(e,t,o,g,a,null)}t=c,a=m,e.multiple=!!i,t!=null?ri(e,!!i,t,!1):a!=null&&ri(e,!!i,a,!0);return;case"textarea":Re("invalid",e),c=o=i=null;for(m in a)if(a.hasOwnProperty(m)&&(g=a[m],g!=null))switch(m){case"value":i=g;break;case"defaultValue":o=g;break;case"children":c=g;break;case"dangerouslySetInnerHTML":if(g!=null)throw Error(s(91));break;default:tt(e,t,m,g,a,null)}$p(e,i,o,c);return;case"option":for(_ in a)if(a.hasOwnProperty(_)&&(i=a[_],i!=null))switch(_){case"selected":e.selected=i&&typeof i!="function"&&typeof i!="symbol";break;default:tt(e,t,_,i,a,null)}return;case"dialog":Re("beforetoggle",e),Re("toggle",e),Re("cancel",e),Re("close",e);break;case"iframe":case"object":Re("load",e);break;case"video":case"audio":for(i=0;i<Kl.length;i++)Re(Kl[i],e);break;case"image":Re("error",e),Re("load",e);break;case"details":Re("toggle",e);break;case"embed":case"source":case"link":Re("error",e),Re("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(z in a)if(a.hasOwnProperty(z)&&(i=a[z],i!=null))switch(z){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:tt(e,t,z,i,a,null)}return;default:if(Vc(t)){for(H in a)a.hasOwnProperty(H)&&(i=a[H],i!==void 0&&_d(e,t,H,i,a,void 0));return}}for(g in a)a.hasOwnProperty(g)&&(i=a[g],i!=null&&tt(e,t,g,i,a,null))}function xC(e,t,a,i){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,c=null,m=null,g=null,_=null,z=null,H=null;for(B in a){var Z=a[B];if(a.hasOwnProperty(B)&&Z!=null)switch(B){case"checked":break;case"value":break;case"defaultValue":_=Z;default:i.hasOwnProperty(B)||tt(e,t,B,null,i,Z)}}for(var j in i){var B=i[j];if(Z=a[j],i.hasOwnProperty(j)&&(B!=null||Z!=null))switch(j){case"type":c=B;break;case"name":o=B;break;case"checked":z=B;break;case"defaultChecked":H=B;break;case"value":m=B;break;case"defaultValue":g=B;break;case"children":case"dangerouslySetInnerHTML":if(B!=null)throw Error(s(137,t));break;default:B!==Z&&tt(e,t,j,B,i,Z)}}kc(e,m,g,_,z,H,c,o);return;case"select":B=m=g=j=null;for(c in a)if(_=a[c],a.hasOwnProperty(c)&&_!=null)switch(c){case"value":break;case"multiple":B=_;default:i.hasOwnProperty(c)||tt(e,t,c,null,i,_)}for(o in i)if(c=i[o],_=a[o],i.hasOwnProperty(o)&&(c!=null||_!=null))switch(o){case"value":j=c;break;case"defaultValue":g=c;break;case"multiple":m=c;default:c!==_&&tt(e,t,o,c,i,_)}t=g,a=m,i=B,j!=null?ri(e,!!a,j,!1):!!i!=!!a&&(t!=null?ri(e,!!a,t,!0):ri(e,!!a,a?[]:"",!1));return;case"textarea":B=j=null;for(g in a)if(o=a[g],a.hasOwnProperty(g)&&o!=null&&!i.hasOwnProperty(g))switch(g){case"value":break;case"children":break;default:tt(e,t,g,null,i,o)}for(m in i)if(o=i[m],c=a[m],i.hasOwnProperty(m)&&(o!=null||c!=null))switch(m){case"value":j=o;break;case"defaultValue":B=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(s(91));break;default:o!==c&&tt(e,t,m,o,i,c)}Yp(e,j,B);return;case"option":for(var ce in a)if(j=a[ce],a.hasOwnProperty(ce)&&j!=null&&!i.hasOwnProperty(ce))switch(ce){case"selected":e.selected=!1;break;default:tt(e,t,ce,null,i,j)}for(_ in i)if(j=i[_],B=a[_],i.hasOwnProperty(_)&&j!==B&&(j!=null||B!=null))switch(_){case"selected":e.selected=j&&typeof j!="function"&&typeof j!="symbol";break;default:tt(e,t,_,j,i,B)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var ye in a)j=a[ye],a.hasOwnProperty(ye)&&j!=null&&!i.hasOwnProperty(ye)&&tt(e,t,ye,null,i,j);for(z in i)if(j=i[z],B=a[z],i.hasOwnProperty(z)&&j!==B&&(j!=null||B!=null))switch(z){case"children":case"dangerouslySetInnerHTML":if(j!=null)throw Error(s(137,t));break;default:tt(e,t,z,j,i,B)}return;default:if(Vc(t)){for(var at in a)j=a[at],a.hasOwnProperty(at)&&j!==void 0&&!i.hasOwnProperty(at)&&_d(e,t,at,void 0,i,j);for(H in i)j=i[H],B=a[H],!i.hasOwnProperty(H)||j===B||j===void 0&&B===void 0||_d(e,t,H,j,i,B);return}}for(var T in a)j=a[T],a.hasOwnProperty(T)&&j!=null&&!i.hasOwnProperty(T)&&tt(e,t,T,null,i,j);for(Z in i)j=i[Z],B=a[Z],!i.hasOwnProperty(Z)||j===B||j==null&&B==null||tt(e,t,Z,j,i,B)}function X0(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function SC(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),i=0;i<a.length;i++){var o=a[i],c=o.transferSize,m=o.initiatorType,g=o.duration;if(c&&g&&X0(m)){for(m=0,g=o.responseEnd,i+=1;i<a.length;i++){var _=a[i],z=_.startTime;if(z>g)break;var H=_.transferSize,Z=_.initiatorType;H&&X0(Z)&&(_=_.responseEnd,m+=H*(_<g?1:(g-z)/(_-z)))}if(--i,t+=8*(c+m)/(o.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Cd=null,Ed=null;function Io(e){return e.nodeType===9?e:e.ownerDocument}function K0(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function J0(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function wd(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Dd=null;function NC(){var e=window.event;return e&&e.type==="popstate"?e===Dd?!1:(Dd=e,!0):(Dd=null,!1)}var I0=typeof setTimeout=="function"?setTimeout:void 0,_C=typeof clearTimeout=="function"?clearTimeout:void 0,P0=typeof Promise=="function"?Promise:void 0,CC=typeof queueMicrotask=="function"?queueMicrotask:typeof P0<"u"?function(e){return P0.resolve(null).then(e).catch(EC)}:I0;function EC(e){setTimeout(function(){throw e})}function Kn(e){return e==="head"}function W0(e,t){var a=t,i=0;do{var o=a.nextSibling;if(e.removeChild(a),o&&o.nodeType===8)if(a=o.data,a==="/$"||a==="/&"){if(i===0){e.removeChild(o),Bi(t);return}i--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")i++;else if(a==="html")Il(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,Il(a);for(var c=a.firstChild;c;){var m=c.nextSibling,g=c.nodeName;c[pl]||g==="SCRIPT"||g==="STYLE"||g==="LINK"&&c.rel.toLowerCase()==="stylesheet"||a.removeChild(c),c=m}}else a==="body"&&Il(e.ownerDocument.body);a=o}while(a);Bi(t)}function eb(e,t){var a=e;e=0;do{var i=a.nextSibling;if(a.nodeType===1?t?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(t?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),i&&i.nodeType===8)if(a=i.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=i}while(a)}function Ad(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":Ad(a),Mc(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function wC(e,t,a,i){for(;e.nodeType===1;){var o=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!i&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(i){if(!e[pl])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(c=e.getAttribute("rel"),c==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(c!==o.rel||e.getAttribute("href")!==(o.href==null||o.href===""?null:o.href)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin)||e.getAttribute("title")!==(o.title==null?null:o.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(c=e.getAttribute("src"),(c!==(o.src==null?null:o.src)||e.getAttribute("type")!==(o.type==null?null:o.type)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin))&&c&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var c=o.name==null?null:""+o.name;if(o.type==="hidden"&&e.getAttribute("name")===c)return e}else return e;if(e=Oa(e.nextSibling),e===null)break}return null}function DC(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=Oa(e.nextSibling),e===null))return null;return e}function tb(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Oa(e.nextSibling),e===null))return null;return e}function Td(e){return e.data==="$?"||e.data==="$~"}function Od(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function AC(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var i=function(){t(),a.removeEventListener("DOMContentLoaded",i)};a.addEventListener("DOMContentLoaded",i),e._reactRetry=i}}function Oa(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Rd=null;function ab(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return Oa(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function nb(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(t===0)return e;t--}else a!=="/$"&&a!=="/&"||t++}e=e.previousSibling}return null}function rb(e,t,a){switch(t=Io(a),e){case"html":if(e=t.documentElement,!e)throw Error(s(452));return e;case"head":if(e=t.head,!e)throw Error(s(453));return e;case"body":if(e=t.body,!e)throw Error(s(454));return e;default:throw Error(s(451))}}function Il(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Mc(e)}var Ra=new Map,ib=new Set;function Po(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Sn=X.d;X.d={f:TC,r:OC,D:RC,C:MC,L:zC,m:kC,X:VC,S:jC,M:BC};function TC(){var e=Sn.f(),t=Zo();return e||t}function OC(e){var t=ti(e);t!==null&&t.tag===5&&t.type==="form"?Ny(t):Sn.r(e)}var ki=typeof document>"u"?null:document;function lb(e,t,a){var i=ki;if(i&&typeof t=="string"&&t){var o=_a(t);o='link[rel="'+e+'"][href="'+o+'"]',typeof a=="string"&&(o+='[crossorigin="'+a+'"]'),ib.has(o)||(ib.add(o),e={rel:e,crossOrigin:a,href:t},i.querySelector(o)===null&&(t=i.createElement("link"),Ht(t,"link",e),Rt(t),i.head.appendChild(t)))}}function RC(e){Sn.D(e),lb("dns-prefetch",e,null)}function MC(e,t){Sn.C(e,t),lb("preconnect",e,t)}function zC(e,t,a){Sn.L(e,t,a);var i=ki;if(i&&e&&t){var o='link[rel="preload"][as="'+_a(t)+'"]';t==="image"&&a&&a.imageSrcSet?(o+='[imagesrcset="'+_a(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(o+='[imagesizes="'+_a(a.imageSizes)+'"]')):o+='[href="'+_a(e)+'"]';var c=o;switch(t){case"style":c=ji(e);break;case"script":c=Vi(e)}Ra.has(c)||(e=v({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),Ra.set(c,e),i.querySelector(o)!==null||t==="style"&&i.querySelector(Pl(c))||t==="script"&&i.querySelector(Wl(c))||(t=i.createElement("link"),Ht(t,"link",e),Rt(t),i.head.appendChild(t)))}}function kC(e,t){Sn.m(e,t);var a=ki;if(a&&e){var i=t&&typeof t.as=="string"?t.as:"script",o='link[rel="modulepreload"][as="'+_a(i)+'"][href="'+_a(e)+'"]',c=o;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=Vi(e)}if(!Ra.has(c)&&(e=v({rel:"modulepreload",href:e},t),Ra.set(c,e),a.querySelector(o)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Wl(c)))return}i=a.createElement("link"),Ht(i,"link",e),Rt(i),a.head.appendChild(i)}}}function jC(e,t,a){Sn.S(e,t,a);var i=ki;if(i&&e){var o=ai(i).hoistableStyles,c=ji(e);t=t||"default";var m=o.get(c);if(!m){var g={loading:0,preload:null};if(m=i.querySelector(Pl(c)))g.loading=5;else{e=v({rel:"stylesheet",href:e,"data-precedence":t},a),(a=Ra.get(c))&&Md(e,a);var _=m=i.createElement("link");Rt(_),Ht(_,"link",e),_._p=new Promise(function(z,H){_.onload=z,_.onerror=H}),_.addEventListener("load",function(){g.loading|=1}),_.addEventListener("error",function(){g.loading|=2}),g.loading|=4,Wo(m,t,i)}m={type:"stylesheet",instance:m,count:1,state:g},o.set(c,m)}}}function VC(e,t){Sn.X(e,t);var a=ki;if(a&&e){var i=ai(a).hoistableScripts,o=Vi(e),c=i.get(o);c||(c=a.querySelector(Wl(o)),c||(e=v({src:e,async:!0},t),(t=Ra.get(o))&&zd(e,t),c=a.createElement("script"),Rt(c),Ht(c,"link",e),a.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},i.set(o,c))}}function BC(e,t){Sn.M(e,t);var a=ki;if(a&&e){var i=ai(a).hoistableScripts,o=Vi(e),c=i.get(o);c||(c=a.querySelector(Wl(o)),c||(e=v({src:e,async:!0,type:"module"},t),(t=Ra.get(o))&&zd(e,t),c=a.createElement("script"),Rt(c),Ht(c,"link",e),a.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},i.set(o,c))}}function sb(e,t,a,i){var o=(o=De.current)?Po(o):null;if(!o)throw Error(s(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=ji(a.href),a=ai(o).hoistableStyles,i=a.get(t),i||(i={type:"style",instance:null,count:0,state:null},a.set(t,i)),i):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=ji(a.href);var c=ai(o).hoistableStyles,m=c.get(e);if(m||(o=o.ownerDocument||o,m={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,m),(c=o.querySelector(Pl(e)))&&!c._p&&(m.instance=c,m.state.loading=5),Ra.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},Ra.set(e,a),c||UC(o,e,a,m.state))),t&&i===null)throw Error(s(528,""));return m}if(t&&i!==null)throw Error(s(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Vi(a),a=ai(o).hoistableScripts,i=a.get(t),i||(i={type:"script",instance:null,count:0,state:null},a.set(t,i)),i):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,e))}}function ji(e){return'href="'+_a(e)+'"'}function Pl(e){return'link[rel="stylesheet"]['+e+"]"}function ob(e){return v({},e,{"data-precedence":e.precedence,precedence:null})}function UC(e,t,a,i){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?i.loading=1:(t=e.createElement("link"),i.preload=t,t.addEventListener("load",function(){return i.loading|=1}),t.addEventListener("error",function(){return i.loading|=2}),Ht(t,"link",a),Rt(t),e.head.appendChild(t))}function Vi(e){return'[src="'+_a(e)+'"]'}function Wl(e){return"script[async]"+e}function ub(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var i=e.querySelector('style[data-href~="'+_a(a.href)+'"]');if(i)return t.instance=i,Rt(i),i;var o=v({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return i=(e.ownerDocument||e).createElement("style"),Rt(i),Ht(i,"style",o),Wo(i,a.precedence,e),t.instance=i;case"stylesheet":o=ji(a.href);var c=e.querySelector(Pl(o));if(c)return t.state.loading|=4,t.instance=c,Rt(c),c;i=ob(a),(o=Ra.get(o))&&Md(i,o),c=(e.ownerDocument||e).createElement("link"),Rt(c);var m=c;return m._p=new Promise(function(g,_){m.onload=g,m.onerror=_}),Ht(c,"link",i),t.state.loading|=4,Wo(c,a.precedence,e),t.instance=c;case"script":return c=Vi(a.src),(o=e.querySelector(Wl(c)))?(t.instance=o,Rt(o),o):(i=a,(o=Ra.get(c))&&(i=v({},a),zd(i,o)),e=e.ownerDocument||e,o=e.createElement("script"),Rt(o),Ht(o,"link",i),e.head.appendChild(o),t.instance=o);case"void":return null;default:throw Error(s(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(i=t.instance,t.state.loading|=4,Wo(i,a.precedence,e));return t.instance}function Wo(e,t,a){for(var i=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=i.length?i[i.length-1]:null,c=o,m=0;m<i.length;m++){var g=i[m];if(g.dataset.precedence===t)c=g;else if(c!==o)break}c?c.parentNode.insertBefore(e,c.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function Md(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function zd(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var eu=null;function cb(e,t,a){if(eu===null){var i=new Map,o=eu=new Map;o.set(a,i)}else o=eu,i=o.get(a),i||(i=new Map,o.set(a,i));if(i.has(e))return i;for(i.set(e,null),a=a.getElementsByTagName(e),o=0;o<a.length;o++){var c=a[o];if(!(c[pl]||c[Vt]||e==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var m=c.getAttribute(t)||"";m=e+m;var g=i.get(m);g?g.push(c):i.set(m,[c])}}return i}function fb(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function LC(e,t,a){if(a===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function db(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function HC(e,t,a,i){if(a.type==="stylesheet"&&(typeof i.media!="string"||matchMedia(i.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var o=ji(i.href),c=t.querySelector(Pl(o));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=tu.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=c,Rt(c);return}c=t.ownerDocument||t,i=ob(i),(o=Ra.get(o))&&Md(i,o),c=c.createElement("link"),Rt(c);var m=c;m._p=new Promise(function(g,_){m.onload=g,m.onerror=_}),Ht(c,"link",i),a.instance=c}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=tu.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var kd=0;function qC(e,t){return e.stylesheets&&e.count===0&&nu(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var i=setTimeout(function(){if(e.stylesheets&&nu(e,e.stylesheets),e.unsuspend){var c=e.unsuspend;e.unsuspend=null,c()}},6e4+t);0<e.imgBytes&&kd===0&&(kd=62500*SC());var o=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&nu(e,e.stylesheets),e.unsuspend)){var c=e.unsuspend;e.unsuspend=null,c()}},(e.imgBytes>kd?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(i),clearTimeout(o)}}:null}function tu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)nu(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var au=null;function nu(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,au=new Map,t.forEach(GC,e),au=null,tu.call(e))}function GC(e,t){if(!(t.state.loading&4)){var a=au.get(e);if(a)var i=a.get(null);else{a=new Map,au.set(e,a);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<o.length;c++){var m=o[c];(m.nodeName==="LINK"||m.getAttribute("media")!=="not all")&&(a.set(m.dataset.precedence,m),i=m)}i&&a.set(null,i)}o=t.instance,m=o.getAttribute("data-precedence"),c=a.get(m)||i,c===i&&a.set(null,o),a.set(m,o),this.count++,i=tu.bind(this),o.addEventListener("load",i),o.addEventListener("error",i),c?c.parentNode.insertBefore(o,c.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(o,e.firstChild)),t.state.loading|=4}}var es={$$typeof:ae,Provider:null,Consumer:null,_currentValue:se,_currentValue2:se,_threadCount:0};function ZC(e,t,a,i,o,c,m,g,_){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Ac(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ac(0),this.hiddenUpdates=Ac(null),this.identifierPrefix=i,this.onUncaughtError=o,this.onCaughtError=c,this.onRecoverableError=m,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=_,this.incompleteTransitions=new Map}function mb(e,t,a,i,o,c,m,g,_,z,H,Z){return e=new ZC(e,t,a,m,_,z,H,Z,g),t=1,c===!0&&(t|=24),c=ca(3,null,null,t),e.current=c,c.stateNode=e,t=mf(),t.refCount++,e.pooledCache=t,t.refCount++,c.memoizedState={element:i,isDehydrated:a,cache:t},yf(c),e}function hb(e){return e?(e=di,e):di}function pb(e,t,a,i,o,c){o=hb(o),i.context===null?i.context=o:i.pendingContext=o,i=Un(t),i.payload={element:a},c=c===void 0?null:c,c!==null&&(i.callback=c),a=Ln(e,i,t),a!==null&&(ra(a,e,t),Ml(a,e,t))}function gb(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function jd(e,t){gb(e,t),(e=e.alternate)&&gb(e,t)}function yb(e){if(e.tag===13||e.tag===31){var t=vr(e,67108864);t!==null&&ra(t,e,67108864),jd(e,67108864)}}function bb(e){if(e.tag===13||e.tag===31){var t=pa();t=Tc(t);var a=vr(e,t);a!==null&&ra(a,e,t),jd(e,t)}}var ru=!0;function YC(e,t,a,i){var o=O.T;O.T=null;var c=X.p;try{X.p=2,Vd(e,t,a,i)}finally{X.p=c,O.T=o}}function $C(e,t,a,i){var o=O.T;O.T=null;var c=X.p;try{X.p=8,Vd(e,t,a,i)}finally{X.p=c,O.T=o}}function Vd(e,t,a,i){if(ru){var o=Bd(i);if(o===null)Nd(e,t,i,iu,a),xb(e,i);else if(QC(o,e,t,a,i))i.stopPropagation();else if(xb(e,i),t&4&&-1<FC.indexOf(e)){for(;o!==null;){var c=ti(o);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var m=hr(c.pendingLanes);if(m!==0){var g=c;for(g.pendingLanes|=2,g.entangledLanes|=2;m;){var _=1<<31-jt(m);g.entanglements[1]|=_,m&=~_}Ka(c),($e&6)===0&&(qo=k()+500,Xl(0))}}break;case 31:case 13:g=vr(c,2),g!==null&&ra(g,c,2),Zo(),jd(c,2)}if(c=Bd(i),c===null&&Nd(e,t,i,iu,a),c===o)break;o=c}o!==null&&i.stopPropagation()}else Nd(e,t,i,null,a)}}function Bd(e){return e=Uc(e),Ud(e)}var iu=null;function Ud(e){if(iu=null,e=ei(e),e!==null){var t=f(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=d(t),e!==null)return e;e=null}else if(a===31){if(e=h(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return iu=e,null}function vb(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(re()){case W:return 2;case te:return 8;case fe:case Ce:return 32;case He:return 268435456;default:return 32}default:return 32}}var Ld=!1,Jn=null,In=null,Pn=null,ts=new Map,as=new Map,Wn=[],FC="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function xb(e,t){switch(e){case"focusin":case"focusout":Jn=null;break;case"dragenter":case"dragleave":In=null;break;case"mouseover":case"mouseout":Pn=null;break;case"pointerover":case"pointerout":ts.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":as.delete(t.pointerId)}}function ns(e,t,a,i,o,c){return e===null||e.nativeEvent!==c?(e={blockedOn:t,domEventName:a,eventSystemFlags:i,nativeEvent:c,targetContainers:[o]},t!==null&&(t=ti(t),t!==null&&yb(t)),e):(e.eventSystemFlags|=i,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function QC(e,t,a,i,o){switch(t){case"focusin":return Jn=ns(Jn,e,t,a,i,o),!0;case"dragenter":return In=ns(In,e,t,a,i,o),!0;case"mouseover":return Pn=ns(Pn,e,t,a,i,o),!0;case"pointerover":var c=o.pointerId;return ts.set(c,ns(ts.get(c)||null,e,t,a,i,o)),!0;case"gotpointercapture":return c=o.pointerId,as.set(c,ns(as.get(c)||null,e,t,a,i,o)),!0}return!1}function Sb(e){var t=ei(e.target);if(t!==null){var a=f(t);if(a!==null){if(t=a.tag,t===13){if(t=d(a),t!==null){e.blockedOn=t,jp(e.priority,function(){bb(a)});return}}else if(t===31){if(t=h(a),t!==null){e.blockedOn=t,jp(e.priority,function(){bb(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function lu(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=Bd(e.nativeEvent);if(a===null){a=e.nativeEvent;var i=new a.constructor(a.type,a);Bc=i,a.target.dispatchEvent(i),Bc=null}else return t=ti(a),t!==null&&yb(t),e.blockedOn=a,!1;t.shift()}return!0}function Nb(e,t,a){lu(e)&&a.delete(t)}function XC(){Ld=!1,Jn!==null&&lu(Jn)&&(Jn=null),In!==null&&lu(In)&&(In=null),Pn!==null&&lu(Pn)&&(Pn=null),ts.forEach(Nb),as.forEach(Nb)}function su(e,t){e.blockedOn===t&&(e.blockedOn=null,Ld||(Ld=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,XC)))}var ou=null;function _b(e){ou!==e&&(ou=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){ou===e&&(ou=null);for(var t=0;t<e.length;t+=3){var a=e[t],i=e[t+1],o=e[t+2];if(typeof i!="function"){if(Ud(i||a)===null)continue;break}var c=ti(a);c!==null&&(e.splice(t,3),t-=3,Bf(c,{pending:!0,data:o,method:a.method,action:i},i,o))}}))}function Bi(e){function t(_){return su(_,e)}Jn!==null&&su(Jn,e),In!==null&&su(In,e),Pn!==null&&su(Pn,e),ts.forEach(t),as.forEach(t);for(var a=0;a<Wn.length;a++){var i=Wn[a];i.blockedOn===e&&(i.blockedOn=null)}for(;0<Wn.length&&(a=Wn[0],a.blockedOn===null);)Sb(a),a.blockedOn===null&&Wn.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(i=0;i<a.length;i+=3){var o=a[i],c=a[i+1],m=o[Pt]||null;if(typeof c=="function")m||_b(a);else if(m){var g=null;if(c&&c.hasAttribute("formAction")){if(o=c,m=c[Pt]||null)g=m.formAction;else if(Ud(o)!==null)continue}else g=m.action;typeof g=="function"?a[i+1]=g:(a.splice(i,3),i-=3),_b(a)}}}function Cb(){function e(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(m){return o=m})},focusReset:"manual",scroll:"manual"})}function t(){o!==null&&(o(),o=null),i||setTimeout(a,20)}function a(){if(!i&&!navigation.transition){var c=navigation.currentEntry;c&&c.url!=null&&navigation.navigate(c.url,{state:c.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var i=!1,o=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){i=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),o!==null&&(o(),o=null)}}}function Hd(e){this._internalRoot=e}uu.prototype.render=Hd.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));var a=t.current,i=pa();pb(a,i,e,t,null,null)},uu.prototype.unmount=Hd.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;pb(e.current,2,null,e,null,null),Zo(),t[Wr]=null}};function uu(e){this._internalRoot=e}uu.prototype.unstable_scheduleHydration=function(e){if(e){var t=kp();e={blockedOn:null,target:e,priority:t};for(var a=0;a<Wn.length&&t!==0&&t<Wn[a].priority;a++);Wn.splice(a,0,e),a===0&&Sb(e)}};var Eb=r.version;if(Eb!=="19.2.4")throw Error(s(527,Eb,"19.2.4"));X.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(s(188)):(e=Object.keys(e).join(","),Error(s(268,e)));return e=p(t),e=e!==null?S(e):null,e=e===null?null:e.stateNode,e};var KC={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:O,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var cu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!cu.isDisabled&&cu.supportsFiber)try{Ct=cu.inject(KC),Qt=cu}catch{}}return Ui.createRoot=function(e,t){if(!u(e))throw Error(s(299));var a=!1,i="",o=My,c=zy,m=ky;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(i=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(c=t.onCaughtError),t.onRecoverableError!==void 0&&(m=t.onRecoverableError)),t=mb(e,1,!1,null,null,a,i,null,o,c,m,Cb),e[Wr]=t.current,Sd(e),new Hd(t)},Ui.hydrateRoot=function(e,t,a){if(!u(e))throw Error(s(299));var i=!1,o="",c=My,m=zy,g=ky,_=null;return a!=null&&(a.unstable_strictMode===!0&&(i=!0),a.identifierPrefix!==void 0&&(o=a.identifierPrefix),a.onUncaughtError!==void 0&&(c=a.onUncaughtError),a.onCaughtError!==void 0&&(m=a.onCaughtError),a.onRecoverableError!==void 0&&(g=a.onRecoverableError),a.formState!==void 0&&(_=a.formState)),t=mb(e,1,!0,t,a??null,i,o,_,c,m,g,Cb),t.context=hb(null),a=t.current,i=pa(),i=Tc(i),o=Un(i),o.callback=null,Ln(a,o,i),a=i,t.current.lanes=a,hl(t,a),Ka(t),e[Wr]=t.current,Sd(e),new uu(t)},Ui.version="19.2.4",Ui}var Id;function kb(){if(Id)return du.exports;Id=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(r){console.error(r)}}return n(),du.exports=zb(),du.exports}var jb=kb(),Ue;(function(n){n.assertEqual=u=>{};function r(u){}n.assertIs=r;function l(u){throw new Error}n.assertNever=l,n.arrayToEnum=u=>{const f={};for(const d of u)f[d]=d;return f},n.getValidEnumValues=u=>{const f=n.objectKeys(u).filter(h=>typeof u[u[h]]!="number"),d={};for(const h of f)d[h]=u[h];return n.objectValues(d)},n.objectValues=u=>n.objectKeys(u).map(function(f){return u[f]}),n.objectKeys=typeof Object.keys=="function"?u=>Object.keys(u):u=>{const f=[];for(const d in u)Object.prototype.hasOwnProperty.call(u,d)&&f.push(d);return f},n.find=(u,f)=>{for(const d of u)if(f(d))return d},n.isInteger=typeof Number.isInteger=="function"?u=>Number.isInteger(u):u=>typeof u=="number"&&Number.isFinite(u)&&Math.floor(u)===u;function s(u,f=" | "){return u.map(d=>typeof d=="string"?`'${d}'`:d).join(f)}n.joinValues=s,n.jsonStringifyReplacer=(u,f)=>typeof f=="bigint"?f.toString():f})(Ue||(Ue={}));var Pd;(function(n){n.mergeShapes=(r,l)=>({...r,...l})})(Pd||(Pd={}));const de=Ue.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Nn=n=>{switch(typeof n){case"undefined":return de.undefined;case"string":return de.string;case"number":return Number.isNaN(n)?de.nan:de.number;case"boolean":return de.boolean;case"function":return de.function;case"bigint":return de.bigint;case"symbol":return de.symbol;case"object":return Array.isArray(n)?de.array:n===null?de.null:n.then&&typeof n.then=="function"&&n.catch&&typeof n.catch=="function"?de.promise:typeof Map<"u"&&n instanceof Map?de.map:typeof Set<"u"&&n instanceof Set?de.set:typeof Date<"u"&&n instanceof Date?de.date:de.object;default:return de.unknown}},I=Ue.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class Pa extends Error{get errors(){return this.issues}constructor(r){super(),this.issues=[],this.addIssue=s=>{this.issues=[...this.issues,s]},this.addIssues=(s=[])=>{this.issues=[...this.issues,...s]};const l=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,l):this.__proto__=l,this.name="ZodError",this.issues=r}format(r){const l=r||function(f){return f.message},s={_errors:[]},u=f=>{for(const d of f.issues)if(d.code==="invalid_union")d.unionErrors.map(u);else if(d.code==="invalid_return_type")u(d.returnTypeError);else if(d.code==="invalid_arguments")u(d.argumentsError);else if(d.path.length===0)s._errors.push(l(d));else{let h=s,y=0;for(;y<d.path.length;){const p=d.path[y];y===d.path.length-1?(h[p]=h[p]||{_errors:[]},h[p]._errors.push(l(d))):h[p]=h[p]||{_errors:[]},h=h[p],y++}}};return u(this),s}static assert(r){if(!(r instanceof Pa))throw new Error(`Not a ZodError: ${r}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,Ue.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(r=l=>l.message){const l={},s=[];for(const u of this.issues)if(u.path.length>0){const f=u.path[0];l[f]=l[f]||[],l[f].push(r(u))}else s.push(r(u));return{formErrors:s,fieldErrors:l}}get formErrors(){return this.flatten()}}Pa.create=n=>new Pa(n);const bu=(n,r)=>{let l;switch(n.code){case I.invalid_type:n.received===de.undefined?l="Required":l=`Expected ${n.expected}, received ${n.received}`;break;case I.invalid_literal:l=`Invalid literal value, expected ${JSON.stringify(n.expected,Ue.jsonStringifyReplacer)}`;break;case I.unrecognized_keys:l=`Unrecognized key(s) in object: ${Ue.joinValues(n.keys,", ")}`;break;case I.invalid_union:l="Invalid input";break;case I.invalid_union_discriminator:l=`Invalid discriminator value. Expected ${Ue.joinValues(n.options)}`;break;case I.invalid_enum_value:l=`Invalid enum value. Expected ${Ue.joinValues(n.options)}, received '${n.received}'`;break;case I.invalid_arguments:l="Invalid function arguments";break;case I.invalid_return_type:l="Invalid function return type";break;case I.invalid_date:l="Invalid date";break;case I.invalid_string:typeof n.validation=="object"?"includes"in n.validation?(l=`Invalid input: must include "${n.validation.includes}"`,typeof n.validation.position=="number"&&(l=`${l} at one or more positions greater than or equal to ${n.validation.position}`)):"startsWith"in n.validation?l=`Invalid input: must start with "${n.validation.startsWith}"`:"endsWith"in n.validation?l=`Invalid input: must end with "${n.validation.endsWith}"`:Ue.assertNever(n.validation):n.validation!=="regex"?l=`Invalid ${n.validation}`:l="Invalid";break;case I.too_small:n.type==="array"?l=`Array must contain ${n.exact?"exactly":n.inclusive?"at least":"more than"} ${n.minimum} element(s)`:n.type==="string"?l=`String must contain ${n.exact?"exactly":n.inclusive?"at least":"over"} ${n.minimum} character(s)`:n.type==="number"?l=`Number must be ${n.exact?"exactly equal to ":n.inclusive?"greater than or equal to ":"greater than "}${n.minimum}`:n.type==="bigint"?l=`Number must be ${n.exact?"exactly equal to ":n.inclusive?"greater than or equal to ":"greater than "}${n.minimum}`:n.type==="date"?l=`Date must be ${n.exact?"exactly equal to ":n.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(n.minimum))}`:l="Invalid input";break;case I.too_big:n.type==="array"?l=`Array must contain ${n.exact?"exactly":n.inclusive?"at most":"less than"} ${n.maximum} element(s)`:n.type==="string"?l=`String must contain ${n.exact?"exactly":n.inclusive?"at most":"under"} ${n.maximum} character(s)`:n.type==="number"?l=`Number must be ${n.exact?"exactly":n.inclusive?"less than or equal to":"less than"} ${n.maximum}`:n.type==="bigint"?l=`BigInt must be ${n.exact?"exactly":n.inclusive?"less than or equal to":"less than"} ${n.maximum}`:n.type==="date"?l=`Date must be ${n.exact?"exactly":n.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(n.maximum))}`:l="Invalid input";break;case I.custom:l="Invalid input";break;case I.invalid_intersection_types:l="Intersection results could not be merged";break;case I.not_multiple_of:l=`Number must be a multiple of ${n.multipleOf}`;break;case I.not_finite:l="Number must be finite";break;default:l=r.defaultError,Ue.assertNever(n)}return{message:l}};let Vb=bu;function Bb(){return Vb}const Ub=n=>{const{data:r,path:l,errorMaps:s,issueData:u}=n,f=[...l,...u.path||[]],d={...u,path:f};if(u.message!==void 0)return{...u,path:f,message:u.message};let h="";const y=s.filter(p=>!!p).slice().reverse();for(const p of y)h=p(d,{data:r,defaultError:h}).message;return{...u,path:f,message:h}};function ie(n,r){const l=Bb(),s=Ub({issueData:r,data:n.data,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,l,l===bu?void 0:bu].filter(u=>!!u)});n.common.issues.push(s)}class ia{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(r,l){const s=[];for(const u of l){if(u.status==="aborted")return Se;u.status==="dirty"&&r.dirty(),s.push(u.value)}return{status:r.value,value:s}}static async mergeObjectAsync(r,l){const s=[];for(const u of l){const f=await u.key,d=await u.value;s.push({key:f,value:d})}return ia.mergeObjectSync(r,s)}static mergeObjectSync(r,l){const s={};for(const u of l){const{key:f,value:d}=u;if(f.status==="aborted"||d.status==="aborted")return Se;f.status==="dirty"&&r.dirty(),d.status==="dirty"&&r.dirty(),f.value!=="__proto__"&&(typeof d.value<"u"||u.alwaysSet)&&(s[f.value]=d.value)}return{status:r.value,value:s}}}const Se=Object.freeze({status:"aborted"}),Li=n=>({status:"dirty",value:n}),ga=n=>({status:"valid",value:n}),Wd=n=>n.status==="aborted",em=n=>n.status==="dirty",Mr=n=>n.status==="valid",is=n=>typeof Promise<"u"&&n instanceof Promise;var he;(function(n){n.errToObj=r=>typeof r=="string"?{message:r}:r||{},n.toString=r=>typeof r=="string"?r:r==null?void 0:r.message})(he||(he={}));class _n{constructor(r,l,s,u){this._cachedPath=[],this.parent=r,this.data=l,this._path=s,this._key=u}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const tm=(n,r)=>{if(Mr(r))return{success:!0,data:r.value};if(!n.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const l=new Pa(n.common.issues);return this._error=l,this._error}}};function Ae(n){if(!n)return{};const{errorMap:r,invalid_type_error:l,required_error:s,description:u}=n;if(r&&(l||s))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return r?{errorMap:r,description:u}:{errorMap:(d,h)=>{const{message:y}=n;return d.code==="invalid_enum_value"?{message:y??h.defaultError}:typeof h.data>"u"?{message:y??s??h.defaultError}:d.code!=="invalid_type"?{message:h.defaultError}:{message:y??l??h.defaultError}},description:u}}class Ve{get description(){return this._def.description}_getType(r){return Nn(r.data)}_getOrReturnCtx(r,l){return l||{common:r.parent.common,data:r.data,parsedType:Nn(r.data),schemaErrorMap:this._def.errorMap,path:r.path,parent:r.parent}}_processInputParams(r){return{status:new ia,ctx:{common:r.parent.common,data:r.data,parsedType:Nn(r.data),schemaErrorMap:this._def.errorMap,path:r.path,parent:r.parent}}}_parseSync(r){const l=this._parse(r);if(is(l))throw new Error("Synchronous parse encountered promise.");return l}_parseAsync(r){const l=this._parse(r);return Promise.resolve(l)}parse(r,l){const s=this.safeParse(r,l);if(s.success)return s.data;throw s.error}safeParse(r,l){const s={common:{issues:[],async:(l==null?void 0:l.async)??!1,contextualErrorMap:l==null?void 0:l.errorMap},path:(l==null?void 0:l.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:r,parsedType:Nn(r)},u=this._parseSync({data:r,path:s.path,parent:s});return tm(s,u)}"~validate"(r){var s,u;const l={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:r,parsedType:Nn(r)};if(!this["~standard"].async)try{const f=this._parseSync({data:r,path:[],parent:l});return Mr(f)?{value:f.value}:{issues:l.common.issues}}catch(f){(u=(s=f==null?void 0:f.message)==null?void 0:s.toLowerCase())!=null&&u.includes("encountered")&&(this["~standard"].async=!0),l.common={issues:[],async:!0}}return this._parseAsync({data:r,path:[],parent:l}).then(f=>Mr(f)?{value:f.value}:{issues:l.common.issues})}async parseAsync(r,l){const s=await this.safeParseAsync(r,l);if(s.success)return s.data;throw s.error}async safeParseAsync(r,l){const s={common:{issues:[],contextualErrorMap:l==null?void 0:l.errorMap,async:!0},path:(l==null?void 0:l.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:r,parsedType:Nn(r)},u=this._parse({data:r,path:s.path,parent:s}),f=await(is(u)?u:Promise.resolve(u));return tm(s,f)}refine(r,l){const s=u=>typeof l=="string"||typeof l>"u"?{message:l}:typeof l=="function"?l(u):l;return this._refinement((u,f)=>{const d=r(u),h=()=>f.addIssue({code:I.custom,...s(u)});return typeof Promise<"u"&&d instanceof Promise?d.then(y=>y?!0:(h(),!1)):d?!0:(h(),!1)})}refinement(r,l){return this._refinement((s,u)=>r(s)?!0:(u.addIssue(typeof l=="function"?l(s,u):l),!1))}_refinement(r){return new jr({schema:this,typeName:Ne.ZodEffects,effect:{type:"refinement",refinement:r}})}superRefine(r){return this._refinement(r)}constructor(r){this.spa=this.safeParseAsync,this._def=r,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:l=>this["~validate"](l)}}optional(){return wn.create(this,this._def)}nullable(){return Vr.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return La.create(this)}promise(){return us.create(this,this._def)}or(r){return ss.create([this,r],this._def)}and(r){return os.create(this,r,this._def)}transform(r){return new jr({...Ae(this._def),schema:this,typeName:Ne.ZodEffects,effect:{type:"transform",transform:r}})}default(r){const l=typeof r=="function"?r:()=>r;return new Su({...Ae(this._def),innerType:this,defaultValue:l,typeName:Ne.ZodDefault})}brand(){return new sv({typeName:Ne.ZodBranded,type:this,...Ae(this._def)})}catch(r){const l=typeof r=="function"?r:()=>r;return new Nu({...Ae(this._def),innerType:this,catchValue:l,typeName:Ne.ZodCatch})}describe(r){const l=this.constructor;return new l({...this._def,description:r})}pipe(r){return _u.create(this,r)}readonly(){return Cu.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const Lb=/^c[^\s-]{8,}$/i,Hb=/^[0-9a-z]+$/,qb=/^[0-9A-HJKMNP-TV-Z]{26}$/i,Gb=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,Zb=/^[a-z0-9_-]{21}$/i,Yb=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,$b=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,Fb=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,Qb="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let vu;const Xb=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Kb=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,Jb=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,Ib=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Pb=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,Wb=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,am="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",ev=new RegExp(`^${am}$`);function nm(n){let r="[0-5]\\d";n.precision?r=`${r}\\.\\d{${n.precision}}`:n.precision==null&&(r=`${r}(\\.\\d+)?`);const l=n.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${r})${l}`}function tv(n){return new RegExp(`^${nm(n)}$`)}function av(n){let r=`${am}T${nm(n)}`;const l=[];return l.push(n.local?"Z?":"Z"),n.offset&&l.push("([+-]\\d{2}:?\\d{2})"),r=`${r}(${l.join("|")})`,new RegExp(`^${r}$`)}function nv(n,r){return!!((r==="v4"||!r)&&Xb.test(n)||(r==="v6"||!r)&&Jb.test(n))}function rv(n,r){if(!Yb.test(n))return!1;try{const[l]=n.split(".");if(!l)return!1;const s=l.replace(/-/g,"+").replace(/_/g,"/").padEnd(l.length+(4-l.length%4)%4,"="),u=JSON.parse(atob(s));return!(typeof u!="object"||u===null||"typ"in u&&(u==null?void 0:u.typ)!=="JWT"||!u.alg||r&&u.alg!==r)}catch{return!1}}function iv(n,r){return!!((r==="v4"||!r)&&Kb.test(n)||(r==="v6"||!r)&&Ib.test(n))}class Cn extends Ve{_parse(r){if(this._def.coerce&&(r.data=String(r.data)),this._getType(r)!==de.string){const f=this._getOrReturnCtx(r);return ie(f,{code:I.invalid_type,expected:de.string,received:f.parsedType}),Se}const s=new ia;let u;for(const f of this._def.checks)if(f.kind==="min")r.data.length<f.value&&(u=this._getOrReturnCtx(r,u),ie(u,{code:I.too_small,minimum:f.value,type:"string",inclusive:!0,exact:!1,message:f.message}),s.dirty());else if(f.kind==="max")r.data.length>f.value&&(u=this._getOrReturnCtx(r,u),ie(u,{code:I.too_big,maximum:f.value,type:"string",inclusive:!0,exact:!1,message:f.message}),s.dirty());else if(f.kind==="length"){const d=r.data.length>f.value,h=r.data.length<f.value;(d||h)&&(u=this._getOrReturnCtx(r,u),d?ie(u,{code:I.too_big,maximum:f.value,type:"string",inclusive:!0,exact:!0,message:f.message}):h&&ie(u,{code:I.too_small,minimum:f.value,type:"string",inclusive:!0,exact:!0,message:f.message}),s.dirty())}else if(f.kind==="email")Fb.test(r.data)||(u=this._getOrReturnCtx(r,u),ie(u,{validation:"email",code:I.invalid_string,message:f.message}),s.dirty());else if(f.kind==="emoji")vu||(vu=new RegExp(Qb,"u")),vu.test(r.data)||(u=this._getOrReturnCtx(r,u),ie(u,{validation:"emoji",code:I.invalid_string,message:f.message}),s.dirty());else if(f.kind==="uuid")Gb.test(r.data)||(u=this._getOrReturnCtx(r,u),ie(u,{validation:"uuid",code:I.invalid_string,message:f.message}),s.dirty());else if(f.kind==="nanoid")Zb.test(r.data)||(u=this._getOrReturnCtx(r,u),ie(u,{validation:"nanoid",code:I.invalid_string,message:f.message}),s.dirty());else if(f.kind==="cuid")Lb.test(r.data)||(u=this._getOrReturnCtx(r,u),ie(u,{validation:"cuid",code:I.invalid_string,message:f.message}),s.dirty());else if(f.kind==="cuid2")Hb.test(r.data)||(u=this._getOrReturnCtx(r,u),ie(u,{validation:"cuid2",code:I.invalid_string,message:f.message}),s.dirty());else if(f.kind==="ulid")qb.test(r.data)||(u=this._getOrReturnCtx(r,u),ie(u,{validation:"ulid",code:I.invalid_string,message:f.message}),s.dirty());else if(f.kind==="url")try{new URL(r.data)}catch{u=this._getOrReturnCtx(r,u),ie(u,{validation:"url",code:I.invalid_string,message:f.message}),s.dirty()}else f.kind==="regex"?(f.regex.lastIndex=0,f.regex.test(r.data)||(u=this._getOrReturnCtx(r,u),ie(u,{validation:"regex",code:I.invalid_string,message:f.message}),s.dirty())):f.kind==="trim"?r.data=r.data.trim():f.kind==="includes"?r.data.includes(f.value,f.position)||(u=this._getOrReturnCtx(r,u),ie(u,{code:I.invalid_string,validation:{includes:f.value,position:f.position},message:f.message}),s.dirty()):f.kind==="toLowerCase"?r.data=r.data.toLowerCase():f.kind==="toUpperCase"?r.data=r.data.toUpperCase():f.kind==="startsWith"?r.data.startsWith(f.value)||(u=this._getOrReturnCtx(r,u),ie(u,{code:I.invalid_string,validation:{startsWith:f.value},message:f.message}),s.dirty()):f.kind==="endsWith"?r.data.endsWith(f.value)||(u=this._getOrReturnCtx(r,u),ie(u,{code:I.invalid_string,validation:{endsWith:f.value},message:f.message}),s.dirty()):f.kind==="datetime"?av(f).test(r.data)||(u=this._getOrReturnCtx(r,u),ie(u,{code:I.invalid_string,validation:"datetime",message:f.message}),s.dirty()):f.kind==="date"?ev.test(r.data)||(u=this._getOrReturnCtx(r,u),ie(u,{code:I.invalid_string,validation:"date",message:f.message}),s.dirty()):f.kind==="time"?tv(f).test(r.data)||(u=this._getOrReturnCtx(r,u),ie(u,{code:I.invalid_string,validation:"time",message:f.message}),s.dirty()):f.kind==="duration"?$b.test(r.data)||(u=this._getOrReturnCtx(r,u),ie(u,{validation:"duration",code:I.invalid_string,message:f.message}),s.dirty()):f.kind==="ip"?nv(r.data,f.version)||(u=this._getOrReturnCtx(r,u),ie(u,{validation:"ip",code:I.invalid_string,message:f.message}),s.dirty()):f.kind==="jwt"?rv(r.data,f.alg)||(u=this._getOrReturnCtx(r,u),ie(u,{validation:"jwt",code:I.invalid_string,message:f.message}),s.dirty()):f.kind==="cidr"?iv(r.data,f.version)||(u=this._getOrReturnCtx(r,u),ie(u,{validation:"cidr",code:I.invalid_string,message:f.message}),s.dirty()):f.kind==="base64"?Pb.test(r.data)||(u=this._getOrReturnCtx(r,u),ie(u,{validation:"base64",code:I.invalid_string,message:f.message}),s.dirty()):f.kind==="base64url"?Wb.test(r.data)||(u=this._getOrReturnCtx(r,u),ie(u,{validation:"base64url",code:I.invalid_string,message:f.message}),s.dirty()):Ue.assertNever(f);return{status:s.value,value:r.data}}_regex(r,l,s){return this.refinement(u=>r.test(u),{validation:l,code:I.invalid_string,...he.errToObj(s)})}_addCheck(r){return new Cn({...this._def,checks:[...this._def.checks,r]})}email(r){return this._addCheck({kind:"email",...he.errToObj(r)})}url(r){return this._addCheck({kind:"url",...he.errToObj(r)})}emoji(r){return this._addCheck({kind:"emoji",...he.errToObj(r)})}uuid(r){return this._addCheck({kind:"uuid",...he.errToObj(r)})}nanoid(r){return this._addCheck({kind:"nanoid",...he.errToObj(r)})}cuid(r){return this._addCheck({kind:"cuid",...he.errToObj(r)})}cuid2(r){return this._addCheck({kind:"cuid2",...he.errToObj(r)})}ulid(r){return this._addCheck({kind:"ulid",...he.errToObj(r)})}base64(r){return this._addCheck({kind:"base64",...he.errToObj(r)})}base64url(r){return this._addCheck({kind:"base64url",...he.errToObj(r)})}jwt(r){return this._addCheck({kind:"jwt",...he.errToObj(r)})}ip(r){return this._addCheck({kind:"ip",...he.errToObj(r)})}cidr(r){return this._addCheck({kind:"cidr",...he.errToObj(r)})}datetime(r){return typeof r=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:r}):this._addCheck({kind:"datetime",precision:typeof(r==null?void 0:r.precision)>"u"?null:r==null?void 0:r.precision,offset:(r==null?void 0:r.offset)??!1,local:(r==null?void 0:r.local)??!1,...he.errToObj(r==null?void 0:r.message)})}date(r){return this._addCheck({kind:"date",message:r})}time(r){return typeof r=="string"?this._addCheck({kind:"time",precision:null,message:r}):this._addCheck({kind:"time",precision:typeof(r==null?void 0:r.precision)>"u"?null:r==null?void 0:r.precision,...he.errToObj(r==null?void 0:r.message)})}duration(r){return this._addCheck({kind:"duration",...he.errToObj(r)})}regex(r,l){return this._addCheck({kind:"regex",regex:r,...he.errToObj(l)})}includes(r,l){return this._addCheck({kind:"includes",value:r,position:l==null?void 0:l.position,...he.errToObj(l==null?void 0:l.message)})}startsWith(r,l){return this._addCheck({kind:"startsWith",value:r,...he.errToObj(l)})}endsWith(r,l){return this._addCheck({kind:"endsWith",value:r,...he.errToObj(l)})}min(r,l){return this._addCheck({kind:"min",value:r,...he.errToObj(l)})}max(r,l){return this._addCheck({kind:"max",value:r,...he.errToObj(l)})}length(r,l){return this._addCheck({kind:"length",value:r,...he.errToObj(l)})}nonempty(r){return this.min(1,he.errToObj(r))}trim(){return new Cn({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Cn({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Cn({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(r=>r.kind==="datetime")}get isDate(){return!!this._def.checks.find(r=>r.kind==="date")}get isTime(){return!!this._def.checks.find(r=>r.kind==="time")}get isDuration(){return!!this._def.checks.find(r=>r.kind==="duration")}get isEmail(){return!!this._def.checks.find(r=>r.kind==="email")}get isURL(){return!!this._def.checks.find(r=>r.kind==="url")}get isEmoji(){return!!this._def.checks.find(r=>r.kind==="emoji")}get isUUID(){return!!this._def.checks.find(r=>r.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(r=>r.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(r=>r.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(r=>r.kind==="cuid2")}get isULID(){return!!this._def.checks.find(r=>r.kind==="ulid")}get isIP(){return!!this._def.checks.find(r=>r.kind==="ip")}get isCIDR(){return!!this._def.checks.find(r=>r.kind==="cidr")}get isBase64(){return!!this._def.checks.find(r=>r.kind==="base64")}get isBase64url(){return!!this._def.checks.find(r=>r.kind==="base64url")}get minLength(){let r=null;for(const l of this._def.checks)l.kind==="min"&&(r===null||l.value>r)&&(r=l.value);return r}get maxLength(){let r=null;for(const l of this._def.checks)l.kind==="max"&&(r===null||l.value<r)&&(r=l.value);return r}}Cn.create=n=>new Cn({checks:[],typeName:Ne.ZodString,coerce:(n==null?void 0:n.coerce)??!1,...Ae(n)});function lv(n,r){const l=(n.toString().split(".")[1]||"").length,s=(r.toString().split(".")[1]||"").length,u=l>s?l:s,f=Number.parseInt(n.toFixed(u).replace(".","")),d=Number.parseInt(r.toFixed(u).replace(".",""));return f%d/10**u}class Hi extends Ve{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(r){if(this._def.coerce&&(r.data=Number(r.data)),this._getType(r)!==de.number){const f=this._getOrReturnCtx(r);return ie(f,{code:I.invalid_type,expected:de.number,received:f.parsedType}),Se}let s;const u=new ia;for(const f of this._def.checks)f.kind==="int"?Ue.isInteger(r.data)||(s=this._getOrReturnCtx(r,s),ie(s,{code:I.invalid_type,expected:"integer",received:"float",message:f.message}),u.dirty()):f.kind==="min"?(f.inclusive?r.data<f.value:r.data<=f.value)&&(s=this._getOrReturnCtx(r,s),ie(s,{code:I.too_small,minimum:f.value,type:"number",inclusive:f.inclusive,exact:!1,message:f.message}),u.dirty()):f.kind==="max"?(f.inclusive?r.data>f.value:r.data>=f.value)&&(s=this._getOrReturnCtx(r,s),ie(s,{code:I.too_big,maximum:f.value,type:"number",inclusive:f.inclusive,exact:!1,message:f.message}),u.dirty()):f.kind==="multipleOf"?lv(r.data,f.value)!==0&&(s=this._getOrReturnCtx(r,s),ie(s,{code:I.not_multiple_of,multipleOf:f.value,message:f.message}),u.dirty()):f.kind==="finite"?Number.isFinite(r.data)||(s=this._getOrReturnCtx(r,s),ie(s,{code:I.not_finite,message:f.message}),u.dirty()):Ue.assertNever(f);return{status:u.value,value:r.data}}gte(r,l){return this.setLimit("min",r,!0,he.toString(l))}gt(r,l){return this.setLimit("min",r,!1,he.toString(l))}lte(r,l){return this.setLimit("max",r,!0,he.toString(l))}lt(r,l){return this.setLimit("max",r,!1,he.toString(l))}setLimit(r,l,s,u){return new Hi({...this._def,checks:[...this._def.checks,{kind:r,value:l,inclusive:s,message:he.toString(u)}]})}_addCheck(r){return new Hi({...this._def,checks:[...this._def.checks,r]})}int(r){return this._addCheck({kind:"int",message:he.toString(r)})}positive(r){return this._addCheck({kind:"min",value:0,inclusive:!1,message:he.toString(r)})}negative(r){return this._addCheck({kind:"max",value:0,inclusive:!1,message:he.toString(r)})}nonpositive(r){return this._addCheck({kind:"max",value:0,inclusive:!0,message:he.toString(r)})}nonnegative(r){return this._addCheck({kind:"min",value:0,inclusive:!0,message:he.toString(r)})}multipleOf(r,l){return this._addCheck({kind:"multipleOf",value:r,message:he.toString(l)})}finite(r){return this._addCheck({kind:"finite",message:he.toString(r)})}safe(r){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:he.toString(r)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:he.toString(r)})}get minValue(){let r=null;for(const l of this._def.checks)l.kind==="min"&&(r===null||l.value>r)&&(r=l.value);return r}get maxValue(){let r=null;for(const l of this._def.checks)l.kind==="max"&&(r===null||l.value<r)&&(r=l.value);return r}get isInt(){return!!this._def.checks.find(r=>r.kind==="int"||r.kind==="multipleOf"&&Ue.isInteger(r.value))}get isFinite(){let r=null,l=null;for(const s of this._def.checks){if(s.kind==="finite"||s.kind==="int"||s.kind==="multipleOf")return!0;s.kind==="min"?(l===null||s.value>l)&&(l=s.value):s.kind==="max"&&(r===null||s.value<r)&&(r=s.value)}return Number.isFinite(l)&&Number.isFinite(r)}}Hi.create=n=>new Hi({checks:[],typeName:Ne.ZodNumber,coerce:(n==null?void 0:n.coerce)||!1,...Ae(n)});class qi extends Ve{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(r){if(this._def.coerce)try{r.data=BigInt(r.data)}catch{return this._getInvalidInput(r)}if(this._getType(r)!==de.bigint)return this._getInvalidInput(r);let s;const u=new ia;for(const f of this._def.checks)f.kind==="min"?(f.inclusive?r.data<f.value:r.data<=f.value)&&(s=this._getOrReturnCtx(r,s),ie(s,{code:I.too_small,type:"bigint",minimum:f.value,inclusive:f.inclusive,message:f.message}),u.dirty()):f.kind==="max"?(f.inclusive?r.data>f.value:r.data>=f.value)&&(s=this._getOrReturnCtx(r,s),ie(s,{code:I.too_big,type:"bigint",maximum:f.value,inclusive:f.inclusive,message:f.message}),u.dirty()):f.kind==="multipleOf"?r.data%f.value!==BigInt(0)&&(s=this._getOrReturnCtx(r,s),ie(s,{code:I.not_multiple_of,multipleOf:f.value,message:f.message}),u.dirty()):Ue.assertNever(f);return{status:u.value,value:r.data}}_getInvalidInput(r){const l=this._getOrReturnCtx(r);return ie(l,{code:I.invalid_type,expected:de.bigint,received:l.parsedType}),Se}gte(r,l){return this.setLimit("min",r,!0,he.toString(l))}gt(r,l){return this.setLimit("min",r,!1,he.toString(l))}lte(r,l){return this.setLimit("max",r,!0,he.toString(l))}lt(r,l){return this.setLimit("max",r,!1,he.toString(l))}setLimit(r,l,s,u){return new qi({...this._def,checks:[...this._def.checks,{kind:r,value:l,inclusive:s,message:he.toString(u)}]})}_addCheck(r){return new qi({...this._def,checks:[...this._def.checks,r]})}positive(r){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:he.toString(r)})}negative(r){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:he.toString(r)})}nonpositive(r){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:he.toString(r)})}nonnegative(r){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:he.toString(r)})}multipleOf(r,l){return this._addCheck({kind:"multipleOf",value:r,message:he.toString(l)})}get minValue(){let r=null;for(const l of this._def.checks)l.kind==="min"&&(r===null||l.value>r)&&(r=l.value);return r}get maxValue(){let r=null;for(const l of this._def.checks)l.kind==="max"&&(r===null||l.value<r)&&(r=l.value);return r}}qi.create=n=>new qi({checks:[],typeName:Ne.ZodBigInt,coerce:(n==null?void 0:n.coerce)??!1,...Ae(n)});class rm extends Ve{_parse(r){if(this._def.coerce&&(r.data=!!r.data),this._getType(r)!==de.boolean){const s=this._getOrReturnCtx(r);return ie(s,{code:I.invalid_type,expected:de.boolean,received:s.parsedType}),Se}return ga(r.data)}}rm.create=n=>new rm({typeName:Ne.ZodBoolean,coerce:(n==null?void 0:n.coerce)||!1,...Ae(n)});class ls extends Ve{_parse(r){if(this._def.coerce&&(r.data=new Date(r.data)),this._getType(r)!==de.date){const f=this._getOrReturnCtx(r);return ie(f,{code:I.invalid_type,expected:de.date,received:f.parsedType}),Se}if(Number.isNaN(r.data.getTime())){const f=this._getOrReturnCtx(r);return ie(f,{code:I.invalid_date}),Se}const s=new ia;let u;for(const f of this._def.checks)f.kind==="min"?r.data.getTime()<f.value&&(u=this._getOrReturnCtx(r,u),ie(u,{code:I.too_small,message:f.message,inclusive:!0,exact:!1,minimum:f.value,type:"date"}),s.dirty()):f.kind==="max"?r.data.getTime()>f.value&&(u=this._getOrReturnCtx(r,u),ie(u,{code:I.too_big,message:f.message,inclusive:!0,exact:!1,maximum:f.value,type:"date"}),s.dirty()):Ue.assertNever(f);return{status:s.value,value:new Date(r.data.getTime())}}_addCheck(r){return new ls({...this._def,checks:[...this._def.checks,r]})}min(r,l){return this._addCheck({kind:"min",value:r.getTime(),message:he.toString(l)})}max(r,l){return this._addCheck({kind:"max",value:r.getTime(),message:he.toString(l)})}get minDate(){let r=null;for(const l of this._def.checks)l.kind==="min"&&(r===null||l.value>r)&&(r=l.value);return r!=null?new Date(r):null}get maxDate(){let r=null;for(const l of this._def.checks)l.kind==="max"&&(r===null||l.value<r)&&(r=l.value);return r!=null?new Date(r):null}}ls.create=n=>new ls({checks:[],coerce:(n==null?void 0:n.coerce)||!1,typeName:Ne.ZodDate,...Ae(n)});class im extends Ve{_parse(r){if(this._getType(r)!==de.symbol){const s=this._getOrReturnCtx(r);return ie(s,{code:I.invalid_type,expected:de.symbol,received:s.parsedType}),Se}return ga(r.data)}}im.create=n=>new im({typeName:Ne.ZodSymbol,...Ae(n)});class lm extends Ve{_parse(r){if(this._getType(r)!==de.undefined){const s=this._getOrReturnCtx(r);return ie(s,{code:I.invalid_type,expected:de.undefined,received:s.parsedType}),Se}return ga(r.data)}}lm.create=n=>new lm({typeName:Ne.ZodUndefined,...Ae(n)});class sm extends Ve{_parse(r){if(this._getType(r)!==de.null){const s=this._getOrReturnCtx(r);return ie(s,{code:I.invalid_type,expected:de.null,received:s.parsedType}),Se}return ga(r.data)}}sm.create=n=>new sm({typeName:Ne.ZodNull,...Ae(n)});class om extends Ve{constructor(){super(...arguments),this._any=!0}_parse(r){return ga(r.data)}}om.create=n=>new om({typeName:Ne.ZodAny,...Ae(n)});class um extends Ve{constructor(){super(...arguments),this._unknown=!0}_parse(r){return ga(r.data)}}um.create=n=>new um({typeName:Ne.ZodUnknown,...Ae(n)});class En extends Ve{_parse(r){const l=this._getOrReturnCtx(r);return ie(l,{code:I.invalid_type,expected:de.never,received:l.parsedType}),Se}}En.create=n=>new En({typeName:Ne.ZodNever,...Ae(n)});class cm extends Ve{_parse(r){if(this._getType(r)!==de.undefined){const s=this._getOrReturnCtx(r);return ie(s,{code:I.invalid_type,expected:de.void,received:s.parsedType}),Se}return ga(r.data)}}cm.create=n=>new cm({typeName:Ne.ZodVoid,...Ae(n)});class La extends Ve{_parse(r){const{ctx:l,status:s}=this._processInputParams(r),u=this._def;if(l.parsedType!==de.array)return ie(l,{code:I.invalid_type,expected:de.array,received:l.parsedType}),Se;if(u.exactLength!==null){const d=l.data.length>u.exactLength.value,h=l.data.length<u.exactLength.value;(d||h)&&(ie(l,{code:d?I.too_big:I.too_small,minimum:h?u.exactLength.value:void 0,maximum:d?u.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:u.exactLength.message}),s.dirty())}if(u.minLength!==null&&l.data.length<u.minLength.value&&(ie(l,{code:I.too_small,minimum:u.minLength.value,type:"array",inclusive:!0,exact:!1,message:u.minLength.message}),s.dirty()),u.maxLength!==null&&l.data.length>u.maxLength.value&&(ie(l,{code:I.too_big,maximum:u.maxLength.value,type:"array",inclusive:!0,exact:!1,message:u.maxLength.message}),s.dirty()),l.common.async)return Promise.all([...l.data].map((d,h)=>u.type._parseAsync(new _n(l,d,l.path,h)))).then(d=>ia.mergeArray(s,d));const f=[...l.data].map((d,h)=>u.type._parseSync(new _n(l,d,l.path,h)));return ia.mergeArray(s,f)}get element(){return this._def.type}min(r,l){return new La({...this._def,minLength:{value:r,message:he.toString(l)}})}max(r,l){return new La({...this._def,maxLength:{value:r,message:he.toString(l)}})}length(r,l){return new La({...this._def,exactLength:{value:r,message:he.toString(l)}})}nonempty(r){return this.min(1,r)}}La.create=(n,r)=>new La({type:n,minLength:null,maxLength:null,exactLength:null,typeName:Ne.ZodArray,...Ae(r)});function zr(n){if(n instanceof xt){const r={};for(const l in n.shape){const s=n.shape[l];r[l]=wn.create(zr(s))}return new xt({...n._def,shape:()=>r})}else return n instanceof La?new La({...n._def,type:zr(n.element)}):n instanceof wn?wn.create(zr(n.unwrap())):n instanceof Vr?Vr.create(zr(n.unwrap())):n instanceof ar?ar.create(n.items.map(r=>zr(r))):n}class xt extends Ve{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const r=this._def.shape(),l=Ue.objectKeys(r);return this._cached={shape:r,keys:l},this._cached}_parse(r){if(this._getType(r)!==de.object){const p=this._getOrReturnCtx(r);return ie(p,{code:I.invalid_type,expected:de.object,received:p.parsedType}),Se}const{status:s,ctx:u}=this._processInputParams(r),{shape:f,keys:d}=this._getCached(),h=[];if(!(this._def.catchall instanceof En&&this._def.unknownKeys==="strip"))for(const p in u.data)d.includes(p)||h.push(p);const y=[];for(const p of d){const S=f[p],v=u.data[p];y.push({key:{status:"valid",value:p},value:S._parse(new _n(u,v,u.path,p)),alwaysSet:p in u.data})}if(this._def.catchall instanceof En){const p=this._def.unknownKeys;if(p==="passthrough")for(const S of h)y.push({key:{status:"valid",value:S},value:{status:"valid",value:u.data[S]}});else if(p==="strict")h.length>0&&(ie(u,{code:I.unrecognized_keys,keys:h}),s.dirty());else if(p!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const p=this._def.catchall;for(const S of h){const v=u.data[S];y.push({key:{status:"valid",value:S},value:p._parse(new _n(u,v,u.path,S)),alwaysSet:S in u.data})}}return u.common.async?Promise.resolve().then(async()=>{const p=[];for(const S of y){const v=await S.key,D=await S.value;p.push({key:v,value:D,alwaysSet:S.alwaysSet})}return p}).then(p=>ia.mergeObjectSync(s,p)):ia.mergeObjectSync(s,y)}get shape(){return this._def.shape()}strict(r){return he.errToObj,new xt({...this._def,unknownKeys:"strict",...r!==void 0?{errorMap:(l,s)=>{var f,d;const u=((d=(f=this._def).errorMap)==null?void 0:d.call(f,l,s).message)??s.defaultError;return l.code==="unrecognized_keys"?{message:he.errToObj(r).message??u}:{message:u}}}:{}})}strip(){return new xt({...this._def,unknownKeys:"strip"})}passthrough(){return new xt({...this._def,unknownKeys:"passthrough"})}extend(r){return new xt({...this._def,shape:()=>({...this._def.shape(),...r})})}merge(r){return new xt({unknownKeys:r._def.unknownKeys,catchall:r._def.catchall,shape:()=>({...this._def.shape(),...r._def.shape()}),typeName:Ne.ZodObject})}setKey(r,l){return this.augment({[r]:l})}catchall(r){return new xt({...this._def,catchall:r})}pick(r){const l={};for(const s of Ue.objectKeys(r))r[s]&&this.shape[s]&&(l[s]=this.shape[s]);return new xt({...this._def,shape:()=>l})}omit(r){const l={};for(const s of Ue.objectKeys(this.shape))r[s]||(l[s]=this.shape[s]);return new xt({...this._def,shape:()=>l})}deepPartial(){return zr(this)}partial(r){const l={};for(const s of Ue.objectKeys(this.shape)){const u=this.shape[s];r&&!r[s]?l[s]=u:l[s]=u.optional()}return new xt({...this._def,shape:()=>l})}required(r){const l={};for(const s of Ue.objectKeys(this.shape))if(r&&!r[s])l[s]=this.shape[s];else{let f=this.shape[s];for(;f instanceof wn;)f=f._def.innerType;l[s]=f}return new xt({...this._def,shape:()=>l})}keyof(){return hm(Ue.objectKeys(this.shape))}}xt.create=(n,r)=>new xt({shape:()=>n,unknownKeys:"strip",catchall:En.create(),typeName:Ne.ZodObject,...Ae(r)}),xt.strictCreate=(n,r)=>new xt({shape:()=>n,unknownKeys:"strict",catchall:En.create(),typeName:Ne.ZodObject,...Ae(r)}),xt.lazycreate=(n,r)=>new xt({shape:n,unknownKeys:"strip",catchall:En.create(),typeName:Ne.ZodObject,...Ae(r)});class ss extends Ve{_parse(r){const{ctx:l}=this._processInputParams(r),s=this._def.options;function u(f){for(const h of f)if(h.result.status==="valid")return h.result;for(const h of f)if(h.result.status==="dirty")return l.common.issues.push(...h.ctx.common.issues),h.result;const d=f.map(h=>new Pa(h.ctx.common.issues));return ie(l,{code:I.invalid_union,unionErrors:d}),Se}if(l.common.async)return Promise.all(s.map(async f=>{const d={...l,common:{...l.common,issues:[]},parent:null};return{result:await f._parseAsync({data:l.data,path:l.path,parent:d}),ctx:d}})).then(u);{let f;const d=[];for(const y of s){const p={...l,common:{...l.common,issues:[]},parent:null},S=y._parseSync({data:l.data,path:l.path,parent:p});if(S.status==="valid")return S;S.status==="dirty"&&!f&&(f={result:S,ctx:p}),p.common.issues.length&&d.push(p.common.issues)}if(f)return l.common.issues.push(...f.ctx.common.issues),f.result;const h=d.map(y=>new Pa(y));return ie(l,{code:I.invalid_union,unionErrors:h}),Se}}get options(){return this._def.options}}ss.create=(n,r)=>new ss({options:n,typeName:Ne.ZodUnion,...Ae(r)});function xu(n,r){const l=Nn(n),s=Nn(r);if(n===r)return{valid:!0,data:n};if(l===de.object&&s===de.object){const u=Ue.objectKeys(r),f=Ue.objectKeys(n).filter(h=>u.indexOf(h)!==-1),d={...n,...r};for(const h of f){const y=xu(n[h],r[h]);if(!y.valid)return{valid:!1};d[h]=y.data}return{valid:!0,data:d}}else if(l===de.array&&s===de.array){if(n.length!==r.length)return{valid:!1};const u=[];for(let f=0;f<n.length;f++){const d=n[f],h=r[f],y=xu(d,h);if(!y.valid)return{valid:!1};u.push(y.data)}return{valid:!0,data:u}}else return l===de.date&&s===de.date&&+n==+r?{valid:!0,data:n}:{valid:!1}}class os extends Ve{_parse(r){const{status:l,ctx:s}=this._processInputParams(r),u=(f,d)=>{if(Wd(f)||Wd(d))return Se;const h=xu(f.value,d.value);return h.valid?((em(f)||em(d))&&l.dirty(),{status:l.value,value:h.data}):(ie(s,{code:I.invalid_intersection_types}),Se)};return s.common.async?Promise.all([this._def.left._parseAsync({data:s.data,path:s.path,parent:s}),this._def.right._parseAsync({data:s.data,path:s.path,parent:s})]).then(([f,d])=>u(f,d)):u(this._def.left._parseSync({data:s.data,path:s.path,parent:s}),this._def.right._parseSync({data:s.data,path:s.path,parent:s}))}}os.create=(n,r,l)=>new os({left:n,right:r,typeName:Ne.ZodIntersection,...Ae(l)});class ar extends Ve{_parse(r){const{status:l,ctx:s}=this._processInputParams(r);if(s.parsedType!==de.array)return ie(s,{code:I.invalid_type,expected:de.array,received:s.parsedType}),Se;if(s.data.length<this._def.items.length)return ie(s,{code:I.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),Se;!this._def.rest&&s.data.length>this._def.items.length&&(ie(s,{code:I.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),l.dirty());const f=[...s.data].map((d,h)=>{const y=this._def.items[h]||this._def.rest;return y?y._parse(new _n(s,d,s.path,h)):null}).filter(d=>!!d);return s.common.async?Promise.all(f).then(d=>ia.mergeArray(l,d)):ia.mergeArray(l,f)}get items(){return this._def.items}rest(r){return new ar({...this._def,rest:r})}}ar.create=(n,r)=>{if(!Array.isArray(n))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new ar({items:n,typeName:Ne.ZodTuple,rest:null,...Ae(r)})};class fm extends Ve{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(r){const{status:l,ctx:s}=this._processInputParams(r);if(s.parsedType!==de.map)return ie(s,{code:I.invalid_type,expected:de.map,received:s.parsedType}),Se;const u=this._def.keyType,f=this._def.valueType,d=[...s.data.entries()].map(([h,y],p)=>({key:u._parse(new _n(s,h,s.path,[p,"key"])),value:f._parse(new _n(s,y,s.path,[p,"value"]))}));if(s.common.async){const h=new Map;return Promise.resolve().then(async()=>{for(const y of d){const p=await y.key,S=await y.value;if(p.status==="aborted"||S.status==="aborted")return Se;(p.status==="dirty"||S.status==="dirty")&&l.dirty(),h.set(p.value,S.value)}return{status:l.value,value:h}})}else{const h=new Map;for(const y of d){const p=y.key,S=y.value;if(p.status==="aborted"||S.status==="aborted")return Se;(p.status==="dirty"||S.status==="dirty")&&l.dirty(),h.set(p.value,S.value)}return{status:l.value,value:h}}}}fm.create=(n,r,l)=>new fm({valueType:r,keyType:n,typeName:Ne.ZodMap,...Ae(l)});class Gi extends Ve{_parse(r){const{status:l,ctx:s}=this._processInputParams(r);if(s.parsedType!==de.set)return ie(s,{code:I.invalid_type,expected:de.set,received:s.parsedType}),Se;const u=this._def;u.minSize!==null&&s.data.size<u.minSize.value&&(ie(s,{code:I.too_small,minimum:u.minSize.value,type:"set",inclusive:!0,exact:!1,message:u.minSize.message}),l.dirty()),u.maxSize!==null&&s.data.size>u.maxSize.value&&(ie(s,{code:I.too_big,maximum:u.maxSize.value,type:"set",inclusive:!0,exact:!1,message:u.maxSize.message}),l.dirty());const f=this._def.valueType;function d(y){const p=new Set;for(const S of y){if(S.status==="aborted")return Se;S.status==="dirty"&&l.dirty(),p.add(S.value)}return{status:l.value,value:p}}const h=[...s.data.values()].map((y,p)=>f._parse(new _n(s,y,s.path,p)));return s.common.async?Promise.all(h).then(y=>d(y)):d(h)}min(r,l){return new Gi({...this._def,minSize:{value:r,message:he.toString(l)}})}max(r,l){return new Gi({...this._def,maxSize:{value:r,message:he.toString(l)}})}size(r,l){return this.min(r,l).max(r,l)}nonempty(r){return this.min(1,r)}}Gi.create=(n,r)=>new Gi({valueType:n,minSize:null,maxSize:null,typeName:Ne.ZodSet,...Ae(r)});class dm extends Ve{get schema(){return this._def.getter()}_parse(r){const{ctx:l}=this._processInputParams(r);return this._def.getter()._parse({data:l.data,path:l.path,parent:l})}}dm.create=(n,r)=>new dm({getter:n,typeName:Ne.ZodLazy,...Ae(r)});class mm extends Ve{_parse(r){if(r.data!==this._def.value){const l=this._getOrReturnCtx(r);return ie(l,{received:l.data,code:I.invalid_literal,expected:this._def.value}),Se}return{status:"valid",value:r.data}}get value(){return this._def.value}}mm.create=(n,r)=>new mm({value:n,typeName:Ne.ZodLiteral,...Ae(r)});function hm(n,r){return new kr({values:n,typeName:Ne.ZodEnum,...Ae(r)})}class kr extends Ve{_parse(r){if(typeof r.data!="string"){const l=this._getOrReturnCtx(r),s=this._def.values;return ie(l,{expected:Ue.joinValues(s),received:l.parsedType,code:I.invalid_type}),Se}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(r.data)){const l=this._getOrReturnCtx(r),s=this._def.values;return ie(l,{received:l.data,code:I.invalid_enum_value,options:s}),Se}return ga(r.data)}get options(){return this._def.values}get enum(){const r={};for(const l of this._def.values)r[l]=l;return r}get Values(){const r={};for(const l of this._def.values)r[l]=l;return r}get Enum(){const r={};for(const l of this._def.values)r[l]=l;return r}extract(r,l=this._def){return kr.create(r,{...this._def,...l})}exclude(r,l=this._def){return kr.create(this.options.filter(s=>!r.includes(s)),{...this._def,...l})}}kr.create=hm;class pm extends Ve{_parse(r){const l=Ue.getValidEnumValues(this._def.values),s=this._getOrReturnCtx(r);if(s.parsedType!==de.string&&s.parsedType!==de.number){const u=Ue.objectValues(l);return ie(s,{expected:Ue.joinValues(u),received:s.parsedType,code:I.invalid_type}),Se}if(this._cache||(this._cache=new Set(Ue.getValidEnumValues(this._def.values))),!this._cache.has(r.data)){const u=Ue.objectValues(l);return ie(s,{received:s.data,code:I.invalid_enum_value,options:u}),Se}return ga(r.data)}get enum(){return this._def.values}}pm.create=(n,r)=>new pm({values:n,typeName:Ne.ZodNativeEnum,...Ae(r)});class us extends Ve{unwrap(){return this._def.type}_parse(r){const{ctx:l}=this._processInputParams(r);if(l.parsedType!==de.promise&&l.common.async===!1)return ie(l,{code:I.invalid_type,expected:de.promise,received:l.parsedType}),Se;const s=l.parsedType===de.promise?l.data:Promise.resolve(l.data);return ga(s.then(u=>this._def.type.parseAsync(u,{path:l.path,errorMap:l.common.contextualErrorMap})))}}us.create=(n,r)=>new us({type:n,typeName:Ne.ZodPromise,...Ae(r)});class jr extends Ve{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Ne.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(r){const{status:l,ctx:s}=this._processInputParams(r),u=this._def.effect||null,f={addIssue:d=>{ie(s,d),d.fatal?l.abort():l.dirty()},get path(){return s.path}};if(f.addIssue=f.addIssue.bind(f),u.type==="preprocess"){const d=u.transform(s.data,f);if(s.common.async)return Promise.resolve(d).then(async h=>{if(l.value==="aborted")return Se;const y=await this._def.schema._parseAsync({data:h,path:s.path,parent:s});return y.status==="aborted"?Se:y.status==="dirty"||l.value==="dirty"?Li(y.value):y});{if(l.value==="aborted")return Se;const h=this._def.schema._parseSync({data:d,path:s.path,parent:s});return h.status==="aborted"?Se:h.status==="dirty"||l.value==="dirty"?Li(h.value):h}}if(u.type==="refinement"){const d=h=>{const y=u.refinement(h,f);if(s.common.async)return Promise.resolve(y);if(y instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return h};if(s.common.async===!1){const h=this._def.schema._parseSync({data:s.data,path:s.path,parent:s});return h.status==="aborted"?Se:(h.status==="dirty"&&l.dirty(),d(h.value),{status:l.value,value:h.value})}else return this._def.schema._parseAsync({data:s.data,path:s.path,parent:s}).then(h=>h.status==="aborted"?Se:(h.status==="dirty"&&l.dirty(),d(h.value).then(()=>({status:l.value,value:h.value}))))}if(u.type==="transform")if(s.common.async===!1){const d=this._def.schema._parseSync({data:s.data,path:s.path,parent:s});if(!Mr(d))return Se;const h=u.transform(d.value,f);if(h instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:l.value,value:h}}else return this._def.schema._parseAsync({data:s.data,path:s.path,parent:s}).then(d=>Mr(d)?Promise.resolve(u.transform(d.value,f)).then(h=>({status:l.value,value:h})):Se);Ue.assertNever(u)}}jr.create=(n,r,l)=>new jr({schema:n,typeName:Ne.ZodEffects,effect:r,...Ae(l)}),jr.createWithPreprocess=(n,r,l)=>new jr({schema:r,effect:{type:"preprocess",transform:n},typeName:Ne.ZodEffects,...Ae(l)});class wn extends Ve{_parse(r){return this._getType(r)===de.undefined?ga(void 0):this._def.innerType._parse(r)}unwrap(){return this._def.innerType}}wn.create=(n,r)=>new wn({innerType:n,typeName:Ne.ZodOptional,...Ae(r)});class Vr extends Ve{_parse(r){return this._getType(r)===de.null?ga(null):this._def.innerType._parse(r)}unwrap(){return this._def.innerType}}Vr.create=(n,r)=>new Vr({innerType:n,typeName:Ne.ZodNullable,...Ae(r)});class Su extends Ve{_parse(r){const{ctx:l}=this._processInputParams(r);let s=l.data;return l.parsedType===de.undefined&&(s=this._def.defaultValue()),this._def.innerType._parse({data:s,path:l.path,parent:l})}removeDefault(){return this._def.innerType}}Su.create=(n,r)=>new Su({innerType:n,typeName:Ne.ZodDefault,defaultValue:typeof r.default=="function"?r.default:()=>r.default,...Ae(r)});class Nu extends Ve{_parse(r){const{ctx:l}=this._processInputParams(r),s={...l,common:{...l.common,issues:[]}},u=this._def.innerType._parse({data:s.data,path:s.path,parent:{...s}});return is(u)?u.then(f=>({status:"valid",value:f.status==="valid"?f.value:this._def.catchValue({get error(){return new Pa(s.common.issues)},input:s.data})})):{status:"valid",value:u.status==="valid"?u.value:this._def.catchValue({get error(){return new Pa(s.common.issues)},input:s.data})}}removeCatch(){return this._def.innerType}}Nu.create=(n,r)=>new Nu({innerType:n,typeName:Ne.ZodCatch,catchValue:typeof r.catch=="function"?r.catch:()=>r.catch,...Ae(r)});class gm extends Ve{_parse(r){if(this._getType(r)!==de.nan){const s=this._getOrReturnCtx(r);return ie(s,{code:I.invalid_type,expected:de.nan,received:s.parsedType}),Se}return{status:"valid",value:r.data}}}gm.create=n=>new gm({typeName:Ne.ZodNaN,...Ae(n)});class sv extends Ve{_parse(r){const{ctx:l}=this._processInputParams(r),s=l.data;return this._def.type._parse({data:s,path:l.path,parent:l})}unwrap(){return this._def.type}}class _u extends Ve{_parse(r){const{status:l,ctx:s}=this._processInputParams(r);if(s.common.async)return(async()=>{const f=await this._def.in._parseAsync({data:s.data,path:s.path,parent:s});return f.status==="aborted"?Se:f.status==="dirty"?(l.dirty(),Li(f.value)):this._def.out._parseAsync({data:f.value,path:s.path,parent:s})})();{const u=this._def.in._parseSync({data:s.data,path:s.path,parent:s});return u.status==="aborted"?Se:u.status==="dirty"?(l.dirty(),{status:"dirty",value:u.value}):this._def.out._parseSync({data:u.value,path:s.path,parent:s})}}static create(r,l){return new _u({in:r,out:l,typeName:Ne.ZodPipeline})}}class Cu extends Ve{_parse(r){const l=this._def.innerType._parse(r),s=u=>(Mr(u)&&(u.value=Object.freeze(u.value)),u);return is(l)?l.then(u=>s(u)):s(l)}unwrap(){return this._def.innerType}}Cu.create=(n,r)=>new Cu({innerType:n,typeName:Ne.ZodReadonly,...Ae(r)});var Ne;(function(n){n.ZodString="ZodString",n.ZodNumber="ZodNumber",n.ZodNaN="ZodNaN",n.ZodBigInt="ZodBigInt",n.ZodBoolean="ZodBoolean",n.ZodDate="ZodDate",n.ZodSymbol="ZodSymbol",n.ZodUndefined="ZodUndefined",n.ZodNull="ZodNull",n.ZodAny="ZodAny",n.ZodUnknown="ZodUnknown",n.ZodNever="ZodNever",n.ZodVoid="ZodVoid",n.ZodArray="ZodArray",n.ZodObject="ZodObject",n.ZodUnion="ZodUnion",n.ZodDiscriminatedUnion="ZodDiscriminatedUnion",n.ZodIntersection="ZodIntersection",n.ZodTuple="ZodTuple",n.ZodRecord="ZodRecord",n.ZodMap="ZodMap",n.ZodSet="ZodSet",n.ZodFunction="ZodFunction",n.ZodLazy="ZodLazy",n.ZodLiteral="ZodLiteral",n.ZodEnum="ZodEnum",n.ZodEffects="ZodEffects",n.ZodNativeEnum="ZodNativeEnum",n.ZodOptional="ZodOptional",n.ZodNullable="ZodNullable",n.ZodDefault="ZodDefault",n.ZodCatch="ZodCatch",n.ZodPromise="ZodPromise",n.ZodBranded="ZodBranded",n.ZodPipeline="ZodPipeline",n.ZodReadonly="ZodReadonly"})(Ne||(Ne={}));const ym=Cn.create;En.create,La.create;const ov=xt.create;ss.create,os.create,ar.create,kr.create,us.create,wn.create,Vr.create;const uv=ov({securityNumber:ym({required_error:"CPF é obrigatório."}).refine(n=>n.replace(/\D/g,"").length>=11,"CPF deve conter no mínimo 11 caracteres.").refine(n=>{const r=n.replace(/\D/g,"");return!!Number(r)},"CPF deve conter apenas números."),coupon:ym({required_error:"Cupom / ID do Cartão obrigatório."}).optional()});var Eu={exports:{}};/*!
50
50
  Copyright (c) 2018 Jed Watson.
51
51
  Licensed under the MIT License (MIT), see
52
52
  http://jedwatson.github.io/classnames
53
- */var rh;function qv(){return rh||(rh=1,(function(n){(function(){var r={}.hasOwnProperty;function l(){for(var f="",d=0;d<arguments.length;d++){var m=arguments[d];m&&(f=u(f,s(m)))}return f}function s(f){if(typeof f=="string"||typeof f=="number")return f;if(typeof f!="object")return"";if(Array.isArray(f))return l.apply(null,f);if(f.toString!==Object.prototype.toString&&!f.toString.toString().includes("[native code]"))return f.toString();var d="";for(var m in f)r.call(f,m)&&f[m]&&(d=u(d,m));return d}function u(f,d){return d?f?f+" "+d:f+d:f}n.exports?(l.default=l,n.exports=l):window.classNames=l})()})(vu)),vu.exports}var Zv=qv();const ot=tr(Zv);function Ia(n){return b.jsx("button",{...n,className:ot("w-3xs cursor-pointer h-10 rounded-lg text-white text-sm font-semibold transition-colors",n.className),style:{...n.style},children:n.children})}const ih=n=>{let r;const l=new Set,s=(p,_)=>{const x=typeof p=="function"?p(r):p;if(!Object.is(x,r)){const O=r;r=_??(typeof x!="object"||x===null)?x:Object.assign({},r,x),l.forEach(S=>S(r,O))}},u=()=>r,m={setState:s,getState:u,getInitialState:()=>y,subscribe:p=>(l.add(p),()=>l.delete(p))},y=r=n(s,u,m);return m},bu=(n=>n?ih(n):ih);var ge=uu();const _t=tr(ge),lh=Pa({__proto__:null,default:_t},[ge]),Gv=n=>n;function xu(n,r=Gv){const l=_t.useSyncExternalStore(n.subscribe,_t.useCallback(()=>r(n.getState()),[n,r]),_t.useCallback(()=>r(n.getInitialState()),[n,r]));return _t.useDebugValue(l),l}const sh=n=>{const r=bu(n),l=s=>xu(r,s);return Object.assign(l,r),l},_u=(n=>n?sh(n):sh),Yv={securityNumber:"",requestId:"",cardID:"",state:"isEmpty",availableDiscountSelected:{quantity:0,discount:{unit:0,total:0},totalPrice:0,grossPrice:0},benefitsEnabled:!0,benefitsList:null,targetProduct:null,campaign:"pbm_campaign",isAuthenticatedShopper:!1,customLoginUrl:"/login"},oh=bu(n=>({...Yv,setSecurityNumber:r=>n({securityNumber:r}),setRequestId:r=>n({requestId:r}),setState:r=>n({state:r}),setTargetProduct:r=>n({targetProduct:r}),setAvailableDiscountSelected:r=>n({availableDiscountSelected:r}),setUrlAcceptTerms:r=>n({urlAcceptTerms:r}),setUrlRegisterIndustry:r=>n({urlRegisterIndustry:r}),setIsAuthenticatedShopper:r=>n({isAuthenticatedShopper:r}),setCustomLoginUrl:r=>n({customLoginUrl:r}),setCardID:r=>n({cardID:r}),setBenefitsEnabled:r=>n({benefitsEnabled:r}),setBenefitsList:r=>n({benefitsList:r})})),$v=()=>({getState:()=>{const n=oh.getState(),{setSecurityNumber:r,setState:l,setAvailableDiscountSelected:s,setTargetProduct:u,setUrlAcceptTerms:f,setUrlRegisterIndustry:d,setIsAuthenticatedShopper:m,setCustomLoginUrl:y,setCardID:p,setBenefitsEnabled:_,setBenefitsList:x,setRequestId:O,requestId:S,benefitsEnabled:U,benefitsList:C,...Z}=n,{authorizedQuantity:I,discountMaxNewPatient:F,allowsAdhesion:ae,comboId:te,discountValueIndustry:L,authorizer:K,grossPrice:J,industryCompanyCode:we,pointing:je,productLink:Ie,requestCoupon:ve,requestHolderId:v,suggestedPrice:$,suggestedPriceValue:X,status:le,returnCode:N,...Q}=n.targetProduct;return{...Z,targetProduct:Q}}});function Ft(n){return xu(oh,(r=>r))}var Zi=n=>n.type==="checkbox",nr=n=>n instanceof Date,Jt=n=>n==null;const uh=n=>typeof n=="object";var gt=n=>!Jt(n)&&!Array.isArray(n)&&uh(n)&&!nr(n),Xv=n=>gt(n)&&n.target?Zi(n.target)?n.target.checked:n.target.value:n,ch=n=>n.substring(0,n.search(/\.\d+(\.|$)/))||n,Qv=(n,r)=>n.has(ch(r)),Kv=n=>{const r=n.constructor&&n.constructor.prototype;return gt(r)&&r.hasOwnProperty("isPrototypeOf")},Su=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function zt(n){if(n instanceof Date)return new Date(n);const r=typeof FileList<"u"&&n instanceof FileList;if(Su&&(n instanceof Blob||r))return n;const l=Array.isArray(n);if(!l&&!(gt(n)&&Kv(n)))return n;const s=l?[]:Object.create(Object.getPrototypeOf(n));for(const u in n)Object.prototype.hasOwnProperty.call(n,u)&&(s[u]=zt(n[u]));return s}var ls=n=>/^\w*$/.test(n),ft=n=>n===void 0,wu=n=>Array.isArray(n)?n.filter(Boolean):[],Au=n=>wu(n.replace(/["|']|\]/g,"").split(/\.|\[/)),oe=(n,r,l)=>{if(!r||!gt(n))return l;const s=(ls(r)?[r]:Au(r)).reduce((u,f)=>Jt(u)?u:u[f],n);return ft(s)||s===n?ft(n[r])?l:n[r]:s},Ha=n=>typeof n=="boolean",ja=n=>typeof n=="function",Pe=(n,r,l)=>{let s=-1;const u=ls(r)?[r]:Au(r),f=u.length,d=f-1;for(;++s<f;){const m=u[s];let y=l;if(s!==d){const p=n[m];y=gt(p)||Array.isArray(p)?p:isNaN(+u[s+1])?{}:[]}if(m==="__proto__"||m==="constructor"||m==="prototype")return;n[m]=y,n=n[m]}};const Ur={BLUR:"blur",FOCUS_OUT:"focusout",SUBMIT:"submit",TRIGGER:"trigger",VALID:"valid"},Ma={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Ra={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},Cu="form",fh="root",Fv=_t.createContext(null);Fv.displayName="HookFormControlContext";var Jv=(n,r,l,s=!0)=>{const u={defaultValues:r._defaultValues};for(const f in n)Object.defineProperty(u,f,{get:()=>{const d=f;return r._proxyFormState[d]!==Ma.all&&(r._proxyFormState[d]=!s||Ma.all),n[d]}});return u};const Pv=typeof window<"u"?_t.useLayoutEffect:_t.useEffect;var Yt=n=>typeof n=="string",Wv=(n,r,l,s,u)=>Yt(n)?(s&&r.watch.add(n),oe(l,n,u)):Array.isArray(n)?n.map(f=>(s&&r.watch.add(f),oe(l,f))):(s&&(r.watchAll=!0),l),Tu=n=>Jt(n)||!uh(n);function En(n,r,l=new WeakSet){if(Tu(n)||Tu(r))return Object.is(n,r);if(nr(n)&&nr(r))return Object.is(n.getTime(),r.getTime());const s=Object.keys(n),u=Object.keys(r);if(s.length!==u.length)return!1;if(l.has(n)||l.has(r))return!0;l.add(n),l.add(r);for(const f of s){const d=n[f];if(!u.includes(f))return!1;if(f!=="ref"){const m=r[f];if(nr(d)&&nr(m)||gt(d)&&gt(m)||Array.isArray(d)&&Array.isArray(m)?!En(d,m,l):!Object.is(d,m))return!1}}return!0}const Iv=_t.createContext(null);Iv.displayName="HookFormContext";var Eu=(n,r,l,s,u)=>r?{...l[n],types:{...l[n]&&l[n].types?l[n].types:{},[s]:u||!0}}:{},Gi=n=>Array.isArray(n)?n:[n],dh=()=>{let n=[];return{get observers(){return n},next:u=>{for(const f of n)f.next&&f.next(u)},subscribe:u=>(n.push(u),{unsubscribe:()=>{n=n.filter(f=>f!==u)}}),unsubscribe:()=>{n=[]}}};function hh(n,r){const l={};for(const s in n)if(n.hasOwnProperty(s)){const u=n[s],f=r[s];if(u&&gt(u)&&f){const d=hh(u,f);gt(d)&&(l[s]=d)}else n[s]&&(l[s]=f)}return l}var $t=n=>gt(n)&&!Object.keys(n).length,Ou=n=>n.type==="file",ss=n=>{if(!Su)return!1;const r=n?n.ownerDocument:0;return n instanceof(r&&r.defaultView?r.defaultView.HTMLElement:HTMLElement)},mh=n=>n.type==="select-multiple",zu=n=>n.type==="radio",eb=n=>zu(n)||Zi(n),Nu=n=>ss(n)&&n.isConnected;function tb(n,r){const l=r.slice(0,-1).length;let s=0;for(;s<l;)n=ft(n)?s++:n[r[s++]];return n}function ab(n){for(const r in n)if(n.hasOwnProperty(r)&&!ft(n[r]))return!1;return!0}function St(n,r){const l=Array.isArray(r)?r:ls(r)?[r]:Au(r),s=l.length===1?n:tb(n,l),u=l.length-1,f=l[u];return s&&delete s[f],u!==0&&(gt(s)&&$t(s)||Array.isArray(s)&&ab(s))&&St(n,l.slice(0,-1)),n}var nb=n=>{for(const r in n)if(ja(n[r]))return!0;return!1};function ph(n){return Array.isArray(n)||gt(n)&&!nb(n)}function ku(n,r={}){for(const l in n){const s=n[l];ph(s)?(r[l]=Array.isArray(s)?[]:{},ku(s,r[l])):ft(s)||(r[l]=!0)}return r}function Br(n,r,l){l||(l=ku(r));for(const s in n){const u=n[s];if(ph(u))ft(r)||Tu(l[s])?l[s]=ku(u,Array.isArray(u)?[]:{}):Br(u,Jt(r)?{}:r[s],l[s]);else{const f=r[s];l[s]=!En(u,f)}}return l}const gh={value:!1,isValid:!1},yh={value:!0,isValid:!0};var vh=n=>{if(Array.isArray(n)){if(n.length>1){const r=n.filter(l=>l&&l.checked&&!l.disabled).map(l=>l.value);return{value:r,isValid:!!r.length}}return n[0].checked&&!n[0].disabled?n[0].attributes&&!ft(n[0].attributes.value)?ft(n[0].value)||n[0].value===""?yh:{value:n[0].value,isValid:!0}:yh:gh}return gh},bh=(n,{valueAsNumber:r,valueAsDate:l,setValueAs:s})=>ft(n)?n:r?n===""?NaN:n&&+n:l&&Yt(n)?new Date(n):s?s(n):n;const xh={isValid:!1,value:null};var _h=n=>Array.isArray(n)?n.reduce((r,l)=>l&&l.checked&&!l.disabled?{isValid:!0,value:l.value}:r,xh):xh;function Sh(n){const r=n.ref;return Ou(r)?r.files:zu(r)?_h(n.refs).value:mh(r)?[...r.selectedOptions].map(({value:l})=>l):Zi(r)?vh(n.refs).value:bh(ft(r.value)?n.ref.value:r.value,n)}var rb=(n,r,l,s)=>{const u={};for(const f of n){const d=oe(r,f);d&&Pe(u,f,d._f)}return{criteriaMode:l,names:[...n],fields:u,shouldUseNativeValidation:s}},os=n=>n instanceof RegExp,Yi=n=>ft(n)?n:os(n)?n.source:gt(n)?os(n.value)?n.value.source:n.value:n,wh=n=>({isOnSubmit:!n||n===Ma.onSubmit,isOnBlur:n===Ma.onBlur,isOnChange:n===Ma.onChange,isOnAll:n===Ma.all,isOnTouch:n===Ma.onTouched});const Ah="AsyncFunction";var ib=n=>!!n&&!!n.validate&&!!(ja(n.validate)&&n.validate.constructor.name===Ah||gt(n.validate)&&Object.values(n.validate).find(r=>r.constructor.name===Ah)),lb=n=>n.mount&&(n.required||n.min||n.max||n.maxLength||n.minLength||n.pattern||n.validate),Ch=(n,r,l)=>!l&&(r.watchAll||r.watch.has(n)||[...r.watch].some(s=>n.startsWith(s)&&/^\.\w+/.test(n.slice(s.length))));const $i=(n,r,l,s)=>{for(const u of l||Object.keys(n)){const f=oe(n,u);if(f){const{_f:d,...m}=f;if(d){if(d.refs&&d.refs[0]&&r(d.refs[0],u)&&!s)return!0;if(d.ref&&r(d.ref,d.name)&&!s)return!0;if($i(m,r))break}else if(gt(m)&&$i(m,r))break}}};function Th(n,r,l){const s=oe(n,l);if(s||ls(l))return{error:s,name:l};const u=l.split(".");for(;u.length;){const f=u.join("."),d=oe(r,f),m=oe(n,f);if(d&&!Array.isArray(d)&&l!==f)return{name:l};if(m&&m.type)return{name:f,error:m};if(m&&m.root&&m.root.type)return{name:`${f}.root`,error:m.root};u.pop()}return{name:l}}var sb=(n,r,l,s)=>{l(n);const{name:u,...f}=n;return $t(f)||Object.keys(f).length>=Object.keys(r).length||Object.keys(f).find(d=>r[d]===(!s||Ma.all))},ob=(n,r,l)=>!n||!r||n===r||Gi(n).some(s=>s&&(l?s===r:s.startsWith(r)||r.startsWith(s))),ub=(n,r,l,s,u)=>u.isOnAll?!1:!l&&u.isOnTouch?!(r||n):(l?s.isOnBlur:u.isOnBlur)?!n:(l?s.isOnChange:u.isOnChange)?n:!0,cb=(n,r)=>!wu(oe(n,r)).length&&St(n,r),fb=(n,r,l)=>{const s=Gi(oe(n,l));return Pe(s,fh,r[l]),Pe(n,l,s),n};function Eh(n,r,l="validate"){if(Yt(n)||Array.isArray(n)&&n.every(Yt)||Ha(n)&&!n)return{type:l,message:Yt(n)?n:"",ref:r}}var Lr=n=>gt(n)&&!os(n)?n:{value:n,message:""},Oh=async(n,r,l,s,u,f)=>{const{ref:d,refs:m,required:y,maxLength:p,minLength:_,min:x,max:O,pattern:S,validate:U,name:C,valueAsNumber:Z,mount:I}=n._f,F=oe(l,C);if(!I||r.has(C))return{};const ae=m?m[0]:d,te=v=>{u&&ae.reportValidity&&(ae.setCustomValidity(Ha(v)?"":v||""),ae.reportValidity())},L={},K=zu(d),J=Zi(d),we=K||J,je=(Z||Ou(d))&&ft(d.value)&&ft(F)||ss(d)&&d.value===""||F===""||Array.isArray(F)&&!F.length,Ie=Eu.bind(null,C,s,L),ve=(v,$,X,le=Ra.maxLength,N=Ra.minLength)=>{const Q=v?$:X;L[C]={type:v?le:N,message:Q,ref:d,...Ie(v?le:N,Q)}};if(f?!Array.isArray(F)||!F.length:y&&(!we&&(je||Jt(F))||Ha(F)&&!F||J&&!vh(m).isValid||K&&!_h(m).isValid)){const{value:v,message:$}=Yt(y)?{value:!!y,message:y}:Lr(y);if(v&&(L[C]={type:Ra.required,message:$,ref:ae,...Ie(Ra.required,$)},!s))return te($),L}if(!je&&(!Jt(x)||!Jt(O))){let v,$;const X=Lr(O),le=Lr(x);if(!Jt(F)&&!isNaN(F)){const N=d.valueAsNumber||F&&+F;Jt(X.value)||(v=N>X.value),Jt(le.value)||($=N<le.value)}else{const N=d.valueAsDate||new Date(F),Q=Ve=>new Date(new Date().toDateString()+" "+Ve),se=d.type=="time",ze=d.type=="week";Yt(X.value)&&F&&(v=se?Q(F)>Q(X.value):ze?F>X.value:N>new Date(X.value)),Yt(le.value)&&F&&($=se?Q(F)<Q(le.value):ze?F<le.value:N<new Date(le.value))}if((v||$)&&(ve(!!v,X.message,le.message,Ra.max,Ra.min),!s))return te(L[C].message),L}if((p||_)&&!je&&(Yt(F)||f&&Array.isArray(F))){const v=Lr(p),$=Lr(_),X=!Jt(v.value)&&F.length>+v.value,le=!Jt($.value)&&F.length<+$.value;if((X||le)&&(ve(X,v.message,$.message),!s))return te(L[C].message),L}if(S&&!je&&Yt(F)){const{value:v,message:$}=Lr(S);if(os(v)&&!F.match(v)&&(L[C]={type:Ra.pattern,message:$,ref:d,...Ie(Ra.pattern,$)},!s))return te($),L}if(U){if(ja(U)){const v=await U(F,l),$=Eh(v,ae);if($&&(L[C]={...$,...Ie(Ra.validate,$.message)},!s))return te($.message),L}else if(gt(U)){let v={};for(const $ in U){if(!$t(v)&&!s)break;const X=Eh(await U[$](F,l),ae,$);X&&(v={...X,...Ie($,X.message)},te(X.message),s&&(L[C]=v))}if(!$t(v)&&(L[C]={ref:ae,...v},!s))return L}}return te(!0),L};const db={mode:Ma.onSubmit,reValidateMode:Ma.onChange,shouldFocusError:!0};function hb(n={}){let r={...db,...n},l={submitCount:0,isDirty:!1,isReady:!1,isLoading:ja(r.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:r.errors||{},disabled:r.disabled||!1},s={},u=gt(r.defaultValues)||gt(r.values)?zt(r.defaultValues||r.values)||{}:{},f=r.shouldUnregister?{}:zt(u),d={action:!1,mount:!1,watch:!1,keepIsValid:!1},m={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},y,p=0;const _={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},x={..._};let O={...x};const S={array:dh(),state:dh()},U=r.criteriaMode===Ma.all,C=A=>k=>{clearTimeout(p),p=setTimeout(A,k)},Z=async A=>{if(!d.keepIsValid&&!r.disabled&&(x.isValid||O.isValid||A)){let k;r.resolver?(k=$t((await we()).errors),I()):k=await ve({fields:s,onlyCheckValid:!0,eventType:Ur.VALID}),k!==l.isValid&&S.state.next({isValid:k})}},I=(A,k)=>{!r.disabled&&(x.isValidating||x.validatingFields||O.isValidating||O.validatingFields)&&((A||Array.from(m.mount)).forEach(R=>{R&&(k?Pe(l.validatingFields,R,k):St(l.validatingFields,R))}),S.state.next({validatingFields:l.validatingFields,isValidating:!$t(l.validatingFields)}))},F=(A,k=[],R,re,W=!0,ee=!0)=>{if(re&&R&&!r.disabled){if(d.action=!0,ee&&Array.isArray(oe(s,A))){const fe=R(oe(s,A),re.argA,re.argB);W&&Pe(s,A,fe)}if(ee&&Array.isArray(oe(l.errors,A))){const fe=R(oe(l.errors,A),re.argA,re.argB);W&&Pe(l.errors,A,fe),cb(l.errors,A)}if((x.touchedFields||O.touchedFields)&&ee&&Array.isArray(oe(l.touchedFields,A))){const fe=R(oe(l.touchedFields,A),re.argA,re.argB);W&&Pe(l.touchedFields,A,fe)}if(x.dirtyFields||O.dirtyFields){const fe=Br(u,f),Ae=ch(A);Pe(l.dirtyFields,Ae,oe(fe,Ae))}S.state.next({name:A,isDirty:$(A,k),dirtyFields:l.dirtyFields,errors:l.errors,isValid:l.isValid})}else Pe(f,A,k)},ae=(A,k)=>{Pe(l.errors,A,k),S.state.next({errors:l.errors})},te=A=>{l.errors=A,S.state.next({errors:l.errors,isValid:!1})},L=(A,k,R,re)=>{const W=oe(s,A);if(W){const ee=oe(f,A,ft(R)?oe(u,A):R);ft(ee)||re&&re.defaultChecked||k?Pe(f,A,k?ee:Sh(W._f)):N(A,ee),d.mount&&!d.action&&Z()}},K=(A,k,R,re,W)=>{let ee=!1,fe=!1;const Ae={name:A};if(!r.disabled){if(!R||re){(x.isDirty||O.isDirty)&&(fe=l.isDirty,l.isDirty=Ae.isDirty=$(),ee=fe!==Ae.isDirty);const He=En(oe(u,A),k);fe=!!oe(l.dirtyFields,A),He?St(l.dirtyFields,A):Pe(l.dirtyFields,A,!0),Ae.dirtyFields=l.dirtyFields,ee=ee||(x.dirtyFields||O.dirtyFields)&&fe!==!He}if(R){const He=oe(l.touchedFields,A);He||(Pe(l.touchedFields,A,R),Ae.touchedFields=l.touchedFields,ee=ee||(x.touchedFields||O.touchedFields)&&He!==R)}ee&&W&&S.state.next(Ae)}return ee?Ae:{}},J=(A,k,R,re)=>{const W=oe(l.errors,A),ee=(x.isValid||O.isValid)&&Ha(k)&&l.isValid!==k;if(r.delayError&&R?(y=C(()=>ae(A,R)),y(r.delayError)):(clearTimeout(p),y=null,R?Pe(l.errors,A,R):St(l.errors,A)),(R?!En(W,R):W)||!$t(re)||ee){const fe={...re,...ee&&Ha(k)?{isValid:k}:{},errors:l.errors,name:A};l={...l,...fe},S.state.next(fe)}},we=async A=>(I(A,!0),await r.resolver(f,r.context,rb(A||m.mount,s,r.criteriaMode,r.shouldUseNativeValidation))),je=async A=>{const{errors:k}=await we(A);if(I(A),A)for(const R of A){const re=oe(k,R);re?Pe(l.errors,R,re):St(l.errors,R)}else l.errors=k;return k},Ie=async({name:A,eventType:k})=>{if(n.validate){const R=await n.validate({formValues:f,formState:l,name:A,eventType:k});if(gt(R))for(const re in R)R[re]&&be(`${Cu}.${re}`,{message:Yt(R.message)?R.message:"",type:Ra.validate});else Yt(R)||!R?be(Cu,{message:R||"",type:Ra.validate}):ue(Cu);return R}return!0},ve=async({fields:A,onlyCheckValid:k,name:R,eventType:re,context:W={valid:!0,runRootValidation:!1}})=>{if(n.validate&&(W.runRootValidation=!0,!await Ie({name:R,eventType:re})&&(W.valid=!1,k)))return W.valid;for(const ee in A){const fe=A[ee];if(fe){const{_f:Ae,...He}=fe;if(Ae){const Xt=m.array.has(Ae.name),xa=fe._f&&ib(fe._f);xa&&x.validatingFields&&I([Ae.name],!0);const At=await Oh(fe,m.disabled,f,U,r.shouldUseNativeValidation&&!k,Xt);if(xa&&x.validatingFields&&I([Ae.name]),At[Ae.name]&&(W.valid=!1,k)||(!k&&(oe(At,Ae.name)?Xt?fb(l.errors,At,Ae.name):Pe(l.errors,Ae.name,At[Ae.name]):St(l.errors,Ae.name)),n.shouldUseNativeValidation&&At[Ae.name]))break}!$t(He)&&await ve({context:W,onlyCheckValid:k,fields:He,name:ee,eventType:re})}}return W.valid},v=()=>{for(const A of m.unMount){const k=oe(s,A);k&&(k._f.refs?k._f.refs.every(R=>!Nu(R)):!Nu(k._f.ref))&&it(A)}m.unMount=new Set},$=(A,k)=>!r.disabled&&(A&&k&&Pe(f,A,k),!En(Y(),u)),X=(A,k,R)=>Wv(A,m,{...d.mount?f:ft(k)?u:Yt(A)?{[A]:k}:k},R,k),le=A=>wu(oe(d.mount?f:u,A,r.shouldUnregister?oe(u,A,[]):[])),N=(A,k,R={})=>{const re=oe(s,A);let W=k;if(re){const ee=re._f;ee&&(!ee.disabled&&Pe(f,A,bh(k,ee)),W=ss(ee.ref)&&Jt(k)?"":k,mh(ee.ref)?[...ee.ref.options].forEach(fe=>fe.selected=W.includes(fe.value)):ee.refs?Zi(ee.ref)?ee.refs.forEach(fe=>{(!fe.defaultChecked||!fe.disabled)&&(Array.isArray(W)?fe.checked=!!W.find(Ae=>Ae===fe.value):fe.checked=W===fe.value||!!W)}):ee.refs.forEach(fe=>fe.checked=fe.value===W):Ou(ee.ref)?ee.ref.value="":(ee.ref.value=W,ee.ref.type||S.state.next({name:A,values:zt(f)})))}(R.shouldDirty||R.shouldTouch)&&K(A,W,R.shouldTouch,R.shouldDirty,!0),R.shouldValidate&&E(A)},Q=(A,k,R)=>{for(const re in k){if(!k.hasOwnProperty(re))return;const W=k[re],ee=A+"."+re,fe=oe(s,ee);(m.array.has(A)||gt(W)||fe&&!fe._f)&&!nr(W)?Q(ee,W,R):N(ee,W,R)}},se=(A,k,R={})=>{const re=oe(s,A),W=m.array.has(A),ee=zt(k);Pe(f,A,ee),W?(S.array.next({name:A,values:zt(f)}),(x.isDirty||x.dirtyFields||O.isDirty||O.dirtyFields)&&R.shouldDirty&&S.state.next({name:A,dirtyFields:Br(u,f),isDirty:$(A,ee)})):re&&!re._f&&!Jt(ee)?Q(A,ee,R):N(A,ee,R),Ch(A,m)?S.state.next({...l,name:A,values:zt(f)}):S.state.next({name:d.mount?A:void 0,values:zt(f)})},ze=async A=>{d.mount=!0;const k=A.target;let R=k.name,re=!0;const W=oe(s,R),ee=He=>{re=Number.isNaN(He)||nr(He)&&isNaN(He.getTime())||En(He,oe(f,R,He))},fe=wh(r.mode),Ae=wh(r.reValidateMode);if(W){let He,Xt;const xa=k.type?Sh(W._f):Xv(A),At=A.type===Ur.BLUR||A.type===Ur.FOCUS_OUT,Qt=!lb(W._f)&&!n.validate&&!r.resolver&&!oe(l.errors,R)&&!W._f.deps||ub(At,oe(l.touchedFields,R),l.isSubmitted,Ae,fe),_a=Ch(R,m,At);Pe(f,R,xa),At?(!k||!k.readOnly)&&(W._f.onBlur&&W._f.onBlur(A),y&&y(0)):W._f.onChange&&W._f.onChange(A);const Dt=K(R,xa,At),dc=!$t(Dt)||_a;if(!At&&S.state.next({name:R,type:A.type,values:zt(f)}),Qt)return(x.isValid||O.isValid)&&(r.mode==="onBlur"?At&&Z():At||Z()),dc&&S.state.next({name:R,..._a?{}:Dt});if(!r.resolver&&n.validate&&await Ie({name:R,eventType:A.type}),!At&&_a&&S.state.next({...l}),r.resolver){const{errors:qs}=await we([R]);if(I([R]),ee(xa),re){const hc=Th(l.errors,s,R),dr=Th(qs,s,hc.name||R);He=dr.error,R=dr.name,Xt=$t(qs)}}else I([R],!0),He=(await Oh(W,m.disabled,f,U,r.shouldUseNativeValidation))[R],I([R]),ee(xa),re&&(He?Xt=!1:(x.isValid||O.isValid)&&(Xt=await ve({fields:s,onlyCheckValid:!0,name:R,eventType:A.type})));re&&(W._f.deps&&(!Array.isArray(W._f.deps)||W._f.deps.length>0)&&E(W._f.deps),J(R,Xt,He,Dt))}},Ve=(A,k)=>{if(oe(l.errors,k)&&A.focus)return A.focus(),1},E=async(A,k={})=>{let R,re;const W=Gi(A);if(r.resolver){const ee=await je(ft(A)?A:W);R=$t(ee),re=A?!W.some(fe=>oe(ee,fe)):R}else A?(re=(await Promise.all(W.map(async ee=>{const fe=oe(s,ee);return await ve({fields:fe&&fe._f?{[ee]:fe}:fe,eventType:Ur.TRIGGER})}))).every(Boolean),!(!re&&!l.isValid)&&Z()):re=R=await ve({fields:s,name:A,eventType:Ur.TRIGGER});return S.state.next({...!Yt(A)||(x.isValid||O.isValid)&&R!==l.isValid?{}:{name:A},...r.resolver||!A?{isValid:R}:{},errors:l.errors}),k.shouldFocus&&!re&&$i(s,Ve,A?W:m.mount),re},Y=(A,k)=>{let R={...d.mount?f:u};return k&&(R=hh(k.dirtyFields?l.dirtyFields:l.touchedFields,R)),ft(A)?R:Yt(A)?oe(R,A):A.map(re=>oe(R,re))},ne=(A,k)=>({invalid:!!oe((k||l).errors,A),isDirty:!!oe((k||l).dirtyFields,A),error:oe((k||l).errors,A),isValidating:!!oe(l.validatingFields,A),isTouched:!!oe((k||l).touchedFields,A)}),ue=A=>{const k=A?Gi(A):void 0;k==null||k.forEach(R=>St(l.errors,R)),k?k.forEach(R=>{S.state.next({name:R,errors:l.errors})}):S.state.next({errors:{}})},be=(A,k,R)=>{const re=(oe(s,A,{_f:{}})._f||{}).ref,W=oe(l.errors,A)||{},{ref:ee,message:fe,type:Ae,...He}=W;Pe(l.errors,A,{...He,...k,ref:re}),S.state.next({name:A,errors:l.errors,isValid:!1}),R&&R.shouldFocus&&re&&re.focus&&re.focus()},Ee=(A,k)=>ja(A)?S.state.subscribe({next:R=>"values"in R&&A(X(void 0,k),R)}):X(A,k,!0),Be=A=>S.state.subscribe({next:k=>{ob(A.name,k.name,A.exact)&&sb(k,A.formState||x,ul,A.reRenderRoot)&&A.callback({values:{...f},...l,...k,defaultValues:u})}}).unsubscribe,Rt=A=>(d.mount=!0,O={...O,...A.formState},Be({...A,formState:{..._,...A.formState}})),it=(A,k={})=>{for(const R of A?Gi(A):m.mount)m.mount.delete(R),m.array.delete(R),k.keepValue||(St(s,R),St(f,R)),!k.keepError&&St(l.errors,R),!k.keepDirty&&St(l.dirtyFields,R),!k.keepTouched&&St(l.touchedFields,R),!k.keepIsValidating&&St(l.validatingFields,R),!r.shouldUnregister&&!k.keepDefaultValue&&St(u,R);S.state.next({values:zt(f)}),S.state.next({...l,...k.keepDirty?{isDirty:$()}:{}}),!k.keepIsValid&&Z()},zn=({disabled:A,name:k})=>{if(Ha(A)&&d.mount||A||m.disabled.has(k)){const W=m.disabled.has(k)!==!!A;A?m.disabled.add(k):m.disabled.delete(k),W&&d.mount&&!d.action&&Z()}},Nn=(A,k={})=>{let R=oe(s,A);const re=Ha(k.disabled)||Ha(r.disabled);return Pe(s,A,{...R||{},_f:{...R&&R._f?R._f:{ref:{name:A}},name:A,mount:!0,...k}}),m.mount.add(A),R?zn({disabled:Ha(k.disabled)?k.disabled:r.disabled,name:A}):L(A,!0,k.value),{...re?{disabled:k.disabled||r.disabled}:{},...r.progressive?{required:!!k.required,min:Yi(k.min),max:Yi(k.max),minLength:Yi(k.minLength),maxLength:Yi(k.maxLength),pattern:Yi(k.pattern)}:{},name:A,onChange:ze,onBlur:ze,ref:W=>{if(W){Nn(A,k),R=oe(s,A);const ee=ft(W.value)&&W.querySelectorAll&&W.querySelectorAll("input,select,textarea")[0]||W,fe=eb(ee),Ae=R._f.refs||[];if(fe?Ae.find(He=>He===ee):ee===R._f.ref)return;Pe(s,A,{_f:{...R._f,...fe?{refs:[...Ae.filter(Nu),ee,...Array.isArray(oe(u,A))?[{}]:[]],ref:{type:ee.type,name:A}}:{ref:ee}}}),L(A,!1,void 0,ee)}else R=oe(s,A,{}),R._f&&(R._f.mount=!1),(r.shouldUnregister||k.shouldUnregister)&&!(Qv(m.array,A)&&d.action)&&m.unMount.add(A)}}},fr=()=>r.shouldFocusError&&$i(s,Ve,m.mount),Bs=A=>{Ha(A)&&(S.state.next({disabled:A}),$i(s,(k,R)=>{const re=oe(s,R);re&&(k.disabled=re._f.disabled||A,Array.isArray(re._f.refs)&&re._f.refs.forEach(W=>{W.disabled=re._f.disabled||A}))},0,!1))},$a=(A,k)=>async R=>{let re;R&&(R.preventDefault&&R.preventDefault(),R.persist&&R.persist());let W=zt(f);if(S.state.next({isSubmitting:!0}),r.resolver){const{errors:ee,values:fe}=await we();I(),l.errors=ee,W=zt(fe)}else await ve({fields:s,eventType:Ur.SUBMIT});if(m.disabled.size)for(const ee of m.disabled)St(W,ee);if(St(l.errors,fh),$t(l.errors)){S.state.next({errors:{}});try{await A(W,R)}catch(ee){re=ee}}else k&&await k({...l.errors},R),fr(),setTimeout(fr);if(S.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:$t(l.errors)&&!re,submitCount:l.submitCount+1,errors:l.errors}),re)throw re},ol=(A,k={})=>{oe(s,A)&&(ft(k.defaultValue)?se(A,zt(oe(u,A))):(se(A,k.defaultValue),Pe(u,A,zt(k.defaultValue))),k.keepTouched||St(l.touchedFields,A),k.keepDirty||(St(l.dirtyFields,A),l.isDirty=k.defaultValue?$(A,zt(oe(u,A))):$()),k.keepError||(St(l.errors,A),x.isValid&&Z()),S.state.next({...l}))},Jr=(A,k={})=>{const R=A?zt(A):u,re=zt(R),W=$t(A),ee=W?u:re;if(k.keepDefaultValues||(u=R),!k.keepValues){if(k.keepDirtyValues){const fe=new Set([...m.mount,...Object.keys(Br(u,f))]);for(const Ae of Array.from(fe)){const He=oe(l.dirtyFields,Ae),Xt=oe(f,Ae),xa=oe(ee,Ae);He&&!ft(Xt)?Pe(ee,Ae,Xt):!He&&!ft(xa)&&se(Ae,xa)}}else{if(Su&&ft(A))for(const fe of m.mount){const Ae=oe(s,fe);if(Ae&&Ae._f){const He=Array.isArray(Ae._f.refs)?Ae._f.refs[0]:Ae._f.ref;if(ss(He)){const Xt=He.closest("form");if(Xt){Xt.reset();break}}}}if(k.keepFieldsRef)for(const fe of m.mount)se(fe,oe(ee,fe));else s={}}f=r.shouldUnregister?k.keepDefaultValues?zt(u):{}:zt(ee),S.array.next({values:{...ee}}),S.state.next({values:{...ee}})}m={mount:k.keepDirtyValues?m.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},d.mount=!x.isValid||!!k.keepIsValid||!!k.keepDirtyValues||!r.shouldUnregister&&!$t(ee),d.watch=!!r.shouldUnregister,d.keepIsValid=!!k.keepIsValid,d.action=!1,k.keepErrors||(l.errors={}),S.state.next({submitCount:k.keepSubmitCount?l.submitCount:0,isDirty:W?!1:k.keepDirty?l.isDirty:!!(k.keepDefaultValues&&!En(A,u)),isSubmitted:k.keepIsSubmitted?l.isSubmitted:!1,dirtyFields:W?{}:k.keepDirtyValues?k.keepDefaultValues&&f?Br(u,f):l.dirtyFields:k.keepDefaultValues&&A?Br(u,A):k.keepDirty?l.dirtyFields:{},touchedFields:k.keepTouched?l.touchedFields:{},errors:k.keepErrors?l.errors:{},isSubmitSuccessful:k.keepIsSubmitSuccessful?l.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:u})},Ls=(A,k)=>Jr(ja(A)?A(f):A,{...r.resetOptions,...k}),Vs=(A,k={})=>{const R=oe(s,A),re=R&&R._f;if(re){const W=re.refs?re.refs[0]:re.ref;W.focus&&setTimeout(()=>{W.focus(),k.shouldSelect&&ja(W.select)&&W.select()})}},ul=A=>{l={...l,...A}},Pr={control:{register:Nn,unregister:it,getFieldState:ne,handleSubmit:$a,setError:be,_subscribe:Be,_runSchema:we,_updateIsValidating:I,_focusError:fr,_getWatch:X,_getDirty:$,_setValid:Z,_setFieldArray:F,_setDisabledField:zn,_setErrors:te,_getFieldArray:le,_reset:Jr,_resetDefaultValues:()=>ja(r.defaultValues)&&r.defaultValues().then(A=>{Ls(A,r.resetOptions),S.state.next({isLoading:!1})}),_removeUnmounted:v,_disableForm:Bs,_subjects:S,_proxyFormState:x,get _fields(){return s},get _formValues(){return f},get _state(){return d},set _state(A){d=A},get _defaultValues(){return u},get _names(){return m},set _names(A){m=A},get _formState(){return l},get _options(){return r},set _options(A){r={...r,...A}}},subscribe:Rt,trigger:E,register:Nn,handleSubmit:$a,watch:Ee,setValue:se,getValues:Y,reset:Ls,resetField:ol,clearErrors:ue,unregister:it,setError:be,setFocus:Vs,getFieldState:ne};return{...Pr,formControl:Pr}}function mb(n={}){const r=_t.useRef(void 0),l=_t.useRef(void 0),[s,u]=_t.useState({isDirty:!1,isValidating:!1,isLoading:ja(n.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:n.errors||{},disabled:n.disabled||!1,isReady:!1,defaultValues:ja(n.defaultValues)?void 0:n.defaultValues});if(!r.current)if(n.formControl)r.current={...n.formControl,formState:s},n.defaultValues&&!ja(n.defaultValues)&&n.formControl.reset(n.defaultValues,n.resetOptions);else{const{formControl:d,...m}=hb(n);r.current={...m,formState:s}}const f=r.current.control;return f._options=n,Pv(()=>{const d=f._subscribe({formState:f._proxyFormState,callback:()=>u({...f._formState}),reRenderRoot:!0});return u(m=>({...m,isReady:!0})),f._formState.isReady=!0,d},[f]),_t.useEffect(()=>f._disableForm(n.disabled),[f,n.disabled]),_t.useEffect(()=>{n.mode&&(f._options.mode=n.mode),n.reValidateMode&&(f._options.reValidateMode=n.reValidateMode)},[f,n.mode,n.reValidateMode]),_t.useEffect(()=>{n.errors&&(f._setErrors(n.errors),f._focusError())},[f,n.errors]),_t.useEffect(()=>{n.shouldUnregister&&f._subjects.state.next({values:f._getWatch()})},[f,n.shouldUnregister]),_t.useEffect(()=>{if(f._proxyFormState.isDirty){const d=f._getDirty();d!==s.isDirty&&f._subjects.state.next({isDirty:d})}},[f,s.isDirty]),_t.useEffect(()=>{var d;n.values&&!En(n.values,l.current)?(f._reset(n.values,{keepFieldsRef:!0,...f._options.resetOptions}),!((d=f._options.resetOptions)===null||d===void 0)&&d.keepIsValid||f._setValid(),l.current=n.values,u(m=>({...m}))):f._resetDefaultValues()},[f,n.values]),_t.useEffect(()=>{f._state.mount||(f._setValid(),f._state.mount=!0),f._state.watch&&(f._state.watch=!1,f._subjects.state.next({...f._formState})),f._removeUnmounted()}),r.current.formState=_t.useMemo(()=>Jv(s,f),[f,s]),r.current}const zh=(n,r,l)=>{if(n&&"reportValidity"in n){const s=oe(l,r);n.setCustomValidity(s&&s.message||""),n.reportValidity()}},ju=(n,r)=>{for(const l in r.fields){const s=r.fields[l];s&&s.ref&&"reportValidity"in s.ref?zh(s.ref,l,n):s&&s.refs&&s.refs.forEach(u=>zh(u,l,n))}},Nh=(n,r)=>{r.shouldUseNativeValidation&&ju(n,r);const l={};for(const s in n){const u=oe(r.fields,s),f=Object.assign(n[s]||{},{ref:u&&u.ref});if(pb(r.names||Object.keys(n),s)){const d=Object.assign({},oe(l,s));Pe(d,"root",f),Pe(l,s,d)}else Pe(l,s,f)}return l},pb=(n,r)=>{const l=kh(r);return n.some(s=>kh(s).match(`^${l}\\.\\d+`))};function kh(n){return n.replace(/\]|\[/g,"")}function jh(n,r,l){function s(m,y){var p;Object.defineProperty(m,"_zod",{value:m._zod??{},enumerable:!1}),(p=m._zod).traits??(p.traits=new Set),m._zod.traits.add(n),r(m,y);for(const _ in d.prototype)_ in m||Object.defineProperty(m,_,{value:d.prototype[_].bind(m)});m._zod.constr=d,m._zod.def=y}const u=(l==null?void 0:l.Parent)??Object;class f extends u{}Object.defineProperty(f,"name",{value:n});function d(m){var y;const p=l!=null&&l.Parent?new f:this;s(p,m),(y=p._zod).deferred??(y.deferred=[]);for(const _ of p._zod.deferred)_();return p}return Object.defineProperty(d,"init",{value:s}),Object.defineProperty(d,Symbol.hasInstance,{value:m=>{var y,p;return l!=null&&l.Parent&&m instanceof l.Parent?!0:(p=(y=m==null?void 0:m._zod)==null?void 0:y.traits)==null?void 0:p.has(n)}}),Object.defineProperty(d,"name",{value:n}),d}class gb extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}const yb={};function Mh(n){return yb}function vb(n,r){return typeof r=="bigint"?r.toString():r}const Rh=Error.captureStackTrace?Error.captureStackTrace:(...n)=>{};function us(n){return typeof n=="string"?n:n==null?void 0:n.message}function Dh(n,r,l){var u,f,d,m,y,p;const s={...n,path:n.path??[]};if(!n.message){const _=us((d=(f=(u=n.inst)==null?void 0:u._zod.def)==null?void 0:f.error)==null?void 0:d.call(f,n))??us((m=r==null?void 0:r.error)==null?void 0:m.call(r,n))??us((y=l.customError)==null?void 0:y.call(l,n))??us((p=l.localeError)==null?void 0:p.call(l,n))??"Invalid input";s.message=_}return delete s.inst,delete s.continue,r!=null&&r.reportInput||delete s.input,s}const Uh=(n,r)=>{n.name="$ZodError",Object.defineProperty(n,"_zod",{value:n._zod,enumerable:!1}),Object.defineProperty(n,"issues",{value:r,enumerable:!1}),Object.defineProperty(n,"message",{get(){return JSON.stringify(r,vb,2)},enumerable:!0}),Object.defineProperty(n,"toString",{value:()=>n.message,enumerable:!1})},bb=jh("$ZodError",Uh),Bh=jh("$ZodError",Uh,{Parent:Error}),xb=(n=>(r,l,s,u)=>{const f=s?Object.assign(s,{async:!1}):{async:!1},d=r._zod.run({value:l,issues:[]},f);if(d instanceof Promise)throw new gb;if(d.issues.length){const m=new((u==null?void 0:u.Err)??n)(d.issues.map(y=>Dh(y,f,Mh())));throw Rh(m,u==null?void 0:u.callee),m}return d.value})(Bh),_b=(n=>async(r,l,s,u)=>{const f=s?Object.assign(s,{async:!0}):{async:!0};let d=r._zod.run({value:l,issues:[]},f);if(d instanceof Promise&&(d=await d),d.issues.length){const m=new((u==null?void 0:u.Err)??n)(d.issues.map(y=>Dh(y,f,Mh())));throw Rh(m,u==null?void 0:u.callee),m}return d.value})(Bh);function Lh(n,r){try{var l=n()}catch(s){return r(s)}return l&&l.then?l.then(void 0,r):l}function Sb(n,r){for(var l={};n.length;){var s=n[0],u=s.code,f=s.message,d=s.path.join(".");if(!l[d])if("unionErrors"in s){var m=s.unionErrors[0].errors[0];l[d]={message:m.message,type:m.code}}else l[d]={message:f,type:u};if("unionErrors"in s&&s.unionErrors.forEach(function(_){return _.errors.forEach(function(x){return n.push(x)})}),r){var y=l[d].types,p=y&&y[s.code];l[d]=Eu(d,r,l,u,p?[].concat(p,s.message):s.message)}n.shift()}return l}function wb(n,r){for(var l={};n.length;){var s=n[0],u=s.code,f=s.message,d=s.path.join(".");if(!l[d])if(s.code==="invalid_union"&&s.errors.length>0){var m=s.errors[0][0];l[d]={message:m.message,type:m.code}}else l[d]={message:f,type:u};if(s.code==="invalid_union"&&s.errors.forEach(function(_){return _.forEach(function(x){return n.push(x)})}),r){var y=l[d].types,p=y&&y[s.code];l[d]=Eu(d,r,l,u,p?[].concat(p,s.message):s.message)}n.shift()}return l}function Ab(n,r,l){if(l===void 0&&(l={}),(function(s){return"_def"in s&&typeof s._def=="object"&&"typeName"in s._def})(n))return function(s,u,f){try{return Promise.resolve(Lh(function(){return Promise.resolve(n[l.mode==="sync"?"parse":"parseAsync"](s,r)).then(function(d){return f.shouldUseNativeValidation&&ju({},f),{errors:{},values:l.raw?Object.assign({},s):d}})},function(d){if((function(m){return Array.isArray(m==null?void 0:m.issues)})(d))return{values:{},errors:Nh(Sb(d.errors,!f.shouldUseNativeValidation&&f.criteriaMode==="all"),f)};throw d}))}catch(d){return Promise.reject(d)}};if((function(s){return"_zod"in s&&typeof s._zod=="object"})(n))return function(s,u,f){try{return Promise.resolve(Lh(function(){return Promise.resolve((l.mode==="sync"?xb:_b)(n,s,r)).then(function(d){return f.shouldUseNativeValidation&&ju({},f),{errors:{},values:l.raw?Object.assign({},s):d}})},function(d){if((function(m){return m instanceof bb})(d))return{values:{},errors:Nh(wb(d.issues,!f.shouldUseNativeValidation&&f.criteriaMode==="all"),f)};throw d}))}catch(d){return Promise.reject(d)}};throw new Error("Invalid input: not a Zod schema")}/**
53
+ */var bm;function cv(){return bm||(bm=1,(function(n){(function(){var r={}.hasOwnProperty;function l(){for(var f="",d=0;d<arguments.length;d++){var h=arguments[d];h&&(f=u(f,s(h)))}return f}function s(f){if(typeof f=="string"||typeof f=="number")return f;if(typeof f!="object")return"";if(Array.isArray(f))return l.apply(null,f);if(f.toString!==Object.prototype.toString&&!f.toString.toString().includes("[native code]"))return f.toString();var d="";for(var h in f)r.call(f,h)&&f[h]&&(d=u(d,h));return d}function u(f,d){return d?f?f+" "+d:f+d:f}n.exports?(l.default=l,n.exports=l):window.classNames=l})()})(Eu)),Eu.exports}var fv=cv();const ot=tr(fv);function Wa(n){return x.jsxDEV("button",{...n,className:ot("w-3xs cursor-pointer h-10 rounded-lg text-white text-sm font-semibold transition-colors",n.className),style:{...n.style},children:n.children},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/UI/Button/index.tsx",lineNumber:10,columnNumber:5},this)}const vm=n=>{let r;const l=new Set,s=(p,S)=>{const v=typeof p=="function"?p(r):p;if(!Object.is(v,r)){const D=r;r=S??(typeof v!="object"||v===null)?v:Object.assign({},r,v),l.forEach(N=>N(r,D))}},u=()=>r,h={setState:s,getState:u,getInitialState:()=>y,subscribe:p=>(l.add(p),()=>l.delete(p))},y=r=n(s,u,h);return h},wu=(n=>n?vm(n):vm);var pe=gu();const St=tr(pe),xm=Ia({__proto__:null,default:St},[pe]),dv=n=>n;function Du(n,r=dv){const l=St.useSyncExternalStore(n.subscribe,St.useCallback(()=>r(n.getState()),[n,r]),St.useCallback(()=>r(n.getInitialState()),[n,r]));return St.useDebugValue(l),l}const Sm=n=>{const r=wu(n),l=s=>Du(r,s);return Object.assign(l,r),l},Au=(n=>n?Sm(n):Sm),mv={securityNumber:"",requestId:"",cardID:"",state:"isEmpty",availableDiscountSelected:{quantity:0,discount:{unit:0,total:0},totalPrice:0,grossPrice:0},benefitsEnabled:!0,benefitsList:null,targetProduct:null,campaign:"pbm_campaign",isAuthenticatedShopper:!1,customLoginUrl:"/login"},Nm=wu(n=>({...mv,setSecurityNumber:r=>n({securityNumber:r}),setRequestId:r=>n({requestId:r}),setState:r=>n({state:r}),setTargetProduct:r=>n({targetProduct:r}),setAvailableDiscountSelected:r=>n({availableDiscountSelected:r}),setUrlAcceptTerms:r=>n({urlAcceptTerms:r}),setUrlRegisterIndustry:r=>n({urlRegisterIndustry:r}),setIsAuthenticatedShopper:r=>n({isAuthenticatedShopper:r}),setCustomLoginUrl:r=>n({customLoginUrl:r}),setCardID:r=>n({cardID:r}),setBenefitsEnabled:r=>n({benefitsEnabled:r}),setBenefitsList:r=>n({benefitsList:r})})),hv=()=>({getState:()=>{const n=Nm.getState(),{setSecurityNumber:r,setState:l,setAvailableDiscountSelected:s,setTargetProduct:u,setUrlAcceptTerms:f,setUrlRegisterIndustry:d,setIsAuthenticatedShopper:h,setCustomLoginUrl:y,setCardID:p,setBenefitsEnabled:S,setBenefitsList:v,setRequestId:D,requestId:N,benefitsEnabled:V,benefitsList:E,...q}=n,{authorizedQuantity:P,discountMaxNewPatient:K,allowsAdhesion:ae,comboId:ee,discountValueIndustry:U,authorizer:Q,grossPrice:J,industryCompanyCode:_e,pointing:Me,productLink:We,requestCoupon:be,requestHolderId:b,suggestedPrice:$,suggestedPriceValue:F,status:le,returnCode:O,...X}=n.targetProduct;return{...q,targetProduct:X}}});function Kt(n){return Du(Nm,(r=>r))}var Zi=n=>n.type==="checkbox",nr=n=>n instanceof Date,Jt=n=>n==null;const _m=n=>typeof n=="object";var gt=n=>!Jt(n)&&!Array.isArray(n)&&_m(n)&&!nr(n),pv=n=>gt(n)&&n.target?Zi(n.target)?n.target.checked:n.target.value:n,Cm=n=>n.substring(0,n.search(/\.\d+(\.|$)/))||n,gv=(n,r)=>n.has(Cm(r)),yv=n=>{const r=n.constructor&&n.constructor.prototype;return gt(r)&&r.hasOwnProperty("isPrototypeOf")},Tu=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Tt(n){if(n instanceof Date)return new Date(n);const r=typeof FileList<"u"&&n instanceof FileList;if(Tu&&(n instanceof Blob||r))return n;const l=Array.isArray(n);if(!l&&!(gt(n)&&yv(n)))return n;const s=l?[]:Object.create(Object.getPrototypeOf(n));for(const u in n)Object.prototype.hasOwnProperty.call(n,u)&&(s[u]=Tt(n[u]));return s}var cs=n=>/^\w*$/.test(n),ft=n=>n===void 0,Ou=n=>Array.isArray(n)?n.filter(Boolean):[],Ru=n=>Ou(n.replace(/["|']|\]/g,"").split(/\.|\[/)),oe=(n,r,l)=>{if(!r||!gt(n))return l;const s=(cs(r)?[r]:Ru(r)).reduce((u,f)=>Jt(u)?u:u[f],n);return ft(s)||s===n?ft(n[r])?l:n[r]:s},Ha=n=>typeof n=="boolean",Ma=n=>typeof n=="function",Ie=(n,r,l)=>{let s=-1;const u=cs(r)?[r]:Ru(r),f=u.length,d=f-1;for(;++s<f;){const h=u[s];let y=l;if(s!==d){const p=n[h];y=gt(p)||Array.isArray(p)?p:isNaN(+u[s+1])?{}:[]}if(h==="__proto__"||h==="constructor"||h==="prototype")return;n[h]=y,n=n[h]}};const Br={BLUR:"blur",FOCUS_OUT:"focusout",SUBMIT:"submit",TRIGGER:"trigger",VALID:"valid"},za={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},ka={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},Mu="form",Em="root",bv=St.createContext(null);bv.displayName="HookFormControlContext";var vv=(n,r,l,s=!0)=>{const u={defaultValues:r._defaultValues};for(const f in n)Object.defineProperty(u,f,{get:()=>{const d=f;return r._proxyFormState[d]!==za.all&&(r._proxyFormState[d]=!s||za.all),n[d]}});return u};const xv=typeof window<"u"?St.useLayoutEffect:St.useEffect;var Yt=n=>typeof n=="string",Sv=(n,r,l,s,u)=>Yt(n)?(s&&r.watch.add(n),oe(l,n,u)):Array.isArray(n)?n.map(f=>(s&&r.watch.add(f),oe(l,f))):(s&&(r.watchAll=!0),l),zu=n=>Jt(n)||!_m(n);function Dn(n,r,l=new WeakSet){if(zu(n)||zu(r))return Object.is(n,r);if(nr(n)&&nr(r))return Object.is(n.getTime(),r.getTime());const s=Object.keys(n),u=Object.keys(r);if(s.length!==u.length)return!1;if(l.has(n)||l.has(r))return!0;l.add(n),l.add(r);for(const f of s){const d=n[f];if(!u.includes(f))return!1;if(f!=="ref"){const h=r[f];if(nr(d)&&nr(h)||gt(d)&&gt(h)||Array.isArray(d)&&Array.isArray(h)?!Dn(d,h,l):!Object.is(d,h))return!1}}return!0}const Nv=St.createContext(null);Nv.displayName="HookFormContext";var ku=(n,r,l,s,u)=>r?{...l[n],types:{...l[n]&&l[n].types?l[n].types:{},[s]:u||!0}}:{},Yi=n=>Array.isArray(n)?n:[n],wm=()=>{let n=[];return{get observers(){return n},next:u=>{for(const f of n)f.next&&f.next(u)},subscribe:u=>(n.push(u),{unsubscribe:()=>{n=n.filter(f=>f!==u)}}),unsubscribe:()=>{n=[]}}};function Dm(n,r){const l={};for(const s in n)if(n.hasOwnProperty(s)){const u=n[s],f=r[s];if(u&&gt(u)&&f){const d=Dm(u,f);gt(d)&&(l[s]=d)}else n[s]&&(l[s]=f)}return l}var $t=n=>gt(n)&&!Object.keys(n).length,ju=n=>n.type==="file",fs=n=>{if(!Tu)return!1;const r=n?n.ownerDocument:0;return n instanceof(r&&r.defaultView?r.defaultView.HTMLElement:HTMLElement)},Am=n=>n.type==="select-multiple",Vu=n=>n.type==="radio",_v=n=>Vu(n)||Zi(n),Bu=n=>fs(n)&&n.isConnected;function Cv(n,r){const l=r.slice(0,-1).length;let s=0;for(;s<l;)n=ft(n)?s++:n[r[s++]];return n}function Ev(n){for(const r in n)if(n.hasOwnProperty(r)&&!ft(n[r]))return!1;return!0}function Nt(n,r){const l=Array.isArray(r)?r:cs(r)?[r]:Ru(r),s=l.length===1?n:Cv(n,l),u=l.length-1,f=l[u];return s&&delete s[f],u!==0&&(gt(s)&&$t(s)||Array.isArray(s)&&Ev(s))&&Nt(n,l.slice(0,-1)),n}var wv=n=>{for(const r in n)if(Ma(n[r]))return!0;return!1};function Tm(n){return Array.isArray(n)||gt(n)&&!wv(n)}function Uu(n,r={}){for(const l in n){const s=n[l];Tm(s)?(r[l]=Array.isArray(s)?[]:{},Uu(s,r[l])):ft(s)||(r[l]=!0)}return r}function Ur(n,r,l){l||(l=Uu(r));for(const s in n){const u=n[s];if(Tm(u))ft(r)||zu(l[s])?l[s]=Uu(u,Array.isArray(u)?[]:{}):Ur(u,Jt(r)?{}:r[s],l[s]);else{const f=r[s];l[s]=!Dn(u,f)}}return l}const Om={value:!1,isValid:!1},Rm={value:!0,isValid:!0};var Mm=n=>{if(Array.isArray(n)){if(n.length>1){const r=n.filter(l=>l&&l.checked&&!l.disabled).map(l=>l.value);return{value:r,isValid:!!r.length}}return n[0].checked&&!n[0].disabled?n[0].attributes&&!ft(n[0].attributes.value)?ft(n[0].value)||n[0].value===""?Rm:{value:n[0].value,isValid:!0}:Rm:Om}return Om},zm=(n,{valueAsNumber:r,valueAsDate:l,setValueAs:s})=>ft(n)?n:r?n===""?NaN:n&&+n:l&&Yt(n)?new Date(n):s?s(n):n;const km={isValid:!1,value:null};var jm=n=>Array.isArray(n)?n.reduce((r,l)=>l&&l.checked&&!l.disabled?{isValid:!0,value:l.value}:r,km):km;function Vm(n){const r=n.ref;return ju(r)?r.files:Vu(r)?jm(n.refs).value:Am(r)?[...r.selectedOptions].map(({value:l})=>l):Zi(r)?Mm(n.refs).value:zm(ft(r.value)?n.ref.value:r.value,n)}var Dv=(n,r,l,s)=>{const u={};for(const f of n){const d=oe(r,f);d&&Ie(u,f,d._f)}return{criteriaMode:l,names:[...n],fields:u,shouldUseNativeValidation:s}},ds=n=>n instanceof RegExp,$i=n=>ft(n)?n:ds(n)?n.source:gt(n)?ds(n.value)?n.value.source:n.value:n,Bm=n=>({isOnSubmit:!n||n===za.onSubmit,isOnBlur:n===za.onBlur,isOnChange:n===za.onChange,isOnAll:n===za.all,isOnTouch:n===za.onTouched});const Um="AsyncFunction";var Av=n=>!!n&&!!n.validate&&!!(Ma(n.validate)&&n.validate.constructor.name===Um||gt(n.validate)&&Object.values(n.validate).find(r=>r.constructor.name===Um)),Tv=n=>n.mount&&(n.required||n.min||n.max||n.maxLength||n.minLength||n.pattern||n.validate),Lm=(n,r,l)=>!l&&(r.watchAll||r.watch.has(n)||[...r.watch].some(s=>n.startsWith(s)&&/^\.\w+/.test(n.slice(s.length))));const Fi=(n,r,l,s)=>{for(const u of l||Object.keys(n)){const f=oe(n,u);if(f){const{_f:d,...h}=f;if(d){if(d.refs&&d.refs[0]&&r(d.refs[0],u)&&!s)return!0;if(d.ref&&r(d.ref,d.name)&&!s)return!0;if(Fi(h,r))break}else if(gt(h)&&Fi(h,r))break}}};function Hm(n,r,l){const s=oe(n,l);if(s||cs(l))return{error:s,name:l};const u=l.split(".");for(;u.length;){const f=u.join("."),d=oe(r,f),h=oe(n,f);if(d&&!Array.isArray(d)&&l!==f)return{name:l};if(h&&h.type)return{name:f,error:h};if(h&&h.root&&h.root.type)return{name:`${f}.root`,error:h.root};u.pop()}return{name:l}}var Ov=(n,r,l,s)=>{l(n);const{name:u,...f}=n;return $t(f)||Object.keys(f).length>=Object.keys(r).length||Object.keys(f).find(d=>r[d]===(!s||za.all))},Rv=(n,r,l)=>!n||!r||n===r||Yi(n).some(s=>s&&(l?s===r:s.startsWith(r)||r.startsWith(s))),Mv=(n,r,l,s,u)=>u.isOnAll?!1:!l&&u.isOnTouch?!(r||n):(l?s.isOnBlur:u.isOnBlur)?!n:(l?s.isOnChange:u.isOnChange)?n:!0,zv=(n,r)=>!Ou(oe(n,r)).length&&Nt(n,r),kv=(n,r,l)=>{const s=Yi(oe(n,l));return Ie(s,Em,r[l]),Ie(n,l,s),n};function qm(n,r,l="validate"){if(Yt(n)||Array.isArray(n)&&n.every(Yt)||Ha(n)&&!n)return{type:l,message:Yt(n)?n:"",ref:r}}var Lr=n=>gt(n)&&!ds(n)?n:{value:n,message:""},Gm=async(n,r,l,s,u,f)=>{const{ref:d,refs:h,required:y,maxLength:p,minLength:S,min:v,max:D,pattern:N,validate:V,name:E,valueAsNumber:q,mount:P}=n._f,K=oe(l,E);if(!P||r.has(E))return{};const ae=h?h[0]:d,ee=b=>{u&&ae.reportValidity&&(ae.setCustomValidity(Ha(b)?"":b||""),ae.reportValidity())},U={},Q=Vu(d),J=Zi(d),_e=Q||J,Me=(q||ju(d))&&ft(d.value)&&ft(K)||fs(d)&&d.value===""||K===""||Array.isArray(K)&&!K.length,We=ku.bind(null,E,s,U),be=(b,$,F,le=ka.maxLength,O=ka.minLength)=>{const X=b?$:F;U[E]={type:b?le:O,message:X,ref:d,...We(b?le:O,X)}};if(f?!Array.isArray(K)||!K.length:y&&(!_e&&(Me||Jt(K))||Ha(K)&&!K||J&&!Mm(h).isValid||Q&&!jm(h).isValid)){const{value:b,message:$}=Yt(y)?{value:!!y,message:y}:Lr(y);if(b&&(U[E]={type:ka.required,message:$,ref:ae,...We(ka.required,$)},!s))return ee($),U}if(!Me&&(!Jt(v)||!Jt(D))){let b,$;const F=Lr(D),le=Lr(v);if(!Jt(K)&&!isNaN(K)){const O=d.valueAsNumber||K&&+K;Jt(F.value)||(b=O>F.value),Jt(le.value)||($=O<le.value)}else{const O=d.valueAsDate||new Date(K),X=Le=>new Date(new Date().toDateString()+" "+Le),se=d.type=="time",Te=d.type=="week";Yt(F.value)&&K&&(b=se?X(K)>X(F.value):Te?K>F.value:O>new Date(F.value)),Yt(le.value)&&K&&($=se?X(K)<X(le.value):Te?K<le.value:O<new Date(le.value))}if((b||$)&&(be(!!b,F.message,le.message,ka.max,ka.min),!s))return ee(U[E].message),U}if((p||S)&&!Me&&(Yt(K)||f&&Array.isArray(K))){const b=Lr(p),$=Lr(S),F=!Jt(b.value)&&K.length>+b.value,le=!Jt($.value)&&K.length<+$.value;if((F||le)&&(be(F,b.message,$.message),!s))return ee(U[E].message),U}if(N&&!Me&&Yt(K)){const{value:b,message:$}=Lr(N);if(ds(b)&&!K.match(b)&&(U[E]={type:ka.pattern,message:$,ref:d,...We(ka.pattern,$)},!s))return ee($),U}if(V){if(Ma(V)){const b=await V(K,l),$=qm(b,ae);if($&&(U[E]={...$,...We(ka.validate,$.message)},!s))return ee($.message),U}else if(gt(V)){let b={};for(const $ in V){if(!$t(b)&&!s)break;const F=qm(await V[$](K,l),ae,$);F&&(b={...F,...We($,F.message)},ee(F.message),s&&(U[E]=b))}if(!$t(b)&&(U[E]={ref:ae,...b},!s))return U}}return ee(!0),U};const jv={mode:za.onSubmit,reValidateMode:za.onChange,shouldFocusError:!0};function Vv(n={}){let r={...jv,...n},l={submitCount:0,isDirty:!1,isReady:!1,isLoading:Ma(r.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:r.errors||{},disabled:r.disabled||!1},s={},u=gt(r.defaultValues)||gt(r.values)?Tt(r.defaultValues||r.values)||{}:{},f=r.shouldUnregister?{}:Tt(u),d={action:!1,mount:!1,watch:!1,keepIsValid:!1},h={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},y,p=0;const S={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},v={...S};let D={...v};const N={array:wm(),state:wm()},V=r.criteriaMode===za.all,E=C=>R=>{clearTimeout(p),p=setTimeout(C,R)},q=async C=>{if(!d.keepIsValid&&!r.disabled&&(v.isValid||D.isValid||C)){let R;r.resolver?(R=$t((await _e()).errors),P()):R=await be({fields:s,onlyCheckValid:!0,eventType:Br.VALID}),R!==l.isValid&&N.state.next({isValid:R})}},P=(C,R)=>{!r.disabled&&(v.isValidating||v.validatingFields||D.isValidating||D.validatingFields)&&((C||Array.from(h.mount)).forEach(k=>{k&&(R?Ie(l.validatingFields,k,R):Nt(l.validatingFields,k))}),N.state.next({validatingFields:l.validatingFields,isValidating:!$t(l.validatingFields)}))},K=(C,R=[],k,re,W=!0,te=!0)=>{if(re&&k&&!r.disabled){if(d.action=!0,te&&Array.isArray(oe(s,C))){const fe=k(oe(s,C),re.argA,re.argB);W&&Ie(s,C,fe)}if(te&&Array.isArray(oe(l.errors,C))){const fe=k(oe(l.errors,C),re.argA,re.argB);W&&Ie(l.errors,C,fe),zv(l.errors,C)}if((v.touchedFields||D.touchedFields)&&te&&Array.isArray(oe(l.touchedFields,C))){const fe=k(oe(l.touchedFields,C),re.argA,re.argB);W&&Ie(l.touchedFields,C,fe)}if(v.dirtyFields||D.dirtyFields){const fe=Ur(u,f),Ce=Cm(C);Ie(l.dirtyFields,Ce,oe(fe,Ce))}N.state.next({name:C,isDirty:$(C,R),dirtyFields:l.dirtyFields,errors:l.errors,isValid:l.isValid})}else Ie(f,C,R)},ae=(C,R)=>{Ie(l.errors,C,R),N.state.next({errors:l.errors})},ee=C=>{l.errors=C,N.state.next({errors:l.errors,isValid:!1})},U=(C,R,k,re)=>{const W=oe(s,C);if(W){const te=oe(f,C,ft(k)?oe(u,C):k);ft(te)||re&&re.defaultChecked||R?Ie(f,C,R?te:Vm(W._f)):O(C,te),d.mount&&!d.action&&q()}},Q=(C,R,k,re,W)=>{let te=!1,fe=!1;const Ce={name:C};if(!r.disabled){if(!k||re){(v.isDirty||D.isDirty)&&(fe=l.isDirty,l.isDirty=Ce.isDirty=$(),te=fe!==Ce.isDirty);const He=Dn(oe(u,C),R);fe=!!oe(l.dirtyFields,C),He?Nt(l.dirtyFields,C):Ie(l.dirtyFields,C,!0),Ce.dirtyFields=l.dirtyFields,te=te||(v.dirtyFields||D.dirtyFields)&&fe!==!He}if(k){const He=oe(l.touchedFields,C);He||(Ie(l.touchedFields,C,k),Ce.touchedFields=l.touchedFields,te=te||(v.touchedFields||D.touchedFields)&&He!==k)}te&&W&&N.state.next(Ce)}return te?Ce:{}},J=(C,R,k,re)=>{const W=oe(l.errors,C),te=(v.isValid||D.isValid)&&Ha(R)&&l.isValid!==R;if(r.delayError&&k?(y=E(()=>ae(C,k)),y(r.delayError)):(clearTimeout(p),y=null,k?Ie(l.errors,C,k):Nt(l.errors,C)),(k?!Dn(W,k):W)||!$t(re)||te){const fe={...re,...te&&Ha(R)?{isValid:R}:{},errors:l.errors,name:C};l={...l,...fe},N.state.next(fe)}},_e=async C=>(P(C,!0),await r.resolver(f,r.context,Dv(C||h.mount,s,r.criteriaMode,r.shouldUseNativeValidation))),Me=async C=>{const{errors:R}=await _e(C);if(P(C),C)for(const k of C){const re=oe(R,k);re?Ie(l.errors,k,re):Nt(l.errors,k)}else l.errors=R;return R},We=async({name:C,eventType:R})=>{if(n.validate){const k=await n.validate({formValues:f,formState:l,name:C,eventType:R});if(gt(k))for(const re in k)k[re]&&ve(`${Mu}.${re}`,{message:Yt(k.message)?k.message:"",type:ka.validate});else Yt(k)||!k?ve(Mu,{message:k||"",type:ka.validate}):ue(Mu);return k}return!0},be=async({fields:C,onlyCheckValid:R,name:k,eventType:re,context:W={valid:!0,runRootValidation:!1}})=>{if(n.validate&&(W.runRootValidation=!0,!await We({name:k,eventType:re})&&(W.valid=!1,R)))return W.valid;for(const te in C){const fe=C[te];if(fe){const{_f:Ce,...He}=fe;if(Ce){const Ft=h.array.has(Ce.name),xa=fe._f&&Av(fe._f);xa&&v.validatingFields&&P([Ce.name],!0);const Ct=await Gm(fe,h.disabled,f,V,r.shouldUseNativeValidation&&!R,Ft);if(xa&&v.validatingFields&&P([Ce.name]),Ct[Ce.name]&&(W.valid=!1,R)||(!R&&(oe(Ct,Ce.name)?Ft?kv(l.errors,Ct,Ce.name):Ie(l.errors,Ce.name,Ct[Ce.name]):Nt(l.errors,Ce.name)),n.shouldUseNativeValidation&&Ct[Ce.name]))break}!$t(He)&&await be({context:W,onlyCheckValid:R,fields:He,name:te,eventType:re})}}return W.valid},b=()=>{for(const C of h.unMount){const R=oe(s,C);R&&(R._f.refs?R._f.refs.every(k=>!Bu(k)):!Bu(R._f.ref))&&it(C)}h.unMount=new Set},$=(C,R)=>!r.disabled&&(C&&R&&Ie(f,C,R),!Dn(Y(),u)),F=(C,R,k)=>Sv(C,h,{...d.mount?f:ft(R)?u:Yt(C)?{[C]:R}:R},k,R),le=C=>Ou(oe(d.mount?f:u,C,r.shouldUnregister?oe(u,C,[]):[])),O=(C,R,k={})=>{const re=oe(s,C);let W=R;if(re){const te=re._f;te&&(!te.disabled&&Ie(f,C,zm(R,te)),W=fs(te.ref)&&Jt(R)?"":R,Am(te.ref)?[...te.ref.options].forEach(fe=>fe.selected=W.includes(fe.value)):te.refs?Zi(te.ref)?te.refs.forEach(fe=>{(!fe.defaultChecked||!fe.disabled)&&(Array.isArray(W)?fe.checked=!!W.find(Ce=>Ce===fe.value):fe.checked=W===fe.value||!!W)}):te.refs.forEach(fe=>fe.checked=fe.value===W):ju(te.ref)?te.ref.value="":(te.ref.value=W,te.ref.type||N.state.next({name:C,values:Tt(f)})))}(k.shouldDirty||k.shouldTouch)&&Q(C,W,k.shouldTouch,k.shouldDirty,!0),k.shouldValidate&&A(C)},X=(C,R,k)=>{for(const re in R){if(!R.hasOwnProperty(re))return;const W=R[re],te=C+"."+re,fe=oe(s,te);(h.array.has(C)||gt(W)||fe&&!fe._f)&&!nr(W)?X(te,W,k):O(te,W,k)}},se=(C,R,k={})=>{const re=oe(s,C),W=h.array.has(C),te=Tt(R);Ie(f,C,te),W?(N.array.next({name:C,values:Tt(f)}),(v.isDirty||v.dirtyFields||D.isDirty||D.dirtyFields)&&k.shouldDirty&&N.state.next({name:C,dirtyFields:Ur(u,f),isDirty:$(C,te)})):re&&!re._f&&!Jt(te)?X(C,te,k):O(C,te,k),Lm(C,h)?N.state.next({...l,name:C,values:Tt(f)}):N.state.next({name:d.mount?C:void 0,values:Tt(f)})},Te=async C=>{d.mount=!0;const R=C.target;let k=R.name,re=!0;const W=oe(s,k),te=He=>{re=Number.isNaN(He)||nr(He)&&isNaN(He.getTime())||Dn(He,oe(f,k,He))},fe=Bm(r.mode),Ce=Bm(r.reValidateMode);if(W){let He,Ft;const xa=R.type?Vm(W._f):pv(C),Ct=C.type===Br.BLUR||C.type===Br.FOCUS_OUT,Qt=!Tv(W._f)&&!n.validate&&!r.resolver&&!oe(l.errors,k)&&!W._f.deps||Mv(Ct,oe(l.touchedFields,k),l.isSubmitted,Ce,fe),Sa=Lm(k,h,Ct);Ie(f,k,xa),Ct?(!R||!R.readOnly)&&(W._f.onBlur&&W._f.onBlur(C),y&&y(0)):W._f.onChange&&W._f.onChange(C);const jt=Q(k,xa,Ct),wc=!$t(jt)||Sa;if(!Ct&&N.state.next({name:k,type:C.type,values:Tt(f)}),Qt)return(v.isValid||D.isValid)&&(r.mode==="onBlur"?Ct&&q():Ct||q()),wc&&N.state.next({name:k,...Sa?{}:jt});if(!r.resolver&&n.validate&&await We({name:k,eventType:C.type}),!Ct&&Sa&&N.state.next({...l}),r.resolver){const{errors:Xs}=await _e([k]);if(P([k]),te(xa),re){const Dc=Hm(l.errors,s,k),mr=Hm(Xs,s,Dc.name||k);He=mr.error,k=mr.name,Ft=$t(Xs)}}else P([k],!0),He=(await Gm(W,h.disabled,f,V,r.shouldUseNativeValidation))[k],P([k]),te(xa),re&&(He?Ft=!1:(v.isValid||D.isValid)&&(Ft=await be({fields:s,onlyCheckValid:!0,name:k,eventType:C.type})));re&&(W._f.deps&&(!Array.isArray(W._f.deps)||W._f.deps.length>0)&&A(W._f.deps),J(k,Ft,He,jt))}},Le=(C,R)=>{if(oe(l.errors,R)&&C.focus)return C.focus(),1},A=async(C,R={})=>{let k,re;const W=Yi(C);if(r.resolver){const te=await Me(ft(C)?C:W);k=$t(te),re=C?!W.some(fe=>oe(te,fe)):k}else C?(re=(await Promise.all(W.map(async te=>{const fe=oe(s,te);return await be({fields:fe&&fe._f?{[te]:fe}:fe,eventType:Br.TRIGGER})}))).every(Boolean),!(!re&&!l.isValid)&&q()):re=k=await be({fields:s,name:C,eventType:Br.TRIGGER});return N.state.next({...!Yt(C)||(v.isValid||D.isValid)&&k!==l.isValid?{}:{name:C},...r.resolver||!C?{isValid:k}:{},errors:l.errors}),R.shouldFocus&&!re&&Fi(s,Le,C?W:h.mount),re},Y=(C,R)=>{let k={...d.mount?f:u};return R&&(k=Dm(R.dirtyFields?l.dirtyFields:l.touchedFields,k)),ft(C)?k:Yt(C)?oe(k,C):C.map(re=>oe(k,re))},ne=(C,R)=>({invalid:!!oe((R||l).errors,C),isDirty:!!oe((R||l).dirtyFields,C),error:oe((R||l).errors,C),isValidating:!!oe(l.validatingFields,C),isTouched:!!oe((R||l).touchedFields,C)}),ue=C=>{const R=C?Yi(C):void 0;R==null||R.forEach(k=>Nt(l.errors,k)),R?R.forEach(k=>{N.state.next({name:k,errors:l.errors})}):N.state.next({errors:{}})},ve=(C,R,k)=>{const re=(oe(s,C,{_f:{}})._f||{}).ref,W=oe(l.errors,C)||{},{ref:te,message:fe,type:Ce,...He}=W;Ie(l.errors,C,{...He,...R,ref:re}),N.state.next({name:C,errors:l.errors,isValid:!1}),k&&k.shouldFocus&&re&&re.focus&&re.focus()},De=(C,R)=>Ma(C)?N.state.subscribe({next:k=>"values"in k&&C(F(void 0,R),k)}):F(C,R,!0),Be=C=>N.state.subscribe({next:R=>{Rv(C.name,R.name,C.exact)&&Ov(R,C.formState||v,dl,C.reRenderRoot)&&C.callback({values:{...f},...l,...R,defaultValues:u})}}).unsubscribe,kt=C=>(d.mount=!0,D={...D,...C.formState},Be({...C,formState:{...S,...C.formState}})),it=(C,R={})=>{for(const k of C?Yi(C):h.mount)h.mount.delete(k),h.array.delete(k),R.keepValue||(Nt(s,k),Nt(f,k)),!R.keepError&&Nt(l.errors,k),!R.keepDirty&&Nt(l.dirtyFields,k),!R.keepTouched&&Nt(l.touchedFields,k),!R.keepIsValidating&&Nt(l.validatingFields,k),!r.shouldUnregister&&!R.keepDefaultValue&&Nt(u,k);N.state.next({values:Tt(f)}),N.state.next({...l,...R.keepDirty?{isDirty:$()}:{}}),!R.keepIsValid&&q()},Tn=({disabled:C,name:R})=>{if(Ha(C)&&d.mount||C||h.disabled.has(R)){const W=h.disabled.has(R)!==!!C;C?h.disabled.add(R):h.disabled.delete(R),W&&d.mount&&!d.action&&q()}},On=(C,R={})=>{let k=oe(s,C);const re=Ha(R.disabled)||Ha(r.disabled);return Ie(s,C,{...k||{},_f:{...k&&k._f?k._f:{ref:{name:C}},name:C,mount:!0,...R}}),h.mount.add(C),k?Tn({disabled:Ha(R.disabled)?R.disabled:r.disabled,name:C}):U(C,!0,R.value),{...re?{disabled:R.disabled||r.disabled}:{},...r.progressive?{required:!!R.required,min:$i(R.min),max:$i(R.max),minLength:$i(R.minLength),maxLength:$i(R.maxLength),pattern:$i(R.pattern)}:{},name:C,onChange:Te,onBlur:Te,ref:W=>{if(W){On(C,R),k=oe(s,C);const te=ft(W.value)&&W.querySelectorAll&&W.querySelectorAll("input,select,textarea")[0]||W,fe=_v(te),Ce=k._f.refs||[];if(fe?Ce.find(He=>He===te):te===k._f.ref)return;Ie(s,C,{_f:{...k._f,...fe?{refs:[...Ce.filter(Bu),te,...Array.isArray(oe(u,C))?[{}]:[]],ref:{type:te.type,name:C}}:{ref:te}}}),U(C,!1,void 0,te)}else k=oe(s,C,{}),k._f&&(k._f.mount=!1),(r.shouldUnregister||R.shouldUnregister)&&!(gv(h.array,C)&&d.action)&&h.unMount.add(C)}}},dr=()=>r.shouldFocusError&&Fi(s,Le,h.mount),Ys=C=>{Ha(C)&&(N.state.next({disabled:C}),Fi(s,(R,k)=>{const re=oe(s,k);re&&(R.disabled=re._f.disabled||C,Array.isArray(re._f.refs)&&re._f.refs.forEach(W=>{W.disabled=re._f.disabled||C}))},0,!1))},$a=(C,R)=>async k=>{let re;k&&(k.preventDefault&&k.preventDefault(),k.persist&&k.persist());let W=Tt(f);if(N.state.next({isSubmitting:!0}),r.resolver){const{errors:te,values:fe}=await _e();P(),l.errors=te,W=Tt(fe)}else await be({fields:s,eventType:Br.SUBMIT});if(h.disabled.size)for(const te of h.disabled)Nt(W,te);if(Nt(l.errors,Em),$t(l.errors)){N.state.next({errors:{}});try{await C(W,k)}catch(te){re=te}}else R&&await R({...l.errors},k),dr(),setTimeout(dr);if(N.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:$t(l.errors)&&!re,submitCount:l.submitCount+1,errors:l.errors}),re)throw re},fl=(C,R={})=>{oe(s,C)&&(ft(R.defaultValue)?se(C,Tt(oe(u,C))):(se(C,R.defaultValue),Ie(u,C,Tt(R.defaultValue))),R.keepTouched||Nt(l.touchedFields,C),R.keepDirty||(Nt(l.dirtyFields,C),l.isDirty=R.defaultValue?$(C,Tt(oe(u,C))):$()),R.keepError||(Nt(l.errors,C),v.isValid&&q()),N.state.next({...l}))},Ir=(C,R={})=>{const k=C?Tt(C):u,re=Tt(k),W=$t(C),te=W?u:re;if(R.keepDefaultValues||(u=k),!R.keepValues){if(R.keepDirtyValues){const fe=new Set([...h.mount,...Object.keys(Ur(u,f))]);for(const Ce of Array.from(fe)){const He=oe(l.dirtyFields,Ce),Ft=oe(f,Ce),xa=oe(te,Ce);He&&!ft(Ft)?Ie(te,Ce,Ft):!He&&!ft(xa)&&se(Ce,xa)}}else{if(Tu&&ft(C))for(const fe of h.mount){const Ce=oe(s,fe);if(Ce&&Ce._f){const He=Array.isArray(Ce._f.refs)?Ce._f.refs[0]:Ce._f.ref;if(fs(He)){const Ft=He.closest("form");if(Ft){Ft.reset();break}}}}if(R.keepFieldsRef)for(const fe of h.mount)se(fe,oe(te,fe));else s={}}f=r.shouldUnregister?R.keepDefaultValues?Tt(u):{}:Tt(te),N.array.next({values:{...te}}),N.state.next({values:{...te}})}h={mount:R.keepDirtyValues?h.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},d.mount=!v.isValid||!!R.keepIsValid||!!R.keepDirtyValues||!r.shouldUnregister&&!$t(te),d.watch=!!r.shouldUnregister,d.keepIsValid=!!R.keepIsValid,d.action=!1,R.keepErrors||(l.errors={}),N.state.next({submitCount:R.keepSubmitCount?l.submitCount:0,isDirty:W?!1:R.keepDirty?l.isDirty:!!(R.keepDefaultValues&&!Dn(C,u)),isSubmitted:R.keepIsSubmitted?l.isSubmitted:!1,dirtyFields:W?{}:R.keepDirtyValues?R.keepDefaultValues&&f?Ur(u,f):l.dirtyFields:R.keepDefaultValues&&C?Ur(u,C):R.keepDirty?l.dirtyFields:{},touchedFields:R.keepTouched?l.touchedFields:{},errors:R.keepErrors?l.errors:{},isSubmitSuccessful:R.keepIsSubmitSuccessful?l.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:u})},$s=(C,R)=>Ir(Ma(C)?C(f):C,{...r.resetOptions,...R}),Fs=(C,R={})=>{const k=oe(s,C),re=k&&k._f;if(re){const W=re.refs?re.refs[0]:re.ref;W.focus&&setTimeout(()=>{W.focus(),R.shouldSelect&&Ma(W.select)&&W.select()})}},dl=C=>{l={...l,...C}},Pr={control:{register:On,unregister:it,getFieldState:ne,handleSubmit:$a,setError:ve,_subscribe:Be,_runSchema:_e,_updateIsValidating:P,_focusError:dr,_getWatch:F,_getDirty:$,_setValid:q,_setFieldArray:K,_setDisabledField:Tn,_setErrors:ee,_getFieldArray:le,_reset:Ir,_resetDefaultValues:()=>Ma(r.defaultValues)&&r.defaultValues().then(C=>{$s(C,r.resetOptions),N.state.next({isLoading:!1})}),_removeUnmounted:b,_disableForm:Ys,_subjects:N,_proxyFormState:v,get _fields(){return s},get _formValues(){return f},get _state(){return d},set _state(C){d=C},get _defaultValues(){return u},get _names(){return h},set _names(C){h=C},get _formState(){return l},get _options(){return r},set _options(C){r={...r,...C}}},subscribe:kt,trigger:A,register:On,handleSubmit:$a,watch:De,setValue:se,getValues:Y,reset:$s,resetField:fl,clearErrors:ue,unregister:it,setError:ve,setFocus:Fs,getFieldState:ne};return{...Pr,formControl:Pr}}function Bv(n={}){const r=St.useRef(void 0),l=St.useRef(void 0),[s,u]=St.useState({isDirty:!1,isValidating:!1,isLoading:Ma(n.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:n.errors||{},disabled:n.disabled||!1,isReady:!1,defaultValues:Ma(n.defaultValues)?void 0:n.defaultValues});if(!r.current)if(n.formControl)r.current={...n.formControl,formState:s},n.defaultValues&&!Ma(n.defaultValues)&&n.formControl.reset(n.defaultValues,n.resetOptions);else{const{formControl:d,...h}=Vv(n);r.current={...h,formState:s}}const f=r.current.control;return f._options=n,xv(()=>{const d=f._subscribe({formState:f._proxyFormState,callback:()=>u({...f._formState}),reRenderRoot:!0});return u(h=>({...h,isReady:!0})),f._formState.isReady=!0,d},[f]),St.useEffect(()=>f._disableForm(n.disabled),[f,n.disabled]),St.useEffect(()=>{n.mode&&(f._options.mode=n.mode),n.reValidateMode&&(f._options.reValidateMode=n.reValidateMode)},[f,n.mode,n.reValidateMode]),St.useEffect(()=>{n.errors&&(f._setErrors(n.errors),f._focusError())},[f,n.errors]),St.useEffect(()=>{n.shouldUnregister&&f._subjects.state.next({values:f._getWatch()})},[f,n.shouldUnregister]),St.useEffect(()=>{if(f._proxyFormState.isDirty){const d=f._getDirty();d!==s.isDirty&&f._subjects.state.next({isDirty:d})}},[f,s.isDirty]),St.useEffect(()=>{var d;n.values&&!Dn(n.values,l.current)?(f._reset(n.values,{keepFieldsRef:!0,...f._options.resetOptions}),!((d=f._options.resetOptions)===null||d===void 0)&&d.keepIsValid||f._setValid(),l.current=n.values,u(h=>({...h}))):f._resetDefaultValues()},[f,n.values]),St.useEffect(()=>{f._state.mount||(f._setValid(),f._state.mount=!0),f._state.watch&&(f._state.watch=!1,f._subjects.state.next({...f._formState})),f._removeUnmounted()}),r.current.formState=St.useMemo(()=>vv(s,f),[f,s]),r.current}const Zm=(n,r,l)=>{if(n&&"reportValidity"in n){const s=oe(l,r);n.setCustomValidity(s&&s.message||""),n.reportValidity()}},Lu=(n,r)=>{for(const l in r.fields){const s=r.fields[l];s&&s.ref&&"reportValidity"in s.ref?Zm(s.ref,l,n):s&&s.refs&&s.refs.forEach(u=>Zm(u,l,n))}},Ym=(n,r)=>{r.shouldUseNativeValidation&&Lu(n,r);const l={};for(const s in n){const u=oe(r.fields,s),f=Object.assign(n[s]||{},{ref:u&&u.ref});if(Uv(r.names||Object.keys(n),s)){const d=Object.assign({},oe(l,s));Ie(d,"root",f),Ie(l,s,d)}else Ie(l,s,f)}return l},Uv=(n,r)=>{const l=$m(r);return n.some(s=>$m(s).match(`^${l}\\.\\d+`))};function $m(n){return n.replace(/\]|\[/g,"")}function Fm(n,r,l){function s(h,y){var p;Object.defineProperty(h,"_zod",{value:h._zod??{},enumerable:!1}),(p=h._zod).traits??(p.traits=new Set),h._zod.traits.add(n),r(h,y);for(const S in d.prototype)S in h||Object.defineProperty(h,S,{value:d.prototype[S].bind(h)});h._zod.constr=d,h._zod.def=y}const u=(l==null?void 0:l.Parent)??Object;class f extends u{}Object.defineProperty(f,"name",{value:n});function d(h){var y;const p=l!=null&&l.Parent?new f:this;s(p,h),(y=p._zod).deferred??(y.deferred=[]);for(const S of p._zod.deferred)S();return p}return Object.defineProperty(d,"init",{value:s}),Object.defineProperty(d,Symbol.hasInstance,{value:h=>{var y,p;return l!=null&&l.Parent&&h instanceof l.Parent?!0:(p=(y=h==null?void 0:h._zod)==null?void 0:y.traits)==null?void 0:p.has(n)}}),Object.defineProperty(d,"name",{value:n}),d}class Lv extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}const Hv={};function Qm(n){return Hv}function qv(n,r){return typeof r=="bigint"?r.toString():r}const Xm=Error.captureStackTrace?Error.captureStackTrace:(...n)=>{};function ms(n){return typeof n=="string"?n:n==null?void 0:n.message}function Km(n,r,l){var u,f,d,h,y,p;const s={...n,path:n.path??[]};if(!n.message){const S=ms((d=(f=(u=n.inst)==null?void 0:u._zod.def)==null?void 0:f.error)==null?void 0:d.call(f,n))??ms((h=r==null?void 0:r.error)==null?void 0:h.call(r,n))??ms((y=l.customError)==null?void 0:y.call(l,n))??ms((p=l.localeError)==null?void 0:p.call(l,n))??"Invalid input";s.message=S}return delete s.inst,delete s.continue,r!=null&&r.reportInput||delete s.input,s}const Jm=(n,r)=>{n.name="$ZodError",Object.defineProperty(n,"_zod",{value:n._zod,enumerable:!1}),Object.defineProperty(n,"issues",{value:r,enumerable:!1}),Object.defineProperty(n,"message",{get(){return JSON.stringify(r,qv,2)},enumerable:!0}),Object.defineProperty(n,"toString",{value:()=>n.message,enumerable:!1})},Gv=Fm("$ZodError",Jm),Im=Fm("$ZodError",Jm,{Parent:Error}),Zv=(n=>(r,l,s,u)=>{const f=s?Object.assign(s,{async:!1}):{async:!1},d=r._zod.run({value:l,issues:[]},f);if(d instanceof Promise)throw new Lv;if(d.issues.length){const h=new((u==null?void 0:u.Err)??n)(d.issues.map(y=>Km(y,f,Qm())));throw Xm(h,u==null?void 0:u.callee),h}return d.value})(Im),Yv=(n=>async(r,l,s,u)=>{const f=s?Object.assign(s,{async:!0}):{async:!0};let d=r._zod.run({value:l,issues:[]},f);if(d instanceof Promise&&(d=await d),d.issues.length){const h=new((u==null?void 0:u.Err)??n)(d.issues.map(y=>Km(y,f,Qm())));throw Xm(h,u==null?void 0:u.callee),h}return d.value})(Im);function Pm(n,r){try{var l=n()}catch(s){return r(s)}return l&&l.then?l.then(void 0,r):l}function $v(n,r){for(var l={};n.length;){var s=n[0],u=s.code,f=s.message,d=s.path.join(".");if(!l[d])if("unionErrors"in s){var h=s.unionErrors[0].errors[0];l[d]={message:h.message,type:h.code}}else l[d]={message:f,type:u};if("unionErrors"in s&&s.unionErrors.forEach(function(S){return S.errors.forEach(function(v){return n.push(v)})}),r){var y=l[d].types,p=y&&y[s.code];l[d]=ku(d,r,l,u,p?[].concat(p,s.message):s.message)}n.shift()}return l}function Fv(n,r){for(var l={};n.length;){var s=n[0],u=s.code,f=s.message,d=s.path.join(".");if(!l[d])if(s.code==="invalid_union"&&s.errors.length>0){var h=s.errors[0][0];l[d]={message:h.message,type:h.code}}else l[d]={message:f,type:u};if(s.code==="invalid_union"&&s.errors.forEach(function(S){return S.forEach(function(v){return n.push(v)})}),r){var y=l[d].types,p=y&&y[s.code];l[d]=ku(d,r,l,u,p?[].concat(p,s.message):s.message)}n.shift()}return l}function Qv(n,r,l){if(l===void 0&&(l={}),(function(s){return"_def"in s&&typeof s._def=="object"&&"typeName"in s._def})(n))return function(s,u,f){try{return Promise.resolve(Pm(function(){return Promise.resolve(n[l.mode==="sync"?"parse":"parseAsync"](s,r)).then(function(d){return f.shouldUseNativeValidation&&Lu({},f),{errors:{},values:l.raw?Object.assign({},s):d}})},function(d){if((function(h){return Array.isArray(h==null?void 0:h.issues)})(d))return{values:{},errors:Ym($v(d.errors,!f.shouldUseNativeValidation&&f.criteriaMode==="all"),f)};throw d}))}catch(d){return Promise.reject(d)}};if((function(s){return"_zod"in s&&typeof s._zod=="object"})(n))return function(s,u,f){try{return Promise.resolve(Pm(function(){return Promise.resolve((l.mode==="sync"?Zv:Yv)(n,s,r)).then(function(d){return f.shouldUseNativeValidation&&Lu({},f),{errors:{},values:l.raw?Object.assign({},s):d}})},function(d){if((function(h){return h instanceof Gv})(d))return{values:{},errors:Ym(Fv(d.issues,!f.shouldUseNativeValidation&&f.criteriaMode==="all"),f)};throw d}))}catch(d){return Promise.reject(d)}};throw new Error("Invalid input: not a Zod schema")}/**
54
54
  * @license lucide-react v0.518.0 - ISC
55
55
  *
56
56
  * This source code is licensed under the ISC license.
57
57
  * See the LICENSE file in the root directory of this source tree.
58
- */const Cb=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Tb=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(r,l,s)=>s?s.toUpperCase():l.toLowerCase()),Vh=n=>{const r=Tb(n);return r.charAt(0).toUpperCase()+r.slice(1)},Hh=(...n)=>n.filter((r,l,s)=>!!r&&r.trim()!==""&&s.indexOf(r)===l).join(" ").trim(),Eb=n=>{for(const r in n)if(r.startsWith("aria-")||r==="role"||r==="title")return!0};/**
58
+ */const Xv=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Kv=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(r,l,s)=>s?s.toUpperCase():l.toLowerCase()),Wm=n=>{const r=Kv(n);return r.charAt(0).toUpperCase()+r.slice(1)},eh=(...n)=>n.filter((r,l,s)=>!!r&&r.trim()!==""&&s.indexOf(r)===l).join(" ").trim(),Jv=n=>{for(const r in n)if(r.startsWith("aria-")||r==="role"||r==="title")return!0};/**
59
59
  * @license lucide-react v0.518.0 - ISC
60
60
  *
61
61
  * This source code is licensed under the ISC license.
62
62
  * See the LICENSE file in the root directory of this source tree.
63
- */var Ob={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
63
+ */var Iv={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
64
64
  * @license lucide-react v0.518.0 - ISC
65
65
  *
66
66
  * This source code is licensed under the ISC license.
67
67
  * See the LICENSE file in the root directory of this source tree.
68
- */const zb=ge.forwardRef(({color:n="currentColor",size:r=24,strokeWidth:l=2,absoluteStrokeWidth:s,className:u="",children:f,iconNode:d,...m},y)=>ge.createElement("svg",{ref:y,...Ob,width:r,height:r,stroke:n,strokeWidth:s?Number(l)*24/Number(r):l,className:Hh("lucide",u),...!f&&!Eb(m)&&{"aria-hidden":"true"},...m},[...d.map(([p,_])=>ge.createElement(p,_)),...Array.isArray(f)?f:[f]]));/**
68
+ */const Pv=pe.forwardRef(({color:n="currentColor",size:r=24,strokeWidth:l=2,absoluteStrokeWidth:s,className:u="",children:f,iconNode:d,...h},y)=>pe.createElement("svg",{ref:y,...Iv,width:r,height:r,stroke:n,strokeWidth:s?Number(l)*24/Number(r):l,className:eh("lucide",u),...!f&&!Jv(h)&&{"aria-hidden":"true"},...h},[...d.map(([p,S])=>pe.createElement(p,S)),...Array.isArray(f)?f:[f]]));/**
69
69
  * @license lucide-react v0.518.0 - ISC
70
70
  *
71
71
  * This source code is licensed under the ISC license.
72
72
  * See the LICENSE file in the root directory of this source tree.
73
- */const qh=(n,r)=>{const l=ge.forwardRef(({className:s,...u},f)=>ge.createElement(zb,{ref:f,iconNode:r,className:Hh(`lucide-${Cb(Vh(n))}`,`lucide-${n}`,s),...u}));return l.displayName=Vh(n),l};/**
73
+ */const th=(n,r)=>{const l=pe.forwardRef(({className:s,...u},f)=>pe.createElement(Pv,{ref:f,iconNode:r,className:eh(`lucide-${Xv(Wm(n))}`,`lucide-${n}`,s),...u}));return l.displayName=Wm(n),l};/**
74
74
  * @license lucide-react v0.518.0 - ISC
75
75
  *
76
76
  * This source code is licensed under the ISC license.
77
77
  * See the LICENSE file in the root directory of this source tree.
78
- */const Zh=qh("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/**
78
+ */const ah=th("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/**
79
79
  * @license lucide-react v0.518.0 - ISC
80
80
  *
81
81
  * This source code is licensed under the ISC license.
82
82
  * See the LICENSE file in the root directory of this source tree.
83
- */const Nb=qh("refresh-cw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]),Gh={modal:{id:"",open:!1,label:"",url:""}},rr=_u(n=>({...Gh,setModal:r=>n({modal:r}),resetModal:()=>n({modal:Gh.modal})})),kb=n=>n.replace(/\D/g,"").slice(0,11).replace(/^(\d{2})(\d{5})(\d{0,4})/,"($1) $2-$3").trim(),jb=n=>n.replace(/\D/g,"").slice(0,8).replace(/^(\d{5})(\d{0,3})/,"$1-$2"),Mb=n=>n.replace(/\D/g,"").replace(/(\d{3})(\d{3})(\d{3})(\d{2})/,"$1.$2.$3-$4"),Rb=n=>Number(String(n).replace(",",".")),Db=n=>{const r=String(n),l=r.slice(-2);return+`${r.slice(0,-2)||"0"}.${l}`},Ub=n=>{const r=n.slice(-2);return+`${n.slice(0,-2)||"0"}.${r}`};function Bb(n){return n.replace(/[.,]/g,"")}const la={phone:n=>kb(n),cep:n=>jb(n),cpf:n=>Mb(n),priceToInteger:n=>Bb(n),price:n=>Rb(n),transformPrice:n=>Db(n),transformPorcent:n=>Ub(n)};/*! js-cookie v3.0.5 | MIT */function cs(n){for(var r=1;r<arguments.length;r++){var l=arguments[r];for(var s in l)n[s]=l[s]}return n}var Lb={read:function(n){return n[0]==='"'&&(n=n.slice(1,-1)),n.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(n){return encodeURIComponent(n).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function Mu(n,r){function l(u,f,d){if(!(typeof document>"u")){d=cs({},r,d),typeof d.expires=="number"&&(d.expires=new Date(Date.now()+d.expires*864e5)),d.expires&&(d.expires=d.expires.toUTCString()),u=encodeURIComponent(u).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var m="";for(var y in d)d[y]&&(m+="; "+y,d[y]!==!0&&(m+="="+d[y].split(";")[0]));return document.cookie=u+"="+n.write(f,u)+m}}function s(u){if(!(typeof document>"u"||arguments.length&&!u)){for(var f=document.cookie?document.cookie.split("; "):[],d={},m=0;m<f.length;m++){var y=f[m].split("="),p=y.slice(1).join("=");try{var _=decodeURIComponent(y[0]);if(d[_]=n.read(p,_),u===_)break}catch{}}return u?d[u]:d}}return Object.create({set:l,get:s,remove:function(u,f){l(u,"",cs({},f,{expires:-1}))},withAttributes:function(u){return Mu(this.converter,cs({},this.attributes,u))},withConverter:function(u){return Mu(cs({},this.converter,u),this.attributes)}},{attributes:{value:Object.freeze(r)},converter:{value:Object.freeze(n)}})}var rt=Mu(Lb,{path:"/"});const Ru={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1,VITE_API_URL:"https://serverless-pbm.vercel.app",VITE_CLIENT_ID_SANTOREMEDIO:"fff909d6-a77e-4ffc-a4bb-47a1cde99621",VITE_CLIENT_SECRET_SANTOREMEDIO:"ZTK8Q~gqjOkbBmH3vN1AIsKUbwkhUYOkzfvIUb18",VITE_CORREIOS_API_URL:"https://viacep.com.br/ws",VITE_GRANT_TYPE_SANTOREMEDIO:"client_credentials",VITE_SCOPE_SANTOREMEDIO:"https://interplayersdevb2c.onmicrosoft.com/services/varejo-api-pre/.default",VITE_USERNAME_SANTOREMEDIO:"147de435-fac6-4c57-95d8-bb06feb0496b"},ir=n=>{var r;if(typeof{url:Ja&&Ja.tagName.toUpperCase()==="SCRIPT"&&Ja.src||new URL("vanilla.js",document.baseURI).href}<"u")return Ru==null?void 0:Ru[n];if(typeof process<"u")return(r=process.env)==null?void 0:r[n]},Vb=async({product:n,consumer:r})=>{const l=rt.get("tenant_id");if(!l)throw new Error(`No configuration found for tenant: ${l}`);if(!r||!r.holderId)throw new Error("Consumer holderId information is required");if(!n)throw new Error("Product information is required");try{const u=await(await fetch(`${ir("VITE_API_URL")}/api/lookup-consumer.ts`,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json",Authorization:`Bearer ${rt.get("pbm-token")}`},body:JSON.stringify({tenant_id:l,product:n,table_id:rt.get("current-table-id"),local_hour:rt.get("current-local-hour"),consumer:r})})).json();if(!u.success)throw new Error("PBMLOG: Enable Discount Failed!");return u}catch(s){return console.error("Error during enable discount:",s),{success:!1,error:"Authorization failed"}}};function Hb({startTransition:n}){const r=Ft(),[l,s]=ge.useState(!1),{setModal:u}=rr(),{handleSubmit:f,register:d,setValue:m,clearErrors:y,unregister:p,formState:{errors:_}}=mb({resolver:Ab(Hv),mode:"onSubmit",defaultValues:{securityNumber:r.securityNumber||"",coupon:""}}),x=async S=>{if(r.targetProduct===null){console.error("PBMLOG: Product is not defined!");return}if(!r.targetProduct.id){console.error("PBMLOG: Product ID is not defined!");return}if(!r.targetProduct.listPrice){console.error("PBMLOG: List Price is not defined!");return}if(r.setSecurityNumber(S.securityNumber.replace(/\D/g,"")),!(await Vb({product:r.targetProduct,consumer:{holderId:S.securityNumber.replace(/\D/g,"")}})).success){u({id:"CustomerNotRegistered",open:!0});return}},O=async S=>{if(!r.isAuthenticatedShopper){u({id:"ShopperIsNotAuthenticated",open:!0});return}l||m("coupon",void 0,{shouldValidate:!1}),l&&S.coupon!=null&&r.setCardID(S.coupon),n(async()=>{await x(S)})};return b.jsxs(b.Fragment,{children:[b.jsxs("form",{onSubmit:f(O),className:ot("w-full h-auto flex items-start justify-center flex-col mb-2 transition-all duration-150"),id:"form_security_number_pbm",children:[b.jsxs("label",{htmlFor:"input_security_number_pbm",className:ot("w-full h-auto flex items-start flex-col justify-center relative py-2 transition-all duration-100",{"mb-4":_.securityNumber&&!l}),id:"label_security_number_pbm",children:[b.jsx("input",{type:"text",className:ot("w-full h-10 bg-(--pbm-input-background) rounded-lg text-sm font-semibold outline-(--pbm-outline-color) focus:outline focus:bg-(--pbm-input-focus) focus:outline-(--pbm-outline-focus-color) text-zinc-600 placeholder:text-zinc-600 px-4 placeholder:text-sm placeholder:font-semibold",{"outline outline-red-600":_.securityNumber,"rounded-lg":l}),style:{"--tw-outline-color":_.securityNumber?void 0:"var(--pbm-secondary)"},placeholder:"Digite seu CPF aqui...",required:!0,maxLength:14,...d("securityNumber",{onChange:S=>{const U=la.cpf(S.target.value);m("securityNumber",U,{shouldValidate:!0})}}),defaultValue:r.securityNumber||"",id:"input_security_number_pbm"}),_.securityNumber&&b.jsx("span",{className:"text-red-400 text-xs font-semibold absolute -bottom-3 left-2 text-nowrap",id:"security_number_form_error",children:_.securityNumber.message})]}),b.jsx(ge.Activity,{mode:l?"visible":"hidden",children:b.jsxs("label",{htmlFor:"input_coupon_pbm",className:ot("w-full h-auto flex items-start flex-col justify-center relative py-2",{"mt-2":_.securityNumber}),id:"label_coupon_pbm",children:[b.jsx("input",{type:"text",className:ot("w-full h-10 bg-gray-100 rounded-s-lg text-sm font-semibold focus:outline focus:bg-white text-zinc-600 placeholder:text-zinc-600 px-4 placeholder:text-sm placeholder:font-semibold",{"outline outline-red-600":_.coupon,"rounded-lg":l}),style:{"--tw-outline-color":_.coupon?void 0:"var(--pbm-secondary)"},placeholder:"Cupom / ID do Cartão",...d("coupon",{required:l?"Cupom / ID do Cartão obrigatório.":!1,shouldUnregister:!l,onChange:S=>{m("coupon",S.target.value,{shouldValidate:l})}}),id:"input_coupon_pbm"}),_.coupon&&b.jsx("span",{className:"text-red-400 text-xs font-semibold absolute -bottom-3 left-2 text-nowrap",id:"coupon_form_error",children:_.coupon.message})]})}),b.jsx("button",{type:"submit",className:ot("w-full h-10 rounded-lg flex items-center justify-center cursor-pointer text-sm text-white font-semibold transition-all duration-150",{"rounded-lg":l}),style:{backgroundColor:"var(--pbm-primary)"},id:"button_submit_security_number_pbm",children:"Comprar com desconto"})]}),b.jsxs("section",{className:"flex items-start flex-col gap-2",children:[b.jsxs(Ia,{className:"bg-transparent p-0 pl-2 w-auto h-auto underline cursor-pointer hover:bg-transparent flex items-center justify-start gap-1",style:{color:"var(--pbm-text)"},onMouseOver:S=>S.currentTarget.style.filter="brightness(0.8)",onMouseOut:S=>S.currentTarget.style.filter="none",onClick:()=>{const S=!l;s(S),S||(p("coupon"),y("coupon"))},id:"check_benefits_button",children:[b.jsx("span",{className:"text-start",children:l?"Não possui Cupom / ID do Cartão?":"Possui Cupom / ID do Cartão?"}),b.jsx(Zh,{size:16,className:ot({"rotate-0":!l,"rotate-180":l})})]}),b.jsxs(Ia,{className:"bg-transparent p-0 pl-2 w-auto h-auto underline cursor-pointer hover:bg-transparent flex items-center justify-start gap-1",style:{color:"var(--pbm-text)"},onMouseOver:S=>S.currentTarget.style.filter="brightness(0.8)",onMouseOut:S=>S.currentTarget.style.filter="none",onClick:()=>r.setState("isPreview"),id:"check_benefits_button",children:[b.jsx("span",{children:"Consultar Benefícios"}),b.jsx(Zh,{size:16})]})]})]})}function qb({size:n}){return b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg","data-name":"Camada 1",viewBox:"0 0 500 500",width:n,height:n,children:b.jsx("path",{d:"M421.44 78.56C375.64 32.77 314.76 7.55 250 7.55S124.36 32.77 78.56 78.56C32.77 124.36 7.55 185.24 7.55 250s25.22 125.64 71.01 171.44c45.8 45.79 106.68 71.01 171.44 71.01s125.64-25.22 171.44-71.01c45.79-45.8 71.01-106.68 71.01-171.44s-25.22-125.64-71.01-171.44zm-49.17 121.7L242.88 334.63c-8.98 9.29-23.57 10.17-33.59 2.02l-79.63-64.7c-10.69-8.67-12.33-24.38-3.66-35.07 8.67-10.69 24.38-12.33 35.07-3.65l61.9 50.39L336.5 165.74c4.4-4.75 10.48-7.59 16.95-7.93a24.88 24.88 0 0118.83 7.26c9.72 9.72 9.71 25.48 0 35.19z",fill:"#229b00"})})}function Zb({size:n}){return b.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg","data-name":"Camada 1",viewBox:"0 0 500 500",width:n,height:n,children:[b.jsx("circle",{cx:250,cy:250,r:237.45,fill:"#fff"}),b.jsx("path",{d:"M250 492.45c-64.76 0-125.64-25.22-171.44-71.01C32.77 375.64 7.55 314.76 7.55 250S32.77 124.36 78.56 78.56C124.36 32.77 185.24 7.55 250 7.55s125.64 25.22 171.44 71.01c45.79 45.79 71.01 106.68 71.01 171.44s-25.22 125.64-71.01 171.44c-45.79 45.79-106.68 71.01-171.44 71.01zm0-474.9C121.83 17.55 17.55 121.83 17.55 250S121.83 482.45 250 482.45 482.45 378.17 482.45 250 378.17 17.55 250 17.55z",fill:"#d8d8d8"})]})}function Gb({size:n,color:r}){return b.jsxs("svg",{viewBox:"-0.003 0 99.979 99.979",xmlns:"http://www.w3.org/2000/svg",fill:"#000000",width:n,height:n,children:[b.jsx("g",{id:"SVGRepo_bgCarrier",strokeWidth:"0"}),b.jsx("g",{id:"SVGRepo_tracerCarrier",strokeLinecap:"round",strokeLinejoin:"round"}),b.jsxs("g",{id:"SVGRepo_iconCarrier",children:[b.jsx("path",{fill:"#ffe700",d:"M92.869 7.105c9.478 9.476 9.478 24.832 0 34.308L41.411 92.869c-9.475 9.474-24.833 9.474-34.307 0-9.476-9.475-9.476-24.832 0-34.308L58.562 7.105c9.475-9.473 24.834-9.473 34.307 0z"}),b.jsx("path",{fill:r,d:"M32.548 33.122L7.105 58.563c-9.476 9.476-9.476 24.833 0 34.308 9.474 9.475 24.832 9.475 34.307 0L66.85 67.43 32.548 33.122z"}),b.jsx("path",{fill:r,d:"M65.43 68.862L31.134 34.568l1.414-1.414 34.294 34.294z"}),b.jsx("path",{fill:r,d:"M38.096 41.51L12.7 66.906a5.894 5.894 0 0 0 0 8.339 5.896 5.896 0 0 0 8.339 0l25.396-25.396-8.339-8.339z"}),b.jsx("path",{fill:"#ffe700",d:"M75.244 12.7a5.897 5.897 0 0 0-8.343 0L39.51 40.096l8.339 8.339 27.396-27.396a5.899 5.899 0 0 0-.001-8.339z"}),b.jsx("path",{fill:r,d:"M47.862 48.444l-1.414 1.414-8.335-8.336 1.414-1.414z"})]})]})}function Yb({size:n,color:r}){return b.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:n,height:n,children:[b.jsx("g",{id:"SVGRepo_bgCarrier",strokeWidth:"0"}),b.jsx("g",{id:"SVGRepo_tracerCarrier",strokeLinecap:"round",strokeLinejoin:"round"}),b.jsx("g",{id:"SVGRepo_iconCarrier",children:b.jsx("path",{d:"M7.33199 16.3154C6.94146 15.9248 6.3083 15.9248 5.91777 16.3154C5.52725 16.7059 5.52725 17.339 5.91777 17.7296L10.5834 22.3952C11.3644 23.1762 12.6308 23.1762 13.4118 22.3952L18.0802 17.7267C18.4707 17.3362 18.4707 16.703 18.0802 16.3125C17.6897 15.922 17.0565 15.922 16.666 16.3125L13 19.9786V2.0001C13 1.44781 12.5523 1.0001 12 1.0001C11.4477 1.0001 11 1.44781 11 2.0001V19.9833L7.33199 16.3154Z",fill:r})})]})}const fs={CheckON:qb,CheckOFF:Zb,Pills:Gb,ArrowDown:Yb};function $b({originalProductPrice:n}){var p;const{targetProduct:r,benefitsEnabled:l,setBenefitsEnabled:s}=Ft(),u=la.transformPrice(Number(r==null?void 0:r.listPrice)||n),f=la.transformPrice(Number(r==null?void 0:r.discountValue)||0),d=la.transformPorcent((r==null?void 0:r.discountMaxNewPatient)||"0"),m=u*d/100,y=u-m||u-f;return b.jsxs("header",{className:"flex items-start justify-start flex-col gap-4 w-full p-0.5 rounded-xl mt-5",id:"header_pbm",children:[b.jsxs("label",{className:"flex items-center gap-2 cursor-pointer",htmlFor:"enable_benefits_checkbox",children:[b.jsx("input",{id:"enable_benefits_checkbox",type:"checkbox",name:"option",className:"peer hidden",checked:l,onChange:_=>s(_.target.checked)}),b.jsx("div",{className:"w-5 h-5 border border-(--pbm-primary) rounded-full flex items-center justify-center transition-all duration-300 after:content-[''] after:w-2 after:h-2 after:rounded-full after:bg-(--pbm-primary) after:scale-0 after:transition-transform after:duration-200 peer-checked:after:scale-100"}),b.jsx("p",{className:"font-medium text-(--pbm-primary) select-none text-sm",children:"Desconto de Laboratório"}),b.jsx(fs.Pills,{size:16,color:"var(--pbm-primary)"})]}),b.jsx("span",{className:"py-1 rounded-xl shrink-0 text-white text-xl font-bold flex items-center justify-start gap-2 relative","data-testid":"test_id_header_price",id:"header_price",children:b.jsxs("section",{className:"flex items-start gap-2 justify-center-safe flex-col",children:[b.jsxs("div",{className:"flex items-center-safe justify-start gap-1",children:[b.jsx("span",{className:"line-through text-sm font-light text-zinc-600",children:(p=Number(u))==null?void 0:p.toLocaleString("pt-BR",{currency:"BRL",currencyDisplay:"symbol",currencySign:"standard",style:"currency"})}),b.jsx(fs.ArrowDown,{size:14,color:"var(--pbm-primary)"}),b.jsxs("span",{className:"font-semibold text-sm text-(--pbm-primary)",children:[d.toFixed(2),"%"]})]}),b.jsx("span",{className:"text-lg text-zinc-700 font-bold",children:y==null?void 0:y.toLocaleString("pt-BR",{currency:"BRL",currencyDisplay:"symbol",currencySign:"standard",style:"currency"})}),(r==null?void 0:r.informativeMessage)&&b.jsx("span",{className:"text-xs text-zinc-600 font-medium",children:r==null?void 0:r.informativeMessage})]})})]})}function Yh({textColor:n}){return b.jsxs("main",{className:"flex items-center justify-center gap-4",id:"loading_pbm",children:[b.jsx("div",{"data-testid":"test_id_spin",className:"w-8 h-8 border-4 shrink-0 border-gray-300 rounded-full animate-spin",style:{borderTopColor:"var(--pbm-secondary)"},id:"loading_spin"}),b.jsx("p",{className:"text-sm font-semibold text-start",style:{color:n||"var(--pbm-text)"},id:"loading_label",children:"Um momento... estamos verificando seus dados."})]})}function Du({children:n,variant:r}){const{benefitsEnabled:l}=Ft();return b.jsx("main",{className:ot({"border-3 border-(--pbm-border) overflow-hidden flex flex-col items-center justify-center min-w-(--min-container) max-w-(--max-container) w-full h-auto rounded-xl p-4 bg-white gap-4 relative":r==="main","w-full relative":r==="simple","h-0 overflow-hidden":!l&&r==="simple"}),"data-testid":"test_id_container","data-variant":r,id:"container_pbm",children:n})}function Vr(n){return b.jsx("h2",{className:ot("text-start font-semibold text-sm",n.className),style:{color:n.textColor||"var(--pbm-text)",fontSize:n.textSize,textAlign:n.textAlign},"data-testid":"test_id_title",id:"title_pbm",children:n.children})}function Xb({data:n,onChange:r,checked:l}){const{setAvailableDiscountSelected:s,state:u,isAuthenticatedShopper:f}=Ft(),{setModal:d}=rr(),m=n.id+"_"+n.authorizedQuantity,y=la.transformPrice(Number(n==null?void 0:n.grossPrice)||Number(n==null?void 0:n.listPrice)||0),p=la.transformPrice(Number(n==null?void 0:n.discountValue)||0),_=la.transformPorcent((n==null?void 0:n.discountPercentual)||"0"),x=p*n.authorizedQuantity,O=y*n.authorizedQuantity,S=O*_/100,U=O-S||O-x,C=ge.useCallback(()=>{if(l){const I=F=>Math.round(F*100)/100;s({discount:{total:I(x),unit:I(p)},quantity:n.authorizedQuantity,totalPrice:I(U),grossPrice:n.grossPrice})}},[l,n.authorizedQuantity,n.grossPrice,s,x,p,U]);ge.useEffect(()=>{C()},[C]);const Z=()=>{if(!f&&u==="isActivated"){d({id:"ShopperIsNotAuthenticated",open:!0});return}r()};return b.jsxs("label",{htmlFor:m,className:ot("label_benefits w-full flex items-center justify-start bg-zinc-300/60 border border-zinc-400/50 px-4 py-2 transition-colors rounded-lg gap-1",{"cursor-not-allowed":u==="isPreview","cursor-pointer":u==="isActivated","opacity-80":!l&&u==="isActivated"}),style:{borderColor:l?"var(--pbm-primary)":void 0,backgroundColor:l?"color-mix(in srgb, var(--pbm-primary), transparent 90%)":void 0},id:"label_benefits_"+m,children:[b.jsx("input",{type:"radio",name:"benefits_discount",id:m,className:"hidden",checked:l,onChange:Z,disabled:u==="isPreview"}),b.jsx("span",{style:{color:"var(--pbm-primary)"},children:l?b.jsx(fs.CheckON,{size:20}):b.jsx(fs.CheckOFF,{size:20})}),b.jsxs("span",{className:"font-semibold text-sm",style:{color:"var(--pbm-text)"},children:[n.authorizedQuantity,"un"]}),b.jsxs("section",{className:"ml-auto relative gap-2 flex items-center-safe justify-end-safe",children:[b.jsxs("span",{className:"text-white -top-4 py-0.5 font-semibold text-xs px-2 w-auto text-nowrap rounded-2xl -right-3",style:{backgroundColor:"var(--pbm-primary)"},children:[x.toLocaleString("pt-BR",{currency:"BRL",currencyDisplay:"symbol",currencySign:"standard",style:"currency"})," ","OFF"]}),b.jsx("strong",{className:"font-semibold text-sm text-center",style:{color:"var(--pbm-text)"},children:U.toLocaleString("pt-BR",{currency:"BRL",currencyDisplay:"symbol",currencySign:"standard",style:"currency"})})]})]})}const Qb="N000";function Kb(){var p;const[n]=ge.useTransition(),{setState:r,state:l,customLoginUrl:s,isAuthenticatedShopper:u,benefitsList:f}=Ft(),[d,m]=ge.useState(null),[y]=ge.useState(f);return n?b.jsx(Yh,{textColor:"var(--pbm-text)"}):y!=null&&y.length&&((p=y[0])==null?void 0:p.returnCode)!==Qb&&l==="isActivated"?b.jsx("main",{className:"flex items-center justify-center gap-4",id:"loading_pbm",children:b.jsx("p",{className:"text-sm font-semibold text-start",style:{color:"var(--pbm-text)"},id:"benefits_error_handle",children:y[0].informativeText})}):b.jsxs("section",{className:"flex items-start justify-center gap-4 w-full h-auto flex-col",id:"benefits_table_pbm",children:[b.jsx(Vr,{children:"Descontos disponíveis:"}),b.jsxs("form",{className:"flex flex-col items-center justify-start w-full gap-4.5",id:"form_benefits_table_pbm",onSubmit:_=>_.preventDefault(),children:[!y&&b.jsx("p",{className:"text-sm font-semibold text-start text-zinc-900",id:"benefits_empty_pbm",children:"Não foi possível encontrar benefícios para esse produto."}),y&&y.map(_=>{const x=_.id+"_"+_.authorizedQuantity;return b.jsx(Xb,{data:_,checked:d===x,onChange:()=>m(x)},x)})]}),l==="isPreview"&&b.jsxs(Ia,{onClick:()=>r("isEmpty"),className:"bg-transparent p-0 w-auto h-auto text-zinc-600 cursor-pointer hover:text-zinc-900 hover:bg-transparent text-start",id:"unauthorized_benefits_button",children:["Atenção: Não é possível utilizar os benefícos sem realizar a consulta do CPF e o Login, por favor"," ",b.jsx("span",{className:"underline",children:"insira seu cpf para utilizar os benefícios"})]}),l==="isActivated"&&b.jsxs(b.Fragment,{children:[!u&&b.jsx(Ia,{type:"button",onClick:()=>window.location.assign(s||"/login"),className:"bg-transparent p-0 pl-2 w-auto h-auto text-zinc-600 cursor-pointer hover:text-zinc-900 hover:bg-transparent text-start",id:"login",children:b.jsx("span",{className:"underline",children:"Por favor, faça o Login para aproveitar os benefícios!"})}),b.jsx(Ia,{onClick:()=>r("isEmpty"),className:"bg-transparent p-0 pl-2 w-auto h-auto text-zinc-600 cursor-pointer hover:text-zinc-900 hover:bg-transparent text-start",id:"change_security_number",children:b.jsx("span",{className:"underline",children:"Deseja editar o cpf digitado?"})})]})]})}function ds(n){return b.jsx("p",{className:ot("font-normal text-sm",n.textAlign&&`text-${n.textAlign}`,n.className),style:{color:n.textColor||"var(--pbm-text)",fontSize:n.textSize,textAlign:n.textAlign},"data-testid":"test_id_text",id:"text_pbm",children:n.children})}function Fb({textColor:n}){const{urlAcceptTerms:r}=Ft(),{setModal:l}=rr(),s=()=>{r&&l({open:!0,id:"iframe_pbm",label:"Aceitar os termos",url:r})};return b.jsxs("section",{"data-testid":"test_id_invalid",className:"flex items-end justify-center gap-2 w-full h-auto flex-col border-y py-6",style:{borderColor:"color-mix(in srgb, var(--pbm-text), transparent 80%)"},id:"security_number_invalid_container_pbm",children:[b.jsx(Vr,{className:"w-full",textColor:n,children:"CPF não cadastrado."}),b.jsxs(ds,{className:"w-full",textColor:n,children:["Conclua seu cadastro para habilitar o benefício. ",b.jsx("br",{}),"Ao clicar em “Aceitar os termos”, você irá para uma página externa. Aceite os termos e volte para continuar."]}),b.jsx(Ia,{onClick:()=>s(),style:{backgroundColor:"var(--pbm-primary)"},children:"Aceitar os termos"})]})}function Jb({textColor:n}){const{urlRegisterIndustry:r}=Ft(),{setModal:l}=rr(),s=()=>{r&&l({open:!0,id:"iframe_pbm",label:"Ativar CPF",url:r})};return b.jsxs("section",{"data-testid":"test_id_registered",className:"flex items-end justify-center gap-2 w-full h-auto flex-col border-y py-6",style:{borderColor:"color-mix(in srgb, var(--pbm-text), transparent 80%)"},id:"security_number_registered_container_pbm",children:[b.jsx(Vr,{className:"w-full",textColor:n,children:"Ops, seu CPF ainda não está habilitado para este produto."}),b.jsx(ds,{className:"w-full",textColor:n,children:"Para ativar o benefício, clique em “Ativar CPF” e conclua a etapa na página externa. Depois, é só voltar para continuar — vamos aguardar você aqui."}),b.jsx(Ia,{onClick:()=>s(),style:{backgroundColor:"var(--pbm-primary)"},children:"Ativar CPF"})]})}const $h={ErrorMessage:"Erro ao aplicar o benefício"},Xh=_u(n=>({...$h,setErrorMessage:r=>n({ErrorMessage:r}),resetErrorMessage:()=>n({ErrorMessage:$h.ErrorMessage})})),Qh=()=>{const{ErrorMessage:n}=Xh(),{setState:r}=Ft();return b.jsxs(Du,{variant:"main",children:[b.jsx(Vr,{children:"Erro ao Aplicar o Benefício"}),b.jsx(ds,{textAlign:"center",children:n}),b.jsxs(Ia,{className:"bg-transparent p-0 pl-2 w-auto h-auto underline cursor-pointer hover:bg-transparent flex items-center justify-start gap-1",style:{color:"var(--pbm-text)"},onMouseOver:l=>l.currentTarget.style.filter="brightness(0.8)",onMouseOut:l=>l.currentTarget.style.filter="none",onClick:()=>r("isEmpty"),id:"check_benefits_button",children:[b.jsx("span",{children:"Tentar novamente"}),b.jsx(Nb,{size:16})]})]})},Kh={personalData:{name:"",phone:"",birthday:"",email:""},address:{postalcode:"",number:"",complement:"",street:"",neighborhood:"",city:"",uf:"",stateAddress:""},genderResponsibility:{gender:"",patient:null},doctor:{typeCredential:"CRM",register:"",state:"",doctorName:""},acceptances:{acceptPhone:!1,acceptsSms:!1,acceptsEmail:!1,acceptsMail:!1,acceptsPrivacyTermsLGPD:!1},step:0},lr=_u(n=>({...Kh,setPersonalData:r=>n(l=>({personalData:{...l.personalData,...r}})),setAddress:r=>n(l=>({address:{...l.address,...r}})),setGenderResponsibility:r=>n(l=>({genderResponsibility:{...l.genderResponsibility,...r}})),setDoctor:r=>n(l=>({doctor:{...l.doctor,...r}})),setAcceptances:r=>n(l=>({acceptances:{...l.acceptances,...r}})),setStep:r=>n({step:r}),resetForm:()=>n(Kh)})),Zt=({label:n,error:r,children:l})=>b.jsxs("div",{className:"flex flex-col gap-1",children:[b.jsx("label",{className:"text-xs font-medium text-zinc-500 uppercase tracking-wide",children:n}),l,r&&b.jsx("span",{className:"text-xs text-red-500 mt-0.5",children:r})]}),Xi="w-full rounded-lg border border-gray-200 bg-gray-100 px-3 py-2.5 text-sm text-gray-400 cursor-not-allowed",Da=n=>ot("w-full rounded-lg border px-3 py-2.5 text-sm text-gray-800 outline-none transition-all","focus:ring-2 focus:ring-blue-500/30 focus:border-blue-500",n?"border-red-400 bg-red-50":"border-gray-200 bg-gray-50 hover:border-gray-300"),Qi=({onNext:n,onBack:r,loading:l,nextLabel:s="Continuar",isLast:u=!1})=>b.jsxs("div",{className:"flex gap-2 mt-2 pt-4 border-t border-gray-100",children:[r&&b.jsx("button",{type:"button",onClick:r,className:"flex-1 rounded-lg border border-gray-200 py-2.5 text-sm font-medium text-zinc-600 hover:bg-zinc-600/10 transition-all cursor-pointer",children:"Voltar"}),b.jsx("button",{type:"button",onClick:n,disabled:l,className:ot("flex-2 rounded-lg py-2.5 text-sm font-semibold text-white transition-all cursor-pointer",u?"bg-emerald-600 hover:bg-emerald-500":"bg-(--pbm-primary) hover:bg-(--pbm-primary)/60",l&&"opacity-60 cursor-not-allowed"),children:l?b.jsxs("span",{className:"flex items-center justify-center gap-2",children:[b.jsxs("svg",{className:"h-4 w-4 animate-spin",viewBox:"0 0 24 24",fill:"none",children:[b.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),b.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8v8z"})]}),"Enviando..."]}):s})]}),hs={PersonalData:0,Address:1,GenderResponsibility:2,Doctor:3,Acceptances:4},Pb=({securityNumber:n,onNext:r})=>{const{personalData:l,setPersonalData:s,setStep:u}=lr(),{setModal:f}=rr(),[d,m]=ge.useState({}),[y,p]=ge.useState(!1),_=()=>{const O={};return(!l.name.trim()||l.name.trim().split(" ").length<2)&&(O.name="Informe o nome completo."),/^\(\d{2}\) \d{5}-\d{4}$/.test(l.phone)||(O.phone="Telefone inválido."),l.birthday||(O.birthday="Data de nascimento obrigatória."),/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(l.email)||(O.email="E-mail inválido."),m(O),Object.keys(O).length===0},x=async()=>{if(_()){p(!0);try{u(hs.Address),r()}catch{console.error("An error occurred while setting personal data form.")}finally{p(!1)}}};return b.jsxs("div",{className:"flex flex-col gap-4",children:[b.jsxs(Zt,{label:"CPF",children:[b.jsx("input",{className:Xi,value:la.cpf(n),disabled:!0,readOnly:!0}),b.jsx("p",{className:"text-xs text-gray-400 mt-1",children:b.jsx("button",{type:"button",className:"text-(--pbm-primary) hover:text-(--pbm-primary)/60 cursor-pointer underline underline-offset-2 transition-colors",onClick:()=>f({id:"",open:!1}),children:"Deseja alterar o CPF? Clique aqui."})})]}),b.jsx(Zt,{label:"Nome completo",error:d.name,children:b.jsx("input",{className:Da(d.name),placeholder:"Ex: João da Silva",value:l.name,onChange:O=>{s({name:O.target.value}),m(S=>({...S,name:void 0}))}})}),b.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[b.jsx(Zt,{label:"Telefone",error:d.phone,children:b.jsx("input",{className:Da(d.phone),placeholder:"(11) 99999-8888",value:l.phone,onChange:O=>{s({phone:la.phone(O.target.value)}),m(S=>({...S,phone:void 0}))}})}),b.jsx(Zt,{label:"Data de nascimento",error:d.birthday,children:b.jsx("input",{type:"date",className:Da(d.birthday),value:l.birthday,onChange:O=>{s({birthday:O.target.value}),m(S=>({...S,birthday:void 0}))}})})]}),b.jsx(Zt,{label:"E-mail",error:d.email,children:b.jsx("input",{type:"email",className:Da(d.email),placeholder:"joao@email.com",value:l.email,onChange:O=>{s({email:O.target.value}),m(S=>({...S,email:void 0}))}})}),b.jsx(Qi,{onNext:x,loading:y})]})};async function Wb({postal_code:n}){const r=await fetch(`${ir("VITE_CORREIOS_API_URL")}/${n}/json/`);if(!r.ok)throw new Error("Erro ao consultar CEP");return{...await r.json(),success:!0}}const Ib=({onNext:n,onBack:r})=>{const{address:l,setAddress:s,setStep:u}=lr(),[f,d]=ge.useState({}),[m,y]=ge.useState(!1),[p,_]=ge.useState(!1),x=ge.useCallback(async U=>{const C=U.replace(/\D/g,"");if(C.length===8){y(!0);try{const Z=await Wb({postal_code:C});if(!Z.success){console.error("Failed to lookup postal code");return}s({street:Z.logradouro,neighborhood:Z.bairro,uf:Z.uf,city:Z.localidade,stateAddress:Z.estado,postalcode:Z.cep,complement:Z.complemento||""})}catch{console.error("Failed to fetch address for CEP:",U)}finally{y(!1)}}},[s]),O=()=>{const U={};return/^\d{5}-\d{3}$/.test(l.postalcode)||(U.postalcode="CEP inválido."),l.number.trim()||(U.number="Número obrigatório."),d(U),Object.keys(U).length===0},S=async()=>{if(O()){_(!0);try{u(hs.GenderResponsibility),n()}catch{console.log("An error occurred while submitting address form.")}finally{_(!1)}}};return b.jsxs("div",{className:"flex flex-col gap-4",children:[b.jsx(Zt,{label:"CEP",error:f.postalcode,children:b.jsxs("div",{className:"relative",children:[b.jsx("input",{className:Da(f.postalcode),placeholder:"00000-000",value:l.postalcode,onChange:U=>{const C=la.cep(U.target.value);s({postalcode:C}),d(Z=>({...Z,postalcode:void 0})),C.replace(/\D/g,"").length===8&&x(C)}}),m&&b.jsx("div",{className:"absolute right-3 top-1/2 -translate-y-1/2",children:b.jsxs("svg",{className:"h-4 w-4 animate-spin text-blue-500",viewBox:"0 0 24 24",fill:"none",children:[b.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),b.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8v8z"})]})})]})}),b.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[b.jsx(Zt,{label:"Rua",children:b.jsx("input",{className:Xi,value:l.street||"",disabled:!0,readOnly:!0,placeholder:"Preenchido pelo CEP"})}),b.jsx(Zt,{label:"Bairro",children:b.jsx("input",{className:Xi,value:l.neighborhood||"",disabled:!0,readOnly:!0,placeholder:"Preenchido pelo CEP"})})]}),b.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[b.jsx(Zt,{label:"Cidade",children:b.jsx("input",{className:Xi,value:l.city||"",disabled:!0,readOnly:!0,placeholder:"Preenchido pelo CEP"})}),b.jsx(Zt,{label:"Estado",children:b.jsx("input",{className:Xi,value:l.stateAddress||"",disabled:!0,readOnly:!0,placeholder:"UF"})})]}),b.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[b.jsx(Zt,{label:"Número",error:f.number,children:b.jsx("input",{className:Da(f.number),placeholder:"Ex: 100",value:l.number,onChange:U=>{s({number:U.target.value}),d(C=>({...C,number:void 0}))}})}),b.jsx(Zt,{label:"Complemento",children:b.jsx("input",{className:Da(),placeholder:"Apto, bloco...",value:l.complement,onChange:U=>s({complement:U.target.value})})})]}),b.jsx(Qi,{onNext:S,onBack:r,loading:p})]})},e1=({onNext:n,onBack:r})=>{const{genderResponsibility:l,setGenderResponsibility:s,setStep:u}=lr(),[f,d]=ge.useState({}),[m,y]=ge.useState(!1),p=()=>{const O={};return l.gender||(O.gender="Selecione o gênero."),l.patient===null&&(O.patient="Informe se é o paciente."),d(O),Object.keys(O).length===0},_=async()=>{if(p()){y(!0);try{u(hs.Doctor),n()}catch{console.error("An error occurred while submitting gender responsibility data.")}finally{y(!1)}}},x=[{value:"M",label:"Masculino"},{value:"F",label:"Feminino"},{value:"O",label:"Outro"}];return b.jsxs("div",{className:"flex flex-col gap-5",children:[b.jsxs("div",{children:[b.jsx("label",{className:"text-xs font-medium text-gray-500 uppercase tracking-wide block mb-2",children:"Gênero"}),b.jsx("div",{className:"flex gap-2",children:x.map(O=>b.jsx("button",{type:"button",onClick:()=>{s({gender:O.value}),d(S=>({...S,gender:void 0}))},className:ot("flex-1 py-2.5 cursor-pointer px-2.5 rounded-lg border text-sm font-medium transition-all",l.gender===O.value?"border-(--pbm-primary) bg-(--pbm-primary) text-white":"border-gray-200 bg-gray-50 text-gray-600 hover:border-(--pbm-primary)"),children:O.label},O.value))}),f.gender&&b.jsx("span",{className:"text-xs text-red-500 mt-1 block",children:f.gender})]}),b.jsxs("div",{children:[b.jsx("label",{className:"text-xs font-medium text-gray-500 uppercase tracking-wide block mb-2",children:"Você é o paciente?"}),b.jsx("div",{className:"flex gap-2",children:[{label:"Sim, sou o paciente",value:!0},{label:"Não, sou responsável",value:!1}].map(O=>b.jsx("button",{type:"button",onClick:()=>{s({patient:O.value}),d(S=>({...S,patient:void 0}))},className:ot("flex-1 py-2.5 px-2.5 text-nowrap cursor-pointer rounded-lg border text-sm font-medium transition-all",l.patient===O.value?"border-(--pbm-primary) bg-(--pbm-primary) text-white":"border-gray-200 bg-gray-50 text-gray-600 hover:border-(--pbm-primary)"),children:O.label},String(O.value)))}),f.patient&&b.jsx("span",{className:"text-xs text-red-500 mt-1 block",children:f.patient})]}),b.jsx(Qi,{onNext:_,onBack:r,loading:m})]})},t1=["AC","AL","AP","AM","BA","CE","DF","ES","GO","MA","MT","MS","MG","PA","PB","PR","PE","PI","RJ","RN","RS","RO","RR","SC","SP","SE","TO"],a1=({onNext:n,onBack:r})=>{const{doctor:l,setDoctor:s,setStep:u}=lr(),[f,d]=ge.useState({}),[m,y]=ge.useState(!1),p=()=>{const x={};return l.typeCredential||(x.typeCredential="Tipo de credencial obrigatório."),l.register.trim()||(x.register="Número do registro obrigatório."),l.state||(x.state="Estado obrigatório."),l.doctorName.trim()||(x.doctorName="Nome do médico obrigatório."),d(x),Object.keys(x).length===0},_=async()=>{if(p()){y(!0);try{u(hs.Acceptances),n()}catch{console.error("An error occurred while submitting doctor data.")}finally{y(!1)}}};return b.jsxs("div",{className:"flex flex-col gap-4",children:[b.jsxs("div",{className:"grid grid-cols-3 gap-3",children:[b.jsx(Zt,{label:"Tipo credencial",error:f.typeCredential,children:b.jsxs("select",{className:Da(f.typeCredential),value:l.typeCredential,onChange:x=>{s({typeCredential:x.target.value}),d(O=>({...O,typeCredential:void 0}))},children:[b.jsx("option",{value:"CRM",children:"CRM"}),b.jsx("option",{value:"CRO",children:"CRO"}),b.jsx("option",{value:"CRF",children:"CRF"})]})}),b.jsx(Zt,{label:"Estado (UF)",error:f.state,children:b.jsxs("select",{className:Da(f.state),value:l.state,onChange:x=>{s({state:x.target.value}),d(O=>({...O,state:void 0}))},children:[b.jsx("option",{value:"",children:"UF"}),t1.map(x=>b.jsx("option",{value:x,children:x},x))]})}),b.jsx(Zt,{label:"Nº registro",error:f.register,children:b.jsx("div",{className:"relative",children:b.jsx("input",{className:Da(f.register),placeholder:"Ex: 123456",value:l.register,onChange:x=>{s({register:x.target.value.replace(/\D/g,"")}),d(O=>({...O,register:void 0}))}})})})]}),b.jsxs(Zt,{label:"Nome do médico",error:f.doctorName,children:[b.jsx("div",{className:"relative",children:b.jsx("input",{className:Da(f.doctorName),placeholder:"Nome Completo do Profissional",value:l.doctorName,onChange:x=>{s({doctorName:x.target.value}),d(O=>({...O,doctorName:void 0}))}})}),b.jsx("p",{className:"text-xs text-gray-400 mt-0.5",children:"Preenchido automaticamente ao informar registro + UF."})]}),b.jsx(Qi,{onNext:_,onBack:r,loading:m})]})},Ki=({label:n,checked:r,onChange:l,required:s,error:u})=>b.jsxs("label",{className:ot("flex items-start gap-3 cursor-pointer group p-3 rounded-lg border transition-all",r?"border-emerald-200 bg-emerald-50/60":"border-zinc-100 hover:border-zinc-200 bg-zinc-50/40",u?"border-red-300 bg-red-50/40":""),children:[b.jsx("div",{className:ot("mt-0.5 flex h-4 w-4 shrink-0 items-center justify-center rounded border transition-all",r?"border-(--pbm-primary) bg-(--pbm-primary)":"border-zinc-300 bg-white"),children:r&&b.jsx("svg",{className:"h-2.5 w-2.5 text-white",viewBox:"0 0 10 8",fill:"none",children:b.jsx("path",{d:"M1 4l3 3 5-6",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round"})})}),b.jsxs("span",{className:"text-sm text-zinc-700 leading-snug",children:[n,s&&b.jsx("span",{className:"text-red-400 ml-1",children:"*"})]}),b.jsx("input",{type:"checkbox",className:"sr-only",checked:r,onChange:f=>l(f.target.checked)})]}),n1=async({product:n,consumer:r,healthProfessional:l})=>{const s=rt.get("tenant_id");if(!s)throw new Error(`No configuration found for tenant: ${s}`);if(!r)throw new Error("Consumer information is required");if(!l)throw new Error("Health professional information is required");if(!n)throw new Error("Product information is required");try{const f=await(await fetch(`${ir("VITE_API_URL")}/api/discount.ts`,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json",Authorization:`Bearer ${rt.get("pbm-token")}`},body:JSON.stringify({tenant_id:s,product:n,table_id:rt.get("current-table-id"),local_hour:rt.get("current-local-hour"),consumer:r,healthProfessional:l})})).json();if(!f.success)throw new Error("PBMLOG: Enable Discount Failed!");return rt.set("current-central-number",f.product[0].centralNumber.toString(),{secure:!0,sameSite:"Strict",expires:1}),rt.set("current-term-code",f.product[0].activationFields.acceptLgpd.termCode.value.toString(),{secure:!0,sameSite:"Strict",expires:1}),f}catch(u){return console.error("Error during enable discount:",u),{success:!1,error:"Authorization failed"}}},r1=async({product:n,consumer:r,healthProfessional:l})=>{const s=rt.get("tenant_id");if(!s)throw new Error(`No configuration found for tenant: ${s}`);if(!r)throw new Error("Consumer information is required");if(!l)throw new Error("Health professional information is required");if(!n)throw new Error("Product information is required");try{const f=await(await fetch(`${ir("VITE_API_URL")}/api/activate.ts`,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json",Authorization:`Bearer ${rt.get("pbm-token")}`},body:JSON.stringify({tenant_id:s,product:n,table_id:rt.get("current-table-id"),local_hour:rt.get("current-local-hour"),central_number:rt.get("current-central-number"),consumer:r,healthProfessional:l,acceptLgpd:{evidenceType:"SITE",evidence:"VSTOSITE",termCode:rt.get("current-term-code")}})})).json();if(!f.success)throw new Error("PBMLOG: Activate Failed!");return f}catch(u){return console.error("Error during activate:",u),{success:!1,error:"Authorization failed"}}},i1=({onBack:n,onDone:r,securityNumber:l})=>{const{acceptances:s,setAcceptances:u}=lr(),{targetProduct:f,cardID:d}=Ft(),[m,y]=ge.useState({}),[p,_]=ge.useState(!1),x=lr.getState(),O=()=>{const C={};return s.acceptsPrivacyTermsLGPD||(C.lgpd="É obrigatório aceitar os termos de privacidade (LGPD)."),y(C),Object.keys(C).length===0},S=async C=>{try{const Z=await r1(C);console.log("Activate response:",Z)}catch(Z){console.error("Error during consumer activation:",Z)}},U=async()=>{if(!O())return;if(_(!0),!f){console.error("No target product found in PBM store."),_(!1);return}const C=x.personalData.phone.replace(/\D/g,""),Z=C.slice(0,2),I=C.slice(2),F={consumer:{holderId:l,cardId:d||"",name:x.personalData.name,email:x.personalData.email,birthdate:x.personalData.birthday,genre:x.genderResponsibility.gender,postalCode:x.address.postalcode.replace(/\D/g,""),stateCode:x.address.uf||"",cityName:x.address.city||"",cityRegion:x.address.neighborhood||"",addressType:"casa",streetAddress:x.address.street||"",addressNumber:x.address.number||"",addressAdditionalInformation:x.address.complement||"",DDDcellPhone:Z,cellphone:I,acceptInformativeMaterial:s.acceptsMail?"S":"N",acceptMail:s.acceptsMail?"S":"N",acceptEmail:s.acceptsEmail?"S":"N",acceptCalls:s.acceptPhone?"S":"N",acceptSMS:s.acceptsSms?"S":"N",acceptTerm:s.acceptsPrivacyTermsLGPD?"S":"N",acceptWhatsApp:"N"},healthProfessional:{id:x.doctor.register,stateCode:x.doctor.state,type:x.doctor.typeCredential,name:x.doctor.doctorName},product:f};try{const ae=await n1(F);ae.success?await S(F):console.error("Failed to enable discount:",ae),r()}catch{console.error("An error occurred while submitting acceptances data.")}finally{_(!1)}};return b.jsxs("div",{className:"flex flex-col gap-3",children:[b.jsx("p",{className:"text-xs text-gray-500 mb-1",children:"Selecione como deseja receber comunicações:"}),b.jsx(Ki,{label:"Aceito receber contato por telefone",checked:s.acceptPhone,onChange:C=>u({acceptPhone:C})}),b.jsx(Ki,{label:"Aceito receber SMS",checked:s.acceptsSms,onChange:C=>u({acceptsSms:C})}),b.jsx(Ki,{label:"Aceito receber e-mails",checked:s.acceptsEmail,onChange:C=>u({acceptsEmail:C})}),b.jsx(Ki,{label:"Aceito receber correspondências por correio",checked:s.acceptsMail,onChange:C=>u({acceptsMail:C})}),b.jsxs("div",{className:"mt-1",children:[b.jsx(Ki,{label:"Li e aceito os Termos de Privacidade (LGPD)",checked:s.acceptsPrivacyTermsLGPD,onChange:C=>{u({acceptsPrivacyTermsLGPD:C}),y({})},required:!0,error:m.lgpd}),m.lgpd&&b.jsx("span",{className:"text-xs text-red-500 mt-1 block pl-1",children:m.lgpd})]}),b.jsx(Qi,{onNext:U,onBack:n,loading:p,nextLabel:"Concluir cadastro",isLast:!0})]})},Fh=["Dados Pessoais","Endereço","Perfil","Médico","Aceites"],l1=({current:n})=>b.jsx("div",{className:"flex items-center w-full justify-center mb-6",children:Fh.map((r,l)=>{const s=l<n,u=l===n;return b.jsxs("div",{className:"flex items-center w-full min-w-0 justify-center relative",children:[b.jsxs("div",{className:"flex flex-col items-center justify-center gap-1 shrink-0 z-10",children:[b.jsx("div",{className:ot("flex h-7 w-7 items-center justify-center rounded-full text-xs font-semibold transition-all",s?"bg-emerald-600 text-white":u?"bg-(--pbm-primary) text-white ring-4 ring-(--pbm-primary)/15":"bg-zinc-100 text-zinc-400"),children:s?b.jsx("svg",{className:"h-3.5 w-3.5",viewBox:"0 0 12 10",fill:"none",children:b.jsx("path",{d:"M1 5l4 4 6-8",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}):l+1}),b.jsx("span",{className:ot("text-[10px] font-medium whitespace-nowrap hidden sm:block",u?"text-(--pbm-primary)":s?"text-emerald-600":"text-zinc-400"),children:r})]}),l<Fh.length-1&&b.jsx("div",{className:ot("h-0.5 w-full rounded transition-all absolute top-3.5 left-10","bg-zinc-200")})]},l)})}),s1=({onClose:n})=>b.jsxs("div",{className:"flex flex-col items-center gap-4 py-4 text-center",children:[b.jsx("div",{className:"flex h-16 w-16 items-center justify-center rounded-full bg-green-100",children:b.jsx("svg",{className:"h-8 w-8 text-green-500",viewBox:"0 0 24 24",fill:"none",children:b.jsx("path",{d:"M5 13l4 4L19 7",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round"})})}),b.jsxs("div",{children:[b.jsx("h3",{className:"text-base font-semibold text-gray-800",children:"Cadastro concluído!"}),b.jsx("p",{className:"text-sm text-zinc-500 mt-1",children:"Você já pode aproveitar os benefícios de farmácia."})]}),b.jsx("button",{onClick:n,className:"cursor-pointer mt-2 rounded-lg bg-(--primary-color) px-6 py-2.5 text-sm font-semibold text-white hover:bg-(--primary-color)/80 transition-all",children:"Fechar"})]}),o1=({ID:n})=>{const{modal:r,setModal:l}=rr(),{securityNumber:s}=Ft(),{resetForm:u,step:f,setStep:d}=lr(),[m,y]=ge.useState(!1),p=()=>{l({id:"",open:!1}),setTimeout(()=>{d(0),y(!1),u()},300)},_=()=>d(f+1),x=()=>d(f-1),O=s.replace(/\D/g,""),S=[b.jsx(Pb,{securityNumber:O,onNext:_}),b.jsx(Ib,{securityNumber:O,onNext:_,onBack:x}),b.jsx(e1,{securityNumber:O,onNext:_,onBack:x}),b.jsx(a1,{securityNumber:O,onNext:_,onBack:x}),b.jsx(i1,{securityNumber:O,onBack:x,onDone:()=>y(!0)})];return b.jsxs("main",{className:ot("fixed inset-0 flex items-center justify-end z-50 flex-col transition-all shadow bg-black/40",{"opacity-100 pointer-events-auto":r.id===n&&r.open,"opacity-0 pointer-events-none":r.id!==n||!r.open}),children:[b.jsx("div",{className:"absolute inset-0",onClick:p}),b.jsxs("section",{className:"z-10 bg-white flex flex-col p-6 rounded-2xl w-full max-w-125 min-w-125 mx-4 shadow-xl max-h-[90vh] overflow-y-auto",children:[b.jsxs("div",{className:"flex items-center justify-between mb-4",children:[b.jsx(Vr,{textSize:"18px",textAlign:"start",children:m?"Tudo pronto!":"Benefício de Farmácia"}),b.jsx("button",{onClick:p,className:"flex h-7 w-7 cursor-pointer items-center justify-center rounded-full text-gray-400 hover:bg-gray-100 hover:text-gray-600 transition-all",children:b.jsx("svg",{className:"h-4 w-4",viewBox:"0 0 14 14",fill:"none",children:b.jsx("path",{d:"M1 1l12 12M13 1L1 13",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})})})]}),!m&&b.jsx(l1,{current:f}),m?b.jsx(s1,{onClose:p}):S[f]]})]})},u1=n=>n===void 0?"":"?"+Object.keys(n).map(r=>r+"="+n[r]).join("&");function c1(n){const{setState:r}=Ft();return b.jsx("a",{...n,target:n.target||"_self",href:typeof n.href=="string"?n.href:n.href.pathname+u1(n.href.param),className:ot("w-3xs cursor-pointer h-10 rounded-lg text-white text-sm font-semibold transition-colors flex items-center justify-center",n.className),style:{backgroundColor:"var(--pbm-primary)"},onMouseOver:l=>l.currentTarget.style.backgroundColor="var(--pbm-secondary)",onMouseOut:l=>l.currentTarget.style.backgroundColor="var(--pbm-primary)","data-testid":"test_id_link",id:"link_pbm",onClick:()=>r("isEmpty"),children:n.children})}const f1=({ID:n})=>{const{customLoginUrl:r}=Ft(),{modal:l,setModal:s}=rr();return b.jsxs("main",{className:ot("fixed inset-0 flex items-center justify-center z-50 flex-col transition-all shadow bg-black/40",{"opacity-100 pointer-events-auto":l.id===n&&l.open,"opacity-0 pointer-events-none":l.id!=n||!l.open}),children:[b.jsx("div",{className:"absolute inset-0",onClick:()=>s({id:"",open:!1})}),b.jsxs("section",{className:"z-10 bg-white gap-2 flex-col items-center-safe justify-center-safe p-8 rounded-xl",children:[b.jsx(Vr,{textColor:"tomato",textSize:"18px",textAlign:"center",className:"mb-2",children:"Opa! Parece que você não está Logado"}),b.jsxs(ds,{className:"mb-2",textAlign:"center",children:["Para aproveitar os benefícios é necessário realizar o"," ",b.jsx("strong",{children:"Login"})," ou ",b.jsx("strong",{children:"Cadastro"})," no site!"]}),b.jsxs("section",{className:"flex items-center-safe justify-center-safe gap-4",children:[b.jsx(Ia,{className:"bg-gray-600 hover:bg-gray-500",onClick:()=>s({id:"",open:!1}),children:"Seguir sem Benefícios"}),b.jsx(c1,{href:r||"/login",children:"Aproveitar Benefícios"})]})]})]})};function Jh(n){var r,l,s="";if(typeof n=="string"||typeof n=="number")s+=n;else if(typeof n=="object")if(Array.isArray(n)){var u=n.length;for(r=0;r<u;r++)n[r]&&(l=Jh(n[r]))&&(s&&(s+=" "),s+=l)}else for(l in n)n[l]&&(s&&(s+=" "),s+=l);return s}function Ph(){for(var n,r,l=0,s="",u=arguments.length;l<u;l++)(n=arguments[l])&&(r=Jh(n))&&(s&&(s+=" "),s+=r);return s}function d1(n,r,l=void 0){const s={};for(const u in n){const f=n[u];let d="",m=!0;for(let y=0;y<f.length;y+=1){const p=f[y];p&&(d+=(m===!0?"":" ")+r(p),m=!1,l&&l[p]&&(d+=" "+l[p]))}s[u]=d}return s}function sr(n,...r){const l=new URL(`https://mui.com/production-error/?code=${n}`);return r.forEach(s=>l.searchParams.append("args[]",s)),`Minified MUI error #${n}; visit ${l} for the full message.`}const h1="$$material";function Uu(){return Uu=Object.assign?Object.assign.bind():function(n){for(var r=1;r<arguments.length;r++){var l=arguments[r];for(var s in l)({}).hasOwnProperty.call(l,s)&&(n[s]=l[s])}return n},Uu.apply(null,arguments)}function m1(n){if(n.sheet)return n.sheet;for(var r=0;r<document.styleSheets.length;r++)if(document.styleSheets[r].ownerNode===n)return document.styleSheets[r]}function p1(n){var r=document.createElement("style");return r.setAttribute("data-emotion",n.key),n.nonce!==void 0&&r.setAttribute("nonce",n.nonce),r.appendChild(document.createTextNode("")),r.setAttribute("data-s",""),r}var g1=(function(){function n(l){var s=this;this._insertTag=function(u){var f;s.tags.length===0?s.insertionPoint?f=s.insertionPoint.nextSibling:s.prepend?f=s.container.firstChild:f=s.before:f=s.tags[s.tags.length-1].nextSibling,s.container.insertBefore(u,f),s.tags.push(u)},this.isSpeedy=l.speedy===void 0?!0:l.speedy,this.tags=[],this.ctr=0,this.nonce=l.nonce,this.key=l.key,this.container=l.container,this.prepend=l.prepend,this.insertionPoint=l.insertionPoint,this.before=null}var r=n.prototype;return r.hydrate=function(s){s.forEach(this._insertTag)},r.insert=function(s){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(p1(this));var u=this.tags[this.tags.length-1];if(this.isSpeedy){var f=m1(u);try{f.insertRule(s,f.cssRules.length)}catch{}}else u.appendChild(document.createTextNode(s));this.ctr++},r.flush=function(){this.tags.forEach(function(s){var u;return(u=s.parentNode)==null?void 0:u.removeChild(s)}),this.tags=[],this.ctr=0},n})(),Gt="-ms-",ms="-moz-",Ge="-webkit-",Wh="comm",Bu="rule",Lu="decl",y1="@import",Ih="@keyframes",v1="@layer",b1=Math.abs,ps=String.fromCharCode,x1=Object.assign;function _1(n,r){return Mt(n,0)^45?(((r<<2^Mt(n,0))<<2^Mt(n,1))<<2^Mt(n,2))<<2^Mt(n,3):0}function em(n){return n.trim()}function S1(n,r){return(n=r.exec(n))?n[0]:n}function Ye(n,r,l){return n.replace(r,l)}function Vu(n,r){return n.indexOf(r)}function Mt(n,r){return n.charCodeAt(r)|0}function Fi(n,r,l){return n.slice(r,l)}function qa(n){return n.length}function Hu(n){return n.length}function gs(n,r){return r.push(n),n}function w1(n,r){return n.map(r).join("")}var ys=1,Hr=1,tm=0,Pt=0,wt=0,qr="";function vs(n,r,l,s,u,f,d){return{value:n,root:r,parent:l,type:s,props:u,children:f,line:ys,column:Hr,length:d,return:""}}function Ji(n,r){return x1(vs("",null,null,"",null,null,0),n,{length:-n.length},r)}function A1(){return wt}function C1(){return wt=Pt>0?Mt(qr,--Pt):0,Hr--,wt===10&&(Hr=1,ys--),wt}function sa(){return wt=Pt<tm?Mt(qr,Pt++):0,Hr++,wt===10&&(Hr=1,ys++),wt}function Za(){return Mt(qr,Pt)}function bs(){return Pt}function Pi(n,r){return Fi(qr,n,r)}function Wi(n){switch(n){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function am(n){return ys=Hr=1,tm=qa(qr=n),Pt=0,[]}function nm(n){return qr="",n}function xs(n){return em(Pi(Pt-1,qu(n===91?n+2:n===40?n+1:n)))}function T1(n){for(;(wt=Za())&&wt<33;)sa();return Wi(n)>2||Wi(wt)>3?"":" "}function E1(n,r){for(;--r&&sa()&&!(wt<48||wt>102||wt>57&&wt<65||wt>70&&wt<97););return Pi(n,bs()+(r<6&&Za()==32&&sa()==32))}function qu(n){for(;sa();)switch(wt){case n:return Pt;case 34:case 39:n!==34&&n!==39&&qu(wt);break;case 40:n===41&&qu(n);break;case 92:sa();break}return Pt}function O1(n,r){for(;sa()&&n+wt!==57;)if(n+wt===84&&Za()===47)break;return"/*"+Pi(r,Pt-1)+"*"+ps(n===47?n:sa())}function z1(n){for(;!Wi(Za());)sa();return Pi(n,Pt)}function N1(n){return nm(_s("",null,null,null,[""],n=am(n),0,[0],n))}function _s(n,r,l,s,u,f,d,m,y){for(var p=0,_=0,x=d,O=0,S=0,U=0,C=1,Z=1,I=1,F=0,ae="",te=u,L=f,K=s,J=ae;Z;)switch(U=F,F=sa()){case 40:if(U!=108&&Mt(J,x-1)==58){Vu(J+=Ye(xs(F),"&","&\f"),"&\f")!=-1&&(I=-1);break}case 34:case 39:case 91:J+=xs(F);break;case 9:case 10:case 13:case 32:J+=T1(U);break;case 92:J+=E1(bs()-1,7);continue;case 47:switch(Za()){case 42:case 47:gs(k1(O1(sa(),bs()),r,l),y);break;default:J+="/"}break;case 123*C:m[p++]=qa(J)*I;case 125*C:case 59:case 0:switch(F){case 0:case 125:Z=0;case 59+_:I==-1&&(J=Ye(J,/\f/g,"")),S>0&&qa(J)-x&&gs(S>32?im(J+";",s,l,x-1):im(Ye(J," ","")+";",s,l,x-2),y);break;case 59:J+=";";default:if(gs(K=rm(J,r,l,p,_,u,m,ae,te=[],L=[],x),f),F===123)if(_===0)_s(J,r,K,K,te,f,x,m,L);else switch(O===99&&Mt(J,3)===110?100:O){case 100:case 108:case 109:case 115:_s(n,K,K,s&&gs(rm(n,K,K,0,0,u,m,ae,u,te=[],x),L),u,L,x,m,s?te:L);break;default:_s(J,K,K,K,[""],L,0,m,L)}}p=_=S=0,C=I=1,ae=J="",x=d;break;case 58:x=1+qa(J),S=U;default:if(C<1){if(F==123)--C;else if(F==125&&C++==0&&C1()==125)continue}switch(J+=ps(F),F*C){case 38:I=_>0?1:(J+="\f",-1);break;case 44:m[p++]=(qa(J)-1)*I,I=1;break;case 64:Za()===45&&(J+=xs(sa())),O=Za(),_=x=qa(ae=J+=z1(bs())),F++;break;case 45:U===45&&qa(J)==2&&(C=0)}}return f}function rm(n,r,l,s,u,f,d,m,y,p,_){for(var x=u-1,O=u===0?f:[""],S=Hu(O),U=0,C=0,Z=0;U<s;++U)for(var I=0,F=Fi(n,x+1,x=b1(C=d[U])),ae=n;I<S;++I)(ae=em(C>0?O[I]+" "+F:Ye(F,/&\f/g,O[I])))&&(y[Z++]=ae);return vs(n,r,l,u===0?Bu:m,y,p,_)}function k1(n,r,l){return vs(n,r,l,Wh,ps(A1()),Fi(n,2,-2),0)}function im(n,r,l,s){return vs(n,r,l,Lu,Fi(n,0,s),Fi(n,s+1,-1),s)}function Zr(n,r){for(var l="",s=Hu(n),u=0;u<s;u++)l+=r(n[u],u,n,r)||"";return l}function j1(n,r,l,s){switch(n.type){case v1:if(n.children.length)break;case y1:case Lu:return n.return=n.return||n.value;case Wh:return"";case Ih:return n.return=n.value+"{"+Zr(n.children,s)+"}";case Bu:n.value=n.props.join(",")}return qa(l=Zr(n.children,s))?n.return=n.value+"{"+l+"}":""}function M1(n){var r=Hu(n);return function(l,s,u,f){for(var d="",m=0;m<r;m++)d+=n[m](l,s,u,f)||"";return d}}function R1(n){return function(r){r.root||(r=r.return)&&n(r)}}function lm(n){var r=Object.create(null);return function(l){return r[l]===void 0&&(r[l]=n(l)),r[l]}}var D1=function(r,l,s){for(var u=0,f=0;u=f,f=Za(),u===38&&f===12&&(l[s]=1),!Wi(f);)sa();return Pi(r,Pt)},U1=function(r,l){var s=-1,u=44;do switch(Wi(u)){case 0:u===38&&Za()===12&&(l[s]=1),r[s]+=D1(Pt-1,l,s);break;case 2:r[s]+=xs(u);break;case 4:if(u===44){r[++s]=Za()===58?"&\f":"",l[s]=r[s].length;break}default:r[s]+=ps(u)}while(u=sa());return r},B1=function(r,l){return nm(U1(am(r),l))},sm=new WeakMap,L1=function(r){if(!(r.type!=="rule"||!r.parent||r.length<1)){for(var l=r.value,s=r.parent,u=r.column===s.column&&r.line===s.line;s.type!=="rule";)if(s=s.parent,!s)return;if(!(r.props.length===1&&l.charCodeAt(0)!==58&&!sm.get(s))&&!u){sm.set(r,!0);for(var f=[],d=B1(l,f),m=s.props,y=0,p=0;y<d.length;y++)for(var _=0;_<m.length;_++,p++)r.props[p]=f[y]?d[y].replace(/&\f/g,m[_]):m[_]+" "+d[y]}}},V1=function(r){if(r.type==="decl"){var l=r.value;l.charCodeAt(0)===108&&l.charCodeAt(2)===98&&(r.return="",r.value="")}};function om(n,r){switch(_1(n,r)){case 5103:return Ge+"print-"+n+n;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Ge+n+n;case 5349:case 4246:case 4810:case 6968:case 2756:return Ge+n+ms+n+Gt+n+n;case 6828:case 4268:return Ge+n+Gt+n+n;case 6165:return Ge+n+Gt+"flex-"+n+n;case 5187:return Ge+n+Ye(n,/(\w+).+(:[^]+)/,Ge+"box-$1$2"+Gt+"flex-$1$2")+n;case 5443:return Ge+n+Gt+"flex-item-"+Ye(n,/flex-|-self/,"")+n;case 4675:return Ge+n+Gt+"flex-line-pack"+Ye(n,/align-content|flex-|-self/,"")+n;case 5548:return Ge+n+Gt+Ye(n,"shrink","negative")+n;case 5292:return Ge+n+Gt+Ye(n,"basis","preferred-size")+n;case 6060:return Ge+"box-"+Ye(n,"-grow","")+Ge+n+Gt+Ye(n,"grow","positive")+n;case 4554:return Ge+Ye(n,/([^-])(transform)/g,"$1"+Ge+"$2")+n;case 6187:return Ye(Ye(Ye(n,/(zoom-|grab)/,Ge+"$1"),/(image-set)/,Ge+"$1"),n,"")+n;case 5495:case 3959:return Ye(n,/(image-set\([^]*)/,Ge+"$1$`$1");case 4968:return Ye(Ye(n,/(.+:)(flex-)?(.*)/,Ge+"box-pack:$3"+Gt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Ge+n+n;case 4095:case 3583:case 4068:case 2532:return Ye(n,/(.+)-inline(.+)/,Ge+"$1$2")+n;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(qa(n)-1-r>6)switch(Mt(n,r+1)){case 109:if(Mt(n,r+4)!==45)break;case 102:return Ye(n,/(.+:)(.+)-([^]+)/,"$1"+Ge+"$2-$3$1"+ms+(Mt(n,r+3)==108?"$3":"$2-$3"))+n;case 115:return~Vu(n,"stretch")?om(Ye(n,"stretch","fill-available"),r)+n:n}break;case 4949:if(Mt(n,r+1)!==115)break;case 6444:switch(Mt(n,qa(n)-3-(~Vu(n,"!important")&&10))){case 107:return Ye(n,":",":"+Ge)+n;case 101:return Ye(n,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ge+(Mt(n,14)===45?"inline-":"")+"box$3$1"+Ge+"$2$3$1"+Gt+"$2box$3")+n}break;case 5936:switch(Mt(n,r+11)){case 114:return Ge+n+Gt+Ye(n,/[svh]\w+-[tblr]{2}/,"tb")+n;case 108:return Ge+n+Gt+Ye(n,/[svh]\w+-[tblr]{2}/,"tb-rl")+n;case 45:return Ge+n+Gt+Ye(n,/[svh]\w+-[tblr]{2}/,"lr")+n}return Ge+n+Gt+n+n}return n}var H1=function(r,l,s,u){if(r.length>-1&&!r.return)switch(r.type){case Lu:r.return=om(r.value,r.length);break;case Ih:return Zr([Ji(r,{value:Ye(r.value,"@","@"+Ge)})],u);case Bu:if(r.length)return w1(r.props,function(f){switch(S1(f,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Zr([Ji(r,{props:[Ye(f,/:(read-\w+)/,":"+ms+"$1")]})],u);case"::placeholder":return Zr([Ji(r,{props:[Ye(f,/:(plac\w+)/,":"+Ge+"input-$1")]}),Ji(r,{props:[Ye(f,/:(plac\w+)/,":"+ms+"$1")]}),Ji(r,{props:[Ye(f,/:(plac\w+)/,Gt+"input-$1")]})],u)}return""})}},q1=[H1],Z1=function(r){var l=r.key;if(l==="css"){var s=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(s,function(C){var Z=C.getAttribute("data-emotion");Z.indexOf(" ")!==-1&&(document.head.appendChild(C),C.setAttribute("data-s",""))})}var u=r.stylisPlugins||q1,f={},d,m=[];d=r.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+l+' "]'),function(C){for(var Z=C.getAttribute("data-emotion").split(" "),I=1;I<Z.length;I++)f[Z[I]]=!0;m.push(C)});var y,p=[L1,V1];{var _,x=[j1,R1(function(C){_.insert(C)})],O=M1(p.concat(u,x)),S=function(Z){return Zr(N1(Z),O)};y=function(Z,I,F,ae){_=F,S(Z?Z+"{"+I.styles+"}":I.styles),ae&&(U.inserted[I.name]=!0)}}var U={key:l,sheet:new g1({key:l,container:d,nonce:r.nonce,speedy:r.speedy,prepend:r.prepend,insertionPoint:r.insertionPoint}),nonce:r.nonce,inserted:f,registered:{},insert:y};return U.sheet.hydrate(m),U},Zu={exports:{}},Xe={};/** @license React v16.13.1
83
+ */const Wv=th("refresh-cw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]),nh={modal:{id:"",open:!1,label:"",url:""}},rr=Au(n=>({...nh,setModal:r=>n({modal:r}),resetModal:()=>n({modal:nh.modal})})),e1=n=>n.replace(/\D/g,"").slice(0,11).replace(/^(\d{2})(\d{5})(\d{0,4})/,"($1) $2-$3").trim(),t1=n=>n.replace(/\D/g,"").slice(0,8).replace(/^(\d{5})(\d{0,3})/,"$1-$2"),a1=n=>n.replace(/\D/g,"").replace(/(\d{3})(\d{3})(\d{3})(\d{2})/,"$1.$2.$3-$4"),rh=n=>Number(String(n).replace(",",".")),n1=n=>{const r=String(n);if(r.includes(".")||r.includes(","))return rh(n);const l=r.slice(-2);return+`${r.slice(0,-2)||"0"}.${l}`},r1=n=>{const r=n.slice(-2);return+`${n.slice(0,-2)||"0"}.${r}`};function i1(n){return String(n).replace(/[.,]/g,"")}const ya={phone:n=>e1(n),cep:n=>t1(n),cpf:n=>a1(n),priceToInteger:n=>i1(n),price:n=>rh(n),transformPrice:n=>n1(n),transformPorcent:n=>r1(n)};/*! js-cookie v3.0.5 | MIT */function hs(n){for(var r=1;r<arguments.length;r++){var l=arguments[r];for(var s in l)n[s]=l[s]}return n}var l1={read:function(n){return n[0]==='"'&&(n=n.slice(1,-1)),n.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(n){return encodeURIComponent(n).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function Hu(n,r){function l(u,f,d){if(!(typeof document>"u")){d=hs({},r,d),typeof d.expires=="number"&&(d.expires=new Date(Date.now()+d.expires*864e5)),d.expires&&(d.expires=d.expires.toUTCString()),u=encodeURIComponent(u).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var h="";for(var y in d)d[y]&&(h+="; "+y,d[y]!==!0&&(h+="="+d[y].split(";")[0]));return document.cookie=u+"="+n.write(f,u)+h}}function s(u){if(!(typeof document>"u"||arguments.length&&!u)){for(var f=document.cookie?document.cookie.split("; "):[],d={},h=0;h<f.length;h++){var y=f[h].split("="),p=y.slice(1).join("=");try{var S=decodeURIComponent(y[0]);if(d[S]=n.read(p,S),u===S)break}catch{}}return u?d[u]:d}}return Object.create({set:l,get:s,remove:function(u,f){l(u,"",hs({},f,{expires:-1}))},withAttributes:function(u){return Hu(this.converter,hs({},this.attributes,u))},withConverter:function(u){return Hu(hs({},this.converter,u),this.attributes)}},{attributes:{value:Object.freeze(r)},converter:{value:Object.freeze(n)}})}var rt=Hu(l1,{path:"/"});const qu={BASE_URL:"/",DEV:!0,MODE:"production",PROD:!1,SSR:!1,VITE_API_URL:"https://serverless-pbm.vercel.app",VITE_CLIENT_ID_SANTOREMEDIO:"fff909d6-a77e-4ffc-a4bb-47a1cde99621",VITE_CLIENT_SECRET_SANTOREMEDIO:"ZTK8Q~gqjOkbBmH3vN1AIsKUbwkhUYOkzfvIUb18",VITE_CORREIOS_API_URL:"https://viacep.com.br/ws",VITE_GRANT_TYPE_SANTOREMEDIO:"client_credentials",VITE_SCOPE_SANTOREMEDIO:"https://interplayersdevb2c.onmicrosoft.com/services/varejo-api-pre/.default",VITE_USERNAME_SANTOREMEDIO:"147de435-fac6-4c57-95d8-bb06feb0496b"},ir=n=>{var r;if(typeof{url:Ja&&Ja.tagName.toUpperCase()==="SCRIPT"&&Ja.src||new URL("vanilla.js",document.baseURI).href}<"u")return qu==null?void 0:qu[n];if(typeof process<"u")return(r=process.env)==null?void 0:r[n]},s1=async({product:n,consumer:r})=>{const l=rt.get("tenant_id");if(!l)throw new Error(`No configuration found for tenant: ${l}`);if(!r||!r.holderId)throw new Error("Consumer holderId information is required");if(!n)throw new Error("Product information is required");const s={id:n.id,ean:n.ean,requestedQuantity:n.requestedQuantity,listPrice:n.listPrice,netPrice:n.netPrice};try{const f=await(await fetch(`${ir("VITE_API_URL")}/api/lookup-consumer.ts`,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json",Authorization:`Bearer ${rt.get("pbm-token")}`},body:JSON.stringify({tenant_id:l,product:s,table_id:rt.get("current-table-id"),local_hour:rt.get("current-local-hour"),consumer:r})})).json();if(!f.success)throw new Error("PBMLOG: Enable Discount Failed!");return f}catch(u){return console.error("Error during enable discount:",u),{success:!1,error:"Authorization failed"}}};function o1({startTransition:n}){const r=Kt(),[l,s]=pe.useState(!1),{setModal:u}=rr(),{handleSubmit:f,register:d,setValue:h,clearErrors:y,unregister:p,formState:{errors:S}}=Bv({resolver:Qv(uv),mode:"onSubmit",defaultValues:{securityNumber:r.securityNumber||"",coupon:""}}),v=async N=>{if(r.targetProduct===null){console.error("PBMLOG: Product is not defined!");return}if(!r.targetProduct.id){console.error("PBMLOG: Product ID is not defined!");return}if(!r.targetProduct.listPrice){console.error("PBMLOG: List Price is not defined!");return}r.setSecurityNumber(N.securityNumber.replace(/\D/g,""));const V=await s1({product:r.targetProduct,consumer:{holderId:N.securityNumber.replace(/\D/g,"")}});if(!V.success){u({id:"CustomerNotRegistered",open:!0});return}r.setBenefitsList(V.product),r.setState("isActivated")},D=async N=>{if(!r.isAuthenticatedShopper){u({id:"ShopperIsNotAuthenticated",open:!0});return}l||h("coupon",void 0,{shouldValidate:!1}),l&&N.coupon!=null&&r.setCardID(N.coupon),n(async()=>{await v(N)})};return x.jsxDEV(x.Fragment,{children:[x.jsxDEV("form",{onSubmit:f(D),className:ot("w-full h-auto flex items-start justify-center flex-col mb-2 transition-all duration-150"),id:"form_security_number_pbm",children:[x.jsxDEV("label",{htmlFor:"input_security_number_pbm",className:ot("w-full h-auto flex items-start flex-col justify-center relative py-2 transition-all duration-100",{"mb-4":S.securityNumber&&!l}),id:"label_security_number_pbm",children:[x.jsxDEV("input",{type:"text",className:ot("w-full h-10 bg-(--pbm-input-background) rounded-lg text-sm font-semibold outline-(--pbm-outline-color) focus:outline focus:bg-(--pbm-input-focus) focus:outline-(--pbm-outline-focus-color) text-zinc-600 placeholder:text-zinc-600 px-4 placeholder:text-sm placeholder:font-semibold",{"outline outline-red-600":S.securityNumber,"rounded-lg":l}),style:{"--tw-outline-color":S.securityNumber?void 0:"var(--pbm-secondary)"},placeholder:"Digite seu CPF aqui...",required:!0,maxLength:14,...d("securityNumber",{onChange:N=>{const V=ya.cpf(N.target.value);h("securityNumber",V,{shouldValidate:!0})}}),defaultValue:r.securityNumber||"",id:"input_security_number_pbm"},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Form/index.tsx",lineNumber:124,columnNumber:11},this),S.securityNumber&&x.jsxDEV("span",{className:"text-red-400 text-xs font-semibold absolute -bottom-3 left-2 text-nowrap",id:"security_number_form_error",children:S.securityNumber.message},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Form/index.tsx",lineNumber:155,columnNumber:13},this)]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/components/Form/index.tsx",lineNumber:114,columnNumber:9},this),x.jsxDEV(pe.Activity,{mode:l?"visible":"hidden",children:x.jsxDEV("label",{htmlFor:"input_coupon_pbm",className:ot("w-full h-auto flex items-start flex-col justify-center relative py-2",{"mt-2":S.securityNumber}),id:"label_coupon_pbm",children:[x.jsxDEV("input",{type:"text",className:ot("w-full h-10 bg-gray-100 rounded-s-lg text-sm font-semibold focus:outline focus:bg-white text-zinc-600 placeholder:text-zinc-600 px-4 placeholder:text-sm placeholder:font-semibold",{"outline outline-red-600":S.coupon,"rounded-lg":l}),style:{"--tw-outline-color":S.coupon?void 0:"var(--pbm-secondary)"},placeholder:"Cupom / ID do Cartão",...d("coupon",{required:l?"Cupom / ID do Cartão obrigatório.":!1,shouldUnregister:!l,onChange:N=>{h("coupon",N.target.value,{shouldValidate:l})}}),id:"input_coupon_pbm"},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Form/index.tsx",lineNumber:175,columnNumber:13},this),S.coupon&&x.jsxDEV("span",{className:"text-red-400 text-xs font-semibold absolute -bottom-3 left-2 text-nowrap",id:"coupon_form_error",children:S.coupon.message},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Form/index.tsx",lineNumber:206,columnNumber:15},this)]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/components/Form/index.tsx",lineNumber:165,columnNumber:11},this)},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Form/index.tsx",lineNumber:164,columnNumber:9},this),x.jsxDEV("button",{type:"submit",className:ot("w-full h-10 rounded-lg flex items-center justify-center cursor-pointer text-sm text-white font-semibold transition-all duration-150",{"rounded-lg":l}),style:{backgroundColor:"var(--pbm-primary)"},id:"button_submit_security_number_pbm",children:"Comprar com desconto"},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Form/index.tsx",lineNumber:216,columnNumber:9},this)]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/components/Form/index.tsx",lineNumber:107,columnNumber:7},this),x.jsxDEV("section",{className:"flex items-start flex-col gap-2",children:[x.jsxDEV(Wa,{className:"bg-transparent p-0 pl-2 w-auto h-auto underline cursor-pointer hover:bg-transparent flex items-center justify-start gap-1",style:{color:"var(--pbm-text)"},onMouseOver:N=>N.currentTarget.style.filter="brightness(0.8)",onMouseOut:N=>N.currentTarget.style.filter="none",onClick:()=>{const N=!l;s(N),N||(p("coupon"),y("coupon"))},id:"check_benefits_button",children:[x.jsxDEV("span",{className:"text-start",children:l?"Não possui Cupom / ID do Cartão?":"Possui Cupom / ID do Cartão?"},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Form/index.tsx",lineNumber:250,columnNumber:11},this),x.jsxDEV(ah,{size:16,className:ot({"rotate-0":!l,"rotate-180":l})},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Form/index.tsx",lineNumber:255,columnNumber:11},this)]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/components/Form/index.tsx",lineNumber:232,columnNumber:9},this),x.jsxDEV(Wa,{className:"bg-transparent p-0 pl-2 w-auto h-auto underline cursor-pointer hover:bg-transparent flex items-center justify-start gap-1",style:{color:"var(--pbm-text)"},onMouseOver:N=>N.currentTarget.style.filter="brightness(0.8)",onMouseOut:N=>N.currentTarget.style.filter="none",onClick:()=>r.setState("isPreview"),id:"check_benefits_button",children:[x.jsxDEV("span",{children:"Consultar Benefícios"},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Form/index.tsx",lineNumber:273,columnNumber:11},this),x.jsxDEV(ah,{size:16},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Form/index.tsx",lineNumber:274,columnNumber:11},this)]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/components/Form/index.tsx",lineNumber:263,columnNumber:9},this)]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/components/Form/index.tsx",lineNumber:231,columnNumber:7},this)]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/components/Form/index.tsx",lineNumber:106,columnNumber:5},this)}function u1({size:n}){return x.jsxDEV("svg",{xmlns:"http://www.w3.org/2000/svg","data-name":"Camada 1",viewBox:"0 0 500 500",width:n,height:n,children:x.jsxDEV("path",{d:"M421.44 78.56C375.64 32.77 314.76 7.55 250 7.55S124.36 32.77 78.56 78.56C32.77 124.36 7.55 185.24 7.55 250s25.22 125.64 71.01 171.44c45.8 45.79 106.68 71.01 171.44 71.01s125.64-25.22 171.44-71.01c45.79-45.8 71.01-106.68 71.01-171.44s-25.22-125.64-71.01-171.44zm-49.17 121.7L242.88 334.63c-8.98 9.29-23.57 10.17-33.59 2.02l-79.63-64.7c-10.69-8.67-12.33-24.38-3.66-35.07 8.67-10.69 24.38-12.33 35.07-3.65l61.9 50.39L336.5 165.74c4.4-4.75 10.48-7.59 16.95-7.93a24.88 24.88 0 0118.83 7.26c9.72 9.72 9.71 25.48 0 35.19z",fill:"#229b00"},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/UI/Icons/index.tsx",lineNumber:12,columnNumber:7},this)},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/UI/Icons/index.tsx",lineNumber:5,columnNumber:5},this)}function c1({size:n}){return x.jsxDEV("svg",{xmlns:"http://www.w3.org/2000/svg","data-name":"Camada 1",viewBox:"0 0 500 500",width:n,height:n,children:[x.jsxDEV("circle",{cx:250,cy:250,r:237.45,fill:"#fff"},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/UI/Icons/index.tsx",lineNumber:28,columnNumber:7},this),x.jsxDEV("path",{d:"M250 492.45c-64.76 0-125.64-25.22-171.44-71.01C32.77 375.64 7.55 314.76 7.55 250S32.77 124.36 78.56 78.56C124.36 32.77 185.24 7.55 250 7.55s125.64 25.22 171.44 71.01c45.79 45.79 71.01 106.68 71.01 171.44s-25.22 125.64-71.01 171.44c-45.79 45.79-106.68 71.01-171.44 71.01zm0-474.9C121.83 17.55 17.55 121.83 17.55 250S121.83 482.45 250 482.45 482.45 378.17 482.45 250 378.17 17.55 250 17.55z",fill:"#d8d8d8"},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/UI/Icons/index.tsx",lineNumber:29,columnNumber:7},this)]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/components/UI/Icons/index.tsx",lineNumber:21,columnNumber:5},this)}function f1({size:n,color:r}){return x.jsxDEV("svg",{viewBox:"-0.003 0 99.979 99.979",xmlns:"http://www.w3.org/2000/svg",fill:"#000000",width:n,height:n,children:[x.jsxDEV("g",{id:"SVGRepo_bgCarrier",strokeWidth:"0"},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/UI/Icons/index.tsx",lineNumber:46,columnNumber:7},this),x.jsxDEV("g",{id:"SVGRepo_tracerCarrier",strokeLinecap:"round",strokeLinejoin:"round"},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/UI/Icons/index.tsx",lineNumber:47,columnNumber:7},this),x.jsxDEV("g",{id:"SVGRepo_iconCarrier",children:[x.jsxDEV("path",{fill:"#ffe700",d:"M92.869 7.105c9.478 9.476 9.478 24.832 0 34.308L41.411 92.869c-9.475 9.474-24.833 9.474-34.307 0-9.476-9.475-9.476-24.832 0-34.308L58.562 7.105c9.475-9.473 24.834-9.473 34.307 0z"},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/UI/Icons/index.tsx",lineNumber:53,columnNumber:9},this),x.jsxDEV("path",{fill:r,d:"M32.548 33.122L7.105 58.563c-9.476 9.476-9.476 24.833 0 34.308 9.474 9.475 24.832 9.475 34.307 0L66.85 67.43 32.548 33.122z"},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/UI/Icons/index.tsx",lineNumber:57,columnNumber:9},this),x.jsxDEV("path",{fill:r,d:"M65.43 68.862L31.134 34.568l1.414-1.414 34.294 34.294z"},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/UI/Icons/index.tsx",lineNumber:61,columnNumber:9},this),x.jsxDEV("path",{fill:r,d:"M38.096 41.51L12.7 66.906a5.894 5.894 0 0 0 0 8.339 5.896 5.896 0 0 0 8.339 0l25.396-25.396-8.339-8.339z"},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/UI/Icons/index.tsx",lineNumber:65,columnNumber:9},this),x.jsxDEV("path",{fill:"#ffe700",d:"M75.244 12.7a5.897 5.897 0 0 0-8.343 0L39.51 40.096l8.339 8.339 27.396-27.396a5.899 5.899 0 0 0-.001-8.339z"},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/UI/Icons/index.tsx",lineNumber:69,columnNumber:9},this),x.jsxDEV("path",{fill:r,d:"M47.862 48.444l-1.414 1.414-8.335-8.336 1.414-1.414z"},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/UI/Icons/index.tsx",lineNumber:73,columnNumber:9},this)]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/components/UI/Icons/index.tsx",lineNumber:52,columnNumber:7},this)]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/components/UI/Icons/index.tsx",lineNumber:39,columnNumber:5},this)}function d1({size:n,color:r}){return x.jsxDEV("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:n,height:n,children:[x.jsxDEV("g",{id:"SVGRepo_bgCarrier",strokeWidth:"0"},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/UI/Icons/index.tsx",lineNumber:91,columnNumber:7},this),x.jsxDEV("g",{id:"SVGRepo_tracerCarrier",strokeLinecap:"round",strokeLinejoin:"round"},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/UI/Icons/index.tsx",lineNumber:92,columnNumber:7},this),x.jsxDEV("g",{id:"SVGRepo_iconCarrier",children:x.jsxDEV("path",{d:"M7.33199 16.3154C6.94146 15.9248 6.3083 15.9248 5.91777 16.3154C5.52725 16.7059 5.52725 17.339 5.91777 17.7296L10.5834 22.3952C11.3644 23.1762 12.6308 23.1762 13.4118 22.3952L18.0802 17.7267C18.4707 17.3362 18.4707 16.703 18.0802 16.3125C17.6897 15.922 17.0565 15.922 16.666 16.3125L13 19.9786V2.0001C13 1.44781 12.5523 1.0001 12 1.0001C11.4477 1.0001 11 1.44781 11 2.0001V19.9833L7.33199 16.3154Z",fill:r},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/UI/Icons/index.tsx",lineNumber:98,columnNumber:9},this)},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/UI/Icons/index.tsx",lineNumber:97,columnNumber:7},this)]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/components/UI/Icons/index.tsx",lineNumber:84,columnNumber:5},this)}const ps={CheckON:u1,CheckOFF:c1,Pills:f1,ArrowDown:d1};function m1(){var y;const{targetProduct:n,benefitsEnabled:r,setBenefitsEnabled:l}=Kt(),s=ya.transformPrice(Number(n==null?void 0:n.listPrice)),u=ya.transformPrice(Number(n==null?void 0:n.discountValue)||0),f=ya.transformPorcent((n==null?void 0:n.discountPercentual)||"0"),d=s*f/100,h=s-u||s-d;return x.jsxDEV("header",{className:"flex items-start justify-start flex-col gap-4 w-full p-0.5 rounded-xl mt-5",id:"header_pbm",children:[x.jsxDEV("label",{className:"flex items-center gap-2 cursor-pointer",htmlFor:"enable_benefits_checkbox",children:[x.jsxDEV("input",{id:"enable_benefits_checkbox",type:"checkbox",name:"option",className:"peer hidden",checked:r,onChange:p=>l(p.target.checked)},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Header/index.tsx",lineNumber:32,columnNumber:9},this),x.jsxDEV("div",{className:"w-5 h-5 border border-(--pbm-primary) rounded-full flex items-center justify-center transition-all duration-300 after:content-[''] after:w-2 after:h-2 after:rounded-full after:bg-(--pbm-primary) after:scale-0 after:transition-transform after:duration-200 peer-checked:after:scale-100"},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Header/index.tsx",lineNumber:42,columnNumber:9},this),x.jsxDEV("p",{className:"font-medium text-(--pbm-primary) select-none text-sm",children:"Desconto de Laboratório"},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Header/index.tsx",lineNumber:43,columnNumber:9},this),x.jsxDEV(ps.Pills,{size:16,color:"var(--pbm-primary)"},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Header/index.tsx",lineNumber:46,columnNumber:9},this)]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/components/Header/index.tsx",lineNumber:28,columnNumber:7},this),x.jsxDEV("span",{className:"py-1 rounded-xl shrink-0 text-white text-xl font-bold flex items-center justify-start gap-2 relative","data-testid":"test_id_header_price",id:"header_price",children:x.jsxDEV("section",{className:"flex items-start gap-2 justify-center-safe flex-col",children:[x.jsxDEV("div",{className:"flex items-center-safe justify-start gap-1",children:[x.jsxDEV("span",{className:"line-through text-sm font-light text-zinc-600",children:(y=Number(s))==null?void 0:y.toLocaleString("pt-BR",{currency:"BRL",currencyDisplay:"symbol",currencySign:"standard",style:"currency"})},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Header/index.tsx",lineNumber:56,columnNumber:13},this),x.jsxDEV(ps.ArrowDown,{size:14,color:"var(--pbm-primary)"},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Header/index.tsx",lineNumber:65,columnNumber:13},this),x.jsxDEV("span",{className:"font-semibold text-sm text-(--pbm-primary)",children:[f.toFixed(2),"%"]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/components/Header/index.tsx",lineNumber:67,columnNumber:13},this)]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/components/Header/index.tsx",lineNumber:55,columnNumber:11},this),x.jsxDEV("span",{className:"text-lg text-zinc-700 font-bold",children:h==null?void 0:h.toLocaleString("pt-BR",{currency:"BRL",currencyDisplay:"symbol",currencySign:"standard",style:"currency"})},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Header/index.tsx",lineNumber:72,columnNumber:11},this),(n==null?void 0:n.informativeMessage)&&x.jsxDEV("span",{className:"text-xs text-zinc-600 font-medium",children:n==null?void 0:n.informativeMessage},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Header/index.tsx",lineNumber:82,columnNumber:13},this)]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/components/Header/index.tsx",lineNumber:54,columnNumber:9},this)},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Header/index.tsx",lineNumber:49,columnNumber:7},this)]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/components/Header/index.tsx",lineNumber:24,columnNumber:5},this)}function h1({textColor:n}){return x.jsxDEV("main",{className:"flex items-center justify-center gap-4",id:"loading_pbm",children:[x.jsxDEV("div",{"data-testid":"test_id_spin",className:"w-8 h-8 border-4 shrink-0 border-gray-300 rounded-full animate-spin",style:{borderTopColor:"var(--pbm-secondary)"},id:"loading_spin"},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/UI/Loading/index.tsx",lineNumber:8,columnNumber:7},this),x.jsxDEV("p",{className:"text-sm font-semibold text-start",style:{color:n||"var(--pbm-text)"},id:"loading_label",children:"Um momento... estamos verificando seus dados."},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/UI/Loading/index.tsx",lineNumber:14,columnNumber:7},this)]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/components/UI/Loading/index.tsx",lineNumber:7,columnNumber:5},this)}function Gu({children:n,variant:r}){const{benefitsEnabled:l}=Kt();return x.jsxDEV("main",{className:ot({"border-3 border-(--pbm-border) overflow-hidden flex flex-col items-center justify-center min-w-(--min-container) max-w-(--max-container) w-full h-auto rounded-xl p-4 bg-white gap-4 relative":r==="main","w-full relative":r==="simple","h-0 overflow-hidden":!l&&r==="simple"}),"data-testid":"test_id_container","data-variant":r,id:"container_pbm",children:n},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/UI/Container/index.tsx",lineNumber:15,columnNumber:5},this)}function Hr(n){return x.jsxDEV("h2",{className:ot("text-start font-semibold text-sm",n.className),style:{color:n.textColor||"var(--pbm-text)",fontSize:n.textSize,textAlign:n.textAlign},"data-testid":"test_id_title",id:"title_pbm",children:n.children},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/UI/Title/index.tsx",lineNumber:13,columnNumber:5},this)}function p1({data:n,onChange:r,checked:l}){const{setAvailableDiscountSelected:s,state:u,isAuthenticatedShopper:f}=Kt(),{setModal:d}=rr(),h=n.id+"_"+n.authorizedQuantity,y=ya.transformPrice(Number(n==null?void 0:n.grossPrice)||Number(n==null?void 0:n.listPrice)||0),p=ya.transformPrice(Number(n==null?void 0:n.discountValue)||0),S=ya.transformPorcent((n==null?void 0:n.discountPercentual)||"0"),v=p*Number(n.authorizedQuantity),D=y*Number(n.authorizedQuantity),N=D*S/100,V=D-v||D-N,E=pe.useCallback(()=>{if(l){const P=K=>Math.round(K*100)/100;s({discount:{total:P(v),unit:P(p)},quantity:Number(n.authorizedQuantity),totalPrice:P(V),grossPrice:n.grossPrice})}},[l,n.authorizedQuantity,n.grossPrice,s,v,p,V]);pe.useEffect(()=>{E()},[E]);const q=()=>{if(!f&&u==="isActivated"){d({id:"ShopperIsNotAuthenticated",open:!0});return}r()};return x.jsxDEV("label",{htmlFor:h,className:ot("label_benefits w-full flex items-center justify-start bg-zinc-300/60 border border-zinc-400/50 px-4 py-2 transition-colors rounded-lg gap-1",{"cursor-not-allowed":u==="isPreview","cursor-pointer":u==="isActivated"}),style:{borderColor:l?"var(--pbm-primary)":void 0,backgroundColor:l?"color-mix(in srgb, var(--pbm-primary), transparent 90%)":void 0},id:"label_benefits_"+h,children:[x.jsxDEV("input",{type:"radio",name:"benefits_discount",id:h,className:"hidden",checked:l,onChange:q,disabled:u==="isPreview"},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/BenefitsTable/Item.tsx",lineNumber:106,columnNumber:7},this),x.jsxDEV("span",{style:{color:"var(--pbm-primary)"},children:l?x.jsxDEV(ps.CheckON,{size:20},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/BenefitsTable/Item.tsx",lineNumber:117,columnNumber:52},this):x.jsxDEV(ps.CheckOFF,{size:20},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/BenefitsTable/Item.tsx",lineNumber:117,columnNumber:21},this)},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/BenefitsTable/Item.tsx",lineNumber:116,columnNumber:7},this),x.jsxDEV("span",{className:"font-semibold text-sm",style:{color:"var(--pbm-text)"},children:[n.authorizedQuantity,"un"]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/components/BenefitsTable/Item.tsx",lineNumber:120,columnNumber:7},this),x.jsxDEV("section",{className:"ml-auto relative gap-2 flex items-center-safe justify-end-safe",children:[x.jsxDEV("span",{className:"text-white -top-4 py-0.5 font-semibold text-xs px-2 w-auto text-nowrap rounded-2xl -right-3",style:{backgroundColor:"var(--pbm-primary)"},children:[v.toLocaleString("pt-BR",{currency:"BRL",currencyDisplay:"symbol",currencySign:"standard",style:"currency"})," ","OFF"]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/components/BenefitsTable/Item.tsx",lineNumber:128,columnNumber:9},this),x.jsxDEV("strong",{className:"font-semibold text-sm text-center",style:{color:"var(--pbm-text)"},children:V.toLocaleString("pt-BR",{currency:"BRL",currencyDisplay:"symbol",currencySign:"standard",style:"currency"})},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/BenefitsTable/Item.tsx",lineNumber:140,columnNumber:9},this)]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/components/BenefitsTable/Item.tsx",lineNumber:127,columnNumber:7},this)]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/components/BenefitsTable/Item.tsx",lineNumber:89,columnNumber:5},this)}const g1="N000";function y1(){var y;const{setState:n,state:r,customLoginUrl:l,isAuthenticatedShopper:s,benefitsList:u}=Kt(),[f,d]=pe.useState(null),[h]=pe.useState(u);return h!=null&&h.length&&((y=h[0])==null?void 0:y.returnCode)!==g1&&r==="isActivated"?x.jsxDEV("main",{className:"flex items-center justify-center gap-4",id:"loading_pbm",children:x.jsxDEV("p",{className:"text-sm font-semibold text-start",style:{color:"var(--pbm-text)"},id:"benefits_error_handle",children:h[0].informativeText},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/BenefitsTable/index.tsx",lineNumber:31,columnNumber:9},this)},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/BenefitsTable/index.tsx",lineNumber:30,columnNumber:7},this):x.jsxDEV("section",{className:"flex items-start justify-center gap-4 w-full h-auto flex-col",id:"benefits_table_pbm",children:[x.jsxDEV(Hr,{children:"Descontos disponíveis:"},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/BenefitsTable/index.tsx",lineNumber:47,columnNumber:7},this),x.jsxDEV("form",{className:"flex flex-col items-center justify-start w-full gap-4.5",id:"form_benefits_table_pbm",onSubmit:p=>p.preventDefault(),children:[!h&&x.jsxDEV("p",{className:"text-sm font-semibold text-start text-zinc-900",id:"benefits_empty_pbm",children:"Não foi possível encontrar benefícios para esse produto."},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/BenefitsTable/index.tsx",lineNumber:55,columnNumber:11},this),h&&h.map(p=>{const S=p.id+"_"+p.authorizedQuantity;return x.jsxDEV(p1,{data:p,checked:f===S,onChange:()=>d(S)},S,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/BenefitsTable/index.tsx",lineNumber:68,columnNumber:15},this)})]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/components/BenefitsTable/index.tsx",lineNumber:49,columnNumber:7},this),r==="isPreview"&&x.jsxDEV(Wa,{onClick:()=>n("isEmpty"),className:"bg-transparent p-0 w-auto h-auto text-zinc-600 cursor-pointer hover:text-zinc-900 hover:bg-transparent text-start",id:"unauthorized_benefits_button",children:["Atenção: Não é possível utilizar os benefícos sem realizar a consulta do CPF e o Login, por favor"," ",x.jsxDEV("span",{className:"underline",children:"insira seu cpf para utilizar os benefícios"},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/BenefitsTable/index.tsx",lineNumber:86,columnNumber:11},this)]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/components/BenefitsTable/index.tsx",lineNumber:79,columnNumber:9},this),r==="isActivated"&&x.jsxDEV(x.Fragment,{children:[!s&&x.jsxDEV(Wa,{type:"button",onClick:()=>window.location.assign(l||"/login"),className:"bg-transparent p-0 pl-2 w-auto h-auto text-zinc-600 cursor-pointer hover:text-zinc-900 hover:bg-transparent text-start",id:"login",children:x.jsxDEV("span",{className:"underline",children:"Por favor, faça o Login para aproveitar os benefícios!"},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/BenefitsTable/index.tsx",lineNumber:101,columnNumber:15},this)},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/BenefitsTable/index.tsx",lineNumber:95,columnNumber:13},this),x.jsxDEV(Wa,{onClick:()=>n("isEmpty"),className:"bg-transparent p-0 pl-2 w-auto h-auto text-zinc-600 cursor-pointer hover:text-zinc-900 hover:bg-transparent text-start",id:"change_security_number",children:x.jsxDEV("span",{className:"underline",children:"Deseja editar o cpf digitado?"},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/BenefitsTable/index.tsx",lineNumber:112,columnNumber:13},this)},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/BenefitsTable/index.tsx",lineNumber:107,columnNumber:11},this)]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/components/BenefitsTable/index.tsx",lineNumber:93,columnNumber:9},this)]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/components/BenefitsTable/index.tsx",lineNumber:43,columnNumber:5},this)}function gs(n){return x.jsxDEV("p",{className:ot("font-normal text-sm",n.textAlign&&`text-${n.textAlign}`,n.className),style:{color:n.textColor||"var(--pbm-text)",fontSize:n.textSize,textAlign:n.textAlign},"data-testid":"test_id_text",id:"text_pbm",children:n.children},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/UI/Text/index.tsx",lineNumber:13,columnNumber:5},this)}function b1({textColor:n}){const{urlAcceptTerms:r}=Kt(),{setModal:l}=rr(),s=()=>{r&&l({open:!0,id:"iframe_pbm",label:"Aceitar os termos",url:r})};return x.jsxDEV("section",{"data-testid":"test_id_invalid",className:"flex items-end justify-center gap-2 w-full h-auto flex-col border-y py-6",style:{borderColor:"color-mix(in srgb, var(--pbm-text), transparent 80%)"},id:"security_number_invalid_container_pbm",children:[x.jsxDEV(Hr,{className:"w-full",textColor:n,children:"CPF não cadastrado."},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/SecurityNumberInvalid/index.tsx",lineNumber:25,columnNumber:7},this),x.jsxDEV(gs,{className:"w-full",textColor:n,children:["Conclua seu cadastro para habilitar o benefício. ",x.jsxDEV("br",{},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/SecurityNumberInvalid/index.tsx",lineNumber:29,columnNumber:58},this),"Ao clicar em “Aceitar os termos”, você irá para uma página externa. Aceite os termos e volte para continuar."]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/components/SecurityNumberInvalid/index.tsx",lineNumber:28,columnNumber:7},this),x.jsxDEV(Wa,{onClick:()=>s(),style:{backgroundColor:"var(--pbm-primary)"},children:"Aceitar os termos"},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/SecurityNumberInvalid/index.tsx",lineNumber:33,columnNumber:7},this)]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/components/SecurityNumberInvalid/index.tsx",lineNumber:19,columnNumber:5},this)}function v1({textColor:n}){const{urlRegisterIndustry:r}=Kt(),{setModal:l}=rr(),s=()=>{r&&l({open:!0,id:"iframe_pbm",label:"Ativar CPF",url:r})};return x.jsxDEV("section",{"data-testid":"test_id_registered",className:"flex items-end justify-center gap-2 w-full h-auto flex-col border-y py-6",style:{borderColor:"color-mix(in srgb, var(--pbm-text), transparent 80%)"},id:"security_number_registered_container_pbm",children:[x.jsxDEV(Hr,{className:"w-full",textColor:n,children:"Ops, seu CPF ainda não está habilitado para este produto."},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/SecurityNumberRegitered/index.tsx",lineNumber:25,columnNumber:7},this),x.jsxDEV(gs,{className:"w-full",textColor:n,children:"Para ativar o benefício, clique em “Ativar CPF” e conclua a etapa na página externa. Depois, é só voltar para continuar — vamos aguardar você aqui."},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/SecurityNumberRegitered/index.tsx",lineNumber:28,columnNumber:7},this),x.jsxDEV(Wa,{onClick:()=>s(),style:{backgroundColor:"var(--pbm-primary)"},children:"Ativar CPF"},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/SecurityNumberRegitered/index.tsx",lineNumber:31,columnNumber:7},this)]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/components/SecurityNumberRegitered/index.tsx",lineNumber:19,columnNumber:5},this)}const ih={ErrorMessage:"Erro ao aplicar o benefício"},lh=Au(n=>({...ih,setErrorMessage:r=>n({ErrorMessage:r}),resetErrorMessage:()=>n({ErrorMessage:ih.ErrorMessage})})),sh=()=>{const{ErrorMessage:n}=lh(),{setState:r}=Kt();return x.jsxDEV(Gu,{variant:"main",children:[x.jsxDEV(Hr,{children:"Erro ao Aplicar o Benefício"},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Errors/ErrorToApplyBenefits.tsx",lineNumber:15,columnNumber:13},void 0),x.jsxDEV(gs,{textAlign:"center",children:n},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Errors/ErrorToApplyBenefits.tsx",lineNumber:16,columnNumber:13},void 0),x.jsxDEV(Wa,{className:"bg-transparent p-0 pl-2 w-auto h-auto underline cursor-pointer hover:bg-transparent flex items-center justify-start gap-1",style:{color:"var(--pbm-text)"},onMouseOver:l=>l.currentTarget.style.filter="brightness(0.8)",onMouseOut:l=>l.currentTarget.style.filter="none",onClick:()=>r("isEmpty"),id:"check_benefits_button",children:[x.jsxDEV("span",{children:"Tentar novamente"},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Errors/ErrorToApplyBenefits.tsx",lineNumber:25,columnNumber:17},void 0),x.jsxDEV(Wv,{size:16},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Errors/ErrorToApplyBenefits.tsx",lineNumber:26,columnNumber:17},void 0)]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/components/Errors/ErrorToApplyBenefits.tsx",lineNumber:17,columnNumber:13},void 0)]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/components/Errors/ErrorToApplyBenefits.tsx",lineNumber:14,columnNumber:9},void 0)},oh={personalData:{name:"",phone:"",birthday:"",email:""},address:{postalcode:"",number:"",complement:"",street:"",neighborhood:"",city:"",uf:"",stateAddress:""},genderResponsibility:{gender:"",patient:null},doctor:{typeCredential:"CRM",register:"",state:"",doctorName:""},acceptances:{acceptPhone:!1,acceptsSms:!1,acceptsEmail:!1,acceptsMail:!1,acceptsPrivacyTermsLGPD:!1},step:0},lr=Au(n=>({...oh,setPersonalData:r=>n(l=>({personalData:{...l.personalData,...r}})),setAddress:r=>n(l=>({address:{...l.address,...r}})),setGenderResponsibility:r=>n(l=>({genderResponsibility:{...l.genderResponsibility,...r}})),setDoctor:r=>n(l=>({doctor:{...l.doctor,...r}})),setAcceptances:r=>n(l=>({acceptances:{...l.acceptances,...r}})),setStep:r=>n({step:r}),resetForm:()=>n(oh)})),Gt=({label:n,error:r,children:l})=>x.jsxDEV("div",{className:"flex flex-col gap-1",children:[x.jsxDEV("label",{className:"text-xs font-medium text-zinc-500 uppercase tracking-wide",children:n},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/Shared/FieldWrapper.tsx",lineNumber:11,columnNumber:5},void 0),l,r&&x.jsxDEV("span",{className:"text-xs text-red-500 mt-0.5",children:r},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/Shared/FieldWrapper.tsx",lineNumber:15,columnNumber:15},void 0)]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/Shared/FieldWrapper.tsx",lineNumber:10,columnNumber:3},void 0),Qi="w-full rounded-lg border border-gray-200 bg-gray-100 px-3 py-2.5 text-sm text-gray-400 cursor-not-allowed",ja=n=>ot("w-full rounded-lg border px-3 py-2.5 text-sm text-gray-800 outline-none transition-all","focus:ring-2 focus:ring-blue-500/30 focus:border-blue-500",n?"border-red-400 bg-red-50":"border-gray-200 bg-gray-50 hover:border-gray-300"),Xi=({onNext:n,onBack:r,loading:l,nextLabel:s="Continuar",isLast:u=!1})=>x.jsxDEV("div",{className:"flex gap-2 mt-2 pt-4 border-t border-gray-100",children:[r&&x.jsxDEV("button",{type:"button",onClick:r,className:"flex-1 rounded-lg border border-gray-200 py-2.5 text-sm font-medium text-zinc-600 hover:bg-zinc-600/10 transition-all cursor-pointer",children:"Voltar"},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/Shared/StepActions.tsx",lineNumber:18,columnNumber:7},void 0),x.jsxDEV("button",{type:"button",onClick:n,disabled:l,className:ot("flex-2 rounded-lg py-2.5 text-sm font-semibold text-white transition-all cursor-pointer",u?"bg-emerald-600 hover:bg-emerald-500":"bg-(--pbm-primary) hover:bg-(--pbm-primary)/60",l&&"opacity-60 cursor-not-allowed"),children:l?x.jsxDEV("span",{className:"flex items-center justify-center gap-2",children:[x.jsxDEV("svg",{className:"h-4 w-4 animate-spin",viewBox:"0 0 24 24",fill:"none",children:[x.jsxDEV("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/Shared/StepActions.tsx",lineNumber:41,columnNumber:13},void 0),x.jsxDEV("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8v8z"},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/Shared/StepActions.tsx",lineNumber:49,columnNumber:13},void 0)]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/Shared/StepActions.tsx",lineNumber:40,columnNumber:11},void 0),"Enviando..."]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/Shared/StepActions.tsx",lineNumber:39,columnNumber:9},void 0):s},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/Shared/StepActions.tsx",lineNumber:26,columnNumber:5},void 0)]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/Shared/StepActions.tsx",lineNumber:16,columnNumber:3},void 0),ys={PersonalData:0,Address:1,GenderResponsibility:2,Doctor:3,Acceptances:4},x1=({securityNumber:n,onNext:r})=>{const{personalData:l,setPersonalData:s,setStep:u}=lr(),{setModal:f}=rr(),[d,h]=pe.useState({}),[y,p]=pe.useState(!1),S=()=>{const D={};return(!l.name.trim()||l.name.trim().split(" ").length<2)&&(D.name="Informe o nome completo."),/^\(\d{2}\) \d{5}-\d{4}$/.test(l.phone)||(D.phone="Telefone inválido."),l.birthday||(D.birthday="Data de nascimento obrigatória."),/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(l.email)||(D.email="E-mail inválido."),h(D),Object.keys(D).length===0},v=async()=>{if(S()){p(!0);try{u(ys.Address),r()}catch{console.error("An error occurred while setting personal data form.")}finally{p(!1)}}};return x.jsxDEV("div",{className:"flex flex-col gap-4",children:[x.jsxDEV(Gt,{label:"CPF",children:[x.jsxDEV("input",{className:Qi,value:ya.cpf(n),disabled:!0,readOnly:!0},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepPersonalDataForm.tsx",lineNumber:58,columnNumber:9},void 0),x.jsxDEV("p",{className:"text-xs text-gray-400 mt-1",children:x.jsxDEV("button",{type:"button",className:"text-(--pbm-primary) hover:text-(--pbm-primary)/60 cursor-pointer underline underline-offset-2 transition-colors",onClick:()=>f({id:"",open:!1}),children:"Deseja alterar o CPF? Clique aqui."},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepPersonalDataForm.tsx",lineNumber:65,columnNumber:11},void 0)},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepPersonalDataForm.tsx",lineNumber:64,columnNumber:9},void 0)]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepPersonalDataForm.tsx",lineNumber:57,columnNumber:7},void 0),x.jsxDEV(Gt,{label:"Nome completo",error:d.name,children:x.jsxDEV("input",{className:ja(d.name),placeholder:"Ex: João da Silva",value:l.name,onChange:D=>{s({name:D.target.value}),h(N=>({...N,name:void 0}))}},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepPersonalDataForm.tsx",lineNumber:76,columnNumber:9},void 0)},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepPersonalDataForm.tsx",lineNumber:75,columnNumber:7},void 0),x.jsxDEV("div",{className:"grid grid-cols-2 gap-3",children:[x.jsxDEV(Gt,{label:"Telefone",error:d.phone,children:x.jsxDEV("input",{className:ja(d.phone),placeholder:"(11) 99999-8888",value:l.phone,onChange:D=>{s({phone:ya.phone(D.target.value)}),h(N=>({...N,phone:void 0}))}},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepPersonalDataForm.tsx",lineNumber:89,columnNumber:11},void 0)},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepPersonalDataForm.tsx",lineNumber:88,columnNumber:9},void 0),x.jsxDEV(Gt,{label:"Data de nascimento",error:d.birthday,children:x.jsxDEV("input",{type:"date",className:ja(d.birthday),value:l.birthday,onChange:D=>{s({birthday:D.target.value}),h(N=>({...N,birthday:void 0}))}},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepPersonalDataForm.tsx",lineNumber:101,columnNumber:11},void 0)},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepPersonalDataForm.tsx",lineNumber:100,columnNumber:9},void 0)]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepPersonalDataForm.tsx",lineNumber:87,columnNumber:7},void 0),x.jsxDEV(Gt,{label:"E-mail",error:d.email,children:x.jsxDEV("input",{type:"email",className:ja(d.email),placeholder:"joao@email.com",value:l.email,onChange:D=>{s({email:D.target.value}),h(N=>({...N,email:void 0}))}},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepPersonalDataForm.tsx",lineNumber:114,columnNumber:9},void 0)},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepPersonalDataForm.tsx",lineNumber:113,columnNumber:7},void 0),x.jsxDEV(Xi,{onNext:v,loading:y},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepPersonalDataForm.tsx",lineNumber:126,columnNumber:7},void 0)]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepPersonalDataForm.tsx",lineNumber:56,columnNumber:5},void 0)};async function S1({postal_code:n}){const r=await fetch(`${ir("VITE_CORREIOS_API_URL")}/${n}/json/`);if(!r.ok)throw new Error("Erro ao consultar CEP");return{...await r.json(),success:!0}}const N1=({onNext:n,onBack:r})=>{const{address:l,setAddress:s,setStep:u}=lr(),[f,d]=pe.useState({}),[h,y]=pe.useState(!1),[p,S]=pe.useState(!1),v=pe.useCallback(async V=>{const E=V.replace(/\D/g,"");if(E.length===8){y(!0);try{const q=await S1({postal_code:E});if(!q.success){console.error("Failed to lookup postal code");return}s({street:q.logradouro,neighborhood:q.bairro,uf:q.uf,city:q.localidade,stateAddress:q.estado,postalcode:q.cep,complement:q.complemento||""})}catch{console.error("Failed to fetch address for CEP:",V)}finally{y(!1)}}},[s]),D=()=>{const V={};return/^\d{5}-\d{3}$/.test(l.postalcode)||(V.postalcode="CEP inválido."),l.number.trim()||(V.number="Número obrigatório."),d(V),Object.keys(V).length===0},N=async()=>{if(D()){S(!0);try{u(ys.GenderResponsibility),n()}catch{console.log("An error occurred while submitting address form.")}finally{S(!1)}}};return x.jsxDEV("div",{className:"flex flex-col gap-4",children:[x.jsxDEV(Gt,{label:"CEP",error:f.postalcode,children:x.jsxDEV("div",{className:"relative",children:[x.jsxDEV("input",{className:ja(f.postalcode),placeholder:"00000-000",value:l.postalcode,onChange:V=>{const E=ya.cep(V.target.value);s({postalcode:E}),d(q=>({...q,postalcode:void 0})),E.replace(/\D/g,"").length===8&&v(E)}},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepAddressForm.tsx",lineNumber:87,columnNumber:11},void 0),h&&x.jsxDEV("div",{className:"absolute right-3 top-1/2 -translate-y-1/2",children:x.jsxDEV("svg",{className:"h-4 w-4 animate-spin text-blue-500",viewBox:"0 0 24 24",fill:"none",children:[x.jsxDEV("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepAddressForm.tsx",lineNumber:109,columnNumber:17},void 0),x.jsxDEV("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8v8z"},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepAddressForm.tsx",lineNumber:117,columnNumber:17},void 0)]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepAddressForm.tsx",lineNumber:104,columnNumber:15},void 0)},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepAddressForm.tsx",lineNumber:103,columnNumber:13},void 0)]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepAddressForm.tsx",lineNumber:86,columnNumber:9},void 0)},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepAddressForm.tsx",lineNumber:85,columnNumber:7},void 0),x.jsxDEV("div",{className:"grid grid-cols-2 gap-3",children:[x.jsxDEV(Gt,{label:"Rua",children:x.jsxDEV("input",{className:Qi,value:l.street||"",disabled:!0,readOnly:!0,placeholder:"Preenchido pelo CEP"},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepAddressForm.tsx",lineNumber:130,columnNumber:11},void 0)},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepAddressForm.tsx",lineNumber:129,columnNumber:9},void 0),x.jsxDEV(Gt,{label:"Bairro",children:x.jsxDEV("input",{className:Qi,value:l.neighborhood||"",disabled:!0,readOnly:!0,placeholder:"Preenchido pelo CEP"},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepAddressForm.tsx",lineNumber:139,columnNumber:11},void 0)},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepAddressForm.tsx",lineNumber:138,columnNumber:9},void 0)]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepAddressForm.tsx",lineNumber:128,columnNumber:7},void 0),x.jsxDEV("div",{className:"grid grid-cols-2 gap-3",children:[x.jsxDEV(Gt,{label:"Cidade",children:x.jsxDEV("input",{className:Qi,value:l.city||"",disabled:!0,readOnly:!0,placeholder:"Preenchido pelo CEP"},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepAddressForm.tsx",lineNumber:151,columnNumber:11},void 0)},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepAddressForm.tsx",lineNumber:150,columnNumber:9},void 0),x.jsxDEV(Gt,{label:"Estado",children:x.jsxDEV("input",{className:Qi,value:l.stateAddress||"",disabled:!0,readOnly:!0,placeholder:"UF"},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepAddressForm.tsx",lineNumber:160,columnNumber:11},void 0)},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepAddressForm.tsx",lineNumber:159,columnNumber:9},void 0)]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepAddressForm.tsx",lineNumber:149,columnNumber:7},void 0),x.jsxDEV("div",{className:"grid grid-cols-2 gap-3",children:[x.jsxDEV(Gt,{label:"Número",error:f.number,children:x.jsxDEV("input",{className:ja(f.number),placeholder:"Ex: 100",value:l.number,onChange:V=>{s({number:V.target.value}),d(E=>({...E,number:void 0}))}},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepAddressForm.tsx",lineNumber:172,columnNumber:11},void 0)},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepAddressForm.tsx",lineNumber:171,columnNumber:9},void 0),x.jsxDEV(Gt,{label:"Complemento",children:x.jsxDEV("input",{className:ja(),placeholder:"Apto, bloco...",value:l.complement,onChange:V=>s({complement:V.target.value})},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepAddressForm.tsx",lineNumber:183,columnNumber:11},void 0)},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepAddressForm.tsx",lineNumber:182,columnNumber:9},void 0)]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepAddressForm.tsx",lineNumber:170,columnNumber:7},void 0),x.jsxDEV(Xi,{onNext:N,onBack:r,loading:p},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepAddressForm.tsx",lineNumber:192,columnNumber:7},void 0)]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepAddressForm.tsx",lineNumber:84,columnNumber:5},void 0)},_1=({onNext:n,onBack:r})=>{const{genderResponsibility:l,setGenderResponsibility:s,setStep:u}=lr(),[f,d]=pe.useState({}),[h,y]=pe.useState(!1),p=()=>{const D={};return l.gender||(D.gender="Selecione o gênero."),l.patient===null&&(D.patient="Informe se é o paciente."),d(D),Object.keys(D).length===0},S=async()=>{if(p()){y(!0);try{u(ys.Doctor),n()}catch{console.error("An error occurred while submitting gender responsibility data.")}finally{y(!1)}}},v=[{value:"M",label:"Masculino"},{value:"F",label:"Feminino"},{value:"O",label:"Outro"}];return x.jsxDEV("div",{className:"flex flex-col gap-5",children:[x.jsxDEV("div",{children:[x.jsxDEV("label",{className:"text-xs font-medium text-gray-500 uppercase tracking-wide block mb-2",children:"Gênero"},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepGenderForm.tsx",lineNumber:56,columnNumber:9},void 0),x.jsxDEV("div",{className:"flex gap-2",children:v.map(D=>x.jsxDEV("button",{type:"button",onClick:()=>{s({gender:D.value}),d(N=>({...N,gender:void 0}))},className:ot("flex-1 py-2.5 cursor-pointer px-2.5 rounded-lg border text-sm font-medium transition-all",l.gender===D.value?"border-(--pbm-primary) bg-(--pbm-primary) text-white":"border-gray-200 bg-gray-50 text-gray-600 hover:border-(--pbm-primary)"),children:D.label},D.value,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepGenderForm.tsx",lineNumber:61,columnNumber:13},void 0))},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepGenderForm.tsx",lineNumber:59,columnNumber:9},void 0),f.gender&&x.jsxDEV("span",{className:"text-xs text-red-500 mt-1 block",children:f.gender},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepGenderForm.tsx",lineNumber:80,columnNumber:11},void 0)]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepGenderForm.tsx",lineNumber:55,columnNumber:7},void 0),x.jsxDEV("div",{children:[x.jsxDEV("label",{className:"text-xs font-medium text-gray-500 uppercase tracking-wide block mb-2",children:"Você é o paciente?"},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepGenderForm.tsx",lineNumber:87,columnNumber:9},void 0),x.jsxDEV("div",{className:"flex gap-2",children:[{label:"Sim, sou o paciente",value:!0},{label:"Não, sou responsável",value:!1}].map(D=>x.jsxDEV("button",{type:"button",onClick:()=>{s({patient:D.value}),d(N=>({...N,patient:void 0}))},className:ot("flex-1 py-2.5 px-2.5 text-nowrap cursor-pointer rounded-lg border text-sm font-medium transition-all",l.patient===D.value?"border-(--pbm-primary) bg-(--pbm-primary) text-white":"border-gray-200 bg-gray-50 text-gray-600 hover:border-(--pbm-primary)"),children:D.label},String(D.value),!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepGenderForm.tsx",lineNumber:95,columnNumber:13},void 0))},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepGenderForm.tsx",lineNumber:90,columnNumber:9},void 0),f.patient&&x.jsxDEV("span",{className:"text-xs text-red-500 mt-1 block",children:f.patient},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepGenderForm.tsx",lineNumber:114,columnNumber:11},void 0)]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepGenderForm.tsx",lineNumber:86,columnNumber:7},void 0),x.jsxDEV(Xi,{onNext:S,onBack:r,loading:h},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepGenderForm.tsx",lineNumber:120,columnNumber:7},void 0)]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepGenderForm.tsx",lineNumber:54,columnNumber:5},void 0)},C1=["AC","AL","AP","AM","BA","CE","DF","ES","GO","MA","MT","MS","MG","PA","PB","PR","PE","PI","RJ","RN","RS","RO","RR","SC","SP","SE","TO"],E1=({onNext:n,onBack:r})=>{const{doctor:l,setDoctor:s,setStep:u}=lr(),[f,d]=pe.useState({}),[h,y]=pe.useState(!1),p=()=>{const v={};return l.typeCredential||(v.typeCredential="Tipo de credencial obrigatório."),l.register.trim()||(v.register="Número do registro obrigatório."),l.state||(v.state="Estado obrigatório."),l.doctorName.trim()||(v.doctorName="Nome do médico obrigatório."),d(v),Object.keys(v).length===0},S=async()=>{if(p()){y(!0);try{u(ys.Acceptances),n()}catch{console.error("An error occurred while submitting doctor data.")}finally{y(!1)}}};return x.jsxDEV("div",{className:"flex flex-col gap-4",children:[x.jsxDEV("div",{className:"grid grid-cols-3 gap-3",children:[x.jsxDEV(Gt,{label:"Tipo credencial",error:f.typeCredential,children:x.jsxDEV("select",{className:ja(f.typeCredential),value:l.typeCredential,onChange:v=>{s({typeCredential:v.target.value}),d(D=>({...D,typeCredential:void 0}))},children:[x.jsxDEV("option",{value:"CRM",children:"CRM"},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepDoctorForm.tsx",lineNumber:63,columnNumber:13},void 0),x.jsxDEV("option",{value:"CRO",children:"CRO"},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepDoctorForm.tsx",lineNumber:64,columnNumber:13},void 0),x.jsxDEV("option",{value:"CRF",children:"CRF"},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepDoctorForm.tsx",lineNumber:65,columnNumber:13},void 0)]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepDoctorForm.tsx",lineNumber:52,columnNumber:11},void 0)},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepDoctorForm.tsx",lineNumber:51,columnNumber:9},void 0),x.jsxDEV(Gt,{label:"Estado (UF)",error:f.state,children:x.jsxDEV("select",{className:ja(f.state),value:l.state,onChange:v=>{s({state:v.target.value}),d(D=>({...D,state:void 0}))},children:[x.jsxDEV("option",{value:"",children:"UF"},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepDoctorForm.tsx",lineNumber:78,columnNumber:13},void 0),C1.map(v=>x.jsxDEV("option",{value:v,children:v},v,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepDoctorForm.tsx",lineNumber:80,columnNumber:15},void 0))]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepDoctorForm.tsx",lineNumber:70,columnNumber:11},void 0)},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepDoctorForm.tsx",lineNumber:69,columnNumber:9},void 0),x.jsxDEV(Gt,{label:"Nº registro",error:f.register,children:x.jsxDEV("div",{className:"relative",children:x.jsxDEV("input",{className:ja(f.register),placeholder:"Ex: 123456",value:l.register,onChange:v=>{s({register:v.target.value.replace(/\D/g,"")}),d(D=>({...D,register:void 0}))}},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepDoctorForm.tsx",lineNumber:89,columnNumber:13},void 0)},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepDoctorForm.tsx",lineNumber:88,columnNumber:11},void 0)},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepDoctorForm.tsx",lineNumber:87,columnNumber:9},void 0)]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepDoctorForm.tsx",lineNumber:50,columnNumber:7},void 0),x.jsxDEV(Gt,{label:"Nome do médico",error:f.doctorName,children:[x.jsxDEV("div",{className:"relative",children:x.jsxDEV("input",{className:ja(f.doctorName),placeholder:"Nome Completo do Profissional",value:l.doctorName,onChange:v=>{s({doctorName:v.target.value}),d(D=>({...D,doctorName:void 0}))}},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepDoctorForm.tsx",lineNumber:107,columnNumber:11},void 0)},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepDoctorForm.tsx",lineNumber:106,columnNumber:9},void 0),x.jsxDEV("p",{className:"text-xs text-gray-400 mt-0.5",children:"Preenchido automaticamente ao informar registro + UF."},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepDoctorForm.tsx",lineNumber:120,columnNumber:9},void 0)]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepDoctorForm.tsx",lineNumber:105,columnNumber:7},void 0),x.jsxDEV(Xi,{onNext:S,onBack:r,loading:h},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepDoctorForm.tsx",lineNumber:125,columnNumber:7},void 0)]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepDoctorForm.tsx",lineNumber:49,columnNumber:5},void 0)},Ki=({label:n,checked:r,onChange:l,required:s,error:u})=>x.jsxDEV("label",{className:ot("flex items-start gap-3 cursor-pointer group p-3 rounded-lg border transition-all",r?"border-emerald-200 bg-emerald-50/60":"border-zinc-100 hover:border-zinc-200 bg-zinc-50/40",u?"border-red-300 bg-red-50/40":""),children:[x.jsxDEV("div",{className:ot("mt-0.5 flex h-4 w-4 shrink-0 items-center justify-center rounded border transition-all",r?"border-(--pbm-primary) bg-(--pbm-primary)":"border-zinc-300 bg-white"),children:r&&x.jsxDEV("svg",{className:"h-2.5 w-2.5 text-white",viewBox:"0 0 10 8",fill:"none",children:x.jsxDEV("path",{d:"M1 4l3 3 5-6",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round"},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/Shared/CheckRow.tsx",lineNumber:35,columnNumber:11},void 0)},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/Shared/CheckRow.tsx",lineNumber:34,columnNumber:9},void 0)},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/Shared/CheckRow.tsx",lineNumber:25,columnNumber:5},void 0),x.jsxDEV("span",{className:"text-sm text-zinc-700 leading-snug",children:[n,s&&x.jsxDEV("span",{className:"text-red-400 ml-1",children:"*"},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/Shared/CheckRow.tsx",lineNumber:47,columnNumber:20},void 0)]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/Shared/CheckRow.tsx",lineNumber:45,columnNumber:5},void 0),x.jsxDEV("input",{type:"checkbox",className:"sr-only",checked:r,onChange:f=>l(f.target.checked)},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/Shared/CheckRow.tsx",lineNumber:49,columnNumber:5},void 0)]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/Shared/CheckRow.tsx",lineNumber:16,columnNumber:3},void 0),w1=async({product:n,consumer:r,healthProfessional:l})=>{const s=rt.get("tenant_id");if(!s)throw new Error(`No configuration found for tenant: ${s}`);if(!r)throw new Error("Consumer information is required");if(!l)throw new Error("Health professional information is required");if(!n)throw new Error("Product information is required");try{const f=await(await fetch(`${ir("VITE_API_URL")}/api/discount.ts`,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json",Authorization:`Bearer ${rt.get("pbm-token")}`},body:JSON.stringify({tenant_id:s,product:n,table_id:rt.get("current-table-id"),local_hour:rt.get("current-local-hour"),consumer:r,healthProfessional:l})})).json();if(!f.success)throw new Error("PBMLOG: Enable Discount Failed!");return rt.set("current-central-number",f.product[0].centralNumber.toString(),{secure:!0,sameSite:"Strict",expires:1}),rt.set("current-term-code",f.product[0].activationFields.acceptLgpd.termCode.value.toString(),{secure:!0,sameSite:"Strict",expires:1}),f}catch(u){return console.error("Error during enable discount:",u),{success:!1,error:"Authorization failed"}}},D1=async({product:n,consumer:r,healthProfessional:l})=>{const s=rt.get("tenant_id");if(!s)throw new Error(`No configuration found for tenant: ${s}`);if(!r)throw new Error("Consumer information is required");if(!l)throw new Error("Health professional information is required");if(!n)throw new Error("Product information is required");try{const f=await(await fetch(`${ir("VITE_API_URL")}/api/activate.ts`,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json",Authorization:`Bearer ${rt.get("pbm-token")}`},body:JSON.stringify({tenant_id:s,product:n,table_id:rt.get("current-table-id"),local_hour:rt.get("current-local-hour"),central_number:rt.get("current-central-number"),consumer:r,healthProfessional:l,acceptLgpd:{evidenceType:"SITE",evidence:"VSTOSITE",termCode:rt.get("current-term-code")}})})).json();if(!f.success)throw new Error("PBMLOG: Activate Failed!");return f}catch(u){return console.error("Error during activate:",u),{success:!1,error:"Authorization failed"}}},A1=({onBack:n,onDone:r,securityNumber:l})=>{const{acceptances:s,setAcceptances:u}=lr(),{targetProduct:f,cardID:d}=Kt(),[h,y]=pe.useState({}),[p,S]=pe.useState(!1),v=lr.getState(),D=()=>{const E={};return s.acceptsPrivacyTermsLGPD||(E.lgpd="É obrigatório aceitar os termos de privacidade (LGPD)."),y(E),Object.keys(E).length===0},N=async E=>{try{const q=await D1(E);console.log("Activate response:",q)}catch(q){console.error("Error during consumer activation:",q)}},V=async()=>{if(!D())return;if(S(!0),!f){console.error("No target product found in PBM store."),S(!1);return}const E=v.personalData.phone.replace(/\D/g,""),q=E.slice(0,2),P=E.slice(2),K={consumer:{holderId:l,cardId:d||"",name:v.personalData.name,email:v.personalData.email,birthdate:v.personalData.birthday,genre:v.genderResponsibility.gender,postalCode:v.address.postalcode.replace(/\D/g,""),stateCode:v.address.uf||"",cityName:v.address.city||"",cityRegion:v.address.neighborhood||"",addressType:"casa",streetAddress:v.address.street||"",addressNumber:v.address.number||"",addressAdditionalInformation:v.address.complement||"",DDDcellPhone:q,cellphone:P,acceptInformativeMaterial:s.acceptsMail?"S":"N",acceptMail:s.acceptsMail?"S":"N",acceptEmail:s.acceptsEmail?"S":"N",acceptCalls:s.acceptPhone?"S":"N",acceptSMS:s.acceptsSms?"S":"N",acceptTerm:s.acceptsPrivacyTermsLGPD?"S":"N",acceptWhatsApp:"N"},healthProfessional:{id:v.doctor.register,stateCode:v.doctor.state,type:v.doctor.typeCredential,name:v.doctor.doctorName},product:{id:f.id,ean:f.ean,requestedQuantity:f.requestedQuantity,listPrice:f.listPrice,netPrice:f.netPrice}};try{const ae=await w1(K);ae.success?await N(K):console.error("Failed to enable discount:",ae),r()}catch{console.error("An error occurred while submitting acceptances data.")}finally{S(!1)}};return x.jsxDEV("div",{className:"flex flex-col gap-3",children:[x.jsxDEV("p",{className:"text-xs text-gray-500 mb-1",children:"Selecione como deseja receber comunicações:"},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepAcceptancesForm.tsx",lineNumber:119,columnNumber:7},void 0),x.jsxDEV(Ki,{label:"Aceito receber contato por telefone",checked:s.acceptPhone,onChange:E=>u({acceptPhone:E})},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepAcceptancesForm.tsx",lineNumber:123,columnNumber:7},void 0),x.jsxDEV(Ki,{label:"Aceito receber SMS",checked:s.acceptsSms,onChange:E=>u({acceptsSms:E})},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepAcceptancesForm.tsx",lineNumber:128,columnNumber:7},void 0),x.jsxDEV(Ki,{label:"Aceito receber e-mails",checked:s.acceptsEmail,onChange:E=>u({acceptsEmail:E})},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepAcceptancesForm.tsx",lineNumber:133,columnNumber:7},void 0),x.jsxDEV(Ki,{label:"Aceito receber correspondências por correio",checked:s.acceptsMail,onChange:E=>u({acceptsMail:E})},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepAcceptancesForm.tsx",lineNumber:138,columnNumber:7},void 0),x.jsxDEV("div",{className:"mt-1",children:[x.jsxDEV(Ki,{label:"Li e aceito os Termos de Privacidade (LGPD)",checked:s.acceptsPrivacyTermsLGPD,onChange:E=>{u({acceptsPrivacyTermsLGPD:E}),y({})},required:!0,error:h.lgpd},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepAcceptancesForm.tsx",lineNumber:145,columnNumber:9},void 0),h.lgpd&&x.jsxDEV("span",{className:"text-xs text-red-500 mt-1 block pl-1",children:h.lgpd},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepAcceptancesForm.tsx",lineNumber:156,columnNumber:11},void 0)]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepAcceptancesForm.tsx",lineNumber:144,columnNumber:7},void 0),x.jsxDEV(Xi,{onNext:V,onBack:n,loading:p,nextLabel:"Concluir cadastro",isLast:!0},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepAcceptancesForm.tsx",lineNumber:162,columnNumber:7},void 0)]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/StepAcceptancesForm.tsx",lineNumber:118,columnNumber:5},void 0)},uh=["Dados Pessoais","Endereço","Perfil","Médico","Aceites"],T1=({current:n})=>x.jsxDEV("div",{className:"flex items-center w-full justify-center mb-6",children:uh.map((r,l)=>{const s=l<n,u=l===n;return x.jsxDEV("div",{className:"flex items-center w-full min-w-0 justify-center relative",children:[x.jsxDEV("div",{className:"flex flex-col items-center justify-center gap-1 shrink-0 z-10",children:[x.jsxDEV("div",{className:ot("flex h-7 w-7 items-center justify-center rounded-full text-xs font-semibold transition-all",s?"bg-emerald-600 text-white":u?"bg-(--pbm-primary) text-white ring-4 ring-(--pbm-primary)/15":"bg-zinc-100 text-zinc-400"),children:s?x.jsxDEV("svg",{className:"h-3.5 w-3.5",viewBox:"0 0 12 10",fill:"none",children:x.jsxDEV("path",{d:"M1 5l4 4 6-8",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/Shared/StepProgress.tsx",lineNumber:34,columnNumber:19},void 0)},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/Shared/StepProgress.tsx",lineNumber:33,columnNumber:17},void 0):l+1},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/Shared/StepProgress.tsx",lineNumber:22,columnNumber:13},void 0),x.jsxDEV("span",{className:ot("text-[10px] font-medium whitespace-nowrap hidden sm:block",u?"text-(--pbm-primary)":s?"text-emerald-600":"text-zinc-400"),children:r},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/Shared/StepProgress.tsx",lineNumber:46,columnNumber:13},void 0)]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/Shared/StepProgress.tsx",lineNumber:21,columnNumber:11},void 0),l<uh.length-1&&x.jsxDEV("div",{className:ot("h-0.5 w-full rounded transition-all absolute top-3.5 left-10","bg-zinc-200")},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/Shared/StepProgress.tsx",lineNumber:60,columnNumber:13},void 0)]},l,!0,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/Shared/StepProgress.tsx",lineNumber:17,columnNumber:9},void 0)})},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/Shared/StepProgress.tsx",lineNumber:12,columnNumber:3},void 0),O1=({onClose:n})=>x.jsxDEV("div",{className:"flex flex-col items-center gap-4 py-4 text-center",children:[x.jsxDEV("div",{className:"flex h-16 w-16 items-center justify-center rounded-full bg-green-100",children:x.jsxDEV("svg",{className:"h-8 w-8 text-green-500",viewBox:"0 0 24 24",fill:"none",children:x.jsxDEV("path",{d:"M5 13l4 4L19 7",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round"},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/Shared/SuccessScreen.tsx",lineNumber:5,columnNumber:9},void 0)},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/Shared/SuccessScreen.tsx",lineNumber:4,columnNumber:7},void 0)},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/Shared/SuccessScreen.tsx",lineNumber:3,columnNumber:5},void 0),x.jsxDEV("div",{children:[x.jsxDEV("h3",{className:"text-base font-semibold text-gray-800",children:"Cadastro concluído!"},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/Shared/SuccessScreen.tsx",lineNumber:15,columnNumber:7},void 0),x.jsxDEV("p",{className:"text-sm text-zinc-500 mt-1",children:"Você já pode aproveitar os benefícios de farmácia."},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/Shared/SuccessScreen.tsx",lineNumber:18,columnNumber:7},void 0)]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/Shared/SuccessScreen.tsx",lineNumber:14,columnNumber:5},void 0),x.jsxDEV("button",{onClick:n,className:"cursor-pointer mt-2 rounded-lg bg-(--primary-color) px-6 py-2.5 text-sm font-semibold text-white hover:bg-(--primary-color)/80 transition-all",children:"Fechar"},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/Shared/SuccessScreen.tsx",lineNumber:22,columnNumber:5},void 0)]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/Shared/SuccessScreen.tsx",lineNumber:2,columnNumber:3},void 0),R1=({ID:n})=>{const{modal:r,setModal:l}=rr(),{securityNumber:s}=Kt(),{resetForm:u,step:f,setStep:d}=lr(),[h,y]=pe.useState(!1),p=()=>{l({id:"",open:!1}),setTimeout(()=>{d(0),y(!1),u()},300)},S=()=>d(f+1),v=()=>d(f-1),D=s.replace(/\D/g,""),N=[x.jsxDEV(x1,{securityNumber:D,onNext:S},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/index.tsx",lineNumber:36,columnNumber:5},void 0),x.jsxDEV(N1,{securityNumber:D,onNext:S,onBack:v},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/index.tsx",lineNumber:37,columnNumber:5},void 0),x.jsxDEV(_1,{securityNumber:D,onNext:S,onBack:v},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/index.tsx",lineNumber:42,columnNumber:5},void 0),x.jsxDEV(E1,{securityNumber:D,onNext:S,onBack:v},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/index.tsx",lineNumber:47,columnNumber:5},void 0),x.jsxDEV(A1,{securityNumber:D,onBack:v,onDone:()=>y(!0)},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/index.tsx",lineNumber:52,columnNumber:5},void 0)];return x.jsxDEV("main",{className:ot("fixed inset-0 flex items-center justify-end z-50 flex-col transition-all shadow bg-black/40",{"opacity-100 pointer-events-auto":r.id===n&&r.open,"opacity-0 pointer-events-none":r.id!==n||!r.open}),children:[x.jsxDEV("div",{className:"absolute inset-0",onClick:p},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/index.tsx",lineNumber:69,columnNumber:7},void 0),x.jsxDEV("section",{className:"z-10 bg-white flex flex-col p-6 rounded-2xl w-full max-w-125 min-w-125 mx-4 shadow-xl max-h-[90vh] overflow-y-auto",children:[x.jsxDEV("div",{className:"flex items-center justify-between mb-4",children:[x.jsxDEV(Hr,{textSize:"18px",textAlign:"start",children:h?"Tudo pronto!":"Benefício de Farmácia"},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/index.tsx",lineNumber:73,columnNumber:11},void 0),x.jsxDEV("button",{onClick:p,className:"flex h-7 w-7 cursor-pointer items-center justify-center rounded-full text-gray-400 hover:bg-gray-100 hover:text-gray-600 transition-all",children:x.jsxDEV("svg",{className:"h-4 w-4",viewBox:"0 0 14 14",fill:"none",children:x.jsxDEV("path",{d:"M1 1l12 12M13 1L1 13",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/index.tsx",lineNumber:81,columnNumber:15},void 0)},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/index.tsx",lineNumber:80,columnNumber:13},void 0)},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/index.tsx",lineNumber:76,columnNumber:11},void 0)]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/index.tsx",lineNumber:72,columnNumber:9},void 0),!h&&x.jsxDEV(T1,{current:f},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/index.tsx",lineNumber:91,columnNumber:19},void 0),h?x.jsxDEV(O1,{onClose:p},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/index.tsx",lineNumber:93,columnNumber:17},void 0):N[f]]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/index.tsx",lineNumber:71,columnNumber:7},void 0)]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/CustomerNotRegistered/index.tsx",lineNumber:60,columnNumber:5},void 0)},M1=n=>n===void 0?"":"?"+Object.keys(n).map(r=>r+"="+n[r]).join("&");function z1(n){const{setState:r}=Kt();return x.jsxDEV("a",{...n,target:n.target||"_self",href:typeof n.href=="string"?n.href:n.href.pathname+M1(n.href.param),className:ot("w-3xs cursor-pointer h-10 rounded-lg text-white text-sm font-semibold transition-colors flex items-center justify-center",n.className),style:{backgroundColor:"var(--pbm-primary)"},onMouseOver:l=>l.currentTarget.style.backgroundColor="var(--pbm-secondary)",onMouseOut:l=>l.currentTarget.style.backgroundColor="var(--pbm-primary)","data-testid":"test_id_link",id:"link_pbm",onClick:()=>r("isEmpty"),children:n.children},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/UI/Link/index.tsx",lineNumber:18,columnNumber:5},this)}const k1=({ID:n})=>{const{customLoginUrl:r}=Kt(),{modal:l,setModal:s}=rr();return x.jsxDEV("main",{className:ot("fixed inset-0 flex items-center justify-center z-50 flex-col transition-all shadow bg-black/40",{"opacity-100 pointer-events-auto":l.id===n&&l.open,"opacity-0 pointer-events-none":l.id!=n||!l.open}),children:[x.jsxDEV("div",{className:"absolute inset-0",onClick:()=>s({id:"",open:!1})},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/ShopperIsNotAuthenticated.tsx",lineNumber:23,columnNumber:7},void 0),x.jsxDEV("section",{className:"z-10 bg-white gap-2 flex-col items-center-safe justify-center-safe p-8 rounded-xl",children:[x.jsxDEV(Hr,{textColor:"tomato",textSize:"18px",textAlign:"center",className:"mb-2",children:"Opa! Parece que você não está Logado"},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/ShopperIsNotAuthenticated.tsx",lineNumber:28,columnNumber:9},void 0),x.jsxDEV(gs,{className:"mb-2",textAlign:"center",children:["Para aproveitar os benefícios é necessário realizar o"," ",x.jsxDEV("strong",{children:"Login"},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/ShopperIsNotAuthenticated.tsx",lineNumber:38,columnNumber:11},void 0)," ou ",x.jsxDEV("strong",{children:"Cadastro"},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/ShopperIsNotAuthenticated.tsx",lineNumber:38,columnNumber:37},void 0)," no site!"]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/ShopperIsNotAuthenticated.tsx",lineNumber:36,columnNumber:9},void 0),x.jsxDEV("section",{className:"flex items-center-safe justify-center-safe gap-4",children:[x.jsxDEV(Wa,{className:"bg-gray-600 hover:bg-gray-500",onClick:()=>s({id:"",open:!1}),children:"Seguir sem Benefícios"},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/ShopperIsNotAuthenticated.tsx",lineNumber:41,columnNumber:11},void 0),x.jsxDEV(z1,{href:r||"/login",children:"Aproveitar Benefícios"},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/ShopperIsNotAuthenticated.tsx",lineNumber:47,columnNumber:11},void 0)]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/ShopperIsNotAuthenticated.tsx",lineNumber:40,columnNumber:9},void 0)]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/ShopperIsNotAuthenticated.tsx",lineNumber:27,columnNumber:7},void 0)]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/components/Modals/ShopperIsNotAuthenticated.tsx",lineNumber:14,columnNumber:5},void 0)};function ch(n){var r,l,s="";if(typeof n=="string"||typeof n=="number")s+=n;else if(typeof n=="object")if(Array.isArray(n)){var u=n.length;for(r=0;r<u;r++)n[r]&&(l=ch(n[r]))&&(s&&(s+=" "),s+=l)}else for(l in n)n[l]&&(s&&(s+=" "),s+=l);return s}function fh(){for(var n,r,l=0,s="",u=arguments.length;l<u;l++)(n=arguments[l])&&(r=ch(n))&&(s&&(s+=" "),s+=r);return s}function j1(n,r,l=void 0){const s={};for(const u in n){const f=n[u];let d="",h=!0;for(let y=0;y<f.length;y+=1){const p=f[y];p&&(d+=(h===!0?"":" ")+r(p),h=!1,l&&l[p]&&(d+=" "+l[p]))}s[u]=d}return s}function sr(n,...r){const l=new URL(`https://mui.com/production-error/?code=${n}`);return r.forEach(s=>l.searchParams.append("args[]",s)),`Minified MUI error #${n}; visit ${l} for the full message.`}const V1="$$material";function Zu(){return Zu=Object.assign?Object.assign.bind():function(n){for(var r=1;r<arguments.length;r++){var l=arguments[r];for(var s in l)({}).hasOwnProperty.call(l,s)&&(n[s]=l[s])}return n},Zu.apply(null,arguments)}function B1(n){if(n.sheet)return n.sheet;for(var r=0;r<document.styleSheets.length;r++)if(document.styleSheets[r].ownerNode===n)return document.styleSheets[r]}function U1(n){var r=document.createElement("style");return r.setAttribute("data-emotion",n.key),n.nonce!==void 0&&r.setAttribute("nonce",n.nonce),r.appendChild(document.createTextNode("")),r.setAttribute("data-s",""),r}var L1=(function(){function n(l){var s=this;this._insertTag=function(u){var f;s.tags.length===0?s.insertionPoint?f=s.insertionPoint.nextSibling:s.prepend?f=s.container.firstChild:f=s.before:f=s.tags[s.tags.length-1].nextSibling,s.container.insertBefore(u,f),s.tags.push(u)},this.isSpeedy=l.speedy===void 0?!1:l.speedy,this.tags=[],this.ctr=0,this.nonce=l.nonce,this.key=l.key,this.container=l.container,this.prepend=l.prepend,this.insertionPoint=l.insertionPoint,this.before=null}var r=n.prototype;return r.hydrate=function(s){s.forEach(this._insertTag)},r.insert=function(s){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(U1(this));var u=this.tags[this.tags.length-1];{var f=s.charCodeAt(0)===64&&s.charCodeAt(1)===105;f&&this._alreadyInsertedOrderInsensitiveRule&&console.error(`You're attempting to insert the following rule:
84
+ `+s+"\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules."),this._alreadyInsertedOrderInsensitiveRule=this._alreadyInsertedOrderInsensitiveRule||!f}if(this.isSpeedy){var d=B1(u);try{d.insertRule(s,d.cssRules.length)}catch(h){/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(s)||console.error('There was a problem inserting the following rule: "'+s+'"',h)}}else u.appendChild(document.createTextNode(s));this.ctr++},r.flush=function(){this.tags.forEach(function(s){var u;return(u=s.parentNode)==null?void 0:u.removeChild(s)}),this.tags=[],this.ctr=0,this._alreadyInsertedOrderInsensitiveRule=!1},n})(),Zt="-ms-",bs="-moz-",Ze="-webkit-",Yu="comm",$u="rule",Fu="decl",H1="@import",dh="@keyframes",q1="@layer",G1=Math.abs,vs=String.fromCharCode,Z1=Object.assign;function Y1(n,r){return zt(n,0)^45?(((r<<2^zt(n,0))<<2^zt(n,1))<<2^zt(n,2))<<2^zt(n,3):0}function mh(n){return n.trim()}function $1(n,r){return(n=r.exec(n))?n[0]:n}function Ye(n,r,l){return n.replace(r,l)}function Qu(n,r){return n.indexOf(r)}function zt(n,r){return n.charCodeAt(r)|0}function Ji(n,r,l){return n.slice(r,l)}function qa(n){return n.length}function Xu(n){return n.length}function xs(n,r){return r.push(n),n}function F1(n,r){return n.map(r).join("")}var Ss=1,qr=1,hh=0,It=0,_t=0,Gr="";function Ns(n,r,l,s,u,f,d){return{value:n,root:r,parent:l,type:s,props:u,children:f,line:Ss,column:qr,length:d,return:""}}function Ii(n,r){return Z1(Ns("",null,null,"",null,null,0),n,{length:-n.length},r)}function Q1(){return _t}function X1(){return _t=It>0?zt(Gr,--It):0,qr--,_t===10&&(qr=1,Ss--),_t}function la(){return _t=It<hh?zt(Gr,It++):0,qr++,_t===10&&(qr=1,Ss++),_t}function Ga(){return zt(Gr,It)}function _s(){return It}function Pi(n,r){return Ji(Gr,n,r)}function Wi(n){switch(n){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function ph(n){return Ss=qr=1,hh=qa(Gr=n),It=0,[]}function gh(n){return Gr="",n}function Cs(n){return mh(Pi(It-1,Ku(n===91?n+2:n===40?n+1:n)))}function K1(n){for(;(_t=Ga())&&_t<33;)la();return Wi(n)>2||Wi(_t)>3?"":" "}function J1(n,r){for(;--r&&la()&&!(_t<48||_t>102||_t>57&&_t<65||_t>70&&_t<97););return Pi(n,_s()+(r<6&&Ga()==32&&la()==32))}function Ku(n){for(;la();)switch(_t){case n:return It;case 34:case 39:n!==34&&n!==39&&Ku(_t);break;case 40:n===41&&Ku(n);break;case 92:la();break}return It}function I1(n,r){for(;la()&&n+_t!==57;)if(n+_t===84&&Ga()===47)break;return"/*"+Pi(r,It-1)+"*"+vs(n===47?n:la())}function P1(n){for(;!Wi(Ga());)la();return Pi(n,It)}function W1(n){return gh(Es("",null,null,null,[""],n=ph(n),0,[0],n))}function Es(n,r,l,s,u,f,d,h,y){for(var p=0,S=0,v=d,D=0,N=0,V=0,E=1,q=1,P=1,K=0,ae="",ee=u,U=f,Q=s,J=ae;q;)switch(V=K,K=la()){case 40:if(V!=108&&zt(J,v-1)==58){Qu(J+=Ye(Cs(K),"&","&\f"),"&\f")!=-1&&(P=-1);break}case 34:case 39:case 91:J+=Cs(K);break;case 9:case 10:case 13:case 32:J+=K1(V);break;case 92:J+=J1(_s()-1,7);continue;case 47:switch(Ga()){case 42:case 47:xs(ex(I1(la(),_s()),r,l),y);break;default:J+="/"}break;case 123*E:h[p++]=qa(J)*P;case 125*E:case 59:case 0:switch(K){case 0:case 125:q=0;case 59+S:P==-1&&(J=Ye(J,/\f/g,"")),N>0&&qa(J)-v&&xs(N>32?bh(J+";",s,l,v-1):bh(Ye(J," ","")+";",s,l,v-2),y);break;case 59:J+=";";default:if(xs(Q=yh(J,r,l,p,S,u,h,ae,ee=[],U=[],v),f),K===123)if(S===0)Es(J,r,Q,Q,ee,f,v,h,U);else switch(D===99&&zt(J,3)===110?100:D){case 100:case 108:case 109:case 115:Es(n,Q,Q,s&&xs(yh(n,Q,Q,0,0,u,h,ae,u,ee=[],v),U),u,U,v,h,s?ee:U);break;default:Es(J,Q,Q,Q,[""],U,0,h,U)}}p=S=N=0,E=P=1,ae=J="",v=d;break;case 58:v=1+qa(J),N=V;default:if(E<1){if(K==123)--E;else if(K==125&&E++==0&&X1()==125)continue}switch(J+=vs(K),K*E){case 38:P=S>0?1:(J+="\f",-1);break;case 44:h[p++]=(qa(J)-1)*P,P=1;break;case 64:Ga()===45&&(J+=Cs(la())),D=Ga(),S=v=qa(ae=J+=P1(_s())),K++;break;case 45:V===45&&qa(J)==2&&(E=0)}}return f}function yh(n,r,l,s,u,f,d,h,y,p,S){for(var v=u-1,D=u===0?f:[""],N=Xu(D),V=0,E=0,q=0;V<s;++V)for(var P=0,K=Ji(n,v+1,v=G1(E=d[V])),ae=n;P<N;++P)(ae=mh(E>0?D[P]+" "+K:Ye(K,/&\f/g,D[P])))&&(y[q++]=ae);return Ns(n,r,l,u===0?$u:h,y,p,S)}function ex(n,r,l){return Ns(n,r,l,Yu,vs(Q1()),Ji(n,2,-2),0)}function bh(n,r,l,s){return Ns(n,r,l,Fu,Ji(n,0,s),Ji(n,s+1,-1),s)}function Zr(n,r){for(var l="",s=Xu(n),u=0;u<s;u++)l+=r(n[u],u,n,r)||"";return l}function tx(n,r,l,s){switch(n.type){case q1:if(n.children.length)break;case H1:case Fu:return n.return=n.return||n.value;case Yu:return"";case dh:return n.return=n.value+"{"+Zr(n.children,s)+"}";case $u:n.value=n.props.join(",")}return qa(l=Zr(n.children,s))?n.return=n.value+"{"+l+"}":""}function ax(n){var r=Xu(n);return function(l,s,u,f){for(var d="",h=0;h<r;h++)d+=n[h](l,s,u,f)||"";return d}}function vh(n){var r=Object.create(null);return function(l){return r[l]===void 0&&(r[l]=n(l)),r[l]}}var nx=function(r,l,s){for(var u=0,f=0;u=f,f=Ga(),u===38&&f===12&&(l[s]=1),!Wi(f);)la();return Pi(r,It)},rx=function(r,l){var s=-1,u=44;do switch(Wi(u)){case 0:u===38&&Ga()===12&&(l[s]=1),r[s]+=nx(It-1,l,s);break;case 2:r[s]+=Cs(u);break;case 4:if(u===44){r[++s]=Ga()===58?"&\f":"",l[s]=r[s].length;break}default:r[s]+=vs(u)}while(u=la());return r},ix=function(r,l){return gh(rx(ph(r),l))},xh=new WeakMap,lx=function(r){if(!(r.type!=="rule"||!r.parent||r.length<1)){for(var l=r.value,s=r.parent,u=r.column===s.column&&r.line===s.line;s.type!=="rule";)if(s=s.parent,!s)return;if(!(r.props.length===1&&l.charCodeAt(0)!==58&&!xh.get(s))&&!u){xh.set(r,!0);for(var f=[],d=ix(l,f),h=s.props,y=0,p=0;y<d.length;y++)for(var S=0;S<h.length;S++,p++)r.props[p]=f[y]?d[y].replace(/&\f/g,h[S]):h[S]+" "+d[y]}}},sx=function(r){if(r.type==="decl"){var l=r.value;l.charCodeAt(0)===108&&l.charCodeAt(2)===98&&(r.return="",r.value="")}},ox="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",ux=function(r){return r.type==="comm"&&r.children.indexOf(ox)>-1},cx=function(r){return function(l,s,u){if(!(l.type!=="rule"||r.compat)){var f=l.value.match(/(:first|:nth|:nth-last)-child/g);if(f){for(var d=!!l.parent,h=d?l.parent.children:u,y=h.length-1;y>=0;y--){var p=h[y];if(p.line<l.line)break;if(p.column<l.column){if(ux(p))return;break}}f.forEach(function(S){console.error('The pseudo class "'+S+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+S.split("-child")[0]+'-of-type".')})}}}},Sh=function(r){return r.type.charCodeAt(1)===105&&r.type.charCodeAt(0)===64},fx=function(r,l){for(var s=r-1;s>=0;s--)if(!Sh(l[s]))return!0;return!1},Nh=function(r){r.type="",r.value="",r.return="",r.children="",r.props=""},dx=function(r,l,s){Sh(r)&&(r.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),Nh(r)):fx(l,s)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),Nh(r)))};function _h(n,r){switch(Y1(n,r)){case 5103:return Ze+"print-"+n+n;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Ze+n+n;case 5349:case 4246:case 4810:case 6968:case 2756:return Ze+n+bs+n+Zt+n+n;case 6828:case 4268:return Ze+n+Zt+n+n;case 6165:return Ze+n+Zt+"flex-"+n+n;case 5187:return Ze+n+Ye(n,/(\w+).+(:[^]+)/,Ze+"box-$1$2"+Zt+"flex-$1$2")+n;case 5443:return Ze+n+Zt+"flex-item-"+Ye(n,/flex-|-self/,"")+n;case 4675:return Ze+n+Zt+"flex-line-pack"+Ye(n,/align-content|flex-|-self/,"")+n;case 5548:return Ze+n+Zt+Ye(n,"shrink","negative")+n;case 5292:return Ze+n+Zt+Ye(n,"basis","preferred-size")+n;case 6060:return Ze+"box-"+Ye(n,"-grow","")+Ze+n+Zt+Ye(n,"grow","positive")+n;case 4554:return Ze+Ye(n,/([^-])(transform)/g,"$1"+Ze+"$2")+n;case 6187:return Ye(Ye(Ye(n,/(zoom-|grab)/,Ze+"$1"),/(image-set)/,Ze+"$1"),n,"")+n;case 5495:case 3959:return Ye(n,/(image-set\([^]*)/,Ze+"$1$`$1");case 4968:return Ye(Ye(n,/(.+:)(flex-)?(.*)/,Ze+"box-pack:$3"+Zt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Ze+n+n;case 4095:case 3583:case 4068:case 2532:return Ye(n,/(.+)-inline(.+)/,Ze+"$1$2")+n;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(qa(n)-1-r>6)switch(zt(n,r+1)){case 109:if(zt(n,r+4)!==45)break;case 102:return Ye(n,/(.+:)(.+)-([^]+)/,"$1"+Ze+"$2-$3$1"+bs+(zt(n,r+3)==108?"$3":"$2-$3"))+n;case 115:return~Qu(n,"stretch")?_h(Ye(n,"stretch","fill-available"),r)+n:n}break;case 4949:if(zt(n,r+1)!==115)break;case 6444:switch(zt(n,qa(n)-3-(~Qu(n,"!important")&&10))){case 107:return Ye(n,":",":"+Ze)+n;case 101:return Ye(n,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ze+(zt(n,14)===45?"inline-":"")+"box$3$1"+Ze+"$2$3$1"+Zt+"$2box$3")+n}break;case 5936:switch(zt(n,r+11)){case 114:return Ze+n+Zt+Ye(n,/[svh]\w+-[tblr]{2}/,"tb")+n;case 108:return Ze+n+Zt+Ye(n,/[svh]\w+-[tblr]{2}/,"tb-rl")+n;case 45:return Ze+n+Zt+Ye(n,/[svh]\w+-[tblr]{2}/,"lr")+n}return Ze+n+Zt+n+n}return n}var mx=function(r,l,s,u){if(r.length>-1&&!r.return)switch(r.type){case Fu:r.return=_h(r.value,r.length);break;case dh:return Zr([Ii(r,{value:Ye(r.value,"@","@"+Ze)})],u);case $u:if(r.length)return F1(r.props,function(f){switch($1(f,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Zr([Ii(r,{props:[Ye(f,/:(read-\w+)/,":"+bs+"$1")]})],u);case"::placeholder":return Zr([Ii(r,{props:[Ye(f,/:(plac\w+)/,":"+Ze+"input-$1")]}),Ii(r,{props:[Ye(f,/:(plac\w+)/,":"+bs+"$1")]}),Ii(r,{props:[Ye(f,/:(plac\w+)/,Zt+"input-$1")]})],u)}return""})}},hx=[mx],Ju;{var px=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g;Ju=function(r){var l=r.match(px);if(l)return l[l.length-1]}}var gx=function(r){var l=r.key;if(!l)throw new Error(`You have to configure \`key\` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.
85
+ If multiple caches share the same key they might "fight" for each other's style elements.`);if(l==="css"){var s=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(s,function(E){var q=E.getAttribute("data-emotion");q.indexOf(" ")!==-1&&(document.head.appendChild(E),E.setAttribute("data-s",""))})}var u=r.stylisPlugins||hx;if(/[^a-z-]/.test(l))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+l+'" was passed');var f={},d,h=[];d=r.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+l+' "]'),function(E){for(var q=E.getAttribute("data-emotion").split(" "),P=1;P<q.length;P++)f[q[P]]=!0;h.push(E)});var y,p=[lx,sx];p.push(cx({get compat(){return V.compat}}),dx);{var S,v=[tx,function(E){E.root||(E.return?S.insert(E.return):E.value&&E.type!==Yu&&S.insert(E.value+"{}"))}],D=ax(p.concat(u,v)),N=function(q){return Zr(W1(q),D)};y=function(q,P,K,ae){if(S=K,Ju){var ee=Ju(P.styles);ee&&(S={insert:function(Q){K.insert(Q+ee)}})}N(q?q+"{"+P.styles+"}":P.styles),ae&&(V.inserted[P.name]=!0)}}var V={key:l,sheet:new L1({key:l,container:d,nonce:r.nonce,speedy:r.speedy,prepend:r.prepend,insertionPoint:r.insertionPoint}),nonce:r.nonce,inserted:f,registered:{},insert:y};return V.sheet.hydrate(h),V},Iu={exports:{}},Fe={};/** @license React v16.13.1
84
86
  * react-is.production.min.js
85
87
  *
86
88
  * Copyright (c) Facebook, Inc. and its affiliates.
87
89
  *
88
90
  * This source code is licensed under the MIT license found in the
89
91
  * LICENSE file in the root directory of this source tree.
90
- */var um;function G1(){if(um)return Xe;um=1;var n=typeof Symbol=="function"&&Symbol.for,r=n?Symbol.for("react.element"):60103,l=n?Symbol.for("react.portal"):60106,s=n?Symbol.for("react.fragment"):60107,u=n?Symbol.for("react.strict_mode"):60108,f=n?Symbol.for("react.profiler"):60114,d=n?Symbol.for("react.provider"):60109,m=n?Symbol.for("react.context"):60110,y=n?Symbol.for("react.async_mode"):60111,p=n?Symbol.for("react.concurrent_mode"):60111,_=n?Symbol.for("react.forward_ref"):60112,x=n?Symbol.for("react.suspense"):60113,O=n?Symbol.for("react.suspense_list"):60120,S=n?Symbol.for("react.memo"):60115,U=n?Symbol.for("react.lazy"):60116,C=n?Symbol.for("react.block"):60121,Z=n?Symbol.for("react.fundamental"):60117,I=n?Symbol.for("react.responder"):60118,F=n?Symbol.for("react.scope"):60119;function ae(L){if(typeof L=="object"&&L!==null){var K=L.$$typeof;switch(K){case r:switch(L=L.type,L){case y:case p:case s:case f:case u:case x:return L;default:switch(L=L&&L.$$typeof,L){case m:case _:case U:case S:case d:return L;default:return K}}case l:return K}}}function te(L){return ae(L)===p}return Xe.AsyncMode=y,Xe.ConcurrentMode=p,Xe.ContextConsumer=m,Xe.ContextProvider=d,Xe.Element=r,Xe.ForwardRef=_,Xe.Fragment=s,Xe.Lazy=U,Xe.Memo=S,Xe.Portal=l,Xe.Profiler=f,Xe.StrictMode=u,Xe.Suspense=x,Xe.isAsyncMode=function(L){return te(L)||ae(L)===y},Xe.isConcurrentMode=te,Xe.isContextConsumer=function(L){return ae(L)===m},Xe.isContextProvider=function(L){return ae(L)===d},Xe.isElement=function(L){return typeof L=="object"&&L!==null&&L.$$typeof===r},Xe.isForwardRef=function(L){return ae(L)===_},Xe.isFragment=function(L){return ae(L)===s},Xe.isLazy=function(L){return ae(L)===U},Xe.isMemo=function(L){return ae(L)===S},Xe.isPortal=function(L){return ae(L)===l},Xe.isProfiler=function(L){return ae(L)===f},Xe.isStrictMode=function(L){return ae(L)===u},Xe.isSuspense=function(L){return ae(L)===x},Xe.isValidElementType=function(L){return typeof L=="string"||typeof L=="function"||L===s||L===p||L===f||L===u||L===x||L===O||typeof L=="object"&&L!==null&&(L.$$typeof===U||L.$$typeof===S||L.$$typeof===d||L.$$typeof===m||L.$$typeof===_||L.$$typeof===Z||L.$$typeof===I||L.$$typeof===F||L.$$typeof===C)},Xe.typeOf=ae,Xe}var cm;function Y1(){return cm||(cm=1,Zu.exports=G1()),Zu.exports}var Gu,fm;function $1(){if(fm)return Gu;fm=1;var n=Y1(),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},l={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},u={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},f={};f[n.ForwardRef]=s,f[n.Memo]=u;function d(U){return n.isMemo(U)?u:f[U.$$typeof]||r}var m=Object.defineProperty,y=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,_=Object.getOwnPropertyDescriptor,x=Object.getPrototypeOf,O=Object.prototype;function S(U,C,Z){if(typeof C!="string"){if(O){var I=x(C);I&&I!==O&&S(U,I,Z)}var F=y(C);p&&(F=F.concat(p(C)));for(var ae=d(U),te=d(C),L=0;L<F.length;++L){var K=F[L];if(!l[K]&&!(Z&&Z[K])&&!(te&&te[K])&&!(ae&&ae[K])){var J=_(C,K);try{m(U,K,J)}catch{}}}}return U}return Gu=S,Gu}$1();var X1=!0;function dm(n,r,l){var s="";return l.split(" ").forEach(function(u){n[u]!==void 0?r.push(n[u]+";"):u&&(s+=u+" ")}),s}var Yu=function(r,l,s){var u=r.key+"-"+l.name;(s===!1||X1===!1)&&r.registered[u]===void 0&&(r.registered[u]=l.styles)},hm=function(r,l,s){Yu(r,l,s);var u=r.key+"-"+l.name;if(r.inserted[l.name]===void 0){var f=l;do r.insert(l===f?"."+u:"",f,r.sheet,!0),f=f.next;while(f!==void 0)}};function Q1(n){for(var r=0,l,s=0,u=n.length;u>=4;++s,u-=4)l=n.charCodeAt(s)&255|(n.charCodeAt(++s)&255)<<8|(n.charCodeAt(++s)&255)<<16|(n.charCodeAt(++s)&255)<<24,l=(l&65535)*1540483477+((l>>>16)*59797<<16),l^=l>>>24,r=(l&65535)*1540483477+((l>>>16)*59797<<16)^(r&65535)*1540483477+((r>>>16)*59797<<16);switch(u){case 3:r^=(n.charCodeAt(s+2)&255)<<16;case 2:r^=(n.charCodeAt(s+1)&255)<<8;case 1:r^=n.charCodeAt(s)&255,r=(r&65535)*1540483477+((r>>>16)*59797<<16)}return r^=r>>>13,r=(r&65535)*1540483477+((r>>>16)*59797<<16),((r^r>>>15)>>>0).toString(36)}var K1={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},F1=/[A-Z]|^ms/g,J1=/_EMO_([^_]+?)_([^]*?)_EMO_/g,mm=function(r){return r.charCodeAt(1)===45},pm=function(r){return r!=null&&typeof r!="boolean"},$u=lm(function(n){return mm(n)?n:n.replace(F1,"-$&").toLowerCase()}),gm=function(r,l){switch(r){case"animation":case"animationName":if(typeof l=="string")return l.replace(J1,function(s,u,f){return Ga={name:u,styles:f,next:Ga},u})}return K1[r]!==1&&!mm(r)&&typeof l=="number"&&l!==0?l+"px":l};function Ii(n,r,l){if(l==null)return"";var s=l;if(s.__emotion_styles!==void 0)return s;switch(typeof l){case"boolean":return"";case"object":{var u=l;if(u.anim===1)return Ga={name:u.name,styles:u.styles,next:Ga},u.name;var f=l;if(f.styles!==void 0){var d=f.next;if(d!==void 0)for(;d!==void 0;)Ga={name:d.name,styles:d.styles,next:Ga},d=d.next;var m=f.styles+";";return m}return P1(n,r,l)}case"function":{if(n!==void 0){var y=Ga,p=l(n);return Ga=y,Ii(n,r,p)}break}}var _=l;if(r==null)return _;var x=r[_];return x!==void 0?x:_}function P1(n,r,l){var s="";if(Array.isArray(l))for(var u=0;u<l.length;u++)s+=Ii(n,r,l[u])+";";else for(var f in l){var d=l[f];if(typeof d!="object"){var m=d;r!=null&&r[m]!==void 0?s+=f+"{"+r[m]+"}":pm(m)&&(s+=$u(f)+":"+gm(f,m)+";")}else if(Array.isArray(d)&&typeof d[0]=="string"&&(r==null||r[d[0]]===void 0))for(var y=0;y<d.length;y++)pm(d[y])&&(s+=$u(f)+":"+gm(f,d[y])+";");else{var p=Ii(n,r,d);switch(f){case"animation":case"animationName":{s+=$u(f)+":"+p+";";break}default:s+=f+"{"+p+"}"}}}return s}var ym=/label:\s*([^\s;{]+)\s*(;|$)/g,Ga;function Ss(n,r,l){if(n.length===1&&typeof n[0]=="object"&&n[0]!==null&&n[0].styles!==void 0)return n[0];var s=!0,u="";Ga=void 0;var f=n[0];if(f==null||f.raw===void 0)s=!1,u+=Ii(l,r,f);else{var d=f;u+=d[0]}for(var m=1;m<n.length;m++)if(u+=Ii(l,r,n[m]),s){var y=f;u+=y[m]}ym.lastIndex=0;for(var p="",_;(_=ym.exec(u))!==null;)p+="-"+_[1];var x=Q1(u)+p;return{name:x,styles:u,next:Ga}}var W1=function(r){return r()},I1=lh.useInsertionEffect?lh.useInsertionEffect:!1,vm=I1||W1,bm=ge.createContext(typeof HTMLElement<"u"?Z1({key:"css"}):null);bm.Provider;var xm=function(r){return ge.forwardRef(function(l,s){var u=ge.useContext(bm);return r(l,u,s)})},_m=ge.createContext({}),Xu={}.hasOwnProperty,Qu="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",ex=function(r,l){var s={};for(var u in l)Xu.call(l,u)&&(s[u]=l[u]);return s[Qu]=r,s},tx=function(r){var l=r.cache,s=r.serialized,u=r.isStringTag;return Yu(l,s,u),vm(function(){return hm(l,s,u)}),null},ax=xm(function(n,r,l){var s=n.css;typeof s=="string"&&r.registered[s]!==void 0&&(s=r.registered[s]);var u=n[Qu],f=[s],d="";typeof n.className=="string"?d=dm(r.registered,f,n.className):n.className!=null&&(d=n.className+" ");var m=Ss(f,void 0,ge.useContext(_m));d+=r.key+"-"+m.name;var y={};for(var p in n)Xu.call(n,p)&&p!=="css"&&p!==Qu&&(y[p]=n[p]);return y.className=d,l&&(y.ref=l),ge.createElement(ge.Fragment,null,ge.createElement(tx,{cache:r,serialized:m,isStringTag:typeof u=="string"}),ge.createElement(u,y))}),nx=ax,Sm=function(r,l){var s=arguments;if(l==null||!Xu.call(l,"css"))return ge.createElement.apply(void 0,s);var u=s.length,f=new Array(u);f[0]=nx,f[1]=ex(r,l);for(var d=2;d<u;d++)f[d]=s[d];return ge.createElement.apply(null,f)};(function(n){var r;r||(r=n.JSX||(n.JSX={}))})(Sm||(Sm={}));function Ku(){for(var n=arguments.length,r=new Array(n),l=0;l<n;l++)r[l]=arguments[l];return Ss(r)}function wm(){var n=Ku.apply(void 0,arguments),r="animation-"+n.name;return{name:r,styles:"@keyframes "+r+"{"+n.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var rx=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,ix=lm(function(n){return rx.test(n)||n.charCodeAt(0)===111&&n.charCodeAt(1)===110&&n.charCodeAt(2)<91}),lx=ix,sx=function(r){return r!=="theme"},Am=function(r){return typeof r=="string"&&r.charCodeAt(0)>96?lx:sx},Cm=function(r,l,s){var u;if(l){var f=l.shouldForwardProp;u=r.__emotion_forwardProp&&f?function(d){return r.__emotion_forwardProp(d)&&f(d)}:f}return typeof u!="function"&&s&&(u=r.__emotion_forwardProp),u},ox=function(r){var l=r.cache,s=r.serialized,u=r.isStringTag;return Yu(l,s,u),vm(function(){return hm(l,s,u)}),null},ux=function n(r,l){var s=r.__emotion_real===r,u=s&&r.__emotion_base||r,f,d;l!==void 0&&(f=l.label,d=l.target);var m=Cm(r,l,s),y=m||Am(u),p=!y("as");return function(){var _=arguments,x=s&&r.__emotion_styles!==void 0?r.__emotion_styles.slice(0):[];if(f!==void 0&&x.push("label:"+f+";"),_[0]==null||_[0].raw===void 0)x.push.apply(x,_);else{var O=_[0];x.push(O[0]);for(var S=_.length,U=1;U<S;U++)x.push(_[U],O[U])}var C=xm(function(Z,I,F){var ae=p&&Z.as||u,te="",L=[],K=Z;if(Z.theme==null){K={};for(var J in Z)K[J]=Z[J];K.theme=ge.useContext(_m)}typeof Z.className=="string"?te=dm(I.registered,L,Z.className):Z.className!=null&&(te=Z.className+" ");var we=Ss(x.concat(L),I.registered,K);te+=I.key+"-"+we.name,d!==void 0&&(te+=" "+d);var je=p&&m===void 0?Am(ae):y,Ie={};for(var ve in Z)p&&ve==="as"||je(ve)&&(Ie[ve]=Z[ve]);return Ie.className=te,F&&(Ie.ref=F),ge.createElement(ge.Fragment,null,ge.createElement(ox,{cache:I,serialized:we,isStringTag:typeof ae=="string"}),ge.createElement(ae,Ie))});return C.displayName=f!==void 0?f:"Styled("+(typeof u=="string"?u:u.displayName||u.name||"Component")+")",C.defaultProps=r.defaultProps,C.__emotion_real=C,C.__emotion_base=u,C.__emotion_styles=x,C.__emotion_forwardProp=m,Object.defineProperty(C,"toString",{value:function(){return"."+d}}),C.withComponent=function(Z,I){var F=n(Z,Uu({},l,I,{shouldForwardProp:Cm(C,I,!0)}));return F.apply(void 0,x)},C}},cx=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],Fu=ux.bind(null);cx.forEach(function(n){Fu[n]=Fu(n)});function fx(n,r){return Fu(n,r)}function dx(n,r){Array.isArray(n.__emotion_styles)&&(n.__emotion_styles=r(n.__emotion_styles))}const Tm=[];function or(n){return Tm[0]=n,Ss(Tm)}var Ju={exports:{}},We={};/**
92
+ */var Ch;function yx(){if(Ch)return Fe;Ch=1;var n=typeof Symbol=="function"&&Symbol.for,r=n?Symbol.for("react.element"):60103,l=n?Symbol.for("react.portal"):60106,s=n?Symbol.for("react.fragment"):60107,u=n?Symbol.for("react.strict_mode"):60108,f=n?Symbol.for("react.profiler"):60114,d=n?Symbol.for("react.provider"):60109,h=n?Symbol.for("react.context"):60110,y=n?Symbol.for("react.async_mode"):60111,p=n?Symbol.for("react.concurrent_mode"):60111,S=n?Symbol.for("react.forward_ref"):60112,v=n?Symbol.for("react.suspense"):60113,D=n?Symbol.for("react.suspense_list"):60120,N=n?Symbol.for("react.memo"):60115,V=n?Symbol.for("react.lazy"):60116,E=n?Symbol.for("react.block"):60121,q=n?Symbol.for("react.fundamental"):60117,P=n?Symbol.for("react.responder"):60118,K=n?Symbol.for("react.scope"):60119;function ae(U){if(typeof U=="object"&&U!==null){var Q=U.$$typeof;switch(Q){case r:switch(U=U.type,U){case y:case p:case s:case f:case u:case v:return U;default:switch(U=U&&U.$$typeof,U){case h:case S:case V:case N:case d:return U;default:return Q}}case l:return Q}}}function ee(U){return ae(U)===p}return Fe.AsyncMode=y,Fe.ConcurrentMode=p,Fe.ContextConsumer=h,Fe.ContextProvider=d,Fe.Element=r,Fe.ForwardRef=S,Fe.Fragment=s,Fe.Lazy=V,Fe.Memo=N,Fe.Portal=l,Fe.Profiler=f,Fe.StrictMode=u,Fe.Suspense=v,Fe.isAsyncMode=function(U){return ee(U)||ae(U)===y},Fe.isConcurrentMode=ee,Fe.isContextConsumer=function(U){return ae(U)===h},Fe.isContextProvider=function(U){return ae(U)===d},Fe.isElement=function(U){return typeof U=="object"&&U!==null&&U.$$typeof===r},Fe.isForwardRef=function(U){return ae(U)===S},Fe.isFragment=function(U){return ae(U)===s},Fe.isLazy=function(U){return ae(U)===V},Fe.isMemo=function(U){return ae(U)===N},Fe.isPortal=function(U){return ae(U)===l},Fe.isProfiler=function(U){return ae(U)===f},Fe.isStrictMode=function(U){return ae(U)===u},Fe.isSuspense=function(U){return ae(U)===v},Fe.isValidElementType=function(U){return typeof U=="string"||typeof U=="function"||U===s||U===p||U===f||U===u||U===v||U===D||typeof U=="object"&&U!==null&&(U.$$typeof===V||U.$$typeof===N||U.$$typeof===d||U.$$typeof===h||U.$$typeof===S||U.$$typeof===q||U.$$typeof===P||U.$$typeof===K||U.$$typeof===E)},Fe.typeOf=ae,Fe}var Eh;function bx(){return Eh||(Eh=1,Iu.exports=yx()),Iu.exports}var Pu,wh;function vx(){if(wh)return Pu;wh=1;var n=bx(),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},l={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},u={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},f={};f[n.ForwardRef]=s,f[n.Memo]=u;function d(V){return n.isMemo(V)?u:f[V.$$typeof]||r}var h=Object.defineProperty,y=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,S=Object.getOwnPropertyDescriptor,v=Object.getPrototypeOf,D=Object.prototype;function N(V,E,q){if(typeof E!="string"){if(D){var P=v(E);P&&P!==D&&N(V,P,q)}var K=y(E);p&&(K=K.concat(p(E)));for(var ae=d(V),ee=d(E),U=0;U<K.length;++U){var Q=K[U];if(!l[Q]&&!(q&&q[Q])&&!(ee&&ee[Q])&&!(ae&&ae[Q])){var J=S(E,Q);try{h(V,Q,J)}catch{}}}}return V}return Pu=N,Pu}vx();var xx=!0;function Wu(n,r,l){var s="";return l.split(" ").forEach(function(u){n[u]!==void 0?r.push(n[u]+";"):u&&(s+=u+" ")}),s}var ws=function(r,l,s){var u=r.key+"-"+l.name;(s===!1||xx===!1)&&r.registered[u]===void 0&&(r.registered[u]=l.styles)},Ds=function(r,l,s){ws(r,l,s);var u=r.key+"-"+l.name;if(r.inserted[l.name]===void 0){var f=l;do r.insert(l===f?"."+u:"",f,r.sheet,!0),f=f.next;while(f!==void 0)}};function Sx(n){for(var r=0,l,s=0,u=n.length;u>=4;++s,u-=4)l=n.charCodeAt(s)&255|(n.charCodeAt(++s)&255)<<8|(n.charCodeAt(++s)&255)<<16|(n.charCodeAt(++s)&255)<<24,l=(l&65535)*1540483477+((l>>>16)*59797<<16),l^=l>>>24,r=(l&65535)*1540483477+((l>>>16)*59797<<16)^(r&65535)*1540483477+((r>>>16)*59797<<16);switch(u){case 3:r^=(n.charCodeAt(s+2)&255)<<16;case 2:r^=(n.charCodeAt(s+1)&255)<<8;case 1:r^=n.charCodeAt(s)&255,r=(r&65535)*1540483477+((r>>>16)*59797<<16)}return r^=r>>>13,r=(r&65535)*1540483477+((r>>>16)*59797<<16),((r^r>>>15)>>>0).toString(36)}var Nx={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},_x=!0,Dh=`You have illegal escape sequence in your template literal, most likely inside content's property value.
93
+ Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';".
94
+ You can read more about this here:
95
+ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,Cx="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",Ex=/[A-Z]|^ms/g,Ah=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ec=function(r){return r.charCodeAt(1)===45},Th=function(r){return r!=null&&typeof r!="boolean"},tc=vh(function(n){return ec(n)?n:n.replace(Ex,"-$&").toLowerCase()}),As=function(r,l){switch(r){case"animation":case"animationName":if(typeof l=="string")return l.replace(Ah,function(s,u,f){return Za={name:u,styles:f,next:Za},u})}return Nx[r]!==1&&!ec(r)&&typeof l=="number"&&l!==0?l+"px":l};{var wx=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,Dx=["normal","none","initial","inherit","unset"],Ax=As,Tx=/^-ms-/,Ox=/-(.)/g,Oh={};As=function(r,l){if(r==="content"&&(typeof l!="string"||Dx.indexOf(l)===-1&&!wx.test(l)&&(l.charAt(0)!==l.charAt(l.length-1)||l.charAt(0)!=='"'&&l.charAt(0)!=="'")))throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+l+"\"'`");var s=Ax(r,l);return s!==""&&!ec(r)&&r.indexOf("-")!==-1&&Oh[r]===void 0&&(Oh[r]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+r.replace(Tx,"ms-").replace(Ox,function(u,f){return f.toUpperCase()})+"?")),s}}var Rh="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function el(n,r,l){if(l==null)return"";var s=l;if(s.__emotion_styles!==void 0){if(String(s)==="NO_COMPONENT_SELECTOR")throw new Error(Rh);return s}switch(typeof l){case"boolean":return"";case"object":{var u=l;if(u.anim===1)return Za={name:u.name,styles:u.styles,next:Za},u.name;var f=l;if(f.styles!==void 0){var d=f.next;if(d!==void 0)for(;d!==void 0;)Za={name:d.name,styles:d.styles,next:Za},d=d.next;var h=f.styles+";";return h}return Rx(n,r,l)}case"function":{if(n!==void 0){var y=Za,p=l(n);return Za=y,el(n,r,p)}else console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");break}case"string":{var S=[],v=l.replace(Ah,function(V,E,q){var P="animation"+S.length;return S.push("const "+P+" = keyframes`"+q.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+P+"}"});S.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(S,["`"+v+"`"]).join(`
96
+ `)+`
97
+
98
+ You should wrap it with \`css\` like this:
99
+
100
+ css\``+v+"`")}break}var D=l;if(r==null)return D;var N=r[D];return N!==void 0?N:D}function Rx(n,r,l){var s="";if(Array.isArray(l))for(var u=0;u<l.length;u++)s+=el(n,r,l[u])+";";else for(var f in l){var d=l[f];if(typeof d!="object"){var h=d;r!=null&&r[h]!==void 0?s+=f+"{"+r[h]+"}":Th(h)&&(s+=tc(f)+":"+As(f,h)+";")}else{if(f==="NO_COMPONENT_SELECTOR"&&_x)throw new Error(Rh);if(Array.isArray(d)&&typeof d[0]=="string"&&(r==null||r[d[0]]===void 0))for(var y=0;y<d.length;y++)Th(d[y])&&(s+=tc(f)+":"+As(f,d[y])+";");else{var p=el(n,r,d);switch(f){case"animation":case"animationName":{s+=tc(f)+":"+p+";";break}default:f==="undefined"&&console.error(Cx),s+=f+"{"+p+"}"}}}}return s}var Mh=/label:\s*([^\s;{]+)\s*(;|$)/g,Za;function or(n,r,l){if(n.length===1&&typeof n[0]=="object"&&n[0]!==null&&n[0].styles!==void 0)return n[0];var s=!0,u="";Za=void 0;var f=n[0];if(f==null||f.raw===void 0)s=!1,u+=el(l,r,f);else{var d=f;d[0]===void 0&&console.error(Dh),u+=d[0]}for(var h=1;h<n.length;h++)if(u+=el(l,r,n[h]),s){var y=f;y[h]===void 0&&console.error(Dh),u+=y[h]}Mh.lastIndex=0;for(var p="",S;(S=Mh.exec(u))!==null;)p+="-"+S[1];var v=Sx(u)+p;{var D={name:v,styles:u,next:Za,toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}};return D}}var Mx=function(r){return r()},zh=xm.useInsertionEffect?xm.useInsertionEffect:!1,ac=zh||Mx,kh=zh||pe.useLayoutEffect,nc=pe.createContext(typeof HTMLElement<"u"?gx({key:"css"}):null);nc.displayName="EmotionCacheContext",nc.Provider;var Ts=function(r){return pe.forwardRef(function(l,s){var u=pe.useContext(nc);return r(l,u,s)})},tl=pe.createContext({});tl.displayName="EmotionThemeContext";var rc={}.hasOwnProperty,jh=function(r){var l=r.split(".");return l[l.length-1]},zx=function(r){var l=/^\s+at\s+([A-Za-z0-9$.]+)\s/.exec(r);if(l||(l=/^([A-Za-z0-9$.]+)@/.exec(r),l))return jh(l[1])},kx=new Set(["renderWithHooks","processChild","finishClassComponent","renderToString"]),jx=function(r){return r.replace(/\$/g,"-")},Vx=function(r){if(r)for(var l=r.split(`
101
+ `),s=0;s<l.length;s++){var u=zx(l[s]);if(u){if(kx.has(u))break;if(/^[A-Z]/.test(u))return jx(u)}}},ic="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",lc="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",Bx=function(r,l){if(typeof l.css=="string"&&l.css.indexOf(":")!==-1)throw new Error("Strings are not allowed as css prop values, please wrap it in a css template literal from '@emotion/react' like this: css`"+l.css+"`");var s={};for(var u in l)rc.call(l,u)&&(s[u]=l[u]);if(s[ic]=r,typeof globalThis<"u"&&globalThis.EMOTION_RUNTIME_AUTO_LABEL&&l.css&&(typeof l.css!="object"||!("name"in l.css)||typeof l.css.name!="string"||l.css.name.indexOf("-")===-1)){var f=Vx(new Error().stack);f&&(s[lc]=f)}return s},Ux=function(r){var l=r.cache,s=r.serialized,u=r.isStringTag;return ws(l,s,u),ac(function(){return Ds(l,s,u)}),null},Vh=Ts(function(n,r,l){var s=n.css;typeof s=="string"&&r.registered[s]!==void 0&&(s=r.registered[s]);var u=n[ic],f=[s],d="";typeof n.className=="string"?d=Wu(r.registered,f,n.className):n.className!=null&&(d=n.className+" ");var h=or(f,void 0,pe.useContext(tl));if(h.name.indexOf("-")===-1){var y=n[lc];y&&(h=or([h,"label:"+y+";"]))}d+=r.key+"-"+h.name;var p={};for(var S in n)rc.call(n,S)&&S!=="css"&&S!==ic&&S!==lc&&(p[S]=n[S]);return p.className=d,l&&(p.ref=l),pe.createElement(pe.Fragment,null,pe.createElement(Ux,{cache:r,serialized:h,isStringTag:typeof u=="string"}),pe.createElement(u,p))});Vh.displayName="EmotionCssPropInternal";var Lx=Vh,Bh=!0,Hx={version:"11.14.0"},Uh=function(r,l){var s=arguments;if(l==null||!rc.call(l,"css"))return pe.createElement.apply(void 0,s);var u=s.length,f=new Array(u);f[0]=Lx,f[1]=Bx(r,l);for(var d=2;d<u;d++)f[d]=s[d];return pe.createElement.apply(null,f)};(function(n){var r;r||(r=n.JSX||(n.JSX={}))})(Uh||(Uh={}));var Lh=!1,qx=Ts(function(n,r){!Lh&&("className"in n&&n.className||"css"in n&&n.css)&&(console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?"),Lh=!0);var l=n.styles,s=or([l],void 0,pe.useContext(tl)),u=pe.useRef();return kh(function(){var f=r.key+"-global",d=new r.sheet.constructor({key:f,nonce:r.sheet.nonce,container:r.sheet.container,speedy:r.sheet.isSpeedy}),h=!1,y=document.querySelector('style[data-emotion="'+f+" "+s.name+'"]');return r.sheet.tags.length&&(d.before=r.sheet.tags[0]),y!==null&&(h=!0,y.setAttribute("data-emotion",f),d.hydrate([y])),u.current=[d,h],function(){d.flush()}},[r]),kh(function(){var f=u.current,d=f[0],h=f[1];if(h){f[1]=!1;return}if(s.next!==void 0&&Ds(r,s.next,!0),d.tags.length){var y=d.tags[d.tags.length-1].nextElementSibling;d.before=y,d.flush()}r.insert("",s,d,!1)},[r,s.name]),null});qx.displayName="EmotionGlobal";function sc(){for(var n=arguments.length,r=new Array(n),l=0;l<n;l++)r[l]=arguments[l];return or(r)}function Hh(){var n=sc.apply(void 0,arguments),r="animation-"+n.name;return{name:r,styles:"@keyframes "+r+"{"+n.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var Gx=function n(r){for(var l=r.length,s=0,u="";s<l;s++){var f=r[s];if(f!=null){var d=void 0;switch(typeof f){case"boolean":break;case"object":{if(Array.isArray(f))d=n(f);else{f.styles!==void 0&&f.name!==void 0&&console.error("You have passed styles created with `css` from `@emotion/react` package to the `cx`.\n`cx` is meant to compose class names (strings) so you should convert those styles to a class name by passing them to the `css` received from <ClassNames/> component."),d="";for(var h in f)f[h]&&h&&(d&&(d+=" "),d+=h)}break}default:d=f}d&&(u&&(u+=" "),u+=d)}}return u};function Zx(n,r,l){var s=[],u=Wu(n,s,l);return s.length<2?l:u+r(s)}var Yx=function(r){var l=r.cache,s=r.serializedArr;return ac(function(){for(var u=0;u<s.length;u++)Ds(l,s[u],!1)}),null},$x=Ts(function(n,r){var l=!1,s=[],u=function(){if(l&&Bh)throw new Error("css can only be used during render");for(var p=arguments.length,S=new Array(p),v=0;v<p;v++)S[v]=arguments[v];var D=or(S,r.registered);return s.push(D),ws(r,D,!1),r.key+"-"+D.name},f=function(){if(l&&Bh)throw new Error("cx can only be used during render");for(var p=arguments.length,S=new Array(p),v=0;v<p;v++)S[v]=arguments[v];return Zx(r.registered,u,Gx(S))},d={css:u,cx:f,theme:pe.useContext(tl)},h=n.children(d);return l=!0,pe.createElement(pe.Fragment,null,pe.createElement(Yx,{cache:r,serializedArr:s}),h)});$x.displayName="EmotionClassNames";{var qh=typeof document<"u",Fx=typeof jest<"u"||typeof vi<"u";if(qh&&!Fx){var Gh=typeof globalThis<"u"?globalThis:qh?window:global,Zh="__EMOTION_REACT_"+Hx.version.split(".")[0]+"__";Gh[Zh]&&console.warn("You are loading @emotion/react when it is already loaded. Running multiple instances may cause problems. This can happen if multiple versions are used, or if multiple builds of the same version are used."),Gh[Zh]=!0}}var Qx=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Xx=vh(function(n){return Qx.test(n)||n.charCodeAt(0)===111&&n.charCodeAt(1)===110&&n.charCodeAt(2)<91}),Kx=!0,Jx=Xx,Ix=function(r){return r!=="theme"},Yh=function(r){return typeof r=="string"&&r.charCodeAt(0)>96?Jx:Ix},$h=function(r,l,s){var u;if(l){var f=l.shouldForwardProp;u=r.__emotion_forwardProp&&f?function(d){return r.__emotion_forwardProp(d)&&f(d)}:f}return typeof u!="function"&&s&&(u=r.__emotion_forwardProp),u},Fh=`You have illegal escape sequence in your template literal, most likely inside content's property value.
102
+ Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';".
103
+ You can read more about this here:
104
+ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,Px=function(r){var l=r.cache,s=r.serialized,u=r.isStringTag;return ws(l,s,u),ac(function(){return Ds(l,s,u)}),null},Wx=function n(r,l){if(r===void 0)throw new Error(`You are trying to create a styled element with an undefined component.
105
+ You may have forgotten to import it.`);var s=r.__emotion_real===r,u=s&&r.__emotion_base||r,f,d;l!==void 0&&(f=l.label,d=l.target);var h=$h(r,l,s),y=h||Yh(u),p=!y("as");return function(){var S=arguments,v=s&&r.__emotion_styles!==void 0?r.__emotion_styles.slice(0):[];if(f!==void 0&&v.push("label:"+f+";"),S[0]==null||S[0].raw===void 0)v.push.apply(v,S);else{var D=S[0];D[0]===void 0&&console.error(Fh),v.push(D[0]);for(var N=S.length,V=1;V<N;V++)D[V]===void 0&&console.error(Fh),v.push(S[V],D[V])}var E=Ts(function(q,P,K){var ae=p&&q.as||u,ee="",U=[],Q=q;if(q.theme==null){Q={};for(var J in q)Q[J]=q[J];Q.theme=pe.useContext(tl)}typeof q.className=="string"?ee=Wu(P.registered,U,q.className):q.className!=null&&(ee=q.className+" ");var _e=or(v.concat(U),P.registered,Q);ee+=P.key+"-"+_e.name,d!==void 0&&(ee+=" "+d);var Me=p&&h===void 0?Yh(ae):y,We={};for(var be in q)p&&be==="as"||Me(be)&&(We[be]=q[be]);return We.className=ee,K&&(We.ref=K),pe.createElement(pe.Fragment,null,pe.createElement(Px,{cache:P,serialized:_e,isStringTag:typeof ae=="string"}),pe.createElement(ae,We))});return E.displayName=f!==void 0?f:"Styled("+(typeof u=="string"?u:u.displayName||u.name||"Component")+")",E.defaultProps=r.defaultProps,E.__emotion_real=E,E.__emotion_base=u,E.__emotion_styles=v,E.__emotion_forwardProp=h,Object.defineProperty(E,"toString",{value:function(){return d===void 0&&Kx?"NO_COMPONENT_SELECTOR":"."+d}}),E.withComponent=function(q,P){var K=n(q,Zu({},l,P,{shouldForwardProp:$h(E,P,!0)}));return K.apply(void 0,v)},E}},eS=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],oc=Wx.bind(null);eS.forEach(function(n){oc[n]=oc(n)});var uc={exports:{}},al={};/**
106
+ * @license React
107
+ * react-jsx-runtime.production.js
108
+ *
109
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
110
+ *
111
+ * This source code is licensed under the MIT license found in the
112
+ * LICENSE file in the root directory of this source tree.
113
+ */var Qh;function tS(){if(Qh)return al;Qh=1;var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function l(s,u,f){var d=null;if(f!==void 0&&(d=""+f),u.key!==void 0&&(d=""+u.key),"key"in u){f={};for(var h in u)h!=="key"&&(f[h]=u[h])}else f=u;return u=f.ref,{$$typeof:n,type:s,key:d,ref:u!==void 0?u:null,props:f}}return al.Fragment=r,al.jsx=l,al.jsxs=l,al}var Xh;function aS(){return Xh||(Xh=1,uc.exports=tS()),uc.exports}var nS=aS();function rS(n,r){return oc(n,r)}function iS(n,r){Array.isArray(n.__emotion_styles)&&(n.__emotion_styles=r(n.__emotion_styles))}const Kh=[];function ur(n){return Kh[0]=n,or(Kh)}var cc={exports:{}},Pe={};/**
91
114
  * @license React
92
115
  * react-is.production.js
93
116
  *
@@ -95,14 +118,14 @@ Error generating stack: `+i.message+`
95
118
  *
96
119
  * This source code is licensed under the MIT license found in the
97
120
  * LICENSE file in the root directory of this source tree.
98
- */var Em;function hx(){if(Em)return We;Em=1;var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),d=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),_=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),O=Symbol.for("react.view_transition"),S=Symbol.for("react.client.reference");function U(C){if(typeof C=="object"&&C!==null){var Z=C.$$typeof;switch(Z){case n:switch(C=C.type,C){case l:case u:case s:case y:case p:case O:return C;default:switch(C=C&&C.$$typeof,C){case d:case m:case x:case _:return C;case f:return C;default:return Z}}case r:return Z}}}return We.ContextConsumer=f,We.ContextProvider=d,We.Element=n,We.ForwardRef=m,We.Fragment=l,We.Lazy=x,We.Memo=_,We.Portal=r,We.Profiler=u,We.StrictMode=s,We.Suspense=y,We.SuspenseList=p,We.isContextConsumer=function(C){return U(C)===f},We.isContextProvider=function(C){return U(C)===d},We.isElement=function(C){return typeof C=="object"&&C!==null&&C.$$typeof===n},We.isForwardRef=function(C){return U(C)===m},We.isFragment=function(C){return U(C)===l},We.isLazy=function(C){return U(C)===x},We.isMemo=function(C){return U(C)===_},We.isPortal=function(C){return U(C)===r},We.isProfiler=function(C){return U(C)===u},We.isStrictMode=function(C){return U(C)===s},We.isSuspense=function(C){return U(C)===y},We.isSuspenseList=function(C){return U(C)===p},We.isValidElementType=function(C){return typeof C=="string"||typeof C=="function"||C===l||C===u||C===s||C===y||C===p||typeof C=="object"&&C!==null&&(C.$$typeof===x||C.$$typeof===_||C.$$typeof===d||C.$$typeof===f||C.$$typeof===m||C.$$typeof===S||C.getModuleId!==void 0)},We.typeOf=U,We}var Om;function mx(){return Om||(Om=1,Ju.exports=hx()),Ju.exports}var zm=mx();function en(n){if(typeof n!="object"||n===null)return!1;const r=Object.getPrototypeOf(n);return(r===null||r===Object.prototype||Object.getPrototypeOf(r)===null)&&!(Symbol.toStringTag in n)&&!(Symbol.iterator in n)}function Nm(n){if(ge.isValidElement(n)||zm.isValidElementType(n)||!en(n))return n;const r={};return Object.keys(n).forEach(l=>{r[l]=Nm(n[l])}),r}function oa(n,r,l={clone:!0}){const s=l.clone?{...n}:n;return en(n)&&en(r)&&Object.keys(r).forEach(u=>{ge.isValidElement(r[u])||zm.isValidElementType(r[u])?s[u]=r[u]:en(r[u])&&Object.prototype.hasOwnProperty.call(n,u)&&en(n[u])?s[u]=oa(n[u],r[u],l):l.clone?s[u]=en(r[u])?Nm(r[u]):r[u]:s[u]=r[u]}),s}const px=n=>{const r=Object.keys(n).map(l=>({key:l,val:n[l]}))||[];return r.sort((l,s)=>l.val-s.val),r.reduce((l,s)=>({...l,[s.key]:s.val}),{})};function gx(n){const{values:r={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:l="px",step:s=5,...u}=n,f=px(r),d=Object.keys(f);function m(O){return`@media (min-width:${typeof r[O]=="number"?r[O]:O}${l})`}function y(O){return`@media (max-width:${(typeof r[O]=="number"?r[O]:O)-s/100}${l})`}function p(O,S){const U=d.indexOf(S);return`@media (min-width:${typeof r[O]=="number"?r[O]:O}${l}) and (max-width:${(U!==-1&&typeof r[d[U]]=="number"?r[d[U]]:S)-s/100}${l})`}function _(O){return d.indexOf(O)+1<d.length?p(O,d[d.indexOf(O)+1]):m(O)}function x(O){const S=d.indexOf(O);return S===0?m(d[1]):S===d.length-1?y(d[S]):p(O,d[d.indexOf(O)+1]).replace("@media","@media not all and")}return{keys:d,values:f,up:m,down:y,between:p,only:_,not:x,unit:l,...u}}function km(n,r){if(!n.containerQueries)return r;const l=Object.keys(r).filter(s=>s.startsWith("@container")).sort((s,u)=>{var d,m;const f=/min-width:\s*([0-9.]+)/;return+(((d=s.match(f))==null?void 0:d[1])||0)-+(((m=u.match(f))==null?void 0:m[1])||0)});return l.length?l.reduce((s,u)=>{const f=r[u];return delete s[u],s[u]=f,s},{...r}):r}function yx(n,r){return r==="@"||r.startsWith("@")&&(n.some(l=>r.startsWith(`@${l}`))||!!r.match(/^@\d/))}function vx(n,r){const l=r.match(/^@([^/]+)?\/?(.+)?$/);if(!l)return null;const[,s,u]=l,f=Number.isNaN(+s)?s||0:+s;return n.containerQueries(u).up(f)}function bx(n){const r=(f,d)=>f.replace("@media",d?`@container ${d}`:"@container");function l(f,d){f.up=(...m)=>r(n.breakpoints.up(...m),d),f.down=(...m)=>r(n.breakpoints.down(...m),d),f.between=(...m)=>r(n.breakpoints.between(...m),d),f.only=(...m)=>r(n.breakpoints.only(...m),d),f.not=(...m)=>{const y=r(n.breakpoints.not(...m),d);return y.includes("not all and")?y.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):y}}const s={},u=f=>(l(s,f),s);return l(u),{...n,containerQueries:u}}const xx={borderRadius:4};function el(n,r){return r?oa(n,r,{clone:!1}):n}const ws={xs:0,sm:600,md:900,lg:1200,xl:1536},jm={keys:["xs","sm","md","lg","xl"],up:n=>`@media (min-width:${ws[n]}px)`},_x={containerQueries:n=>({up:r=>{let l=typeof r=="number"?r:ws[r]||r;return typeof l=="number"&&(l=`${l}px`),n?`@container ${n} (min-width:${l})`:`@container (min-width:${l})`}})};function tn(n,r,l){const s=n.theme||{};if(Array.isArray(r)){const f=s.breakpoints||jm;return r.reduce((d,m,y)=>(d[f.up(f.keys[y])]=l(r[y]),d),{})}if(typeof r=="object"){const f=s.breakpoints||jm;return Object.keys(r).reduce((d,m)=>{if(yx(f.keys,m)){const y=vx(s.containerQueries?s:_x,m);y&&(d[y]=l(r[m],m))}else if(Object.keys(f.values||ws).includes(m)){const y=f.up(m);d[y]=l(r[m],m)}else{const y=m;d[y]=r[y]}return d},{})}return l(r)}function Sx(n={}){var l;return((l=n.keys)==null?void 0:l.reduce((s,u)=>{const f=n.up(u);return s[f]={},s},{}))||{}}function Mm(n,r){return n.reduce((l,s)=>{const u=l[s];return(!u||Object.keys(u).length===0)&&delete l[s],l},r)}function Rm(n){if(typeof n!="string")throw new Error(sr(7));return n.charAt(0).toUpperCase()+n.slice(1)}function As(n,r,l=!0){if(!r||typeof r!="string")return null;if(n&&n.vars&&l){const s=`vars.${r}`.split(".").reduce((u,f)=>u&&u[f]?u[f]:null,n);if(s!=null)return s}return r.split(".").reduce((s,u)=>s&&s[u]!=null?s[u]:null,n)}function Cs(n,r,l,s=l){let u;return typeof n=="function"?u=n(l):Array.isArray(n)?u=n[l]||s:u=As(n,l)||s,r&&(u=r(u,s,n)),u}function yt(n){const{prop:r,cssProperty:l=n.prop,themeKey:s,transform:u}=n,f=d=>{if(d[r]==null)return null;const m=d[r],y=d.theme,p=As(y,s)||{};return tn(d,m,x=>{let O=Cs(p,u,x);return x===O&&typeof x=="string"&&(O=Cs(p,u,`${r}${x==="default"?"":Rm(x)}`,x)),l===!1?O:{[l]:O}})};return f.propTypes={},f.filterProps=[r],f}function wx(n){const r={};return l=>(r[l]===void 0&&(r[l]=n(l)),r[l])}const Ax={m:"margin",p:"padding"},Cx={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Dm={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Tx=wx(n=>{if(n.length>2)if(Dm[n])n=Dm[n];else return[n];const[r,l]=n.split(""),s=Ax[r],u=Cx[l]||"";return Array.isArray(u)?u.map(f=>s+f):[s+u]}),Pu=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Wu=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Pu,...Wu];function tl(n,r,l,s){const u=As(n,r,!0)??l;return typeof u=="number"||typeof u=="string"?f=>typeof f=="string"?f:typeof u=="string"?u.startsWith("var(")&&f===0?0:u.startsWith("var(")&&f===1?u:`calc(${f} * ${u})`:u*f:Array.isArray(u)?f=>{if(typeof f=="string")return f;const d=Math.abs(f),m=u[d];return f>=0?m:typeof m=="number"?-m:typeof m=="string"&&m.startsWith("var(")?`calc(-1 * ${m})`:`-${m}`}:typeof u=="function"?u:()=>{}}function Iu(n){return tl(n,"spacing",8)}function al(n,r){return typeof r=="string"||r==null?r:n(r)}function Ex(n,r){return l=>n.reduce((s,u)=>(s[u]=al(r,l),s),{})}function Ox(n,r,l,s){if(!r.includes(l))return null;const u=Tx(l),f=Ex(u,s),d=n[l];return tn(n,d,f)}function Um(n,r){const l=Iu(n.theme);return Object.keys(n).map(s=>Ox(n,r,s,l)).reduce(el,{})}function dt(n){return Um(n,Pu)}dt.propTypes={},dt.filterProps=Pu;function ht(n){return Um(n,Wu)}ht.propTypes={},ht.filterProps=Wu;function Bm(n=8,r=Iu({spacing:n})){if(n.mui)return n;const l=(...s)=>(s.length===0?[1]:s).map(f=>{const d=r(f);return typeof d=="number"?`${d}px`:d}).join(" ");return l.mui=!0,l}function Ts(...n){const r=n.reduce((s,u)=>(u.filterProps.forEach(f=>{s[f]=u}),s),{}),l=s=>Object.keys(s).reduce((u,f)=>r[f]?el(u,r[f](s)):u,{});return l.propTypes={},l.filterProps=n.reduce((s,u)=>s.concat(u.filterProps),[]),l}function va(n){return typeof n!="number"?n:`${n}px solid`}function ba(n,r){return yt({prop:n,themeKey:"borders",transform:r})}const zx=ba("border",va),Nx=ba("borderTop",va),kx=ba("borderRight",va),jx=ba("borderBottom",va),Mx=ba("borderLeft",va),Rx=ba("borderColor"),Dx=ba("borderTopColor"),Ux=ba("borderRightColor"),Bx=ba("borderBottomColor"),Lx=ba("borderLeftColor"),Vx=ba("outline",va),Hx=ba("outlineColor"),Es=n=>{if(n.borderRadius!==void 0&&n.borderRadius!==null){const r=tl(n.theme,"shape.borderRadius",4),l=s=>({borderRadius:al(r,s)});return tn(n,n.borderRadius,l)}return null};Es.propTypes={},Es.filterProps=["borderRadius"],Ts(zx,Nx,kx,jx,Mx,Rx,Dx,Ux,Bx,Lx,Es,Vx,Hx);const Os=n=>{if(n.gap!==void 0&&n.gap!==null){const r=tl(n.theme,"spacing",8),l=s=>({gap:al(r,s)});return tn(n,n.gap,l)}return null};Os.propTypes={},Os.filterProps=["gap"];const zs=n=>{if(n.columnGap!==void 0&&n.columnGap!==null){const r=tl(n.theme,"spacing",8),l=s=>({columnGap:al(r,s)});return tn(n,n.columnGap,l)}return null};zs.propTypes={},zs.filterProps=["columnGap"];const Ns=n=>{if(n.rowGap!==void 0&&n.rowGap!==null){const r=tl(n.theme,"spacing",8),l=s=>({rowGap:al(r,s)});return tn(n,n.rowGap,l)}return null};Ns.propTypes={},Ns.filterProps=["rowGap"];const qx=yt({prop:"gridColumn"}),Zx=yt({prop:"gridRow"}),Gx=yt({prop:"gridAutoFlow"}),Yx=yt({prop:"gridAutoColumns"}),$x=yt({prop:"gridAutoRows"}),Xx=yt({prop:"gridTemplateColumns"}),Qx=yt({prop:"gridTemplateRows"}),Kx=yt({prop:"gridTemplateAreas"}),Fx=yt({prop:"gridArea"});Ts(Os,zs,Ns,qx,Zx,Gx,Yx,$x,Xx,Qx,Kx,Fx);function Gr(n,r){return r==="grey"?r:n}const Jx=yt({prop:"color",themeKey:"palette",transform:Gr}),Px=yt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Gr}),Wx=yt({prop:"backgroundColor",themeKey:"palette",transform:Gr});Ts(Jx,Px,Wx);function ua(n){return n<=1&&n!==0?`${n*100}%`:n}const Ix=yt({prop:"width",transform:ua}),ec=n=>{if(n.maxWidth!==void 0&&n.maxWidth!==null){const r=l=>{var u,f,d,m,y;const s=((d=(f=(u=n.theme)==null?void 0:u.breakpoints)==null?void 0:f.values)==null?void 0:d[l])||ws[l];return s?((y=(m=n.theme)==null?void 0:m.breakpoints)==null?void 0:y.unit)!=="px"?{maxWidth:`${s}${n.theme.breakpoints.unit}`}:{maxWidth:s}:{maxWidth:ua(l)}};return tn(n,n.maxWidth,r)}return null};ec.filterProps=["maxWidth"];const e_=yt({prop:"minWidth",transform:ua}),t_=yt({prop:"height",transform:ua}),a_=yt({prop:"maxHeight",transform:ua}),n_=yt({prop:"minHeight",transform:ua});yt({prop:"size",cssProperty:"width",transform:ua}),yt({prop:"size",cssProperty:"height",transform:ua});const r_=yt({prop:"boxSizing"});Ts(Ix,ec,e_,t_,a_,n_,r_);const ks={border:{themeKey:"borders",transform:va},borderTop:{themeKey:"borders",transform:va},borderRight:{themeKey:"borders",transform:va},borderBottom:{themeKey:"borders",transform:va},borderLeft:{themeKey:"borders",transform:va},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:va},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Es},color:{themeKey:"palette",transform:Gr},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Gr},backgroundColor:{themeKey:"palette",transform:Gr},p:{style:ht},pt:{style:ht},pr:{style:ht},pb:{style:ht},pl:{style:ht},px:{style:ht},py:{style:ht},padding:{style:ht},paddingTop:{style:ht},paddingRight:{style:ht},paddingBottom:{style:ht},paddingLeft:{style:ht},paddingX:{style:ht},paddingY:{style:ht},paddingInline:{style:ht},paddingInlineStart:{style:ht},paddingInlineEnd:{style:ht},paddingBlock:{style:ht},paddingBlockStart:{style:ht},paddingBlockEnd:{style:ht},m:{style:dt},mt:{style:dt},mr:{style:dt},mb:{style:dt},ml:{style:dt},mx:{style:dt},my:{style:dt},margin:{style:dt},marginTop:{style:dt},marginRight:{style:dt},marginBottom:{style:dt},marginLeft:{style:dt},marginX:{style:dt},marginY:{style:dt},marginInline:{style:dt},marginInlineStart:{style:dt},marginInlineEnd:{style:dt},marginBlock:{style:dt},marginBlockStart:{style:dt},marginBlockEnd:{style:dt},displayPrint:{cssProperty:!1,transform:n=>({"@media print":{display:n}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Os},rowGap:{style:Ns},columnGap:{style:zs},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:ua},maxWidth:{style:ec},minWidth:{transform:ua},height:{transform:ua},maxHeight:{transform:ua},minHeight:{transform:ua},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function i_(...n){const r=n.reduce((s,u)=>s.concat(Object.keys(u)),[]),l=new Set(r);return n.every(s=>l.size===Object.keys(s).length)}function l_(n,r){return typeof n=="function"?n(r):n}function s_(){function n(l,s,u,f){const d={[l]:s,theme:u},m=f[l];if(!m)return{[l]:s};const{cssProperty:y=l,themeKey:p,transform:_,style:x}=m;if(s==null)return null;if(p==="typography"&&s==="inherit")return{[l]:s};const O=As(u,p)||{};return x?x(d):tn(d,s,U=>{let C=Cs(O,_,U);return U===C&&typeof U=="string"&&(C=Cs(O,_,`${l}${U==="default"?"":Rm(U)}`,U)),y===!1?C:{[y]:C}})}function r(l){const{sx:s,theme:u={},nested:f}=l||{};if(!s)return null;const d=u.unstable_sxConfig??ks;function m(y){let p=y;if(typeof y=="function")p=y(u);else if(typeof y!="object")return y;if(!p)return null;const _=Sx(u.breakpoints),x=Object.keys(_);let O=_;return Object.keys(p).forEach(S=>{const U=l_(p[S],u);if(U!=null)if(typeof U=="object")if(d[S])O=el(O,n(S,U,u,d));else{const C=tn({theme:u},U,Z=>({[S]:Z}));i_(C,U)?O[S]=r({sx:U,theme:u,nested:!0}):O=el(O,C)}else O=el(O,n(S,U,u,d))}),!f&&u.modularCssLayers?{"@layer sx":km(u,Mm(x,O))}:km(u,Mm(x,O))}return Array.isArray(s)?s.map(m):m(s)}return r}const Yr=s_();Yr.filterProps=["sx"];function o_(n,r){var s;const l=this;if(l.vars){if(!((s=l.colorSchemes)!=null&&s[n])||typeof l.getColorSchemeSelector!="function")return{};let u=l.getColorSchemeSelector(n);return u==="&"?r:((u.includes("data-")||u.includes("."))&&(u=`*:where(${u.replace(/\s*&$/,"")}) &`),{[u]:r})}return l.palette.mode===n?r:{}}function Lm(n={},...r){const{breakpoints:l={},palette:s={},spacing:u,shape:f={},...d}=n,m=gx(l),y=Bm(u);let p=oa({breakpoints:m,direction:"ltr",components:{},palette:{mode:"light",...s},spacing:y,shape:{...xx,...f}},d);return p=bx(p),p.applyStyles=o_,p=r.reduce((_,x)=>oa(_,x),p),p.unstable_sxConfig={...ks,...d==null?void 0:d.unstable_sxConfig},p.unstable_sx=function(x){return Yr({sx:x,theme:this})},p}const Vm=n=>n,u_=(()=>{let n=Vm;return{configure(r){n=r},generate(r){return n(r)},reset(){n=Vm}}})(),c_={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Hm(n,r,l="Mui"){const s=c_[r];return s?`${l}-${s}`:`${u_.generate(n)}-${r}`}function f_(n,r,l="Mui"){const s={};return r.forEach(u=>{s[u]=Hm(n,u,l)}),s}function qm(n){const{variants:r,...l}=n,s={variants:r,style:or(l),isProcessed:!0};return s.style===l||r&&r.forEach(u=>{typeof u.style!="function"&&(u.style=or(u.style))}),s}const d_=Lm();function tc(n){return n!=="ownerState"&&n!=="theme"&&n!=="sx"&&n!=="as"}function ur(n,r){return r&&n&&typeof n=="object"&&n.styles&&!n.styles.startsWith("@layer")&&(n.styles=`@layer ${r}{${String(n.styles)}}`),n}function h_(n){return n?(r,l)=>l[n]:null}function m_(n,r,l){n.theme=y_(n.theme)?l:n.theme[r]||n.theme}function js(n,r,l){const s=typeof r=="function"?r(n):r;if(Array.isArray(s))return s.flatMap(u=>js(n,u,l));if(Array.isArray(s==null?void 0:s.variants)){let u;if(s.isProcessed)u=l?ur(s.style,l):s.style;else{const{variants:f,...d}=s;u=l?ur(or(d),l):d}return Zm(n,s.variants,[u],l)}return s!=null&&s.isProcessed?l?ur(or(s.style),l):s.style:l?ur(or(s),l):s}function Zm(n,r,l=[],s=void 0){var f;let u;e:for(let d=0;d<r.length;d+=1){const m=r[d];if(typeof m.props=="function"){if(u??(u={...n,...n.ownerState,ownerState:n.ownerState}),!m.props(u))continue}else for(const y in m.props)if(n[y]!==m.props[y]&&((f=n.ownerState)==null?void 0:f[y])!==m.props[y])continue e;typeof m.style=="function"?(u??(u={...n,...n.ownerState,ownerState:n.ownerState}),l.push(s?ur(or(m.style(u)),s):m.style(u))):l.push(s?ur(or(m.style),s):m.style)}return l}function p_(n={}){const{themeId:r,defaultTheme:l=d_,rootShouldForwardProp:s=tc,slotShouldForwardProp:u=tc}=n;function f(m){m_(m,r,l)}return(m,y={})=>{dx(m,K=>K.filter(J=>J!==Yr));const{name:p,slot:_,skipVariantsResolver:x,skipSx:O,overridesResolver:S=h_(b_(_)),...U}=y,C=p&&p.startsWith("Mui")||_?"components":"custom",Z=x!==void 0?x:_&&_!=="Root"&&_!=="root"||!1,I=O||!1;let F=tc;_==="Root"||_==="root"?F=s:_?F=u:v_(m)&&(F=void 0);const ae=fx(m,{shouldForwardProp:F,label:g_(),...U}),te=K=>{if(K.__emotion_real===K)return K;if(typeof K=="function")return function(we){return js(we,K,we.theme.modularCssLayers?C:void 0)};if(en(K)){const J=qm(K);return function(je){return J.variants?js(je,J,je.theme.modularCssLayers?C:void 0):je.theme.modularCssLayers?ur(J.style,C):J.style}}return K},L=(...K)=>{const J=[],we=K.map(te),je=[];if(J.push(f),p&&S&&je.push(function($){var Q,se;const le=(se=(Q=$.theme.components)==null?void 0:Q[p])==null?void 0:se.styleOverrides;if(!le)return null;const N={};for(const ze in le)N[ze]=js($,le[ze],$.theme.modularCssLayers?"theme":void 0);return S($,N)}),p&&!Z&&je.push(function($){var N,Q;const X=$.theme,le=(Q=(N=X==null?void 0:X.components)==null?void 0:N[p])==null?void 0:Q.variants;return le?Zm($,le,[],$.theme.modularCssLayers?"theme":void 0):null}),I||je.push(Yr),Array.isArray(we[0])){const v=we.shift(),$=new Array(J.length).fill(""),X=new Array(je.length).fill("");let le;le=[...$,...v,...X],le.raw=[...$,...v.raw,...X],J.unshift(le)}const Ie=[...J,...we,...je],ve=ae(...Ie);return m.muiName&&(ve.muiName=m.muiName),ve};return ae.withConfig&&(L.withConfig=ae.withConfig),L}}function g_(n,r){return void 0}function y_(n){for(const r in n)return!1;return!0}function v_(n){return typeof n=="string"&&n.charCodeAt(0)>96}function b_(n){return n&&n.charAt(0).toLowerCase()+n.slice(1)}function ac(n,r,l=!1){const s={...r};for(const u in n)if(Object.prototype.hasOwnProperty.call(n,u)){const f=u;if(f==="components"||f==="slots")s[f]={...n[f],...s[f]};else if(f==="componentsProps"||f==="slotProps"){const d=n[f],m=r[f];if(!m)s[f]=d||{};else if(!d)s[f]=m;else{s[f]={...m};for(const y in d)if(Object.prototype.hasOwnProperty.call(d,y)){const p=y;s[f][p]=ac(d[p],m[p],l)}}}else f==="className"&&l&&r.className?s.className=Ph(n==null?void 0:n.className,r==null?void 0:r.className):f==="style"&&l&&r.style?s.style={...n==null?void 0:n.style,...r==null?void 0:r.style}:s[f]===void 0&&(s[f]=n[f])}return s}function x_(n,r=Number.MIN_SAFE_INTEGER,l=Number.MAX_SAFE_INTEGER){return Math.max(r,Math.min(n,l))}function nc(n,r=0,l=1){return x_(n,r,l)}function __(n){n=n.slice(1);const r=new RegExp(`.{1,${n.length>=6?2:1}}`,"g");let l=n.match(r);return l&&l[0].length===1&&(l=l.map(s=>s+s)),l?`rgb${l.length===4?"a":""}(${l.map((s,u)=>u<3?parseInt(s,16):Math.round(parseInt(s,16)/255*1e3)/1e3).join(", ")})`:""}function On(n){if(n.type)return n;if(n.charAt(0)==="#")return On(__(n));const r=n.indexOf("("),l=n.substring(0,r);if(!["rgb","rgba","hsl","hsla","color"].includes(l))throw new Error(sr(9,n));let s=n.substring(r+1,n.length-1),u;if(l==="color"){if(s=s.split(" "),u=s.shift(),s.length===4&&s[3].charAt(0)==="/"&&(s[3]=s[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(u))throw new Error(sr(10,u))}else s=s.split(",");return s=s.map(f=>parseFloat(f)),{type:l,values:s,colorSpace:u}}const S_=n=>{const r=On(n);return r.values.slice(0,3).map((l,s)=>r.type.includes("hsl")&&s!==0?`${l}%`:l).join(" ")},nl=(n,r)=>{try{return S_(n)}catch{return n}};function Ms(n){const{type:r,colorSpace:l}=n;let{values:s}=n;return r.includes("rgb")?s=s.map((u,f)=>f<3?parseInt(u,10):u):r.includes("hsl")&&(s[1]=`${s[1]}%`,s[2]=`${s[2]}%`),r.includes("color")?s=`${l} ${s.join(" ")}`:s=`${s.join(", ")}`,`${r}(${s})`}function Gm(n){n=On(n);const{values:r}=n,l=r[0],s=r[1]/100,u=r[2]/100,f=s*Math.min(u,1-u),d=(p,_=(p+l/30)%12)=>u-f*Math.max(Math.min(_-3,9-_,1),-1);let m="rgb";const y=[Math.round(d(0)*255),Math.round(d(8)*255),Math.round(d(4)*255)];return n.type==="hsla"&&(m+="a",y.push(r[3])),Ms({type:m,values:y})}function rc(n){n=On(n);let r=n.type==="hsl"||n.type==="hsla"?On(Gm(n)).values:n.values;return r=r.map(l=>(n.type!=="color"&&(l/=255),l<=.03928?l/12.92:((l+.055)/1.055)**2.4)),Number((.2126*r[0]+.7152*r[1]+.0722*r[2]).toFixed(3))}function w_(n,r){const l=rc(n),s=rc(r);return(Math.max(l,s)+.05)/(Math.min(l,s)+.05)}function Ym(n,r){return n=On(n),r=nc(r),(n.type==="rgb"||n.type==="hsl")&&(n.type+="a"),n.type==="color"?n.values[3]=`/${r}`:n.values[3]=r,Ms(n)}function cr(n,r,l){try{return Ym(n,r)}catch{return n}}function Rs(n,r){if(n=On(n),r=nc(r),n.type.includes("hsl"))n.values[2]*=1-r;else if(n.type.includes("rgb")||n.type.includes("color"))for(let l=0;l<3;l+=1)n.values[l]*=1-r;return Ms(n)}function Qe(n,r,l){try{return Rs(n,r)}catch{return n}}function Ds(n,r){if(n=On(n),r=nc(r),n.type.includes("hsl"))n.values[2]+=(100-n.values[2])*r;else if(n.type.includes("rgb"))for(let l=0;l<3;l+=1)n.values[l]+=(255-n.values[l])*r;else if(n.type.includes("color"))for(let l=0;l<3;l+=1)n.values[l]+=(1-n.values[l])*r;return Ms(n)}function Ke(n,r,l){try{return Ds(n,r)}catch{return n}}function A_(n,r=.15){return rc(n)>.5?Rs(n,r):Ds(n,r)}function Us(n,r,l){try{return A_(n,r)}catch{return n}}const C_=ge.createContext(void 0);function T_(n){const{theme:r,name:l,props:s}=n;if(!r||!r.components||!r.components[l])return s;const u=r.components[l];return u.defaultProps?ac(u.defaultProps,s,r.components.mergeClassNameAndStyle):!u.styleOverrides&&!u.variants?ac(u,s,r.components.mergeClassNameAndStyle):s}function E_({props:n,name:r}){const l=ge.useContext(C_);return T_({props:n,name:r,theme:{components:l}})}const $m={theme:void 0};function O_(n){let r,l;return function(u){let f=r;return(f===void 0||u.theme!==l)&&($m.theme=u.theme,f=qm(n($m)),r=f,l=u.theme),f}}function z_(n=""){function r(...s){if(!s.length)return"";const u=s[0];return typeof u=="string"&&!u.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${n?`${n}-`:""}${u}${r(...s.slice(1))})`:`, ${u}`}return(s,...u)=>`var(--${n?`${n}-`:""}${s}${r(...u)})`}const Xm=(n,r,l,s=[])=>{let u=n;r.forEach((f,d)=>{d===r.length-1?Array.isArray(u)?u[Number(f)]=l:u&&typeof u=="object"&&(u[f]=l):u&&typeof u=="object"&&(u[f]||(u[f]=s.includes(f)?[]:{}),u=u[f])})},N_=(n,r,l)=>{function s(u,f=[],d=[]){Object.entries(u).forEach(([m,y])=>{(!l||l&&!l([...f,m]))&&y!=null&&(typeof y=="object"&&Object.keys(y).length>0?s(y,[...f,m],Array.isArray(y)?[...d,m]:d):r([...f,m],y,d))})}s(n)},k_=(n,r)=>typeof r=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(s=>n.includes(s))||n[n.length-1].toLowerCase().includes("opacity")?r:`${r}px`:r;function ic(n,r){const{prefix:l,shouldSkipGeneratingVar:s}=r||{},u={},f={},d={};return N_(n,(m,y,p)=>{if((typeof y=="string"||typeof y=="number")&&(!s||!s(m,y))){const _=`--${l?`${l}-`:""}${m.join("-")}`,x=k_(m,y);Object.assign(u,{[_]:x}),Xm(f,m,`var(${_})`,p),Xm(d,m,`var(${_}, ${x})`,p)}},m=>m[0]==="vars"),{css:u,vars:f,varsWithDefaults:d}}function j_(n,r={}){const{getSelector:l=I,disableCssColorScheme:s,colorSchemeSelector:u,enableContrastVars:f}=r,{colorSchemes:d={},components:m,defaultColorScheme:y="light",...p}=n,{vars:_,css:x,varsWithDefaults:O}=ic(p,r);let S=O;const U={},{[y]:C,...Z}=d;if(Object.entries(Z||{}).forEach(([te,L])=>{const{vars:K,css:J,varsWithDefaults:we}=ic(L,r);S=oa(S,we),U[te]={css:J,vars:K}}),C){const{css:te,vars:L,varsWithDefaults:K}=ic(C,r);S=oa(S,K),U[y]={css:te,vars:L}}function I(te,L){var J,we;let K=u;if(u==="class"&&(K=".%s"),u==="data"&&(K="[data-%s]"),u!=null&&u.startsWith("data-")&&!u.includes("%s")&&(K=`[${u}="%s"]`),te){if(K==="media")return n.defaultColorScheme===te?":root":{[`@media (prefers-color-scheme: ${((we=(J=d[te])==null?void 0:J.palette)==null?void 0:we.mode)||te})`]:{":root":L}};if(K)return n.defaultColorScheme===te?`:root, ${K.replace("%s",String(te))}`:K.replace("%s",String(te))}return":root"}return{vars:S,generateThemeVars:()=>{let te={..._};return Object.entries(U).forEach(([,{vars:L}])=>{te=oa(te,L)}),te},generateStyleSheets:()=>{var je,Ie;const te=[],L=n.defaultColorScheme||"light";function K(ve,v){Object.keys(v).length&&te.push(typeof ve=="string"?{[ve]:{...v}}:ve)}K(l(void 0,{...x}),x);const{[L]:J,...we}=U;if(J){const{css:ve}=J,v=(Ie=(je=d[L])==null?void 0:je.palette)==null?void 0:Ie.mode,$=!s&&v?{colorScheme:v,...ve}:{...ve};K(l(L,{...$}),$)}return Object.entries(we).forEach(([ve,{css:v}])=>{var le,N;const $=(N=(le=d[ve])==null?void 0:le.palette)==null?void 0:N.mode,X=!s&&$?{colorScheme:$,...v}:{...v};K(l(ve,{...X}),X)}),f&&te.push({":root":{"--__l-threshold":"0.7","--__l":"clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)","--__a":"clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)"}}),te}}}function M_(n){return function(l){return n==="media"?`@media (prefers-color-scheme: ${l})`:n?n.startsWith("data-")&&!n.includes("%s")?`[${n}="${l}"] &`:n==="class"?`.${l} &`:n==="data"?`[data-${l}] &`:`${n.replace("%s",l)} &`:"&"}}const rl={black:"#000",white:"#fff"},R_={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},$r={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Xr={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},il={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},Qr={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},Kr={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Fr={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function Qm(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:rl.white,default:rl.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const Km=Qm();function Fm(){return{text:{primary:rl.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:rl.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const lc=Fm();function Jm(n,r,l,s){const u=s.light||s,f=s.dark||s*1.5;n[r]||(n.hasOwnProperty(l)?n[r]=n[l]:r==="light"?n.light=Ds(n.main,u):r==="dark"&&(n.dark=Rs(n.main,f)))}function Pm(n,r,l,s,u){const f=u.light||u,d=u.dark||u*1.5;r[l]||(r.hasOwnProperty(s)?r[l]=r[s]:l==="light"?r.light=`color-mix(in ${n}, ${r.main}, #fff ${(f*100).toFixed(0)}%)`:l==="dark"&&(r.dark=`color-mix(in ${n}, ${r.main}, #000 ${(d*100).toFixed(0)}%)`))}function D_(n="light"){return n==="dark"?{main:Qr[200],light:Qr[50],dark:Qr[400]}:{main:Qr[700],light:Qr[400],dark:Qr[800]}}function U_(n="light"){return n==="dark"?{main:$r[200],light:$r[50],dark:$r[400]}:{main:$r[500],light:$r[300],dark:$r[700]}}function B_(n="light"){return n==="dark"?{main:Xr[500],light:Xr[300],dark:Xr[700]}:{main:Xr[700],light:Xr[400],dark:Xr[800]}}function L_(n="light"){return n==="dark"?{main:Kr[400],light:Kr[300],dark:Kr[700]}:{main:Kr[700],light:Kr[500],dark:Kr[900]}}function V_(n="light"){return n==="dark"?{main:Fr[400],light:Fr[300],dark:Fr[700]}:{main:Fr[800],light:Fr[500],dark:Fr[900]}}function H_(n="light"){return n==="dark"?{main:il[400],light:il[300],dark:il[700]}:{main:"#ed6c02",light:il[500],dark:il[900]}}function q_(n){return`oklch(from ${n} var(--__l) 0 h / var(--__a))`}function sc(n){const{mode:r="light",contrastThreshold:l=3,tonalOffset:s=.2,colorSpace:u,...f}=n,d=n.primary||D_(r),m=n.secondary||U_(r),y=n.error||B_(r),p=n.info||L_(r),_=n.success||V_(r),x=n.warning||H_(r);function O(Z){return u?q_(Z):w_(Z,lc.text.primary)>=l?lc.text.primary:Km.text.primary}const S=({color:Z,name:I,mainShade:F=500,lightShade:ae=300,darkShade:te=700})=>{if(Z={...Z},!Z.main&&Z[F]&&(Z.main=Z[F]),!Z.hasOwnProperty("main"))throw new Error(sr(11,I?` (${I})`:"",F));if(typeof Z.main!="string")throw new Error(sr(12,I?` (${I})`:"",JSON.stringify(Z.main)));return u?(Pm(u,Z,"light",ae,s),Pm(u,Z,"dark",te,s)):(Jm(Z,"light",ae,s),Jm(Z,"dark",te,s)),Z.contrastText||(Z.contrastText=O(Z.main)),Z};let U;return r==="light"?U=Qm():r==="dark"&&(U=Fm()),oa({common:{...rl},mode:r,primary:S({color:d,name:"primary"}),secondary:S({color:m,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:S({color:y,name:"error"}),warning:S({color:x,name:"warning"}),info:S({color:p,name:"info"}),success:S({color:_,name:"success"}),grey:R_,contrastThreshold:l,getContrastText:O,augmentColor:S,tonalOffset:s,...U},f)}function Z_(n){const r={};return Object.entries(n).forEach(s=>{const[u,f]=s;typeof f=="object"&&(r[u]=`${f.fontStyle?`${f.fontStyle} `:""}${f.fontVariant?`${f.fontVariant} `:""}${f.fontWeight?`${f.fontWeight} `:""}${f.fontStretch?`${f.fontStretch} `:""}${f.fontSize||""}${f.lineHeight?`/${f.lineHeight} `:""}${f.fontFamily||""}`)}),r}function G_(n,r){return{toolbar:{minHeight:56,[n.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[n.up("sm")]:{minHeight:64}},...r}}function Y_(n){return Math.round(n*1e5)/1e5}const Wm={textTransform:"uppercase"},Im='"Roboto", "Helvetica", "Arial", sans-serif';function $_(n,r){const{fontFamily:l=Im,fontSize:s=14,fontWeightLight:u=300,fontWeightRegular:f=400,fontWeightMedium:d=500,fontWeightBold:m=700,htmlFontSize:y=16,allVariants:p,pxToRem:_,...x}=typeof r=="function"?r(n):r,O=s/14,S=_||(Z=>`${Z/y*O}rem`),U=(Z,I,F,ae,te)=>({fontFamily:l,fontWeight:Z,fontSize:S(I),lineHeight:F,...l===Im?{letterSpacing:`${Y_(ae/I)}em`}:{},...te,...p}),C={h1:U(u,96,1.167,-1.5),h2:U(u,60,1.2,-.5),h3:U(f,48,1.167,0),h4:U(f,34,1.235,.25),h5:U(f,24,1.334,0),h6:U(d,20,1.6,.15),subtitle1:U(f,16,1.75,.15),subtitle2:U(d,14,1.57,.1),body1:U(f,16,1.5,.15),body2:U(f,14,1.43,.15),button:U(d,14,1.75,.4,Wm),caption:U(f,12,1.66,.4),overline:U(f,12,2.66,1,Wm),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return oa({htmlFontSize:y,pxToRem:S,fontFamily:l,fontSize:s,fontWeightLight:u,fontWeightRegular:f,fontWeightMedium:d,fontWeightBold:m,...C},x,{clone:!1})}const X_=.2,Q_=.14,K_=.12;function ut(...n){return[`${n[0]}px ${n[1]}px ${n[2]}px ${n[3]}px rgba(0,0,0,${X_})`,`${n[4]}px ${n[5]}px ${n[6]}px ${n[7]}px rgba(0,0,0,${Q_})`,`${n[8]}px ${n[9]}px ${n[10]}px ${n[11]}px rgba(0,0,0,${K_})`].join(",")}const F_=["none",ut(0,2,1,-1,0,1,1,0,0,1,3,0),ut(0,3,1,-2,0,2,2,0,0,1,5,0),ut(0,3,3,-2,0,3,4,0,0,1,8,0),ut(0,2,4,-1,0,4,5,0,0,1,10,0),ut(0,3,5,-1,0,5,8,0,0,1,14,0),ut(0,3,5,-1,0,6,10,0,0,1,18,0),ut(0,4,5,-2,0,7,10,1,0,2,16,1),ut(0,5,5,-3,0,8,10,1,0,3,14,2),ut(0,5,6,-3,0,9,12,1,0,3,16,2),ut(0,6,6,-3,0,10,14,1,0,4,18,3),ut(0,6,7,-4,0,11,15,1,0,4,20,3),ut(0,7,8,-4,0,12,17,2,0,5,22,4),ut(0,7,8,-4,0,13,19,2,0,5,24,4),ut(0,7,9,-4,0,14,21,2,0,5,26,4),ut(0,8,9,-5,0,15,22,2,0,6,28,5),ut(0,8,10,-5,0,16,24,2,0,6,30,5),ut(0,8,11,-5,0,17,26,2,0,6,32,5),ut(0,9,11,-5,0,18,28,2,0,7,34,6),ut(0,9,12,-6,0,19,29,2,0,7,36,6),ut(0,10,13,-6,0,20,31,3,0,8,38,7),ut(0,10,13,-6,0,21,33,3,0,8,40,7),ut(0,10,14,-6,0,22,35,3,0,8,42,7),ut(0,11,14,-7,0,23,36,3,0,9,44,8),ut(0,11,15,-7,0,24,38,3,0,9,46,8)],J_={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},P_={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function ep(n){return`${Math.round(n)}ms`}function W_(n){if(!n)return 0;const r=n/36;return Math.min(Math.round((4+15*r**.25+r/5)*10),3e3)}function I_(n){const r={...J_,...n.easing},l={...P_,...n.duration};return{getAutoHeightDuration:W_,create:(u=["all"],f={})=>{const{duration:d=l.standard,easing:m=r.easeInOut,delay:y=0,...p}=f;return(Array.isArray(u)?u:[u]).map(_=>`${_} ${typeof d=="string"?d:ep(d)} ${m} ${typeof y=="string"?y:ep(y)}`).join(",")},...n,easing:r,duration:l}}const eS={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function tS(n){return en(n)||typeof n>"u"||typeof n=="string"||typeof n=="boolean"||typeof n=="number"||Array.isArray(n)}function tp(n={}){const r={...n};function l(s){const u=Object.entries(s);for(let f=0;f<u.length;f++){const[d,m]=u[f];!tS(m)||d.startsWith("unstable_")?delete s[d]:en(m)&&(s[d]={...m},l(s[d]))}}return l(r),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
121
+ */var Jh;function lS(){if(Jh)return Pe;Jh=1;var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),d=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),S=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),D=Symbol.for("react.view_transition"),N=Symbol.for("react.client.reference");function V(E){if(typeof E=="object"&&E!==null){var q=E.$$typeof;switch(q){case n:switch(E=E.type,E){case l:case u:case s:case y:case p:case D:return E;default:switch(E=E&&E.$$typeof,E){case d:case h:case v:case S:return E;case f:return E;default:return q}}case r:return q}}}return Pe.ContextConsumer=f,Pe.ContextProvider=d,Pe.Element=n,Pe.ForwardRef=h,Pe.Fragment=l,Pe.Lazy=v,Pe.Memo=S,Pe.Portal=r,Pe.Profiler=u,Pe.StrictMode=s,Pe.Suspense=y,Pe.SuspenseList=p,Pe.isContextConsumer=function(E){return V(E)===f},Pe.isContextProvider=function(E){return V(E)===d},Pe.isElement=function(E){return typeof E=="object"&&E!==null&&E.$$typeof===n},Pe.isForwardRef=function(E){return V(E)===h},Pe.isFragment=function(E){return V(E)===l},Pe.isLazy=function(E){return V(E)===v},Pe.isMemo=function(E){return V(E)===S},Pe.isPortal=function(E){return V(E)===r},Pe.isProfiler=function(E){return V(E)===u},Pe.isStrictMode=function(E){return V(E)===s},Pe.isSuspense=function(E){return V(E)===y},Pe.isSuspenseList=function(E){return V(E)===p},Pe.isValidElementType=function(E){return typeof E=="string"||typeof E=="function"||E===l||E===u||E===s||E===y||E===p||typeof E=="object"&&E!==null&&(E.$$typeof===v||E.$$typeof===S||E.$$typeof===d||E.$$typeof===f||E.$$typeof===h||E.$$typeof===N||E.getModuleId!==void 0)},Pe.typeOf=V,Pe}var Ih;function sS(){return Ih||(Ih=1,cc.exports=lS()),cc.exports}var Ph=sS();function en(n){if(typeof n!="object"||n===null)return!1;const r=Object.getPrototypeOf(n);return(r===null||r===Object.prototype||Object.getPrototypeOf(r)===null)&&!(Symbol.toStringTag in n)&&!(Symbol.iterator in n)}function Wh(n){if(pe.isValidElement(n)||Ph.isValidElementType(n)||!en(n))return n;const r={};return Object.keys(n).forEach(l=>{r[l]=Wh(n[l])}),r}function sa(n,r,l={clone:!0}){const s=l.clone?{...n}:n;return en(n)&&en(r)&&Object.keys(r).forEach(u=>{pe.isValidElement(r[u])||Ph.isValidElementType(r[u])?s[u]=r[u]:en(r[u])&&Object.prototype.hasOwnProperty.call(n,u)&&en(n[u])?s[u]=sa(n[u],r[u],l):l.clone?s[u]=en(r[u])?Wh(r[u]):r[u]:s[u]=r[u]}),s}const oS=n=>{const r=Object.keys(n).map(l=>({key:l,val:n[l]}))||[];return r.sort((l,s)=>l.val-s.val),r.reduce((l,s)=>({...l,[s.key]:s.val}),{})};function uS(n){const{values:r={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:l="px",step:s=5,...u}=n,f=oS(r),d=Object.keys(f);function h(D){return`@media (min-width:${typeof r[D]=="number"?r[D]:D}${l})`}function y(D){return`@media (max-width:${(typeof r[D]=="number"?r[D]:D)-s/100}${l})`}function p(D,N){const V=d.indexOf(N);return`@media (min-width:${typeof r[D]=="number"?r[D]:D}${l}) and (max-width:${(V!==-1&&typeof r[d[V]]=="number"?r[d[V]]:N)-s/100}${l})`}function S(D){return d.indexOf(D)+1<d.length?p(D,d[d.indexOf(D)+1]):h(D)}function v(D){const N=d.indexOf(D);return N===0?h(d[1]):N===d.length-1?y(d[N]):p(D,d[d.indexOf(D)+1]).replace("@media","@media not all and")}return{keys:d,values:f,up:h,down:y,between:p,only:S,not:v,unit:l,...u}}function ep(n,r){if(!n.containerQueries)return r;const l=Object.keys(r).filter(s=>s.startsWith("@container")).sort((s,u)=>{var d,h;const f=/min-width:\s*([0-9.]+)/;return+(((d=s.match(f))==null?void 0:d[1])||0)-+(((h=u.match(f))==null?void 0:h[1])||0)});return l.length?l.reduce((s,u)=>{const f=r[u];return delete s[u],s[u]=f,s},{...r}):r}function cS(n,r){return r==="@"||r.startsWith("@")&&(n.some(l=>r.startsWith(`@${l}`))||!!r.match(/^@\d/))}function fS(n,r){const l=r.match(/^@([^/]+)?\/?(.+)?$/);if(!l)return null;const[,s,u]=l,f=Number.isNaN(+s)?s||0:+s;return n.containerQueries(u).up(f)}function dS(n){const r=(f,d)=>f.replace("@media",d?`@container ${d}`:"@container");function l(f,d){f.up=(...h)=>r(n.breakpoints.up(...h),d),f.down=(...h)=>r(n.breakpoints.down(...h),d),f.between=(...h)=>r(n.breakpoints.between(...h),d),f.only=(...h)=>r(n.breakpoints.only(...h),d),f.not=(...h)=>{const y=r(n.breakpoints.not(...h),d);return y.includes("not all and")?y.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):y}}const s={},u=f=>(l(s,f),s);return l(u),{...n,containerQueries:u}}const mS={borderRadius:4};function nl(n,r){return r?sa(n,r,{clone:!1}):n}const Os={xs:0,sm:600,md:900,lg:1200,xl:1536},tp={keys:["xs","sm","md","lg","xl"],up:n=>`@media (min-width:${Os[n]}px)`},hS={containerQueries:n=>({up:r=>{let l=typeof r=="number"?r:Os[r]||r;return typeof l=="number"&&(l=`${l}px`),n?`@container ${n} (min-width:${l})`:`@container (min-width:${l})`}})};function tn(n,r,l){const s=n.theme||{};if(Array.isArray(r)){const f=s.breakpoints||tp;return r.reduce((d,h,y)=>(d[f.up(f.keys[y])]=l(r[y]),d),{})}if(typeof r=="object"){const f=s.breakpoints||tp;return Object.keys(r).reduce((d,h)=>{if(cS(f.keys,h)){const y=fS(s.containerQueries?s:hS,h);y&&(d[y]=l(r[h],h))}else if(Object.keys(f.values||Os).includes(h)){const y=f.up(h);d[y]=l(r[h],h)}else{const y=h;d[y]=r[y]}return d},{})}return l(r)}function pS(n={}){var l;return((l=n.keys)==null?void 0:l.reduce((s,u)=>{const f=n.up(u);return s[f]={},s},{}))||{}}function ap(n,r){return n.reduce((l,s)=>{const u=l[s];return(!u||Object.keys(u).length===0)&&delete l[s],l},r)}function np(n){if(typeof n!="string")throw new Error(sr(7));return n.charAt(0).toUpperCase()+n.slice(1)}function Rs(n,r,l=!0){if(!r||typeof r!="string")return null;if(n&&n.vars&&l){const s=`vars.${r}`.split(".").reduce((u,f)=>u&&u[f]?u[f]:null,n);if(s!=null)return s}return r.split(".").reduce((s,u)=>s&&s[u]!=null?s[u]:null,n)}function Ms(n,r,l,s=l){let u;return typeof n=="function"?u=n(l):Array.isArray(n)?u=n[l]||s:u=Rs(n,l)||s,r&&(u=r(u,s,n)),u}function yt(n){const{prop:r,cssProperty:l=n.prop,themeKey:s,transform:u}=n,f=d=>{if(d[r]==null)return null;const h=d[r],y=d.theme,p=Rs(y,s)||{};return tn(d,h,v=>{let D=Ms(p,u,v);return v===D&&typeof v=="string"&&(D=Ms(p,u,`${r}${v==="default"?"":np(v)}`,v)),l===!1?D:{[l]:D}})};return f.propTypes={},f.filterProps=[r],f}function gS(n){const r={};return l=>(r[l]===void 0&&(r[l]=n(l)),r[l])}const yS={m:"margin",p:"padding"},bS={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},rp={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},vS=gS(n=>{if(n.length>2)if(rp[n])n=rp[n];else return[n];const[r,l]=n.split(""),s=yS[r],u=bS[l]||"";return Array.isArray(u)?u.map(f=>s+f):[s+u]}),fc=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],dc=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...fc,...dc];function rl(n,r,l,s){const u=Rs(n,r,!0)??l;return typeof u=="number"||typeof u=="string"?f=>typeof f=="string"?f:typeof u=="string"?u.startsWith("var(")&&f===0?0:u.startsWith("var(")&&f===1?u:`calc(${f} * ${u})`:u*f:Array.isArray(u)?f=>{if(typeof f=="string")return f;const d=Math.abs(f),h=u[d];return f>=0?h:typeof h=="number"?-h:typeof h=="string"&&h.startsWith("var(")?`calc(-1 * ${h})`:`-${h}`}:typeof u=="function"?u:()=>{}}function mc(n){return rl(n,"spacing",8)}function il(n,r){return typeof r=="string"||r==null?r:n(r)}function xS(n,r){return l=>n.reduce((s,u)=>(s[u]=il(r,l),s),{})}function SS(n,r,l,s){if(!r.includes(l))return null;const u=vS(l),f=xS(u,s),d=n[l];return tn(n,d,f)}function ip(n,r){const l=mc(n.theme);return Object.keys(n).map(s=>SS(n,r,s,l)).reduce(nl,{})}function dt(n){return ip(n,fc)}dt.propTypes={},dt.filterProps=fc;function mt(n){return ip(n,dc)}mt.propTypes={},mt.filterProps=dc;function lp(n=8,r=mc({spacing:n})){if(n.mui)return n;const l=(...s)=>(s.length===0?[1]:s).map(f=>{const d=r(f);return typeof d=="number"?`${d}px`:d}).join(" ");return l.mui=!0,l}function zs(...n){const r=n.reduce((s,u)=>(u.filterProps.forEach(f=>{s[f]=u}),s),{}),l=s=>Object.keys(s).reduce((u,f)=>r[f]?nl(u,r[f](s)):u,{});return l.propTypes={},l.filterProps=n.reduce((s,u)=>s.concat(u.filterProps),[]),l}function ba(n){return typeof n!="number"?n:`${n}px solid`}function va(n,r){return yt({prop:n,themeKey:"borders",transform:r})}const NS=va("border",ba),_S=va("borderTop",ba),CS=va("borderRight",ba),ES=va("borderBottom",ba),wS=va("borderLeft",ba),DS=va("borderColor"),AS=va("borderTopColor"),TS=va("borderRightColor"),OS=va("borderBottomColor"),RS=va("borderLeftColor"),MS=va("outline",ba),zS=va("outlineColor"),ks=n=>{if(n.borderRadius!==void 0&&n.borderRadius!==null){const r=rl(n.theme,"shape.borderRadius",4),l=s=>({borderRadius:il(r,s)});return tn(n,n.borderRadius,l)}return null};ks.propTypes={},ks.filterProps=["borderRadius"],zs(NS,_S,CS,ES,wS,DS,AS,TS,OS,RS,ks,MS,zS);const js=n=>{if(n.gap!==void 0&&n.gap!==null){const r=rl(n.theme,"spacing",8),l=s=>({gap:il(r,s)});return tn(n,n.gap,l)}return null};js.propTypes={},js.filterProps=["gap"];const Vs=n=>{if(n.columnGap!==void 0&&n.columnGap!==null){const r=rl(n.theme,"spacing",8),l=s=>({columnGap:il(r,s)});return tn(n,n.columnGap,l)}return null};Vs.propTypes={},Vs.filterProps=["columnGap"];const Bs=n=>{if(n.rowGap!==void 0&&n.rowGap!==null){const r=rl(n.theme,"spacing",8),l=s=>({rowGap:il(r,s)});return tn(n,n.rowGap,l)}return null};Bs.propTypes={},Bs.filterProps=["rowGap"];const kS=yt({prop:"gridColumn"}),jS=yt({prop:"gridRow"}),VS=yt({prop:"gridAutoFlow"}),BS=yt({prop:"gridAutoColumns"}),US=yt({prop:"gridAutoRows"}),LS=yt({prop:"gridTemplateColumns"}),HS=yt({prop:"gridTemplateRows"}),qS=yt({prop:"gridTemplateAreas"}),GS=yt({prop:"gridArea"});zs(js,Vs,Bs,kS,jS,VS,BS,US,LS,HS,qS,GS);function Yr(n,r){return r==="grey"?r:n}const ZS=yt({prop:"color",themeKey:"palette",transform:Yr}),YS=yt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Yr}),$S=yt({prop:"backgroundColor",themeKey:"palette",transform:Yr});zs(ZS,YS,$S);function oa(n){return n<=1&&n!==0?`${n*100}%`:n}const FS=yt({prop:"width",transform:oa}),hc=n=>{if(n.maxWidth!==void 0&&n.maxWidth!==null){const r=l=>{var u,f,d,h,y;const s=((d=(f=(u=n.theme)==null?void 0:u.breakpoints)==null?void 0:f.values)==null?void 0:d[l])||Os[l];return s?((y=(h=n.theme)==null?void 0:h.breakpoints)==null?void 0:y.unit)!=="px"?{maxWidth:`${s}${n.theme.breakpoints.unit}`}:{maxWidth:s}:{maxWidth:oa(l)}};return tn(n,n.maxWidth,r)}return null};hc.filterProps=["maxWidth"];const QS=yt({prop:"minWidth",transform:oa}),XS=yt({prop:"height",transform:oa}),KS=yt({prop:"maxHeight",transform:oa}),JS=yt({prop:"minHeight",transform:oa});yt({prop:"size",cssProperty:"width",transform:oa}),yt({prop:"size",cssProperty:"height",transform:oa});const IS=yt({prop:"boxSizing"});zs(FS,hc,QS,XS,KS,JS,IS);const Us={border:{themeKey:"borders",transform:ba},borderTop:{themeKey:"borders",transform:ba},borderRight:{themeKey:"borders",transform:ba},borderBottom:{themeKey:"borders",transform:ba},borderLeft:{themeKey:"borders",transform:ba},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:ba},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:ks},color:{themeKey:"palette",transform:Yr},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Yr},backgroundColor:{themeKey:"palette",transform:Yr},p:{style:mt},pt:{style:mt},pr:{style:mt},pb:{style:mt},pl:{style:mt},px:{style:mt},py:{style:mt},padding:{style:mt},paddingTop:{style:mt},paddingRight:{style:mt},paddingBottom:{style:mt},paddingLeft:{style:mt},paddingX:{style:mt},paddingY:{style:mt},paddingInline:{style:mt},paddingInlineStart:{style:mt},paddingInlineEnd:{style:mt},paddingBlock:{style:mt},paddingBlockStart:{style:mt},paddingBlockEnd:{style:mt},m:{style:dt},mt:{style:dt},mr:{style:dt},mb:{style:dt},ml:{style:dt},mx:{style:dt},my:{style:dt},margin:{style:dt},marginTop:{style:dt},marginRight:{style:dt},marginBottom:{style:dt},marginLeft:{style:dt},marginX:{style:dt},marginY:{style:dt},marginInline:{style:dt},marginInlineStart:{style:dt},marginInlineEnd:{style:dt},marginBlock:{style:dt},marginBlockStart:{style:dt},marginBlockEnd:{style:dt},displayPrint:{cssProperty:!1,transform:n=>({"@media print":{display:n}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:js},rowGap:{style:Bs},columnGap:{style:Vs},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:oa},maxWidth:{style:hc},minWidth:{transform:oa},height:{transform:oa},maxHeight:{transform:oa},minHeight:{transform:oa},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function PS(...n){const r=n.reduce((s,u)=>s.concat(Object.keys(u)),[]),l=new Set(r);return n.every(s=>l.size===Object.keys(s).length)}function WS(n,r){return typeof n=="function"?n(r):n}function eN(){function n(l,s,u,f){const d={[l]:s,theme:u},h=f[l];if(!h)return{[l]:s};const{cssProperty:y=l,themeKey:p,transform:S,style:v}=h;if(s==null)return null;if(p==="typography"&&s==="inherit")return{[l]:s};const D=Rs(u,p)||{};return v?v(d):tn(d,s,V=>{let E=Ms(D,S,V);return V===E&&typeof V=="string"&&(E=Ms(D,S,`${l}${V==="default"?"":np(V)}`,V)),y===!1?E:{[y]:E}})}function r(l){const{sx:s,theme:u={},nested:f}=l||{};if(!s)return null;const d=u.unstable_sxConfig??Us;function h(y){let p=y;if(typeof y=="function")p=y(u);else if(typeof y!="object")return y;if(!p)return null;const S=pS(u.breakpoints),v=Object.keys(S);let D=S;return Object.keys(p).forEach(N=>{const V=WS(p[N],u);if(V!=null)if(typeof V=="object")if(d[N])D=nl(D,n(N,V,u,d));else{const E=tn({theme:u},V,q=>({[N]:q}));PS(E,V)?D[N]=r({sx:V,theme:u,nested:!0}):D=nl(D,E)}else D=nl(D,n(N,V,u,d))}),!f&&u.modularCssLayers?{"@layer sx":ep(u,ap(v,D))}:ep(u,ap(v,D))}return Array.isArray(s)?s.map(h):h(s)}return r}const $r=eN();$r.filterProps=["sx"];function tN(n,r){var s;const l=this;if(l.vars){if(!((s=l.colorSchemes)!=null&&s[n])||typeof l.getColorSchemeSelector!="function")return{};let u=l.getColorSchemeSelector(n);return u==="&"?r:((u.includes("data-")||u.includes("."))&&(u=`*:where(${u.replace(/\s*&$/,"")}) &`),{[u]:r})}return l.palette.mode===n?r:{}}function sp(n={},...r){const{breakpoints:l={},palette:s={},spacing:u,shape:f={},...d}=n,h=uS(l),y=lp(u);let p=sa({breakpoints:h,direction:"ltr",components:{},palette:{mode:"light",...s},spacing:y,shape:{...mS,...f}},d);return p=dS(p),p.applyStyles=tN,p=r.reduce((S,v)=>sa(S,v),p),p.unstable_sxConfig={...Us,...d==null?void 0:d.unstable_sxConfig},p.unstable_sx=function(v){return $r({sx:v,theme:this})},p}const op=n=>n,aN=(()=>{let n=op;return{configure(r){n=r},generate(r){return n(r)},reset(){n=op}}})(),nN={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function up(n,r,l="Mui"){const s=nN[r];return s?`${l}-${s}`:`${aN.generate(n)}-${r}`}function rN(n,r,l="Mui"){const s={};return r.forEach(u=>{s[u]=up(n,u,l)}),s}function cp(n){const{variants:r,...l}=n,s={variants:r,style:ur(l),isProcessed:!0};return s.style===l||r&&r.forEach(u=>{typeof u.style!="function"&&(u.style=ur(u.style))}),s}const iN=sp();function pc(n){return n!=="ownerState"&&n!=="theme"&&n!=="sx"&&n!=="as"}function cr(n,r){return r&&n&&typeof n=="object"&&n.styles&&!n.styles.startsWith("@layer")&&(n.styles=`@layer ${r}{${String(n.styles)}}`),n}function lN(n){return n?(r,l)=>l[n]:null}function sN(n,r,l){n.theme=cN(n.theme)?l:n.theme[r]||n.theme}function Ls(n,r,l){const s=typeof r=="function"?r(n):r;if(Array.isArray(s))return s.flatMap(u=>Ls(n,u,l));if(Array.isArray(s==null?void 0:s.variants)){let u;if(s.isProcessed)u=l?cr(s.style,l):s.style;else{const{variants:f,...d}=s;u=l?cr(ur(d),l):d}return fp(n,s.variants,[u],l)}return s!=null&&s.isProcessed?l?cr(ur(s.style),l):s.style:l?cr(ur(s),l):s}function fp(n,r,l=[],s=void 0){var f;let u;e:for(let d=0;d<r.length;d+=1){const h=r[d];if(typeof h.props=="function"){if(u??(u={...n,...n.ownerState,ownerState:n.ownerState}),!h.props(u))continue}else for(const y in h.props)if(n[y]!==h.props[y]&&((f=n.ownerState)==null?void 0:f[y])!==h.props[y])continue e;typeof h.style=="function"?(u??(u={...n,...n.ownerState,ownerState:n.ownerState}),l.push(s?cr(ur(h.style(u)),s):h.style(u))):l.push(s?cr(ur(h.style),s):h.style)}return l}function oN(n={}){const{themeId:r,defaultTheme:l=iN,rootShouldForwardProp:s=pc,slotShouldForwardProp:u=pc}=n;function f(h){sN(h,r,l)}return(h,y={})=>{iS(h,Q=>Q.filter(J=>J!==$r));const{name:p,slot:S,skipVariantsResolver:v,skipSx:D,overridesResolver:N=lN(dN(S)),...V}=y,E=p&&p.startsWith("Mui")||S?"components":"custom",q=v!==void 0?v:S&&S!=="Root"&&S!=="root"||!1,P=D||!1;let K=pc;S==="Root"||S==="root"?K=s:S?K=u:fN(h)&&(K=void 0);const ae=rS(h,{shouldForwardProp:K,label:uN(),...V}),ee=Q=>{if(Q.__emotion_real===Q)return Q;if(typeof Q=="function")return function(_e){return Ls(_e,Q,_e.theme.modularCssLayers?E:void 0)};if(en(Q)){const J=cp(Q);return function(Me){return J.variants?Ls(Me,J,Me.theme.modularCssLayers?E:void 0):Me.theme.modularCssLayers?cr(J.style,E):J.style}}return Q},U=(...Q)=>{const J=[],_e=Q.map(ee),Me=[];if(J.push(f),p&&N&&Me.push(function($){var X,se;const le=(se=(X=$.theme.components)==null?void 0:X[p])==null?void 0:se.styleOverrides;if(!le)return null;const O={};for(const Te in le)O[Te]=Ls($,le[Te],$.theme.modularCssLayers?"theme":void 0);return N($,O)}),p&&!q&&Me.push(function($){var O,X;const F=$.theme,le=(X=(O=F==null?void 0:F.components)==null?void 0:O[p])==null?void 0:X.variants;return le?fp($,le,[],$.theme.modularCssLayers?"theme":void 0):null}),P||Me.push($r),Array.isArray(_e[0])){const b=_e.shift(),$=new Array(J.length).fill(""),F=new Array(Me.length).fill("");let le;le=[...$,...b,...F],le.raw=[...$,...b.raw,...F],J.unshift(le)}const We=[...J,..._e,...Me],be=ae(...We);return h.muiName&&(be.muiName=h.muiName),be};return ae.withConfig&&(U.withConfig=ae.withConfig),U}}function uN(n,r){return void 0}function cN(n){for(const r in n)return!1;return!0}function fN(n){return typeof n=="string"&&n.charCodeAt(0)>96}function dN(n){return n&&n.charAt(0).toLowerCase()+n.slice(1)}function gc(n,r,l=!1){const s={...r};for(const u in n)if(Object.prototype.hasOwnProperty.call(n,u)){const f=u;if(f==="components"||f==="slots")s[f]={...n[f],...s[f]};else if(f==="componentsProps"||f==="slotProps"){const d=n[f],h=r[f];if(!h)s[f]=d||{};else if(!d)s[f]=h;else{s[f]={...h};for(const y in d)if(Object.prototype.hasOwnProperty.call(d,y)){const p=y;s[f][p]=gc(d[p],h[p],l)}}}else f==="className"&&l&&r.className?s.className=fh(n==null?void 0:n.className,r==null?void 0:r.className):f==="style"&&l&&r.style?s.style={...n==null?void 0:n.style,...r==null?void 0:r.style}:s[f]===void 0&&(s[f]=n[f])}return s}function mN(n,r=Number.MIN_SAFE_INTEGER,l=Number.MAX_SAFE_INTEGER){return Math.max(r,Math.min(n,l))}function yc(n,r=0,l=1){return mN(n,r,l)}function hN(n){n=n.slice(1);const r=new RegExp(`.{1,${n.length>=6?2:1}}`,"g");let l=n.match(r);return l&&l[0].length===1&&(l=l.map(s=>s+s)),l?`rgb${l.length===4?"a":""}(${l.map((s,u)=>u<3?parseInt(s,16):Math.round(parseInt(s,16)/255*1e3)/1e3).join(", ")})`:""}function An(n){if(n.type)return n;if(n.charAt(0)==="#")return An(hN(n));const r=n.indexOf("("),l=n.substring(0,r);if(!["rgb","rgba","hsl","hsla","color"].includes(l))throw new Error(sr(9,n));let s=n.substring(r+1,n.length-1),u;if(l==="color"){if(s=s.split(" "),u=s.shift(),s.length===4&&s[3].charAt(0)==="/"&&(s[3]=s[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(u))throw new Error(sr(10,u))}else s=s.split(",");return s=s.map(f=>parseFloat(f)),{type:l,values:s,colorSpace:u}}const pN=n=>{const r=An(n);return r.values.slice(0,3).map((l,s)=>r.type.includes("hsl")&&s!==0?`${l}%`:l).join(" ")},ll=(n,r)=>{try{return pN(n)}catch{return n}};function Hs(n){const{type:r,colorSpace:l}=n;let{values:s}=n;return r.includes("rgb")?s=s.map((u,f)=>f<3?parseInt(u,10):u):r.includes("hsl")&&(s[1]=`${s[1]}%`,s[2]=`${s[2]}%`),r.includes("color")?s=`${l} ${s.join(" ")}`:s=`${s.join(", ")}`,`${r}(${s})`}function dp(n){n=An(n);const{values:r}=n,l=r[0],s=r[1]/100,u=r[2]/100,f=s*Math.min(u,1-u),d=(p,S=(p+l/30)%12)=>u-f*Math.max(Math.min(S-3,9-S,1),-1);let h="rgb";const y=[Math.round(d(0)*255),Math.round(d(8)*255),Math.round(d(4)*255)];return n.type==="hsla"&&(h+="a",y.push(r[3])),Hs({type:h,values:y})}function bc(n){n=An(n);let r=n.type==="hsl"||n.type==="hsla"?An(dp(n)).values:n.values;return r=r.map(l=>(n.type!=="color"&&(l/=255),l<=.03928?l/12.92:((l+.055)/1.055)**2.4)),Number((.2126*r[0]+.7152*r[1]+.0722*r[2]).toFixed(3))}function gN(n,r){const l=bc(n),s=bc(r);return(Math.max(l,s)+.05)/(Math.min(l,s)+.05)}function mp(n,r){return n=An(n),r=yc(r),(n.type==="rgb"||n.type==="hsl")&&(n.type+="a"),n.type==="color"?n.values[3]=`/${r}`:n.values[3]=r,Hs(n)}function fr(n,r,l){try{return mp(n,r)}catch{return n}}function qs(n,r){if(n=An(n),r=yc(r),n.type.includes("hsl"))n.values[2]*=1-r;else if(n.type.includes("rgb")||n.type.includes("color"))for(let l=0;l<3;l+=1)n.values[l]*=1-r;return Hs(n)}function Qe(n,r,l){try{return qs(n,r)}catch{return n}}function Gs(n,r){if(n=An(n),r=yc(r),n.type.includes("hsl"))n.values[2]+=(100-n.values[2])*r;else if(n.type.includes("rgb"))for(let l=0;l<3;l+=1)n.values[l]+=(255-n.values[l])*r;else if(n.type.includes("color"))for(let l=0;l<3;l+=1)n.values[l]+=(1-n.values[l])*r;return Hs(n)}function Xe(n,r,l){try{return Gs(n,r)}catch{return n}}function yN(n,r=.15){return bc(n)>.5?qs(n,r):Gs(n,r)}function Zs(n,r,l){try{return yN(n,r)}catch{return n}}const bN=pe.createContext(void 0);function vN(n){const{theme:r,name:l,props:s}=n;if(!r||!r.components||!r.components[l])return s;const u=r.components[l];return u.defaultProps?gc(u.defaultProps,s,r.components.mergeClassNameAndStyle):!u.styleOverrides&&!u.variants?gc(u,s,r.components.mergeClassNameAndStyle):s}function xN({props:n,name:r}){const l=pe.useContext(bN);return vN({props:n,name:r,theme:{components:l}})}const hp={theme:void 0};function SN(n){let r,l;return function(u){let f=r;return(f===void 0||u.theme!==l)&&(hp.theme=u.theme,f=cp(n(hp)),r=f,l=u.theme),f}}function NN(n=""){function r(...s){if(!s.length)return"";const u=s[0];return typeof u=="string"&&!u.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${n?`${n}-`:""}${u}${r(...s.slice(1))})`:`, ${u}`}return(s,...u)=>`var(--${n?`${n}-`:""}${s}${r(...u)})`}const pp=(n,r,l,s=[])=>{let u=n;r.forEach((f,d)=>{d===r.length-1?Array.isArray(u)?u[Number(f)]=l:u&&typeof u=="object"&&(u[f]=l):u&&typeof u=="object"&&(u[f]||(u[f]=s.includes(f)?[]:{}),u=u[f])})},_N=(n,r,l)=>{function s(u,f=[],d=[]){Object.entries(u).forEach(([h,y])=>{(!l||l&&!l([...f,h]))&&y!=null&&(typeof y=="object"&&Object.keys(y).length>0?s(y,[...f,h],Array.isArray(y)?[...d,h]:d):r([...f,h],y,d))})}s(n)},CN=(n,r)=>typeof r=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(s=>n.includes(s))||n[n.length-1].toLowerCase().includes("opacity")?r:`${r}px`:r;function vc(n,r){const{prefix:l,shouldSkipGeneratingVar:s}=r||{},u={},f={},d={};return _N(n,(h,y,p)=>{if((typeof y=="string"||typeof y=="number")&&(!s||!s(h,y))){const S=`--${l?`${l}-`:""}${h.join("-")}`,v=CN(h,y);Object.assign(u,{[S]:v}),pp(f,h,`var(${S})`,p),pp(d,h,`var(${S}, ${v})`,p)}},h=>h[0]==="vars"),{css:u,vars:f,varsWithDefaults:d}}function EN(n,r={}){const{getSelector:l=P,disableCssColorScheme:s,colorSchemeSelector:u,enableContrastVars:f}=r,{colorSchemes:d={},components:h,defaultColorScheme:y="light",...p}=n,{vars:S,css:v,varsWithDefaults:D}=vc(p,r);let N=D;const V={},{[y]:E,...q}=d;if(Object.entries(q||{}).forEach(([ee,U])=>{const{vars:Q,css:J,varsWithDefaults:_e}=vc(U,r);N=sa(N,_e),V[ee]={css:J,vars:Q}}),E){const{css:ee,vars:U,varsWithDefaults:Q}=vc(E,r);N=sa(N,Q),V[y]={css:ee,vars:U}}function P(ee,U){var J,_e;let Q=u;if(u==="class"&&(Q=".%s"),u==="data"&&(Q="[data-%s]"),u!=null&&u.startsWith("data-")&&!u.includes("%s")&&(Q=`[${u}="%s"]`),ee){if(Q==="media")return n.defaultColorScheme===ee?":root":{[`@media (prefers-color-scheme: ${((_e=(J=d[ee])==null?void 0:J.palette)==null?void 0:_e.mode)||ee})`]:{":root":U}};if(Q)return n.defaultColorScheme===ee?`:root, ${Q.replace("%s",String(ee))}`:Q.replace("%s",String(ee))}return":root"}return{vars:N,generateThemeVars:()=>{let ee={...S};return Object.entries(V).forEach(([,{vars:U}])=>{ee=sa(ee,U)}),ee},generateStyleSheets:()=>{var Me,We;const ee=[],U=n.defaultColorScheme||"light";function Q(be,b){Object.keys(b).length&&ee.push(typeof be=="string"?{[be]:{...b}}:be)}Q(l(void 0,{...v}),v);const{[U]:J,..._e}=V;if(J){const{css:be}=J,b=(We=(Me=d[U])==null?void 0:Me.palette)==null?void 0:We.mode,$=!s&&b?{colorScheme:b,...be}:{...be};Q(l(U,{...$}),$)}return Object.entries(_e).forEach(([be,{css:b}])=>{var le,O;const $=(O=(le=d[be])==null?void 0:le.palette)==null?void 0:O.mode,F=!s&&$?{colorScheme:$,...b}:{...b};Q(l(be,{...F}),F)}),f&&ee.push({":root":{"--__l-threshold":"0.7","--__l":"clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)","--__a":"clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)"}}),ee}}}function wN(n){return function(l){return n==="media"?`@media (prefers-color-scheme: ${l})`:n?n.startsWith("data-")&&!n.includes("%s")?`[${n}="${l}"] &`:n==="class"?`.${l} &`:n==="data"?`[data-${l}] &`:`${n.replace("%s",l)} &`:"&"}}const sl={black:"#000",white:"#fff"},DN={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},Fr={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Qr={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},ol={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},Xr={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},Kr={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Jr={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function gp(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:sl.white,default:sl.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const yp=gp();function bp(){return{text:{primary:sl.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:sl.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const xc=bp();function vp(n,r,l,s){const u=s.light||s,f=s.dark||s*1.5;n[r]||(n.hasOwnProperty(l)?n[r]=n[l]:r==="light"?n.light=Gs(n.main,u):r==="dark"&&(n.dark=qs(n.main,f)))}function xp(n,r,l,s,u){const f=u.light||u,d=u.dark||u*1.5;r[l]||(r.hasOwnProperty(s)?r[l]=r[s]:l==="light"?r.light=`color-mix(in ${n}, ${r.main}, #fff ${(f*100).toFixed(0)}%)`:l==="dark"&&(r.dark=`color-mix(in ${n}, ${r.main}, #000 ${(d*100).toFixed(0)}%)`))}function AN(n="light"){return n==="dark"?{main:Xr[200],light:Xr[50],dark:Xr[400]}:{main:Xr[700],light:Xr[400],dark:Xr[800]}}function TN(n="light"){return n==="dark"?{main:Fr[200],light:Fr[50],dark:Fr[400]}:{main:Fr[500],light:Fr[300],dark:Fr[700]}}function ON(n="light"){return n==="dark"?{main:Qr[500],light:Qr[300],dark:Qr[700]}:{main:Qr[700],light:Qr[400],dark:Qr[800]}}function RN(n="light"){return n==="dark"?{main:Kr[400],light:Kr[300],dark:Kr[700]}:{main:Kr[700],light:Kr[500],dark:Kr[900]}}function MN(n="light"){return n==="dark"?{main:Jr[400],light:Jr[300],dark:Jr[700]}:{main:Jr[800],light:Jr[500],dark:Jr[900]}}function zN(n="light"){return n==="dark"?{main:ol[400],light:ol[300],dark:ol[700]}:{main:"#ed6c02",light:ol[500],dark:ol[900]}}function kN(n){return`oklch(from ${n} var(--__l) 0 h / var(--__a))`}function Sc(n){const{mode:r="light",contrastThreshold:l=3,tonalOffset:s=.2,colorSpace:u,...f}=n,d=n.primary||AN(r),h=n.secondary||TN(r),y=n.error||ON(r),p=n.info||RN(r),S=n.success||MN(r),v=n.warning||zN(r);function D(q){return u?kN(q):gN(q,xc.text.primary)>=l?xc.text.primary:yp.text.primary}const N=({color:q,name:P,mainShade:K=500,lightShade:ae=300,darkShade:ee=700})=>{if(q={...q},!q.main&&q[K]&&(q.main=q[K]),!q.hasOwnProperty("main"))throw new Error(sr(11,P?` (${P})`:"",K));if(typeof q.main!="string")throw new Error(sr(12,P?` (${P})`:"",JSON.stringify(q.main)));return u?(xp(u,q,"light",ae,s),xp(u,q,"dark",ee,s)):(vp(q,"light",ae,s),vp(q,"dark",ee,s)),q.contrastText||(q.contrastText=D(q.main)),q};let V;return r==="light"?V=gp():r==="dark"&&(V=bp()),sa({common:{...sl},mode:r,primary:N({color:d,name:"primary"}),secondary:N({color:h,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:N({color:y,name:"error"}),warning:N({color:v,name:"warning"}),info:N({color:p,name:"info"}),success:N({color:S,name:"success"}),grey:DN,contrastThreshold:l,getContrastText:D,augmentColor:N,tonalOffset:s,...V},f)}function jN(n){const r={};return Object.entries(n).forEach(s=>{const[u,f]=s;typeof f=="object"&&(r[u]=`${f.fontStyle?`${f.fontStyle} `:""}${f.fontVariant?`${f.fontVariant} `:""}${f.fontWeight?`${f.fontWeight} `:""}${f.fontStretch?`${f.fontStretch} `:""}${f.fontSize||""}${f.lineHeight?`/${f.lineHeight} `:""}${f.fontFamily||""}`)}),r}function VN(n,r){return{toolbar:{minHeight:56,[n.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[n.up("sm")]:{minHeight:64}},...r}}function BN(n){return Math.round(n*1e5)/1e5}const Sp={textTransform:"uppercase"},Np='"Roboto", "Helvetica", "Arial", sans-serif';function UN(n,r){const{fontFamily:l=Np,fontSize:s=14,fontWeightLight:u=300,fontWeightRegular:f=400,fontWeightMedium:d=500,fontWeightBold:h=700,htmlFontSize:y=16,allVariants:p,pxToRem:S,...v}=typeof r=="function"?r(n):r,D=s/14,N=S||(q=>`${q/y*D}rem`),V=(q,P,K,ae,ee)=>({fontFamily:l,fontWeight:q,fontSize:N(P),lineHeight:K,...l===Np?{letterSpacing:`${BN(ae/P)}em`}:{},...ee,...p}),E={h1:V(u,96,1.167,-1.5),h2:V(u,60,1.2,-.5),h3:V(f,48,1.167,0),h4:V(f,34,1.235,.25),h5:V(f,24,1.334,0),h6:V(d,20,1.6,.15),subtitle1:V(f,16,1.75,.15),subtitle2:V(d,14,1.57,.1),body1:V(f,16,1.5,.15),body2:V(f,14,1.43,.15),button:V(d,14,1.75,.4,Sp),caption:V(f,12,1.66,.4),overline:V(f,12,2.66,1,Sp),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return sa({htmlFontSize:y,pxToRem:N,fontFamily:l,fontSize:s,fontWeightLight:u,fontWeightRegular:f,fontWeightMedium:d,fontWeightBold:h,...E},v,{clone:!1})}const LN=.2,HN=.14,qN=.12;function ut(...n){return[`${n[0]}px ${n[1]}px ${n[2]}px ${n[3]}px rgba(0,0,0,${LN})`,`${n[4]}px ${n[5]}px ${n[6]}px ${n[7]}px rgba(0,0,0,${HN})`,`${n[8]}px ${n[9]}px ${n[10]}px ${n[11]}px rgba(0,0,0,${qN})`].join(",")}const GN=["none",ut(0,2,1,-1,0,1,1,0,0,1,3,0),ut(0,3,1,-2,0,2,2,0,0,1,5,0),ut(0,3,3,-2,0,3,4,0,0,1,8,0),ut(0,2,4,-1,0,4,5,0,0,1,10,0),ut(0,3,5,-1,0,5,8,0,0,1,14,0),ut(0,3,5,-1,0,6,10,0,0,1,18,0),ut(0,4,5,-2,0,7,10,1,0,2,16,1),ut(0,5,5,-3,0,8,10,1,0,3,14,2),ut(0,5,6,-3,0,9,12,1,0,3,16,2),ut(0,6,6,-3,0,10,14,1,0,4,18,3),ut(0,6,7,-4,0,11,15,1,0,4,20,3),ut(0,7,8,-4,0,12,17,2,0,5,22,4),ut(0,7,8,-4,0,13,19,2,0,5,24,4),ut(0,7,9,-4,0,14,21,2,0,5,26,4),ut(0,8,9,-5,0,15,22,2,0,6,28,5),ut(0,8,10,-5,0,16,24,2,0,6,30,5),ut(0,8,11,-5,0,17,26,2,0,6,32,5),ut(0,9,11,-5,0,18,28,2,0,7,34,6),ut(0,9,12,-6,0,19,29,2,0,7,36,6),ut(0,10,13,-6,0,20,31,3,0,8,38,7),ut(0,10,13,-6,0,21,33,3,0,8,40,7),ut(0,10,14,-6,0,22,35,3,0,8,42,7),ut(0,11,14,-7,0,23,36,3,0,9,44,8),ut(0,11,15,-7,0,24,38,3,0,9,46,8)],ZN={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},YN={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function _p(n){return`${Math.round(n)}ms`}function $N(n){if(!n)return 0;const r=n/36;return Math.min(Math.round((4+15*r**.25+r/5)*10),3e3)}function FN(n){const r={...ZN,...n.easing},l={...YN,...n.duration};return{getAutoHeightDuration:$N,create:(u=["all"],f={})=>{const{duration:d=l.standard,easing:h=r.easeInOut,delay:y=0,...p}=f;return(Array.isArray(u)?u:[u]).map(S=>`${S} ${typeof d=="string"?d:_p(d)} ${h} ${typeof y=="string"?y:_p(y)}`).join(",")},...n,easing:r,duration:l}}const QN={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function XN(n){return en(n)||typeof n>"u"||typeof n=="string"||typeof n=="boolean"||typeof n=="number"||Array.isArray(n)}function Cp(n={}){const r={...n};function l(s){const u=Object.entries(s);for(let f=0;f<u.length;f++){const[d,h]=u[f];!XN(h)||d.startsWith("unstable_")?delete s[d]:en(h)&&(s[d]={...h},l(s[d]))}}return l(r),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
99
122
 
100
123
  const theme = ${JSON.stringify(r,null,2)};
101
124
 
102
125
  theme.breakpoints = createBreakpoints(theme.breakpoints || {});
103
126
  theme.transitions = createTransitions(theme.transitions || {});
104
127
 
105
- export default theme;`}function ap(n){return typeof n=="number"?`${(n*100).toFixed(0)}%`:`calc((${n}) * 100%)`}const aS=n=>{if(!Number.isNaN(+n))return+n;const r=n.match(/\d*\.?\d+/g);if(!r)return 0;let l=0;for(let s=0;s<r.length;s+=1)l+=+r[s];return l};function nS(n){Object.assign(n,{alpha(r,l){const s=this||n;return s.colorSpace?`oklch(from ${r} l c h / ${typeof l=="string"?`calc(${l})`:l})`:s.vars?`rgba(${r.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${typeof l=="string"?`calc(${l})`:l})`:Ym(r,aS(l))},lighten(r,l){const s=this||n;return s.colorSpace?`color-mix(in ${s.colorSpace}, ${r}, #fff ${ap(l)})`:Ds(r,l)},darken(r,l){const s=this||n;return s.colorSpace?`color-mix(in ${s.colorSpace}, ${r}, #000 ${ap(l)})`:Rs(r,l)}})}function oc(n={},...r){const{breakpoints:l,mixins:s={},spacing:u,palette:f={},transitions:d={},typography:m={},shape:y,colorSpace:p,..._}=n;if(n.vars&&n.generateThemeVars===void 0)throw new Error(sr(20));const x=sc({...f,colorSpace:p}),O=Lm(n);let S=oa(O,{mixins:G_(O.breakpoints,s),palette:x,shadows:F_.slice(),typography:$_(x,m),transitions:I_(d),zIndex:{...eS}});return S=oa(S,_),S=r.reduce((U,C)=>oa(U,C),S),S.unstable_sxConfig={...ks,..._==null?void 0:_.unstable_sxConfig},S.unstable_sx=function(C){return Yr({sx:C,theme:this})},S.toRuntimeSource=tp,nS(S),S}function rS(n){let r;return n<1?r=5.11916*n**2:r=4.5*Math.log(n+1)+2,Math.round(r*10)/1e3}const iS=[...Array(25)].map((n,r)=>{if(r===0)return"none";const l=rS(r);return`linear-gradient(rgba(255 255 255 / ${l}), rgba(255 255 255 / ${l}))`});function np(n){return{inputPlaceholder:n==="dark"?.5:.42,inputUnderline:n==="dark"?.7:.42,switchTrackDisabled:n==="dark"?.2:.12,switchTrack:n==="dark"?.3:.38}}function rp(n){return n==="dark"?iS:[]}function lS(n){const{palette:r={mode:"light"},opacity:l,overlays:s,colorSpace:u,...f}=n,d=sc({...r,colorSpace:u});return{palette:d,opacity:{...np(d.mode),...l},overlays:s||rp(d.mode),...f}}function sS(n){var r;return!!n[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!n[0].match(/sxConfig$/)||n[0]==="palette"&&!!((r=n[1])!=null&&r.match(/(mode|contrastThreshold|tonalOffset)/))}const oS=n=>[...[...Array(25)].map((r,l)=>`--${n?`${n}-`:""}overlays-${l}`),`--${n?`${n}-`:""}palette-AppBar-darkBg`,`--${n?`${n}-`:""}palette-AppBar-darkColor`],uS=n=>(r,l)=>{const s=n.rootSelector||":root",u=n.colorSchemeSelector;let f=u;if(u==="class"&&(f=".%s"),u==="data"&&(f="[data-%s]"),u!=null&&u.startsWith("data-")&&!u.includes("%s")&&(f=`[${u}="%s"]`),n.defaultColorScheme===r){if(r==="dark"){const d={};return oS(n.cssVarPrefix).forEach(m=>{d[m]=l[m],delete l[m]}),f==="media"?{[s]:l,"@media (prefers-color-scheme: dark)":{[s]:d}}:f?{[f.replace("%s",r)]:d,[`${s}, ${f.replace("%s",r)}`]:l}:{[s]:{...l,...d}}}if(f&&f!=="media")return`${s}, ${f.replace("%s",String(r))}`}else if(r){if(f==="media")return{[`@media (prefers-color-scheme: ${String(r)})`]:{[s]:l}};if(f)return f.replace("%s",String(r))}return s};function cS(n,r){r.forEach(l=>{n[l]||(n[l]={})})}function V(n,r,l){!n[r]&&l&&(n[r]=l)}function ll(n){return typeof n!="string"||!n.startsWith("hsl")?n:Gm(n)}function an(n,r){`${r}Channel`in n||(n[`${r}Channel`]=nl(ll(n[r])))}function fS(n){return typeof n=="number"?`${n}px`:typeof n=="string"||typeof n=="function"||Array.isArray(n)?n:"8px"}const Ya=n=>{try{return n()}catch{}},dS=(n="mui")=>z_(n);function uc(n,r,l,s,u){if(!l)return;l=l===!0?{}:l;const f=u==="dark"?"dark":"light";if(!s){r[u]=lS({...l,palette:{mode:f,...l==null?void 0:l.palette},colorSpace:n});return}const{palette:d,...m}=oc({...s,palette:{mode:f,...l==null?void 0:l.palette},colorSpace:n});return r[u]={...l,palette:d,opacity:{...np(f),...l==null?void 0:l.opacity},overlays:(l==null?void 0:l.overlays)||rp(f)},m}function hS(n={},...r){const{colorSchemes:l={light:!0},defaultColorScheme:s,disableCssColorScheme:u=!1,cssVarPrefix:f="mui",nativeColor:d=!1,shouldSkipGeneratingVar:m=sS,colorSchemeSelector:y=l.light&&l.dark?"media":void 0,rootSelector:p=":root",..._}=n,x=Object.keys(l)[0],O=s||(l.light&&x!=="light"?"light":x),S=dS(f),{[O]:U,light:C,dark:Z,...I}=l,F={...I};let ae=U;if((O==="dark"&&!("dark"in l)||O==="light"&&!("light"in l))&&(ae=!0),!ae)throw new Error(sr(21,O));let te;d&&(te="oklch");const L=uc(te,F,ae,_,O);C&&!F.light&&uc(te,F,C,void 0,"light"),Z&&!F.dark&&uc(te,F,Z,void 0,"dark");let K={defaultColorScheme:O,...L,cssVarPrefix:f,colorSchemeSelector:y,rootSelector:p,getCssVar:S,colorSchemes:F,font:{...Z_(L.typography),...L.font},spacing:fS(_.spacing)};Object.keys(K.colorSchemes).forEach(ve=>{const v=K.colorSchemes[ve].palette,$=le=>{const N=le.split("-"),Q=N[1],se=N[2];return S(le,v[Q][se])};v.mode==="light"&&(V(v.common,"background","#fff"),V(v.common,"onBackground","#000")),v.mode==="dark"&&(V(v.common,"background","#000"),V(v.common,"onBackground","#fff"));function X(le,N,Q){if(te){let se;return le===cr&&(se=`transparent ${((1-Q)*100).toFixed(0)}%`),le===Qe&&(se=`#000 ${(Q*100).toFixed(0)}%`),le===Ke&&(se=`#fff ${(Q*100).toFixed(0)}%`),`color-mix(in ${te}, ${N}, ${se})`}return le(N,Q)}if(cS(v,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),v.mode==="light"){V(v.Alert,"errorColor",X(Qe,d?S("palette-error-light"):v.error.light,.6)),V(v.Alert,"infoColor",X(Qe,d?S("palette-info-light"):v.info.light,.6)),V(v.Alert,"successColor",X(Qe,d?S("palette-success-light"):v.success.light,.6)),V(v.Alert,"warningColor",X(Qe,d?S("palette-warning-light"):v.warning.light,.6)),V(v.Alert,"errorFilledBg",$("palette-error-main")),V(v.Alert,"infoFilledBg",$("palette-info-main")),V(v.Alert,"successFilledBg",$("palette-success-main")),V(v.Alert,"warningFilledBg",$("palette-warning-main")),V(v.Alert,"errorFilledColor",Ya(()=>v.getContrastText(v.error.main))),V(v.Alert,"infoFilledColor",Ya(()=>v.getContrastText(v.info.main))),V(v.Alert,"successFilledColor",Ya(()=>v.getContrastText(v.success.main))),V(v.Alert,"warningFilledColor",Ya(()=>v.getContrastText(v.warning.main))),V(v.Alert,"errorStandardBg",X(Ke,d?S("palette-error-light"):v.error.light,.9)),V(v.Alert,"infoStandardBg",X(Ke,d?S("palette-info-light"):v.info.light,.9)),V(v.Alert,"successStandardBg",X(Ke,d?S("palette-success-light"):v.success.light,.9)),V(v.Alert,"warningStandardBg",X(Ke,d?S("palette-warning-light"):v.warning.light,.9)),V(v.Alert,"errorIconColor",$("palette-error-main")),V(v.Alert,"infoIconColor",$("palette-info-main")),V(v.Alert,"successIconColor",$("palette-success-main")),V(v.Alert,"warningIconColor",$("palette-warning-main")),V(v.AppBar,"defaultBg",$("palette-grey-100")),V(v.Avatar,"defaultBg",$("palette-grey-400")),V(v.Button,"inheritContainedBg",$("palette-grey-300")),V(v.Button,"inheritContainedHoverBg",$("palette-grey-A100")),V(v.Chip,"defaultBorder",$("palette-grey-400")),V(v.Chip,"defaultAvatarColor",$("palette-grey-700")),V(v.Chip,"defaultIconColor",$("palette-grey-700")),V(v.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),V(v.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),V(v.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),V(v.LinearProgress,"primaryBg",X(Ke,d?S("palette-primary-main"):v.primary.main,.62)),V(v.LinearProgress,"secondaryBg",X(Ke,d?S("palette-secondary-main"):v.secondary.main,.62)),V(v.LinearProgress,"errorBg",X(Ke,d?S("palette-error-main"):v.error.main,.62)),V(v.LinearProgress,"infoBg",X(Ke,d?S("palette-info-main"):v.info.main,.62)),V(v.LinearProgress,"successBg",X(Ke,d?S("palette-success-main"):v.success.main,.62)),V(v.LinearProgress,"warningBg",X(Ke,d?S("palette-warning-light"):v.warning.main,.62)),V(v.Skeleton,"bg",te?X(cr,d?S("palette-text-primary"):v.text.primary,.11):`rgba(${$("palette-text-primaryChannel")} / 0.11)`),V(v.Slider,"primaryTrack",X(Ke,d?S("palette-primary-main"):v.primary.main,.62)),V(v.Slider,"secondaryTrack",X(Ke,d?S("palette-secondary-main"):v.secondary.main,.62)),V(v.Slider,"errorTrack",X(Ke,d?S("palette-error-main"):v.error.main,.62)),V(v.Slider,"infoTrack",X(Ke,d?S("palette-info-main"):v.info.main,.62)),V(v.Slider,"successTrack",X(Ke,d?S("palette-success-main"):v.success.main,.62)),V(v.Slider,"warningTrack",X(Ke,d?S("palette-warning-main"):v.warning.main,.62));const le=te?X(Qe,d?S("palette-background-default"):v.background.default,.6825):Us(v.background.default,.8);V(v.SnackbarContent,"bg",le),V(v.SnackbarContent,"color",Ya(()=>te?lc.text.primary:v.getContrastText(le))),V(v.SpeedDialAction,"fabHoverBg",Us(v.background.paper,.15)),V(v.StepConnector,"border",$("palette-grey-400")),V(v.StepContent,"border",$("palette-grey-400")),V(v.Switch,"defaultColor",$("palette-common-white")),V(v.Switch,"defaultDisabledColor",$("palette-grey-100")),V(v.Switch,"primaryDisabledColor",X(Ke,d?S("palette-primary-main"):v.primary.main,.62)),V(v.Switch,"secondaryDisabledColor",X(Ke,d?S("palette-secondary-main"):v.secondary.main,.62)),V(v.Switch,"errorDisabledColor",X(Ke,d?S("palette-error-main"):v.error.main,.62)),V(v.Switch,"infoDisabledColor",X(Ke,d?S("palette-info-main"):v.info.main,.62)),V(v.Switch,"successDisabledColor",X(Ke,d?S("palette-success-main"):v.success.main,.62)),V(v.Switch,"warningDisabledColor",X(Ke,d?S("palette-warning-main"):v.warning.main,.62)),V(v.TableCell,"border",X(Ke,cr(d?S("palette-divider"):v.divider,1),.88)),V(v.Tooltip,"bg",X(cr,d?S("palette-grey-700"):v.grey[700],.92))}if(v.mode==="dark"){V(v.Alert,"errorColor",X(Ke,d?S("palette-error-light"):v.error.light,.6)),V(v.Alert,"infoColor",X(Ke,d?S("palette-info-light"):v.info.light,.6)),V(v.Alert,"successColor",X(Ke,d?S("palette-success-light"):v.success.light,.6)),V(v.Alert,"warningColor",X(Ke,d?S("palette-warning-light"):v.warning.light,.6)),V(v.Alert,"errorFilledBg",$("palette-error-dark")),V(v.Alert,"infoFilledBg",$("palette-info-dark")),V(v.Alert,"successFilledBg",$("palette-success-dark")),V(v.Alert,"warningFilledBg",$("palette-warning-dark")),V(v.Alert,"errorFilledColor",Ya(()=>v.getContrastText(v.error.dark))),V(v.Alert,"infoFilledColor",Ya(()=>v.getContrastText(v.info.dark))),V(v.Alert,"successFilledColor",Ya(()=>v.getContrastText(v.success.dark))),V(v.Alert,"warningFilledColor",Ya(()=>v.getContrastText(v.warning.dark))),V(v.Alert,"errorStandardBg",X(Qe,d?S("palette-error-light"):v.error.light,.9)),V(v.Alert,"infoStandardBg",X(Qe,d?S("palette-info-light"):v.info.light,.9)),V(v.Alert,"successStandardBg",X(Qe,d?S("palette-success-light"):v.success.light,.9)),V(v.Alert,"warningStandardBg",X(Qe,d?S("palette-warning-light"):v.warning.light,.9)),V(v.Alert,"errorIconColor",$("palette-error-main")),V(v.Alert,"infoIconColor",$("palette-info-main")),V(v.Alert,"successIconColor",$("palette-success-main")),V(v.Alert,"warningIconColor",$("palette-warning-main")),V(v.AppBar,"defaultBg",$("palette-grey-900")),V(v.AppBar,"darkBg",$("palette-background-paper")),V(v.AppBar,"darkColor",$("palette-text-primary")),V(v.Avatar,"defaultBg",$("palette-grey-600")),V(v.Button,"inheritContainedBg",$("palette-grey-800")),V(v.Button,"inheritContainedHoverBg",$("palette-grey-700")),V(v.Chip,"defaultBorder",$("palette-grey-700")),V(v.Chip,"defaultAvatarColor",$("palette-grey-300")),V(v.Chip,"defaultIconColor",$("palette-grey-300")),V(v.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),V(v.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),V(v.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),V(v.LinearProgress,"primaryBg",X(Qe,d?S("palette-primary-main"):v.primary.main,.5)),V(v.LinearProgress,"secondaryBg",X(Qe,d?S("palette-secondary-main"):v.secondary.main,.5)),V(v.LinearProgress,"errorBg",X(Qe,d?S("palette-error-main"):v.error.main,.5)),V(v.LinearProgress,"infoBg",X(Qe,d?S("palette-info-main"):v.info.main,.5)),V(v.LinearProgress,"successBg",X(Qe,d?S("palette-success-main"):v.success.main,.5)),V(v.LinearProgress,"warningBg",X(Qe,d?S("palette-warning-main"):v.warning.main,.5)),V(v.Skeleton,"bg",te?X(cr,d?S("palette-text-primary"):v.text.primary,.13):`rgba(${$("palette-text-primaryChannel")} / 0.13)`),V(v.Slider,"primaryTrack",X(Qe,d?S("palette-primary-main"):v.primary.main,.5)),V(v.Slider,"secondaryTrack",X(Qe,d?S("palette-secondary-main"):v.secondary.main,.5)),V(v.Slider,"errorTrack",X(Qe,d?S("palette-error-main"):v.error.main,.5)),V(v.Slider,"infoTrack",X(Qe,d?S("palette-info-main"):v.info.main,.5)),V(v.Slider,"successTrack",X(Qe,d?S("palette-success-main"):v.success.main,.5)),V(v.Slider,"warningTrack",X(Qe,d?S("palette-warning-light"):v.warning.main,.5));const le=te?X(Ke,d?S("palette-background-default"):v.background.default,.985):Us(v.background.default,.98);V(v.SnackbarContent,"bg",le),V(v.SnackbarContent,"color",Ya(()=>te?Km.text.primary:v.getContrastText(le))),V(v.SpeedDialAction,"fabHoverBg",Us(v.background.paper,.15)),V(v.StepConnector,"border",$("palette-grey-600")),V(v.StepContent,"border",$("palette-grey-600")),V(v.Switch,"defaultColor",$("palette-grey-300")),V(v.Switch,"defaultDisabledColor",$("palette-grey-600")),V(v.Switch,"primaryDisabledColor",X(Qe,d?S("palette-primary-main"):v.primary.main,.55)),V(v.Switch,"secondaryDisabledColor",X(Qe,d?S("palette-secondary-main"):v.secondary.main,.55)),V(v.Switch,"errorDisabledColor",X(Qe,d?S("palette-error-main"):v.error.main,.55)),V(v.Switch,"infoDisabledColor",X(Qe,d?S("palette-info-main"):v.info.main,.55)),V(v.Switch,"successDisabledColor",X(Qe,d?S("palette-success-main"):v.success.main,.55)),V(v.Switch,"warningDisabledColor",X(Qe,d?S("palette-warning-light"):v.warning.main,.55)),V(v.TableCell,"border",X(Qe,cr(d?S("palette-divider"):v.divider,1),.68)),V(v.Tooltip,"bg",X(cr,d?S("palette-grey-700"):v.grey[700],.92))}an(v.background,"default"),an(v.background,"paper"),an(v.common,"background"),an(v.common,"onBackground"),an(v,"divider"),Object.keys(v).forEach(le=>{const N=v[le];le!=="tonalOffset"&&N&&typeof N=="object"&&(N.main&&V(v[le],"mainChannel",nl(ll(N.main))),N.light&&V(v[le],"lightChannel",nl(ll(N.light))),N.dark&&V(v[le],"darkChannel",nl(ll(N.dark))),N.contrastText&&V(v[le],"contrastTextChannel",nl(ll(N.contrastText))),le==="text"&&(an(v[le],"primary"),an(v[le],"secondary")),le==="action"&&(N.active&&an(v[le],"active"),N.selected&&an(v[le],"selected")))})}),K=r.reduce((ve,v)=>oa(ve,v),K);const J={prefix:f,disableCssColorScheme:u,shouldSkipGeneratingVar:m,getSelector:uS(K),enableContrastVars:d},{vars:we,generateThemeVars:je,generateStyleSheets:Ie}=j_(K,J);return K.vars=we,Object.entries(K.colorSchemes[K.defaultColorScheme]).forEach(([ve,v])=>{K[ve]=v}),K.generateThemeVars=je,K.generateStyleSheets=Ie,K.generateSpacing=function(){return Bm(_.spacing,Iu(this))},K.getColorSchemeSelector=M_(y),K.spacing=K.generateSpacing(),K.shouldSkipGeneratingVar=m,K.unstable_sxConfig={...ks,..._==null?void 0:_.unstable_sxConfig},K.unstable_sx=function(v){return Yr({sx:v,theme:this})},K.toRuntimeSource=tp,K}function ip(n,r,l){n.colorSchemes&&l&&(n.colorSchemes[r]={...l!==!0&&l,palette:sc({...l===!0?{}:l.palette,mode:r})})}function mS(n={},...r){const{palette:l,cssVariables:s=!1,colorSchemes:u=l?void 0:{light:!0},defaultColorScheme:f=l==null?void 0:l.mode,...d}=n,m=f||"light",y=u==null?void 0:u[m],p={...u,...l?{[m]:{...typeof y!="boolean"&&y,palette:l}}:void 0};if(s===!1){if(!("colorSchemes"in n))return oc(n,...r);let _=l;"palette"in n||p[m]&&(p[m]!==!0?_=p[m].palette:m==="dark"&&(_={mode:"dark"}));const x=oc({...n,palette:_},...r);return x.defaultColorScheme=m,x.colorSchemes=p,x.palette.mode==="light"&&(x.colorSchemes.light={...p.light!==!0&&p.light,palette:x.palette},ip(x,"dark",p.dark)),x.palette.mode==="dark"&&(x.colorSchemes.dark={...p.dark!==!0&&p.dark,palette:x.palette},ip(x,"light",p.light)),x}return!l&&!("light"in p)&&m==="light"&&(p.light=!0),hS({...d,colorSchemes:p,defaultColorScheme:m,...typeof s!="boolean"&&s},...r)}function pS(n){return String(n).match(/[\d.\-+]*\s*(.*)/)[1]||""}function gS(n){return parseFloat(n)}const yS=mS();function vS(n){return n!=="ownerState"&&n!=="theme"&&n!=="sx"&&n!=="as"}const bS=p_({themeId:h1,defaultTheme:yS,rootShouldForwardProp:n=>vS(n)&&n!=="classes"}),xS=O_;function _S(n){return E_(n)}function SS(n){return Hm("MuiSkeleton",n)}f_("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const wS=n=>{const{classes:r,variant:l,animation:s,hasChildren:u,width:f,height:d}=n;return d1({root:["root",l,s,u&&"withChildren",u&&!f&&"fitContent",u&&!d&&"heightAuto"]},SS,r)},cc=wm`
128
+ export default theme;`}function Ep(n){return typeof n=="number"?`${(n*100).toFixed(0)}%`:`calc((${n}) * 100%)`}const KN=n=>{if(!Number.isNaN(+n))return+n;const r=n.match(/\d*\.?\d+/g);if(!r)return 0;let l=0;for(let s=0;s<r.length;s+=1)l+=+r[s];return l};function JN(n){Object.assign(n,{alpha(r,l){const s=this||n;return s.colorSpace?`oklch(from ${r} l c h / ${typeof l=="string"?`calc(${l})`:l})`:s.vars?`rgba(${r.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${typeof l=="string"?`calc(${l})`:l})`:mp(r,KN(l))},lighten(r,l){const s=this||n;return s.colorSpace?`color-mix(in ${s.colorSpace}, ${r}, #fff ${Ep(l)})`:Gs(r,l)},darken(r,l){const s=this||n;return s.colorSpace?`color-mix(in ${s.colorSpace}, ${r}, #000 ${Ep(l)})`:qs(r,l)}})}function Nc(n={},...r){const{breakpoints:l,mixins:s={},spacing:u,palette:f={},transitions:d={},typography:h={},shape:y,colorSpace:p,...S}=n;if(n.vars&&n.generateThemeVars===void 0)throw new Error(sr(20));const v=Sc({...f,colorSpace:p}),D=sp(n);let N=sa(D,{mixins:VN(D.breakpoints,s),palette:v,shadows:GN.slice(),typography:UN(v,h),transitions:FN(d),zIndex:{...QN}});return N=sa(N,S),N=r.reduce((V,E)=>sa(V,E),N),N.unstable_sxConfig={...Us,...S==null?void 0:S.unstable_sxConfig},N.unstable_sx=function(E){return $r({sx:E,theme:this})},N.toRuntimeSource=Cp,JN(N),N}function IN(n){let r;return n<1?r=5.11916*n**2:r=4.5*Math.log(n+1)+2,Math.round(r*10)/1e3}const PN=[...Array(25)].map((n,r)=>{if(r===0)return"none";const l=IN(r);return`linear-gradient(rgba(255 255 255 / ${l}), rgba(255 255 255 / ${l}))`});function wp(n){return{inputPlaceholder:n==="dark"?.5:.42,inputUnderline:n==="dark"?.7:.42,switchTrackDisabled:n==="dark"?.2:.12,switchTrack:n==="dark"?.3:.38}}function Dp(n){return n==="dark"?PN:[]}function WN(n){const{palette:r={mode:"light"},opacity:l,overlays:s,colorSpace:u,...f}=n,d=Sc({...r,colorSpace:u});return{palette:d,opacity:{...wp(d.mode),...l},overlays:s||Dp(d.mode),...f}}function e_(n){var r;return!!n[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!n[0].match(/sxConfig$/)||n[0]==="palette"&&!!((r=n[1])!=null&&r.match(/(mode|contrastThreshold|tonalOffset)/))}const t_=n=>[...[...Array(25)].map((r,l)=>`--${n?`${n}-`:""}overlays-${l}`),`--${n?`${n}-`:""}palette-AppBar-darkBg`,`--${n?`${n}-`:""}palette-AppBar-darkColor`],a_=n=>(r,l)=>{const s=n.rootSelector||":root",u=n.colorSchemeSelector;let f=u;if(u==="class"&&(f=".%s"),u==="data"&&(f="[data-%s]"),u!=null&&u.startsWith("data-")&&!u.includes("%s")&&(f=`[${u}="%s"]`),n.defaultColorScheme===r){if(r==="dark"){const d={};return t_(n.cssVarPrefix).forEach(h=>{d[h]=l[h],delete l[h]}),f==="media"?{[s]:l,"@media (prefers-color-scheme: dark)":{[s]:d}}:f?{[f.replace("%s",r)]:d,[`${s}, ${f.replace("%s",r)}`]:l}:{[s]:{...l,...d}}}if(f&&f!=="media")return`${s}, ${f.replace("%s",String(r))}`}else if(r){if(f==="media")return{[`@media (prefers-color-scheme: ${String(r)})`]:{[s]:l}};if(f)return f.replace("%s",String(r))}return s};function n_(n,r){r.forEach(l=>{n[l]||(n[l]={})})}function L(n,r,l){!n[r]&&l&&(n[r]=l)}function ul(n){return typeof n!="string"||!n.startsWith("hsl")?n:dp(n)}function an(n,r){`${r}Channel`in n||(n[`${r}Channel`]=ll(ul(n[r])))}function r_(n){return typeof n=="number"?`${n}px`:typeof n=="string"||typeof n=="function"||Array.isArray(n)?n:"8px"}const Ya=n=>{try{return n()}catch{}},i_=(n="mui")=>NN(n);function _c(n,r,l,s,u){if(!l)return;l=l===!0?{}:l;const f=u==="dark"?"dark":"light";if(!s){r[u]=WN({...l,palette:{mode:f,...l==null?void 0:l.palette},colorSpace:n});return}const{palette:d,...h}=Nc({...s,palette:{mode:f,...l==null?void 0:l.palette},colorSpace:n});return r[u]={...l,palette:d,opacity:{...wp(f),...l==null?void 0:l.opacity},overlays:(l==null?void 0:l.overlays)||Dp(f)},h}function l_(n={},...r){const{colorSchemes:l={light:!0},defaultColorScheme:s,disableCssColorScheme:u=!1,cssVarPrefix:f="mui",nativeColor:d=!1,shouldSkipGeneratingVar:h=e_,colorSchemeSelector:y=l.light&&l.dark?"media":void 0,rootSelector:p=":root",...S}=n,v=Object.keys(l)[0],D=s||(l.light&&v!=="light"?"light":v),N=i_(f),{[D]:V,light:E,dark:q,...P}=l,K={...P};let ae=V;if((D==="dark"&&!("dark"in l)||D==="light"&&!("light"in l))&&(ae=!0),!ae)throw new Error(sr(21,D));let ee;d&&(ee="oklch");const U=_c(ee,K,ae,S,D);E&&!K.light&&_c(ee,K,E,void 0,"light"),q&&!K.dark&&_c(ee,K,q,void 0,"dark");let Q={defaultColorScheme:D,...U,cssVarPrefix:f,colorSchemeSelector:y,rootSelector:p,getCssVar:N,colorSchemes:K,font:{...jN(U.typography),...U.font},spacing:r_(S.spacing)};Object.keys(Q.colorSchemes).forEach(be=>{const b=Q.colorSchemes[be].palette,$=le=>{const O=le.split("-"),X=O[1],se=O[2];return N(le,b[X][se])};b.mode==="light"&&(L(b.common,"background","#fff"),L(b.common,"onBackground","#000")),b.mode==="dark"&&(L(b.common,"background","#000"),L(b.common,"onBackground","#fff"));function F(le,O,X){if(ee){let se;return le===fr&&(se=`transparent ${((1-X)*100).toFixed(0)}%`),le===Qe&&(se=`#000 ${(X*100).toFixed(0)}%`),le===Xe&&(se=`#fff ${(X*100).toFixed(0)}%`),`color-mix(in ${ee}, ${O}, ${se})`}return le(O,X)}if(n_(b,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),b.mode==="light"){L(b.Alert,"errorColor",F(Qe,d?N("palette-error-light"):b.error.light,.6)),L(b.Alert,"infoColor",F(Qe,d?N("palette-info-light"):b.info.light,.6)),L(b.Alert,"successColor",F(Qe,d?N("palette-success-light"):b.success.light,.6)),L(b.Alert,"warningColor",F(Qe,d?N("palette-warning-light"):b.warning.light,.6)),L(b.Alert,"errorFilledBg",$("palette-error-main")),L(b.Alert,"infoFilledBg",$("palette-info-main")),L(b.Alert,"successFilledBg",$("palette-success-main")),L(b.Alert,"warningFilledBg",$("palette-warning-main")),L(b.Alert,"errorFilledColor",Ya(()=>b.getContrastText(b.error.main))),L(b.Alert,"infoFilledColor",Ya(()=>b.getContrastText(b.info.main))),L(b.Alert,"successFilledColor",Ya(()=>b.getContrastText(b.success.main))),L(b.Alert,"warningFilledColor",Ya(()=>b.getContrastText(b.warning.main))),L(b.Alert,"errorStandardBg",F(Xe,d?N("palette-error-light"):b.error.light,.9)),L(b.Alert,"infoStandardBg",F(Xe,d?N("palette-info-light"):b.info.light,.9)),L(b.Alert,"successStandardBg",F(Xe,d?N("palette-success-light"):b.success.light,.9)),L(b.Alert,"warningStandardBg",F(Xe,d?N("palette-warning-light"):b.warning.light,.9)),L(b.Alert,"errorIconColor",$("palette-error-main")),L(b.Alert,"infoIconColor",$("palette-info-main")),L(b.Alert,"successIconColor",$("palette-success-main")),L(b.Alert,"warningIconColor",$("palette-warning-main")),L(b.AppBar,"defaultBg",$("palette-grey-100")),L(b.Avatar,"defaultBg",$("palette-grey-400")),L(b.Button,"inheritContainedBg",$("palette-grey-300")),L(b.Button,"inheritContainedHoverBg",$("palette-grey-A100")),L(b.Chip,"defaultBorder",$("palette-grey-400")),L(b.Chip,"defaultAvatarColor",$("palette-grey-700")),L(b.Chip,"defaultIconColor",$("palette-grey-700")),L(b.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),L(b.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),L(b.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),L(b.LinearProgress,"primaryBg",F(Xe,d?N("palette-primary-main"):b.primary.main,.62)),L(b.LinearProgress,"secondaryBg",F(Xe,d?N("palette-secondary-main"):b.secondary.main,.62)),L(b.LinearProgress,"errorBg",F(Xe,d?N("palette-error-main"):b.error.main,.62)),L(b.LinearProgress,"infoBg",F(Xe,d?N("palette-info-main"):b.info.main,.62)),L(b.LinearProgress,"successBg",F(Xe,d?N("palette-success-main"):b.success.main,.62)),L(b.LinearProgress,"warningBg",F(Xe,d?N("palette-warning-light"):b.warning.main,.62)),L(b.Skeleton,"bg",ee?F(fr,d?N("palette-text-primary"):b.text.primary,.11):`rgba(${$("palette-text-primaryChannel")} / 0.11)`),L(b.Slider,"primaryTrack",F(Xe,d?N("palette-primary-main"):b.primary.main,.62)),L(b.Slider,"secondaryTrack",F(Xe,d?N("palette-secondary-main"):b.secondary.main,.62)),L(b.Slider,"errorTrack",F(Xe,d?N("palette-error-main"):b.error.main,.62)),L(b.Slider,"infoTrack",F(Xe,d?N("palette-info-main"):b.info.main,.62)),L(b.Slider,"successTrack",F(Xe,d?N("palette-success-main"):b.success.main,.62)),L(b.Slider,"warningTrack",F(Xe,d?N("palette-warning-main"):b.warning.main,.62));const le=ee?F(Qe,d?N("palette-background-default"):b.background.default,.6825):Zs(b.background.default,.8);L(b.SnackbarContent,"bg",le),L(b.SnackbarContent,"color",Ya(()=>ee?xc.text.primary:b.getContrastText(le))),L(b.SpeedDialAction,"fabHoverBg",Zs(b.background.paper,.15)),L(b.StepConnector,"border",$("palette-grey-400")),L(b.StepContent,"border",$("palette-grey-400")),L(b.Switch,"defaultColor",$("palette-common-white")),L(b.Switch,"defaultDisabledColor",$("palette-grey-100")),L(b.Switch,"primaryDisabledColor",F(Xe,d?N("palette-primary-main"):b.primary.main,.62)),L(b.Switch,"secondaryDisabledColor",F(Xe,d?N("palette-secondary-main"):b.secondary.main,.62)),L(b.Switch,"errorDisabledColor",F(Xe,d?N("palette-error-main"):b.error.main,.62)),L(b.Switch,"infoDisabledColor",F(Xe,d?N("palette-info-main"):b.info.main,.62)),L(b.Switch,"successDisabledColor",F(Xe,d?N("palette-success-main"):b.success.main,.62)),L(b.Switch,"warningDisabledColor",F(Xe,d?N("palette-warning-main"):b.warning.main,.62)),L(b.TableCell,"border",F(Xe,fr(d?N("palette-divider"):b.divider,1),.88)),L(b.Tooltip,"bg",F(fr,d?N("palette-grey-700"):b.grey[700],.92))}if(b.mode==="dark"){L(b.Alert,"errorColor",F(Xe,d?N("palette-error-light"):b.error.light,.6)),L(b.Alert,"infoColor",F(Xe,d?N("palette-info-light"):b.info.light,.6)),L(b.Alert,"successColor",F(Xe,d?N("palette-success-light"):b.success.light,.6)),L(b.Alert,"warningColor",F(Xe,d?N("palette-warning-light"):b.warning.light,.6)),L(b.Alert,"errorFilledBg",$("palette-error-dark")),L(b.Alert,"infoFilledBg",$("palette-info-dark")),L(b.Alert,"successFilledBg",$("palette-success-dark")),L(b.Alert,"warningFilledBg",$("palette-warning-dark")),L(b.Alert,"errorFilledColor",Ya(()=>b.getContrastText(b.error.dark))),L(b.Alert,"infoFilledColor",Ya(()=>b.getContrastText(b.info.dark))),L(b.Alert,"successFilledColor",Ya(()=>b.getContrastText(b.success.dark))),L(b.Alert,"warningFilledColor",Ya(()=>b.getContrastText(b.warning.dark))),L(b.Alert,"errorStandardBg",F(Qe,d?N("palette-error-light"):b.error.light,.9)),L(b.Alert,"infoStandardBg",F(Qe,d?N("palette-info-light"):b.info.light,.9)),L(b.Alert,"successStandardBg",F(Qe,d?N("palette-success-light"):b.success.light,.9)),L(b.Alert,"warningStandardBg",F(Qe,d?N("palette-warning-light"):b.warning.light,.9)),L(b.Alert,"errorIconColor",$("palette-error-main")),L(b.Alert,"infoIconColor",$("palette-info-main")),L(b.Alert,"successIconColor",$("palette-success-main")),L(b.Alert,"warningIconColor",$("palette-warning-main")),L(b.AppBar,"defaultBg",$("palette-grey-900")),L(b.AppBar,"darkBg",$("palette-background-paper")),L(b.AppBar,"darkColor",$("palette-text-primary")),L(b.Avatar,"defaultBg",$("palette-grey-600")),L(b.Button,"inheritContainedBg",$("palette-grey-800")),L(b.Button,"inheritContainedHoverBg",$("palette-grey-700")),L(b.Chip,"defaultBorder",$("palette-grey-700")),L(b.Chip,"defaultAvatarColor",$("palette-grey-300")),L(b.Chip,"defaultIconColor",$("palette-grey-300")),L(b.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),L(b.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),L(b.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),L(b.LinearProgress,"primaryBg",F(Qe,d?N("palette-primary-main"):b.primary.main,.5)),L(b.LinearProgress,"secondaryBg",F(Qe,d?N("palette-secondary-main"):b.secondary.main,.5)),L(b.LinearProgress,"errorBg",F(Qe,d?N("palette-error-main"):b.error.main,.5)),L(b.LinearProgress,"infoBg",F(Qe,d?N("palette-info-main"):b.info.main,.5)),L(b.LinearProgress,"successBg",F(Qe,d?N("palette-success-main"):b.success.main,.5)),L(b.LinearProgress,"warningBg",F(Qe,d?N("palette-warning-main"):b.warning.main,.5)),L(b.Skeleton,"bg",ee?F(fr,d?N("palette-text-primary"):b.text.primary,.13):`rgba(${$("palette-text-primaryChannel")} / 0.13)`),L(b.Slider,"primaryTrack",F(Qe,d?N("palette-primary-main"):b.primary.main,.5)),L(b.Slider,"secondaryTrack",F(Qe,d?N("palette-secondary-main"):b.secondary.main,.5)),L(b.Slider,"errorTrack",F(Qe,d?N("palette-error-main"):b.error.main,.5)),L(b.Slider,"infoTrack",F(Qe,d?N("palette-info-main"):b.info.main,.5)),L(b.Slider,"successTrack",F(Qe,d?N("palette-success-main"):b.success.main,.5)),L(b.Slider,"warningTrack",F(Qe,d?N("palette-warning-light"):b.warning.main,.5));const le=ee?F(Xe,d?N("palette-background-default"):b.background.default,.985):Zs(b.background.default,.98);L(b.SnackbarContent,"bg",le),L(b.SnackbarContent,"color",Ya(()=>ee?yp.text.primary:b.getContrastText(le))),L(b.SpeedDialAction,"fabHoverBg",Zs(b.background.paper,.15)),L(b.StepConnector,"border",$("palette-grey-600")),L(b.StepContent,"border",$("palette-grey-600")),L(b.Switch,"defaultColor",$("palette-grey-300")),L(b.Switch,"defaultDisabledColor",$("palette-grey-600")),L(b.Switch,"primaryDisabledColor",F(Qe,d?N("palette-primary-main"):b.primary.main,.55)),L(b.Switch,"secondaryDisabledColor",F(Qe,d?N("palette-secondary-main"):b.secondary.main,.55)),L(b.Switch,"errorDisabledColor",F(Qe,d?N("palette-error-main"):b.error.main,.55)),L(b.Switch,"infoDisabledColor",F(Qe,d?N("palette-info-main"):b.info.main,.55)),L(b.Switch,"successDisabledColor",F(Qe,d?N("palette-success-main"):b.success.main,.55)),L(b.Switch,"warningDisabledColor",F(Qe,d?N("palette-warning-light"):b.warning.main,.55)),L(b.TableCell,"border",F(Qe,fr(d?N("palette-divider"):b.divider,1),.68)),L(b.Tooltip,"bg",F(fr,d?N("palette-grey-700"):b.grey[700],.92))}an(b.background,"default"),an(b.background,"paper"),an(b.common,"background"),an(b.common,"onBackground"),an(b,"divider"),Object.keys(b).forEach(le=>{const O=b[le];le!=="tonalOffset"&&O&&typeof O=="object"&&(O.main&&L(b[le],"mainChannel",ll(ul(O.main))),O.light&&L(b[le],"lightChannel",ll(ul(O.light))),O.dark&&L(b[le],"darkChannel",ll(ul(O.dark))),O.contrastText&&L(b[le],"contrastTextChannel",ll(ul(O.contrastText))),le==="text"&&(an(b[le],"primary"),an(b[le],"secondary")),le==="action"&&(O.active&&an(b[le],"active"),O.selected&&an(b[le],"selected")))})}),Q=r.reduce((be,b)=>sa(be,b),Q);const J={prefix:f,disableCssColorScheme:u,shouldSkipGeneratingVar:h,getSelector:a_(Q),enableContrastVars:d},{vars:_e,generateThemeVars:Me,generateStyleSheets:We}=EN(Q,J);return Q.vars=_e,Object.entries(Q.colorSchemes[Q.defaultColorScheme]).forEach(([be,b])=>{Q[be]=b}),Q.generateThemeVars=Me,Q.generateStyleSheets=We,Q.generateSpacing=function(){return lp(S.spacing,mc(this))},Q.getColorSchemeSelector=wN(y),Q.spacing=Q.generateSpacing(),Q.shouldSkipGeneratingVar=h,Q.unstable_sxConfig={...Us,...S==null?void 0:S.unstable_sxConfig},Q.unstable_sx=function(b){return $r({sx:b,theme:this})},Q.toRuntimeSource=Cp,Q}function Ap(n,r,l){n.colorSchemes&&l&&(n.colorSchemes[r]={...l!==!0&&l,palette:Sc({...l===!0?{}:l.palette,mode:r})})}function s_(n={},...r){const{palette:l,cssVariables:s=!1,colorSchemes:u=l?void 0:{light:!0},defaultColorScheme:f=l==null?void 0:l.mode,...d}=n,h=f||"light",y=u==null?void 0:u[h],p={...u,...l?{[h]:{...typeof y!="boolean"&&y,palette:l}}:void 0};if(s===!1){if(!("colorSchemes"in n))return Nc(n,...r);let S=l;"palette"in n||p[h]&&(p[h]!==!0?S=p[h].palette:h==="dark"&&(S={mode:"dark"}));const v=Nc({...n,palette:S},...r);return v.defaultColorScheme=h,v.colorSchemes=p,v.palette.mode==="light"&&(v.colorSchemes.light={...p.light!==!0&&p.light,palette:v.palette},Ap(v,"dark",p.dark)),v.palette.mode==="dark"&&(v.colorSchemes.dark={...p.dark!==!0&&p.dark,palette:v.palette},Ap(v,"light",p.light)),v}return!l&&!("light"in p)&&h==="light"&&(p.light=!0),l_({...d,colorSchemes:p,defaultColorScheme:h,...typeof s!="boolean"&&s},...r)}function o_(n){return String(n).match(/[\d.\-+]*\s*(.*)/)[1]||""}function u_(n){return parseFloat(n)}const c_=s_();function f_(n){return n!=="ownerState"&&n!=="theme"&&n!=="sx"&&n!=="as"}const d_=oN({themeId:V1,defaultTheme:c_,rootShouldForwardProp:n=>f_(n)&&n!=="classes"}),m_=SN;function h_(n){return xN(n)}function p_(n){return up("MuiSkeleton",n)}rN("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const g_=n=>{const{classes:r,variant:l,animation:s,hasChildren:u,width:f,height:d}=n;return j1({root:["root",l,s,u&&"withChildren",u&&!f&&"fitContent",u&&!d&&"heightAuto"]},p_,r)},Cc=Hh`
106
129
  0% {
107
130
  opacity: 1;
108
131
  }
@@ -114,7 +137,7 @@ export default theme;`}function ap(n){return typeof n=="number"?`${(n*100).toFix
114
137
  100% {
115
138
  opacity: 1;
116
139
  }
117
- `,fc=wm`
140
+ `,Ec=Hh`
118
141
  0% {
119
142
  transform: translateX(-100%);
120
143
  }
@@ -127,15 +150,15 @@ export default theme;`}function ap(n){return typeof n=="number"?`${(n*100).toFix
127
150
  100% {
128
151
  transform: translateX(100%);
129
152
  }
130
- `,AS=typeof cc!="string"?Ku`
131
- animation: ${cc} 2s ease-in-out 0.5s infinite;
132
- `:null,CS=typeof fc!="string"?Ku`
153
+ `,y_=typeof Cc!="string"?sc`
154
+ animation: ${Cc} 2s ease-in-out 0.5s infinite;
155
+ `:null,b_=typeof Ec!="string"?sc`
133
156
  &::after {
134
- animation: ${fc} 2s linear 0.5s infinite;
157
+ animation: ${Ec} 2s linear 0.5s infinite;
135
158
  }
136
- `:null,TS=bS("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(n,r)=>{const{ownerState:l}=n;return[r.root,r[l.variant],l.animation!==!1&&r[l.animation],l.hasChildren&&r.withChildren,l.hasChildren&&!l.width&&r.fitContent,l.hasChildren&&!l.height&&r.heightAuto]}})(xS(({theme:n})=>{const r=pS(n.shape.borderRadius)||"px",l=gS(n.shape.borderRadius);return{display:"block",backgroundColor:n.vars?n.vars.palette.Skeleton.bg:n.alpha(n.palette.text.primary,n.palette.mode==="light"?.11:.13),height:"1.2em",variants:[{props:{variant:"text"},style:{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:`${l}${r}/${Math.round(l/.6*10)/10}${r}`,"&:empty:before":{content:'"\\00a0"'}}},{props:{variant:"circular"},style:{borderRadius:"50%"}},{props:{variant:"rounded"},style:{borderRadius:(n.vars||n).shape.borderRadius}},{props:({ownerState:s})=>s.hasChildren,style:{"& > *":{visibility:"hidden"}}},{props:({ownerState:s})=>s.hasChildren&&!s.width,style:{maxWidth:"fit-content"}},{props:({ownerState:s})=>s.hasChildren&&!s.height,style:{height:"auto"}},{props:{animation:"pulse"},style:AS||{animation:`${cc} 2s ease-in-out 0.5s infinite`}},{props:{animation:"wave"},style:{position:"relative",overflow:"hidden",WebkitMaskImage:"-webkit-radial-gradient(white, black)","&::after":{background:`linear-gradient(
159
+ `:null,v_=d_("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(n,r)=>{const{ownerState:l}=n;return[r.root,r[l.variant],l.animation!==!1&&r[l.animation],l.hasChildren&&r.withChildren,l.hasChildren&&!l.width&&r.fitContent,l.hasChildren&&!l.height&&r.heightAuto]}})(m_(({theme:n})=>{const r=o_(n.shape.borderRadius)||"px",l=u_(n.shape.borderRadius);return{display:"block",backgroundColor:n.vars?n.vars.palette.Skeleton.bg:n.alpha(n.palette.text.primary,n.palette.mode==="light"?.11:.13),height:"1.2em",variants:[{props:{variant:"text"},style:{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:`${l}${r}/${Math.round(l/.6*10)/10}${r}`,"&:empty:before":{content:'"\\00a0"'}}},{props:{variant:"circular"},style:{borderRadius:"50%"}},{props:{variant:"rounded"},style:{borderRadius:(n.vars||n).shape.borderRadius}},{props:({ownerState:s})=>s.hasChildren,style:{"& > *":{visibility:"hidden"}}},{props:({ownerState:s})=>s.hasChildren&&!s.width,style:{maxWidth:"fit-content"}},{props:({ownerState:s})=>s.hasChildren&&!s.height,style:{height:"auto"}},{props:{animation:"pulse"},style:y_||{animation:`${Cc} 2s ease-in-out 0.5s infinite`}},{props:{animation:"wave"},style:{position:"relative",overflow:"hidden",WebkitMaskImage:"-webkit-radial-gradient(white, black)","&::after":{background:`linear-gradient(
137
160
  90deg,
138
161
  transparent,
139
162
  ${(n.vars||n).palette.action.hover},
140
163
  transparent
141
- )`,content:'""',position:"absolute",transform:"translateX(-100%)",bottom:0,left:0,right:0,top:0}}},{props:{animation:"wave"},style:CS||{"&::after":{animation:`${fc} 2s linear 0.5s infinite`}}}]}})),ES=ge.forwardRef(function(r,l){const s=_S({props:r,name:"MuiSkeleton"}),{animation:u="pulse",className:f,component:d="span",height:m,style:y,variant:p="text",width:_,...x}=s,O={...s,animation:u,component:d,variant:p,hasChildren:!!x.children},S=wS(O);return b.jsx(TS,{as:d,ref:l,className:Ph(S.root,f),ownerState:O,...x,style:{width:_,height:m,...y}})}),OS=async({tenant_id:n})=>{if(!n)throw new Error(`No configuration found for tenant: ${n}`);try{const l=await(await fetch(`${ir("VITE_API_URL")}/api/token.ts`,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({tenant_id:n})})).json();if(!l.success)throw new Error("PBMLOG: Authorization failed!");return rt.set("pbm-token",l.access_token,{secure:!0,sameSite:"Strict",expires:l.expires_in/86400}),rt.set("tenant_id",n,{secure:!0,sameSite:"Strict",expires:7}),l}catch(r){return console.error("Error during authorization:",r),{success:!1,error:"Authorization failed"}}},zS={primaryColor:"#44c2c0",secondaryColor:"#339c9b",backgroundColor:"#ffffff",textColor:"#52525b",borderColor:"#44c2c0",inputOutlineColor:"transparent",inputOutlineFocusColor:"#323232",inputBackgroundColor:"#EDEDED",inputFocusBackgroundColor:"#EDEDED"},NS=bu(n=>({...zS,setTheme:r=>n(l=>({...l,...r}))}));function lp(n){return xu(NS,(r=>r))}const kS=2,jS=30,MS=()=>{const n=new Date,r=new Date(n);return r.setHours(kS,jS,0,0),r.getTime()<=n.getTime()&&r.setDate(r.getDate()+1),r.getTime()},sl=new Map;function RS(n){return`load-products-table:${n}`}function DS(n){const r=sl.get(n);if(r&&Date.now()<r.expiresAt)return r.data;try{const l=localStorage.getItem(n);if(!l)return null;const s=JSON.parse(l);return Date.now()>=s.expiresAt?(localStorage.removeItem(n),null):(sl.set(n,s),s.data)}catch{return null}}function US(n,r){const l={data:r,expiresAt:MS(),success:!0};sl.set(n,l),localStorage.setItem(n,JSON.stringify(l))}const BS=async({tenant_id:n})=>{if(!n)throw new Error(`No configuration found for tenant: ${n}`);const r=RS(n),l=DS(r);if(l)return{data:l,expiresAt:sl.get(r).expiresAt,success:!0};const u=await(await fetch(`${ir("VITE_API_URL")}/api/load-tables.ts`,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json",Authorization:`Bearer ${rt.get("pbm-token")}`},body:JSON.stringify({tenant_id:n})})).json();if(u.informativeText!=="Processamento aprovado")throw new Error("PBMLOG: Load Products Table Failed!");rt.set("current-table-id",u.control.tableId,{secure:!0,sameSite:"Strict",expires:1}),rt.set("current-central-number",u.control.centralNumber.toString(),{secure:!0,sameSite:"Strict",expires:1}),rt.set("current-local-hour",u.local_hour,{secure:!0,sameSite:"Strict",expires:1});const f=LS(u.control.tableImage);return US(r,f),{data:f,expiresAt:sl.get(r).expiresAt,success:!0}};function LS(n){const r=n.map(d=>d.state),l=n.flatMap(d=>d.cities.map(m=>m.city)),s=n.flatMap(d=>d.cities.flatMap(m=>m.federalCodes.map(y=>y.federalCode))),u=n.flatMap(d=>d.cities.flatMap(m=>m.federalCodes.flatMap(y=>y.programNames.map(p=>p.programName)))),f=n.flatMap(d=>d.cities.flatMap(m=>m.federalCodes.flatMap(y=>y.programNames.flatMap(p=>p.products.map(_=>_.ean)))));return{states:r,cities:l,federalCodes:s,programNames:u,products:f}}const VS=async({tenant_id:n,product:r})=>{if(!n)throw new Error(`No configuration found for tenant: ${n}`);if(!r)throw new Error("Product information is required");try{const s=await(await fetch(`${ir("VITE_API_URL")}/api/product.ts`,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json",Authorization:`Bearer ${rt.get("pbm-token")}`},body:JSON.stringify({tenant_id:n,product:r,table_id:rt.get("current-table-id"),local_hour:rt.get("current-local-hour")})})).json();if(!s.success)throw new Error("PBMLOG: Get Product Failed!");return s}catch(l){return console.error("Error during get product:",l),{success:!1,error:"Get Product Failed"}}},HS=n=>{const{setTargetProduct:r,setBenefitsList:l,setIsAuthenticatedShopper:s,setCustomLoginUrl:u}=Ft(),{setTheme:f}=lp(),[d,m]=ge.useState(!1),[y,p]=ge.useState(!1),[_,x]=ge.useState(!0),O=async()=>{try{const C=await OS({tenant_id:n.tenant_id});return C.success||console.error("PBMLOG: Authorization failed!"),C.success}catch(C){return console.error("Error fetching authorization:",C),!1}},S=async()=>{if(!n.target_product)return console.error("PBMLOG: Target product is not defined."),x(!1),!1;try{const C=await BS({tenant_id:n.tenant_id});return C.success?C.data.products.includes(n.target_product.ean.toString())?(x(!0),!0):!1:(console.error("PBMLOG: Product validation failed!"),!1)}catch(C){console.error("Error fetching product validation:",C),x(!1)}return!1},U=async()=>{try{if(!n.target_product)return console.error("PBMLOG: Target product is not defined."),x(!1),!1;const C=await VS({tenant_id:n.tenant_id,product:n.target_product});return C.success?!C.product||C.product.length===0?(console.error("PBMLOG: Product not found in discount check!"),x(!1),!1):(r({...C.product[0],requestedQuantity:"1",listPrice:la.priceToInteger(n.target_product.listPrice),netPrice:la.priceToInteger(n.target_product.netPrice)}),l(C.product.map(Z=>({...Z,listPrice:n.target_product.listPrice,netPrice:n.target_product.netPrice}))),s(n.is_authenticated_shopper),u(n.custom_login_url),x(!0),!0):(console.error("PBMLOG: Product discount check failed!"),x(!1),!1)}catch(C){return console.error(C),x(!1),!1}};return ge.useEffect(()=>{let C=!0;return(async()=>{if(n.theme&&f(n.theme),!await O()||!C)return;const F=await Promise.all([S(),U()].filter(Boolean)).then(ae=>ae.every(Boolean));p(F),!(!F||!C)&&C&&m(!0)})(),()=>{C=!1}},[n.tenant_id]),{IsReady:d,IsValid:y,EanProductExist:_}};function qS(n){const{state:r}=Ft(),{IsReady:l,EanProductExist:s,IsValid:u}=HS(n),{setErrorMessage:f}=Xh(),d=lp(),[m,y]=ge.useTransition(),p=la.price(n.original_product_price);if(u)return l?s?b.jsxs("div",{id:"pbm-library-root",style:{"--pbm-primary":d.primaryColor,"--pbm-secondary":d.secondaryColor,"--pbm-bg":d.backgroundColor,"--pbm-text":d.textColor,"--pbm-border":d.borderColor,"--pbm-outline-color":d.inputOutlineColor,"--pbm-outline-focus-color":d.inputOutlineFocusColor,"--pbm-input-focus-background":d.inputFocusBackgroundColor,"--pbm-input-background":d.inputBackgroundColor},children:[b.jsxs(Du,{variant:"main",children:[b.jsx($b,{originalProductPrice:p||0}),b.jsx(Du,{variant:"simple",children:m?b.jsx(Yh,{}):b.jsxs(b.Fragment,{children:[r==="isEmpty"&&b.jsx(Hb,{startTransition:y}),r==="isInvalid"&&b.jsx(Fb,{}),r==="isRegistered"&&b.jsx(Jb,{}),(r==="isActivated"||r==="isPreview")&&b.jsx(Kb,{}),r==="isError"&&b.jsx(Qh,{})]})})]}),b.jsx(f1,{ID:"ShopperIsNotAuthenticated"}),b.jsx(o1,{ID:"CustomerNotRegistered"})]}):(f("O produto não foi encontrado no sistema. Por favor, tente novamente mais tarde ou contate o suporte."),b.jsx("div",{id:"pbm-library-root",children:b.jsx(Qh,{})})):b.jsx(ES,{variant:"rectangular",style:{borderRadius:"12px"},width:460,height:358})}const ZS=`/*! tailwindcss v4.2.2 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-duration:initial;--tw-content:"";--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1}}}@layer theme{:root,:host{--font-sans:ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--color-red-50:oklch(97.1% .013 17.38);--color-red-300:oklch(80.8% .114 19.571);--color-red-400:oklch(70.4% .191 22.216);--color-red-500:oklch(63.7% .237 25.331);--color-red-600:oklch(57.7% .245 27.325);--color-green-100:oklch(96.2% .044 156.743);--color-green-400:oklch(79.2% .209 151.711);--color-green-500:oklch(72.3% .219 149.579);--color-emerald-50:oklch(97.9% .021 166.113);--color-emerald-200:oklch(90.5% .093 164.15);--color-emerald-500:oklch(69.6% .17 162.48);--color-emerald-600:oklch(59.6% .145 163.225);--color-emerald-700:oklch(50.8% .118 165.612);--color-blue-400:oklch(70.7% .165 254.624);--color-blue-500:oklch(62.3% .214 259.815);--color-gray-50:oklch(98.5% .002 247.839);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-600:oklch(44.6% .03 256.802);--color-gray-800:oklch(27.8% .033 256.848);--color-zinc-50:oklch(98.5% 0 0);--color-zinc-100:oklch(96.7% .001 286.375);--color-zinc-200:oklch(92% .004 286.32);--color-zinc-300:oklch(87.1% .006 286.286);--color-zinc-400:oklch(70.5% .015 286.067);--color-zinc-500:oklch(55.2% .016 285.938);--color-zinc-600:oklch(44.2% .017 285.786);--color-zinc-700:oklch(37% .013 285.805);--color-zinc-800:oklch(27.4% .006 286.033);--color-zinc-900:oklch(21% .006 285.885);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-3xs:16rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75 / 1.25);--font-weight-light:300;--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--tracking-wide:.025em;--leading-snug:1.375;--radius-lg:.5rem;--radius-xl:.75rem;--radius-2xl:1rem;--animate-spin:spin 1s linear infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.inset-0{inset:calc(var(--spacing) * 0)}.start{inset-inline-start:var(--spacing)}.end{inset-inline-end:var(--spacing)}.-top-4{top:calc(var(--spacing) * -4)}.top-1\\/2{top:50%}.top-3\\.5{top:calc(var(--spacing) * 3.5)}.-right-3{right:calc(var(--spacing) * -3)}.right-3{right:calc(var(--spacing) * 3)}.-bottom-3{bottom:calc(var(--spacing) * -3)}.left-2{left:calc(var(--spacing) * 2)}.left-10{left:calc(var(--spacing) * 10)}.z-10{z-index:10}.z-50{z-index:50}.container{width:100%}@media(min-width:40rem){.container{max-width:40rem}}@media(min-width:48rem){.container{max-width:48rem}}@media(min-width:64rem){.container{max-width:64rem}}@media(min-width:80rem){.container{max-width:80rem}}@media(min-width:96rem){.container{max-width:96rem}}.mx-4{margin-inline:calc(var(--spacing) * 4)}.mt-0\\.5{margin-top:calc(var(--spacing) * .5)}.mt-1{margin-top:calc(var(--spacing) * 1)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mt-5{margin-top:calc(var(--spacing) * 5)}.mb-1{margin-bottom:calc(var(--spacing) * 1)}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.mb-6{margin-bottom:calc(var(--spacing) * 6)}.ml-1{margin-left:calc(var(--spacing) * 1)}.ml-auto{margin-left:auto}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.table{display:table}.aspect-auto{aspect-ratio:auto}.h-0{height:calc(var(--spacing) * 0)}.h-0\\.5{height:calc(var(--spacing) * .5)}.h-2\\.5{height:calc(var(--spacing) * 2.5)}.h-3\\.5{height:calc(var(--spacing) * 3.5)}.h-4{height:calc(var(--spacing) * 4)}.h-5{height:calc(var(--spacing) * 5)}.h-7{height:calc(var(--spacing) * 7)}.h-8{height:calc(var(--spacing) * 8)}.h-10{height:calc(var(--spacing) * 10)}.h-16{height:calc(var(--spacing) * 16)}.h-auto{height:auto}.max-h-\\[90vh\\]{max-height:90vh}.w-1\\/5{width:20%}.w-2\\.5{width:calc(var(--spacing) * 2.5)}.w-3\\.5{width:calc(var(--spacing) * 3.5)}.w-3xs{width:var(--container-3xs)}.w-4{width:calc(var(--spacing) * 4)}.w-4\\/5{width:80%}.w-5{width:calc(var(--spacing) * 5)}.w-7{width:calc(var(--spacing) * 7)}.w-8{width:calc(var(--spacing) * 8)}.w-16{width:calc(var(--spacing) * 16)}.w-auto{width:auto}.w-full{width:100%}.max-w-\\(--max-container\\){max-width:var(--max-container)}.max-w-125{max-width:calc(var(--spacing) * 125)}.max-w-\\[var\\(--max-container\\)\\]{max-width:var(--max-container)}.min-w-\\(--min-container\\){min-width:var(--min-container)}.min-w-0{min-width:calc(var(--spacing) * 0)}.min-w-20{min-width:calc(var(--spacing) * 20)}.min-w-125{min-width:calc(var(--spacing) * 125)}.min-w-\\[var\\(--min-container\\)\\]{min-width:var(--min-container)}.flex-1{flex:1}.flex-2{flex:2}.shrink-0{flex-shrink:0}.-translate-y-1\\/2{--tw-translate-y: -50% ;translate:var(--tw-translate-x) var(--tw-translate-y)}.rotate-0{rotate:0deg}.rotate-180{rotate:180deg}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.animate-spin{animation:var(--animate-spin)}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.flex-col{flex-direction:column}.items-center{align-items:center}.items-center-safe{align-items:safe center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-center-safe{justify-content:safe center}.justify-end{justify-content:flex-end}.justify-end-safe{justify-content:safe flex-end}.justify-start{justify-content:flex-start}.gap-1{gap:calc(var(--spacing) * 1)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-4\\.5{gap:calc(var(--spacing) * 4.5)}.gap-5{gap:calc(var(--spacing) * 5)}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-xl{border-radius:var(--radius-xl)}.rounded-s-lg{border-start-start-radius:var(--radius-lg);border-end-start-radius:var(--radius-lg)}.border{border-style:var(--tw-border-style);border-width:1px}.border-3{border-style:var(--tw-border-style);border-width:3px}.border-4{border-style:var(--tw-border-style);border-width:4px}.border-y{border-block-style:var(--tw-border-style);border-block-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-\\(--pbm-border\\){border-color:var(--pbm-border)}.border-\\(--pbm-primary\\){border-color:var(--pbm-primary)}.border-emerald-200{border-color:var(--color-emerald-200)}.border-emerald-700{border-color:var(--color-emerald-700)}.border-gray-100{border-color:var(--color-gray-100)}.border-gray-200{border-color:var(--color-gray-200)}.border-gray-300{border-color:var(--color-gray-300)}.border-red-300{border-color:var(--color-red-300)}.border-red-400{border-color:var(--color-red-400)}.border-zinc-100{border-color:var(--color-zinc-100)}.border-zinc-300{border-color:var(--color-zinc-300)}.border-zinc-400\\/50{border-color:#9f9fa980}@supports (color:color-mix(in lab,red,red)){.border-zinc-400\\/50{border-color:color-mix(in oklab,var(--color-zinc-400) 50%,transparent)}}.bg-\\(--pbm-input-background\\){background-color:var(--pbm-input-background)}.bg-\\(--pbm-primary\\){background-color:var(--pbm-primary)}.bg-\\(--primary-color\\){background-color:var(--primary-color)}.bg-black\\/40{background-color:#0006}@supports (color:color-mix(in lab,red,red)){.bg-black\\/40{background-color:color-mix(in oklab,var(--color-black) 40%,transparent)}}.bg-blue-500{background-color:var(--color-blue-500)}.bg-emerald-50\\/60{background-color:#ecfdf599}@supports (color:color-mix(in lab,red,red)){.bg-emerald-50\\/60{background-color:color-mix(in oklab,var(--color-emerald-50) 60%,transparent)}}.bg-emerald-600{background-color:var(--color-emerald-600)}.bg-gray-50{background-color:var(--color-gray-50)}.bg-gray-100{background-color:var(--color-gray-100)}.bg-gray-600{background-color:var(--color-gray-600)}.bg-green-100{background-color:var(--color-green-100)}.bg-green-500{background-color:var(--color-green-500)}.bg-red-50{background-color:var(--color-red-50)}.bg-red-50\\/40{background-color:#fef2f266}@supports (color:color-mix(in lab,red,red)){.bg-red-50\\/40{background-color:color-mix(in oklab,var(--color-red-50) 40%,transparent)}}.bg-transparent{background-color:#0000}.bg-white{background-color:var(--color-white)}.bg-zinc-50\\/40{background-color:#fafafa66}@supports (color:color-mix(in lab,red,red)){.bg-zinc-50\\/40{background-color:color-mix(in oklab,var(--color-zinc-50) 40%,transparent)}}.bg-zinc-100{background-color:var(--color-zinc-100)}.bg-zinc-200{background-color:var(--color-zinc-200)}.bg-zinc-300\\/60{background-color:#d4d4d899}@supports (color:color-mix(in lab,red,red)){.bg-zinc-300\\/60{background-color:color-mix(in oklab,var(--color-zinc-300) 60%,transparent)}}.p-0{padding:calc(var(--spacing) * 0)}.p-0\\.5{padding:calc(var(--spacing) * .5)}.p-3{padding:calc(var(--spacing) * 3)}.p-4{padding:calc(var(--spacing) * 4)}.p-6{padding:calc(var(--spacing) * 6)}.p-8{padding:calc(var(--spacing) * 8)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-2\\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-6{padding-inline:calc(var(--spacing) * 6)}.py-0\\.5{padding-block:calc(var(--spacing) * .5)}.py-1{padding-block:calc(var(--spacing) * 1)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-2\\.5{padding-block:calc(var(--spacing) * 2.5)}.py-4{padding-block:calc(var(--spacing) * 4)}.py-6{padding-block:calc(var(--spacing) * 6)}.pt-4{padding-top:calc(var(--spacing) * 4)}.pl-1{padding-left:calc(var(--spacing) * 1)}.pl-2{padding-left:calc(var(--spacing) * 2)}.text-center{text-align:center}.text-start{text-align:start}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\\[10px\\]{font-size:10px}.leading-snug{--tw-leading:var(--leading-snug);line-height:var(--leading-snug)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-light{--tw-font-weight:var(--font-weight-light);font-weight:var(--font-weight-light)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.text-nowrap{text-wrap:nowrap}.whitespace-nowrap{white-space:nowrap}.text-\\(--pbm-primary\\){color:var(--pbm-primary)}.text-blue-500{color:var(--color-blue-500)}.text-emerald-600{color:var(--color-emerald-600)}.text-gray-400{color:var(--color-gray-400)}.text-gray-500{color:var(--color-gray-500)}.text-gray-600{color:var(--color-gray-600)}.text-gray-800{color:var(--color-gray-800)}.text-green-500{color:var(--color-green-500)}.text-red-400{color:var(--color-red-400)}.text-red-500{color:var(--color-red-500)}.text-white{color:var(--color-white)}.text-zinc-400{color:var(--color-zinc-400)}.text-zinc-500{color:var(--color-zinc-500)}.text-zinc-600{color:var(--color-zinc-600)}.text-zinc-700{color:var(--color-zinc-700)}.text-zinc-800{color:var(--color-zinc-800)}.text-zinc-900{color:var(--color-zinc-900)}.uppercase{text-transform:uppercase}.line-through{text-decoration-line:line-through}.underline{text-decoration-line:underline}.underline-offset-2{text-underline-offset:2px}.opacity-0{opacity:0}.opacity-25{opacity:.25}.opacity-60{opacity:.6}.opacity-75{opacity:.75}.opacity-80{opacity:.8}.opacity-100{opacity:1}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a), 0 8px 10px -6px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-4{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-\\(--pbm-primary\\)\\/15{--tw-ring-color:var(--pbm-primary)}@supports (color:color-mix(in lab,red,red)){.ring-\\(--pbm-primary\\)\\/15{--tw-ring-color:color-mix(in oklab, var(--pbm-primary) 15%, transparent)}}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.outline-\\(--pbm-outline-color\\){outline-color:var(--pbm-outline-color)}.outline-red-600{outline-color:var(--color-red-600)}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-100{--tw-duration:.1s;transition-duration:.1s}.duration-150{--tw-duration:.15s;transition-duration:.15s}.duration-300{--tw-duration:.3s;transition-duration:.3s}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;user-select:none}.placeholder\\:text-sm::placeholder{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.placeholder\\:font-semibold::placeholder{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.placeholder\\:text-zinc-600::placeholder{color:var(--color-zinc-600)}.after\\:h-2:after{content:var(--tw-content);height:calc(var(--spacing) * 2)}.after\\:w-2:after{content:var(--tw-content);width:calc(var(--spacing) * 2)}.after\\:scale-0:after{content:var(--tw-content);--tw-scale-x:0%;--tw-scale-y:0%;--tw-scale-z:0%;scale:var(--tw-scale-x) var(--tw-scale-y)}.after\\:rounded-full:after{content:var(--tw-content);border-radius:3.40282e38px}.after\\:bg-\\(--pbm-primary\\):after{content:var(--tw-content);background-color:var(--pbm-primary)}.after\\:transition-transform:after{content:var(--tw-content);transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.after\\:duration-200:after{content:var(--tw-content);--tw-duration:.2s;transition-duration:.2s}.after\\:content-\\[\\'\\'\\]:after{--tw-content:"";content:var(--tw-content)}.peer-checked\\:after\\:scale-100:is(:where(.peer):checked~*):after{content:var(--tw-content);--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x) var(--tw-scale-y)}@media(hover:hover){.hover\\:border-\\(--pbm-primary\\):hover{border-color:var(--pbm-primary)}.hover\\:border-gray-300:hover{border-color:var(--color-gray-300)}.hover\\:border-zinc-200:hover{border-color:var(--color-zinc-200)}.hover\\:bg-\\(--pbm-primary\\)\\/60:hover{background-color:var(--pbm-primary)}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-\\(--pbm-primary\\)\\/60:hover{background-color:color-mix(in oklab,var(--pbm-primary) 60%,transparent)}}.hover\\:bg-\\(--primary-color\\)\\/80:hover{background-color:var(--primary-color)}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-\\(--primary-color\\)\\/80:hover{background-color:color-mix(in oklab,var(--primary-color) 80%,transparent)}}.hover\\:bg-blue-400:hover{background-color:var(--color-blue-400)}.hover\\:bg-emerald-500:hover{background-color:var(--color-emerald-500)}.hover\\:bg-gray-100:hover{background-color:var(--color-gray-100)}.hover\\:bg-gray-500:hover{background-color:var(--color-gray-500)}.hover\\:bg-green-400:hover{background-color:var(--color-green-400)}.hover\\:bg-transparent:hover{background-color:#0000}.hover\\:bg-zinc-600\\/10:hover{background-color:#52525c1a}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-zinc-600\\/10:hover{background-color:color-mix(in oklab,var(--color-zinc-600) 10%,transparent)}}.hover\\:text-\\(--pbm-primary\\)\\/60:hover{color:var(--pbm-primary)}@supports (color:color-mix(in lab,red,red)){.hover\\:text-\\(--pbm-primary\\)\\/60:hover{color:color-mix(in oklab,var(--pbm-primary) 60%,transparent)}}.hover\\:text-gray-600:hover{color:var(--color-gray-600)}.hover\\:text-zinc-400:hover{color:var(--color-zinc-400)}.hover\\:text-zinc-900:hover{color:var(--color-zinc-900)}}.focus\\:border-blue-500:focus{border-color:var(--color-blue-500)}.focus\\:bg-\\(--pbm-input-focus\\):focus{background-color:var(--pbm-input-focus)}.focus\\:bg-white:focus{background-color:var(--color-white)}.focus\\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\\:ring-blue-500\\/30:focus{--tw-ring-color:#3080ff4d}@supports (color:color-mix(in lab,red,red)){.focus\\:ring-blue-500\\/30:focus{--tw-ring-color:color-mix(in oklab, var(--color-blue-500) 30%, transparent)}}.focus\\:outline:focus{outline-style:var(--tw-outline-style);outline-width:1px}.focus\\:outline-\\(--pbm-outline-focus-color\\):focus{outline-color:var(--pbm-outline-focus-color)}@media(min-width:40rem){.sm\\:block{display:block}}}:root{--max-container:556px;--min-container:350px}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-content{syntax:"*";inherits:false;initial-value:""}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@keyframes spin{to{transform:rotate(360deg)}}`,GS={id:"100282",ean:"7891142982513",requestedQuantity:"1",listPrice:"56579",netPrice:"56579"};window.pbm=$v();class YS extends HTMLElement{constructor(){super();Ed(this,"root",null);Ed(this,"props",{original_product_price:0,tenant_id:"",target_product:GS,is_authenticated_shopper:!1,custom_login_url:"/login"});this.attachShadow({mode:"open"})}static get observedAttributes(){return["original_product_price","tenant_id","target_product","is_authenticated_shopper","custom_login_url","theme"]}updatePropsFromAttributes(){const l=this.getAttribute("original_product_price"),s=this.getAttribute("tenant_id"),u=this.getAttribute("target_product"),f=this.getAttribute("is_authenticated_shopper"),d=this.getAttribute("custom_login_url"),m=this.getAttribute("theme");if(f!==null&&(this.props.is_authenticated_shopper=f==="true"),d!==null&&(this.props.custom_login_url=d===""?"/login":d),l!==null&&(this.props.original_product_price=parseFloat(l)),s!==null&&(this.props.tenant_id=s),u!==null&&(this.props.target_product=JSON.parse(u)),m!==null)try{this.props.theme=JSON.parse(m)}catch(y){console.error("PBMLOG: Error parsing theme attribute -",y)}}connectedCallback(){this.updatePropsFromAttributes(),this.mount()}attributeChangedCallback(l,s,u){if(l==="original_product_price"&&(this.props.original_product_price=parseFloat(u)),l==="tenant_id"&&(this.props.tenant_id=u),l==="target_product"&&(this.props.target_product=JSON.parse(u)),l==="is_authenticated_shopper"&&(this.props.is_authenticated_shopper=u==="true"),l==="custom_login_url"&&(this.props.custom_login_url=u===""?"/login":u),l==="theme")try{this.props.theme=u?JSON.parse(u):void 0}catch(f){console.error("PBMLOG: Error parsing theme attribute -",f)}this.mount()}mount(){if(!this.isConnected)return;let l=this.shadowRoot;if(!(!l&&(this.attachShadow({mode:"open"}),l=this.shadowRoot,!l))){if(!l.querySelector("#pbm-shadow-root")){const s=document.createElement("div");s.id="pbm-shadow-root";const u=document.createElement("style");u.textContent=ZS,l.appendChild(u),l.appendChild(s),this.root=dv.createRoot(s)}this.root&&this.root.render(b.jsx(qS,{...this.props}))}}}customElements.define("pbm-component",YS)})();
164
+ )`,content:'""',position:"absolute",transform:"translateX(-100%)",bottom:0,left:0,right:0,top:0}}},{props:{animation:"wave"},style:b_||{"&::after":{animation:`${Ec} 2s linear 0.5s infinite`}}}]}})),x_=pe.forwardRef(function(r,l){const s=h_({props:r,name:"MuiSkeleton"}),{animation:u="pulse",className:f,component:d="span",height:h,style:y,variant:p="text",width:S,...v}=s,D={...s,animation:u,component:d,variant:p,hasChildren:!!v.children},N=g_(D);return nS.jsx(v_,{as:d,ref:l,className:fh(N.root,f),ownerState:D,...v,style:{width:S,height:h,...y}})}),S_=async({tenant_id:n})=>{if(!n)throw new Error(`No configuration found for tenant: ${n}`);try{const l=await(await fetch(`${ir("VITE_API_URL")}/api/token.ts`,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({tenant_id:n})})).json();if(!l.success)throw new Error("PBMLOG: Authorization failed!");return rt.set("pbm-token",l.access_token,{secure:!0,sameSite:"Strict",expires:l.expires_in/86400}),rt.set("tenant_id",n,{secure:!0,sameSite:"Strict",expires:7}),l}catch(r){return console.error("Error during authorization:",r),{success:!1,error:"Authorization failed"}}},N_={primaryColor:"#44c2c0",secondaryColor:"#339c9b",backgroundColor:"#ffffff",textColor:"#52525b",borderColor:"#44c2c0",inputOutlineColor:"transparent",inputOutlineFocusColor:"#323232",inputBackgroundColor:"#EDEDED",inputFocusBackgroundColor:"#EDEDED"},__=wu(n=>({...N_,setTheme:r=>n(l=>({...l,...r}))}));function Tp(n){return Du(__,(r=>r))}const C_=2,E_=30,w_=()=>{const n=new Date,r=new Date(n);return r.setHours(C_,E_,0,0),r.getTime()<=n.getTime()&&r.setDate(r.getDate()+1),r.getTime()},cl=new Map;function D_(n){return`load-products-table:${n}`}function A_(n){const r=cl.get(n);if(r&&Date.now()<r.expiresAt)return r.data;try{const l=localStorage.getItem(n);if(!l)return null;const s=JSON.parse(l);return Date.now()>=s.expiresAt?(localStorage.removeItem(n),null):(cl.set(n,s),s.data)}catch{return null}}function T_(n,r){const l={data:r,expiresAt:w_(),success:!0};cl.set(n,l),localStorage.setItem(n,JSON.stringify(l))}const O_=async({tenant_id:n})=>{if(!n)throw new Error(`No configuration found for tenant: ${n}`);const r=D_(n),l=A_(r);if(l)return{data:l,expiresAt:cl.get(r).expiresAt,success:!0};const u=await(await fetch(`${ir("VITE_API_URL")}/api/load-tables.ts`,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json",Authorization:`Bearer ${rt.get("pbm-token")}`},body:JSON.stringify({tenant_id:n})})).json();if(u.informativeText!=="Processamento aprovado")throw new Error("PBMLOG: Load Products Table Failed!");rt.set("current-table-id",u.control.tableId,{secure:!0,sameSite:"Strict",expires:1}),rt.set("current-central-number",u.control.centralNumber.toString(),{secure:!0,sameSite:"Strict",expires:1}),rt.set("current-local-hour",u.local_hour,{secure:!0,sameSite:"Strict",expires:1});const f=R_(u.control.tableImage);return T_(r,f),{data:f,expiresAt:cl.get(r).expiresAt,success:!0}};function R_(n){const r=n.map(d=>d.state),l=n.flatMap(d=>d.cities.map(h=>h.city)),s=n.flatMap(d=>d.cities.flatMap(h=>h.federalCodes.map(y=>y.federalCode))),u=n.flatMap(d=>d.cities.flatMap(h=>h.federalCodes.flatMap(y=>y.programNames.map(p=>p.programName)))),f=n.flatMap(d=>d.cities.flatMap(h=>h.federalCodes.flatMap(y=>y.programNames.flatMap(p=>p.products.map(S=>S.ean)))));return{states:r,cities:l,federalCodes:s,programNames:u,products:f}}const M_=async({tenant_id:n,product:r})=>{if(!n)throw new Error(`No configuration found for tenant: ${n}`);if(!r)throw new Error("Product information is required");try{const s=await(await fetch(`${ir("VITE_API_URL")}/api/product.ts`,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json",Authorization:`Bearer ${rt.get("pbm-token")}`},body:JSON.stringify({tenant_id:n,product:r,table_id:rt.get("current-table-id"),local_hour:rt.get("current-local-hour")})})).json();if(!s.success)throw new Error("PBMLOG: Get Product Failed!");return s}catch(l){return console.error("Error during get product:",l),{success:!1,error:"Get Product Failed"}}},z_=n=>{const{setTargetProduct:r,setBenefitsList:l,setIsAuthenticatedShopper:s,setCustomLoginUrl:u}=Kt(),{setTheme:f}=Tp(),[d,h]=pe.useState(!1),[y,p]=pe.useState(!1),[S,v]=pe.useState(!0),D=async()=>{try{const E=await S_({tenant_id:n.tenant_id});return E.success||console.error("PBMLOG: Authorization failed!"),E.success}catch(E){return console.error("Error fetching authorization:",E),!1}},N=async()=>{if(!n.target_product)return console.error("PBMLOG: Target product is not defined."),v(!1),!1;try{const E=await O_({tenant_id:n.tenant_id});return E.success?E.data.products.includes(n.target_product.ean.toString())?(v(!0),!0):!1:(console.error("PBMLOG: Product validation failed!"),!1)}catch(E){console.error("Error fetching product validation:",E),v(!1)}return!1},V=async()=>{try{if(!n.target_product)return console.error("PBMLOG: Target product is not defined."),v(!1),!1;const E=await M_({tenant_id:n.tenant_id,product:n.target_product});return E.success?!E.product||E.product.length===0?(console.error("PBMLOG: Product not found in discount check!"),v(!1),!1):(r({...E.product[0],requestedQuantity:"1",listPrice:ya.priceToInteger(n.target_product.listPrice),netPrice:ya.priceToInteger(n.target_product.netPrice)}),l(E.product.map(q=>({...q,listPrice:n.target_product.listPrice,netPrice:n.target_product.netPrice}))),s(n.is_authenticated_shopper),u(n.custom_login_url),v(!0),!0):(console.error("PBMLOG: Product discount check failed!"),v(!1),!1)}catch(E){return console.error(E),v(!1),!1}};return pe.useEffect(()=>{let E=!0;return(async()=>{if(n.theme&&f(n.theme),!await D()||!E)return;const K=await Promise.all([N(),V()].filter(Boolean)).then(ae=>ae.every(Boolean));p(K),!(!K||!E)&&E&&h(!0)})(),()=>{E=!1}},[n.tenant_id]),{IsReady:d,IsValid:y,EanProductExist:S}};function k_(n){const{state:r}=Kt(),{IsReady:l,EanProductExist:s,IsValid:u}=z_(n),{setErrorMessage:f}=lh(),d=Tp(),[h,y]=pe.useTransition();if(u)return l?s?x.jsxDEV("div",{id:"pbm-library-root",style:{"--pbm-primary":d.primaryColor,"--pbm-secondary":d.secondaryColor,"--pbm-bg":d.backgroundColor,"--pbm-text":d.textColor,"--pbm-border":d.borderColor,"--pbm-outline-color":d.inputOutlineColor,"--pbm-outline-focus-color":d.inputOutlineFocusColor,"--pbm-input-focus-background":d.inputFocusBackgroundColor,"--pbm-input-background":d.inputBackgroundColor},children:[x.jsxDEV(Gu,{variant:"main",children:[x.jsxDEV(m1,{},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/PBM.tsx",lineNumber:74,columnNumber:9},this),x.jsxDEV(Gu,{variant:"simple",children:h?x.jsxDEV(h1,{},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/PBM.tsx",lineNumber:78,columnNumber:13},this):x.jsxDEV(x.Fragment,{children:[r==="isEmpty"&&x.jsxDEV(o1,{startTransition:y},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/PBM.tsx",lineNumber:82,columnNumber:17},this),r==="isInvalid"&&x.jsxDEV(b1,{},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/PBM.tsx",lineNumber:84,columnNumber:41},this),r==="isRegistered"&&x.jsxDEV(v1,{},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/PBM.tsx",lineNumber:85,columnNumber:44},this),(r==="isActivated"||r==="isPreview")&&x.jsxDEV(y1,{},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/PBM.tsx",lineNumber:87,columnNumber:17},this),r==="isError"&&x.jsxDEV(sh,{},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/PBM.tsx",lineNumber:89,columnNumber:39},this)]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/PBM.tsx",lineNumber:80,columnNumber:13},this)},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/PBM.tsx",lineNumber:76,columnNumber:9},this)]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/PBM.tsx",lineNumber:73,columnNumber:7},this),x.jsxDEV(k1,{ID:"ShopperIsNotAuthenticated"},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/PBM.tsx",lineNumber:95,columnNumber:7},this),x.jsxDEV(R1,{ID:"CustomerNotRegistered"},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/PBM.tsx",lineNumber:96,columnNumber:7},this)]},void 0,!0,{fileName:"C:/Dev/agrada/library-pbm/src/PBM.tsx",lineNumber:57,columnNumber:5},this):(f("O produto não foi encontrado no sistema. Por favor, tente novamente mais tarde ou contate o suporte."),x.jsxDEV("div",{id:"pbm-library-root",children:x.jsxDEV(sh,{},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/PBM.tsx",lineNumber:51,columnNumber:9},this)},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/PBM.tsx",lineNumber:50,columnNumber:7},this)):x.jsxDEV(x_,{variant:"rectangular",style:{borderRadius:"12px"},width:460,height:358},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/PBM.tsx",lineNumber:35,columnNumber:7},this)}const j_=`/*! tailwindcss v4.2.2 | MIT License | https://tailwindcss.com */@layer properties;@layer theme,base,components,utilities;@layer theme{:root,:host{--font-sans: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--color-red-50: oklch(97.1% .013 17.38);--color-red-300: oklch(80.8% .114 19.571);--color-red-400: oklch(70.4% .191 22.216);--color-red-500: oklch(63.7% .237 25.331);--color-red-600: oklch(57.7% .245 27.325);--color-green-100: oklch(96.2% .044 156.743);--color-green-400: oklch(79.2% .209 151.711);--color-green-500: oklch(72.3% .219 149.579);--color-emerald-50: oklch(97.9% .021 166.113);--color-emerald-200: oklch(90.5% .093 164.15);--color-emerald-500: oklch(69.6% .17 162.48);--color-emerald-600: oklch(59.6% .145 163.225);--color-emerald-700: oklch(50.8% .118 165.612);--color-blue-400: oklch(70.7% .165 254.624);--color-blue-500: oklch(62.3% .214 259.815);--color-gray-50: oklch(98.5% .002 247.839);--color-gray-100: oklch(96.7% .003 264.542);--color-gray-200: oklch(92.8% .006 264.531);--color-gray-300: oklch(87.2% .01 258.338);--color-gray-400: oklch(70.7% .022 261.325);--color-gray-500: oklch(55.1% .027 264.364);--color-gray-600: oklch(44.6% .03 256.802);--color-gray-800: oklch(27.8% .033 256.848);--color-zinc-50: oklch(98.5% 0 0);--color-zinc-100: oklch(96.7% .001 286.375);--color-zinc-200: oklch(92% .004 286.32);--color-zinc-300: oklch(87.1% .006 286.286);--color-zinc-400: oklch(70.5% .015 286.067);--color-zinc-500: oklch(55.2% .016 285.938);--color-zinc-600: oklch(44.2% .017 285.786);--color-zinc-700: oklch(37% .013 285.805);--color-zinc-800: oklch(27.4% .006 286.033);--color-zinc-900: oklch(21% .006 285.885);--color-black: #000;--color-white: #fff;--spacing: .25rem;--container-3xs: 16rem;--text-xs: .75rem;--text-xs--line-height: calc(1 / .75);--text-sm: .875rem;--text-sm--line-height: calc(1.25 / .875);--text-base: 1rem;--text-base--line-height: 1.5 ;--text-lg: 1.125rem;--text-lg--line-height: calc(1.75 / 1.125);--text-xl: 1.25rem;--text-xl--line-height: calc(1.75 / 1.25);--font-weight-light: 300;--font-weight-normal: 400;--font-weight-medium: 500;--font-weight-semibold: 600;--font-weight-bold: 700;--tracking-wide: .025em;--leading-snug: 1.375;--radius-lg: .5rem;--radius-xl: .75rem;--radius-2xl: 1rem;--animate-spin: spin 1s linear infinite;--default-transition-duration: .15s;--default-transition-timing-function: cubic-bezier(.4, 0, .2, 1);--default-font-family: var(--font-sans);--default-mono-font-family: var(--font-mono)}}@layer base{*,:after,:before,::backdrop,::file-selector-button{box-sizing:border-box;margin:0;padding:0;border:0 solid}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:var(--default-font-family, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings, normal);font-variation-settings:var(--default-font-variation-settings, normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings, normal);font-variation-settings:var(--default-mono-font-variation-settings, normal);font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea,::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;border-radius:0;background-color:transparent;opacity:1}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not (-webkit-appearance: -apple-pay-button)) or (contain-intrinsic-size: 1px){::placeholder{color:currentcolor}@supports (color: color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit,::-webkit-datetime-edit-year-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]),::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer utilities{.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border-width:0}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.inset-0{inset:calc(var(--spacing) * 0)}.start{inset-inline-start:var(--spacing)}.end{inset-inline-end:var(--spacing)}.-top-4{top:calc(var(--spacing) * -4)}.top-1\\/2{top:50%}.top-3\\.5{top:calc(var(--spacing) * 3.5)}.-right-3{right:calc(var(--spacing) * -3)}.right-3{right:calc(var(--spacing) * 3)}.-bottom-3{bottom:calc(var(--spacing) * -3)}.left-2{left:calc(var(--spacing) * 2)}.left-10{left:calc(var(--spacing) * 10)}.z-10{z-index:10}.z-50{z-index:50}.container{width:100%}@media(min-width:40rem){.container{max-width:40rem}}@media(min-width:48rem){.container{max-width:48rem}}@media(min-width:64rem){.container{max-width:64rem}}@media(min-width:80rem){.container{max-width:80rem}}@media(min-width:96rem){.container{max-width:96rem}}.mx-4{margin-inline:calc(var(--spacing) * 4)}.mt-0\\.5{margin-top:calc(var(--spacing) * .5)}.mt-1{margin-top:calc(var(--spacing) * 1)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mt-5{margin-top:calc(var(--spacing) * 5)}.mb-1{margin-bottom:calc(var(--spacing) * 1)}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.mb-6{margin-bottom:calc(var(--spacing) * 6)}.ml-1{margin-left:calc(var(--spacing) * 1)}.ml-auto{margin-left:auto}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.table{display:table}.aspect-auto{aspect-ratio:auto}.h-0{height:calc(var(--spacing) * 0)}.h-0\\.5{height:calc(var(--spacing) * .5)}.h-2\\.5{height:calc(var(--spacing) * 2.5)}.h-3\\.5{height:calc(var(--spacing) * 3.5)}.h-4{height:calc(var(--spacing) * 4)}.h-5{height:calc(var(--spacing) * 5)}.h-7{height:calc(var(--spacing) * 7)}.h-8{height:calc(var(--spacing) * 8)}.h-10{height:calc(var(--spacing) * 10)}.h-16{height:calc(var(--spacing) * 16)}.h-auto{height:auto}.max-h-\\[90vh\\]{max-height:90vh}.w-1\\/5{width:20%}.w-2\\.5{width:calc(var(--spacing) * 2.5)}.w-3\\.5{width:calc(var(--spacing) * 3.5)}.w-3xs{width:var(--container-3xs)}.w-4{width:calc(var(--spacing) * 4)}.w-4\\/5{width:80%}.w-5{width:calc(var(--spacing) * 5)}.w-7{width:calc(var(--spacing) * 7)}.w-8{width:calc(var(--spacing) * 8)}.w-16{width:calc(var(--spacing) * 16)}.w-auto{width:auto}.w-full{width:100%}.max-w-\\(--max-container\\){max-width:var(--max-container)}.max-w-125{max-width:calc(var(--spacing) * 125)}.max-w-\\[var\\(--max-container\\)\\]{max-width:var(--max-container)}.min-w-\\(--min-container\\){min-width:var(--min-container)}.min-w-0{min-width:calc(var(--spacing) * 0)}.min-w-20{min-width:calc(var(--spacing) * 20)}.min-w-125{min-width:calc(var(--spacing) * 125)}.min-w-\\[var\\(--min-container\\)\\]{min-width:var(--min-container)}.flex-1{flex:1}.flex-2{flex:2}.shrink-0{flex-shrink:0}.-translate-y-1\\/2{--tw-translate-y: -50% ;translate:var(--tw-translate-x) var(--tw-translate-y)}.rotate-0{rotate:0deg}.rotate-180{rotate:180deg}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.animate-spin{animation:var(--animate-spin)}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.flex-col{flex-direction:column}.items-center{align-items:center}.items-center-safe{align-items:safe center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-center-safe{justify-content:safe center}.justify-end{justify-content:flex-end}.justify-end-safe{justify-content:safe flex-end}.justify-start{justify-content:flex-start}.gap-1{gap:calc(var(--spacing) * 1)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-4\\.5{gap:calc(var(--spacing) * 4.5)}.gap-5{gap:calc(var(--spacing) * 5)}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-full{border-radius:calc(infinity * 1px)}.rounded-lg{border-radius:var(--radius-lg)}.rounded-xl{border-radius:var(--radius-xl)}.rounded-s-lg{border-start-start-radius:var(--radius-lg);border-end-start-radius:var(--radius-lg)}.border{border-style:var(--tw-border-style);border-width:1px}.border-3{border-style:var(--tw-border-style);border-width:3px}.border-4{border-style:var(--tw-border-style);border-width:4px}.border-y{border-block-style:var(--tw-border-style);border-block-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-\\(--pbm-border\\){border-color:var(--pbm-border)}.border-\\(--pbm-primary\\){border-color:var(--pbm-primary)}.border-emerald-200{border-color:var(--color-emerald-200)}.border-emerald-700{border-color:var(--color-emerald-700)}.border-gray-100{border-color:var(--color-gray-100)}.border-gray-200{border-color:var(--color-gray-200)}.border-gray-300{border-color:var(--color-gray-300)}.border-red-300{border-color:var(--color-red-300)}.border-red-400{border-color:var(--color-red-400)}.border-zinc-100{border-color:var(--color-zinc-100)}.border-zinc-300{border-color:var(--color-zinc-300)}.border-zinc-400\\/50{border-color:color-mix(in srgb,oklch(70.5% .015 286.067) 50%,transparent)}@supports (color: color-mix(in lab,red,red)){.border-zinc-400\\/50{border-color:color-mix(in oklab,var(--color-zinc-400) 50%,transparent)}}.bg-\\(--pbm-input-background\\){background-color:var(--pbm-input-background)}.bg-\\(--pbm-primary\\){background-color:var(--pbm-primary)}.bg-\\(--primary-color\\){background-color:var(--primary-color)}.bg-black\\/40{background-color:color-mix(in srgb,#000 40%,transparent)}@supports (color: color-mix(in lab,red,red)){.bg-black\\/40{background-color:color-mix(in oklab,var(--color-black) 40%,transparent)}}.bg-blue-500{background-color:var(--color-blue-500)}.bg-emerald-50\\/60{background-color:color-mix(in srgb,oklch(97.9% .021 166.113) 60%,transparent)}@supports (color: color-mix(in lab,red,red)){.bg-emerald-50\\/60{background-color:color-mix(in oklab,var(--color-emerald-50) 60%,transparent)}}.bg-emerald-600{background-color:var(--color-emerald-600)}.bg-gray-50{background-color:var(--color-gray-50)}.bg-gray-100{background-color:var(--color-gray-100)}.bg-gray-600{background-color:var(--color-gray-600)}.bg-green-100{background-color:var(--color-green-100)}.bg-green-500{background-color:var(--color-green-500)}.bg-red-50{background-color:var(--color-red-50)}.bg-red-50\\/40{background-color:color-mix(in srgb,oklch(97.1% .013 17.38) 40%,transparent)}@supports (color: color-mix(in lab,red,red)){.bg-red-50\\/40{background-color:color-mix(in oklab,var(--color-red-50) 40%,transparent)}}.bg-transparent{background-color:transparent}.bg-white{background-color:var(--color-white)}.bg-zinc-50\\/40{background-color:color-mix(in srgb,oklch(98.5% 0 0) 40%,transparent)}@supports (color: color-mix(in lab,red,red)){.bg-zinc-50\\/40{background-color:color-mix(in oklab,var(--color-zinc-50) 40%,transparent)}}.bg-zinc-100{background-color:var(--color-zinc-100)}.bg-zinc-200{background-color:var(--color-zinc-200)}.bg-zinc-300\\/60{background-color:color-mix(in srgb,oklch(87.1% .006 286.286) 60%,transparent)}@supports (color: color-mix(in lab,red,red)){.bg-zinc-300\\/60{background-color:color-mix(in oklab,var(--color-zinc-300) 60%,transparent)}}.p-0{padding:calc(var(--spacing) * 0)}.p-0\\.5{padding:calc(var(--spacing) * .5)}.p-3{padding:calc(var(--spacing) * 3)}.p-4{padding:calc(var(--spacing) * 4)}.p-6{padding:calc(var(--spacing) * 6)}.p-8{padding:calc(var(--spacing) * 8)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-2\\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-6{padding-inline:calc(var(--spacing) * 6)}.py-0\\.5{padding-block:calc(var(--spacing) * .5)}.py-1{padding-block:calc(var(--spacing) * 1)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-2\\.5{padding-block:calc(var(--spacing) * 2.5)}.py-4{padding-block:calc(var(--spacing) * 4)}.py-6{padding-block:calc(var(--spacing) * 6)}.pt-4{padding-top:calc(var(--spacing) * 4)}.pl-1{padding-left:calc(var(--spacing) * 1)}.pl-2{padding-left:calc(var(--spacing) * 2)}.text-center{text-align:center}.text-start{text-align:start}.text-base{font-size:var(--text-base);line-height:var(--tw-leading, var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading, var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading, var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading, var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading, var(--text-xs--line-height))}.text-\\[10px\\]{font-size:10px}.leading-snug{--tw-leading: var(--leading-snug);line-height:var(--leading-snug)}.font-bold{--tw-font-weight: var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-light{--tw-font-weight: var(--font-weight-light);font-weight:var(--font-weight-light)}.font-medium{--tw-font-weight: var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight: var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight: var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-wide{--tw-tracking: var(--tracking-wide);letter-spacing:var(--tracking-wide)}.text-nowrap{text-wrap:nowrap}.whitespace-nowrap{white-space:nowrap}.text-\\(--pbm-primary\\){color:var(--pbm-primary)}.text-blue-500{color:var(--color-blue-500)}.text-emerald-600{color:var(--color-emerald-600)}.text-gray-400{color:var(--color-gray-400)}.text-gray-500{color:var(--color-gray-500)}.text-gray-600{color:var(--color-gray-600)}.text-gray-800{color:var(--color-gray-800)}.text-green-500{color:var(--color-green-500)}.text-red-400{color:var(--color-red-400)}.text-red-500{color:var(--color-red-500)}.text-white{color:var(--color-white)}.text-zinc-400{color:var(--color-zinc-400)}.text-zinc-500{color:var(--color-zinc-500)}.text-zinc-600{color:var(--color-zinc-600)}.text-zinc-700{color:var(--color-zinc-700)}.text-zinc-800{color:var(--color-zinc-800)}.text-zinc-900{color:var(--color-zinc-900)}.uppercase{text-transform:uppercase}.line-through{text-decoration-line:line-through}.underline{text-decoration-line:underline}.underline-offset-2{text-underline-offset:2px}.opacity-0{opacity:0%}.opacity-25{opacity:25%}.opacity-60{opacity:60%}.opacity-75{opacity:75%}.opacity-100{opacity:100%}.shadow{--tw-shadow: 0 1px 3px 0 var(--tw-shadow-color, rgb(0 0 0 / .1)), 0 1px 2px -1px var(--tw-shadow-color, rgb(0 0 0 / .1));box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px var(--tw-shadow-color, rgb(0 0 0 / .1)), 0 8px 10px -6px var(--tw-shadow-color, rgb(0 0 0 / .1));box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-4{--tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-\\(--pbm-primary\\)\\/15{--tw-ring-color: var(--pbm-primary)}@supports (color: color-mix(in lab,red,red)){.ring-\\(--pbm-primary\\)\\/15{--tw-ring-color: color-mix(in oklab, var(--pbm-primary) 15%, transparent)}}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.outline-\\(--pbm-outline-color\\){outline-color:var(--pbm-outline-color)}.outline-red-600{outline-color:var(--color-red-600)}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease, var(--default-transition-timing-function));transition-duration:var(--tw-duration, var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease, var(--default-transition-timing-function));transition-duration:var(--tw-duration, var(--default-transition-duration))}.duration-100{--tw-duration: .1s;transition-duration:.1s}.duration-150{--tw-duration: .15s;transition-duration:.15s}.duration-300{--tw-duration: .3s;transition-duration:.3s}.outline-none{--tw-outline-style: none;outline-style:none}.select-none{-webkit-user-select:none;user-select:none}.placeholder\\:text-sm::placeholder{font-size:var(--text-sm);line-height:var(--tw-leading, var(--text-sm--line-height))}.placeholder\\:font-semibold::placeholder{--tw-font-weight: var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.placeholder\\:text-zinc-600::placeholder{color:var(--color-zinc-600)}.after\\:h-2:after{content:var(--tw-content);height:calc(var(--spacing) * 2)}.after\\:w-2:after{content:var(--tw-content);width:calc(var(--spacing) * 2)}.after\\:scale-0:after{content:var(--tw-content);--tw-scale-x: 0%;--tw-scale-y: 0%;--tw-scale-z: 0%;scale:var(--tw-scale-x) var(--tw-scale-y)}.after\\:rounded-full:after{content:var(--tw-content);border-radius:calc(infinity * 1px)}.after\\:bg-\\(--pbm-primary\\):after{content:var(--tw-content);background-color:var(--pbm-primary)}.after\\:transition-transform:after{content:var(--tw-content);transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease, var(--default-transition-timing-function));transition-duration:var(--tw-duration, var(--default-transition-duration))}.after\\:duration-200:after{content:var(--tw-content);--tw-duration: .2s;transition-duration:.2s}.after\\:content-\\[\\'\\'\\]:after{--tw-content: "";content:var(--tw-content)}.peer-checked\\:after\\:scale-100:is(:where(.peer):checked~*):after{content:var(--tw-content);--tw-scale-x: 100%;--tw-scale-y: 100%;--tw-scale-z: 100%;scale:var(--tw-scale-x) var(--tw-scale-y)}@media(hover:hover){.hover\\:border-\\(--pbm-primary\\):hover{border-color:var(--pbm-primary)}}@media(hover:hover){.hover\\:border-gray-300:hover{border-color:var(--color-gray-300)}}@media(hover:hover){.hover\\:border-zinc-200:hover{border-color:var(--color-zinc-200)}}@media(hover:hover){.hover\\:bg-\\(--pbm-primary\\)\\/60:hover{background-color:var(--pbm-primary)}@supports (color: color-mix(in lab,red,red)){.hover\\:bg-\\(--pbm-primary\\)\\/60:hover{background-color:color-mix(in oklab,var(--pbm-primary) 60%,transparent)}}}@media(hover:hover){.hover\\:bg-\\(--primary-color\\)\\/80:hover{background-color:var(--primary-color)}@supports (color: color-mix(in lab,red,red)){.hover\\:bg-\\(--primary-color\\)\\/80:hover{background-color:color-mix(in oklab,var(--primary-color) 80%,transparent)}}}@media(hover:hover){.hover\\:bg-blue-400:hover{background-color:var(--color-blue-400)}}@media(hover:hover){.hover\\:bg-emerald-500:hover{background-color:var(--color-emerald-500)}}@media(hover:hover){.hover\\:bg-gray-100:hover{background-color:var(--color-gray-100)}}@media(hover:hover){.hover\\:bg-gray-500:hover{background-color:var(--color-gray-500)}}@media(hover:hover){.hover\\:bg-green-400:hover{background-color:var(--color-green-400)}}@media(hover:hover){.hover\\:bg-transparent:hover{background-color:transparent}}@media(hover:hover){.hover\\:bg-zinc-600\\/10:hover{background-color:color-mix(in srgb,oklch(44.2% .017 285.786) 10%,transparent)}@supports (color: color-mix(in lab,red,red)){.hover\\:bg-zinc-600\\/10:hover{background-color:color-mix(in oklab,var(--color-zinc-600) 10%,transparent)}}}@media(hover:hover){.hover\\:text-\\(--pbm-primary\\)\\/60:hover{color:var(--pbm-primary)}@supports (color: color-mix(in lab,red,red)){.hover\\:text-\\(--pbm-primary\\)\\/60:hover{color:color-mix(in oklab,var(--pbm-primary) 60%,transparent)}}}@media(hover:hover){.hover\\:text-gray-600:hover{color:var(--color-gray-600)}}@media(hover:hover){.hover\\:text-zinc-400:hover{color:var(--color-zinc-400)}}@media(hover:hover){.hover\\:text-zinc-900:hover{color:var(--color-zinc-900)}}.focus\\:border-blue-500:focus{border-color:var(--color-blue-500)}.focus\\:bg-\\(--pbm-input-focus\\):focus{background-color:var(--pbm-input-focus)}.focus\\:bg-white:focus{background-color:var(--color-white)}.focus\\:ring-2:focus{--tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\\:ring-blue-500\\/30:focus{--tw-ring-color: color-mix(in srgb, oklch(62.3% .214 259.815) 30%, transparent)}@supports (color: color-mix(in lab,red,red)){.focus\\:ring-blue-500\\/30:focus{--tw-ring-color: color-mix(in oklab, var(--color-blue-500) 30%, transparent)}}.focus\\:outline:focus{outline-style:var(--tw-outline-style);outline-width:1px}.focus\\:outline-\\(--pbm-outline-focus-color\\):focus{outline-color:var(--pbm-outline-focus-color)}@media(min-width:40rem){.sm\\:block{display:block}}}:root{--max-container: 556px;--min-container: 350px}@property --tw-translate-x{syntax: "*"; inherits: false; initial-value: 0;}@property --tw-translate-y{syntax: "*"; inherits: false; initial-value: 0;}@property --tw-translate-z{syntax: "*"; inherits: false; initial-value: 0;}@property --tw-rotate-x{syntax: "*"; inherits: false;}@property --tw-rotate-y{syntax: "*"; inherits: false;}@property --tw-rotate-z{syntax: "*"; inherits: false;}@property --tw-skew-x{syntax: "*"; inherits: false;}@property --tw-skew-y{syntax: "*"; inherits: false;}@property --tw-border-style{syntax: "*"; inherits: false; initial-value: solid;}@property --tw-leading{syntax: "*"; inherits: false;}@property --tw-font-weight{syntax: "*"; inherits: false;}@property --tw-tracking{syntax: "*"; inherits: false;}@property --tw-shadow{syntax: "*"; inherits: false; initial-value: 0 0 #0000;}@property --tw-shadow-color{syntax: "*"; inherits: false;}@property --tw-shadow-alpha{syntax: "<percentage>"; inherits: false; initial-value: 100%;}@property --tw-inset-shadow{syntax: "*"; inherits: false; initial-value: 0 0 #0000;}@property --tw-inset-shadow-color{syntax: "*"; inherits: false;}@property --tw-inset-shadow-alpha{syntax: "<percentage>"; inherits: false; initial-value: 100%;}@property --tw-ring-color{syntax: "*"; inherits: false;}@property --tw-ring-shadow{syntax: "*"; inherits: false; initial-value: 0 0 #0000;}@property --tw-inset-ring-color{syntax: "*"; inherits: false;}@property --tw-inset-ring-shadow{syntax: "*"; inherits: false; initial-value: 0 0 #0000;}@property --tw-ring-inset{syntax: "*"; inherits: false;}@property --tw-ring-offset-width{syntax: "<length>"; inherits: false; initial-value: 0px;}@property --tw-ring-offset-color{syntax: "*"; inherits: false; initial-value: #fff;}@property --tw-ring-offset-shadow{syntax: "*"; inherits: false; initial-value: 0 0 #0000;}@property --tw-outline-style{syntax: "*"; inherits: false; initial-value: solid;}@property --tw-blur{syntax: "*"; inherits: false;}@property --tw-brightness{syntax: "*"; inherits: false;}@property --tw-contrast{syntax: "*"; inherits: false;}@property --tw-grayscale{syntax: "*"; inherits: false;}@property --tw-hue-rotate{syntax: "*"; inherits: false;}@property --tw-invert{syntax: "*"; inherits: false;}@property --tw-opacity{syntax: "*"; inherits: false;}@property --tw-saturate{syntax: "*"; inherits: false;}@property --tw-sepia{syntax: "*"; inherits: false;}@property --tw-drop-shadow{syntax: "*"; inherits: false;}@property --tw-drop-shadow-color{syntax: "*"; inherits: false;}@property --tw-drop-shadow-alpha{syntax: "<percentage>"; inherits: false; initial-value: 100%;}@property --tw-drop-shadow-size{syntax: "*"; inherits: false;}@property --tw-duration{syntax: "*"; inherits: false;}@property --tw-content{syntax: "*"; initial-value: ""; inherits: false;}@property --tw-scale-x{syntax: "*"; inherits: false; initial-value: 1;}@property --tw-scale-y{syntax: "*"; inherits: false; initial-value: 1;}@property --tw-scale-z{syntax: "*"; inherits: false; initial-value: 1;}@keyframes spin{to{transform:rotate(360deg)}}@layer properties{@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x: 0;--tw-translate-y: 0;--tw-translate-z: 0;--tw-rotate-x: initial;--tw-rotate-y: initial;--tw-rotate-z: initial;--tw-skew-x: initial;--tw-skew-y: initial;--tw-border-style: solid;--tw-leading: initial;--tw-font-weight: initial;--tw-tracking: initial;--tw-shadow: 0 0 #0000;--tw-shadow-color: initial;--tw-shadow-alpha: 100%;--tw-inset-shadow: 0 0 #0000;--tw-inset-shadow-color: initial;--tw-inset-shadow-alpha: 100%;--tw-ring-color: initial;--tw-ring-shadow: 0 0 #0000;--tw-inset-ring-color: initial;--tw-inset-ring-shadow: 0 0 #0000;--tw-ring-inset: initial;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-offset-shadow: 0 0 #0000;--tw-outline-style: solid;--tw-blur: initial;--tw-brightness: initial;--tw-contrast: initial;--tw-grayscale: initial;--tw-hue-rotate: initial;--tw-invert: initial;--tw-opacity: initial;--tw-saturate: initial;--tw-sepia: initial;--tw-drop-shadow: initial;--tw-drop-shadow-color: initial;--tw-drop-shadow-alpha: 100%;--tw-drop-shadow-size: initial;--tw-duration: initial;--tw-content: "";--tw-scale-x: 1;--tw-scale-y: 1;--tw-scale-z: 1}}}`,V_={id:"100282",ean:"7891142982513",requestedQuantity:"1",listPrice:"56579",netPrice:"56579"};window.pbm=hv();class B_ extends HTMLElement{constructor(){super();qd(this,"root",null);qd(this,"props",{tenant_id:"",target_product:V_,is_authenticated_shopper:!1,custom_login_url:"/login"});this.attachShadow({mode:"open"})}static get observedAttributes(){return["original_product_price","tenant_id","target_product","is_authenticated_shopper","custom_login_url","theme"]}updatePropsFromAttributes(){const l=this.getAttribute("tenant_id"),s=this.getAttribute("target_product"),u=this.getAttribute("is_authenticated_shopper"),f=this.getAttribute("custom_login_url"),d=this.getAttribute("theme");if(u!==null&&(this.props.is_authenticated_shopper=u==="true"),f!==null&&(this.props.custom_login_url=f===""?"/login":f),l!==null&&(this.props.tenant_id=l),s!==null&&(this.props.target_product=JSON.parse(s)),d!==null)try{this.props.theme=JSON.parse(d)}catch(h){console.error("PBMLOG: Error parsing theme attribute -",h)}}connectedCallback(){this.updatePropsFromAttributes(),this.mount()}attributeChangedCallback(l,s,u){if(l==="tenant_id"&&(this.props.tenant_id=u),l==="target_product"&&(this.props.target_product=JSON.parse(u)),l==="is_authenticated_shopper"&&(this.props.is_authenticated_shopper=u==="true"),l==="custom_login_url"&&(this.props.custom_login_url=u===""?"/login":u),l==="theme")try{this.props.theme=u?JSON.parse(u):void 0}catch(f){console.error("PBMLOG: Error parsing theme attribute -",f)}this.mount()}mount(){if(!this.isConnected)return;let l=this.shadowRoot;if(!(!l&&(this.attachShadow({mode:"open"}),l=this.shadowRoot,!l))){if(!l.querySelector("#pbm-shadow-root")){const s=document.createElement("div");s.id="pbm-shadow-root";const u=document.createElement("style");u.textContent=j_,l.appendChild(u),l.appendChild(s),this.root=jb.createRoot(s)}this.root&&this.root.render(x.jsxDEV(k_,{...this.props},void 0,!1,{fileName:"C:/Dev/agrada/library-pbm/src/web/PBM-webcomponent.tsx",lineNumber:137,columnNumber:24},this))}}}customElements.define("pbm-component",B_)})();