@agrada_digital/pbm 0.0.107 → 0.0.108

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.
@@ -0,0 +1,151 @@
1
+ var Ew=Object.defineProperty;var Cw=(Ka,Ja,In)=>Ja in Ka?Ew(Ka,Ja,{enumerable:!0,configurable:!0,writable:!0,value:In}):Ka[Ja]=In;var xd=(Ka,Ja,In)=>Cw(Ka,typeof Ja!="symbol"?Ja+"":Ja,In);(function(){"use strict";var Ka=typeof document<"u"?document.currentScript:null;function Ja(n,r){for(var l=0;l<r.length;l++){const s=r[l];if(typeof s!="string"&&!Array.isArray(s)){for(const o in s)if(o!=="default"&&!(o in n)){const f=Object.getOwnPropertyDescriptor(s,o);f&&Object.defineProperty(n,o,f.get?f:{enumerable:!0,get:()=>s[o]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}function In(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Ju={exports:{}},Ni={};/**
2
+ * @license React
3
+ * react-jsx-runtime.production.js
4
+ *
5
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var Sd;function F0(){if(Sd)return Ni;Sd=1;var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function l(s,o,f){var d=null;if(f!==void 0&&(d=""+f),o.key!==void 0&&(d=""+o.key),"key"in o){f={};for(var m in o)m!=="key"&&(f[m]=o[m])}else f=o;return o=f.ref,{$$typeof:n,type:s,key:d,ref:o!==void 0?o:null,props:f}}return Ni.Fragment=r,Ni.jsx=l,Ni.jsxs=l,Ni}var wd;function W0(){return wd||(wd=1,Ju.exports=F0()),Ju.exports}var U=W0(),Fu={exports:{}},Ri={},Wu={exports:{}},Iu={};/**
10
+ * @license React
11
+ * scheduler.production.js
12
+ *
13
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var Ad;function I0(){return Ad||(Ad=1,(function(n){function r(O,K){var se=O.length;O.push(K);e:for(;0<se;){var ze=se-1>>>1,Le=O[ze];if(0<o(Le,K))O[ze]=K,O[se]=Le,se=ze;else break e}}function l(O){return O.length===0?null:O[0]}function s(O){if(O.length===0)return null;var K=O[0],se=O.pop();if(se!==K){O[0]=se;e:for(var ze=0,Le=O.length,T=Le>>>1;ze<T;){var G=2*(ze+1)-1,ae=O[G],oe=G+1,ge=O[oe];if(0>o(ae,se))oe<Le&&0>o(ge,ae)?(O[ze]=ge,O[oe]=se,ze=oe):(O[ze]=ae,O[G]=se,ze=G);else if(oe<Le&&0>o(ge,se))O[ze]=ge,O[oe]=se,ze=oe;else break e}}return K}function o(O,K){var se=O.sortIndex-K.sortIndex;return se!==0?se:O.id-K.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 g=[],p=[],S=1,w=null,D=3,_=!1,B=!1,E=!1,Z=!1,P=typeof setTimeout=="function"?setTimeout:null,F=typeof clearTimeout=="function"?clearTimeout:null,re=typeof setImmediate<"u"?setImmediate:null;function te(O){for(var K=l(p);K!==null;){if(K.callback===null)s(p);else if(K.startTime<=O)s(p),K.sortIndex=K.expirationTime,r(g,K);else break;K=l(p)}}function L(O){if(E=!1,te(O),!B)if(l(g)!==null)B=!0,X||(X=!0,v());else{var K=l(p);K!==null&&le(L,K.startTime-O)}}var X=!1,J=-1,we=5,De=-1;function at(){return Z?!0:!(n.unstable_now()-De<we)}function ve(){if(Z=!1,X){var O=n.unstable_now();De=O;var K=!0;try{e:{B=!1,E&&(E=!1,F(J),J=-1),_=!0;var se=D;try{t:{for(te(O),w=l(g);w!==null&&!(w.expirationTime>O&&at());){var ze=w.callback;if(typeof ze=="function"){w.callback=null,D=w.priorityLevel;var Le=ze(w.expirationTime<=O);if(O=n.unstable_now(),typeof Le=="function"){w.callback=Le,te(O),K=!0;break t}w===l(g)&&s(g),te(O)}else s(g);w=l(g)}if(w!==null)K=!0;else{var T=l(p);T!==null&&le(L,T.startTime-O),K=!1}}break e}finally{w=null,D=se,_=!1}K=void 0}}finally{K?v():X=!1}}}var v;if(typeof re=="function")v=function(){re(ve)};else if(typeof MessageChannel<"u"){var $=new MessageChannel,Q=$.port2;$.port1.onmessage=ve,v=function(){Q.postMessage(null)}}else v=function(){P(ve,0)};function le(O,K){J=P(function(){O(n.unstable_now())},K)}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"):we=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 K=3;break;default:K=D}var se=D;D=K;try{return O()}finally{D=se}},n.unstable_requestPaint=function(){Z=!0},n.unstable_runWithPriority=function(O,K){switch(O){case 1:case 2:case 3:case 4:case 5:break;default:O=3}var se=D;D=O;try{return K()}finally{D=se}},n.unstable_scheduleCallback=function(O,K,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,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:K,priorityLevel:O,startTime:se,expirationTime:Le,sortIndex:-1},se>ze?(O.sortIndex=se,r(p,O),l(g)===null&&O===l(p)&&(E?(F(J),J=-1):E=!0,le(L,se-ze))):(O.sortIndex=Le,r(g,O),B||_||(B=!0,X||(X=!0,v()))),O},n.unstable_shouldYield=at,n.unstable_wrapCallback=function(O){var K=D;return function(){var se=D;D=K;try{return O.apply(this,arguments)}finally{D=se}}}})(Iu)),Iu}var Td;function P0(){return Td||(Td=1,Wu.exports=I0()),Wu.exports}var Pu={exports:{}},be={};/**
18
+ * @license React
19
+ * react.production.js
20
+ *
21
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
22
+ *
23
+ * This source code is licensed under the MIT license found in the
24
+ * LICENSE file in the root directory of this source tree.
25
+ */var Ed;function ev(){if(Ed)return be;Ed=1;var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),d=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),w=Symbol.for("react.activity"),D=Symbol.iterator;function _(T){return T===null||typeof T!="object"?null:(T=D&&T[D]||T["@@iterator"],typeof T=="function"?T:null)}var B={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E=Object.assign,Z={};function P(T,G,ae){this.props=T,this.context=G,this.refs=Z,this.updater=ae||B}P.prototype.isReactComponent={},P.prototype.setState=function(T,G){if(typeof T!="object"&&typeof T!="function"&&T!=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,T,G,"setState")},P.prototype.forceUpdate=function(T){this.updater.enqueueForceUpdate(this,T,"forceUpdate")};function F(){}F.prototype=P.prototype;function re(T,G,ae){this.props=T,this.context=G,this.refs=Z,this.updater=ae||B}var te=re.prototype=new F;te.constructor=re,E(te,P.prototype),te.isPureReactComponent=!0;var L=Array.isArray;function X(){}var J={H:null,A:null,T:null,S:null},we=Object.prototype.hasOwnProperty;function De(T,G,ae){var oe=ae.ref;return{$$typeof:n,type:T,key:G,ref:oe!==void 0?oe:null,props:ae}}function at(T,G){return De(T.type,G,T.props)}function ve(T){return typeof T=="object"&&T!==null&&T.$$typeof===n}function v(T){var G={"=":"=0",":":"=2"};return"$"+T.replace(/[=:]/g,function(ae){return G[ae]})}var $=/\/+/g;function Q(T,G){return typeof T=="object"&&T!==null&&T.key!=null?v(""+T.key):G.toString(36)}function le(T){switch(T.status){case"fulfilled":return T.value;case"rejected":throw T.reason;default:switch(typeof T.status=="string"?T.then(X,X):(T.status="pending",T.then(function(G){T.status==="pending"&&(T.status="fulfilled",T.value=G)},function(G){T.status==="pending"&&(T.status="rejected",T.reason=G)})),T.status){case"fulfilled":return T.value;case"rejected":throw T.reason}}throw T}function O(T,G,ae,oe,ge){var Ce=typeof T;(Ce==="undefined"||Ce==="boolean")&&(T=null);var Be=!1;if(T===null)Be=!0;else switch(Ce){case"bigint":case"string":case"number":Be=!0;break;case"object":switch(T.$$typeof){case n:case r:Be=!0;break;case S:return Be=T._init,O(Be(T._payload),G,ae,oe,ge)}}if(Be)return ge=ge(T),Be=oe===""?"."+Q(T,0):oe,L(ge)?(ae="",Be!=null&&(ae=Be.replace($,"$&/")+"/"),O(ge,G,ae,"",function(En){return En})):ge!=null&&(ve(ge)&&(ge=at(ge,ae+(ge.key==null||T&&T.key===ge.key?"":(""+ge.key).replace($,"$&/")+"/")+Be)),G.push(ge)),1;Be=0;var Rt=oe===""?".":oe+":";if(L(T))for(var rt=0;rt<T.length;rt++)oe=T[rt],Ce=Rt+Q(oe,rt),Be+=O(oe,G,ae,Ce,ge);else if(rt=_(T),typeof rt=="function")for(T=rt.call(T),rt=0;!(oe=T.next()).done;)oe=oe.value,Ce=Rt+Q(oe,rt++),Be+=O(oe,G,ae,Ce,ge);else if(Ce==="object"){if(typeof T.then=="function")return O(le(T),G,ae,oe,ge);throw G=String(T),Error("Objects are not valid as a React child (found: "+(G==="[object Object]"?"object with keys {"+Object.keys(T).join(", ")+"}":G)+"). If you meant to render a collection of children, use an array instead.")}return Be}function K(T,G,ae){if(T==null)return T;var oe=[],ge=0;return O(T,oe,"","",function(Ce){return G.call(ae,Ce,ge++)}),oe}function se(T){if(T._status===-1){var G=T._result;G=G(),G.then(function(ae){(T._status===0||T._status===-1)&&(T._status=1,T._result=ae)},function(ae){(T._status===0||T._status===-1)&&(T._status=2,T._result=ae)}),T._status===-1&&(T._status=0,T._result=G)}if(T._status===1)return T._result.default;throw T._result}var ze=typeof reportError=="function"?reportError:function(T){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var G=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof T=="object"&&T!==null&&typeof T.message=="string"?String(T.message):String(T),error:T});if(!window.dispatchEvent(G))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",T);return}console.error(T)},Le={map:K,forEach:function(T,G,ae){K(T,function(){G.apply(this,arguments)},ae)},count:function(T){var G=0;return K(T,function(){G++}),G},toArray:function(T){return K(T,function(G){return G})||[]},only:function(T){if(!ve(T))throw Error("React.Children.only expected to receive a single React element child.");return T}};return be.Activity=w,be.Children=Le,be.Component=P,be.Fragment=l,be.Profiler=o,be.PureComponent=re,be.StrictMode=s,be.Suspense=g,be.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=J,be.__COMPILER_RUNTIME={__proto__:null,c:function(T){return J.H.useMemoCache(T)}},be.cache=function(T){return function(){return T.apply(null,arguments)}},be.cacheSignal=function(){return null},be.cloneElement=function(T,G,ae){if(T==null)throw Error("The argument must be a React element, but you passed "+T+".");var oe=E({},T.props),ge=T.key;if(G!=null)for(Ce in G.key!==void 0&&(ge=""+G.key),G)!we.call(G,Ce)||Ce==="key"||Ce==="__self"||Ce==="__source"||Ce==="ref"&&G.ref===void 0||(oe[Ce]=G[Ce]);var Ce=arguments.length-2;if(Ce===1)oe.children=ae;else if(1<Ce){for(var Be=Array(Ce),Rt=0;Rt<Ce;Rt++)Be[Rt]=arguments[Rt+2];oe.children=Be}return De(T.type,ge,oe)},be.createContext=function(T){return T={$$typeof:d,_currentValue:T,_currentValue2:T,_threadCount:0,Provider:null,Consumer:null},T.Provider=T,T.Consumer={$$typeof:f,_context:T},T},be.createElement=function(T,G,ae){var oe,ge={},Ce=null;if(G!=null)for(oe in G.key!==void 0&&(Ce=""+G.key),G)we.call(G,oe)&&oe!=="key"&&oe!=="__self"&&oe!=="__source"&&(ge[oe]=G[oe]);var Be=arguments.length-2;if(Be===1)ge.children=ae;else if(1<Be){for(var Rt=Array(Be),rt=0;rt<Be;rt++)Rt[rt]=arguments[rt+2];ge.children=Rt}if(T&&T.defaultProps)for(oe in Be=T.defaultProps,Be)ge[oe]===void 0&&(ge[oe]=Be[oe]);return De(T,Ce,ge)},be.createRef=function(){return{current:null}},be.forwardRef=function(T){return{$$typeof:m,render:T}},be.isValidElement=ve,be.lazy=function(T){return{$$typeof:S,_payload:{_status:-1,_result:T},_init:se}},be.memo=function(T,G){return{$$typeof:p,type:T,compare:G===void 0?null:G}},be.startTransition=function(T){var G=J.T,ae={};J.T=ae;try{var oe=T(),ge=J.S;ge!==null&&ge(ae,oe),typeof oe=="object"&&oe!==null&&typeof oe.then=="function"&&oe.then(X,ze)}catch(Ce){ze(Ce)}finally{G!==null&&ae.types!==null&&(G.types=ae.types),J.T=G}},be.unstable_useCacheRefresh=function(){return J.H.useCacheRefresh()},be.use=function(T){return J.H.use(T)},be.useActionState=function(T,G,ae){return J.H.useActionState(T,G,ae)},be.useCallback=function(T,G){return J.H.useCallback(T,G)},be.useContext=function(T){return J.H.useContext(T)},be.useDebugValue=function(){},be.useDeferredValue=function(T,G){return J.H.useDeferredValue(T,G)},be.useEffect=function(T,G){return J.H.useEffect(T,G)},be.useEffectEvent=function(T){return J.H.useEffectEvent(T)},be.useId=function(){return J.H.useId()},be.useImperativeHandle=function(T,G,ae){return J.H.useImperativeHandle(T,G,ae)},be.useInsertionEffect=function(T,G){return J.H.useInsertionEffect(T,G)},be.useLayoutEffect=function(T,G){return J.H.useLayoutEffect(T,G)},be.useMemo=function(T,G){return J.H.useMemo(T,G)},be.useOptimistic=function(T,G){return J.H.useOptimistic(T,G)},be.useReducer=function(T,G,ae){return J.H.useReducer(T,G,ae)},be.useRef=function(T){return J.H.useRef(T)},be.useState=function(T){return J.H.useState(T)},be.useSyncExternalStore=function(T,G,ae){return J.H.useSyncExternalStore(T,G,ae)},be.useTransition=function(){return J.H.useTransition()},be.version="19.2.4",be}var Cd;function eo(){return Cd||(Cd=1,Pu.exports=ev()),Pu.exports}var to={exports:{}},Lt={};/**
26
+ * @license React
27
+ * react-dom.production.js
28
+ *
29
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
30
+ *
31
+ * This source code is licensed under the MIT license found in the
32
+ * LICENSE file in the root directory of this source tree.
33
+ */var Od;function tv(){if(Od)return Lt;Od=1;var n=eo();function r(g){var p="https://react.dev/errors/"+g;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 #"+g+"; 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},o=Symbol.for("react.portal");function f(g,p,S){var w=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:w==null?null:""+w,children:g,containerInfo:p,implementation:S}}var d=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function m(g,p){if(g==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return Lt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,Lt.createPortal=function(g,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(g,p,null,S)},Lt.flushSync=function(g){var p=d.T,S=s.p;try{if(d.T=null,s.p=2,g)return g()}finally{d.T=p,s.p=S,s.d.f()}},Lt.preconnect=function(g,p){typeof g=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,s.d.C(g,p))},Lt.prefetchDNS=function(g){typeof g=="string"&&s.d.D(g)},Lt.preinit=function(g,p){if(typeof g=="string"&&p&&typeof p.as=="string"){var S=p.as,w=m(S,p.crossOrigin),D=typeof p.integrity=="string"?p.integrity:void 0,_=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;S==="style"?s.d.S(g,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:w,integrity:D,fetchPriority:_}):S==="script"&&s.d.X(g,{crossOrigin:w,integrity:D,fetchPriority:_,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},Lt.preinitModule=function(g,p){if(typeof g=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var S=m(p.as,p.crossOrigin);s.d.M(g,{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(g)},Lt.preload=function(g,p){if(typeof g=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var S=p.as,w=m(S,p.crossOrigin);s.d.L(g,S,{crossOrigin:w,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})}},Lt.preloadModule=function(g,p){if(typeof g=="string")if(p){var S=m(p.as,p.crossOrigin);s.d.m(g,{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(g)},Lt.requestFormReset=function(g){s.d.r(g)},Lt.unstable_batchedUpdates=function(g,p){return g(p)},Lt.useFormState=function(g,p,S){return d.H.useFormState(g,p,S)},Lt.useFormStatus=function(){return d.H.useHostTransitionStatus()},Lt.version="19.2.4",Lt}var zd;function av(){if(zd)return to.exports;zd=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(),to.exports=tv(),to.exports}/**
34
+ * @license React
35
+ * react-dom-client.production.js
36
+ *
37
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
38
+ *
39
+ * This source code is licensed under the MIT license found in the
40
+ * LICENSE file in the root directory of this source tree.
41
+ */var kd;function nv(){if(kd)return Ri;kd=1;var n=P0(),r=eo(),l=av();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 o(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 g(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 u=a.return;if(u===null)break;var c=u.alternate;if(c===null){if(i=u.return,i!==null){a=i;continue}break}if(u.child===c.child){for(c=u.child;c;){if(c===a)return g(u),e;if(c===i)return g(u),t;c=c.sibling}throw Error(s(188))}if(a.return!==i.return)a=u,i=c;else{for(var h=!1,y=u.child;y;){if(y===a){h=!0,a=u,i=c;break}if(y===i){h=!0,i=u,a=c;break}y=y.sibling}if(!h){for(y=c.child;y;){if(y===a){h=!0,a=c,i=u;break}if(y===i){h=!0,i=c,a=u;break}y=y.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 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 w=Object.assign,D=Symbol.for("react.element"),_=Symbol.for("react.transitional.element"),B=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),Z=Symbol.for("react.strict_mode"),P=Symbol.for("react.profiler"),F=Symbol.for("react.consumer"),re=Symbol.for("react.context"),te=Symbol.for("react.forward_ref"),L=Symbol.for("react.suspense"),X=Symbol.for("react.suspense_list"),J=Symbol.for("react.memo"),we=Symbol.for("react.lazy"),De=Symbol.for("react.activity"),at=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 Q(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 Z:return"StrictMode";case L:return"Suspense";case X:return"SuspenseList";case De:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case B:return"Portal";case re: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:Q(e.type)||"Memo";case we:t=e._payload,e=e._init;try{return Q(e(t))}catch{}}return null}var le=Array.isArray,O=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K=l.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,se={pending:!1,data:null,method:null,action:null},ze=[],Le=-1;function T(e){return{current:e}}function G(e){0>Le||(e.current=ze[Le],ze[Le]=null,Le--)}function ae(e,t){Le++,ze[Le]=e.current,e.current=t}var oe=T(null),ge=T(null),Ce=T(null),Be=T(null);function Rt(e,t){switch(ae(Ce,t),ae(ge,e),ae(oe,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?b0(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=b0(t),e=_0(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}G(oe),ae(oe,e)}function rt(){G(oe),G(ge),G(Ce)}function En(e){e.memoizedState!==null&&ae(Be,e);var t=oe.current,a=_0(t,e.type);t!==a&&(ae(ge,e),ae(oe,a))}function Cn(e){ge.current===e&&(G(oe),G(ge)),Be.current===e&&(G(Be),Gl._currentValue=se)}var sr,zs;function Ya(e){if(sr===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);sr=t&&t[1]||"",zs=-1<a.stack.indexOf(`
42
+ at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
43
+ `+sr+e+zs}var tl=!1;function $r(e,t){if(!e||tl)return"";tl=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var i={DetermineComponentFrameRoot:function(){try{if(t){var Y=function(){throw Error()};if(Object.defineProperty(Y.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Y,[])}catch(j){var M=j}Reflect.construct(e,[],Y)}else{try{Y.call()}catch(j){M=j}e.call(Y.prototype)}}else{try{throw Error()}catch(j){M=j}(Y=e())&&typeof Y.catch=="function"&&Y.catch(function(){})}}catch(j){if(j&&M&&typeof j.stack=="string")return[j.stack,M.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var u=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,"name");u&&u.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=i.DetermineComponentFrameRoot(),h=c[0],y=c[1];if(h&&y){var b=h.split(`
44
+ `),N=y.split(`
45
+ `);for(u=i=0;i<b.length&&!b[i].includes("DetermineComponentFrameRoot");)i++;for(;u<N.length&&!N[u].includes("DetermineComponentFrameRoot");)u++;if(i===b.length||u===N.length)for(i=b.length-1,u=N.length-1;1<=i&&0<=u&&b[i]!==N[u];)u--;for(;1<=i&&0<=u;i--,u--)if(b[i]!==N[u]){if(i!==1||u!==1)do if(i--,u--,0>u||b[i]!==N[u]){var H=`
46
+ `+b[i].replace(" at new "," at ");return e.displayName&&H.includes("<anonymous>")&&(H=H.replace("<anonymous>",e.displayName)),H}while(1<=i&&0<=u);break}}}finally{tl=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?Ya(a):""}function ks(e,t){switch(e.tag){case 26:case 27:case 5:return Ya(e.type);case 16:return Ya("Lazy");case 13:return e.child!==t&&t!==null?Ya("Suspense Fallback"):Ya("Suspense");case 19:return Ya("SuspenseList");case 0:case 15:return $r(e.type,!1);case 11:return $r(e.type.render,!1);case 1:return $r(e.type,!0);case 31:return Ya("Activity");default:return""}}function Ns(e){try{var t="",a=null;do t+=ks(e,a),a=e,e=e.return;while(e);return t}catch(i){return`
47
+ Error generating stack: `+i.message+`
48
+ `+i.stack}}var al=Object.prototype.hasOwnProperty,Rs=n.unstable_scheduleCallback,Qr=n.unstable_cancelCallback,x=n.unstable_shouldYield,z=n.unstable_requestPaint,R=n.unstable_now,ne=n.unstable_getCurrentPriorityLevel,I=n.unstable_ImmediatePriority,ee=n.unstable_UserBlockingPriority,fe=n.unstable_NormalPriority,Ae=n.unstable_LowPriority,He=n.unstable_IdlePriority,Yt=n.log,va=n.unstable_setDisableYieldValue,St=null,Gt=null;function ba(e){if(typeof Yt=="function"&&va(e),Gt&&typeof Gt.setStrictMode=="function")try{Gt.setStrictMode(St,e)}catch{}}var Mt=Math.clz32?Math.clz32:sc,lc=Math.log,Ms=Math.LN2;function sc(e){return e>>>=0,e===0?32:31-(lc(e)/Ms|0)|0}var ur=256,Ds=262144,js=4194304;function or(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 Us(e,t,a){var i=e.pendingLanes;if(i===0)return 0;var u=0,c=e.suspendedLanes,h=e.pingedLanes;e=e.warmLanes;var y=i&134217727;return y!==0?(i=y&~c,i!==0?u=or(i):(h&=y,h!==0?u=or(h):a||(a=y&~e,a!==0&&(u=or(a))))):(y=i&~c,y!==0?u=or(y):h!==0?u=or(h):a||(a=i&~e,a!==0&&(u=or(a)))),u===0?0:t!==0&&t!==u&&(t&c)===0&&(c=u&-u,a=t&-t,c>=a||c===32&&(a&4194048)!==0)?t:u}function nl(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function hS(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 ey(){var e=js;return js<<=1,(js&62914560)===0&&(js=4194304),e}function uc(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function rl(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function mS(e,t,a,i,u,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 y=e.entanglements,b=e.expirationTimes,N=e.hiddenUpdates;for(a=h&~a;0<a;){var H=31-Mt(a),Y=1<<H;y[H]=0,b[H]=-1;var M=N[H];if(M!==null)for(N[H]=null,H=0;H<M.length;H++){var j=M[H];j!==null&&(j.lane&=-536870913)}a&=~Y}i!==0&&ty(e,i,0),c!==0&&u===0&&e.tag!==0&&(e.suspendedLanes|=c&~(h&~t))}function ty(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var i=31-Mt(t);e.entangledLanes|=t,e.entanglements[i]=e.entanglements[i]|1073741824|a&261930}function ay(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var i=31-Mt(a),u=1<<i;u&t|e[i]&t&&(e[i]|=t),a&=~u}}function ny(e,t){var a=t&-t;return a=(a&42)!==0?1:oc(a),(a&(e.suspendedLanes|t))!==0?0:a}function oc(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 cc(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function ry(){var e=K.p;return e!==0?e:(e=window.event,e===void 0?32:Y0(e.type))}function iy(e,t){var a=K.p;try{return K.p=e,t()}finally{K.p=a}}var On=Math.random().toString(36).slice(2),Dt="__reactFiber$"+On,Jt="__reactProps$"+On,Xr="__reactContainer$"+On,fc="__reactEvents$"+On,yS="__reactListeners$"+On,pS="__reactHandles$"+On,ly="__reactResources$"+On,il="__reactMarker$"+On;function dc(e){delete e[Dt],delete e[Jt],delete e[fc],delete e[yS],delete e[pS]}function Kr(e){var t=e[Dt];if(t)return t;for(var a=e.parentNode;a;){if(t=a[Xr]||a[Dt]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=C0(e);e!==null;){if(a=e[Dt])return a;e=C0(e)}return t}e=a,a=e.parentNode}return null}function Jr(e){if(e=e[Dt]||e[Xr]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function ll(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(s(33))}function Fr(e){var t=e[ly];return t||(t=e[ly]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function zt(e){e[il]=!0}var sy=new Set,uy={};function cr(e,t){Wr(e,t),Wr(e+"Capture",t)}function Wr(e,t){for(uy[e]=t,e=0;e<t.length;e++)sy.add(t[e])}var gS=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]*$"),oy={},cy={};function vS(e){return al.call(cy,e)?!0:al.call(oy,e)?!1:gS.test(e)?cy[e]=!0:(oy[e]=!0,!1)}function Bs(e,t,a){if(vS(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 Vs(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 en(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 _a(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function fy(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function bS(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 u=i.get,c=i.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return u.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 hc(e){if(!e._valueTracker){var t=fy(e)?"checked":"value";e._valueTracker=bS(e,t,""+e[t])}}function dy(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),i="";return e&&(i=fy(e)?e.checked?"true":"false":e.value),e=i,e!==a?(t.setValue(e),!0):!1}function Ls(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 _S=/[\n"\\]/g;function xa(e){return e.replace(_S,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function mc(e,t,a,i,u,c,h,y){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=""+_a(t)):e.value!==""+_a(t)&&(e.value=""+_a(t)):h!=="submit"&&h!=="reset"||e.removeAttribute("value"),t!=null?yc(e,h,_a(t)):a!=null?yc(e,h,_a(a)):i!=null&&e.removeAttribute("value"),u==null&&c!=null&&(e.defaultChecked=!!c),u!=null&&(e.checked=u&&typeof u!="function"&&typeof u!="symbol"),y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"?e.name=""+_a(y):e.removeAttribute("name")}function hy(e,t,a,i,u,c,h,y){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)){hc(e);return}a=a!=null?""+_a(a):"",t=t!=null?""+_a(t):a,y||t===e.value||(e.value=t),e.defaultValue=t}i=i??u,i=typeof i!="function"&&typeof i!="symbol"&&!!i,e.checked=y?e.checked:!!i,e.defaultChecked=!!i,h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(e.name=h),hc(e)}function yc(e,t,a){t==="number"&&Ls(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function Ir(e,t,a,i){if(e=e.options,t){t={};for(var u=0;u<a.length;u++)t["$"+a[u]]=!0;for(a=0;a<e.length;a++)u=t.hasOwnProperty("$"+e[a].value),e[a].selected!==u&&(e[a].selected=u),u&&i&&(e[a].defaultSelected=!0)}else{for(a=""+_a(a),t=null,u=0;u<e.length;u++){if(e[u].value===a){e[u].selected=!0,i&&(e[u].defaultSelected=!0);return}t!==null||e[u].disabled||(t=e[u])}t!==null&&(t.selected=!0)}}function my(e,t,a){if(t!=null&&(t=""+_a(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+_a(a):""}function yy(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=_a(t),e.defaultValue=a,i=e.textContent,i===a&&i!==""&&i!==null&&(e.value=i),hc(e)}function Pr(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var xS=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 py(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||xS.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function gy(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 u in t)i=t[u],t.hasOwnProperty(u)&&a[u]!==i&&py(e,u,i)}else for(var c in t)t.hasOwnProperty(c)&&py(e,c,t[c])}function pc(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 SS=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"]]),wS=/^[\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 Hs(e){return wS.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function tn(){}var gc=null;function vc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ei=null,ti=null;function vy(e){var t=Jr(e);if(t&&(e=t.stateNode)){var a=e[Jt]||null;e:switch(e=t.stateNode,t.type){case"input":if(mc(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="'+xa(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var i=a[t];if(i!==e&&i.form===e.form){var u=i[Jt]||null;if(!u)throw Error(s(90));mc(i,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name)}}for(t=0;t<a.length;t++)i=a[t],i.form===e.form&&dy(i)}break e;case"textarea":my(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&Ir(e,!!a.multiple,t,!1)}}}var bc=!1;function by(e,t,a){if(bc)return e(t,a);bc=!0;try{var i=e(t);return i}finally{if(bc=!1,(ei!==null||ti!==null)&&(Cu(),ei&&(t=ei,e=ti,ti=ei=null,vy(t),e)))for(t=0;t<e.length;t++)vy(e[t])}}function sl(e,t){var a=e.stateNode;if(a===null)return null;var i=a[Jt]||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 an=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),_c=!1;if(an)try{var ul={};Object.defineProperty(ul,"passive",{get:function(){_c=!0}}),window.addEventListener("test",ul,ul),window.removeEventListener("test",ul,ul)}catch{_c=!1}var zn=null,xc=null,qs=null;function _y(){if(qs)return qs;var e,t=xc,a=t.length,i,u="value"in zn?zn.value:zn.textContent,c=u.length;for(e=0;e<a&&t[e]===u[e];e++);var h=a-e;for(i=1;i<=h&&t[a-i]===u[c-i];i++);return qs=u.slice(e,1<i?1-i:void 0)}function Zs(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 Ys(){return!0}function xy(){return!1}function Ft(e){function t(a,i,u,c,h){this._reactName=a,this._targetInst=u,this.type=i,this.nativeEvent=c,this.target=h,this.currentTarget=null;for(var y in e)e.hasOwnProperty(y)&&(a=e[y],this[y]=a?a(c):c[y]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?Ys:xy,this.isPropagationStopped=xy,this}return w(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=Ys)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Ys)},persist:function(){},isPersistent:Ys}),t}var fr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Gs=Ft(fr),ol=w({},fr,{view:0,detail:0}),AS=Ft(ol),Sc,wc,cl,$s=w({},ol,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Tc,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!==cl&&(cl&&e.type==="mousemove"?(Sc=e.screenX-cl.screenX,wc=e.screenY-cl.screenY):wc=Sc=0,cl=e),Sc)},movementY:function(e){return"movementY"in e?e.movementY:wc}}),Sy=Ft($s),TS=w({},$s,{dataTransfer:0}),ES=Ft(TS),CS=w({},ol,{relatedTarget:0}),Ac=Ft(CS),OS=w({},fr,{animationName:0,elapsedTime:0,pseudoElement:0}),zS=Ft(OS),kS=w({},fr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),NS=Ft(kS),RS=w({},fr,{data:0}),wy=Ft(RS),MS={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},DS={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"},jS={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function US(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=jS[e])?!!t[e]:!1}function Tc(){return US}var BS=w({},ol,{key:function(e){if(e.key){var t=MS[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Zs(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?DS[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Tc,charCode:function(e){return e.type==="keypress"?Zs(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Zs(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),VS=Ft(BS),LS=w({},$s,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ay=Ft(LS),HS=w({},ol,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Tc}),qS=Ft(HS),ZS=w({},fr,{propertyName:0,elapsedTime:0,pseudoElement:0}),YS=Ft(ZS),GS=w({},$s,{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}),$S=Ft(GS),QS=w({},fr,{newState:0,oldState:0}),XS=Ft(QS),KS=[9,13,27,32],Ec=an&&"CompositionEvent"in window,fl=null;an&&"documentMode"in document&&(fl=document.documentMode);var JS=an&&"TextEvent"in window&&!fl,Ty=an&&(!Ec||fl&&8<fl&&11>=fl),Ey=" ",Cy=!1;function Oy(e,t){switch(e){case"keyup":return KS.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function zy(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ai=!1;function FS(e,t){switch(e){case"compositionend":return zy(t);case"keypress":return t.which!==32?null:(Cy=!0,Ey);case"textInput":return e=t.data,e===Ey&&Cy?null:e;default:return null}}function WS(e,t){if(ai)return e==="compositionend"||!Ec&&Oy(e,t)?(e=_y(),qs=xc=zn=null,ai=!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 Ty&&t.locale!=="ko"?null:t.data;default:return null}}var IS={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 ky(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!IS[e.type]:t==="textarea"}function Ny(e,t,a,i){ei?ti?ti.push(i):ti=[i]:ei=i,t=Du(t,"onChange"),0<t.length&&(a=new Gs("onChange","change",null,a,i),e.push({event:a,listeners:t}))}var dl=null,hl=null;function PS(e){h0(e,0)}function Qs(e){var t=ll(e);if(dy(t))return e}function Ry(e,t){if(e==="change")return t}var My=!1;if(an){var Cc;if(an){var Oc="oninput"in document;if(!Oc){var Dy=document.createElement("div");Dy.setAttribute("oninput","return;"),Oc=typeof Dy.oninput=="function"}Cc=Oc}else Cc=!1;My=Cc&&(!document.documentMode||9<document.documentMode)}function jy(){dl&&(dl.detachEvent("onpropertychange",Uy),hl=dl=null)}function Uy(e){if(e.propertyName==="value"&&Qs(hl)){var t=[];Ny(t,hl,e,vc(e)),by(PS,t)}}function e2(e,t,a){e==="focusin"?(jy(),dl=t,hl=a,dl.attachEvent("onpropertychange",Uy)):e==="focusout"&&jy()}function t2(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Qs(hl)}function a2(e,t){if(e==="click")return Qs(t)}function n2(e,t){if(e==="input"||e==="change")return Qs(t)}function r2(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var sa=typeof Object.is=="function"?Object.is:r2;function ml(e,t){if(sa(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 u=a[i];if(!al.call(t,u)||!sa(e[u],t[u]))return!1}return!0}function By(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Vy(e,t){var a=By(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=By(a)}}function Ly(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ly(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Hy(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Ls(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=Ls(e.document)}return t}function zc(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 i2=an&&"documentMode"in document&&11>=document.documentMode,ni=null,kc=null,yl=null,Nc=!1;function qy(e,t,a){var i=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Nc||ni==null||ni!==Ls(i)||(i=ni,"selectionStart"in i&&zc(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}),yl&&ml(yl,i)||(yl=i,i=Du(kc,"onSelect"),0<i.length&&(t=new Gs("onSelect","select",null,t,a),e.push({event:t,listeners:i}),t.target=ni)))}function dr(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var ri={animationend:dr("Animation","AnimationEnd"),animationiteration:dr("Animation","AnimationIteration"),animationstart:dr("Animation","AnimationStart"),transitionrun:dr("Transition","TransitionRun"),transitionstart:dr("Transition","TransitionStart"),transitioncancel:dr("Transition","TransitionCancel"),transitionend:dr("Transition","TransitionEnd")},Rc={},Zy={};an&&(Zy=document.createElement("div").style,"AnimationEvent"in window||(delete ri.animationend.animation,delete ri.animationiteration.animation,delete ri.animationstart.animation),"TransitionEvent"in window||delete ri.transitionend.transition);function hr(e){if(Rc[e])return Rc[e];if(!ri[e])return e;var t=ri[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in Zy)return Rc[e]=t[a];return e}var Yy=hr("animationend"),Gy=hr("animationiteration"),$y=hr("animationstart"),l2=hr("transitionrun"),s2=hr("transitionstart"),u2=hr("transitioncancel"),Qy=hr("transitionend"),Xy=new Map,Mc="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(" ");Mc.push("scrollEnd");function Da(e,t){Xy.set(e,t),cr(t,[e])}var Xs=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)},Sa=[],ii=0,Dc=0;function Ks(){for(var e=ii,t=Dc=ii=0;t<e;){var a=Sa[t];Sa[t++]=null;var i=Sa[t];Sa[t++]=null;var u=Sa[t];Sa[t++]=null;var c=Sa[t];if(Sa[t++]=null,i!==null&&u!==null){var h=i.pending;h===null?u.next=u:(u.next=h.next,h.next=u),i.pending=u}c!==0&&Ky(a,u,c)}}function Js(e,t,a,i){Sa[ii++]=e,Sa[ii++]=t,Sa[ii++]=a,Sa[ii++]=i,Dc|=i,e.lanes|=i,e=e.alternate,e!==null&&(e.lanes|=i)}function jc(e,t,a,i){return Js(e,t,a,i),Fs(e)}function mr(e,t){return Js(e,null,null,t),Fs(e)}function Ky(e,t,a){e.lanes|=a;var i=e.alternate;i!==null&&(i.lanes|=a);for(var u=!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||(u=!0)),e=c,c=c.return;return e.tag===3?(c=e.stateNode,u&&t!==null&&(u=31-Mt(a),e=c.hiddenUpdates,i=e[u],i===null?e[u]=[t]:i.push(t),t.lane=a|536870912),c):null}function Fs(e){if(50<Bl)throw Bl=0,$f=null,Error(s(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var li={};function o2(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 ua(e,t,a,i){return new o2(e,t,a,i)}function Uc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function nn(e,t){var a=e.alternate;return a===null?(a=ua(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 Jy(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 Ws(e,t,a,i,u,c){var h=0;if(i=e,typeof e=="function")Uc(e)&&(h=1);else if(typeof e=="string")h=mw(e,a,oe.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case De:return e=ua(31,a,t,u),e.elementType=De,e.lanes=c,e;case E:return yr(a.children,u,c,t);case Z:h=8,u|=24;break;case P:return e=ua(12,a,t,u|2),e.elementType=P,e.lanes=c,e;case L:return e=ua(13,a,t,u),e.elementType=L,e.lanes=c,e;case X:return e=ua(19,a,t,u),e.elementType=X,e.lanes=c,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case re: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=ua(h,a,t,u),t.elementType=e,t.type=i,t.lanes=c,t}function yr(e,t,a,i){return e=ua(7,e,i,t),e.lanes=a,e}function Bc(e,t,a){return e=ua(6,e,null,t),e.lanes=a,e}function Fy(e){var t=ua(18,null,null,0);return t.stateNode=e,t}function Vc(e,t,a){return t=ua(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Wy=new WeakMap;function wa(e,t){if(typeof e=="object"&&e!==null){var a=Wy.get(e);return a!==void 0?a:(t={value:e,source:t,stack:Ns(t)},Wy.set(e,t),t)}return{value:e,source:t,stack:Ns(t)}}var si=[],ui=0,Is=null,pl=0,Aa=[],Ta=0,kn=null,Ga=1,$a="";function rn(e,t){si[ui++]=pl,si[ui++]=Is,Is=e,pl=t}function Iy(e,t,a){Aa[Ta++]=Ga,Aa[Ta++]=$a,Aa[Ta++]=kn,kn=e;var i=Ga;e=$a;var u=32-Mt(i)-1;i&=~(1<<u),a+=1;var c=32-Mt(t)+u;if(30<c){var h=u-u%5;c=(i&(1<<h)-1).toString(32),i>>=h,u-=h,Ga=1<<32-Mt(t)+u|a<<u|i,$a=c+e}else Ga=1<<c|a<<u|i,$a=e}function Lc(e){e.return!==null&&(rn(e,1),Iy(e,1,0))}function Hc(e){for(;e===Is;)Is=si[--ui],si[ui]=null,pl=si[--ui],si[ui]=null;for(;e===kn;)kn=Aa[--Ta],Aa[Ta]=null,$a=Aa[--Ta],Aa[Ta]=null,Ga=Aa[--Ta],Aa[Ta]=null}function Py(e,t){Aa[Ta++]=Ga,Aa[Ta++]=$a,Aa[Ta++]=kn,Ga=t.id,$a=t.overflow,kn=e}var jt=null,it=null,je=!1,Nn=null,Ea=!1,qc=Error(s(519));function Rn(e){var t=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw gl(wa(t,e)),qc}function ep(e){var t=e.stateNode,a=e.type,i=e.memoizedProps;switch(t[Dt]=e,t[Jt]=i,a){case"dialog":Ne("cancel",t),Ne("close",t);break;case"iframe":case"object":case"embed":Ne("load",t);break;case"video":case"audio":for(a=0;a<Ll.length;a++)Ne(Ll[a],t);break;case"source":Ne("error",t);break;case"img":case"image":case"link":Ne("error",t),Ne("load",t);break;case"details":Ne("toggle",t);break;case"input":Ne("invalid",t),hy(t,i.value,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name,!0);break;case"select":Ne("invalid",t);break;case"textarea":Ne("invalid",t),yy(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||g0(t.textContent,a)?(i.popover!=null&&(Ne("beforetoggle",t),Ne("toggle",t)),i.onScroll!=null&&Ne("scroll",t),i.onScrollEnd!=null&&Ne("scrollend",t),i.onClick!=null&&(t.onclick=tn),t=!0):t=!1,t||Rn(e,!0)}function tp(e){for(jt=e.return;jt;)switch(jt.tag){case 5:case 31:case 13:Ea=!1;return;case 27:case 3:Ea=!0;return;default:jt=jt.return}}function oi(e){if(e!==jt)return!1;if(!je)return tp(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")||ld(e.type,e.memoizedProps)),a=!a),a&&it&&Rn(e),tp(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));it=E0(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));it=E0(e)}else t===27?(t=it,Qn(e.type)?(e=fd,fd=null,it=e):it=t):it=jt?Oa(e.stateNode.nextSibling):null;return!0}function pr(){it=jt=null,je=!1}function Zc(){var e=Nn;return e!==null&&(ea===null?ea=e:ea.push.apply(ea,e),Nn=null),e}function gl(e){Nn===null?Nn=[e]:Nn.push(e)}var Yc=T(null),gr=null,ln=null;function Mn(e,t,a){ae(Yc,t._currentValue),t._currentValue=a}function sn(e){e._currentValue=Yc.current,G(Yc)}function Gc(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 $c(e,t,a,i){var u=e.child;for(u!==null&&(u.return=e);u!==null;){var c=u.dependencies;if(c!==null){var h=u.child;c=c.firstContext;e:for(;c!==null;){var y=c;c=u;for(var b=0;b<t.length;b++)if(y.context===t[b]){c.lanes|=a,y=c.alternate,y!==null&&(y.lanes|=a),Gc(c.return,a,e),i||(h=null);break e}c=y.next}}else if(u.tag===18){if(h=u.return,h===null)throw Error(s(341));h.lanes|=a,c=h.alternate,c!==null&&(c.lanes|=a),Gc(h,a,e),h=null}else h=u.child;if(h!==null)h.return=u;else for(h=u;h!==null;){if(h===e){h=null;break}if(u=h.sibling,u!==null){u.return=h.return,h=u;break}h=h.return}u=h}}function ci(e,t,a,i){e=null;for(var u=t,c=!1;u!==null;){if(!c){if((u.flags&524288)!==0)c=!0;else if((u.flags&262144)!==0)break}if(u.tag===10){var h=u.alternate;if(h===null)throw Error(s(387));if(h=h.memoizedProps,h!==null){var y=u.type;sa(u.pendingProps.value,h.value)||(e!==null?e.push(y):e=[y])}}else if(u===Be.current){if(h=u.alternate,h===null)throw Error(s(387));h.memoizedState.memoizedState!==u.memoizedState.memoizedState&&(e!==null?e.push(Gl):e=[Gl])}u=u.return}e!==null&&$c(t,e,a,i),t.flags|=262144}function Ps(e){for(e=e.firstContext;e!==null;){if(!sa(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function vr(e){gr=e,ln=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Ut(e){return ap(gr,e)}function eu(e,t){return gr===null&&vr(e),ap(e,t)}function ap(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},ln===null){if(e===null)throw Error(s(308));ln=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else ln=ln.next=t;return a}var c2=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()})}},f2=n.unstable_scheduleCallback,d2=n.unstable_NormalPriority,wt={$$typeof:re,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Qc(){return{controller:new c2,data:new Map,refCount:0}}function vl(e){e.refCount--,e.refCount===0&&f2(d2,function(){e.controller.abort()})}var bl=null,Xc=0,fi=0,di=null;function h2(e,t){if(bl===null){var a=bl=[];Xc=0,fi=Wf(),di={status:"pending",value:void 0,then:function(i){a.push(i)}}}return Xc++,t.then(np,np),t}function np(){if(--Xc===0&&bl!==null){di!==null&&(di.status="fulfilled");var e=bl;bl=null,fi=0,di=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function m2(e,t){var a=[],i={status:"pending",value:null,reason:null,then:function(u){a.push(u)}};return e.then(function(){i.status="fulfilled",i.value=t;for(var u=0;u<a.length;u++)(0,a[u])(t)},function(u){for(i.status="rejected",i.reason=u,u=0;u<a.length;u++)(0,a[u])(void 0)}),i}var rp=O.S;O.S=function(e,t){qg=R(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&h2(e,t),rp!==null&&rp(e,t)};var br=T(null);function Kc(){var e=br.current;return e!==null?e:nt.pooledCache}function tu(e,t){t===null?ae(br,br.current):ae(br,t.pool)}function ip(){var e=Kc();return e===null?null:{parent:wt._currentValue,pool:e}}var hi=Error(s(460)),Jc=Error(s(474)),au=Error(s(542)),nu={then:function(){}};function lp(e){return e=e.status,e==="fulfilled"||e==="rejected"}function sp(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(tn,tn),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,op(e),e;default:if(typeof t.status=="string")t.then(tn,tn);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 u=t;u.status="fulfilled",u.value=i}},function(i){if(t.status==="pending"){var u=t;u.status="rejected",u.reason=i}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,op(e),e}throw xr=t,hi}}function _r(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(xr=a,hi):a}}var xr=null;function up(){if(xr===null)throw Error(s(459));var e=xr;return xr=null,e}function op(e){if(e===hi||e===au)throw Error(s(483))}var mi=null,_l=0;function ru(e){var t=_l;return _l+=1,mi===null&&(mi=[]),sp(mi,e,t)}function xl(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function iu(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 cp(e){function t(C,A){if(e){var k=C.deletions;k===null?(C.deletions=[A],C.flags|=16):k.push(A)}}function a(C,A){if(!e)return null;for(;A!==null;)t(C,A),A=A.sibling;return null}function i(C){for(var A=new Map;C!==null;)C.key!==null?A.set(C.key,C):A.set(C.index,C),C=C.sibling;return A}function u(C,A){return C=nn(C,A),C.index=0,C.sibling=null,C}function c(C,A,k){return C.index=k,e?(k=C.alternate,k!==null?(k=k.index,k<A?(C.flags|=67108866,A):k):(C.flags|=67108866,A)):(C.flags|=1048576,A)}function h(C){return e&&C.alternate===null&&(C.flags|=67108866),C}function y(C,A,k,q){return A===null||A.tag!==6?(A=Bc(k,C.mode,q),A.return=C,A):(A=u(A,k),A.return=C,A)}function b(C,A,k,q){var ye=k.type;return ye===E?H(C,A,k.props.children,q,k.key):A!==null&&(A.elementType===ye||typeof ye=="object"&&ye!==null&&ye.$$typeof===we&&_r(ye)===A.type)?(A=u(A,k.props),xl(A,k),A.return=C,A):(A=Ws(k.type,k.key,k.props,null,C.mode,q),xl(A,k),A.return=C,A)}function N(C,A,k,q){return A===null||A.tag!==4||A.stateNode.containerInfo!==k.containerInfo||A.stateNode.implementation!==k.implementation?(A=Vc(k,C.mode,q),A.return=C,A):(A=u(A,k.children||[]),A.return=C,A)}function H(C,A,k,q,ye){return A===null||A.tag!==7?(A=yr(k,C.mode,q,ye),A.return=C,A):(A=u(A,k),A.return=C,A)}function Y(C,A,k){if(typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint")return A=Bc(""+A,C.mode,k),A.return=C,A;if(typeof A=="object"&&A!==null){switch(A.$$typeof){case _:return k=Ws(A.type,A.key,A.props,null,C.mode,k),xl(k,A),k.return=C,k;case B:return A=Vc(A,C.mode,k),A.return=C,A;case we:return A=_r(A),Y(C,A,k)}if(le(A)||v(A))return A=yr(A,C.mode,k,null),A.return=C,A;if(typeof A.then=="function")return Y(C,ru(A),k);if(A.$$typeof===re)return Y(C,eu(C,A),k);iu(C,A)}return null}function M(C,A,k,q){var ye=A!==null?A.key:null;if(typeof k=="string"&&k!==""||typeof k=="number"||typeof k=="bigint")return ye!==null?null:y(C,A,""+k,q);if(typeof k=="object"&&k!==null){switch(k.$$typeof){case _:return k.key===ye?b(C,A,k,q):null;case B:return k.key===ye?N(C,A,k,q):null;case we:return k=_r(k),M(C,A,k,q)}if(le(k)||v(k))return ye!==null?null:H(C,A,k,q,null);if(typeof k.then=="function")return M(C,A,ru(k),q);if(k.$$typeof===re)return M(C,A,eu(C,k),q);iu(C,k)}return null}function j(C,A,k,q,ye){if(typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint")return C=C.get(k)||null,y(A,C,""+q,ye);if(typeof q=="object"&&q!==null){switch(q.$$typeof){case _:return C=C.get(q.key===null?k:q.key)||null,b(A,C,q,ye);case B:return C=C.get(q.key===null?k:q.key)||null,N(A,C,q,ye);case we:return q=_r(q),j(C,A,k,q,ye)}if(le(q)||v(q))return C=C.get(k)||null,H(A,C,q,ye,null);if(typeof q.then=="function")return j(C,A,k,ru(q),ye);if(q.$$typeof===re)return j(C,A,k,eu(A,q),ye);iu(A,q)}return null}function ce(C,A,k,q){for(var ye=null,qe=null,he=A,Ee=A=0,Me=null;he!==null&&Ee<k.length;Ee++){he.index>Ee?(Me=he,he=null):Me=he.sibling;var Ze=M(C,he,k[Ee],q);if(Ze===null){he===null&&(he=Me);break}e&&he&&Ze.alternate===null&&t(C,he),A=c(Ze,A,Ee),qe===null?ye=Ze:qe.sibling=Ze,qe=Ze,he=Me}if(Ee===k.length)return a(C,he),je&&rn(C,Ee),ye;if(he===null){for(;Ee<k.length;Ee++)he=Y(C,k[Ee],q),he!==null&&(A=c(he,A,Ee),qe===null?ye=he:qe.sibling=he,qe=he);return je&&rn(C,Ee),ye}for(he=i(he);Ee<k.length;Ee++)Me=j(he,C,Ee,k[Ee],q),Me!==null&&(e&&Me.alternate!==null&&he.delete(Me.key===null?Ee:Me.key),A=c(Me,A,Ee),qe===null?ye=Me:qe.sibling=Me,qe=Me);return e&&he.forEach(function(Wn){return t(C,Wn)}),je&&rn(C,Ee),ye}function pe(C,A,k,q){if(k==null)throw Error(s(151));for(var ye=null,qe=null,he=A,Ee=A=0,Me=null,Ze=k.next();he!==null&&!Ze.done;Ee++,Ze=k.next()){he.index>Ee?(Me=he,he=null):Me=he.sibling;var Wn=M(C,he,Ze.value,q);if(Wn===null){he===null&&(he=Me);break}e&&he&&Wn.alternate===null&&t(C,he),A=c(Wn,A,Ee),qe===null?ye=Wn:qe.sibling=Wn,qe=Wn,he=Me}if(Ze.done)return a(C,he),je&&rn(C,Ee),ye;if(he===null){for(;!Ze.done;Ee++,Ze=k.next())Ze=Y(C,Ze.value,q),Ze!==null&&(A=c(Ze,A,Ee),qe===null?ye=Ze:qe.sibling=Ze,qe=Ze);return je&&rn(C,Ee),ye}for(he=i(he);!Ze.done;Ee++,Ze=k.next())Ze=j(he,C,Ee,Ze.value,q),Ze!==null&&(e&&Ze.alternate!==null&&he.delete(Ze.key===null?Ee:Ze.key),A=c(Ze,A,Ee),qe===null?ye=Ze:qe.sibling=Ze,qe=Ze);return e&&he.forEach(function(Tw){return t(C,Tw)}),je&&rn(C,Ee),ye}function tt(C,A,k,q){if(typeof k=="object"&&k!==null&&k.type===E&&k.key===null&&(k=k.props.children),typeof k=="object"&&k!==null){switch(k.$$typeof){case _:e:{for(var ye=k.key;A!==null;){if(A.key===ye){if(ye=k.type,ye===E){if(A.tag===7){a(C,A.sibling),q=u(A,k.props.children),q.return=C,C=q;break e}}else if(A.elementType===ye||typeof ye=="object"&&ye!==null&&ye.$$typeof===we&&_r(ye)===A.type){a(C,A.sibling),q=u(A,k.props),xl(q,k),q.return=C,C=q;break e}a(C,A);break}else t(C,A);A=A.sibling}k.type===E?(q=yr(k.props.children,C.mode,q,k.key),q.return=C,C=q):(q=Ws(k.type,k.key,k.props,null,C.mode,q),xl(q,k),q.return=C,C=q)}return h(C);case B:e:{for(ye=k.key;A!==null;){if(A.key===ye)if(A.tag===4&&A.stateNode.containerInfo===k.containerInfo&&A.stateNode.implementation===k.implementation){a(C,A.sibling),q=u(A,k.children||[]),q.return=C,C=q;break e}else{a(C,A);break}else t(C,A);A=A.sibling}q=Vc(k,C.mode,q),q.return=C,C=q}return h(C);case we:return k=_r(k),tt(C,A,k,q)}if(le(k))return ce(C,A,k,q);if(v(k)){if(ye=v(k),typeof ye!="function")throw Error(s(150));return k=ye.call(k),pe(C,A,k,q)}if(typeof k.then=="function")return tt(C,A,ru(k),q);if(k.$$typeof===re)return tt(C,A,eu(C,k),q);iu(C,k)}return typeof k=="string"&&k!==""||typeof k=="number"||typeof k=="bigint"?(k=""+k,A!==null&&A.tag===6?(a(C,A.sibling),q=u(A,k),q.return=C,C=q):(a(C,A),q=Bc(k,C.mode,q),q.return=C,C=q),h(C)):a(C,A)}return function(C,A,k,q){try{_l=0;var ye=tt(C,A,k,q);return mi=null,ye}catch(he){if(he===hi||he===au)throw he;var qe=ua(29,he,null,C.mode);return qe.lanes=q,qe.return=C,qe}finally{}}}var Sr=cp(!0),fp=cp(!1),Dn=!1;function Fc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Wc(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 jn(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Un(e,t,a){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,($e&2)!==0){var u=i.pending;return u===null?t.next=t:(t.next=u.next,u.next=t),i.pending=t,t=Fs(e),Ky(e,null,a),t}return Js(e,i,t,a),Fs(e)}function Sl(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,ay(e,a)}}function Ic(e,t){var a=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,a===i)){var u=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?u=c=h:c=c.next=h,a=a.next}while(a!==null);c===null?u=c=t:c=c.next=t}else u=c=t;a={baseState:i.baseState,firstBaseUpdate:u,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 Pc=!1;function wl(){if(Pc){var e=di;if(e!==null)throw e}}function Al(e,t,a,i){Pc=!1;var u=e.updateQueue;Dn=!1;var c=u.firstBaseUpdate,h=u.lastBaseUpdate,y=u.shared.pending;if(y!==null){u.shared.pending=null;var b=y,N=b.next;b.next=null,h===null?c=N:h.next=N,h=b;var H=e.alternate;H!==null&&(H=H.updateQueue,y=H.lastBaseUpdate,y!==h&&(y===null?H.firstBaseUpdate=N:y.next=N,H.lastBaseUpdate=b))}if(c!==null){var Y=u.baseState;h=0,H=N=b=null,y=c;do{var M=y.lane&-536870913,j=M!==y.lane;if(j?(Re&M)===M:(i&M)===M){M!==0&&M===fi&&(Pc=!0),H!==null&&(H=H.next={lane:0,tag:y.tag,payload:y.payload,callback:null,next:null});e:{var ce=e,pe=y;M=t;var tt=a;switch(pe.tag){case 1:if(ce=pe.payload,typeof ce=="function"){Y=ce.call(tt,Y,M);break e}Y=ce;break e;case 3:ce.flags=ce.flags&-65537|128;case 0:if(ce=pe.payload,M=typeof ce=="function"?ce.call(tt,Y,M):ce,M==null)break e;Y=w({},Y,M);break e;case 2:Dn=!0}}M=y.callback,M!==null&&(e.flags|=64,j&&(e.flags|=8192),j=u.callbacks,j===null?u.callbacks=[M]:j.push(M))}else j={lane:M,tag:y.tag,payload:y.payload,callback:y.callback,next:null},H===null?(N=H=j,b=Y):H=H.next=j,h|=M;if(y=y.next,y===null){if(y=u.shared.pending,y===null)break;j=y,y=j.next,j.next=null,u.lastBaseUpdate=j,u.shared.pending=null}}while(!0);H===null&&(b=Y),u.baseState=b,u.firstBaseUpdate=N,u.lastBaseUpdate=H,c===null&&(u.shared.lanes=0),qn|=h,e.lanes=h,e.memoizedState=Y}}function dp(e,t){if(typeof e!="function")throw Error(s(191,e));e.call(t)}function hp(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)dp(a[e],t)}var yi=T(null),lu=T(0);function mp(e,t){e=pn,ae(lu,e),ae(yi,t),pn=e|t.baseLanes}function ef(){ae(lu,pn),ae(yi,yi.current)}function tf(){pn=lu.current,G(yi),G(lu)}var oa=T(null),Ca=null;function Bn(e){var t=e.alternate;ae(pt,pt.current&1),ae(oa,e),Ca===null&&(t===null||yi.current!==null||t.memoizedState!==null)&&(Ca=e)}function af(e){ae(pt,pt.current),ae(oa,e),Ca===null&&(Ca=e)}function yp(e){e.tag===22?(ae(pt,pt.current),ae(oa,e),Ca===null&&(Ca=e)):Vn()}function Vn(){ae(pt,pt.current),ae(oa,oa.current)}function ca(e){G(oa),Ca===e&&(Ca=null),G(pt)}var pt=T(0);function su(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||od(a)||cd(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 un=0,Te=null,Pe=null,At=null,uu=!1,pi=!1,wr=!1,ou=0,Tl=0,gi=null,y2=0;function dt(){throw Error(s(321))}function nf(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!sa(e[a],t[a]))return!1;return!0}function rf(e,t,a,i,u,c){return un=c,Te=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,O.H=e===null||e.memoizedState===null?Ip:_f,wr=!1,c=a(i,u),wr=!1,pi&&(c=gp(t,a,i,u)),pp(e),c}function pp(e){O.H=Ol;var t=Pe!==null&&Pe.next!==null;if(un=0,At=Pe=Te=null,uu=!1,Tl=0,gi=null,t)throw Error(s(300));e===null||Tt||(e=e.dependencies,e!==null&&Ps(e)&&(Tt=!0))}function gp(e,t,a,i){Te=e;var u=0;do{if(pi&&(gi=null),Tl=0,pi=!1,25<=u)throw Error(s(301));if(u+=1,At=Pe=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=Pp,c=t(a,i)}while(pi);return c}function p2(){var e=O.H,t=e.useState()[0];return t=typeof t.then=="function"?El(t):t,e=e.useState()[0],(Pe!==null?Pe.memoizedState:null)!==e&&(Te.flags|=1024),t}function lf(){var e=ou!==0;return ou=0,e}function sf(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function uf(e){if(uu){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}uu=!1}un=0,At=Pe=Te=null,pi=!1,Tl=ou=0,gi=null}function $t(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return At===null?Te.memoizedState=At=e:At=At.next=e,At}function gt(){if(Pe===null){var e=Te.alternate;e=e!==null?e.memoizedState:null}else e=Pe.next;var t=At===null?Te.memoizedState:At.next;if(t!==null)At=t,Pe=e;else{if(e===null)throw Te.alternate===null?Error(s(467)):Error(s(310));Pe=e,e={memoizedState:Pe.memoizedState,baseState:Pe.baseState,baseQueue:Pe.baseQueue,queue:Pe.queue,next:null},At===null?Te.memoizedState=At=e:At=At.next=e}return At}function cu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function El(e){var t=Tl;return Tl+=1,gi===null&&(gi=[]),e=sp(gi,e,t),t=Te,(At===null?t.memoizedState:At.next)===null&&(t=t.alternate,O.H=t===null||t.memoizedState===null?Ip:_f),e}function fu(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return El(e);if(e.$$typeof===re)return Ut(e)}throw Error(s(438,String(e)))}function of(e){var t=null,a=Te.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var i=Te.alternate;i!==null&&(i=i.updateQueue,i!==null&&(i=i.memoCache,i!=null&&(t={data:i.data.map(function(u){return u.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=cu(),Te.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]=at;return t.index++,a}function on(e,t){return typeof t=="function"?t(e):t}function du(e){var t=gt();return cf(t,Pe,e)}function cf(e,t,a){var i=e.queue;if(i===null)throw Error(s(311));i.lastRenderedReducer=a;var u=e.baseQueue,c=i.pending;if(c!==null){if(u!==null){var h=u.next;u.next=c.next,c.next=h}t.baseQueue=u=c,i.pending=null}if(c=e.baseState,u===null)e.memoizedState=c;else{t=u.next;var y=h=null,b=null,N=t,H=!1;do{var Y=N.lane&-536870913;if(Y!==N.lane?(Re&Y)===Y:(un&Y)===Y){var M=N.revertLane;if(M===0)b!==null&&(b=b.next={lane:0,revertLane:0,gesture:null,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null}),Y===fi&&(H=!0);else if((un&M)===M){N=N.next,M===fi&&(H=!0);continue}else Y={lane:0,revertLane:N.revertLane,gesture:null,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null},b===null?(y=b=Y,h=c):b=b.next=Y,Te.lanes|=M,qn|=M;Y=N.action,wr&&a(c,Y),c=N.hasEagerState?N.eagerState:a(c,Y)}else M={lane:Y,revertLane:N.revertLane,gesture:N.gesture,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null},b===null?(y=b=M,h=c):b=b.next=M,Te.lanes|=Y,qn|=Y;N=N.next}while(N!==null&&N!==t);if(b===null?h=c:b.next=y,!sa(c,e.memoizedState)&&(Tt=!0,H&&(a=di,a!==null)))throw a;e.memoizedState=c,e.baseState=h,e.baseQueue=b,i.lastRenderedState=c}return u===null&&(i.lanes=0),[e.memoizedState,i.dispatch]}function ff(e){var t=gt(),a=t.queue;if(a===null)throw Error(s(311));a.lastRenderedReducer=e;var i=a.dispatch,u=a.pending,c=t.memoizedState;if(u!==null){a.pending=null;var h=u=u.next;do c=e(c,h.action),h=h.next;while(h!==u);sa(c,t.memoizedState)||(Tt=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),a.lastRenderedState=c}return[c,i]}function vp(e,t,a){var i=Te,u=gt(),c=je;if(c){if(a===void 0)throw Error(s(407));a=a()}else a=t();var h=!sa((Pe||u).memoizedState,a);if(h&&(u.memoizedState=a,Tt=!0),u=u.queue,mf(xp.bind(null,i,u,e),[e]),u.getSnapshot!==t||h||At!==null&&At.memoizedState.tag&1){if(i.flags|=2048,vi(9,{destroy:void 0},_p.bind(null,i,u,a,t),null),nt===null)throw Error(s(349));c||(un&127)!==0||bp(i,t,a)}return a}function bp(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=Te.updateQueue,t===null?(t=cu(),Te.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function _p(e,t,a,i){t.value=a,t.getSnapshot=i,Sp(t)&&wp(e)}function xp(e,t,a){return a(function(){Sp(t)&&wp(e)})}function Sp(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!sa(e,a)}catch{return!0}}function wp(e){var t=mr(e,2);t!==null&&ta(t,e,2)}function df(e){var t=$t();if(typeof e=="function"){var a=e;if(e=a(),wr){ba(!0);try{a()}finally{ba(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:on,lastRenderedState:e},t}function Ap(e,t,a,i){return e.baseState=a,cf(e,Pe,typeof i=="function"?i:on)}function g2(e,t,a,i,u){if(yu(e))throw Error(s(485));if(e=t.action,e!==null){var c={payload:u,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(h){c.listeners.push(h)}};O.T!==null?a(!0):c.isTransition=!1,i(c),a=t.pending,a===null?(c.next=t.pending=c,Tp(t,c)):(c.next=a.next,t.pending=a.next=c)}}function Tp(e,t){var a=t.action,i=t.payload,u=e.state;if(t.isTransition){var c=O.T,h={};O.T=h;try{var y=a(u,i),b=O.S;b!==null&&b(h,y),Ep(e,t,y)}catch(N){hf(e,t,N)}finally{c!==null&&h.types!==null&&(c.types=h.types),O.T=c}}else try{c=a(u,i),Ep(e,t,c)}catch(N){hf(e,t,N)}}function Ep(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(i){Cp(e,t,i)},function(i){return hf(e,t,i)}):Cp(e,t,a)}function Cp(e,t,a){t.status="fulfilled",t.value=a,Op(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,Tp(e,a)))}function hf(e,t,a){var i=e.pending;if(e.pending=null,i!==null){i=i.next;do t.status="rejected",t.reason=a,Op(t),t=t.next;while(t!==i)}e.action=null}function Op(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function zp(e,t){return t}function kp(e,t){if(je){var a=nt.formState;if(a!==null){e:{var i=Te;if(je){if(it){t:{for(var u=it,c=Ea;u.nodeType!==8;){if(!c){u=null;break t}if(u=Oa(u.nextSibling),u===null){u=null;break t}}c=u.data,u=c==="F!"||c==="F"?u:null}if(u){it=Oa(u.nextSibling),i=u.data==="F!";break e}}Rn(i)}i=!1}i&&(t=a[0])}}return a=$t(),a.memoizedState=a.baseState=t,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:zp,lastRenderedState:t},a.queue=i,a=Jp.bind(null,Te,i),i.dispatch=a,i=df(!1),c=bf.bind(null,Te,!1,i.queue),i=$t(),u={state:t,dispatch:null,action:e,pending:null},i.queue=u,a=g2.bind(null,Te,u,c,a),u.dispatch=a,i.memoizedState=e,[t,a,!1]}function Np(e){var t=gt();return Rp(t,Pe,e)}function Rp(e,t,a){if(t=cf(e,t,zp)[0],e=du(on)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var i=El(t)}catch(h){throw h===hi?au:h}else i=t;t=gt();var u=t.queue,c=u.dispatch;return a!==t.memoizedState&&(Te.flags|=2048,vi(9,{destroy:void 0},v2.bind(null,u,a),null)),[i,c,e]}function v2(e,t){e.action=t}function Mp(e){var t=gt(),a=Pe;if(a!==null)return Rp(t,a,e);gt(),t=t.memoizedState,a=gt();var i=a.queue.dispatch;return a.memoizedState=e,[t,i,!1]}function vi(e,t,a,i){return e={tag:e,create:a,deps:i,inst:t,next:null},t=Te.updateQueue,t===null&&(t=cu(),Te.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 Dp(){return gt().memoizedState}function hu(e,t,a,i){var u=$t();Te.flags|=e,u.memoizedState=vi(1|t,{destroy:void 0},a,i===void 0?null:i)}function mu(e,t,a,i){var u=gt();i=i===void 0?null:i;var c=u.memoizedState.inst;Pe!==null&&i!==null&&nf(i,Pe.memoizedState.deps)?u.memoizedState=vi(t,c,a,i):(Te.flags|=e,u.memoizedState=vi(1|t,c,a,i))}function jp(e,t){hu(8390656,8,e,t)}function mf(e,t){mu(2048,8,e,t)}function b2(e){Te.flags|=4;var t=Te.updateQueue;if(t===null)t=cu(),Te.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function Up(e){var t=gt().memoizedState;return b2({ref:t,nextImpl:e}),function(){if(($e&2)!==0)throw Error(s(440));return t.impl.apply(void 0,arguments)}}function Bp(e,t){return mu(4,2,e,t)}function Vp(e,t){return mu(4,4,e,t)}function Lp(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 Hp(e,t,a){a=a!=null?a.concat([e]):null,mu(4,4,Lp.bind(null,t,e),a)}function yf(){}function qp(e,t){var a=gt();t=t===void 0?null:t;var i=a.memoizedState;return t!==null&&nf(t,i[1])?i[0]:(a.memoizedState=[e,t],e)}function Zp(e,t){var a=gt();t=t===void 0?null:t;var i=a.memoizedState;if(t!==null&&nf(t,i[1]))return i[0];if(i=e(),wr){ba(!0);try{e()}finally{ba(!1)}}return a.memoizedState=[i,t],i}function pf(e,t,a){return a===void 0||(un&1073741824)!==0&&(Re&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=Yg(),Te.lanes|=e,qn|=e,a)}function Yp(e,t,a,i){return sa(a,t)?a:yi.current!==null?(e=pf(e,a,i),sa(e,t)||(Tt=!0),e):(un&42)===0||(un&1073741824)!==0&&(Re&261930)===0?(Tt=!0,e.memoizedState=a):(e=Yg(),Te.lanes|=e,qn|=e,t)}function Gp(e,t,a,i,u){var c=K.p;K.p=c!==0&&8>c?c:8;var h=O.T,y={};O.T=y,bf(e,!1,t,a);try{var b=u(),N=O.S;if(N!==null&&N(y,b),b!==null&&typeof b=="object"&&typeof b.then=="function"){var H=m2(b,i);Cl(e,t,H,ha(e))}else Cl(e,t,i,ha(e))}catch(Y){Cl(e,t,{then:function(){},status:"rejected",reason:Y},ha())}finally{K.p=c,h!==null&&y.types!==null&&(h.types=y.types),O.T=h}}function _2(){}function gf(e,t,a,i){if(e.tag!==5)throw Error(s(476));var u=$p(e).queue;Gp(e,u,t,se,a===null?_2:function(){return Qp(e),a(i)})}function $p(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:on,lastRenderedState:se},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:on,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Qp(e){var t=$p(e);t.next===null&&(t=e.alternate.memoizedState),Cl(e,t.next.queue,{},ha())}function vf(){return Ut(Gl)}function Xp(){return gt().memoizedState}function Kp(){return gt().memoizedState}function x2(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=ha();e=jn(a);var i=Un(t,e,a);i!==null&&(ta(i,t,a),Sl(i,t,a)),t={cache:Qc()},e.payload=t;return}t=t.return}}function S2(e,t,a){var i=ha();a={lane:i,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},yu(e)?Fp(t,a):(a=jc(e,t,a,i),a!==null&&(ta(a,e,i),Wp(a,t,i)))}function Jp(e,t,a){var i=ha();Cl(e,t,a,i)}function Cl(e,t,a,i){var u={lane:i,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(yu(e))Fp(t,u);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var h=t.lastRenderedState,y=c(h,a);if(u.hasEagerState=!0,u.eagerState=y,sa(y,h))return Js(e,t,u,0),nt===null&&Ks(),!1}catch{}finally{}if(a=jc(e,t,u,i),a!==null)return ta(a,e,i),Wp(a,t,i),!0}return!1}function bf(e,t,a,i){if(i={lane:2,revertLane:Wf(),gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},yu(e)){if(t)throw Error(s(479))}else t=jc(e,a,i,2),t!==null&&ta(t,e,2)}function yu(e){var t=e.alternate;return e===Te||t!==null&&t===Te}function Fp(e,t){pi=uu=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function Wp(e,t,a){if((a&4194048)!==0){var i=t.lanes;i&=e.pendingLanes,a|=i,t.lanes=a,ay(e,a)}}var Ol={readContext:Ut,use:fu,useCallback:dt,useContext:dt,useEffect:dt,useImperativeHandle:dt,useLayoutEffect:dt,useInsertionEffect:dt,useMemo:dt,useReducer:dt,useRef:dt,useState:dt,useDebugValue:dt,useDeferredValue:dt,useTransition:dt,useSyncExternalStore:dt,useId:dt,useHostTransitionStatus:dt,useFormState:dt,useActionState:dt,useOptimistic:dt,useMemoCache:dt,useCacheRefresh:dt};Ol.useEffectEvent=dt;var Ip={readContext:Ut,use:fu,useCallback:function(e,t){return $t().memoizedState=[e,t===void 0?null:t],e},useContext:Ut,useEffect:jp,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,hu(4194308,4,Lp.bind(null,t,e),a)},useLayoutEffect:function(e,t){return hu(4194308,4,e,t)},useInsertionEffect:function(e,t){hu(4,2,e,t)},useMemo:function(e,t){var a=$t();t=t===void 0?null:t;var i=e();if(wr){ba(!0);try{e()}finally{ba(!1)}}return a.memoizedState=[i,t],i},useReducer:function(e,t,a){var i=$t();if(a!==void 0){var u=a(t);if(wr){ba(!0);try{a(t)}finally{ba(!1)}}}else u=t;return i.memoizedState=i.baseState=u,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:u},i.queue=e,e=e.dispatch=S2.bind(null,Te,e),[i.memoizedState,e]},useRef:function(e){var t=$t();return e={current:e},t.memoizedState=e},useState:function(e){e=df(e);var t=e.queue,a=Jp.bind(null,Te,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:yf,useDeferredValue:function(e,t){var a=$t();return pf(a,e,t)},useTransition:function(){var e=df(!1);return e=Gp.bind(null,Te,e.queue,!0,!1),$t().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var i=Te,u=$t();if(je){if(a===void 0)throw Error(s(407));a=a()}else{if(a=t(),nt===null)throw Error(s(349));(Re&127)!==0||bp(i,t,a)}u.memoizedState=a;var c={value:a,getSnapshot:t};return u.queue=c,jp(xp.bind(null,i,c,e),[e]),i.flags|=2048,vi(9,{destroy:void 0},_p.bind(null,i,c,a,t),null),a},useId:function(){var e=$t(),t=nt.identifierPrefix;if(je){var a=$a,i=Ga;a=(i&~(1<<32-Mt(i)-1)).toString(32)+a,t="_"+t+"R_"+a,a=ou++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=y2++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:vf,useFormState:kp,useActionState:kp,useOptimistic:function(e){var t=$t();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=bf.bind(null,Te,!0,a),a.dispatch=t,[e,t]},useMemoCache:of,useCacheRefresh:function(){return $t().memoizedState=x2.bind(null,Te)},useEffectEvent:function(e){var t=$t(),a={impl:e};return t.memoizedState=a,function(){if(($e&2)!==0)throw Error(s(440));return a.impl.apply(void 0,arguments)}}},_f={readContext:Ut,use:fu,useCallback:qp,useContext:Ut,useEffect:mf,useImperativeHandle:Hp,useInsertionEffect:Bp,useLayoutEffect:Vp,useMemo:Zp,useReducer:du,useRef:Dp,useState:function(){return du(on)},useDebugValue:yf,useDeferredValue:function(e,t){var a=gt();return Yp(a,Pe.memoizedState,e,t)},useTransition:function(){var e=du(on)[0],t=gt().memoizedState;return[typeof e=="boolean"?e:El(e),t]},useSyncExternalStore:vp,useId:Xp,useHostTransitionStatus:vf,useFormState:Np,useActionState:Np,useOptimistic:function(e,t){var a=gt();return Ap(a,Pe,e,t)},useMemoCache:of,useCacheRefresh:Kp};_f.useEffectEvent=Up;var Pp={readContext:Ut,use:fu,useCallback:qp,useContext:Ut,useEffect:mf,useImperativeHandle:Hp,useInsertionEffect:Bp,useLayoutEffect:Vp,useMemo:Zp,useReducer:ff,useRef:Dp,useState:function(){return ff(on)},useDebugValue:yf,useDeferredValue:function(e,t){var a=gt();return Pe===null?pf(a,e,t):Yp(a,Pe.memoizedState,e,t)},useTransition:function(){var e=ff(on)[0],t=gt().memoizedState;return[typeof e=="boolean"?e:El(e),t]},useSyncExternalStore:vp,useId:Xp,useHostTransitionStatus:vf,useFormState:Mp,useActionState:Mp,useOptimistic:function(e,t){var a=gt();return Pe!==null?Ap(a,Pe,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:of,useCacheRefresh:Kp};Pp.useEffectEvent=Up;function xf(e,t,a,i){t=e.memoizedState,a=a(i,t),a=a==null?t:w({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var Sf={enqueueSetState:function(e,t,a){e=e._reactInternals;var i=ha(),u=jn(i);u.payload=t,a!=null&&(u.callback=a),t=Un(e,u,i),t!==null&&(ta(t,e,i),Sl(t,e,i))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var i=ha(),u=jn(i);u.tag=1,u.payload=t,a!=null&&(u.callback=a),t=Un(e,u,i),t!==null&&(ta(t,e,i),Sl(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=ha(),i=jn(a);i.tag=2,t!=null&&(i.callback=t),t=Un(e,i,a),t!==null&&(ta(t,e,a),Sl(t,e,a))}};function eg(e,t,a,i,u,c,h){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(i,c,h):t.prototype&&t.prototype.isPureReactComponent?!ml(a,i)||!ml(u,c):!0}function tg(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&&Sf.enqueueReplaceState(t,t.state,null)}function Ar(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=w({},a));for(var u in e)a[u]===void 0&&(a[u]=e[u])}return a}function ag(e){Xs(e)}function ng(e){console.error(e)}function rg(e){Xs(e)}function pu(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(i){setTimeout(function(){throw i})}}function ig(e,t,a){try{var i=e.onCaughtError;i(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(u){setTimeout(function(){throw u})}}function wf(e,t,a){return a=jn(a),a.tag=3,a.payload={element:null},a.callback=function(){pu(e,t)},a}function lg(e){return e=jn(e),e.tag=3,e}function sg(e,t,a,i){var u=a.type.getDerivedStateFromError;if(typeof u=="function"){var c=i.value;e.payload=function(){return u(c)},e.callback=function(){ig(t,a,i)}}var h=a.stateNode;h!==null&&typeof h.componentDidCatch=="function"&&(e.callback=function(){ig(t,a,i),typeof u!="function"&&(Zn===null?Zn=new Set([this]):Zn.add(this));var y=i.stack;this.componentDidCatch(i.value,{componentStack:y!==null?y:""})})}function w2(e,t,a,i,u){if(a.flags|=32768,i!==null&&typeof i=="object"&&typeof i.then=="function"){if(t=a.alternate,t!==null&&ci(t,a,u,!0),a=oa.current,a!==null){switch(a.tag){case 31:case 13:return Ca===null?Ou():a.alternate===null&&ht===0&&(ht=3),a.flags&=-257,a.flags|=65536,a.lanes=u,i===nu?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([i]):t.add(i),Kf(e,i,u)),!1;case 22:return a.flags|=65536,i===nu?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)),Kf(e,i,u)),!1}throw Error(s(435,a.tag))}return Kf(e,i,u),Ou(),!1}if(je)return t=oa.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=u,i!==qc&&(e=Error(s(422),{cause:i}),gl(wa(e,a)))):(i!==qc&&(t=Error(s(423),{cause:i}),gl(wa(t,a))),e=e.current.alternate,e.flags|=65536,u&=-u,e.lanes|=u,i=wa(i,a),u=wf(e.stateNode,i,u),Ic(e,u),ht!==4&&(ht=2)),!1;var c=Error(s(520),{cause:i});if(c=wa(c,a),Ul===null?Ul=[c]:Ul.push(c),ht!==4&&(ht=2),t===null)return!0;i=wa(i,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=u&-u,a.lanes|=e,e=wf(a.stateNode,i,e),Ic(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"&&(Zn===null||!Zn.has(c))))return a.flags|=65536,u&=-u,a.lanes|=u,u=lg(u),sg(u,e,a,i),Ic(a,u),!1}a=a.return}while(a!==null);return!1}var Af=Error(s(461)),Tt=!1;function Bt(e,t,a,i){t.child=e===null?fp(t,null,a,i):Sr(t,e.child,a,i)}function ug(e,t,a,i,u){a=a.render;var c=t.ref;if("ref"in i){var h={};for(var y in i)y!=="ref"&&(h[y]=i[y])}else h=i;return vr(t),i=rf(e,t,a,h,c,u),y=lf(),e!==null&&!Tt?(sf(e,t,u),cn(e,t,u)):(je&&y&&Lc(t),t.flags|=1,Bt(e,t,i,u),t.child)}function og(e,t,a,i,u){if(e===null){var c=a.type;return typeof c=="function"&&!Uc(c)&&c.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=c,cg(e,t,c,i,u)):(e=Ws(a.type,null,i,t,t.mode,u),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,!Rf(e,u)){var h=c.memoizedProps;if(a=a.compare,a=a!==null?a:ml,a(h,i)&&e.ref===t.ref)return cn(e,t,u)}return t.flags|=1,e=nn(c,i),e.ref=t.ref,e.return=t,t.child=e}function cg(e,t,a,i,u){if(e!==null){var c=e.memoizedProps;if(ml(c,i)&&e.ref===t.ref)if(Tt=!1,t.pendingProps=i=c,Rf(e,u))(e.flags&131072)!==0&&(Tt=!0);else return t.lanes=e.lanes,cn(e,t,u)}return Tf(e,t,a,i,u)}function fg(e,t,a,i){var u=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,u=0;i!==null;)u=u|i.lanes|i.childLanes,i=i.sibling;i=u&~c}else i=0,t.child=null;return dg(e,t,c,a,i)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&tu(t,c!==null?c.cachePool:null),c!==null?mp(t,c):ef(),yp(t);else return i=t.lanes=536870912,dg(e,t,c!==null?c.baseLanes|a:a,a,i)}else c!==null?(tu(t,c.cachePool),mp(t,c),Vn(),t.memoizedState=null):(e!==null&&tu(t,null),ef(),Vn());return Bt(e,t,u,a),t.child}function zl(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function dg(e,t,a,i,u){var c=Kc();return c=c===null?null:{parent:wt._currentValue,pool:c},t.memoizedState={baseLanes:a,cachePool:c},e!==null&&tu(t,null),ef(),yp(t),e!==null&&ci(e,t,i,!0),t.childLanes=u,null}function gu(e,t){return t=bu({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function hg(e,t,a){return Sr(t,e.child,null,a),e=gu(t,t.pendingProps),e.flags|=2,ca(t),t.memoizedState=null,e}function A2(e,t,a){var i=t.pendingProps,u=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(je){if(i.mode==="hidden")return e=gu(t,i),t.lanes=536870912,zl(null,e);if(af(t),(e=it)?(e=T0(e,Ea),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:kn!==null?{id:Ga,overflow:$a}:null,retryLane:536870912,hydrationErrors:null},a=Fy(e),a.return=t,t.child=a,jt=t,it=null)):e=null,e===null)throw Rn(t);return t.lanes=536870912,null}return gu(t,i)}var c=e.memoizedState;if(c!==null){var h=c.dehydrated;if(af(t),u)if(t.flags&256)t.flags&=-257,t=hg(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(s(558));else if(Tt||ci(e,t,a,!1),u=(a&e.childLanes)!==0,Tt||u){if(i=nt,i!==null&&(h=ny(i,a),h!==0&&h!==c.retryLane))throw c.retryLane=h,mr(e,h),ta(i,e,h),Af;Ou(),t=hg(e,t,a)}else e=c.treeContext,it=Oa(h.nextSibling),jt=t,je=!0,Nn=null,Ea=!1,e!==null&&Py(t,e),t=gu(t,i),t.flags|=4096;return t}return e=nn(e.child,{mode:i.mode,children:i.children}),e.ref=t.ref,t.child=e,e.return=t,e}function vu(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 Tf(e,t,a,i,u){return vr(t),a=rf(e,t,a,i,void 0,u),i=lf(),e!==null&&!Tt?(sf(e,t,u),cn(e,t,u)):(je&&i&&Lc(t),t.flags|=1,Bt(e,t,a,u),t.child)}function mg(e,t,a,i,u,c){return vr(t),t.updateQueue=null,a=gp(t,i,a,u),pp(e),i=lf(),e!==null&&!Tt?(sf(e,t,c),cn(e,t,c)):(je&&i&&Lc(t),t.flags|=1,Bt(e,t,a,c),t.child)}function yg(e,t,a,i,u){if(vr(t),t.stateNode===null){var c=li,h=a.contextType;typeof h=="object"&&h!==null&&(c=Ut(h)),c=new a(i,c),t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=Sf,t.stateNode=c,c._reactInternals=t,c=t.stateNode,c.props=i,c.state=t.memoizedState,c.refs={},Fc(t),h=a.contextType,c.context=typeof h=="object"&&h!==null?Ut(h):li,c.state=t.memoizedState,h=a.getDerivedStateFromProps,typeof h=="function"&&(xf(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&&Sf.enqueueReplaceState(c,c.state,null),Al(t,i,c,u),wl(),c.state=t.memoizedState),typeof c.componentDidMount=="function"&&(t.flags|=4194308),i=!0}else if(e===null){c=t.stateNode;var y=t.memoizedProps,b=Ar(a,y);c.props=b;var N=c.context,H=a.contextType;h=li,typeof H=="object"&&H!==null&&(h=Ut(H));var Y=a.getDerivedStateFromProps;H=typeof Y=="function"||typeof c.getSnapshotBeforeUpdate=="function",y=t.pendingProps!==y,H||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(y||N!==h)&&tg(t,c,i,h),Dn=!1;var M=t.memoizedState;c.state=M,Al(t,i,c,u),wl(),N=t.memoizedState,y||M!==N||Dn?(typeof Y=="function"&&(xf(t,a,Y,i),N=t.memoizedState),(b=Dn||eg(t,a,b,i,M,N,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=N),c.props=i,c.state=N,c.context=h,i=b):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),i=!1)}else{c=t.stateNode,Wc(e,t),h=t.memoizedProps,H=Ar(a,h),c.props=H,Y=t.pendingProps,M=c.context,N=a.contextType,b=li,typeof N=="object"&&N!==null&&(b=Ut(N)),y=a.getDerivedStateFromProps,(N=typeof y=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(h!==Y||M!==b)&&tg(t,c,i,b),Dn=!1,M=t.memoizedState,c.state=M,Al(t,i,c,u),wl();var j=t.memoizedState;h!==Y||M!==j||Dn||e!==null&&e.dependencies!==null&&Ps(e.dependencies)?(typeof y=="function"&&(xf(t,a,y,i),j=t.memoizedState),(H=Dn||eg(t,a,H,i,M,j,b)||e!==null&&e.dependencies!==null&&Ps(e.dependencies))?(N||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(i,j,b),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(i,j,b)),typeof c.componentDidUpdate=="function"&&(t.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof c.componentDidUpdate!="function"||h===e.memoizedProps&&M===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||h===e.memoizedProps&&M===e.memoizedState||(t.flags|=1024),t.memoizedProps=i,t.memoizedState=j),c.props=i,c.state=j,c.context=b,i=H):(typeof c.componentDidUpdate!="function"||h===e.memoizedProps&&M===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||h===e.memoizedProps&&M===e.memoizedState||(t.flags|=1024),i=!1)}return c=i,vu(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=Sr(t,e.child,null,u),t.child=Sr(t,null,a,u)):Bt(e,t,a,u),t.memoizedState=c.state,e=t.child):e=cn(e,t,u),e}function pg(e,t,a,i){return pr(),t.flags|=256,Bt(e,t,a,i),t.child}var Ef={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Cf(e){return{baseLanes:e,cachePool:ip()}}function Of(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=da),e}function gg(e,t,a){var i=t.pendingProps,u=!1,c=(t.flags&128)!==0,h;if((h=c)||(h=e!==null&&e.memoizedState===null?!1:(pt.current&2)!==0),h&&(u=!0,t.flags&=-129),h=(t.flags&32)!==0,t.flags&=-33,e===null){if(je){if(u?Bn(t):Vn(),(e=it)?(e=T0(e,Ea),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:kn!==null?{id:Ga,overflow:$a}:null,retryLane:536870912,hydrationErrors:null},a=Fy(e),a.return=t,t.child=a,jt=t,it=null)):e=null,e===null)throw Rn(t);return cd(e)?t.lanes=32:t.lanes=536870912,null}var y=i.children;return i=i.fallback,u?(Vn(),u=t.mode,y=bu({mode:"hidden",children:y},u),i=yr(i,u,a,null),y.return=t,i.return=t,y.sibling=i,t.child=y,i=t.child,i.memoizedState=Cf(a),i.childLanes=Of(e,h,a),t.memoizedState=Ef,zl(null,i)):(Bn(t),zf(t,y))}var b=e.memoizedState;if(b!==null&&(y=b.dehydrated,y!==null)){if(c)t.flags&256?(Bn(t),t.flags&=-257,t=kf(e,t,a)):t.memoizedState!==null?(Vn(),t.child=e.child,t.flags|=128,t=null):(Vn(),y=i.fallback,u=t.mode,i=bu({mode:"visible",children:i.children},u),y=yr(y,u,a,null),y.flags|=2,i.return=t,y.return=t,i.sibling=y,t.child=i,Sr(t,e.child,null,a),i=t.child,i.memoizedState=Cf(a),i.childLanes=Of(e,h,a),t.memoizedState=Ef,t=zl(null,i));else if(Bn(t),cd(y)){if(h=y.nextSibling&&y.nextSibling.dataset,h)var N=h.dgst;h=N,i=Error(s(419)),i.stack="",i.digest=h,gl({value:i,source:null,stack:null}),t=kf(e,t,a)}else if(Tt||ci(e,t,a,!1),h=(a&e.childLanes)!==0,Tt||h){if(h=nt,h!==null&&(i=ny(h,a),i!==0&&i!==b.retryLane))throw b.retryLane=i,mr(e,i),ta(h,e,i),Af;od(y)||Ou(),t=kf(e,t,a)}else od(y)?(t.flags|=192,t.child=e.child,t=null):(e=b.treeContext,it=Oa(y.nextSibling),jt=t,je=!0,Nn=null,Ea=!1,e!==null&&Py(t,e),t=zf(t,i.children),t.flags|=4096);return t}return u?(Vn(),y=i.fallback,u=t.mode,b=e.child,N=b.sibling,i=nn(b,{mode:"hidden",children:i.children}),i.subtreeFlags=b.subtreeFlags&65011712,N!==null?y=nn(N,y):(y=yr(y,u,a,null),y.flags|=2),y.return=t,i.return=t,i.sibling=y,t.child=i,zl(null,i),i=t.child,y=e.child.memoizedState,y===null?y=Cf(a):(u=y.cachePool,u!==null?(b=wt._currentValue,u=u.parent!==b?{parent:b,pool:b}:u):u=ip(),y={baseLanes:y.baseLanes|a,cachePool:u}),i.memoizedState=y,i.childLanes=Of(e,h,a),t.memoizedState=Ef,zl(e.child,i)):(Bn(t),a=e.child,e=a.sibling,a=nn(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 zf(e,t){return t=bu({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function bu(e,t){return e=ua(22,e,null,t),e.lanes=0,e}function kf(e,t,a){return Sr(t,e.child,null,a),e=zf(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function vg(e,t,a){e.lanes|=t;var i=e.alternate;i!==null&&(i.lanes|=t),Gc(e.return,t,a)}function Nf(e,t,a,i,u,c){var h=e.memoizedState;h===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:i,tail:a,tailMode:u,treeForkCount:c}:(h.isBackwards=t,h.rendering=null,h.renderingStartTime=0,h.last=i,h.tail=a,h.tailMode=u,h.treeForkCount=c)}function bg(e,t,a){var i=t.pendingProps,u=i.revealOrder,c=i.tail;i=i.children;var h=pt.current,y=(h&2)!==0;if(y?(h=h&1|2,t.flags|=128):h&=1,ae(pt,h),Bt(e,t,i,a),i=je?pl:0,!y&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&vg(e,a,t);else if(e.tag===19)vg(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(u){case"forwards":for(a=t.child,u=null;a!==null;)e=a.alternate,e!==null&&su(e)===null&&(u=a),a=a.sibling;a=u,a===null?(u=t.child,t.child=null):(u=a.sibling,a.sibling=null),Nf(t,!1,u,a,c,i);break;case"backwards":case"unstable_legacy-backwards":for(a=null,u=t.child,t.child=null;u!==null;){if(e=u.alternate,e!==null&&su(e)===null){t.child=u;break}e=u.sibling,u.sibling=a,a=u,u=e}Nf(t,!0,a,null,c,i);break;case"together":Nf(t,!1,null,null,void 0,i);break;default:t.memoizedState=null}return t.child}function cn(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),qn|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(ci(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=nn(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=nn(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function Rf(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Ps(e)))}function T2(e,t,a){switch(t.tag){case 3:Rt(t,t.stateNode.containerInfo),Mn(t,wt,e.memoizedState.cache),pr();break;case 27:case 5:En(t);break;case 4:Rt(t,t.stateNode.containerInfo);break;case 10:Mn(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,af(t),null;break;case 13:var i=t.memoizedState;if(i!==null)return i.dehydrated!==null?(Bn(t),t.flags|=128,null):(a&t.child.childLanes)!==0?gg(e,t,a):(Bn(t),e=cn(e,t,a),e!==null?e.sibling:null);Bn(t);break;case 19:var u=(e.flags&128)!==0;if(i=(a&t.childLanes)!==0,i||(ci(e,t,a,!1),i=(a&t.childLanes)!==0),u){if(i)return bg(e,t,a);t.flags|=128}if(u=t.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),ae(pt,pt.current),i)break;return null;case 22:return t.lanes=0,fg(e,t,a,t.pendingProps);case 24:Mn(t,wt,e.memoizedState.cache)}return cn(e,t,a)}function _g(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)Tt=!0;else{if(!Rf(e,a)&&(t.flags&128)===0)return Tt=!1,T2(e,t,a);Tt=(e.flags&131072)!==0}else Tt=!1,je&&(t.flags&1048576)!==0&&Iy(t,pl,t.index);switch(t.lanes=0,t.tag){case 16:e:{var i=t.pendingProps;if(e=_r(t.elementType),t.type=e,typeof e=="function")Uc(e)?(i=Ar(e,i),t.tag=1,t=yg(null,t,e,i,a)):(t.tag=0,t=Tf(null,t,e,i,a));else{if(e!=null){var u=e.$$typeof;if(u===te){t.tag=11,t=ug(null,t,e,i,a);break e}else if(u===J){t.tag=14,t=og(null,t,e,i,a);break e}}throw t=Q(e)||e,Error(s(306,t,""))}}return t;case 0:return Tf(e,t,t.type,t.pendingProps,a);case 1:return i=t.type,u=Ar(i,t.pendingProps),yg(e,t,i,u,a);case 3:e:{if(Rt(t,t.stateNode.containerInfo),e===null)throw Error(s(387));i=t.pendingProps;var c=t.memoizedState;u=c.element,Wc(e,t),Al(t,i,null,a);var h=t.memoizedState;if(i=h.cache,Mn(t,wt,i),i!==c.cache&&$c(t,[wt],a,!0),wl(),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=pg(e,t,i,a);break e}else if(i!==u){u=wa(Error(s(424)),t),gl(u),t=pg(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(it=Oa(e.firstChild),jt=t,je=!0,Nn=null,Ea=!0,a=fp(t,null,i,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(pr(),i===u){t=cn(e,t,a);break e}Bt(e,t,i,a)}t=t.child}return t;case 26:return vu(e,t),e===null?(a=N0(t.type,null,t.pendingProps,null))?t.memoizedState=a:je||(a=t.type,e=t.pendingProps,i=ju(Ce.current).createElement(a),i[Dt]=t,i[Jt]=e,Vt(i,a,e),zt(i),t.stateNode=i):t.memoizedState=N0(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return En(t),e===null&&je&&(i=t.stateNode=O0(t.type,t.pendingProps,Ce.current),jt=t,Ea=!0,u=it,Qn(t.type)?(fd=u,it=Oa(i.firstChild)):it=u),Bt(e,t,t.pendingProps.children,a),vu(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&je&&((u=i=it)&&(i=tw(i,t.type,t.pendingProps,Ea),i!==null?(t.stateNode=i,jt=t,it=Oa(i.firstChild),Ea=!1,u=!0):u=!1),u||Rn(t)),En(t),u=t.type,c=t.pendingProps,h=e!==null?e.memoizedProps:null,i=c.children,ld(u,c)?i=null:h!==null&&ld(u,h)&&(t.flags|=32),t.memoizedState!==null&&(u=rf(e,t,p2,null,null,a),Gl._currentValue=u),vu(e,t),Bt(e,t,i,a),t.child;case 6:return e===null&&je&&((e=a=it)&&(a=aw(a,t.pendingProps,Ea),a!==null?(t.stateNode=a,jt=t,it=null,e=!0):e=!1),e||Rn(t)),null;case 13:return gg(e,t,a);case 4:return Rt(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=Sr(t,null,i,a):Bt(e,t,i,a),t.child;case 11:return ug(e,t,t.type,t.pendingProps,a);case 7:return Bt(e,t,t.pendingProps,a),t.child;case 8:return Bt(e,t,t.pendingProps.children,a),t.child;case 12:return Bt(e,t,t.pendingProps.children,a),t.child;case 10:return i=t.pendingProps,Mn(t,t.type,i.value),Bt(e,t,i.children,a),t.child;case 9:return u=t.type._context,i=t.pendingProps.children,vr(t),u=Ut(u),i=i(u),t.flags|=1,Bt(e,t,i,a),t.child;case 14:return og(e,t,t.type,t.pendingProps,a);case 15:return cg(e,t,t.type,t.pendingProps,a);case 19:return bg(e,t,a);case 31:return A2(e,t,a);case 22:return fg(e,t,a,t.pendingProps);case 24:return vr(t),i=Ut(wt),e===null?(u=Kc(),u===null&&(u=nt,c=Qc(),u.pooledCache=c,c.refCount++,c!==null&&(u.pooledCacheLanes|=a),u=c),t.memoizedState={parent:i,cache:u},Fc(t),Mn(t,wt,u)):((e.lanes&a)!==0&&(Wc(e,t),Al(t,null,null,a),wl()),u=e.memoizedState,c=t.memoizedState,u.parent!==i?(u={parent:i,cache:i},t.memoizedState=u,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=u),Mn(t,wt,i)):(i=c.cache,Mn(t,wt,i),i!==u.cache&&$c(t,[wt],a,!0))),Bt(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}function fn(e){e.flags|=4}function Mf(e,t,a,i,u){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(u&335544128)===u)if(e.stateNode.complete)e.flags|=8192;else if(Xg())e.flags|=8192;else throw xr=nu,Jc}else e.flags&=-16777217}function xg(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!U0(t))if(Xg())e.flags|=8192;else throw xr=nu,Jc}function _u(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?ey():536870912,e.lanes|=t,Si|=t)}function kl(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 lt(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,i=0;if(t)for(var u=e.child;u!==null;)a|=u.lanes|u.childLanes,i|=u.subtreeFlags&65011712,i|=u.flags&65011712,u.return=e,u=u.sibling;else for(u=e.child;u!==null;)a|=u.lanes|u.childLanes,i|=u.subtreeFlags,i|=u.flags,u.return=e,u=u.sibling;return e.subtreeFlags|=i,e.childLanes=a,t}function E2(e,t,a){var i=t.pendingProps;switch(Hc(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return lt(t),null;case 1:return lt(t),null;case 3:return a=t.stateNode,i=null,e!==null&&(i=e.memoizedState.cache),t.memoizedState.cache!==i&&(t.flags|=2048),sn(wt),rt(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(oi(t)?fn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Zc())),lt(t),null;case 26:var u=t.type,c=t.memoizedState;return e===null?(fn(t),c!==null?(lt(t),xg(t,c)):(lt(t),Mf(t,u,null,i,a))):c?c!==e.memoizedState?(fn(t),lt(t),xg(t,c)):(lt(t),t.flags&=-16777217):(e=e.memoizedProps,e!==i&&fn(t),lt(t),Mf(t,u,e,i,a)),null;case 27:if(Cn(t),a=Ce.current,u=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&fn(t);else{if(!i){if(t.stateNode===null)throw Error(s(166));return lt(t),null}e=oe.current,oi(t)?ep(t):(e=O0(u,i,a),t.stateNode=e,fn(t))}return lt(t),null;case 5:if(Cn(t),u=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&fn(t);else{if(!i){if(t.stateNode===null)throw Error(s(166));return lt(t),null}if(c=oe.current,oi(t))ep(t);else{var h=ju(Ce.current);switch(c){case 1:c=h.createElementNS("http://www.w3.org/2000/svg",u);break;case 2:c=h.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;default:switch(u){case"svg":c=h.createElementNS("http://www.w3.org/2000/svg",u);break;case"math":c=h.createElementNS("http://www.w3.org/1998/Math/MathML",u);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(u,{is:i.is}):h.createElement(u)}}c[Dt]=t,c[Jt]=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(Vt(c,u,i),u){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}i&&fn(t)}}return lt(t),Mf(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==i&&fn(t);else{if(typeof i!="string"&&t.stateNode===null)throw Error(s(166));if(e=Ce.current,oi(t)){if(e=t.stateNode,a=t.memoizedProps,i=null,u=jt,u!==null)switch(u.tag){case 27:case 5:i=u.memoizedProps}e[Dt]=t,e=!!(e.nodeValue===a||i!==null&&i.suppressHydrationWarning===!0||g0(e.nodeValue,a)),e||Rn(t,!0)}else e=ju(e).createTextNode(i),e[Dt]=t,t.stateNode=e}return lt(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(i=oi(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[Dt]=t}else pr(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;lt(t),e=!1}else a=Zc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(ca(t),t):(ca(t),null);if((t.flags&128)!==0)throw Error(s(558))}return lt(t),null;case 13:if(i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(u=oi(t),i!==null&&i.dehydrated!==null){if(e===null){if(!u)throw Error(s(318));if(u=t.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(s(317));u[Dt]=t}else pr(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;lt(t),u=!1}else u=Zc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=u),u=!0;if(!u)return t.flags&256?(ca(t),t):(ca(t),null)}return ca(t),(t.flags&128)!==0?(t.lanes=a,t):(a=i!==null,e=e!==null&&e.memoizedState!==null,a&&(i=t.child,u=null,i.alternate!==null&&i.alternate.memoizedState!==null&&i.alternate.memoizedState.cachePool!==null&&(u=i.alternate.memoizedState.cachePool.pool),c=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(c=i.memoizedState.cachePool.pool),c!==u&&(i.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),_u(t,t.updateQueue),lt(t),null);case 4:return rt(),e===null&&td(t.stateNode.containerInfo),lt(t),null;case 10:return sn(t.type),lt(t),null;case 19:if(G(pt),i=t.memoizedState,i===null)return lt(t),null;if(u=(t.flags&128)!==0,c=i.rendering,c===null)if(u)kl(i,!1);else{if(ht!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=su(e),c!==null){for(t.flags|=128,kl(i,!1),e=c.updateQueue,t.updateQueue=e,_u(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)Jy(a,e),a=a.sibling;return ae(pt,pt.current&1|2),je&&rn(t,i.treeForkCount),t.child}e=e.sibling}i.tail!==null&&R()>Tu&&(t.flags|=128,u=!0,kl(i,!1),t.lanes=4194304)}else{if(!u)if(e=su(c),e!==null){if(t.flags|=128,u=!0,e=e.updateQueue,t.updateQueue=e,_u(t,e),kl(i,!0),i.tail===null&&i.tailMode==="hidden"&&!c.alternate&&!je)return lt(t),null}else 2*R()-i.renderingStartTime>Tu&&a!==536870912&&(t.flags|=128,u=!0,kl(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=pt.current,ae(pt,u?a&1|2:a&1),je&&rn(t,i.treeForkCount),e):(lt(t),null);case 22:case 23:return ca(t),tf(),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&&(lt(t),t.subtreeFlags&6&&(t.flags|=8192)):lt(t),a=t.updateQueue,a!==null&&_u(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&&G(br),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),sn(wt),lt(t),null;case 25:return null;case 30:return null}throw Error(s(156,t.tag))}function C2(e,t){switch(Hc(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return sn(wt),rt(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Cn(t),null;case 31:if(t.memoizedState!==null){if(ca(t),t.alternate===null)throw Error(s(340));pr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(ca(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));pr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return G(pt),null;case 4:return rt(),null;case 10:return sn(t.type),null;case 22:case 23:return ca(t),tf(),e!==null&&G(br),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return sn(wt),null;case 25:return null;default:return null}}function Sg(e,t){switch(Hc(t),t.tag){case 3:sn(wt),rt();break;case 26:case 27:case 5:Cn(t);break;case 4:rt();break;case 31:t.memoizedState!==null&&ca(t);break;case 13:ca(t);break;case 19:G(pt);break;case 10:sn(t.type);break;case 22:case 23:ca(t),tf(),e!==null&&G(br);break;case 24:sn(wt)}}function Nl(e,t){try{var a=t.updateQueue,i=a!==null?a.lastEffect:null;if(i!==null){var u=i.next;a=u;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!==u)}}catch(y){Fe(t,t.return,y)}}function Ln(e,t,a){try{var i=t.updateQueue,u=i!==null?i.lastEffect:null;if(u!==null){var c=u.next;i=c;do{if((i.tag&e)===e){var h=i.inst,y=h.destroy;if(y!==void 0){h.destroy=void 0,u=t;var b=a,N=y;try{N()}catch(H){Fe(u,b,H)}}}i=i.next}while(i!==c)}}catch(H){Fe(t,t.return,H)}}function wg(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{hp(t,a)}catch(i){Fe(e,e.return,i)}}}function Ag(e,t,a){a.props=Ar(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(i){Fe(e,t,i)}}function Rl(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(u){Fe(e,t,u)}}function Qa(e,t){var a=e.ref,i=e.refCleanup;if(a!==null)if(typeof i=="function")try{i()}catch(u){Fe(e,t,u)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(u){Fe(e,t,u)}else a.current=null}function Tg(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(u){Fe(e,e.return,u)}}function Df(e,t,a){try{var i=e.stateNode;J2(i,e.type,a,t),i[Jt]=t}catch(u){Fe(e,e.return,u)}}function Eg(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Qn(e.type)||e.tag===4}function jf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Eg(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&&Qn(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 Uf(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=tn));else if(i!==4&&(i===27&&Qn(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(Uf(e,t,a),e=e.sibling;e!==null;)Uf(e,t,a),e=e.sibling}function xu(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&&Qn(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(xu(e,t,a),e=e.sibling;e!==null;)xu(e,t,a),e=e.sibling}function Cg(e){var t=e.stateNode,a=e.memoizedProps;try{for(var i=e.type,u=t.attributes;u.length;)t.removeAttributeNode(u[0]);Vt(t,i,a),t[Dt]=e,t[Jt]=a}catch(c){Fe(e,e.return,c)}}var dn=!1,Et=!1,Bf=!1,Og=typeof WeakSet=="function"?WeakSet:Set,kt=null;function O2(e,t){if(e=e.containerInfo,rd=Zu,e=Hy(e),zc(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 u=i.anchorOffset,c=i.focusNode;i=i.focusOffset;try{a.nodeType,c.nodeType}catch{a=null;break e}var h=0,y=-1,b=-1,N=0,H=0,Y=e,M=null;t:for(;;){for(var j;Y!==a||u!==0&&Y.nodeType!==3||(y=h+u),Y!==c||i!==0&&Y.nodeType!==3||(b=h+i),Y.nodeType===3&&(h+=Y.nodeValue.length),(j=Y.firstChild)!==null;)M=Y,Y=j;for(;;){if(Y===e)break t;if(M===a&&++N===u&&(y=h),M===c&&++H===i&&(b=h),(j=Y.nextSibling)!==null)break;Y=M,M=Y.parentNode}Y=j}a=y===-1||b===-1?null:{start:y,end:b}}else a=null}a=a||{start:0,end:0}}else a=null;for(id={focusedElem:e,selectionRange:a},Zu=!1,kt=t;kt!==null;)if(t=kt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,kt=e;else for(;kt!==null;){switch(t=kt,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++)u=e[a],u.ref.impl=u.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&c!==null){e=void 0,a=t,u=c.memoizedProps,c=c.memoizedState,i=a.stateNode;try{var ce=Ar(a.type,u);e=i.getSnapshotBeforeUpdate(ce,c),i.__reactInternalSnapshotBeforeUpdate=e}catch(pe){Fe(a,a.return,pe)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)ud(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":ud(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,kt=e;break}kt=t.return}}function zg(e,t,a){var i=a.flags;switch(a.tag){case 0:case 11:case 15:mn(e,a),i&4&&Nl(5,a);break;case 1:if(mn(e,a),i&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(h){Fe(a,a.return,h)}else{var u=Ar(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(u,t,e.__reactInternalSnapshotBeforeUpdate)}catch(h){Fe(a,a.return,h)}}i&64&&wg(a),i&512&&Rl(a,a.return);break;case 3:if(mn(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{hp(e,t)}catch(h){Fe(a,a.return,h)}}break;case 27:t===null&&i&4&&Cg(a);case 26:case 5:mn(e,a),t===null&&i&4&&Tg(a),i&512&&Rl(a,a.return);break;case 12:mn(e,a);break;case 31:mn(e,a),i&4&&Rg(e,a);break;case 13:mn(e,a),i&4&&Mg(e,a),i&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=B2.bind(null,a),nw(e,a))));break;case 22:if(i=a.memoizedState!==null||dn,!i){t=t!==null&&t.memoizedState!==null||Et,u=dn;var c=Et;dn=i,(Et=t)&&!c?yn(e,a,(a.subtreeFlags&8772)!==0):mn(e,a),dn=u,Et=c}break;case 30:break;default:mn(e,a)}}function kg(e){var t=e.alternate;t!==null&&(e.alternate=null,kg(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&dc(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 ut=null,Wt=!1;function hn(e,t,a){for(a=a.child;a!==null;)Ng(e,t,a),a=a.sibling}function Ng(e,t,a){if(Gt&&typeof Gt.onCommitFiberUnmount=="function")try{Gt.onCommitFiberUnmount(St,a)}catch{}switch(a.tag){case 26:Et||Qa(a,t),hn(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:Et||Qa(a,t);var i=ut,u=Wt;Qn(a.type)&&(ut=a.stateNode,Wt=!1),hn(e,t,a),ql(a.stateNode),ut=i,Wt=u;break;case 5:Et||Qa(a,t);case 6:if(i=ut,u=Wt,ut=null,hn(e,t,a),ut=i,Wt=u,ut!==null)if(Wt)try{(ut.nodeType===9?ut.body:ut.nodeName==="HTML"?ut.ownerDocument.body:ut).removeChild(a.stateNode)}catch(c){Fe(a,t,c)}else try{ut.removeChild(a.stateNode)}catch(c){Fe(a,t,c)}break;case 18:ut!==null&&(Wt?(e=ut,w0(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),ki(e)):w0(ut,a.stateNode));break;case 4:i=ut,u=Wt,ut=a.stateNode.containerInfo,Wt=!0,hn(e,t,a),ut=i,Wt=u;break;case 0:case 11:case 14:case 15:Ln(2,a,t),Et||Ln(4,a,t),hn(e,t,a);break;case 1:Et||(Qa(a,t),i=a.stateNode,typeof i.componentWillUnmount=="function"&&Ag(a,t,i)),hn(e,t,a);break;case 21:hn(e,t,a);break;case 22:Et=(i=Et)||a.memoizedState!==null,hn(e,t,a),Et=i;break;default:hn(e,t,a)}}function Rg(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{ki(e)}catch(a){Fe(t,t.return,a)}}}function Mg(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{ki(e)}catch(a){Fe(t,t.return,a)}}function z2(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Og),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Og),t;default:throw Error(s(435,e.tag))}}function Su(e,t){var a=z2(e);t.forEach(function(i){if(!a.has(i)){a.add(i);var u=V2.bind(null,e,i);i.then(u,u)}})}function It(e,t){var a=t.deletions;if(a!==null)for(var i=0;i<a.length;i++){var u=a[i],c=e,h=t,y=h;e:for(;y!==null;){switch(y.tag){case 27:if(Qn(y.type)){ut=y.stateNode,Wt=!1;break e}break;case 5:ut=y.stateNode,Wt=!1;break e;case 3:case 4:ut=y.stateNode.containerInfo,Wt=!0;break e}y=y.return}if(ut===null)throw Error(s(160));Ng(c,h,u),ut=null,Wt=!1,c=u.alternate,c!==null&&(c.return=null),u.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Dg(t,e),t=t.sibling}var ja=null;function Dg(e,t){var a=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:It(t,e),Pt(e),i&4&&(Ln(3,e,e.return),Nl(3,e),Ln(5,e,e.return));break;case 1:It(t,e),Pt(e),i&512&&(Et||a===null||Qa(a,a.return)),i&64&&dn&&(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 u=ja;if(It(t,e),Pt(e),i&512&&(Et||a===null||Qa(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,u=u.ownerDocument||u;t:switch(i){case"title":c=u.getElementsByTagName("title")[0],(!c||c[il]||c[Dt]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=u.createElement(i),u.head.insertBefore(c,u.querySelector("head > title"))),Vt(c,i,a),c[Dt]=e,zt(c),i=c;break e;case"link":var h=D0("link","href",u).get(i+(a.href||""));if(h){for(var y=0;y<h.length;y++)if(c=h[y],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(y,1);break t}}c=u.createElement(i),Vt(c,i,a),u.head.appendChild(c);break;case"meta":if(h=D0("meta","content",u).get(i+(a.content||""))){for(y=0;y<h.length;y++)if(c=h[y],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(y,1);break t}}c=u.createElement(i),Vt(c,i,a),u.head.appendChild(c);break;default:throw Error(s(468,i))}c[Dt]=e,zt(c),i=c}e.stateNode=i}else j0(u,e.type,e.stateNode);else e.stateNode=M0(u,i,e.memoizedProps);else c!==i?(c===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):c.count--,i===null?j0(u,e.type,e.stateNode):M0(u,i,e.memoizedProps)):i===null&&e.stateNode!==null&&Df(e,e.memoizedProps,a.memoizedProps)}break;case 27:It(t,e),Pt(e),i&512&&(Et||a===null||Qa(a,a.return)),a!==null&&i&4&&Df(e,e.memoizedProps,a.memoizedProps);break;case 5:if(It(t,e),Pt(e),i&512&&(Et||a===null||Qa(a,a.return)),e.flags&32){u=e.stateNode;try{Pr(u,"")}catch(ce){Fe(e,e.return,ce)}}i&4&&e.stateNode!=null&&(u=e.memoizedProps,Df(e,u,a!==null?a.memoizedProps:u)),i&1024&&(Bf=!0);break;case 6:if(It(t,e),Pt(e),i&4){if(e.stateNode===null)throw Error(s(162));i=e.memoizedProps,a=e.stateNode;try{a.nodeValue=i}catch(ce){Fe(e,e.return,ce)}}break;case 3:if(Vu=null,u=ja,ja=Uu(t.containerInfo),It(t,e),ja=u,Pt(e),i&4&&a!==null&&a.memoizedState.isDehydrated)try{ki(t.containerInfo)}catch(ce){Fe(e,e.return,ce)}Bf&&(Bf=!1,jg(e));break;case 4:i=ja,ja=Uu(e.stateNode.containerInfo),It(t,e),Pt(e),ja=i;break;case 12:It(t,e),Pt(e);break;case 31:It(t,e),Pt(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Su(e,i)));break;case 13:It(t,e),Pt(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(Au=R()),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Su(e,i)));break;case 22:u=e.memoizedState!==null;var b=a!==null&&a.memoizedState!==null,N=dn,H=Et;if(dn=N||u,Et=H||b,It(t,e),Et=H,dn=N,Pt(e),i&8192)e:for(t=e.stateNode,t._visibility=u?t._visibility&-2:t._visibility|1,u&&(a===null||b||dn||Et||Tr(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){b=a=t;try{if(c=b.stateNode,u)h=c.style,typeof h.setProperty=="function"?h.setProperty("display","none","important"):h.display="none";else{y=b.stateNode;var Y=b.memoizedProps.style,M=Y!=null&&Y.hasOwnProperty("display")?Y.display:null;y.style.display=M==null||typeof M=="boolean"?"":(""+M).trim()}}catch(ce){Fe(b,b.return,ce)}}}else if(t.tag===6){if(a===null){b=t;try{b.stateNode.nodeValue=u?"":b.memoizedProps}catch(ce){Fe(b,b.return,ce)}}}else if(t.tag===18){if(a===null){b=t;try{var j=b.stateNode;u?A0(j,!0):A0(b.stateNode,!1)}catch(ce){Fe(b,b.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,Su(e,a))));break;case 19:It(t,e),Pt(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Su(e,i)));break;case 30:break;case 21:break;default:It(t,e),Pt(e)}}function Pt(e){var t=e.flags;if(t&2){try{for(var a,i=e.return;i!==null;){if(Eg(i)){a=i;break}i=i.return}if(a==null)throw Error(s(160));switch(a.tag){case 27:var u=a.stateNode,c=jf(e);xu(e,c,u);break;case 5:var h=a.stateNode;a.flags&32&&(Pr(h,""),a.flags&=-33);var y=jf(e);xu(e,y,h);break;case 3:case 4:var b=a.stateNode.containerInfo,N=jf(e);Uf(e,N,b);break;default:throw Error(s(161))}}catch(H){Fe(e,e.return,H)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function jg(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;jg(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function mn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)zg(e,t.alternate,t),t=t.sibling}function Tr(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Ln(4,t,t.return),Tr(t);break;case 1:Qa(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&Ag(t,t.return,a),Tr(t);break;case 27:ql(t.stateNode);case 26:case 5:Qa(t,t.return),Tr(t);break;case 22:t.memoizedState===null&&Tr(t);break;case 30:Tr(t);break;default:Tr(t)}e=e.sibling}}function yn(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var i=t.alternate,u=e,c=t,h=c.flags;switch(c.tag){case 0:case 11:case 15:yn(u,c,a),Nl(4,c);break;case 1:if(yn(u,c,a),i=c,u=i.stateNode,typeof u.componentDidMount=="function")try{u.componentDidMount()}catch(N){Fe(i,i.return,N)}if(i=c,u=i.updateQueue,u!==null){var y=i.stateNode;try{var b=u.shared.hiddenCallbacks;if(b!==null)for(u.shared.hiddenCallbacks=null,u=0;u<b.length;u++)dp(b[u],y)}catch(N){Fe(i,i.return,N)}}a&&h&64&&wg(c),Rl(c,c.return);break;case 27:Cg(c);case 26:case 5:yn(u,c,a),a&&i===null&&h&4&&Tg(c),Rl(c,c.return);break;case 12:yn(u,c,a);break;case 31:yn(u,c,a),a&&h&4&&Rg(u,c);break;case 13:yn(u,c,a),a&&h&4&&Mg(u,c);break;case 22:c.memoizedState===null&&yn(u,c,a),Rl(c,c.return);break;case 30:break;default:yn(u,c,a)}t=t.sibling}}function Vf(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&&vl(a))}function Lf(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&vl(e))}function Ua(e,t,a,i){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Ug(e,t,a,i),t=t.sibling}function Ug(e,t,a,i){var u=t.flags;switch(t.tag){case 0:case 11:case 15:Ua(e,t,a,i),u&2048&&Nl(9,t);break;case 1:Ua(e,t,a,i);break;case 3:Ua(e,t,a,i),u&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&vl(e)));break;case 12:if(u&2048){Ua(e,t,a,i),e=t.stateNode;try{var c=t.memoizedProps,h=c.id,y=c.onPostCommit;typeof y=="function"&&y(h,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(b){Fe(t,t.return,b)}}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,h=t.alternate,t.memoizedState!==null?c._visibility&2?Ua(e,t,a,i):Ml(e,t):c._visibility&2?Ua(e,t,a,i):(c._visibility|=2,bi(e,t,a,i,(t.subtreeFlags&10256)!==0||!1)),u&2048&&Vf(h,t);break;case 24:Ua(e,t,a,i),u&2048&&Lf(t.alternate,t);break;default:Ua(e,t,a,i)}}function bi(e,t,a,i,u){for(u=u&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var c=e,h=t,y=a,b=i,N=h.flags;switch(h.tag){case 0:case 11:case 15:bi(c,h,y,b,u),Nl(8,h);break;case 23:break;case 22:var H=h.stateNode;h.memoizedState!==null?H._visibility&2?bi(c,h,y,b,u):Ml(c,h):(H._visibility|=2,bi(c,h,y,b,u)),u&&N&2048&&Vf(h.alternate,h);break;case 24:bi(c,h,y,b,u),u&&N&2048&&Lf(h.alternate,h);break;default:bi(c,h,y,b,u)}t=t.sibling}}function Ml(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,i=t,u=i.flags;switch(i.tag){case 22:Ml(a,i),u&2048&&Vf(i.alternate,i);break;case 24:Ml(a,i),u&2048&&Lf(i.alternate,i);break;default:Ml(a,i)}t=t.sibling}}var Dl=8192;function _i(e,t,a){if(e.subtreeFlags&Dl)for(e=e.child;e!==null;)Bg(e,t,a),e=e.sibling}function Bg(e,t,a){switch(e.tag){case 26:_i(e,t,a),e.flags&Dl&&e.memoizedState!==null&&yw(a,ja,e.memoizedState,e.memoizedProps);break;case 5:_i(e,t,a);break;case 3:case 4:var i=ja;ja=Uu(e.stateNode.containerInfo),_i(e,t,a),ja=i;break;case 22:e.memoizedState===null&&(i=e.alternate,i!==null&&i.memoizedState!==null?(i=Dl,Dl=16777216,_i(e,t,a),Dl=i):_i(e,t,a));break;default:_i(e,t,a)}}function Vg(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 jl(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];kt=i,Hg(i,e)}Vg(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Lg(e),e=e.sibling}function Lg(e){switch(e.tag){case 0:case 11:case 15:jl(e),e.flags&2048&&Ln(9,e,e.return);break;case 3:jl(e);break;case 12:jl(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,wu(e)):jl(e);break;default:jl(e)}}function wu(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];kt=i,Hg(i,e)}Vg(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Ln(8,t,t.return),wu(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,wu(t));break;default:wu(t)}e=e.sibling}}function Hg(e,t){for(;kt!==null;){var a=kt;switch(a.tag){case 0:case 11:case 15:Ln(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:vl(a.memoizedState.cache)}if(i=a.child,i!==null)i.return=a,kt=i;else e:for(a=e;kt!==null;){i=kt;var u=i.sibling,c=i.return;if(kg(i),i===a){kt=null;break e}if(u!==null){u.return=c,kt=u;break e}kt=c}}}var k2={getCacheForType:function(e){var t=Ut(wt),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return Ut(wt).controller.signal}},N2=typeof WeakMap=="function"?WeakMap:Map,$e=0,nt=null,ke=null,Re=0,Je=0,fa=null,Hn=!1,xi=!1,Hf=!1,pn=0,ht=0,qn=0,Er=0,qf=0,da=0,Si=0,Ul=null,ea=null,Zf=!1,Au=0,qg=0,Tu=1/0,Eu=null,Zn=null,Ot=0,Yn=null,wi=null,gn=0,Yf=0,Gf=null,Zg=null,Bl=0,$f=null;function ha(){return($e&2)!==0&&Re!==0?Re&-Re:O.T!==null?Wf():ry()}function Yg(){if(da===0)if((Re&536870912)===0||je){var e=Ds;Ds<<=1,(Ds&3932160)===0&&(Ds=262144),da=e}else da=536870912;return e=oa.current,e!==null&&(e.flags|=32),da}function ta(e,t,a){(e===nt&&(Je===2||Je===9)||e.cancelPendingCommit!==null)&&(Ai(e,0),Gn(e,Re,da,!1)),rl(e,a),(($e&2)===0||e!==nt)&&(e===nt&&(($e&2)===0&&(Er|=a),ht===4&&Gn(e,Re,da,!1)),Xa(e))}function Gg(e,t,a){if(($e&6)!==0)throw Error(s(327));var i=!a&&(t&127)===0&&(t&e.expiredLanes)===0||nl(e,t),u=i?D2(e,t):Xf(e,t,!0),c=i;do{if(u===0){xi&&!i&&Gn(e,t,0,!1);break}else{if(a=e.current.alternate,c&&!R2(a)){u=Xf(e,t,!1),c=!1;continue}if(u===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 y=e;u=Ul;var b=y.current.memoizedState.isDehydrated;if(b&&(Ai(y,h).flags|=256),h=Xf(y,h,!1),h!==2){if(Hf&&!b){y.errorRecoveryDisabledLanes|=c,Er|=c,u=4;break e}c=ea,ea=u,c!==null&&(ea===null?ea=c:ea.push.apply(ea,c))}u=h}if(c=!1,u!==2)continue}}if(u===1){Ai(e,0),Gn(e,t,0,!0);break}e:{switch(i=e,c=u,c){case 0:case 1:throw Error(s(345));case 4:if((t&4194048)!==t)break;case 6:Gn(i,t,da,!Hn);break e;case 2:ea=null;break;case 3:case 5:break;default:throw Error(s(329))}if((t&62914560)===t&&(u=Au+300-R(),10<u)){if(Gn(i,t,da,!Hn),Us(i,0,!0)!==0)break e;gn=t,i.timeoutHandle=x0($g.bind(null,i,a,ea,Eu,Zf,t,da,Er,Si,Hn,c,"Throttled",-0,0),u);break e}$g(i,a,ea,Eu,Zf,t,da,Er,Si,Hn,c,null,-0,0)}}break}while(!0);Xa(e)}function $g(e,t,a,i,u,c,h,y,b,N,H,Y,M,j){if(e.timeoutHandle=-1,Y=t.subtreeFlags,Y&8192||(Y&16785408)===16785408){Y={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:tn},Bg(t,c,Y);var ce=(c&62914560)===c?Au-R():(c&4194048)===c?qg-R():0;if(ce=pw(Y,ce),ce!==null){gn=c,e.cancelPendingCommit=ce(Pg.bind(null,e,t,c,a,i,u,h,y,b,H,Y,null,M,j)),Gn(e,c,h,!N);return}}Pg(e,t,c,a,i,u,h,y,b)}function R2(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 u=a[i],c=u.getSnapshot;u=u.value;try{if(!sa(c(),u))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 Gn(e,t,a,i){t&=~qf,t&=~Er,e.suspendedLanes|=t,e.pingedLanes&=~t,i&&(e.warmLanes|=t),i=e.expirationTimes;for(var u=t;0<u;){var c=31-Mt(u),h=1<<c;i[c]=-1,u&=~h}a!==0&&ty(e,a,t)}function Cu(){return($e&6)===0?(Vl(0),!1):!0}function Qf(){if(ke!==null){if(Je===0)var e=ke.return;else e=ke,ln=gr=null,uf(e),mi=null,_l=0,e=ke;for(;e!==null;)Sg(e.alternate,e),e=e.return;ke=null}}function Ai(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,I2(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),gn=0,Qf(),nt=e,ke=a=nn(e.current,null),Re=t,Je=0,fa=null,Hn=!1,xi=nl(e,t),Hf=!1,Si=da=qf=Er=qn=ht=0,ea=Ul=null,Zf=!1,(t&8)!==0&&(t|=t&32);var i=e.entangledLanes;if(i!==0)for(e=e.entanglements,i&=t;0<i;){var u=31-Mt(i),c=1<<u;t|=e[u],i&=~c}return pn=t,Ks(),a}function Qg(e,t){Te=null,O.H=Ol,t===hi||t===au?(t=up(),Je=3):t===Jc?(t=up(),Je=4):Je=t===Af?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,fa=t,ke===null&&(ht=1,pu(e,wa(t,e.current)))}function Xg(){var e=oa.current;return e===null?!0:(Re&4194048)===Re?Ca===null:(Re&62914560)===Re||(Re&536870912)!==0?e===Ca:!1}function Kg(){var e=O.H;return O.H=Ol,e===null?Ol:e}function Jg(){var e=O.A;return O.A=k2,e}function Ou(){ht=4,Hn||(Re&4194048)!==Re&&oa.current!==null||(xi=!0),(qn&134217727)===0&&(Er&134217727)===0||nt===null||Gn(nt,Re,da,!1)}function Xf(e,t,a){var i=$e;$e|=2;var u=Kg(),c=Jg();(nt!==e||Re!==t)&&(Eu=null,Ai(e,t)),t=!1;var h=ht;e:do try{if(Je!==0&&ke!==null){var y=ke,b=fa;switch(Je){case 8:Qf(),h=6;break e;case 3:case 2:case 9:case 6:oa.current===null&&(t=!0);var N=Je;if(Je=0,fa=null,Ti(e,y,b,N),a&&xi){h=0;break e}break;default:N=Je,Je=0,fa=null,Ti(e,y,b,N)}}M2(),h=ht;break}catch(H){Qg(e,H)}while(!0);return t&&e.shellSuspendCounter++,ln=gr=null,$e=i,O.H=u,O.A=c,ke===null&&(nt=null,Re=0,Ks()),h}function M2(){for(;ke!==null;)Fg(ke)}function D2(e,t){var a=$e;$e|=2;var i=Kg(),u=Jg();nt!==e||Re!==t?(Eu=null,Tu=R()+500,Ai(e,t)):xi=nl(e,t);e:do try{if(Je!==0&&ke!==null){t=ke;var c=fa;t:switch(Je){case 1:Je=0,fa=null,Ti(e,t,c,1);break;case 2:case 9:if(lp(c)){Je=0,fa=null,Wg(t);break}t=function(){Je!==2&&Je!==9||nt!==e||(Je=7),Xa(e)},c.then(t,t);break e;case 3:Je=7;break e;case 4:Je=5;break e;case 7:lp(c)?(Je=0,fa=null,Wg(t)):(Je=0,fa=null,Ti(e,t,c,7));break;case 5:var h=null;switch(ke.tag){case 26:h=ke.memoizedState;case 5:case 27:var y=ke;if(h?U0(h):y.stateNode.complete){Je=0,fa=null;var b=y.sibling;if(b!==null)ke=b;else{var N=y.return;N!==null?(ke=N,zu(N)):ke=null}break t}}Je=0,fa=null,Ti(e,t,c,5);break;case 6:Je=0,fa=null,Ti(e,t,c,6);break;case 8:Qf(),ht=6;break e;default:throw Error(s(462))}}j2();break}catch(H){Qg(e,H)}while(!0);return ln=gr=null,O.H=i,O.A=u,$e=a,ke!==null?0:(nt=null,Re=0,Ks(),ht)}function j2(){for(;ke!==null&&!x();)Fg(ke)}function Fg(e){var t=_g(e.alternate,e,pn);e.memoizedProps=e.pendingProps,t===null?zu(e):ke=t}function Wg(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=mg(a,t,t.pendingProps,t.type,void 0,Re);break;case 11:t=mg(a,t,t.pendingProps,t.type.render,t.ref,Re);break;case 5:uf(t);default:Sg(a,t),t=ke=Jy(t,pn),t=_g(a,t,pn)}e.memoizedProps=e.pendingProps,t===null?zu(e):ke=t}function Ti(e,t,a,i){ln=gr=null,uf(t),mi=null,_l=0;var u=t.return;try{if(w2(e,u,t,a,Re)){ht=1,pu(e,wa(a,e.current)),ke=null;return}}catch(c){if(u!==null)throw ke=u,c;ht=1,pu(e,wa(a,e.current)),ke=null;return}t.flags&32768?(je||i===1?e=!0:xi||(Re&536870912)!==0?e=!1:(Hn=e=!0,(i===2||i===9||i===3||i===6)&&(i=oa.current,i!==null&&i.tag===13&&(i.flags|=16384))),Ig(t,e)):zu(t)}function zu(e){var t=e;do{if((t.flags&32768)!==0){Ig(t,Hn);return}e=t.return;var a=E2(t.alternate,t,pn);if(a!==null){ke=a;return}if(t=t.sibling,t!==null){ke=t;return}ke=t=e}while(t!==null);ht===0&&(ht=5)}function Ig(e,t){do{var a=C2(e.alternate,e);if(a!==null){a.flags&=32767,ke=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){ke=e;return}ke=e=a}while(e!==null);ht=6,ke=null}function Pg(e,t,a,i,u,c,h,y,b){e.cancelPendingCommit=null;do ku();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|=Dc,mS(e,a,c,h,y,b),e===nt&&(ke=nt=null,Re=0),wi=t,Yn=e,gn=a,Yf=c,Gf=u,Zg=i,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,L2(fe,function(){return r0(),null})):(e.callbackNode=null,e.callbackPriority=0),i=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||i){i=O.T,O.T=null,u=K.p,K.p=2,h=$e,$e|=4;try{O2(e,t,a)}finally{$e=h,K.p=u,O.T=i}}Ot=1,e0(),t0(),a0()}}function e0(){if(Ot===1){Ot=0;var e=Yn,t=wi,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=O.T,O.T=null;var i=K.p;K.p=2;var u=$e;$e|=4;try{Dg(t,e);var c=id,h=Hy(e.containerInfo),y=c.focusedElem,b=c.selectionRange;if(h!==y&&y&&y.ownerDocument&&Ly(y.ownerDocument.documentElement,y)){if(b!==null&&zc(y)){var N=b.start,H=b.end;if(H===void 0&&(H=N),"selectionStart"in y)y.selectionStart=N,y.selectionEnd=Math.min(H,y.value.length);else{var Y=y.ownerDocument||document,M=Y&&Y.defaultView||window;if(M.getSelection){var j=M.getSelection(),ce=y.textContent.length,pe=Math.min(b.start,ce),tt=b.end===void 0?pe:Math.min(b.end,ce);!j.extend&&pe>tt&&(h=tt,tt=pe,pe=h);var C=Vy(y,pe),A=Vy(y,tt);if(C&&A&&(j.rangeCount!==1||j.anchorNode!==C.node||j.anchorOffset!==C.offset||j.focusNode!==A.node||j.focusOffset!==A.offset)){var k=Y.createRange();k.setStart(C.node,C.offset),j.removeAllRanges(),pe>tt?(j.addRange(k),j.extend(A.node,A.offset)):(k.setEnd(A.node,A.offset),j.addRange(k))}}}}for(Y=[],j=y;j=j.parentNode;)j.nodeType===1&&Y.push({element:j,left:j.scrollLeft,top:j.scrollTop});for(typeof y.focus=="function"&&y.focus(),y=0;y<Y.length;y++){var q=Y[y];q.element.scrollLeft=q.left,q.element.scrollTop=q.top}}Zu=!!rd,id=rd=null}finally{$e=u,K.p=i,O.T=a}}e.current=t,Ot=2}}function t0(){if(Ot===2){Ot=0;var e=Yn,t=wi,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=O.T,O.T=null;var i=K.p;K.p=2;var u=$e;$e|=4;try{zg(e,t.alternate,t)}finally{$e=u,K.p=i,O.T=a}}Ot=3}}function a0(){if(Ot===4||Ot===3){Ot=0,z();var e=Yn,t=wi,a=gn,i=Zg;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Ot=5:(Ot=0,wi=Yn=null,n0(e,e.pendingLanes));var u=e.pendingLanes;if(u===0&&(Zn=null),cc(a),t=t.stateNode,Gt&&typeof Gt.onCommitFiberRoot=="function")try{Gt.onCommitFiberRoot(St,t,void 0,(t.current.flags&128)===128)}catch{}if(i!==null){t=O.T,u=K.p,K.p=2,O.T=null;try{for(var c=e.onRecoverableError,h=0;h<i.length;h++){var y=i[h];c(y.value,{componentStack:y.stack})}}finally{O.T=t,K.p=u}}(gn&3)!==0&&ku(),Xa(e),u=e.pendingLanes,(a&261930)!==0&&(u&42)!==0?e===$f?Bl++:(Bl=0,$f=e):Bl=0,Vl(0)}}function n0(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,vl(t)))}function ku(){return e0(),t0(),a0(),r0()}function r0(){if(Ot!==5)return!1;var e=Yn,t=Yf;Yf=0;var a=cc(gn),i=O.T,u=K.p;try{K.p=32>a?32:a,O.T=null,a=Gf,Gf=null;var c=Yn,h=gn;if(Ot=0,wi=Yn=null,gn=0,($e&6)!==0)throw Error(s(331));var y=$e;if($e|=4,Lg(c.current),Ug(c,c.current,h,a),$e=y,Vl(0,!1),Gt&&typeof Gt.onPostCommitFiberRoot=="function")try{Gt.onPostCommitFiberRoot(St,c)}catch{}return!0}finally{K.p=u,O.T=i,n0(e,t)}}function i0(e,t,a){t=wa(a,t),t=wf(e.stateNode,t,2),e=Un(e,t,2),e!==null&&(rl(e,2),Xa(e))}function Fe(e,t,a){if(e.tag===3)i0(e,e,a);else for(;t!==null;){if(t.tag===3){i0(t,e,a);break}else if(t.tag===1){var i=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(Zn===null||!Zn.has(i))){e=wa(a,e),a=lg(2),i=Un(t,a,2),i!==null&&(sg(a,i,t,e),rl(i,2),Xa(i));break}}t=t.return}}function Kf(e,t,a){var i=e.pingCache;if(i===null){i=e.pingCache=new N2;var u=new Set;i.set(t,u)}else u=i.get(t),u===void 0&&(u=new Set,i.set(t,u));u.has(a)||(Hf=!0,u.add(a),e=U2.bind(null,e,t,a),t.then(e,e))}function U2(e,t,a){var i=e.pingCache;i!==null&&i.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,nt===e&&(Re&a)===a&&(ht===4||ht===3&&(Re&62914560)===Re&&300>R()-Au?($e&2)===0&&Ai(e,0):qf|=a,Si===Re&&(Si=0)),Xa(e)}function l0(e,t){t===0&&(t=ey()),e=mr(e,t),e!==null&&(rl(e,t),Xa(e))}function B2(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),l0(e,a)}function V2(e,t){var a=0;switch(e.tag){case 31:case 13:var i=e.stateNode,u=e.memoizedState;u!==null&&(a=u.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),l0(e,a)}function L2(e,t){return Rs(e,t)}var Nu=null,Ei=null,Jf=!1,Ru=!1,Ff=!1,$n=0;function Xa(e){e!==Ei&&e.next===null&&(Ei===null?Nu=Ei=e:Ei=Ei.next=e),Ru=!0,Jf||(Jf=!0,q2())}function Vl(e,t){if(!Ff&&Ru){Ff=!0;do for(var a=!1,i=Nu;i!==null;){if(e!==0){var u=i.pendingLanes;if(u===0)var c=0;else{var h=i.suspendedLanes,y=i.pingedLanes;c=(1<<31-Mt(42|e)+1)-1,c&=u&~(h&~y),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(a=!0,c0(i,c))}else c=Re,c=Us(i,i===nt?c:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),(c&3)===0||nl(i,c)||(a=!0,c0(i,c));i=i.next}while(a);Ff=!1}}function H2(){s0()}function s0(){Ru=Jf=!1;var e=0;$n!==0&&W2()&&(e=$n);for(var t=R(),a=null,i=Nu;i!==null;){var u=i.next,c=u0(i,t);c===0?(i.next=null,a===null?Nu=u:a.next=u,u===null&&(Ei=a)):(a=i,(e!==0||(c&3)!==0)&&(Ru=!0)),i=u}Ot!==0&&Ot!==5||Vl(e),$n!==0&&($n=0)}function u0(e,t){for(var a=e.suspendedLanes,i=e.pingedLanes,u=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var h=31-Mt(c),y=1<<h,b=u[h];b===-1?((y&a)===0||(y&i)!==0)&&(u[h]=hS(y,t)):b<=t&&(e.expiredLanes|=y),c&=~y}if(t=nt,a=Re,a=Us(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i=e.callbackNode,a===0||e===t&&(Je===2||Je===9)||e.cancelPendingCommit!==null)return i!==null&&i!==null&&Qr(i),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||nl(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(i!==null&&Qr(i),cc(a)){case 2:case 8:a=ee;break;case 32:a=fe;break;case 268435456:a=He;break;default:a=fe}return i=o0.bind(null,e),a=Rs(a,i),e.callbackPriority=t,e.callbackNode=a,t}return i!==null&&i!==null&&Qr(i),e.callbackPriority=2,e.callbackNode=null,2}function o0(e,t){if(Ot!==0&&Ot!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(ku()&&e.callbackNode!==a)return null;var i=Re;return i=Us(e,e===nt?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i===0?null:(Gg(e,i,t),u0(e,R()),e.callbackNode!=null&&e.callbackNode===a?o0.bind(null,e):null)}function c0(e,t){if(ku())return null;Gg(e,t,!0)}function q2(){P2(function(){($e&6)!==0?Rs(I,H2):s0()})}function Wf(){if($n===0){var e=fi;e===0&&(e=ur,ur<<=1,(ur&261888)===0&&(ur=256)),$n=e}return $n}function f0(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Hs(""+e)}function d0(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 Z2(e,t,a,i,u){if(t==="submit"&&a&&a.stateNode===u){var c=f0((u[Jt]||null).action),h=i.submitter;h&&(t=(t=h[Jt]||null)?f0(t.formAction):h.getAttribute("formAction"),t!==null&&(c=t,h=null));var y=new Gs("action","action",null,i,u);e.push({event:y,listeners:[{instance:null,listener:function(){if(i.defaultPrevented){if($n!==0){var b=h?d0(u,h):new FormData(u);gf(a,{pending:!0,data:b,method:u.method,action:c},null,b)}}else typeof c=="function"&&(y.preventDefault(),b=h?d0(u,h):new FormData(u),gf(a,{pending:!0,data:b,method:u.method,action:c},c,b))},currentTarget:u}]})}}for(var If=0;If<Mc.length;If++){var Pf=Mc[If],Y2=Pf.toLowerCase(),G2=Pf[0].toUpperCase()+Pf.slice(1);Da(Y2,"on"+G2)}Da(Yy,"onAnimationEnd"),Da(Gy,"onAnimationIteration"),Da($y,"onAnimationStart"),Da("dblclick","onDoubleClick"),Da("focusin","onFocus"),Da("focusout","onBlur"),Da(l2,"onTransitionRun"),Da(s2,"onTransitionStart"),Da(u2,"onTransitionCancel"),Da(Qy,"onTransitionEnd"),Wr("onMouseEnter",["mouseout","mouseover"]),Wr("onMouseLeave",["mouseout","mouseover"]),Wr("onPointerEnter",["pointerout","pointerover"]),Wr("onPointerLeave",["pointerout","pointerover"]),cr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),cr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),cr("onBeforeInput",["compositionend","keypress","textInput","paste"]),cr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),cr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),cr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ll="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(" "),$2=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ll));function h0(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var i=e[a],u=i.event;i=i.listeners;e:{var c=void 0;if(t)for(var h=i.length-1;0<=h;h--){var y=i[h],b=y.instance,N=y.currentTarget;if(y=y.listener,b!==c&&u.isPropagationStopped())break e;c=y,u.currentTarget=N;try{c(u)}catch(H){Xs(H)}u.currentTarget=null,c=b}else for(h=0;h<i.length;h++){if(y=i[h],b=y.instance,N=y.currentTarget,y=y.listener,b!==c&&u.isPropagationStopped())break e;c=y,u.currentTarget=N;try{c(u)}catch(H){Xs(H)}u.currentTarget=null,c=b}}}}function Ne(e,t){var a=t[fc];a===void 0&&(a=t[fc]=new Set);var i=e+"__bubble";a.has(i)||(m0(t,e,2,!1),a.add(i))}function ed(e,t,a){var i=0;t&&(i|=4),m0(a,e,i,t)}var Mu="_reactListening"+Math.random().toString(36).slice(2);function td(e){if(!e[Mu]){e[Mu]=!0,sy.forEach(function(a){a!=="selectionchange"&&($2.has(a)||ed(a,!1,e),ed(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Mu]||(t[Mu]=!0,ed("selectionchange",!1,t))}}function m0(e,t,a,i){switch(Y0(t)){case 2:var u=bw;break;case 8:u=_w;break;default:u=pd}a=u.bind(null,t,a,e),u=void 0,!_c||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(u=!0),i?u!==void 0?e.addEventListener(t,a,{capture:!0,passive:u}):e.addEventListener(t,a,!0):u!==void 0?e.addEventListener(t,a,{passive:u}):e.addEventListener(t,a,!1)}function ad(e,t,a,i,u){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 y=i.stateNode.containerInfo;if(y===u)break;if(h===4)for(h=i.return;h!==null;){var b=h.tag;if((b===3||b===4)&&h.stateNode.containerInfo===u)return;h=h.return}for(;y!==null;){if(h=Kr(y),h===null)return;if(b=h.tag,b===5||b===6||b===26||b===27){i=c=h;continue e}y=y.parentNode}}i=i.return}by(function(){var N=c,H=vc(a),Y=[];e:{var M=Xy.get(e);if(M!==void 0){var j=Gs,ce=e;switch(e){case"keypress":if(Zs(a)===0)break e;case"keydown":case"keyup":j=VS;break;case"focusin":ce="focus",j=Ac;break;case"focusout":ce="blur",j=Ac;break;case"beforeblur":case"afterblur":j=Ac;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":j=Sy;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":j=ES;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":j=qS;break;case Yy:case Gy:case $y:j=zS;break;case Qy:j=YS;break;case"scroll":case"scrollend":j=AS;break;case"wheel":j=$S;break;case"copy":case"cut":case"paste":j=NS;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":j=Ay;break;case"toggle":case"beforetoggle":j=XS}var pe=(t&4)!==0,tt=!pe&&(e==="scroll"||e==="scrollend"),C=pe?M!==null?M+"Capture":null:M;pe=[];for(var A=N,k;A!==null;){var q=A;if(k=q.stateNode,q=q.tag,q!==5&&q!==26&&q!==27||k===null||C===null||(q=sl(A,C),q!=null&&pe.push(Hl(A,q,k))),tt)break;A=A.return}0<pe.length&&(M=new j(M,ce,null,a,H),Y.push({event:M,listeners:pe}))}}if((t&7)===0){e:{if(M=e==="mouseover"||e==="pointerover",j=e==="mouseout"||e==="pointerout",M&&a!==gc&&(ce=a.relatedTarget||a.fromElement)&&(Kr(ce)||ce[Xr]))break e;if((j||M)&&(M=H.window===H?H:(M=H.ownerDocument)?M.defaultView||M.parentWindow:window,j?(ce=a.relatedTarget||a.toElement,j=N,ce=ce?Kr(ce):null,ce!==null&&(tt=f(ce),pe=ce.tag,ce!==tt||pe!==5&&pe!==27&&pe!==6)&&(ce=null)):(j=null,ce=N),j!==ce)){if(pe=Sy,q="onMouseLeave",C="onMouseEnter",A="mouse",(e==="pointerout"||e==="pointerover")&&(pe=Ay,q="onPointerLeave",C="onPointerEnter",A="pointer"),tt=j==null?M:ll(j),k=ce==null?M:ll(ce),M=new pe(q,A+"leave",j,a,H),M.target=tt,M.relatedTarget=k,q=null,Kr(H)===N&&(pe=new pe(C,A+"enter",ce,a,H),pe.target=k,pe.relatedTarget=tt,q=pe),tt=q,j&&ce)t:{for(pe=Q2,C=j,A=ce,k=0,q=C;q;q=pe(q))k++;q=0;for(var ye=A;ye;ye=pe(ye))q++;for(;0<k-q;)C=pe(C),k--;for(;0<q-k;)A=pe(A),q--;for(;k--;){if(C===A||A!==null&&C===A.alternate){pe=C;break t}C=pe(C),A=pe(A)}pe=null}else pe=null;j!==null&&y0(Y,M,j,pe,!1),ce!==null&&tt!==null&&y0(Y,tt,ce,pe,!0)}}e:{if(M=N?ll(N):window,j=M.nodeName&&M.nodeName.toLowerCase(),j==="select"||j==="input"&&M.type==="file")var qe=Ry;else if(ky(M))if(My)qe=n2;else{qe=t2;var he=e2}else j=M.nodeName,!j||j.toLowerCase()!=="input"||M.type!=="checkbox"&&M.type!=="radio"?N&&pc(N.elementType)&&(qe=Ry):qe=a2;if(qe&&(qe=qe(e,N))){Ny(Y,qe,a,H);break e}he&&he(e,M,N),e==="focusout"&&N&&M.type==="number"&&N.memoizedProps.value!=null&&yc(M,"number",M.value)}switch(he=N?ll(N):window,e){case"focusin":(ky(he)||he.contentEditable==="true")&&(ni=he,kc=N,yl=null);break;case"focusout":yl=kc=ni=null;break;case"mousedown":Nc=!0;break;case"contextmenu":case"mouseup":case"dragend":Nc=!1,qy(Y,a,H);break;case"selectionchange":if(i2)break;case"keydown":case"keyup":qy(Y,a,H)}var Ee;if(Ec)e:{switch(e){case"compositionstart":var Me="onCompositionStart";break e;case"compositionend":Me="onCompositionEnd";break e;case"compositionupdate":Me="onCompositionUpdate";break e}Me=void 0}else ai?Oy(e,a)&&(Me="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(Me="onCompositionStart");Me&&(Ty&&a.locale!=="ko"&&(ai||Me!=="onCompositionStart"?Me==="onCompositionEnd"&&ai&&(Ee=_y()):(zn=H,xc="value"in zn?zn.value:zn.textContent,ai=!0)),he=Du(N,Me),0<he.length&&(Me=new wy(Me,e,null,a,H),Y.push({event:Me,listeners:he}),Ee?Me.data=Ee:(Ee=zy(a),Ee!==null&&(Me.data=Ee)))),(Ee=JS?FS(e,a):WS(e,a))&&(Me=Du(N,"onBeforeInput"),0<Me.length&&(he=new wy("onBeforeInput","beforeinput",null,a,H),Y.push({event:he,listeners:Me}),he.data=Ee)),Z2(Y,e,N,a,H)}h0(Y,t)})}function Hl(e,t,a){return{instance:e,listener:t,currentTarget:a}}function Du(e,t){for(var a=t+"Capture",i=[];e!==null;){var u=e,c=u.stateNode;if(u=u.tag,u!==5&&u!==26&&u!==27||c===null||(u=sl(e,a),u!=null&&i.unshift(Hl(e,u,c)),u=sl(e,t),u!=null&&i.push(Hl(e,u,c))),e.tag===3)return i;e=e.return}return[]}function Q2(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function y0(e,t,a,i,u){for(var c=t._reactName,h=[];a!==null&&a!==i;){var y=a,b=y.alternate,N=y.stateNode;if(y=y.tag,b!==null&&b===i)break;y!==5&&y!==26&&y!==27||N===null||(b=N,u?(N=sl(a,c),N!=null&&h.unshift(Hl(a,N,b))):u||(N=sl(a,c),N!=null&&h.push(Hl(a,N,b)))),a=a.return}h.length!==0&&e.push({event:t,listeners:h})}var X2=/\r\n?/g,K2=/\u0000|\uFFFD/g;function p0(e){return(typeof e=="string"?e:""+e).replace(X2,`
49
+ `).replace(K2,"")}function g0(e,t){return t=p0(t),p0(e)===t}function et(e,t,a,i,u,c){switch(a){case"children":typeof i=="string"?t==="body"||t==="textarea"&&i===""||Pr(e,i):(typeof i=="number"||typeof i=="bigint")&&t!=="body"&&Pr(e,""+i);break;case"className":Vs(e,"class",i);break;case"tabIndex":Vs(e,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":Vs(e,a,i);break;case"style":gy(e,i,c);break;case"data":if(t!=="object"){Vs(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=Hs(""+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"&&et(e,t,"name",u.name,u,null),et(e,t,"formEncType",u.formEncType,u,null),et(e,t,"formMethod",u.formMethod,u,null),et(e,t,"formTarget",u.formTarget,u,null)):(et(e,t,"encType",u.encType,u,null),et(e,t,"method",u.method,u,null),et(e,t,"target",u.target,u,null)));if(i==null||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(a);break}i=Hs(""+i),e.setAttribute(a,i);break;case"onClick":i!=null&&(e.onclick=tn);break;case"onScroll":i!=null&&Ne("scroll",e);break;case"onScrollEnd":i!=null&&Ne("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(u.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=Hs(""+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":Ne("beforetoggle",e),Ne("toggle",e),Bs(e,"popover",i);break;case"xlinkActuate":en(e,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":en(e,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":en(e,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":en(e,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":en(e,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":en(e,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":en(e,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":en(e,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":en(e,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case"is":Bs(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=SS.get(a)||a,Bs(e,a,i))}}function nd(e,t,a,i,u,c){switch(a){case"style":gy(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(u.children!=null)throw Error(s(60));e.innerHTML=a}}break;case"children":typeof i=="string"?Pr(e,i):(typeof i=="number"||typeof i=="bigint")&&Pr(e,""+i);break;case"onScroll":i!=null&&Ne("scroll",e);break;case"onScrollEnd":i!=null&&Ne("scrollend",e);break;case"onClick":i!=null&&(e.onclick=tn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!uy.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(u=a.endsWith("Capture"),t=a.slice(2,u?a.length-7:void 0),c=e[Jt]||null,c=c!=null?c[a]:null,typeof c=="function"&&e.removeEventListener(t,c,u),typeof i=="function")){typeof c!="function"&&c!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,i,u);break e}a in e?e[a]=i:i===!0?e.setAttribute(a,""):Bs(e,a,i)}}}function Vt(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ne("error",e),Ne("load",e);var i=!1,u=!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":u=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:et(e,t,c,h,a,null)}}u&&et(e,t,"srcSet",a.srcSet,a,null),i&&et(e,t,"src",a.src,a,null);return;case"input":Ne("invalid",e);var y=c=h=u=null,b=null,N=null;for(i in a)if(a.hasOwnProperty(i)){var H=a[i];if(H!=null)switch(i){case"name":u=H;break;case"type":h=H;break;case"checked":b=H;break;case"defaultChecked":N=H;break;case"value":c=H;break;case"defaultValue":y=H;break;case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(s(137,t));break;default:et(e,t,i,H,a,null)}}hy(e,c,y,b,N,h,u,!1);return;case"select":Ne("invalid",e),i=h=c=null;for(u in a)if(a.hasOwnProperty(u)&&(y=a[u],y!=null))switch(u){case"value":c=y;break;case"defaultValue":h=y;break;case"multiple":i=y;default:et(e,t,u,y,a,null)}t=c,a=h,e.multiple=!!i,t!=null?Ir(e,!!i,t,!1):a!=null&&Ir(e,!!i,a,!0);return;case"textarea":Ne("invalid",e),c=u=i=null;for(h in a)if(a.hasOwnProperty(h)&&(y=a[h],y!=null))switch(h){case"value":i=y;break;case"defaultValue":u=y;break;case"children":c=y;break;case"dangerouslySetInnerHTML":if(y!=null)throw Error(s(91));break;default:et(e,t,h,y,a,null)}yy(e,i,u,c);return;case"option":for(b in a)if(a.hasOwnProperty(b)&&(i=a[b],i!=null))switch(b){case"selected":e.selected=i&&typeof i!="function"&&typeof i!="symbol";break;default:et(e,t,b,i,a,null)}return;case"dialog":Ne("beforetoggle",e),Ne("toggle",e),Ne("cancel",e),Ne("close",e);break;case"iframe":case"object":Ne("load",e);break;case"video":case"audio":for(i=0;i<Ll.length;i++)Ne(Ll[i],e);break;case"image":Ne("error",e),Ne("load",e);break;case"details":Ne("toggle",e);break;case"embed":case"source":case"link":Ne("error",e),Ne("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(N in a)if(a.hasOwnProperty(N)&&(i=a[N],i!=null))switch(N){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:et(e,t,N,i,a,null)}return;default:if(pc(t)){for(H in a)a.hasOwnProperty(H)&&(i=a[H],i!==void 0&&nd(e,t,H,i,a,void 0));return}}for(y in a)a.hasOwnProperty(y)&&(i=a[y],i!=null&&et(e,t,y,i,a,null))}function J2(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 u=null,c=null,h=null,y=null,b=null,N=null,H=null;for(j in a){var Y=a[j];if(a.hasOwnProperty(j)&&Y!=null)switch(j){case"checked":break;case"value":break;case"defaultValue":b=Y;default:i.hasOwnProperty(j)||et(e,t,j,null,i,Y)}}for(var M in i){var j=i[M];if(Y=a[M],i.hasOwnProperty(M)&&(j!=null||Y!=null))switch(M){case"type":c=j;break;case"name":u=j;break;case"checked":N=j;break;case"defaultChecked":H=j;break;case"value":h=j;break;case"defaultValue":y=j;break;case"children":case"dangerouslySetInnerHTML":if(j!=null)throw Error(s(137,t));break;default:j!==Y&&et(e,t,M,j,i,Y)}}mc(e,h,y,b,N,H,c,u);return;case"select":j=h=y=M=null;for(c in a)if(b=a[c],a.hasOwnProperty(c)&&b!=null)switch(c){case"value":break;case"multiple":j=b;default:i.hasOwnProperty(c)||et(e,t,c,null,i,b)}for(u in i)if(c=i[u],b=a[u],i.hasOwnProperty(u)&&(c!=null||b!=null))switch(u){case"value":M=c;break;case"defaultValue":y=c;break;case"multiple":h=c;default:c!==b&&et(e,t,u,c,i,b)}t=y,a=h,i=j,M!=null?Ir(e,!!a,M,!1):!!i!=!!a&&(t!=null?Ir(e,!!a,t,!0):Ir(e,!!a,a?[]:"",!1));return;case"textarea":j=M=null;for(y in a)if(u=a[y],a.hasOwnProperty(y)&&u!=null&&!i.hasOwnProperty(y))switch(y){case"value":break;case"children":break;default:et(e,t,y,null,i,u)}for(h in i)if(u=i[h],c=a[h],i.hasOwnProperty(h)&&(u!=null||c!=null))switch(h){case"value":M=u;break;case"defaultValue":j=u;break;case"children":break;case"dangerouslySetInnerHTML":if(u!=null)throw Error(s(91));break;default:u!==c&&et(e,t,h,u,i,c)}my(e,M,j);return;case"option":for(var ce in a)if(M=a[ce],a.hasOwnProperty(ce)&&M!=null&&!i.hasOwnProperty(ce))switch(ce){case"selected":e.selected=!1;break;default:et(e,t,ce,null,i,M)}for(b in i)if(M=i[b],j=a[b],i.hasOwnProperty(b)&&M!==j&&(M!=null||j!=null))switch(b){case"selected":e.selected=M&&typeof M!="function"&&typeof M!="symbol";break;default:et(e,t,b,M,i,j)}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 pe in a)M=a[pe],a.hasOwnProperty(pe)&&M!=null&&!i.hasOwnProperty(pe)&&et(e,t,pe,null,i,M);for(N in i)if(M=i[N],j=a[N],i.hasOwnProperty(N)&&M!==j&&(M!=null||j!=null))switch(N){case"children":case"dangerouslySetInnerHTML":if(M!=null)throw Error(s(137,t));break;default:et(e,t,N,M,i,j)}return;default:if(pc(t)){for(var tt in a)M=a[tt],a.hasOwnProperty(tt)&&M!==void 0&&!i.hasOwnProperty(tt)&&nd(e,t,tt,void 0,i,M);for(H in i)M=i[H],j=a[H],!i.hasOwnProperty(H)||M===j||M===void 0&&j===void 0||nd(e,t,H,M,i,j);return}}for(var C in a)M=a[C],a.hasOwnProperty(C)&&M!=null&&!i.hasOwnProperty(C)&&et(e,t,C,null,i,M);for(Y in i)M=i[Y],j=a[Y],!i.hasOwnProperty(Y)||M===j||M==null&&j==null||et(e,t,Y,M,i,j)}function v0(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function F2(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),i=0;i<a.length;i++){var u=a[i],c=u.transferSize,h=u.initiatorType,y=u.duration;if(c&&y&&v0(h)){for(h=0,y=u.responseEnd,i+=1;i<a.length;i++){var b=a[i],N=b.startTime;if(N>y)break;var H=b.transferSize,Y=b.initiatorType;H&&v0(Y)&&(b=b.responseEnd,h+=H*(b<y?1:(y-N)/(b-N)))}if(--i,t+=8*(c+h)/(u.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 rd=null,id=null;function ju(e){return e.nodeType===9?e:e.ownerDocument}function b0(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 _0(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 ld(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 sd=null;function W2(){var e=window.event;return e&&e.type==="popstate"?e===sd?!1:(sd=e,!0):(sd=null,!1)}var x0=typeof setTimeout=="function"?setTimeout:void 0,I2=typeof clearTimeout=="function"?clearTimeout:void 0,S0=typeof Promise=="function"?Promise:void 0,P2=typeof queueMicrotask=="function"?queueMicrotask:typeof S0<"u"?function(e){return S0.resolve(null).then(e).catch(ew)}:x0;function ew(e){setTimeout(function(){throw e})}function Qn(e){return e==="head"}function w0(e,t){var a=t,i=0;do{var u=a.nextSibling;if(e.removeChild(a),u&&u.nodeType===8)if(a=u.data,a==="/$"||a==="/&"){if(i===0){e.removeChild(u),ki(t);return}i--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")i++;else if(a==="html")ql(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,ql(a);for(var c=a.firstChild;c;){var h=c.nextSibling,y=c.nodeName;c[il]||y==="SCRIPT"||y==="STYLE"||y==="LINK"&&c.rel.toLowerCase()==="stylesheet"||a.removeChild(c),c=h}}else a==="body"&&ql(e.ownerDocument.body);a=u}while(a);ki(t)}function A0(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 ud(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":ud(a),dc(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function tw(e,t,a,i){for(;e.nodeType===1;){var u=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!i&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(i){if(!e[il])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!==u.rel||e.getAttribute("href")!==(u.href==null||u.href===""?null:u.href)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin)||e.getAttribute("title")!==(u.title==null?null:u.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(c=e.getAttribute("src"),(c!==(u.src==null?null:u.src)||e.getAttribute("type")!==(u.type==null?null:u.type)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin))&&c&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var c=u.name==null?null:""+u.name;if(u.type==="hidden"&&e.getAttribute("name")===c)return e}else return e;if(e=Oa(e.nextSibling),e===null)break}return null}function aw(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 T0(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 od(e){return e.data==="$?"||e.data==="$~"}function cd(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function nw(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 fd=null;function E0(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 C0(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 O0(e,t,a){switch(t=ju(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 ql(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);dc(e)}var za=new Map,z0=new Set;function Uu(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var vn=K.d;K.d={f:rw,r:iw,D:lw,C:sw,L:uw,m:ow,X:fw,S:cw,M:dw};function rw(){var e=vn.f(),t=Cu();return e||t}function iw(e){var t=Jr(e);t!==null&&t.tag===5&&t.type==="form"?Qp(t):vn.r(e)}var Ci=typeof document>"u"?null:document;function k0(e,t,a){var i=Ci;if(i&&typeof t=="string"&&t){var u=xa(t);u='link[rel="'+e+'"][href="'+u+'"]',typeof a=="string"&&(u+='[crossorigin="'+a+'"]'),z0.has(u)||(z0.add(u),e={rel:e,crossOrigin:a,href:t},i.querySelector(u)===null&&(t=i.createElement("link"),Vt(t,"link",e),zt(t),i.head.appendChild(t)))}}function lw(e){vn.D(e),k0("dns-prefetch",e,null)}function sw(e,t){vn.C(e,t),k0("preconnect",e,t)}function uw(e,t,a){vn.L(e,t,a);var i=Ci;if(i&&e&&t){var u='link[rel="preload"][as="'+xa(t)+'"]';t==="image"&&a&&a.imageSrcSet?(u+='[imagesrcset="'+xa(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(u+='[imagesizes="'+xa(a.imageSizes)+'"]')):u+='[href="'+xa(e)+'"]';var c=u;switch(t){case"style":c=Oi(e);break;case"script":c=zi(e)}za.has(c)||(e=w({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),za.set(c,e),i.querySelector(u)!==null||t==="style"&&i.querySelector(Zl(c))||t==="script"&&i.querySelector(Yl(c))||(t=i.createElement("link"),Vt(t,"link",e),zt(t),i.head.appendChild(t)))}}function ow(e,t){vn.m(e,t);var a=Ci;if(a&&e){var i=t&&typeof t.as=="string"?t.as:"script",u='link[rel="modulepreload"][as="'+xa(i)+'"][href="'+xa(e)+'"]',c=u;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=zi(e)}if(!za.has(c)&&(e=w({rel:"modulepreload",href:e},t),za.set(c,e),a.querySelector(u)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Yl(c)))return}i=a.createElement("link"),Vt(i,"link",e),zt(i),a.head.appendChild(i)}}}function cw(e,t,a){vn.S(e,t,a);var i=Ci;if(i&&e){var u=Fr(i).hoistableStyles,c=Oi(e);t=t||"default";var h=u.get(c);if(!h){var y={loading:0,preload:null};if(h=i.querySelector(Zl(c)))y.loading=5;else{e=w({rel:"stylesheet",href:e,"data-precedence":t},a),(a=za.get(c))&&dd(e,a);var b=h=i.createElement("link");zt(b),Vt(b,"link",e),b._p=new Promise(function(N,H){b.onload=N,b.onerror=H}),b.addEventListener("load",function(){y.loading|=1}),b.addEventListener("error",function(){y.loading|=2}),y.loading|=4,Bu(h,t,i)}h={type:"stylesheet",instance:h,count:1,state:y},u.set(c,h)}}}function fw(e,t){vn.X(e,t);var a=Ci;if(a&&e){var i=Fr(a).hoistableScripts,u=zi(e),c=i.get(u);c||(c=a.querySelector(Yl(u)),c||(e=w({src:e,async:!0},t),(t=za.get(u))&&hd(e,t),c=a.createElement("script"),zt(c),Vt(c,"link",e),a.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},i.set(u,c))}}function dw(e,t){vn.M(e,t);var a=Ci;if(a&&e){var i=Fr(a).hoistableScripts,u=zi(e),c=i.get(u);c||(c=a.querySelector(Yl(u)),c||(e=w({src:e,async:!0,type:"module"},t),(t=za.get(u))&&hd(e,t),c=a.createElement("script"),zt(c),Vt(c,"link",e),a.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},i.set(u,c))}}function N0(e,t,a,i){var u=(u=Ce.current)?Uu(u):null;if(!u)throw Error(s(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=Oi(a.href),a=Fr(u).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=Oi(a.href);var c=Fr(u).hoistableStyles,h=c.get(e);if(h||(u=u.ownerDocument||u,h={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,h),(c=u.querySelector(Zl(e)))&&!c._p&&(h.instance=c,h.state.loading=5),za.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},za.set(e,a),c||hw(u,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=zi(a),a=Fr(u).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 Oi(e){return'href="'+xa(e)+'"'}function Zl(e){return'link[rel="stylesheet"]['+e+"]"}function R0(e){return w({},e,{"data-precedence":e.precedence,precedence:null})}function hw(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}),Vt(t,"link",a),zt(t),e.head.appendChild(t))}function zi(e){return'[src="'+xa(e)+'"]'}function Yl(e){return"script[async]"+e}function M0(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var i=e.querySelector('style[data-href~="'+xa(a.href)+'"]');if(i)return t.instance=i,zt(i),i;var u=w({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return i=(e.ownerDocument||e).createElement("style"),zt(i),Vt(i,"style",u),Bu(i,a.precedence,e),t.instance=i;case"stylesheet":u=Oi(a.href);var c=e.querySelector(Zl(u));if(c)return t.state.loading|=4,t.instance=c,zt(c),c;i=R0(a),(u=za.get(u))&&dd(i,u),c=(e.ownerDocument||e).createElement("link"),zt(c);var h=c;return h._p=new Promise(function(y,b){h.onload=y,h.onerror=b}),Vt(c,"link",i),t.state.loading|=4,Bu(c,a.precedence,e),t.instance=c;case"script":return c=zi(a.src),(u=e.querySelector(Yl(c)))?(t.instance=u,zt(u),u):(i=a,(u=za.get(c))&&(i=w({},a),hd(i,u)),e=e.ownerDocument||e,u=e.createElement("script"),zt(u),Vt(u,"link",i),e.head.appendChild(u),t.instance=u);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,Bu(i,a.precedence,e));return t.instance}function Bu(e,t,a){for(var i=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),u=i.length?i[i.length-1]:null,c=u,h=0;h<i.length;h++){var y=i[h];if(y.dataset.precedence===t)c=y;else if(c!==u)break}c?c.parentNode.insertBefore(e,c.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function dd(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function hd(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Vu=null;function D0(e,t,a){if(Vu===null){var i=new Map,u=Vu=new Map;u.set(a,i)}else u=Vu,i=u.get(a),i||(i=new Map,u.set(a,i));if(i.has(e))return i;for(i.set(e,null),a=a.getElementsByTagName(e),u=0;u<a.length;u++){var c=a[u];if(!(c[il]||c[Dt]||e==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var h=c.getAttribute(t)||"";h=e+h;var y=i.get(h);y?y.push(c):i.set(h,[c])}}return i}function j0(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function mw(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 U0(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function yw(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 u=Oi(i.href),c=t.querySelector(Zl(u));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Lu.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=c,zt(c);return}c=t.ownerDocument||t,i=R0(i),(u=za.get(u))&&dd(i,u),c=c.createElement("link"),zt(c);var h=c;h._p=new Promise(function(y,b){h.onload=y,h.onerror=b}),Vt(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=Lu.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var md=0;function pw(e,t){return e.stylesheets&&e.count===0&&qu(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var i=setTimeout(function(){if(e.stylesheets&&qu(e,e.stylesheets),e.unsuspend){var c=e.unsuspend;e.unsuspend=null,c()}},6e4+t);0<e.imgBytes&&md===0&&(md=62500*F2());var u=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&qu(e,e.stylesheets),e.unsuspend)){var c=e.unsuspend;e.unsuspend=null,c()}},(e.imgBytes>md?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(i),clearTimeout(u)}}:null}function Lu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)qu(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Hu=null;function qu(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Hu=new Map,t.forEach(gw,e),Hu=null,Lu.call(e))}function gw(e,t){if(!(t.state.loading&4)){var a=Hu.get(e);if(a)var i=a.get(null);else{a=new Map,Hu.set(e,a);for(var u=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<u.length;c++){var h=u[c];(h.nodeName==="LINK"||h.getAttribute("media")!=="not all")&&(a.set(h.dataset.precedence,h),i=h)}i&&a.set(null,i)}u=t.instance,h=u.getAttribute("data-precedence"),c=a.get(h)||i,c===i&&a.set(null,u),a.set(h,u),this.count++,i=Lu.bind(this),u.addEventListener("load",i),u.addEventListener("error",i),c?c.parentNode.insertBefore(u,c.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(u,e.firstChild)),t.state.loading|=4}}var Gl={$$typeof:re,Provider:null,Consumer:null,_currentValue:se,_currentValue2:se,_threadCount:0};function vw(e,t,a,i,u,c,h,y,b){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=uc(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=uc(0),this.hiddenUpdates=uc(null),this.identifierPrefix=i,this.onUncaughtError=u,this.onCaughtError=c,this.onRecoverableError=h,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=b,this.incompleteTransitions=new Map}function B0(e,t,a,i,u,c,h,y,b,N,H,Y){return e=new vw(e,t,a,h,b,N,H,Y,y),t=1,c===!0&&(t|=24),c=ua(3,null,null,t),e.current=c,c.stateNode=e,t=Qc(),t.refCount++,e.pooledCache=t,t.refCount++,c.memoizedState={element:i,isDehydrated:a,cache:t},Fc(c),e}function V0(e){return e?(e=li,e):li}function L0(e,t,a,i,u,c){u=V0(u),i.context===null?i.context=u:i.pendingContext=u,i=jn(t),i.payload={element:a},c=c===void 0?null:c,c!==null&&(i.callback=c),a=Un(e,i,t),a!==null&&(ta(a,e,t),Sl(a,e,t))}function H0(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function yd(e,t){H0(e,t),(e=e.alternate)&&H0(e,t)}function q0(e){if(e.tag===13||e.tag===31){var t=mr(e,67108864);t!==null&&ta(t,e,67108864),yd(e,67108864)}}function Z0(e){if(e.tag===13||e.tag===31){var t=ha();t=oc(t);var a=mr(e,t);a!==null&&ta(a,e,t),yd(e,t)}}var Zu=!0;function bw(e,t,a,i){var u=O.T;O.T=null;var c=K.p;try{K.p=2,pd(e,t,a,i)}finally{K.p=c,O.T=u}}function _w(e,t,a,i){var u=O.T;O.T=null;var c=K.p;try{K.p=8,pd(e,t,a,i)}finally{K.p=c,O.T=u}}function pd(e,t,a,i){if(Zu){var u=gd(i);if(u===null)ad(e,t,i,Yu,a),G0(e,i);else if(Sw(u,e,t,a,i))i.stopPropagation();else if(G0(e,i),t&4&&-1<xw.indexOf(e)){for(;u!==null;){var c=Jr(u);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var h=or(c.pendingLanes);if(h!==0){var y=c;for(y.pendingLanes|=2,y.entangledLanes|=2;h;){var b=1<<31-Mt(h);y.entanglements[1]|=b,h&=~b}Xa(c),($e&6)===0&&(Tu=R()+500,Vl(0))}}break;case 31:case 13:y=mr(c,2),y!==null&&ta(y,c,2),Cu(),yd(c,2)}if(c=gd(i),c===null&&ad(e,t,i,Yu,a),c===u)break;u=c}u!==null&&i.stopPropagation()}else ad(e,t,i,null,a)}}function gd(e){return e=vc(e),vd(e)}var Yu=null;function vd(e){if(Yu=null,e=Kr(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 Yu=e,null}function Y0(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(ne()){case I:return 2;case ee:return 8;case fe:case Ae:return 32;case He:return 268435456;default:return 32}default:return 32}}var bd=!1,Xn=null,Kn=null,Jn=null,$l=new Map,Ql=new Map,Fn=[],xw="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 G0(e,t){switch(e){case"focusin":case"focusout":Xn=null;break;case"dragenter":case"dragleave":Kn=null;break;case"mouseover":case"mouseout":Jn=null;break;case"pointerover":case"pointerout":$l.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ql.delete(t.pointerId)}}function Xl(e,t,a,i,u,c){return e===null||e.nativeEvent!==c?(e={blockedOn:t,domEventName:a,eventSystemFlags:i,nativeEvent:c,targetContainers:[u]},t!==null&&(t=Jr(t),t!==null&&q0(t)),e):(e.eventSystemFlags|=i,t=e.targetContainers,u!==null&&t.indexOf(u)===-1&&t.push(u),e)}function Sw(e,t,a,i,u){switch(t){case"focusin":return Xn=Xl(Xn,e,t,a,i,u),!0;case"dragenter":return Kn=Xl(Kn,e,t,a,i,u),!0;case"mouseover":return Jn=Xl(Jn,e,t,a,i,u),!0;case"pointerover":var c=u.pointerId;return $l.set(c,Xl($l.get(c)||null,e,t,a,i,u)),!0;case"gotpointercapture":return c=u.pointerId,Ql.set(c,Xl(Ql.get(c)||null,e,t,a,i,u)),!0}return!1}function $0(e){var t=Kr(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,iy(e.priority,function(){Z0(a)});return}}else if(t===31){if(t=m(a),t!==null){e.blockedOn=t,iy(e.priority,function(){Z0(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 Gu(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=gd(e.nativeEvent);if(a===null){a=e.nativeEvent;var i=new a.constructor(a.type,a);gc=i,a.target.dispatchEvent(i),gc=null}else return t=Jr(a),t!==null&&q0(t),e.blockedOn=a,!1;t.shift()}return!0}function Q0(e,t,a){Gu(e)&&a.delete(t)}function ww(){bd=!1,Xn!==null&&Gu(Xn)&&(Xn=null),Kn!==null&&Gu(Kn)&&(Kn=null),Jn!==null&&Gu(Jn)&&(Jn=null),$l.forEach(Q0),Ql.forEach(Q0)}function $u(e,t){e.blockedOn===t&&(e.blockedOn=null,bd||(bd=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,ww)))}var Qu=null;function X0(e){Qu!==e&&(Qu=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){Qu===e&&(Qu=null);for(var t=0;t<e.length;t+=3){var a=e[t],i=e[t+1],u=e[t+2];if(typeof i!="function"){if(vd(i||a)===null)continue;break}var c=Jr(a);c!==null&&(e.splice(t,3),t-=3,gf(c,{pending:!0,data:u,method:a.method,action:i},i,u))}}))}function ki(e){function t(b){return $u(b,e)}Xn!==null&&$u(Xn,e),Kn!==null&&$u(Kn,e),Jn!==null&&$u(Jn,e),$l.forEach(t),Ql.forEach(t);for(var a=0;a<Fn.length;a++){var i=Fn[a];i.blockedOn===e&&(i.blockedOn=null)}for(;0<Fn.length&&(a=Fn[0],a.blockedOn===null);)$0(a),a.blockedOn===null&&Fn.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(i=0;i<a.length;i+=3){var u=a[i],c=a[i+1],h=u[Jt]||null;if(typeof c=="function")h||X0(a);else if(h){var y=null;if(c&&c.hasAttribute("formAction")){if(u=c,h=c[Jt]||null)y=h.formAction;else if(vd(u)!==null)continue}else y=h.action;typeof y=="function"?a[i+1]=y:(a.splice(i,3),i-=3),X0(a)}}}function K0(){function e(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(h){return u=h})},focusReset:"manual",scroll:"manual"})}function t(){u!==null&&(u(),u=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,u=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),u!==null&&(u(),u=null)}}}function _d(e){this._internalRoot=e}Xu.prototype.render=_d.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));var a=t.current,i=ha();L0(a,i,e,t,null,null)},Xu.prototype.unmount=_d.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;L0(e.current,2,null,e,null,null),Cu(),t[Xr]=null}};function Xu(e){this._internalRoot=e}Xu.prototype.unstable_scheduleHydration=function(e){if(e){var t=ry();e={blockedOn:null,target:e,priority:t};for(var a=0;a<Fn.length&&t!==0&&t<Fn[a].priority;a++);Fn.splice(a,0,e),a===0&&$0(e)}};var J0=r.version;if(J0!=="19.2.4")throw Error(s(527,J0,"19.2.4"));K.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 Aw={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:O,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ku=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ku.isDisabled&&Ku.supportsFiber)try{St=Ku.inject(Aw),Gt=Ku}catch{}}return Ri.createRoot=function(e,t){if(!o(e))throw Error(s(299));var a=!1,i="",u=ag,c=ng,h=rg;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(i=t.identifierPrefix),t.onUncaughtError!==void 0&&(u=t.onUncaughtError),t.onCaughtError!==void 0&&(c=t.onCaughtError),t.onRecoverableError!==void 0&&(h=t.onRecoverableError)),t=B0(e,1,!1,null,null,a,i,null,u,c,h,K0),e[Xr]=t.current,td(e),new _d(t)},Ri.hydrateRoot=function(e,t,a){if(!o(e))throw Error(s(299));var i=!1,u="",c=ag,h=ng,y=rg,b=null;return a!=null&&(a.unstable_strictMode===!0&&(i=!0),a.identifierPrefix!==void 0&&(u=a.identifierPrefix),a.onUncaughtError!==void 0&&(c=a.onUncaughtError),a.onCaughtError!==void 0&&(h=a.onCaughtError),a.onRecoverableError!==void 0&&(y=a.onRecoverableError),a.formState!==void 0&&(b=a.formState)),t=B0(e,1,!0,t,a??null,i,u,b,c,h,y,K0),t.context=V0(null),a=t.current,i=ha(),i=oc(i),u=jn(i),u.callback=null,Un(a,u,i),a=i,t.current.lanes=a,rl(t,a),Xa(t),e[Xr]=t.current,td(e),new Xu(t)},Ri.version="19.2.4",Ri}var Nd;function rv(){if(Nd)return Fu.exports;Nd=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(),Fu.exports=nv(),Fu.exports}var iv=rv();const Rd=n=>{let r;const l=new Set,s=(p,S)=>{const w=typeof p=="function"?p(r):p;if(!Object.is(w,r)){const D=r;r=S??(typeof w!="object"||w===null)?w:Object.assign({},r,w),l.forEach(_=>_(r,D))}},o=()=>r,m={setState:s,getState:o,getInitialState:()=>g,subscribe:p=>(l.add(p),()=>l.delete(p))},g=r=n(s,o,m);return m},ao=(n=>n?Rd(n):Rd);var Se=eo();const vt=In(Se),Md=Ja({__proto__:null,default:vt},[Se]),lv=n=>n;function no(n,r=lv){const l=vt.useSyncExternalStore(n.subscribe,vt.useCallback(()=>r(n.getState()),[n,r]),vt.useCallback(()=>r(n.getInitialState()),[n,r]));return vt.useDebugValue(l),l}const Dd=n=>{const r=ao(n),l=s=>no(r,s);return Object.assign(l,r),l},jd=(n=>n?Dd(n):Dd),sv={securityNumber:"",cardID:"",state:"isEmpty",availableDiscountSelected:{quantity:0,discount:{unit:0,total:0},totalPrice:0,grossPrice:0},targetProduct:null,campaign:"pbm_campaign",isAuthenticatedShopper:!1,customLoginUrl:"/login"},Kl=ao(n=>({...sv,setSecurityNumber:r=>n({securityNumber: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})})),uv=()=>({getState:()=>{const n=Kl.getState(),{setSecurityNumber:r,setState:l,setAvailableDiscountSelected:s,setTargetProduct:o,setUrlAcceptTerms:f,setUrlRegisterIndustry:d,setIsAuthenticatedShopper:m,setCustomLoginUrl:g,setCardID:p,...S}=n,{quantity:w,productId:D,skuId:_,discountMax:B,netPrice:E,stockBalance:Z,listPrice:P,price:F,...re}=n.targetProduct;return{...S,targetProduct:re}}});function aa(n){return no(Kl,r=>r)}function ov({originalProductPrice:n}){var o,f;const{targetProduct:r}=aa(),l=(r==null?void 0:r.listPrice)||n,s=l*(((r==null?void 0:r.discountMax)||0)/100);return U.jsxs(U.Fragment,{children:[(r==null?void 0:r.informativeMessage)&&U.jsx("span",{className:"absolute w-11/12 -top-6 bg-emerald-500 px-4 py-1 rounded-lg text-sm text-center font-medium text-white",style:{backgroundColor:"var(--pbm-primary)"},children:r==null?void 0:r.informativeMessage}),U.jsxs("header",{className:"flex items-center justify-between w-full p-0.5 rounded-xl mt-5",style:{backgroundColor:"color-mix(in srgb, var(--pbm-primary), transparent 70%)"},id:"header_pbm",children:[U.jsx("span",{className:"py-1 px-6 rounded-xl shrink-0 text-white text-xl font-bold flex items-center justify-start gap-2 relative",style:{backgroundColor:"var(--pbm-primary)"},"data-testid":"test_id_header_price",id:"header_price",children:U.jsxs("section",{className:"flex items-center gap-2 justify-center-safe",children:[U.jsx("span",{className:"line-through text-sm font-light",children:(o=Number(l))==null?void 0:o.toLocaleString("pt-BR",{currency:"BRL",currencyDisplay:"symbol",currencySign:"standard",style:"currency"})}),(f=Number(l-s))==null?void 0:f.toLocaleString("pt-BR",{currency:"BRL",currencyDisplay:"symbol",currencySign:"standard",style:"currency"})]})}),U.jsx("h1",{id:"header_title",className:"text-center w-full font-bold text-xs px-4 md:text-sm",style:{color:"var(--pbm-secondary)"},children:"Desconto de Laboratório"})]})]})}var ro={exports:{}};/*!
50
+ Copyright (c) 2018 Jed Watson.
51
+ Licensed under the MIT License (MIT), see
52
+ http://jedwatson.github.io/classnames
53
+ */var Ud;function cv(){return Ud||(Ud=1,(function(n){(function(){var r={}.hasOwnProperty;function l(){for(var f="",d=0;d<arguments.length;d++){var m=arguments[d];m&&(f=o(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=o(d,m));return d}function o(f,d){return d?f?f+" "+d:f+d:f}n.exports?(l.default=l,n.exports=l):window.classNames=l})()})(ro)),ro.exports}var fv=cv();const Qt=In(fv);function io({children:n,variant:r}){return U.jsx("main",{className:Qt({"border-3 border-(--pbm-border) 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 h-auto relative":r==="simple"}),"data-testid":"test_id_container","data-variant":r,id:"container_pbm",children:n})}function Pn(n){return U.jsx("h2",{className:Qt("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 er(n){return U.jsx("p",{className:Qt("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 dv(){const{targetProduct:n}=aa();return U.jsx("footer",{className:"w-full h-auto relative",id:"footer_pbm",children:U.jsxs("section",{className:Qt("flex items-center w-full h-auto gap-4",{"justify-center":n==null?void 0:n.industryLogo,"justify-start":!(n!=null&&n.industryLogo)}),children:[U.jsxs("section",{className:"w-4/5 h-auto",children:[U.jsx(Pn,{children:"Economize com o benefício do laboratório."}),U.jsx(er,{children:"Este produto tem preço exclusivo para clientes cadastrados no programa."})]}),(n==null?void 0:n.industryLogo)&&U.jsx("img",{src:n.industryLogo,alt:"parceiro",className:"w-1/5 min-w-20 h-auto aspect-auto rounded-xl",loading:"eager",id:"footer_industry_logo_pbm","data-testid":"footer_industry_logo_pbm"})]})})}var Ve;(function(n){n.assertEqual=o=>{};function r(o){}n.assertIs=r;function l(o){throw new Error}n.assertNever=l,n.arrayToEnum=o=>{const f={};for(const d of o)f[d]=d;return f},n.getValidEnumValues=o=>{const f=n.objectKeys(o).filter(m=>typeof o[o[m]]!="number"),d={};for(const m of f)d[m]=o[m];return n.objectValues(d)},n.objectValues=o=>n.objectKeys(o).map(function(f){return o[f]}),n.objectKeys=typeof Object.keys=="function"?o=>Object.keys(o):o=>{const f=[];for(const d in o)Object.prototype.hasOwnProperty.call(o,d)&&f.push(d);return f},n.find=(o,f)=>{for(const d of o)if(f(d))return d},n.isInteger=typeof Number.isInteger=="function"?o=>Number.isInteger(o):o=>typeof o=="number"&&Number.isFinite(o)&&Math.floor(o)===o;function s(o,f=" | "){return o.map(d=>typeof d=="string"?`'${d}'`:d).join(f)}n.joinValues=s,n.jsonStringifyReplacer=(o,f)=>typeof f=="bigint"?f.toString():f})(Ve||(Ve={}));var Bd;(function(n){n.mergeShapes=(r,l)=>({...r,...l})})(Bd||(Bd={}));const de=Ve.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),bn=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}},W=Ve.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 Fa 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:[]},o=f=>{for(const d of f.issues)if(d.code==="invalid_union")d.unionErrors.map(o);else if(d.code==="invalid_return_type")o(d.returnTypeError);else if(d.code==="invalid_arguments")o(d.argumentsError);else if(d.path.length===0)s._errors.push(l(d));else{let m=s,g=0;for(;g<d.path.length;){const p=d.path[g];g===d.path.length-1?(m[p]=m[p]||{_errors:[]},m[p]._errors.push(l(d))):m[p]=m[p]||{_errors:[]},m=m[p],g++}}};return o(this),s}static assert(r){if(!(r instanceof Fa))throw new Error(`Not a ZodError: ${r}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,Ve.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(r=l=>l.message){const l={},s=[];for(const o of this.issues)if(o.path.length>0){const f=o.path[0];l[f]=l[f]||[],l[f].push(r(o))}else s.push(r(o));return{formErrors:s,fieldErrors:l}}get formErrors(){return this.flatten()}}Fa.create=n=>new Fa(n);const lo=(n,r)=>{let l;switch(n.code){case W.invalid_type:n.received===de.undefined?l="Required":l=`Expected ${n.expected}, received ${n.received}`;break;case W.invalid_literal:l=`Invalid literal value, expected ${JSON.stringify(n.expected,Ve.jsonStringifyReplacer)}`;break;case W.unrecognized_keys:l=`Unrecognized key(s) in object: ${Ve.joinValues(n.keys,", ")}`;break;case W.invalid_union:l="Invalid input";break;case W.invalid_union_discriminator:l=`Invalid discriminator value. Expected ${Ve.joinValues(n.options)}`;break;case W.invalid_enum_value:l=`Invalid enum value. Expected ${Ve.joinValues(n.options)}, received '${n.received}'`;break;case W.invalid_arguments:l="Invalid function arguments";break;case W.invalid_return_type:l="Invalid function return type";break;case W.invalid_date:l="Invalid date";break;case W.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}"`:Ve.assertNever(n.validation):n.validation!=="regex"?l=`Invalid ${n.validation}`:l="Invalid";break;case W.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 W.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 W.custom:l="Invalid input";break;case W.invalid_intersection_types:l="Intersection results could not be merged";break;case W.not_multiple_of:l=`Number must be a multiple of ${n.multipleOf}`;break;case W.not_finite:l="Number must be finite";break;default:l=r.defaultError,Ve.assertNever(n)}return{message:l}};let hv=lo;function mv(){return hv}const yv=n=>{const{data:r,path:l,errorMaps:s,issueData:o}=n,f=[...l,...o.path||[]],d={...o,path:f};if(o.message!==void 0)return{...o,path:f,message:o.message};let m="";const g=s.filter(p=>!!p).slice().reverse();for(const p of g)m=p(d,{data:r,defaultError:m}).message;return{...o,path:f,message:m}};function ie(n,r){const l=mv(),s=yv({issueData:r,data:n.data,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,l,l===lo?void 0:lo].filter(o=>!!o)});n.common.issues.push(s)}class na{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 o of l){if(o.status==="aborted")return _e;o.status==="dirty"&&r.dirty(),s.push(o.value)}return{status:r.value,value:s}}static async mergeObjectAsync(r,l){const s=[];for(const o of l){const f=await o.key,d=await o.value;s.push({key:f,value:d})}return na.mergeObjectSync(r,s)}static mergeObjectSync(r,l){const s={};for(const o of l){const{key:f,value:d}=o;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"||o.alwaysSet)&&(s[f.value]=d.value)}return{status:r.value,value:s}}}const _e=Object.freeze({status:"aborted"}),Mi=n=>({status:"dirty",value:n}),ma=n=>({status:"valid",value:n}),Vd=n=>n.status==="aborted",Ld=n=>n.status==="dirty",Cr=n=>n.status==="valid",Jl=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 _n{constructor(r,l,s,o){this._cachedPath=[],this.parent=r,this.data=l,this._path=s,this._key=o}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 Hd=(n,r)=>{if(Cr(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 Fa(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:o}=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:o}:{errorMap:(d,m)=>{const{message:g}=n;return d.code==="invalid_enum_value"?{message:g??m.defaultError}:typeof m.data>"u"?{message:g??s??m.defaultError}:d.code!=="invalid_type"?{message:m.defaultError}:{message:g??l??m.defaultError}},description:o}}class Ue{get description(){return this._def.description}_getType(r){return bn(r.data)}_getOrReturnCtx(r,l){return l||{common:r.parent.common,data:r.data,parsedType:bn(r.data),schemaErrorMap:this._def.errorMap,path:r.path,parent:r.parent}}_processInputParams(r){return{status:new na,ctx:{common:r.parent.common,data:r.data,parsedType:bn(r.data),schemaErrorMap:this._def.errorMap,path:r.path,parent:r.parent}}}_parseSync(r){const l=this._parse(r);if(Jl(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:bn(r)},o=this._parseSync({data:r,path:s.path,parent:s});return Hd(s,o)}"~validate"(r){var s,o;const l={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:r,parsedType:bn(r)};if(!this["~standard"].async)try{const f=this._parseSync({data:r,path:[],parent:l});return Cr(f)?{value:f.value}:{issues:l.common.issues}}catch(f){(o=(s=f==null?void 0:f.message)==null?void 0:s.toLowerCase())!=null&&o.includes("encountered")&&(this["~standard"].async=!0),l.common={issues:[],async:!0}}return this._parseAsync({data:r,path:[],parent:l}).then(f=>Cr(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:bn(r)},o=this._parse({data:r,path:s.path,parent:s}),f=await(Jl(o)?o:Promise.resolve(o));return Hd(s,f)}refine(r,l){const s=o=>typeof l=="string"||typeof l>"u"?{message:l}:typeof l=="function"?l(o):l;return this._refinement((o,f)=>{const d=r(o),m=()=>f.addIssue({code:W.custom,...s(o)});return typeof Promise<"u"&&d instanceof Promise?d.then(g=>g?!0:(m(),!1)):d?!0:(m(),!1)})}refinement(r,l){return this._refinement((s,o)=>r(s)?!0:(o.addIssue(typeof l=="function"?l(s,o):l),!1))}_refinement(r){return new kr({schema:this,typeName:xe.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 Nr.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Ba.create(this)}promise(){return Pl.create(this,this._def)}or(r){return Wl.create([this,r],this._def)}and(r){return Il.create(this,r,this._def)}transform(r){return new kr({...Oe(this._def),schema:this,typeName:xe.ZodEffects,effect:{type:"transform",transform:r}})}default(r){const l=typeof r=="function"?r:()=>r;return new oo({...Oe(this._def),innerType:this,defaultValue:l,typeName:xe.ZodDefault})}brand(){return new Vv({typeName:xe.ZodBranded,type:this,...Oe(this._def)})}catch(r){const l=typeof r=="function"?r:()=>r;return new co({...Oe(this._def),innerType:this,catchValue:l,typeName:xe.ZodCatch})}describe(r){const l=this.constructor;return new l({...this._def,description:r})}pipe(r){return fo.create(this,r)}readonly(){return ho.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const pv=/^c[^\s-]{8,}$/i,gv=/^[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,_v=/^[a-z0-9_-]{21}$/i,xv=/^[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 so;const 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])$/,Ev=/^(?:(?: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])$/,Cv=/^(([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}=))?$/,kv=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,qd="((\\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])))",Nv=new RegExp(`^${qd}$`);function Zd(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 Rv(n){return new RegExp(`^${Zd(n)}$`)}function Mv(n){let r=`${qd}T${Zd(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 Dv(n,r){return!!((r==="v4"||!r)&&Tv.test(n)||(r==="v6"||!r)&&Cv.test(n))}function jv(n,r){if(!xv.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,"="),o=JSON.parse(atob(s));return!(typeof o!="object"||o===null||"typ"in o&&(o==null?void 0:o.typ)!=="JWT"||!o.alg||r&&o.alg!==r)}catch{return!1}}function Uv(n,r){return!!((r==="v4"||!r)&&Ev.test(n)||(r==="v6"||!r)&&Ov.test(n))}class xn 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:W.invalid_type,expected:de.string,received:f.parsedType}),_e}const s=new na;let o;for(const f of this._def.checks)if(f.kind==="min")r.data.length<f.value&&(o=this._getOrReturnCtx(r,o),ie(o,{code:W.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&&(o=this._getOrReturnCtx(r,o),ie(o,{code:W.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)&&(o=this._getOrReturnCtx(r,o),d?ie(o,{code:W.too_big,maximum:f.value,type:"string",inclusive:!0,exact:!0,message:f.message}):m&&ie(o,{code:W.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)||(o=this._getOrReturnCtx(r,o),ie(o,{validation:"email",code:W.invalid_string,message:f.message}),s.dirty());else if(f.kind==="emoji")so||(so=new RegExp(Av,"u")),so.test(r.data)||(o=this._getOrReturnCtx(r,o),ie(o,{validation:"emoji",code:W.invalid_string,message:f.message}),s.dirty());else if(f.kind==="uuid")bv.test(r.data)||(o=this._getOrReturnCtx(r,o),ie(o,{validation:"uuid",code:W.invalid_string,message:f.message}),s.dirty());else if(f.kind==="nanoid")_v.test(r.data)||(o=this._getOrReturnCtx(r,o),ie(o,{validation:"nanoid",code:W.invalid_string,message:f.message}),s.dirty());else if(f.kind==="cuid")pv.test(r.data)||(o=this._getOrReturnCtx(r,o),ie(o,{validation:"cuid",code:W.invalid_string,message:f.message}),s.dirty());else if(f.kind==="cuid2")gv.test(r.data)||(o=this._getOrReturnCtx(r,o),ie(o,{validation:"cuid2",code:W.invalid_string,message:f.message}),s.dirty());else if(f.kind==="ulid")vv.test(r.data)||(o=this._getOrReturnCtx(r,o),ie(o,{validation:"ulid",code:W.invalid_string,message:f.message}),s.dirty());else if(f.kind==="url")try{new URL(r.data)}catch{o=this._getOrReturnCtx(r,o),ie(o,{validation:"url",code:W.invalid_string,message:f.message}),s.dirty()}else f.kind==="regex"?(f.regex.lastIndex=0,f.regex.test(r.data)||(o=this._getOrReturnCtx(r,o),ie(o,{validation:"regex",code:W.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)||(o=this._getOrReturnCtx(r,o),ie(o,{code:W.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)||(o=this._getOrReturnCtx(r,o),ie(o,{code:W.invalid_string,validation:{startsWith:f.value},message:f.message}),s.dirty()):f.kind==="endsWith"?r.data.endsWith(f.value)||(o=this._getOrReturnCtx(r,o),ie(o,{code:W.invalid_string,validation:{endsWith:f.value},message:f.message}),s.dirty()):f.kind==="datetime"?Mv(f).test(r.data)||(o=this._getOrReturnCtx(r,o),ie(o,{code:W.invalid_string,validation:"datetime",message:f.message}),s.dirty()):f.kind==="date"?Nv.test(r.data)||(o=this._getOrReturnCtx(r,o),ie(o,{code:W.invalid_string,validation:"date",message:f.message}),s.dirty()):f.kind==="time"?Rv(f).test(r.data)||(o=this._getOrReturnCtx(r,o),ie(o,{code:W.invalid_string,validation:"time",message:f.message}),s.dirty()):f.kind==="duration"?Sv.test(r.data)||(o=this._getOrReturnCtx(r,o),ie(o,{validation:"duration",code:W.invalid_string,message:f.message}),s.dirty()):f.kind==="ip"?Dv(r.data,f.version)||(o=this._getOrReturnCtx(r,o),ie(o,{validation:"ip",code:W.invalid_string,message:f.message}),s.dirty()):f.kind==="jwt"?jv(r.data,f.alg)||(o=this._getOrReturnCtx(r,o),ie(o,{validation:"jwt",code:W.invalid_string,message:f.message}),s.dirty()):f.kind==="cidr"?Uv(r.data,f.version)||(o=this._getOrReturnCtx(r,o),ie(o,{validation:"cidr",code:W.invalid_string,message:f.message}),s.dirty()):f.kind==="base64"?zv.test(r.data)||(o=this._getOrReturnCtx(r,o),ie(o,{validation:"base64",code:W.invalid_string,message:f.message}),s.dirty()):f.kind==="base64url"?kv.test(r.data)||(o=this._getOrReturnCtx(r,o),ie(o,{validation:"base64url",code:W.invalid_string,message:f.message}),s.dirty()):Ve.assertNever(f);return{status:s.value,value:r.data}}_regex(r,l,s){return this.refinement(o=>r.test(o),{validation:l,code:W.invalid_string,...me.errToObj(s)})}_addCheck(r){return new xn({...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 xn({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new xn({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new xn({...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}}xn.create=n=>new xn({checks:[],typeName:xe.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,o=l>s?l:s,f=Number.parseInt(n.toFixed(o).replace(".","")),d=Number.parseInt(r.toFixed(o).replace(".",""));return f%d/10**o}class Di 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:W.invalid_type,expected:de.number,received:f.parsedType}),_e}let s;const o=new na;for(const f of this._def.checks)f.kind==="int"?Ve.isInteger(r.data)||(s=this._getOrReturnCtx(r,s),ie(s,{code:W.invalid_type,expected:"integer",received:"float",message:f.message}),o.dirty()):f.kind==="min"?(f.inclusive?r.data<f.value:r.data<=f.value)&&(s=this._getOrReturnCtx(r,s),ie(s,{code:W.too_small,minimum:f.value,type:"number",inclusive:f.inclusive,exact:!1,message:f.message}),o.dirty()):f.kind==="max"?(f.inclusive?r.data>f.value:r.data>=f.value)&&(s=this._getOrReturnCtx(r,s),ie(s,{code:W.too_big,maximum:f.value,type:"number",inclusive:f.inclusive,exact:!1,message:f.message}),o.dirty()):f.kind==="multipleOf"?Bv(r.data,f.value)!==0&&(s=this._getOrReturnCtx(r,s),ie(s,{code:W.not_multiple_of,multipleOf:f.value,message:f.message}),o.dirty()):f.kind==="finite"?Number.isFinite(r.data)||(s=this._getOrReturnCtx(r,s),ie(s,{code:W.not_finite,message:f.message}),o.dirty()):Ve.assertNever(f);return{status:o.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,o){return new Di({...this._def,checks:[...this._def.checks,{kind:r,value:l,inclusive:s,message:me.toString(o)}]})}_addCheck(r){return new Di({...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"&&Ve.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)}}Di.create=n=>new Di({checks:[],typeName:xe.ZodNumber,coerce:(n==null?void 0:n.coerce)||!1,...Oe(n)});class ji 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 o=new na;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:W.too_small,type:"bigint",minimum:f.value,inclusive:f.inclusive,message:f.message}),o.dirty()):f.kind==="max"?(f.inclusive?r.data>f.value:r.data>=f.value)&&(s=this._getOrReturnCtx(r,s),ie(s,{code:W.too_big,type:"bigint",maximum:f.value,inclusive:f.inclusive,message:f.message}),o.dirty()):f.kind==="multipleOf"?r.data%f.value!==BigInt(0)&&(s=this._getOrReturnCtx(r,s),ie(s,{code:W.not_multiple_of,multipleOf:f.value,message:f.message}),o.dirty()):Ve.assertNever(f);return{status:o.value,value:r.data}}_getInvalidInput(r){const l=this._getOrReturnCtx(r);return ie(l,{code:W.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,o){return new ji({...this._def,checks:[...this._def.checks,{kind:r,value:l,inclusive:s,message:me.toString(o)}]})}_addCheck(r){return new ji({...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}}ji.create=n=>new ji({checks:[],typeName:xe.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:W.invalid_type,expected:de.boolean,received:s.parsedType}),_e}return ma(r.data)}}Yd.create=n=>new Yd({typeName:xe.ZodBoolean,coerce:(n==null?void 0:n.coerce)||!1,...Oe(n)});class Fl 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:W.invalid_type,expected:de.date,received:f.parsedType}),_e}if(Number.isNaN(r.data.getTime())){const f=this._getOrReturnCtx(r);return ie(f,{code:W.invalid_date}),_e}const s=new na;let o;for(const f of this._def.checks)f.kind==="min"?r.data.getTime()<f.value&&(o=this._getOrReturnCtx(r,o),ie(o,{code:W.too_small,message:f.message,inclusive:!0,exact:!1,minimum:f.value,type:"date"}),s.dirty()):f.kind==="max"?r.data.getTime()>f.value&&(o=this._getOrReturnCtx(r,o),ie(o,{code:W.too_big,message:f.message,inclusive:!0,exact:!1,maximum:f.value,type:"date"}),s.dirty()):Ve.assertNever(f);return{status:s.value,value:new Date(r.data.getTime())}}_addCheck(r){return new Fl({...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}}Fl.create=n=>new Fl({checks:[],coerce:(n==null?void 0:n.coerce)||!1,typeName:xe.ZodDate,...Oe(n)});class Gd extends Ue{_parse(r){if(this._getType(r)!==de.symbol){const s=this._getOrReturnCtx(r);return ie(s,{code:W.invalid_type,expected:de.symbol,received:s.parsedType}),_e}return ma(r.data)}}Gd.create=n=>new Gd({typeName:xe.ZodSymbol,...Oe(n)});class $d extends Ue{_parse(r){if(this._getType(r)!==de.undefined){const s=this._getOrReturnCtx(r);return ie(s,{code:W.invalid_type,expected:de.undefined,received:s.parsedType}),_e}return ma(r.data)}}$d.create=n=>new $d({typeName:xe.ZodUndefined,...Oe(n)});class Qd extends Ue{_parse(r){if(this._getType(r)!==de.null){const s=this._getOrReturnCtx(r);return ie(s,{code:W.invalid_type,expected:de.null,received:s.parsedType}),_e}return ma(r.data)}}Qd.create=n=>new Qd({typeName:xe.ZodNull,...Oe(n)});class Xd extends Ue{constructor(){super(...arguments),this._any=!0}_parse(r){return ma(r.data)}}Xd.create=n=>new Xd({typeName:xe.ZodAny,...Oe(n)});class Kd extends Ue{constructor(){super(...arguments),this._unknown=!0}_parse(r){return ma(r.data)}}Kd.create=n=>new Kd({typeName:xe.ZodUnknown,...Oe(n)});class Sn extends Ue{_parse(r){const l=this._getOrReturnCtx(r);return ie(l,{code:W.invalid_type,expected:de.never,received:l.parsedType}),_e}}Sn.create=n=>new Sn({typeName:xe.ZodNever,...Oe(n)});class Jd extends Ue{_parse(r){if(this._getType(r)!==de.undefined){const s=this._getOrReturnCtx(r);return ie(s,{code:W.invalid_type,expected:de.void,received:s.parsedType}),_e}return ma(r.data)}}Jd.create=n=>new Jd({typeName:xe.ZodVoid,...Oe(n)});class Ba extends Ue{_parse(r){const{ctx:l,status:s}=this._processInputParams(r),o=this._def;if(l.parsedType!==de.array)return ie(l,{code:W.invalid_type,expected:de.array,received:l.parsedType}),_e;if(o.exactLength!==null){const d=l.data.length>o.exactLength.value,m=l.data.length<o.exactLength.value;(d||m)&&(ie(l,{code:d?W.too_big:W.too_small,minimum:m?o.exactLength.value:void 0,maximum:d?o.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:o.exactLength.message}),s.dirty())}if(o.minLength!==null&&l.data.length<o.minLength.value&&(ie(l,{code:W.too_small,minimum:o.minLength.value,type:"array",inclusive:!0,exact:!1,message:o.minLength.message}),s.dirty()),o.maxLength!==null&&l.data.length>o.maxLength.value&&(ie(l,{code:W.too_big,maximum:o.maxLength.value,type:"array",inclusive:!0,exact:!1,message:o.maxLength.message}),s.dirty()),l.common.async)return Promise.all([...l.data].map((d,m)=>o.type._parseAsync(new _n(l,d,l.path,m)))).then(d=>na.mergeArray(s,d));const f=[...l.data].map((d,m)=>o.type._parseSync(new _n(l,d,l.path,m)));return na.mergeArray(s,f)}get element(){return this._def.type}min(r,l){return new Ba({...this._def,minLength:{value:r,message:me.toString(l)}})}max(r,l){return new Ba({...this._def,maxLength:{value:r,message:me.toString(l)}})}length(r,l){return new Ba({...this._def,exactLength:{value:r,message:me.toString(l)}})}nonempty(r){return this.min(1,r)}}Ba.create=(n,r)=>new Ba({type:n,minLength:null,maxLength:null,exactLength:null,typeName:xe.ZodArray,...Oe(r)});function Or(n){if(n instanceof bt){const r={};for(const l in n.shape){const s=n.shape[l];r[l]=wn.create(Or(s))}return new bt({...n._def,shape:()=>r})}else return n instanceof Ba?new Ba({...n._def,type:Or(n.element)}):n instanceof wn?wn.create(Or(n.unwrap())):n instanceof Nr?Nr.create(Or(n.unwrap())):n instanceof tr?tr.create(n.items.map(r=>Or(r))):n}class bt 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=Ve.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:W.invalid_type,expected:de.object,received:p.parsedType}),_e}const{status:s,ctx:o}=this._processInputParams(r),{shape:f,keys:d}=this._getCached(),m=[];if(!(this._def.catchall instanceof Sn&&this._def.unknownKeys==="strip"))for(const p in o.data)d.includes(p)||m.push(p);const g=[];for(const p of d){const S=f[p],w=o.data[p];g.push({key:{status:"valid",value:p},value:S._parse(new _n(o,w,o.path,p)),alwaysSet:p in o.data})}if(this._def.catchall instanceof Sn){const p=this._def.unknownKeys;if(p==="passthrough")for(const S of m)g.push({key:{status:"valid",value:S},value:{status:"valid",value:o.data[S]}});else if(p==="strict")m.length>0&&(ie(o,{code:W.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 S of m){const w=o.data[S];g.push({key:{status:"valid",value:S},value:p._parse(new _n(o,w,o.path,S)),alwaysSet:S in o.data})}}return o.common.async?Promise.resolve().then(async()=>{const p=[];for(const S of g){const w=await S.key,D=await S.value;p.push({key:w,value:D,alwaysSet:S.alwaysSet})}return p}).then(p=>na.mergeObjectSync(s,p)):na.mergeObjectSync(s,g)}get shape(){return this._def.shape()}strict(r){return me.errToObj,new bt({...this._def,unknownKeys:"strict",...r!==void 0?{errorMap:(l,s)=>{var f,d;const o=((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??o}:{message:o}}}:{}})}strip(){return new bt({...this._def,unknownKeys:"strip"})}passthrough(){return new bt({...this._def,unknownKeys:"passthrough"})}extend(r){return new bt({...this._def,shape:()=>({...this._def.shape(),...r})})}merge(r){return new bt({unknownKeys:r._def.unknownKeys,catchall:r._def.catchall,shape:()=>({...this._def.shape(),...r._def.shape()}),typeName:xe.ZodObject})}setKey(r,l){return this.augment({[r]:l})}catchall(r){return new bt({...this._def,catchall:r})}pick(r){const l={};for(const s of Ve.objectKeys(r))r[s]&&this.shape[s]&&(l[s]=this.shape[s]);return new bt({...this._def,shape:()=>l})}omit(r){const l={};for(const s of Ve.objectKeys(this.shape))r[s]||(l[s]=this.shape[s]);return new bt({...this._def,shape:()=>l})}deepPartial(){return Or(this)}partial(r){const l={};for(const s of Ve.objectKeys(this.shape)){const o=this.shape[s];r&&!r[s]?l[s]=o:l[s]=o.optional()}return new bt({...this._def,shape:()=>l})}required(r){const l={};for(const s of Ve.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 bt({...this._def,shape:()=>l})}keyof(){return Pd(Ve.objectKeys(this.shape))}}bt.create=(n,r)=>new bt({shape:()=>n,unknownKeys:"strip",catchall:Sn.create(),typeName:xe.ZodObject,...Oe(r)}),bt.strictCreate=(n,r)=>new bt({shape:()=>n,unknownKeys:"strict",catchall:Sn.create(),typeName:xe.ZodObject,...Oe(r)}),bt.lazycreate=(n,r)=>new bt({shape:n,unknownKeys:"strip",catchall:Sn.create(),typeName:xe.ZodObject,...Oe(r)});class Wl extends Ue{_parse(r){const{ctx:l}=this._processInputParams(r),s=this._def.options;function o(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 Fa(m.ctx.common.issues));return ie(l,{code:W.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(o);{let f;const d=[];for(const g of s){const p={...l,common:{...l.common,issues:[]},parent:null},S=g._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 m=d.map(g=>new Fa(g));return ie(l,{code:W.invalid_union,unionErrors:m}),_e}}get options(){return this._def.options}}Wl.create=(n,r)=>new Wl({options:n,typeName:xe.ZodUnion,...Oe(r)});function uo(n,r){const l=bn(n),s=bn(r);if(n===r)return{valid:!0,data:n};if(l===de.object&&s===de.object){const o=Ve.objectKeys(r),f=Ve.objectKeys(n).filter(m=>o.indexOf(m)!==-1),d={...n,...r};for(const m of f){const g=uo(n[m],r[m]);if(!g.valid)return{valid:!1};d[m]=g.data}return{valid:!0,data:d}}else if(l===de.array&&s===de.array){if(n.length!==r.length)return{valid:!1};const o=[];for(let f=0;f<n.length;f++){const d=n[f],m=r[f],g=uo(d,m);if(!g.valid)return{valid:!1};o.push(g.data)}return{valid:!0,data:o}}else return l===de.date&&s===de.date&&+n==+r?{valid:!0,data:n}:{valid:!1}}class Il extends Ue{_parse(r){const{status:l,ctx:s}=this._processInputParams(r),o=(f,d)=>{if(Vd(f)||Vd(d))return _e;const m=uo(f.value,d.value);return m.valid?((Ld(f)||Ld(d))&&l.dirty(),{status:l.value,value:m.data}):(ie(s,{code:W.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])=>o(f,d)):o(this._def.left._parseSync({data:s.data,path:s.path,parent:s}),this._def.right._parseSync({data:s.data,path:s.path,parent:s}))}}Il.create=(n,r,l)=>new Il({left:n,right:r,typeName:xe.ZodIntersection,...Oe(l)});class tr extends Ue{_parse(r){const{status:l,ctx:s}=this._processInputParams(r);if(s.parsedType!==de.array)return ie(s,{code:W.invalid_type,expected:de.array,received:s.parsedType}),_e;if(s.data.length<this._def.items.length)return ie(s,{code:W.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:W.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),l.dirty());const f=[...s.data].map((d,m)=>{const g=this._def.items[m]||this._def.rest;return g?g._parse(new _n(s,d,s.path,m)):null}).filter(d=>!!d);return s.common.async?Promise.all(f).then(d=>na.mergeArray(l,d)):na.mergeArray(l,f)}get items(){return this._def.items}rest(r){return new tr({...this._def,rest:r})}}tr.create=(n,r)=>{if(!Array.isArray(n))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new tr({items:n,typeName:xe.ZodTuple,rest:null,...Oe(r)})};class Fd 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:W.invalid_type,expected:de.map,received:s.parsedType}),_e;const o=this._def.keyType,f=this._def.valueType,d=[...s.data.entries()].map(([m,g],p)=>({key:o._parse(new _n(s,m,s.path,[p,"key"])),value:f._parse(new _n(s,g,s.path,[p,"value"]))}));if(s.common.async){const m=new Map;return Promise.resolve().then(async()=>{for(const g of d){const p=await g.key,S=await g.value;if(p.status==="aborted"||S.status==="aborted")return _e;(p.status==="dirty"||S.status==="dirty")&&l.dirty(),m.set(p.value,S.value)}return{status:l.value,value:m}})}else{const m=new Map;for(const g of d){const p=g.key,S=g.value;if(p.status==="aborted"||S.status==="aborted")return _e;(p.status==="dirty"||S.status==="dirty")&&l.dirty(),m.set(p.value,S.value)}return{status:l.value,value:m}}}}Fd.create=(n,r,l)=>new Fd({valueType:r,keyType:n,typeName:xe.ZodMap,...Oe(l)});class Ui extends Ue{_parse(r){const{status:l,ctx:s}=this._processInputParams(r);if(s.parsedType!==de.set)return ie(s,{code:W.invalid_type,expected:de.set,received:s.parsedType}),_e;const o=this._def;o.minSize!==null&&s.data.size<o.minSize.value&&(ie(s,{code:W.too_small,minimum:o.minSize.value,type:"set",inclusive:!0,exact:!1,message:o.minSize.message}),l.dirty()),o.maxSize!==null&&s.data.size>o.maxSize.value&&(ie(s,{code:W.too_big,maximum:o.maxSize.value,type:"set",inclusive:!0,exact:!1,message:o.maxSize.message}),l.dirty());const f=this._def.valueType;function d(g){const p=new Set;for(const S of g){if(S.status==="aborted")return _e;S.status==="dirty"&&l.dirty(),p.add(S.value)}return{status:l.value,value:p}}const m=[...s.data.values()].map((g,p)=>f._parse(new _n(s,g,s.path,p)));return s.common.async?Promise.all(m).then(g=>d(g)):d(m)}min(r,l){return new Ui({...this._def,minSize:{value:r,message:me.toString(l)}})}max(r,l){return new Ui({...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)}}Ui.create=(n,r)=>new Ui({valueType:n,minSize:null,maxSize:null,typeName:xe.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:xe.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:W.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:xe.ZodLiteral,...Oe(r)});function Pd(n,r){return new zr({values:n,typeName:xe.ZodEnum,...Oe(r)})}class zr extends Ue{_parse(r){if(typeof r.data!="string"){const l=this._getOrReturnCtx(r),s=this._def.values;return ie(l,{expected:Ve.joinValues(s),received:l.parsedType,code:W.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:W.invalid_enum_value,options:s}),_e}return ma(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 zr.create(r,{...this._def,...l})}exclude(r,l=this._def){return zr.create(this.options.filter(s=>!r.includes(s)),{...this._def,...l})}}zr.create=Pd;class eh extends Ue{_parse(r){const l=Ve.getValidEnumValues(this._def.values),s=this._getOrReturnCtx(r);if(s.parsedType!==de.string&&s.parsedType!==de.number){const o=Ve.objectValues(l);return ie(s,{expected:Ve.joinValues(o),received:s.parsedType,code:W.invalid_type}),_e}if(this._cache||(this._cache=new Set(Ve.getValidEnumValues(this._def.values))),!this._cache.has(r.data)){const o=Ve.objectValues(l);return ie(s,{received:s.data,code:W.invalid_enum_value,options:o}),_e}return ma(r.data)}get enum(){return this._def.values}}eh.create=(n,r)=>new eh({values:n,typeName:xe.ZodNativeEnum,...Oe(r)});class Pl 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:W.invalid_type,expected:de.promise,received:l.parsedType}),_e;const s=l.parsedType===de.promise?l.data:Promise.resolve(l.data);return ma(s.then(o=>this._def.type.parseAsync(o,{path:l.path,errorMap:l.common.contextualErrorMap})))}}Pl.create=(n,r)=>new Pl({type:n,typeName:xe.ZodPromise,...Oe(r)});class kr extends Ue{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===xe.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(r){const{status:l,ctx:s}=this._processInputParams(r),o=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),o.type==="preprocess"){const d=o.transform(s.data,f);if(s.common.async)return Promise.resolve(d).then(async m=>{if(l.value==="aborted")return _e;const g=await this._def.schema._parseAsync({data:m,path:s.path,parent:s});return g.status==="aborted"?_e:g.status==="dirty"||l.value==="dirty"?Mi(g.value):g});{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"?Mi(m.value):m}}if(o.type==="refinement"){const d=m=>{const g=o.refinement(m,f);if(s.common.async)return Promise.resolve(g);if(g 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(o.type==="transform")if(s.common.async===!1){const d=this._def.schema._parseSync({data:s.data,path:s.path,parent:s});if(!Cr(d))return _e;const m=o.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=>Cr(d)?Promise.resolve(o.transform(d.value,f)).then(m=>({status:l.value,value:m})):_e);Ve.assertNever(o)}}kr.create=(n,r,l)=>new kr({schema:n,typeName:xe.ZodEffects,effect:r,...Oe(l)}),kr.createWithPreprocess=(n,r,l)=>new kr({schema:r,effect:{type:"preprocess",transform:n},typeName:xe.ZodEffects,...Oe(l)});class wn extends Ue{_parse(r){return this._getType(r)===de.undefined?ma(void 0):this._def.innerType._parse(r)}unwrap(){return this._def.innerType}}wn.create=(n,r)=>new wn({innerType:n,typeName:xe.ZodOptional,...Oe(r)});class Nr extends Ue{_parse(r){return this._getType(r)===de.null?ma(null):this._def.innerType._parse(r)}unwrap(){return this._def.innerType}}Nr.create=(n,r)=>new Nr({innerType:n,typeName:xe.ZodNullable,...Oe(r)});class oo 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}}oo.create=(n,r)=>new oo({innerType:n,typeName:xe.ZodDefault,defaultValue:typeof r.default=="function"?r.default:()=>r.default,...Oe(r)});class co extends Ue{_parse(r){const{ctx:l}=this._processInputParams(r),s={...l,common:{...l.common,issues:[]}},o=this._def.innerType._parse({data:s.data,path:s.path,parent:{...s}});return Jl(o)?o.then(f=>({status:"valid",value:f.status==="valid"?f.value:this._def.catchValue({get error(){return new Fa(s.common.issues)},input:s.data})})):{status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new Fa(s.common.issues)},input:s.data})}}removeCatch(){return this._def.innerType}}co.create=(n,r)=>new co({innerType:n,typeName:xe.ZodCatch,catchValue:typeof r.catch=="function"?r.catch:()=>r.catch,...Oe(r)});class th extends Ue{_parse(r){if(this._getType(r)!==de.nan){const s=this._getOrReturnCtx(r);return ie(s,{code:W.invalid_type,expected:de.nan,received:s.parsedType}),_e}return{status:"valid",value:r.data}}}th.create=n=>new th({typeName:xe.ZodNaN,...Oe(n)});class Vv 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 fo 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(),Mi(f.value)):this._def.out._parseAsync({data:f.value,path:s.path,parent:s})})();{const o=this._def.in._parseSync({data:s.data,path:s.path,parent:s});return o.status==="aborted"?_e:o.status==="dirty"?(l.dirty(),{status:"dirty",value:o.value}):this._def.out._parseSync({data:o.value,path:s.path,parent:s})}}static create(r,l){return new fo({in:r,out:l,typeName:xe.ZodPipeline})}}class ho extends Ue{_parse(r){const l=this._def.innerType._parse(r),s=o=>(Cr(o)&&(o.value=Object.freeze(o.value)),o);return Jl(l)?l.then(o=>s(o)):s(l)}unwrap(){return this._def.innerType}}ho.create=(n,r)=>new ho({innerType:n,typeName:xe.ZodReadonly,...Oe(r)});var xe;(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"})(xe||(xe={}));const ah=xn.create;Sn.create,Ba.create;const Lv=bt.create;Wl.create,Il.create,tr.create,zr.create,Pl.create,wn.create,Nr.create;const Hv=Lv({securityNumber:ah({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:ah({required_error:"Cupom / ID do Cartão obrigatório."}).optional()}),qv=n=>{const r=n.replace(/\D/g,"");if(r.length<=11)return r.replace(/(\d{3})(\d)/,"$1.$2").replace(/(\d{3})(\d)/,"$1.$2").replace(/(\d{3})(\d{1,2})/,"$1-$2").replace(/(-\d{2})\d+?$/,"$1")},Zv=n=>({acceptance:"isInvalid","industry registration":"isRegistered",active:"isActivated"})[n];/*! js-cookie v3.0.5 | MIT */function es(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 Yv={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 mo(n,r){function l(o,f,d){if(!(typeof document>"u")){d=es({},r,d),typeof d.expires=="number"&&(d.expires=new Date(Date.now()+d.expires*864e5)),d.expires&&(d.expires=d.expires.toUTCString()),o=encodeURIComponent(o).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var m="";for(var g in d)d[g]&&(m+="; "+g,d[g]!==!0&&(m+="="+d[g].split(";")[0]));return document.cookie=o+"="+n.write(f,o)+m}}function s(o){if(!(typeof document>"u"||arguments.length&&!o)){for(var f=document.cookie?document.cookie.split("; "):[],d={},m=0;m<f.length;m++){var g=f[m].split("="),p=g.slice(1).join("=");try{var S=decodeURIComponent(g[0]);if(d[S]=n.read(p,S),o===S)break}catch{}}return o?d[o]:d}}return Object.create({set:l,get:s,remove:function(o,f){l(o,"",es({},f,{expires:-1}))},withAttributes:function(o){return mo(this.converter,es({},this.attributes,o))},withConverter:function(o){return mo(es({},this.converter,o),this.attributes)}},{attributes:{value:Object.freeze(r)},converter:{value:Object.freeze(n)}})}var Bi=mo(Yv,{path:"/"});const yo={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1,VITE_API_URL:"https://pbm.santoremedio.alinhaops.com.br/api/v1",VITE_KEYCLOAK_ACCESSTOKEN:"ODAxQzc4RDA3ODZCMkFCNzYyNDQzRkY4RDFENDY2OEVEMzA3ODc4QzgwRjkxRERGREY2NUJFNUVEMjM1OTU2NzpzYW50b3JlbWVkaW8=",VITE_KEYCLOAK_BASEURL:"https://keycloak.alinhaops.com.br",VITE_KEYCLOAK_CLIENTID_SANTOREMEDIO:"801C78D0786B2AB762443FF8D1D4668ED307878C80F91DDFDF65BE5ED2359567",VITE_KEYCLOAK_GRANT_TYPE:"client_credentials",VITE_KEYCLOAK_REALM_SANTOREMEDIO:"santoremedio",VITE_KEYCLOAK_SCOPE:"openid",VITE_KEYCLOAK_SECRET_SANTOREMEDIO:"TZYhz3tSOD0eebgStvvtmFcujmQvyscA"},ka=n=>{var r;if(typeof{url:Ka&&Ka.tagName.toUpperCase()==="SCRIPT"&&Ka.src||new URL("vanilla.js",document.baseURI).href}<"u")return yo==null?void 0:yo[n];if(typeof process<"u")return(r=process.env)==null?void 0:r[n]},nh=async({document:n,products:r})=>{const l=ka("VITE_API_URL");if(!l)throw new Error("API URL is not defined in environment variables");const s=Bi.get("pbm-token");if(!s)throw new Error("Token is not defined in cookies or is expired");const f=await(await fetch(`${l}/products/benefitByDocument`,{method:"POST",headers:{Authorization:`Bearer ${s}`,"Content-Type":"application/json"},body:JSON.stringify({consumer:{document:n},products:r})})).json();if(!f.success)throw new Error(f.message||"Failed to fetch document validation");return f};function ya(n){return U.jsx("button",{...n,className:Qt("w-3xs cursor-pointer h-10 rounded-lg text-white text-sm font-semibold transition-colors",n.className),style:{...n.style},children:n.children})}var Vi=n=>n.type==="checkbox",ar=n=>n instanceof Date,Xt=n=>n==null;const rh=n=>typeof n=="object";var mt=n=>!Xt(n)&&!Array.isArray(n)&&rh(n)&&!ar(n),Gv=n=>mt(n)&&n.target?Vi(n.target)?n.target.checked:n.target.value:n,ih=n=>n.substring(0,n.search(/\.\d+(\.|$)/))||n,$v=(n,r)=>n.has(ih(r)),Qv=n=>{const r=n.constructor&&n.constructor.prototype;return mt(r)&&r.hasOwnProperty("isPrototypeOf")},po=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Ct(n){if(n instanceof Date)return new Date(n);const r=typeof FileList<"u"&&n instanceof FileList;if(po&&(n instanceof Blob||r))return n;const l=Array.isArray(n);if(!l&&!(mt(n)&&Qv(n)))return n;const s=l?[]:Object.create(Object.getPrototypeOf(n));for(const o in n)Object.prototype.hasOwnProperty.call(n,o)&&(s[o]=Ct(n[o]));return s}var ts=n=>/^\w*$/.test(n),ot=n=>n===void 0,go=n=>Array.isArray(n)?n.filter(Boolean):[],vo=n=>go(n.replace(/["|']|\]/g,"").split(/\.|\[/)),ue=(n,r,l)=>{if(!r||!mt(n))return l;const s=(ts(r)?[r]:vo(r)).reduce((o,f)=>Xt(o)?o:o[f],n);return ot(s)||s===n?ot(n[r])?l:n[r]:s},Va=n=>typeof n=="boolean",Na=n=>typeof n=="function",We=(n,r,l)=>{let s=-1;const o=ts(r)?[r]:vo(r),f=o.length,d=f-1;for(;++s<f;){const m=o[s];let g=l;if(s!==d){const p=n[m];g=mt(p)||Array.isArray(p)?p:isNaN(+o[s+1])?{}:[]}if(m==="__proto__"||m==="constructor"||m==="prototype")return;n[m]=g,n=n[m]}};const Rr={BLUR:"blur",FOCUS_OUT:"focusout",SUBMIT:"submit",TRIGGER:"trigger",VALID:"valid"},Ra={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Ma={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},bo="form",lh="root",Xv=vt.createContext(null);Xv.displayName="HookFormControlContext";var Kv=(n,r,l,s=!0)=>{const o={defaultValues:r._defaultValues};for(const f in n)Object.defineProperty(o,f,{get:()=>{const d=f;return r._proxyFormState[d]!==Ra.all&&(r._proxyFormState[d]=!s||Ra.all),n[d]}});return o};const Jv=typeof window<"u"?vt.useLayoutEffect:vt.useEffect;var qt=n=>typeof n=="string",Fv=(n,r,l,s,o)=>qt(n)?(s&&r.watch.add(n),ue(l,n,o)):Array.isArray(n)?n.map(f=>(s&&r.watch.add(f),ue(l,f))):(s&&(r.watchAll=!0),l),_o=n=>Xt(n)||!rh(n);function An(n,r,l=new WeakSet){if(_o(n)||_o(r))return Object.is(n,r);if(ar(n)&&ar(r))return Object.is(n.getTime(),r.getTime());const s=Object.keys(n),o=Object.keys(r);if(s.length!==o.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(!o.includes(f))return!1;if(f!=="ref"){const m=r[f];if(ar(d)&&ar(m)||mt(d)&&mt(m)||Array.isArray(d)&&Array.isArray(m)?!An(d,m,l):!Object.is(d,m))return!1}}return!0}const Wv=vt.createContext(null);Wv.displayName="HookFormContext";var xo=(n,r,l,s,o)=>r?{...l[n],types:{...l[n]&&l[n].types?l[n].types:{},[s]:o||!0}}:{},Li=n=>Array.isArray(n)?n:[n],sh=()=>{let n=[];return{get observers(){return n},next:o=>{for(const f of n)f.next&&f.next(o)},subscribe:o=>(n.push(o),{unsubscribe:()=>{n=n.filter(f=>f!==o)}}),unsubscribe:()=>{n=[]}}};function uh(n,r){const l={};for(const s in n)if(n.hasOwnProperty(s)){const o=n[s],f=r[s];if(o&&mt(o)&&f){const d=uh(o,f);mt(d)&&(l[s]=d)}else n[s]&&(l[s]=f)}return l}var Zt=n=>mt(n)&&!Object.keys(n).length,So=n=>n.type==="file",as=n=>{if(!po)return!1;const r=n?n.ownerDocument:0;return n instanceof(r&&r.defaultView?r.defaultView.HTMLElement:HTMLElement)},oh=n=>n.type==="select-multiple",wo=n=>n.type==="radio",Iv=n=>wo(n)||Vi(n),Ao=n=>as(n)&&n.isConnected;function Pv(n,r){const l=r.slice(0,-1).length;let s=0;for(;s<l;)n=ot(n)?s++:n[r[s++]];return n}function eb(n){for(const r in n)if(n.hasOwnProperty(r)&&!ot(n[r]))return!1;return!0}function _t(n,r){const l=Array.isArray(r)?r:ts(r)?[r]:vo(r),s=l.length===1?n:Pv(n,l),o=l.length-1,f=l[o];return s&&delete s[f],o!==0&&(mt(s)&&Zt(s)||Array.isArray(s)&&eb(s))&&_t(n,l.slice(0,-1)),n}var tb=n=>{for(const r in n)if(Na(n[r]))return!0;return!1};function ch(n){return Array.isArray(n)||mt(n)&&!tb(n)}function To(n,r={}){for(const l in n){const s=n[l];ch(s)?(r[l]=Array.isArray(s)?[]:{},To(s,r[l])):ot(s)||(r[l]=!0)}return r}function Mr(n,r,l){l||(l=To(r));for(const s in n){const o=n[s];if(ch(o))ot(r)||_o(l[s])?l[s]=To(o,Array.isArray(o)?[]:{}):Mr(o,Xt(r)?{}:r[s],l[s]);else{const f=r[s];l[s]=!An(o,f)}}return l}const fh={value:!1,isValid:!1},dh={value:!0,isValid:!0};var hh=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&&!ot(n[0].attributes.value)?ot(n[0].value)||n[0].value===""?dh:{value:n[0].value,isValid:!0}:dh:fh}return fh},mh=(n,{valueAsNumber:r,valueAsDate:l,setValueAs:s})=>ot(n)?n:r?n===""?NaN:n&&+n:l&&qt(n)?new Date(n):s?s(n):n;const yh={isValid:!1,value:null};var ph=n=>Array.isArray(n)?n.reduce((r,l)=>l&&l.checked&&!l.disabled?{isValid:!0,value:l.value}:r,yh):yh;function gh(n){const r=n.ref;return So(r)?r.files:wo(r)?ph(n.refs).value:oh(r)?[...r.selectedOptions].map(({value:l})=>l):Vi(r)?hh(n.refs).value:mh(ot(r.value)?n.ref.value:r.value,n)}var ab=(n,r,l,s)=>{const o={};for(const f of n){const d=ue(r,f);d&&We(o,f,d._f)}return{criteriaMode:l,names:[...n],fields:o,shouldUseNativeValidation:s}},ns=n=>n instanceof RegExp,Hi=n=>ot(n)?n:ns(n)?n.source:mt(n)?ns(n.value)?n.value.source:n.value:n,vh=n=>({isOnSubmit:!n||n===Ra.onSubmit,isOnBlur:n===Ra.onBlur,isOnChange:n===Ra.onChange,isOnAll:n===Ra.all,isOnTouch:n===Ra.onTouched});const bh="AsyncFunction";var nb=n=>!!n&&!!n.validate&&!!(Na(n.validate)&&n.validate.constructor.name===bh||mt(n.validate)&&Object.values(n.validate).find(r=>r.constructor.name===bh)),rb=n=>n.mount&&(n.required||n.min||n.max||n.maxLength||n.minLength||n.pattern||n.validate),_h=(n,r,l)=>!l&&(r.watchAll||r.watch.has(n)||[...r.watch].some(s=>n.startsWith(s)&&/^\.\w+/.test(n.slice(s.length))));const qi=(n,r,l,s)=>{for(const o of l||Object.keys(n)){const f=ue(n,o);if(f){const{_f:d,...m}=f;if(d){if(d.refs&&d.refs[0]&&r(d.refs[0],o)&&!s)return!0;if(d.ref&&r(d.ref,d.name)&&!s)return!0;if(qi(m,r))break}else if(mt(m)&&qi(m,r))break}}};function xh(n,r,l){const s=ue(n,l);if(s||ts(l))return{error:s,name:l};const o=l.split(".");for(;o.length;){const f=o.join("."),d=ue(r,f),m=ue(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};o.pop()}return{name:l}}var ib=(n,r,l,s)=>{l(n);const{name:o,...f}=n;return Zt(f)||Object.keys(f).length>=Object.keys(r).length||Object.keys(f).find(d=>r[d]===(!s||Ra.all))},lb=(n,r,l)=>!n||!r||n===r||Li(n).some(s=>s&&(l?s===r:s.startsWith(r)||r.startsWith(s))),sb=(n,r,l,s,o)=>o.isOnAll?!1:!l&&o.isOnTouch?!(r||n):(l?s.isOnBlur:o.isOnBlur)?!n:(l?s.isOnChange:o.isOnChange)?n:!0,ub=(n,r)=>!go(ue(n,r)).length&&_t(n,r),ob=(n,r,l)=>{const s=Li(ue(n,l));return We(s,lh,r[l]),We(n,l,s),n};function Sh(n,r,l="validate"){if(qt(n)||Array.isArray(n)&&n.every(qt)||Va(n)&&!n)return{type:l,message:qt(n)?n:"",ref:r}}var Dr=n=>mt(n)&&!ns(n)?n:{value:n,message:""},wh=async(n,r,l,s,o,f)=>{const{ref:d,refs:m,required:g,maxLength:p,minLength:S,min:w,max:D,pattern:_,validate:B,name:E,valueAsNumber:Z,mount:P}=n._f,F=ue(l,E);if(!P||r.has(E))return{};const re=m?m[0]:d,te=v=>{o&&re.reportValidity&&(re.setCustomValidity(Va(v)?"":v||""),re.reportValidity())},L={},X=wo(d),J=Vi(d),we=X||J,De=(Z||So(d))&&ot(d.value)&&ot(F)||as(d)&&d.value===""||F===""||Array.isArray(F)&&!F.length,at=xo.bind(null,E,s,L),ve=(v,$,Q,le=Ma.maxLength,O=Ma.minLength)=>{const K=v?$:Q;L[E]={type:v?le:O,message:K,ref:d,...at(v?le:O,K)}};if(f?!Array.isArray(F)||!F.length:g&&(!we&&(De||Xt(F))||Va(F)&&!F||J&&!hh(m).isValid||X&&!ph(m).isValid)){const{value:v,message:$}=qt(g)?{value:!!g,message:g}:Dr(g);if(v&&(L[E]={type:Ma.required,message:$,ref:re,...at(Ma.required,$)},!s))return te($),L}if(!De&&(!Xt(w)||!Xt(D))){let v,$;const Q=Dr(D),le=Dr(w);if(!Xt(F)&&!isNaN(F)){const O=d.valueAsNumber||F&&+F;Xt(Q.value)||(v=O>Q.value),Xt(le.value)||($=O<le.value)}else{const O=d.valueAsDate||new Date(F),K=Le=>new Date(new Date().toDateString()+" "+Le),se=d.type=="time",ze=d.type=="week";qt(Q.value)&&F&&(v=se?K(F)>K(Q.value):ze?F>Q.value:O>new Date(Q.value)),qt(le.value)&&F&&($=se?K(F)<K(le.value):ze?F<le.value:O<new Date(le.value))}if((v||$)&&(ve(!!v,Q.message,le.message,Ma.max,Ma.min),!s))return te(L[E].message),L}if((p||S)&&!De&&(qt(F)||f&&Array.isArray(F))){const v=Dr(p),$=Dr(S),Q=!Xt(v.value)&&F.length>+v.value,le=!Xt($.value)&&F.length<+$.value;if((Q||le)&&(ve(Q,v.message,$.message),!s))return te(L[E].message),L}if(_&&!De&&qt(F)){const{value:v,message:$}=Dr(_);if(ns(v)&&!F.match(v)&&(L[E]={type:Ma.pattern,message:$,ref:d,...at(Ma.pattern,$)},!s))return te($),L}if(B){if(Na(B)){const v=await B(F,l),$=Sh(v,re);if($&&(L[E]={...$,...at(Ma.validate,$.message)},!s))return te($.message),L}else if(mt(B)){let v={};for(const $ in B){if(!Zt(v)&&!s)break;const Q=Sh(await B[$](F,l),re,$);Q&&(v={...Q,...at($,Q.message)},te(Q.message),s&&(L[E]=v))}if(!Zt(v)&&(L[E]={ref:re,...v},!s))return L}}return te(!0),L};const cb={mode:Ra.onSubmit,reValidateMode:Ra.onChange,shouldFocusError:!0};function fb(n={}){let r={...cb,...n},l={submitCount:0,isDirty:!1,isReady:!1,isLoading:Na(r.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:r.errors||{},disabled:r.disabled||!1},s={},o=mt(r.defaultValues)||mt(r.values)?Ct(r.defaultValues||r.values)||{}:{},f=r.shouldUnregister?{}:Ct(o),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},g,p=0;const S={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},w={...S};let D={...w};const _={array:sh(),state:sh()},B=r.criteriaMode===Ra.all,E=x=>z=>{clearTimeout(p),p=setTimeout(x,z)},Z=async x=>{if(!d.keepIsValid&&!r.disabled&&(w.isValid||D.isValid||x)){let z;r.resolver?(z=Zt((await we()).errors),P()):z=await ve({fields:s,onlyCheckValid:!0,eventType:Rr.VALID}),z!==l.isValid&&_.state.next({isValid:z})}},P=(x,z)=>{!r.disabled&&(w.isValidating||w.validatingFields||D.isValidating||D.validatingFields)&&((x||Array.from(m.mount)).forEach(R=>{R&&(z?We(l.validatingFields,R,z):_t(l.validatingFields,R))}),_.state.next({validatingFields:l.validatingFields,isValidating:!Zt(l.validatingFields)}))},F=(x,z=[],R,ne,I=!0,ee=!0)=>{if(ne&&R&&!r.disabled){if(d.action=!0,ee&&Array.isArray(ue(s,x))){const fe=R(ue(s,x),ne.argA,ne.argB);I&&We(s,x,fe)}if(ee&&Array.isArray(ue(l.errors,x))){const fe=R(ue(l.errors,x),ne.argA,ne.argB);I&&We(l.errors,x,fe),ub(l.errors,x)}if((w.touchedFields||D.touchedFields)&&ee&&Array.isArray(ue(l.touchedFields,x))){const fe=R(ue(l.touchedFields,x),ne.argA,ne.argB);I&&We(l.touchedFields,x,fe)}if(w.dirtyFields||D.dirtyFields){const fe=Mr(o,f),Ae=ih(x);We(l.dirtyFields,Ae,ue(fe,Ae))}_.state.next({name:x,isDirty:$(x,z),dirtyFields:l.dirtyFields,errors:l.errors,isValid:l.isValid})}else We(f,x,z)},re=(x,z)=>{We(l.errors,x,z),_.state.next({errors:l.errors})},te=x=>{l.errors=x,_.state.next({errors:l.errors,isValid:!1})},L=(x,z,R,ne)=>{const I=ue(s,x);if(I){const ee=ue(f,x,ot(R)?ue(o,x):R);ot(ee)||ne&&ne.defaultChecked||z?We(f,x,z?ee:gh(I._f)):O(x,ee),d.mount&&!d.action&&Z()}},X=(x,z,R,ne,I)=>{let ee=!1,fe=!1;const Ae={name:x};if(!r.disabled){if(!R||ne){(w.isDirty||D.isDirty)&&(fe=l.isDirty,l.isDirty=Ae.isDirty=$(),ee=fe!==Ae.isDirty);const He=An(ue(o,x),z);fe=!!ue(l.dirtyFields,x),He?_t(l.dirtyFields,x):We(l.dirtyFields,x,!0),Ae.dirtyFields=l.dirtyFields,ee=ee||(w.dirtyFields||D.dirtyFields)&&fe!==!He}if(R){const He=ue(l.touchedFields,x);He||(We(l.touchedFields,x,R),Ae.touchedFields=l.touchedFields,ee=ee||(w.touchedFields||D.touchedFields)&&He!==R)}ee&&I&&_.state.next(Ae)}return ee?Ae:{}},J=(x,z,R,ne)=>{const I=ue(l.errors,x),ee=(w.isValid||D.isValid)&&Va(z)&&l.isValid!==z;if(r.delayError&&R?(g=E(()=>re(x,R)),g(r.delayError)):(clearTimeout(p),g=null,R?We(l.errors,x,R):_t(l.errors,x)),(R?!An(I,R):I)||!Zt(ne)||ee){const fe={...ne,...ee&&Va(z)?{isValid:z}:{},errors:l.errors,name:x};l={...l,...fe},_.state.next(fe)}},we=async x=>(P(x,!0),await r.resolver(f,r.context,ab(x||m.mount,s,r.criteriaMode,r.shouldUseNativeValidation))),De=async x=>{const{errors:z}=await we(x);if(P(x),x)for(const R of x){const ne=ue(z,R);ne?We(l.errors,R,ne):_t(l.errors,R)}else l.errors=z;return z},at=async({name:x,eventType:z})=>{if(n.validate){const R=await n.validate({formValues:f,formState:l,name:x,eventType:z});if(mt(R))for(const ne in R)R[ne]&&ge(`${bo}.${ne}`,{message:qt(R.message)?R.message:"",type:Ma.validate});else qt(R)||!R?ge(bo,{message:R||"",type:Ma.validate}):oe(bo);return R}return!0},ve=async({fields:x,onlyCheckValid:z,name:R,eventType:ne,context:I={valid:!0,runRootValidation:!1}})=>{if(n.validate&&(I.runRootValidation=!0,!await at({name:R,eventType:ne})&&(I.valid=!1,z)))return I.valid;for(const ee in x){const fe=x[ee];if(fe){const{_f:Ae,...He}=fe;if(Ae){const Yt=m.array.has(Ae.name),va=fe._f&&nb(fe._f);va&&w.validatingFields&&P([Ae.name],!0);const St=await wh(fe,m.disabled,f,B,r.shouldUseNativeValidation&&!z,Yt);if(va&&w.validatingFields&&P([Ae.name]),St[Ae.name]&&(I.valid=!1,z)||(!z&&(ue(St,Ae.name)?Yt?ob(l.errors,St,Ae.name):We(l.errors,Ae.name,St[Ae.name]):_t(l.errors,Ae.name)),n.shouldUseNativeValidation&&St[Ae.name]))break}!Zt(He)&&await ve({context:I,onlyCheckValid:z,fields:He,name:ee,eventType:ne})}}return I.valid},v=()=>{for(const x of m.unMount){const z=ue(s,x);z&&(z._f.refs?z._f.refs.every(R=>!Ao(R)):!Ao(z._f.ref))&&rt(x)}m.unMount=new Set},$=(x,z)=>!r.disabled&&(x&&z&&We(f,x,z),!An(G(),o)),Q=(x,z,R)=>Fv(x,m,{...d.mount?f:ot(z)?o:qt(x)?{[x]:z}:z},R,z),le=x=>go(ue(d.mount?f:o,x,r.shouldUnregister?ue(o,x,[]):[])),O=(x,z,R={})=>{const ne=ue(s,x);let I=z;if(ne){const ee=ne._f;ee&&(!ee.disabled&&We(f,x,mh(z,ee)),I=as(ee.ref)&&Xt(z)?"":z,oh(ee.ref)?[...ee.ref.options].forEach(fe=>fe.selected=I.includes(fe.value)):ee.refs?Vi(ee.ref)?ee.refs.forEach(fe=>{(!fe.defaultChecked||!fe.disabled)&&(Array.isArray(I)?fe.checked=!!I.find(Ae=>Ae===fe.value):fe.checked=I===fe.value||!!I)}):ee.refs.forEach(fe=>fe.checked=fe.value===I):So(ee.ref)?ee.ref.value="":(ee.ref.value=I,ee.ref.type||_.state.next({name:x,values:Ct(f)})))}(R.shouldDirty||R.shouldTouch)&&X(x,I,R.shouldTouch,R.shouldDirty,!0),R.shouldValidate&&T(x)},K=(x,z,R)=>{for(const ne in z){if(!z.hasOwnProperty(ne))return;const I=z[ne],ee=x+"."+ne,fe=ue(s,ee);(m.array.has(x)||mt(I)||fe&&!fe._f)&&!ar(I)?K(ee,I,R):O(ee,I,R)}},se=(x,z,R={})=>{const ne=ue(s,x),I=m.array.has(x),ee=Ct(z);We(f,x,ee),I?(_.array.next({name:x,values:Ct(f)}),(w.isDirty||w.dirtyFields||D.isDirty||D.dirtyFields)&&R.shouldDirty&&_.state.next({name:x,dirtyFields:Mr(o,f),isDirty:$(x,ee)})):ne&&!ne._f&&!Xt(ee)?K(x,ee,R):O(x,ee,R),_h(x,m)?_.state.next({...l,name:x,values:Ct(f)}):_.state.next({name:d.mount?x:void 0,values:Ct(f)})},ze=async x=>{d.mount=!0;const z=x.target;let R=z.name,ne=!0;const I=ue(s,R),ee=He=>{ne=Number.isNaN(He)||ar(He)&&isNaN(He.getTime())||An(He,ue(f,R,He))},fe=vh(r.mode),Ae=vh(r.reValidateMode);if(I){let He,Yt;const va=z.type?gh(I._f):Gv(x),St=x.type===Rr.BLUR||x.type===Rr.FOCUS_OUT,Gt=!rb(I._f)&&!n.validate&&!r.resolver&&!ue(l.errors,R)&&!I._f.deps||sb(St,ue(l.touchedFields,R),l.isSubmitted,Ae,fe),ba=_h(R,m,St);We(f,R,va),St?(!z||!z.readOnly)&&(I._f.onBlur&&I._f.onBlur(x),g&&g(0)):I._f.onChange&&I._f.onChange(x);const Mt=X(R,va,St),lc=!Zt(Mt)||ba;if(!St&&_.state.next({name:R,type:x.type,values:Ct(f)}),Gt)return(w.isValid||D.isValid)&&(r.mode==="onBlur"?St&&Z():St||Z()),lc&&_.state.next({name:R,...ba?{}:Mt});if(!r.resolver&&n.validate&&await at({name:R,eventType:x.type}),!St&&ba&&_.state.next({...l}),r.resolver){const{errors:Ms}=await we([R]);if(P([R]),ee(va),ne){const sc=xh(l.errors,s,R),ur=xh(Ms,s,sc.name||R);He=ur.error,R=ur.name,Yt=Zt(Ms)}}else P([R],!0),He=(await wh(I,m.disabled,f,B,r.shouldUseNativeValidation))[R],P([R]),ee(va),ne&&(He?Yt=!1:(w.isValid||D.isValid)&&(Yt=await ve({fields:s,onlyCheckValid:!0,name:R,eventType:x.type})));ne&&(I._f.deps&&(!Array.isArray(I._f.deps)||I._f.deps.length>0)&&T(I._f.deps),J(R,Yt,He,Mt))}},Le=(x,z)=>{if(ue(l.errors,z)&&x.focus)return x.focus(),1},T=async(x,z={})=>{let R,ne;const I=Li(x);if(r.resolver){const ee=await De(ot(x)?x:I);R=Zt(ee),ne=x?!I.some(fe=>ue(ee,fe)):R}else x?(ne=(await Promise.all(I.map(async ee=>{const fe=ue(s,ee);return await ve({fields:fe&&fe._f?{[ee]:fe}:fe,eventType:Rr.TRIGGER})}))).every(Boolean),!(!ne&&!l.isValid)&&Z()):ne=R=await ve({fields:s,name:x,eventType:Rr.TRIGGER});return _.state.next({...!qt(x)||(w.isValid||D.isValid)&&R!==l.isValid?{}:{name:x},...r.resolver||!x?{isValid:R}:{},errors:l.errors}),z.shouldFocus&&!ne&&qi(s,Le,x?I:m.mount),ne},G=(x,z)=>{let R={...d.mount?f:o};return z&&(R=uh(z.dirtyFields?l.dirtyFields:l.touchedFields,R)),ot(x)?R:qt(x)?ue(R,x):x.map(ne=>ue(R,ne))},ae=(x,z)=>({invalid:!!ue((z||l).errors,x),isDirty:!!ue((z||l).dirtyFields,x),error:ue((z||l).errors,x),isValidating:!!ue(l.validatingFields,x),isTouched:!!ue((z||l).touchedFields,x)}),oe=x=>{const z=x?Li(x):void 0;z==null||z.forEach(R=>_t(l.errors,R)),z?z.forEach(R=>{_.state.next({name:R,errors:l.errors})}):_.state.next({errors:{}})},ge=(x,z,R)=>{const ne=(ue(s,x,{_f:{}})._f||{}).ref,I=ue(l.errors,x)||{},{ref:ee,message:fe,type:Ae,...He}=I;We(l.errors,x,{...He,...z,ref:ne}),_.state.next({name:x,errors:l.errors,isValid:!1}),R&&R.shouldFocus&&ne&&ne.focus&&ne.focus()},Ce=(x,z)=>Na(x)?_.state.subscribe({next:R=>"values"in R&&x(Q(void 0,z),R)}):Q(x,z,!0),Be=x=>_.state.subscribe({next:z=>{lb(x.name,z.name,x.exact)&&ib(z,x.formState||w,al,x.reRenderRoot)&&x.callback({values:{...f},...l,...z,defaultValues:o})}}).unsubscribe,Rt=x=>(d.mount=!0,D={...D,...x.formState},Be({...x,formState:{...S,...x.formState}})),rt=(x,z={})=>{for(const R of x?Li(x):m.mount)m.mount.delete(R),m.array.delete(R),z.keepValue||(_t(s,R),_t(f,R)),!z.keepError&&_t(l.errors,R),!z.keepDirty&&_t(l.dirtyFields,R),!z.keepTouched&&_t(l.touchedFields,R),!z.keepIsValidating&&_t(l.validatingFields,R),!r.shouldUnregister&&!z.keepDefaultValue&&_t(o,R);_.state.next({values:Ct(f)}),_.state.next({...l,...z.keepDirty?{isDirty:$()}:{}}),!z.keepIsValid&&Z()},En=({disabled:x,name:z})=>{if(Va(x)&&d.mount||x||m.disabled.has(z)){const I=m.disabled.has(z)!==!!x;x?m.disabled.add(z):m.disabled.delete(z),I&&d.mount&&!d.action&&Z()}},Cn=(x,z={})=>{let R=ue(s,x);const ne=Va(z.disabled)||Va(r.disabled);return We(s,x,{...R||{},_f:{...R&&R._f?R._f:{ref:{name:x}},name:x,mount:!0,...z}}),m.mount.add(x),R?En({disabled:Va(z.disabled)?z.disabled:r.disabled,name:x}):L(x,!0,z.value),{...ne?{disabled:z.disabled||r.disabled}:{},...r.progressive?{required:!!z.required,min:Hi(z.min),max:Hi(z.max),minLength:Hi(z.minLength),maxLength:Hi(z.maxLength),pattern:Hi(z.pattern)}:{},name:x,onChange:ze,onBlur:ze,ref:I=>{if(I){Cn(x,z),R=ue(s,x);const ee=ot(I.value)&&I.querySelectorAll&&I.querySelectorAll("input,select,textarea")[0]||I,fe=Iv(ee),Ae=R._f.refs||[];if(fe?Ae.find(He=>He===ee):ee===R._f.ref)return;We(s,x,{_f:{...R._f,...fe?{refs:[...Ae.filter(Ao),ee,...Array.isArray(ue(o,x))?[{}]:[]],ref:{type:ee.type,name:x}}:{ref:ee}}}),L(x,!1,void 0,ee)}else R=ue(s,x,{}),R._f&&(R._f.mount=!1),(r.shouldUnregister||z.shouldUnregister)&&!($v(m.array,x)&&d.action)&&m.unMount.add(x)}}},sr=()=>r.shouldFocusError&&qi(s,Le,m.mount),zs=x=>{Va(x)&&(_.state.next({disabled:x}),qi(s,(z,R)=>{const ne=ue(s,R);ne&&(z.disabled=ne._f.disabled||x,Array.isArray(ne._f.refs)&&ne._f.refs.forEach(I=>{I.disabled=ne._f.disabled||x}))},0,!1))},Ya=(x,z)=>async R=>{let ne;R&&(R.preventDefault&&R.preventDefault(),R.persist&&R.persist());let I=Ct(f);if(_.state.next({isSubmitting:!0}),r.resolver){const{errors:ee,values:fe}=await we();P(),l.errors=ee,I=Ct(fe)}else await ve({fields:s,eventType:Rr.SUBMIT});if(m.disabled.size)for(const ee of m.disabled)_t(I,ee);if(_t(l.errors,lh),Zt(l.errors)){_.state.next({errors:{}});try{await x(I,R)}catch(ee){ne=ee}}else z&&await z({...l.errors},R),sr(),setTimeout(sr);if(_.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Zt(l.errors)&&!ne,submitCount:l.submitCount+1,errors:l.errors}),ne)throw ne},tl=(x,z={})=>{ue(s,x)&&(ot(z.defaultValue)?se(x,Ct(ue(o,x))):(se(x,z.defaultValue),We(o,x,Ct(z.defaultValue))),z.keepTouched||_t(l.touchedFields,x),z.keepDirty||(_t(l.dirtyFields,x),l.isDirty=z.defaultValue?$(x,Ct(ue(o,x))):$()),z.keepError||(_t(l.errors,x),w.isValid&&Z()),_.state.next({...l}))},$r=(x,z={})=>{const R=x?Ct(x):o,ne=Ct(R),I=Zt(x),ee=I?o:ne;if(z.keepDefaultValues||(o=R),!z.keepValues){if(z.keepDirtyValues){const fe=new Set([...m.mount,...Object.keys(Mr(o,f))]);for(const Ae of Array.from(fe)){const He=ue(l.dirtyFields,Ae),Yt=ue(f,Ae),va=ue(ee,Ae);He&&!ot(Yt)?We(ee,Ae,Yt):!He&&!ot(va)&&se(Ae,va)}}else{if(po&&ot(x))for(const fe of m.mount){const Ae=ue(s,fe);if(Ae&&Ae._f){const He=Array.isArray(Ae._f.refs)?Ae._f.refs[0]:Ae._f.ref;if(as(He)){const Yt=He.closest("form");if(Yt){Yt.reset();break}}}}if(z.keepFieldsRef)for(const fe of m.mount)se(fe,ue(ee,fe));else s={}}f=r.shouldUnregister?z.keepDefaultValues?Ct(o):{}:Ct(ee),_.array.next({values:{...ee}}),_.state.next({values:{...ee}})}m={mount:z.keepDirtyValues?m.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},d.mount=!w.isValid||!!z.keepIsValid||!!z.keepDirtyValues||!r.shouldUnregister&&!Zt(ee),d.watch=!!r.shouldUnregister,d.keepIsValid=!!z.keepIsValid,d.action=!1,z.keepErrors||(l.errors={}),_.state.next({submitCount:z.keepSubmitCount?l.submitCount:0,isDirty:I?!1:z.keepDirty?l.isDirty:!!(z.keepDefaultValues&&!An(x,o)),isSubmitted:z.keepIsSubmitted?l.isSubmitted:!1,dirtyFields:I?{}:z.keepDirtyValues?z.keepDefaultValues&&f?Mr(o,f):l.dirtyFields:z.keepDefaultValues&&x?Mr(o,x):z.keepDirty?l.dirtyFields:{},touchedFields:z.keepTouched?l.touchedFields:{},errors:z.keepErrors?l.errors:{},isSubmitSuccessful:z.keepIsSubmitSuccessful?l.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:o})},ks=(x,z)=>$r(Na(x)?x(f):x,{...r.resetOptions,...z}),Ns=(x,z={})=>{const R=ue(s,x),ne=R&&R._f;if(ne){const I=ne.refs?ne.refs[0]:ne.ref;I.focus&&setTimeout(()=>{I.focus(),z.shouldSelect&&Na(I.select)&&I.select()})}},al=x=>{l={...l,...x}},Qr={control:{register:Cn,unregister:rt,getFieldState:ae,handleSubmit:Ya,setError:ge,_subscribe:Be,_runSchema:we,_updateIsValidating:P,_focusError:sr,_getWatch:Q,_getDirty:$,_setValid:Z,_setFieldArray:F,_setDisabledField:En,_setErrors:te,_getFieldArray:le,_reset:$r,_resetDefaultValues:()=>Na(r.defaultValues)&&r.defaultValues().then(x=>{ks(x,r.resetOptions),_.state.next({isLoading:!1})}),_removeUnmounted:v,_disableForm:zs,_subjects:_,_proxyFormState:w,get _fields(){return s},get _formValues(){return f},get _state(){return d},set _state(x){d=x},get _defaultValues(){return o},get _names(){return m},set _names(x){m=x},get _formState(){return l},get _options(){return r},set _options(x){r={...r,...x}}},subscribe:Rt,trigger:T,register:Cn,handleSubmit:Ya,watch:Ce,setValue:se,getValues:G,reset:ks,resetField:tl,clearErrors:oe,unregister:rt,setError:ge,setFocus:Ns,getFieldState:ae};return{...Qr,formControl:Qr}}function db(n={}){const r=vt.useRef(void 0),l=vt.useRef(void 0),[s,o]=vt.useState({isDirty:!1,isValidating:!1,isLoading:Na(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:Na(n.defaultValues)?void 0:n.defaultValues});if(!r.current)if(n.formControl)r.current={...n.formControl,formState:s},n.defaultValues&&!Na(n.defaultValues)&&n.formControl.reset(n.defaultValues,n.resetOptions);else{const{formControl:d,...m}=fb(n);r.current={...m,formState:s}}const f=r.current.control;return f._options=n,Jv(()=>{const d=f._subscribe({formState:f._proxyFormState,callback:()=>o({...f._formState}),reRenderRoot:!0});return o(m=>({...m,isReady:!0})),f._formState.isReady=!0,d},[f]),vt.useEffect(()=>f._disableForm(n.disabled),[f,n.disabled]),vt.useEffect(()=>{n.mode&&(f._options.mode=n.mode),n.reValidateMode&&(f._options.reValidateMode=n.reValidateMode)},[f,n.mode,n.reValidateMode]),vt.useEffect(()=>{n.errors&&(f._setErrors(n.errors),f._focusError())},[f,n.errors]),vt.useEffect(()=>{n.shouldUnregister&&f._subjects.state.next({values:f._getWatch()})},[f,n.shouldUnregister]),vt.useEffect(()=>{if(f._proxyFormState.isDirty){const d=f._getDirty();d!==s.isDirty&&f._subjects.state.next({isDirty:d})}},[f,s.isDirty]),vt.useEffect(()=>{var d;n.values&&!An(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,o(m=>({...m}))):f._resetDefaultValues()},[f,n.values]),vt.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=vt.useMemo(()=>Kv(s,f),[f,s]),r.current}const Ah=(n,r,l)=>{if(n&&"reportValidity"in n){const s=ue(l,r);n.setCustomValidity(s&&s.message||""),n.reportValidity()}},Eo=(n,r)=>{for(const l in r.fields){const s=r.fields[l];s&&s.ref&&"reportValidity"in s.ref?Ah(s.ref,l,n):s&&s.refs&&s.refs.forEach(o=>Ah(o,l,n))}},Th=(n,r)=>{r.shouldUseNativeValidation&&Eo(n,r);const l={};for(const s in n){const o=ue(r.fields,s),f=Object.assign(n[s]||{},{ref:o&&o.ref});if(hb(r.names||Object.keys(n),s)){const d=Object.assign({},ue(l,s));We(d,"root",f),We(l,s,d)}else We(l,s,f)}return l},hb=(n,r)=>{const l=Eh(r);return n.some(s=>Eh(s).match(`^${l}\\.\\d+`))};function Eh(n){return n.replace(/\]|\[/g,"")}function Ch(n,r,l){function s(m,g){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,g);for(const S in d.prototype)S in m||Object.defineProperty(m,S,{value:d.prototype[S].bind(m)});m._zod.constr=d,m._zod.def=g}const o=(l==null?void 0:l.Parent)??Object;class f extends o{}Object.defineProperty(f,"name",{value:n});function d(m){var g;const p=l!=null&&l.Parent?new f:this;s(p,m),(g=p._zod).deferred??(g.deferred=[]);for(const S of p._zod.deferred)S();return p}return Object.defineProperty(d,"init",{value:s}),Object.defineProperty(d,Symbol.hasInstance,{value:m=>{var g,p;return l!=null&&l.Parent&&m instanceof l.Parent?!0:(p=(g=m==null?void 0:m._zod)==null?void 0:g.traits)==null?void 0:p.has(n)}}),Object.defineProperty(d,"name",{value:n}),d}class mb extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}const yb={};function Oh(n){return yb}function pb(n,r){return typeof r=="bigint"?r.toString():r}const zh=Error.captureStackTrace?Error.captureStackTrace:(...n)=>{};function rs(n){return typeof n=="string"?n:n==null?void 0:n.message}function kh(n,r,l){var o,f,d,m,g,p;const s={...n,path:n.path??[]};if(!n.message){const S=rs((d=(f=(o=n.inst)==null?void 0:o._zod.def)==null?void 0:f.error)==null?void 0:d.call(f,n))??rs((m=r==null?void 0:r.error)==null?void 0:m.call(r,n))??rs((g=l.customError)==null?void 0:g.call(l,n))??rs((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 Nh=(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,pb,2)},enumerable:!0}),Object.defineProperty(n,"toString",{value:()=>n.message,enumerable:!1})},gb=Ch("$ZodError",Nh),Rh=Ch("$ZodError",Nh,{Parent:Error}),vb=(n=>(r,l,s,o)=>{const f=s?Object.assign(s,{async:!1}):{async:!1},d=r._zod.run({value:l,issues:[]},f);if(d instanceof Promise)throw new mb;if(d.issues.length){const m=new((o==null?void 0:o.Err)??n)(d.issues.map(g=>kh(g,f,Oh())));throw zh(m,o==null?void 0:o.callee),m}return d.value})(Rh),bb=(n=>async(r,l,s,o)=>{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((o==null?void 0:o.Err)??n)(d.issues.map(g=>kh(g,f,Oh())));throw zh(m,o==null?void 0:o.callee),m}return d.value})(Rh);function Mh(n,r){try{var l=n()}catch(s){return r(s)}return l&&l.then?l.then(void 0,r):l}function _b(n,r){for(var l={};n.length;){var s=n[0],o=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:o};if("unionErrors"in s&&s.unionErrors.forEach(function(S){return S.errors.forEach(function(w){return n.push(w)})}),r){var g=l[d].types,p=g&&g[s.code];l[d]=xo(d,r,l,o,p?[].concat(p,s.message):s.message)}n.shift()}return l}function xb(n,r){for(var l={};n.length;){var s=n[0],o=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:o};if(s.code==="invalid_union"&&s.errors.forEach(function(S){return S.forEach(function(w){return n.push(w)})}),r){var g=l[d].types,p=g&&g[s.code];l[d]=xo(d,r,l,o,p?[].concat(p,s.message):s.message)}n.shift()}return l}function Sb(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,o,f){try{return Promise.resolve(Mh(function(){return Promise.resolve(n[l.mode==="sync"?"parse":"parseAsync"](s,r)).then(function(d){return f.shouldUseNativeValidation&&Eo({},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:Th(_b(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,o,f){try{return Promise.resolve(Mh(function(){return Promise.resolve((l.mode==="sync"?vb:bb)(n,s,r)).then(function(d){return f.shouldUseNativeValidation&&Eo({},f),{errors:{},values:l.raw?Object.assign({},s):d}})},function(d){if((function(m){return m instanceof gb})(d))return{values:{},errors:Th(xb(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
+ * @license lucide-react v0.518.0 - ISC
55
+ *
56
+ * This source code is licensed under the ISC license.
57
+ * See the LICENSE file in the root directory of this source tree.
58
+ */const wb=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Ab=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(r,l,s)=>s?s.toUpperCase():l.toLowerCase()),Dh=n=>{const r=Ab(n);return r.charAt(0).toUpperCase()+r.slice(1)},jh=(...n)=>n.filter((r,l,s)=>!!r&&r.trim()!==""&&s.indexOf(r)===l).join(" ").trim(),Tb=n=>{for(const r in n)if(r.startsWith("aria-")||r==="role"||r==="title")return!0};/**
59
+ * @license lucide-react v0.518.0 - ISC
60
+ *
61
+ * This source code is licensed under the ISC license.
62
+ * See the LICENSE file in the root directory of this source tree.
63
+ */var Eb={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
+ * @license lucide-react v0.518.0 - ISC
65
+ *
66
+ * This source code is licensed under the ISC license.
67
+ * See the LICENSE file in the root directory of this source tree.
68
+ */const Cb=Se.forwardRef(({color:n="currentColor",size:r=24,strokeWidth:l=2,absoluteStrokeWidth:s,className:o="",children:f,iconNode:d,...m},g)=>Se.createElement("svg",{ref:g,...Eb,width:r,height:r,stroke:n,strokeWidth:s?Number(l)*24/Number(r):l,className:jh("lucide",o),...!f&&!Tb(m)&&{"aria-hidden":"true"},...m},[...d.map(([p,S])=>Se.createElement(p,S)),...Array.isArray(f)?f:[f]]));/**
69
+ * @license lucide-react v0.518.0 - ISC
70
+ *
71
+ * This source code is licensed under the ISC license.
72
+ * See the LICENSE file in the root directory of this source tree.
73
+ */const is=(n,r)=>{const l=Se.forwardRef(({className:s,...o},f)=>Se.createElement(Cb,{ref:f,iconNode:r,className:jh(`lucide-${wb(Dh(n))}`,`lucide-${n}`,s),...o}));return l.displayName=Dh(n),l};/**
74
+ * @license lucide-react v0.518.0 - ISC
75
+ *
76
+ * This source code is licensed under the ISC license.
77
+ * See the LICENSE file in the root directory of this source tree.
78
+ */const Co=is("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/**
79
+ * @license lucide-react v0.518.0 - ISC
80
+ *
81
+ * This source code is licensed under the ISC license.
82
+ * See the LICENSE file in the root directory of this source tree.
83
+ */const Uh=is("external-link",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);/**
84
+ * @license lucide-react v0.518.0 - ISC
85
+ *
86
+ * This source code is licensed under the ISC license.
87
+ * See the LICENSE file in the root directory of this source tree.
88
+ */const Ob=is("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"}]]);/**
89
+ * @license lucide-react v0.518.0 - ISC
90
+ *
91
+ * This source code is licensed under the ISC license.
92
+ * See the LICENSE file in the root directory of this source tree.
93
+ */const Bh=is("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]),Vh={ErrorMessage:"Erro ao aplicar o benefício"},Oo=jd(n=>({...Vh,setErrorMessage:r=>n({ErrorMessage:r}),resetErrorMessage:()=>n({ErrorMessage:Vh.ErrorMessage})}));function zb({startTransition:n}){const r=aa(),[l,s]=Se.useState(!1),{setErrorMessage:o}=Oo(),{handleSubmit:f,register:d,setValue:m,clearErrors:g,unregister:p,formState:{errors:S}}=db({resolver:Sb(Hv),mode:"onSubmit",defaultValues:{securityNumber:r.securityNumber||"",coupon:""}}),w=async _=>{try{if(r.targetProduct===null){console.error("PBMLOG: Product is not defined!");return}if(!r.targetProduct.productId){console.error("PBMLOG: Product ID is not defined!");return}if(!r.targetProduct.listPrice){console.error("PBMLOG: List Price is not defined!");return}const B={productId:r.targetProduct.productId,ean:r.targetProduct.ean,requestedQuantity:1,listPrice:r.targetProduct.listPrice,netPrice:r.targetProduct.netPrice??r.targetProduct.listPrice},E=await nh({document:_.securityNumber.replace(/\D/g,""),products:[B]});if(E.success){const Z=Zv(E.data.product[0].statusCustomer);if(r.setSecurityNumber(_.securityNumber),r.setState(Z),Z==="isInvalid"){r.setUrlAcceptTerms(E.data.product[0].urlAcceptTerm||void 0);return}if(Z==="isRegistered"){r.setUrlRegisterIndustry(E.data.product[0].informativeLink);return}if(!Z){o(E.data.product[0].informativeText),r.setState("isError");return}}}catch(B){console.error("PBMLOG: Error validating document -",B)}},D=async _=>{l||m("coupon",void 0,{shouldValidate:!1}),l&&_.coupon!=null&&r.setCardID(_.coupon),n(async()=>{await w(_)})};return U.jsxs(U.Fragment,{children:[U.jsxs("form",{onSubmit:f(D),className:Qt("w-full h-auto flex items-center justify-center mb-0 transition-all duration-150",{"mb-4":S.securityNumber||S.coupon&&l,"gap-2":l}),id:"form_security_number_pbm",children:[U.jsxs("label",{htmlFor:"cpf",className:"w-4/5 h-auto flex items-start flex-col justify-center relative py-2",id:"label_security_number_pbm",children:[U.jsx("input",{type:"text",className:Qt("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.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:_=>{const B=qv(_.target.value);m("securityNumber",B,{shouldValidate:!0})}}),defaultValue:r.securityNumber||"",id:"input_security_number_pbm"}),S.securityNumber&&U.jsx("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})]}),U.jsx(Se.Activity,{mode:l?"visible":"hidden",children:U.jsxs("label",{htmlFor:"coupon",className:"w-4/5 h-auto flex items-start flex-col justify-center relative py-2",id:"label_coupon_pbm",children:[U.jsx("input",{type:"text",className:Qt("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:_=>{m("coupon",_.target.value,{shouldValidate:l})}}),id:"input_coupon_pbm"}),S.coupon&&U.jsx("span",{className:"text-red-400 text-xs font-semibold absolute -bottom-3 left-2 text-nowrap",id:"coupon_form_error",children:S.coupon.message})]})}),U.jsx("button",{type:"submit",className:Qt("w-1/5 h-10 rounded-e-lg flex items-center justify-center cursor-pointer",{"rounded-lg":l}),style:{backgroundColor:"var(--pbm-primary)"},id:"button_submit_security_number_pbm",children:U.jsx(Co,{size:24,color:"white",strokeWidth:2})})]}),U.jsxs("section",{className:"flex items-center-safe justify-between",children:[U.jsxs(ya,{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:_=>_.currentTarget.style.filter="brightness(0.8)",onMouseOut:_=>_.currentTarget.style.filter="none",onClick:()=>{const _=!l;s(_),_||(p("coupon"),g("coupon"))},id:"check_benefits_button",children:[U.jsx("span",{children:l?"Não possui Cupom / ID do Cartão??":"Possui Cupom / ID do Cartão?"}),U.jsx(Co,{size:16,className:Qt({"rotate-0":!l,"rotate-180":l})})]}),U.jsxs(ya,{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:_=>_.currentTarget.style.filter="brightness(0.8)",onMouseOut:_=>_.currentTarget.style.filter="none",onClick:()=>r.setState("isPreview"),id:"check_benefits_button",children:[U.jsx("span",{children:"Consultar Benefícios"}),U.jsx(Co,{size:16})]})]})]})}function Lh({textColor:n}){return U.jsxs("main",{className:"flex items-center justify-center gap-4",id:"loading_pbm",children:[U.jsx("div",{"data-testid":"test_id_spin",className:"w-8 h-8 border-4 border-gray-300 rounded-full animate-spin",style:{borderTopColor:"var(--pbm-secondary)"},id:"loading_spin"}),U.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."})]})}const kb=async({products:n})=>{const r=ka("VITE_API_URL");if(!r)throw new Error("API URL is not defined in environment variables");const l=Bi.get("pbm-token");if(!l)throw new Error("Token is not defined in cookies or is expired");const o=await(await fetch(`${r}/products/genericBenefit`,{method:"POST",headers:{Authorization:`Bearer ${l}`,"Content-Type":"application/json"},body:JSON.stringify({products:n})})).json();if(!o.success)throw new Error(o.message||"Failed to fetch benefits without document");return o},Hh={modal:{id:"",open:!1,label:"",url:""}},Zi=jd(n=>({...Hh,setModal:r=>n({modal:r}),resetModal:()=>n({modal:Hh.modal})}));function Nb({size:n}){return U.jsx("svg",{xmlns:"http://www.w3.org/2000/svg","data-name":"Camada 1",viewBox:"0 0 500 500",width:n,height:n,children:U.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 Rb({size:n}){return U.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg","data-name":"Camada 1",viewBox:"0 0 500 500",width:n,height:n,children:[U.jsx("circle",{cx:250,cy:250,r:237.45,fill:"#fff"}),U.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"})]})}const qh={CheckON:Nb,CheckOFF:Rb};function Mb({data:n,onChange:r,checked:l}){const{setAvailableDiscountSelected:s,state:o,isAuthenticatedShopper:f}=aa(),{setModal:d}=Zi(),m="unity_quantity_"+n.authorizedQuantity,g=n.discountPercentual/100,p=n.grossPrice*g,S=p*n.authorizedQuantity,w=n.grossPrice*n.authorizedQuantity-S,D=Se.useCallback(()=>{if(l){const B=E=>Math.round(E*100)/100;s({discount:{total:B(S),unit:B(p)},quantity:n.authorizedQuantity,totalPrice:B(w),grossPrice:n.grossPrice})}},[l,n.authorizedQuantity,s,S,w,p]);Se.useEffect(()=>{D()},[D]);const _=()=>{if(!f&&o==="isActivated"){d({id:"ShopperIsNotAuthenticated",open:!0});return}r()};return U.jsxs("label",{htmlFor:m,className:Qt("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":o==="isPreview","cursor-pointer":o==="isActivated","opacity-80":!l&&o==="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:[U.jsx("input",{type:"radio",name:"benefits_discount",id:m,className:"hidden",checked:l,onChange:_,disabled:o==="isPreview"}),U.jsx("span",{style:{color:"var(--pbm-primary)"},children:l?U.jsx(qh.CheckON,{size:20}):U.jsx(qh.CheckOFF,{size:20})}),U.jsxs("span",{className:"font-semibold text-sm",style:{color:"var(--pbm-text)"},children:[n.authorizedQuantity,"un"]}),U.jsxs("section",{className:"ml-auto relative gap-2 flex items-center-safe justify-end-safe",children:[U.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:[S.toLocaleString("pt-BR",{currency:"BRL",currencyDisplay:"symbol",currencySign:"standard",style:"currency"})," ","OFF"]}),U.jsx("strong",{className:"font-semibold text-sm text-center",style:{color:"var(--pbm-text)"},children:w.toLocaleString("pt-BR",{currency:"BRL",currencyDisplay:"symbol",currencySign:"standard",style:"currency"})})]})]})}function Db(){var D;const[n,r]=Se.useTransition(),{securityNumber:l,setState:s,state:o,targetProduct:f,customLoginUrl:d,isAuthenticatedShopper:m}=aa(),[g,p]=Se.useState(null),[S,w]=Se.useState();return Se.useEffect(()=>{if(!(f!=null&&f.productId)){console.error("PBMLOG: Product ID is not defined on targetProduct");return}if(!f.ean){console.error("PBMLOG: EAN is not defined on targetProduct");return}if(!f.listPrice){console.error("PBMLOG: List Price is not defined on targetProduct");return}if(!f.price){console.error("PBMLOG: Price is not defined on targetProduct");return}const _=async()=>{try{const E={productId:Number(f.productId),ean:f.ean,requestedQuantity:1,listPrice:f.listPrice,netPrice:f.price},Z=await kb({products:[E]});Z.success&&Z.data?w(Z.data):w(void 0)}catch(E){w(void 0),console.error(E)}},B=async()=>{if(!l){console.error("PBMLOG: Document is not defined");return}try{const E={productId:Number(f.productId),ean:f.ean,requestedQuantity:1,listPrice:f.listPrice,netPrice:f.price},Z=await nh({document:l,products:[E]});Z.success&&Z.data?w(Z.data.product):w(void 0)}catch(E){w(void 0),console.error(E)}};r(async()=>{o==="isActivated"?await B():await _()})},[]),n?U.jsx(Lh,{textColor:"var(--pbm-text)"}):S!=null&&S.length&&((D=S[0])==null?void 0:D.statusCode)==null&&o==="isActivated"?U.jsx("main",{className:"flex items-center justify-center gap-4",id:"loading_pbm",children:U.jsx("p",{className:"text-sm font-semibold text-start",style:{color:"var(--pbm-text)"},id:"benefits_error_handle",children:S[0].informativeText})}):U.jsxs("section",{className:"flex items-start justify-center gap-4 w-full h-auto flex-col",id:"benefits_table_pbm",children:[U.jsx(Pn,{children:"Descontos disponíveis:"}),U.jsxs("form",{className:"flex flex-col items-center justify-start w-full gap-4.5",id:"form_benefits_table_pbm",onSubmit:_=>_.preventDefault(),children:[!S&&U.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."}),S&&S.map((_,B)=>{const E="unity_quantity_"+_.authorizedQuantity;return U.jsx(Mb,{data:_,checked:g===E,onChange:()=>p(E)},B)})]}),o==="isPreview"&&U.jsxs(ya,{onClick:()=>s("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"," ",U.jsx("span",{className:"underline",children:"insira seu cpf para utilizar os benefícios"})]}),o==="isActivated"&&U.jsxs(U.Fragment,{children:[!m&&U.jsx(ya,{type:"button",onClick:()=>window.location.assign(d||"/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:U.jsx("span",{className:"underline",children:"Por favor, faça o Login para aproveitar os benefícios!"})}),U.jsx(ya,{onClick:()=>s("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:U.jsx("span",{className:"underline",children:"Deseja editar o cpf digitado?"})})]})]})}function jb({textColor:n}){const{urlAcceptTerms:r}=aa(),{setModal:l}=Zi(),s=()=>{r&&l({open:!0,id:"iframe_pbm",label:"Aceitar os termos",url:r})};return U.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:[U.jsx(Pn,{className:"w-full",textColor:n,children:"CPF não cadastrado."}),U.jsxs(er,{className:"w-full",textColor:n,children:["Conclua seu cadastro para habilitar o benefício. ",U.jsx("br",{}),"Ao clicar em “Aceitar os termos”, você irá para uma página externa. Aceite os termos e volte para continuar."]}),U.jsx(ya,{onClick:()=>s(),style:{backgroundColor:"var(--pbm-primary)"},children:"Aceitar os termos"})]})}function Ub({textColor:n}){const{urlRegisterIndustry:r}=aa(),{setModal:l}=Zi(),s=()=>{r&&l({open:!0,id:"iframe_pbm",label:"Ativar CPF",url:r})};return U.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:[U.jsx(Pn,{className:"w-full",textColor:n,children:"Ops, seu CPF ainda não está habilitado para este produto."}),U.jsx(er,{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."}),U.jsx(ya,{onClick:()=>s(),style:{backgroundColor:"var(--pbm-primary)"},children:"Ativar CPF"})]})}const Zh=()=>{const{ErrorMessage:n}=Oo(),{setState:r}=aa();return U.jsxs(io,{variant:"main",children:[U.jsx(Pn,{children:"Erro ao Aplicar o Benefício"}),U.jsx(er,{textAlign:"center",children:n}),U.jsxs(ya,{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:[U.jsx("span",{children:"Tentar novamente"}),U.jsx(Ob,{size:16})]})]})},Bb=n=>n===void 0?"":"?"+Object.keys(n).map(r=>r+"="+n[r]).join("&");function Vb(n){const{setState:r}=aa();return U.jsx("a",{...n,target:n.target||"_self",href:typeof n.href=="string"?n.href:n.href.pathname+Bb(n.href.param),className:Qt("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 Lb=({ID:n})=>{const{customLoginUrl:r}=aa(),{modal:l,setModal:s}=Zi();return U.jsxs("main",{className:Qt("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:[U.jsx("div",{className:"absolute inset-0",onClick:()=>s({id:"",open:!1})}),U.jsxs("section",{className:"z-10 bg-white gap-2 flex-col items-center-safe justify-center-safe p-8 rounded-xl",children:[U.jsx(Pn,{textColor:"tomato",textSize:"18px",textAlign:"center",className:"mb-2",children:"Opa! Parece que você não está Logado"}),U.jsxs(er,{className:"mb-2",textAlign:"center",children:["Para aproveitar os benefícios é necessário realizar o ",U.jsx("strong",{children:"Login"})," ou ",U.jsx("strong",{children:"Cadastro"})," no site!"]}),U.jsxs("section",{className:"flex items-center-safe justify-center-safe gap-4",children:[U.jsx(ya,{className:"bg-gray-600 hover:bg-gray-500",onClick:()=>s({id:"",open:!1}),children:"Seguir sem Benefícios"}),U.jsx(Vb,{href:r||"/login",children:"Aproveitar Benefícios"})]})]})]})};function Yh(n){var r,l,s="";if(typeof n=="string"||typeof n=="number")s+=n;else if(typeof n=="object")if(Array.isArray(n)){var o=n.length;for(r=0;r<o;r++)n[r]&&(l=Yh(n[r]))&&(s&&(s+=" "),s+=l)}else for(l in n)n[l]&&(s&&(s+=" "),s+=l);return s}function Gh(){for(var n,r,l=0,s="",o=arguments.length;l<o;l++)(n=arguments[l])&&(r=Yh(n))&&(s&&(s+=" "),s+=r);return s}function Hb(n,r,l=void 0){const s={};for(const o in n){const f=n[o];let d="",m=!0;for(let g=0;g<f.length;g+=1){const p=f[g];p&&(d+=(m===!0?"":" ")+r(p),m=!1,l&&l[p]&&(d+=" "+l[p]))}s[o]=d}return s}function nr(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 qb="$$material";function zo(){return zo=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},zo.apply(null,arguments)}function Zb(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 Yb(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 Gb=(function(){function n(l){var s=this;this._insertTag=function(o){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(o,f),s.tags.push(o)},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(Yb(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var f=Zb(o);try{f.insertRule(s,f.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(s));this.ctr++},r.flush=function(){this.tags.forEach(function(s){var o;return(o=s.parentNode)==null?void 0:o.removeChild(s)}),this.tags=[],this.ctr=0},n})(),Ht="-ms-",ls="-moz-",Ye="-webkit-",$h="comm",ko="rule",No="decl",$b="@import",Qh="@keyframes",Qb="@layer",Xb=Math.abs,ss=String.fromCharCode,Kb=Object.assign;function Jb(n,r){return Nt(n,0)^45?(((r<<2^Nt(n,0))<<2^Nt(n,1))<<2^Nt(n,2))<<2^Nt(n,3):0}function Xh(n){return n.trim()}function Fb(n,r){return(n=r.exec(n))?n[0]:n}function Ge(n,r,l){return n.replace(r,l)}function Ro(n,r){return n.indexOf(r)}function Nt(n,r){return n.charCodeAt(r)|0}function Yi(n,r,l){return n.slice(r,l)}function La(n){return n.length}function Mo(n){return n.length}function us(n,r){return r.push(n),n}function Wb(n,r){return n.map(r).join("")}var os=1,jr=1,Kh=0,Kt=0,xt=0,Ur="";function cs(n,r,l,s,o,f,d){return{value:n,root:r,parent:l,type:s,props:o,children:f,line:os,column:jr,length:d,return:""}}function Gi(n,r){return Kb(cs("",null,null,"",null,null,0),n,{length:-n.length},r)}function Ib(){return xt}function Pb(){return xt=Kt>0?Nt(Ur,--Kt):0,jr--,xt===10&&(jr=1,os--),xt}function ra(){return xt=Kt<Kh?Nt(Ur,Kt++):0,jr++,xt===10&&(jr=1,os++),xt}function Ha(){return Nt(Ur,Kt)}function fs(){return Kt}function $i(n,r){return Yi(Ur,n,r)}function Qi(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 Jh(n){return os=jr=1,Kh=La(Ur=n),Kt=0,[]}function Fh(n){return Ur="",n}function ds(n){return Xh($i(Kt-1,Do(n===91?n+2:n===40?n+1:n)))}function e1(n){for(;(xt=Ha())&&xt<33;)ra();return Qi(n)>2||Qi(xt)>3?"":" "}function t1(n,r){for(;--r&&ra()&&!(xt<48||xt>102||xt>57&&xt<65||xt>70&&xt<97););return $i(n,fs()+(r<6&&Ha()==32&&ra()==32))}function Do(n){for(;ra();)switch(xt){case n:return Kt;case 34:case 39:n!==34&&n!==39&&Do(xt);break;case 40:n===41&&Do(n);break;case 92:ra();break}return Kt}function a1(n,r){for(;ra()&&n+xt!==57;)if(n+xt===84&&Ha()===47)break;return"/*"+$i(r,Kt-1)+"*"+ss(n===47?n:ra())}function n1(n){for(;!Qi(Ha());)ra();return $i(n,Kt)}function r1(n){return Fh(hs("",null,null,null,[""],n=Jh(n),0,[0],n))}function hs(n,r,l,s,o,f,d,m,g){for(var p=0,S=0,w=d,D=0,_=0,B=0,E=1,Z=1,P=1,F=0,re="",te=o,L=f,X=s,J=re;Z;)switch(B=F,F=ra()){case 40:if(B!=108&&Nt(J,w-1)==58){Ro(J+=Ge(ds(F),"&","&\f"),"&\f")!=-1&&(P=-1);break}case 34:case 39:case 91:J+=ds(F);break;case 9:case 10:case 13:case 32:J+=e1(B);break;case 92:J+=t1(fs()-1,7);continue;case 47:switch(Ha()){case 42:case 47:us(i1(a1(ra(),fs()),r,l),g);break;default:J+="/"}break;case 123*E:m[p++]=La(J)*P;case 125*E:case 59:case 0:switch(F){case 0:case 125:Z=0;case 59+S:P==-1&&(J=Ge(J,/\f/g,"")),_>0&&La(J)-w&&us(_>32?Ih(J+";",s,l,w-1):Ih(Ge(J," ","")+";",s,l,w-2),g);break;case 59:J+=";";default:if(us(X=Wh(J,r,l,p,S,o,m,re,te=[],L=[],w),f),F===123)if(S===0)hs(J,r,X,X,te,f,w,m,L);else switch(D===99&&Nt(J,3)===110?100:D){case 100:case 108:case 109:case 115:hs(n,X,X,s&&us(Wh(n,X,X,0,0,o,m,re,o,te=[],w),L),o,L,w,m,s?te:L);break;default:hs(J,X,X,X,[""],L,0,m,L)}}p=S=_=0,E=P=1,re=J="",w=d;break;case 58:w=1+La(J),_=B;default:if(E<1){if(F==123)--E;else if(F==125&&E++==0&&Pb()==125)continue}switch(J+=ss(F),F*E){case 38:P=S>0?1:(J+="\f",-1);break;case 44:m[p++]=(La(J)-1)*P,P=1;break;case 64:Ha()===45&&(J+=ds(ra())),D=Ha(),S=w=La(re=J+=n1(fs())),F++;break;case 45:B===45&&La(J)==2&&(E=0)}}return f}function Wh(n,r,l,s,o,f,d,m,g,p,S){for(var w=o-1,D=o===0?f:[""],_=Mo(D),B=0,E=0,Z=0;B<s;++B)for(var P=0,F=Yi(n,w+1,w=Xb(E=d[B])),re=n;P<_;++P)(re=Xh(E>0?D[P]+" "+F:Ge(F,/&\f/g,D[P])))&&(g[Z++]=re);return cs(n,r,l,o===0?ko:m,g,p,S)}function i1(n,r,l){return cs(n,r,l,$h,ss(Ib()),Yi(n,2,-2),0)}function Ih(n,r,l,s){return cs(n,r,l,No,Yi(n,0,s),Yi(n,s+1,-1),s)}function Br(n,r){for(var l="",s=Mo(n),o=0;o<s;o++)l+=r(n[o],o,n,r)||"";return l}function l1(n,r,l,s){switch(n.type){case Qb:if(n.children.length)break;case $b:case No:return n.return=n.return||n.value;case $h:return"";case Qh:return n.return=n.value+"{"+Br(n.children,s)+"}";case ko:n.value=n.props.join(",")}return La(l=Br(n.children,s))?n.return=n.value+"{"+l+"}":""}function s1(n){var r=Mo(n);return function(l,s,o,f){for(var d="",m=0;m<r;m++)d+=n[m](l,s,o,f)||"";return d}}function u1(n){return function(r){r.root||(r=r.return)&&n(r)}}function Ph(n){var r=Object.create(null);return function(l){return r[l]===void 0&&(r[l]=n(l)),r[l]}}var o1=function(r,l,s){for(var o=0,f=0;o=f,f=Ha(),o===38&&f===12&&(l[s]=1),!Qi(f);)ra();return $i(r,Kt)},c1=function(r,l){var s=-1,o=44;do switch(Qi(o)){case 0:o===38&&Ha()===12&&(l[s]=1),r[s]+=o1(Kt-1,l,s);break;case 2:r[s]+=ds(o);break;case 4:if(o===44){r[++s]=Ha()===58?"&\f":"",l[s]=r[s].length;break}default:r[s]+=ss(o)}while(o=ra());return r},f1=function(r,l){return Fh(c1(Jh(r),l))},em=new WeakMap,d1=function(r){if(!(r.type!=="rule"||!r.parent||r.length<1)){for(var l=r.value,s=r.parent,o=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&&!em.get(s))&&!o){em.set(r,!0);for(var f=[],d=f1(l,f),m=s.props,g=0,p=0;g<d.length;g++)for(var S=0;S<m.length;S++,p++)r.props[p]=f[g]?d[g].replace(/&\f/g,m[S]):m[S]+" "+d[g]}}},h1=function(r){if(r.type==="decl"){var l=r.value;l.charCodeAt(0)===108&&l.charCodeAt(2)===98&&(r.return="",r.value="")}};function tm(n,r){switch(Jb(n,r)){case 5103:return Ye+"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 Ye+n+n;case 5349:case 4246:case 4810:case 6968:case 2756:return Ye+n+ls+n+Ht+n+n;case 6828:case 4268:return Ye+n+Ht+n+n;case 6165:return Ye+n+Ht+"flex-"+n+n;case 5187:return Ye+n+Ge(n,/(\w+).+(:[^]+)/,Ye+"box-$1$2"+Ht+"flex-$1$2")+n;case 5443:return Ye+n+Ht+"flex-item-"+Ge(n,/flex-|-self/,"")+n;case 4675:return Ye+n+Ht+"flex-line-pack"+Ge(n,/align-content|flex-|-self/,"")+n;case 5548:return Ye+n+Ht+Ge(n,"shrink","negative")+n;case 5292:return Ye+n+Ht+Ge(n,"basis","preferred-size")+n;case 6060:return Ye+"box-"+Ge(n,"-grow","")+Ye+n+Ht+Ge(n,"grow","positive")+n;case 4554:return Ye+Ge(n,/([^-])(transform)/g,"$1"+Ye+"$2")+n;case 6187:return Ge(Ge(Ge(n,/(zoom-|grab)/,Ye+"$1"),/(image-set)/,Ye+"$1"),n,"")+n;case 5495:case 3959:return Ge(n,/(image-set\([^]*)/,Ye+"$1$`$1");case 4968:return Ge(Ge(n,/(.+:)(flex-)?(.*)/,Ye+"box-pack:$3"+Ht+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Ye+n+n;case 4095:case 3583:case 4068:case 2532:return Ge(n,/(.+)-inline(.+)/,Ye+"$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(La(n)-1-r>6)switch(Nt(n,r+1)){case 109:if(Nt(n,r+4)!==45)break;case 102:return Ge(n,/(.+:)(.+)-([^]+)/,"$1"+Ye+"$2-$3$1"+ls+(Nt(n,r+3)==108?"$3":"$2-$3"))+n;case 115:return~Ro(n,"stretch")?tm(Ge(n,"stretch","fill-available"),r)+n:n}break;case 4949:if(Nt(n,r+1)!==115)break;case 6444:switch(Nt(n,La(n)-3-(~Ro(n,"!important")&&10))){case 107:return Ge(n,":",":"+Ye)+n;case 101:return Ge(n,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ye+(Nt(n,14)===45?"inline-":"")+"box$3$1"+Ye+"$2$3$1"+Ht+"$2box$3")+n}break;case 5936:switch(Nt(n,r+11)){case 114:return Ye+n+Ht+Ge(n,/[svh]\w+-[tblr]{2}/,"tb")+n;case 108:return Ye+n+Ht+Ge(n,/[svh]\w+-[tblr]{2}/,"tb-rl")+n;case 45:return Ye+n+Ht+Ge(n,/[svh]\w+-[tblr]{2}/,"lr")+n}return Ye+n+Ht+n+n}return n}var m1=function(r,l,s,o){if(r.length>-1&&!r.return)switch(r.type){case No:r.return=tm(r.value,r.length);break;case Qh:return Br([Gi(r,{value:Ge(r.value,"@","@"+Ye)})],o);case ko:if(r.length)return Wb(r.props,function(f){switch(Fb(f,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Br([Gi(r,{props:[Ge(f,/:(read-\w+)/,":"+ls+"$1")]})],o);case"::placeholder":return Br([Gi(r,{props:[Ge(f,/:(plac\w+)/,":"+Ye+"input-$1")]}),Gi(r,{props:[Ge(f,/:(plac\w+)/,":"+ls+"$1")]}),Gi(r,{props:[Ge(f,/:(plac\w+)/,Ht+"input-$1")]})],o)}return""})}},y1=[m1],p1=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(E){var Z=E.getAttribute("data-emotion");Z.indexOf(" ")!==-1&&(document.head.appendChild(E),E.setAttribute("data-s",""))})}var o=r.stylisPlugins||y1,f={},d,m=[];d=r.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+l+' "]'),function(E){for(var Z=E.getAttribute("data-emotion").split(" "),P=1;P<Z.length;P++)f[Z[P]]=!0;m.push(E)});var g,p=[d1,h1];{var S,w=[l1,u1(function(E){S.insert(E)})],D=s1(p.concat(o,w)),_=function(Z){return Br(r1(Z),D)};g=function(Z,P,F,re){S=F,_(Z?Z+"{"+P.styles+"}":P.styles),re&&(B.inserted[P.name]=!0)}}var B={key:l,sheet:new Gb({key:l,container:d,nonce:r.nonce,speedy:r.speedy,prepend:r.prepend,insertionPoint:r.insertionPoint}),nonce:r.nonce,inserted:f,registered:{},insert:g};return B.sheet.hydrate(m),B},jo={exports:{}},Qe={};/** @license React v16.13.1
94
+ * react-is.production.min.js
95
+ *
96
+ * Copyright (c) Facebook, Inc. and its affiliates.
97
+ *
98
+ * This source code is licensed under the MIT license found in the
99
+ * LICENSE file in the root directory of this source tree.
100
+ */var am;function g1(){if(am)return Qe;am=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,o=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,g=n?Symbol.for("react.async_mode"):60111,p=n?Symbol.for("react.concurrent_mode"):60111,S=n?Symbol.for("react.forward_ref"):60112,w=n?Symbol.for("react.suspense"):60113,D=n?Symbol.for("react.suspense_list"):60120,_=n?Symbol.for("react.memo"):60115,B=n?Symbol.for("react.lazy"):60116,E=n?Symbol.for("react.block"):60121,Z=n?Symbol.for("react.fundamental"):60117,P=n?Symbol.for("react.responder"):60118,F=n?Symbol.for("react.scope"):60119;function re(L){if(typeof L=="object"&&L!==null){var X=L.$$typeof;switch(X){case r:switch(L=L.type,L){case g:case p:case s:case f:case o:case w:return L;default:switch(L=L&&L.$$typeof,L){case m:case S:case B:case _:case d:return L;default:return X}}case l:return X}}}function te(L){return re(L)===p}return Qe.AsyncMode=g,Qe.ConcurrentMode=p,Qe.ContextConsumer=m,Qe.ContextProvider=d,Qe.Element=r,Qe.ForwardRef=S,Qe.Fragment=s,Qe.Lazy=B,Qe.Memo=_,Qe.Portal=l,Qe.Profiler=f,Qe.StrictMode=o,Qe.Suspense=w,Qe.isAsyncMode=function(L){return te(L)||re(L)===g},Qe.isConcurrentMode=te,Qe.isContextConsumer=function(L){return re(L)===m},Qe.isContextProvider=function(L){return re(L)===d},Qe.isElement=function(L){return typeof L=="object"&&L!==null&&L.$$typeof===r},Qe.isForwardRef=function(L){return re(L)===S},Qe.isFragment=function(L){return re(L)===s},Qe.isLazy=function(L){return re(L)===B},Qe.isMemo=function(L){return re(L)===_},Qe.isPortal=function(L){return re(L)===l},Qe.isProfiler=function(L){return re(L)===f},Qe.isStrictMode=function(L){return re(L)===o},Qe.isSuspense=function(L){return re(L)===w},Qe.isValidElementType=function(L){return typeof L=="string"||typeof L=="function"||L===s||L===p||L===f||L===o||L===w||L===D||typeof L=="object"&&L!==null&&(L.$$typeof===B||L.$$typeof===_||L.$$typeof===d||L.$$typeof===m||L.$$typeof===S||L.$$typeof===Z||L.$$typeof===P||L.$$typeof===F||L.$$typeof===E)},Qe.typeOf=re,Qe}var nm;function v1(){return nm||(nm=1,jo.exports=g1()),jo.exports}var Uo,rm;function b1(){if(rm)return Uo;rm=1;var n=v1(),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},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},f={};f[n.ForwardRef]=s,f[n.Memo]=o;function d(B){return n.isMemo(B)?o:f[B.$$typeof]||r}var m=Object.defineProperty,g=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,S=Object.getOwnPropertyDescriptor,w=Object.getPrototypeOf,D=Object.prototype;function _(B,E,Z){if(typeof E!="string"){if(D){var P=w(E);P&&P!==D&&_(B,P,Z)}var F=g(E);p&&(F=F.concat(p(E)));for(var re=d(B),te=d(E),L=0;L<F.length;++L){var X=F[L];if(!l[X]&&!(Z&&Z[X])&&!(te&&te[X])&&!(re&&re[X])){var J=S(E,X);try{m(B,X,J)}catch{}}}}return B}return Uo=_,Uo}b1();var _1=!0;function im(n,r,l){var s="";return l.split(" ").forEach(function(o){n[o]!==void 0?r.push(n[o]+";"):o&&(s+=o+" ")}),s}var Bo=function(r,l,s){var o=r.key+"-"+l.name;(s===!1||_1===!1)&&r.registered[o]===void 0&&(r.registered[o]=l.styles)},lm=function(r,l,s){Bo(r,l,s);var o=r.key+"-"+l.name;if(r.inserted[l.name]===void 0){var f=l;do r.insert(l===f?"."+o:"",f,r.sheet,!0),f=f.next;while(f!==void 0)}};function x1(n){for(var r=0,l,s=0,o=n.length;o>=4;++s,o-=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(o){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 S1={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},w1=/[A-Z]|^ms/g,A1=/_EMO_([^_]+?)_([^]*?)_EMO_/g,sm=function(r){return r.charCodeAt(1)===45},um=function(r){return r!=null&&typeof r!="boolean"},Vo=Ph(function(n){return sm(n)?n:n.replace(w1,"-$&").toLowerCase()}),om=function(r,l){switch(r){case"animation":case"animationName":if(typeof l=="string")return l.replace(A1,function(s,o,f){return qa={name:o,styles:f,next:qa},o})}return S1[r]!==1&&!sm(r)&&typeof l=="number"&&l!==0?l+"px":l};function Xi(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 o=l;if(o.anim===1)return qa={name:o.name,styles:o.styles,next:qa},o.name;var f=l;if(f.styles!==void 0){var d=f.next;if(d!==void 0)for(;d!==void 0;)qa={name:d.name,styles:d.styles,next:qa},d=d.next;var m=f.styles+";";return m}return T1(n,r,l)}case"function":{if(n!==void 0){var g=qa,p=l(n);return qa=g,Xi(n,r,p)}break}}var S=l;if(r==null)return S;var w=r[S];return w!==void 0?w:S}function T1(n,r,l){var s="";if(Array.isArray(l))for(var o=0;o<l.length;o++)s+=Xi(n,r,l[o])+";";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]+"}":um(m)&&(s+=Vo(f)+":"+om(f,m)+";")}else if(Array.isArray(d)&&typeof d[0]=="string"&&(r==null||r[d[0]]===void 0))for(var g=0;g<d.length;g++)um(d[g])&&(s+=Vo(f)+":"+om(f,d[g])+";");else{var p=Xi(n,r,d);switch(f){case"animation":case"animationName":{s+=Vo(f)+":"+p+";";break}default:s+=f+"{"+p+"}"}}}return s}var cm=/label:\s*([^\s;{]+)\s*(;|$)/g,qa;function ms(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,o="";qa=void 0;var f=n[0];if(f==null||f.raw===void 0)s=!1,o+=Xi(l,r,f);else{var d=f;o+=d[0]}for(var m=1;m<n.length;m++)if(o+=Xi(l,r,n[m]),s){var g=f;o+=g[m]}cm.lastIndex=0;for(var p="",S;(S=cm.exec(o))!==null;)p+="-"+S[1];var w=x1(o)+p;return{name:w,styles:o,next:qa}}var E1=function(r){return r()},C1=Md.useInsertionEffect?Md.useInsertionEffect:!1,fm=C1||E1,dm=Se.createContext(typeof HTMLElement<"u"?p1({key:"css"}):null);dm.Provider;var hm=function(r){return Se.forwardRef(function(l,s){var o=Se.useContext(dm);return r(l,o,s)})},mm=Se.createContext({}),Lo={}.hasOwnProperty,Ho="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",O1=function(r,l){var s={};for(var o in l)Lo.call(l,o)&&(s[o]=l[o]);return s[Ho]=r,s},z1=function(r){var l=r.cache,s=r.serialized,o=r.isStringTag;return Bo(l,s,o),fm(function(){return lm(l,s,o)}),null},k1=hm(function(n,r,l){var s=n.css;typeof s=="string"&&r.registered[s]!==void 0&&(s=r.registered[s]);var o=n[Ho],f=[s],d="";typeof n.className=="string"?d=im(r.registered,f,n.className):n.className!=null&&(d=n.className+" ");var m=ms(f,void 0,Se.useContext(mm));d+=r.key+"-"+m.name;var g={};for(var p in n)Lo.call(n,p)&&p!=="css"&&p!==Ho&&(g[p]=n[p]);return g.className=d,l&&(g.ref=l),Se.createElement(Se.Fragment,null,Se.createElement(z1,{cache:r,serialized:m,isStringTag:typeof o=="string"}),Se.createElement(o,g))}),N1=k1,ym=function(r,l){var s=arguments;if(l==null||!Lo.call(l,"css"))return Se.createElement.apply(void 0,s);var o=s.length,f=new Array(o);f[0]=N1,f[1]=O1(r,l);for(var d=2;d<o;d++)f[d]=s[d];return Se.createElement.apply(null,f)};(function(n){var r;r||(r=n.JSX||(n.JSX={}))})(ym||(ym={}));function qo(){for(var n=arguments.length,r=new Array(n),l=0;l<n;l++)r[l]=arguments[l];return ms(r)}function pm(){var n=qo.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 R1=/^((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)-.*))$/,M1=Ph(function(n){return R1.test(n)||n.charCodeAt(0)===111&&n.charCodeAt(1)===110&&n.charCodeAt(2)<91}),D1=M1,j1=function(r){return r!=="theme"},gm=function(r){return typeof r=="string"&&r.charCodeAt(0)>96?D1:j1},vm=function(r,l,s){var o;if(l){var f=l.shouldForwardProp;o=r.__emotion_forwardProp&&f?function(d){return r.__emotion_forwardProp(d)&&f(d)}:f}return typeof o!="function"&&s&&(o=r.__emotion_forwardProp),o},U1=function(r){var l=r.cache,s=r.serialized,o=r.isStringTag;return Bo(l,s,o),fm(function(){return lm(l,s,o)}),null},B1=function n(r,l){var s=r.__emotion_real===r,o=s&&r.__emotion_base||r,f,d;l!==void 0&&(f=l.label,d=l.target);var m=vm(r,l,s),g=m||gm(o),p=!g("as");return function(){var S=arguments,w=s&&r.__emotion_styles!==void 0?r.__emotion_styles.slice(0):[];if(f!==void 0&&w.push("label:"+f+";"),S[0]==null||S[0].raw===void 0)w.push.apply(w,S);else{var D=S[0];w.push(D[0]);for(var _=S.length,B=1;B<_;B++)w.push(S[B],D[B])}var E=hm(function(Z,P,F){var re=p&&Z.as||o,te="",L=[],X=Z;if(Z.theme==null){X={};for(var J in Z)X[J]=Z[J];X.theme=Se.useContext(mm)}typeof Z.className=="string"?te=im(P.registered,L,Z.className):Z.className!=null&&(te=Z.className+" ");var we=ms(w.concat(L),P.registered,X);te+=P.key+"-"+we.name,d!==void 0&&(te+=" "+d);var De=p&&m===void 0?gm(re):g,at={};for(var ve in Z)p&&ve==="as"||De(ve)&&(at[ve]=Z[ve]);return at.className=te,F&&(at.ref=F),Se.createElement(Se.Fragment,null,Se.createElement(U1,{cache:P,serialized:we,isStringTag:typeof re=="string"}),Se.createElement(re,at))});return E.displayName=f!==void 0?f:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",E.defaultProps=r.defaultProps,E.__emotion_real=E,E.__emotion_base=o,E.__emotion_styles=w,E.__emotion_forwardProp=m,Object.defineProperty(E,"toString",{value:function(){return"."+d}}),E.withComponent=function(Z,P){var F=n(Z,zo({},l,P,{shouldForwardProp:vm(E,P,!0)}));return F.apply(void 0,w)},E}},V1=["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"],Zo=B1.bind(null);V1.forEach(function(n){Zo[n]=Zo(n)});function L1(n,r){return Zo(n,r)}function H1(n,r){Array.isArray(n.__emotion_styles)&&(n.__emotion_styles=r(n.__emotion_styles))}const bm=[];function rr(n){return bm[0]=n,ms(bm)}var Yo={exports:{}},Ie={};/**
101
+ * @license React
102
+ * react-is.production.js
103
+ *
104
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
105
+ *
106
+ * This source code is licensed under the MIT license found in the
107
+ * LICENSE file in the root directory of this source tree.
108
+ */var _m;function q1(){if(_m)return Ie;_m=1;var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),d=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),S=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),D=Symbol.for("react.view_transition"),_=Symbol.for("react.client.reference");function B(E){if(typeof E=="object"&&E!==null){var Z=E.$$typeof;switch(Z){case n:switch(E=E.type,E){case l:case o:case s:case g:case p:case D:return E;default:switch(E=E&&E.$$typeof,E){case d:case m:case w:case S:return E;case f:return E;default:return Z}}case r:return Z}}}return Ie.ContextConsumer=f,Ie.ContextProvider=d,Ie.Element=n,Ie.ForwardRef=m,Ie.Fragment=l,Ie.Lazy=w,Ie.Memo=S,Ie.Portal=r,Ie.Profiler=o,Ie.StrictMode=s,Ie.Suspense=g,Ie.SuspenseList=p,Ie.isContextConsumer=function(E){return B(E)===f},Ie.isContextProvider=function(E){return B(E)===d},Ie.isElement=function(E){return typeof E=="object"&&E!==null&&E.$$typeof===n},Ie.isForwardRef=function(E){return B(E)===m},Ie.isFragment=function(E){return B(E)===l},Ie.isLazy=function(E){return B(E)===w},Ie.isMemo=function(E){return B(E)===S},Ie.isPortal=function(E){return B(E)===r},Ie.isProfiler=function(E){return B(E)===o},Ie.isStrictMode=function(E){return B(E)===s},Ie.isSuspense=function(E){return B(E)===g},Ie.isSuspenseList=function(E){return B(E)===p},Ie.isValidElementType=function(E){return typeof E=="string"||typeof E=="function"||E===l||E===o||E===s||E===g||E===p||typeof E=="object"&&E!==null&&(E.$$typeof===w||E.$$typeof===S||E.$$typeof===d||E.$$typeof===f||E.$$typeof===m||E.$$typeof===_||E.getModuleId!==void 0)},Ie.typeOf=B,Ie}var xm;function Z1(){return xm||(xm=1,Yo.exports=q1()),Yo.exports}var Sm=Z1();function Wa(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 wm(n){if(Se.isValidElement(n)||Sm.isValidElementType(n)||!Wa(n))return n;const r={};return Object.keys(n).forEach(l=>{r[l]=wm(n[l])}),r}function ia(n,r,l={clone:!0}){const s=l.clone?{...n}:n;return Wa(n)&&Wa(r)&&Object.keys(r).forEach(o=>{Se.isValidElement(r[o])||Sm.isValidElementType(r[o])?s[o]=r[o]:Wa(r[o])&&Object.prototype.hasOwnProperty.call(n,o)&&Wa(n[o])?s[o]=ia(n[o],r[o],l):l.clone?s[o]=Wa(r[o])?wm(r[o]):r[o]:s[o]=r[o]}),s}const Y1=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 G1(n){const{values:r={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:l="px",step:s=5,...o}=n,f=Y1(r),d=Object.keys(f);function m(D){return`@media (min-width:${typeof r[D]=="number"?r[D]:D}${l})`}function g(D){return`@media (max-width:${(typeof r[D]=="number"?r[D]:D)-s/100}${l})`}function p(D,_){const B=d.indexOf(_);return`@media (min-width:${typeof r[D]=="number"?r[D]:D}${l}) and (max-width:${(B!==-1&&typeof r[d[B]]=="number"?r[d[B]]:_)-s/100}${l})`}function S(D){return d.indexOf(D)+1<d.length?p(D,d[d.indexOf(D)+1]):m(D)}function w(D){const _=d.indexOf(D);return _===0?m(d[1]):_===d.length-1?g(d[_]):p(D,d[d.indexOf(D)+1]).replace("@media","@media not all and")}return{keys:d,values:f,up:m,down:g,between:p,only:S,not:w,unit:l,...o}}function Am(n,r){if(!n.containerQueries)return r;const l=Object.keys(r).filter(s=>s.startsWith("@container")).sort((s,o)=>{var d,m;const f=/min-width:\s*([0-9.]+)/;return+(((d=s.match(f))==null?void 0:d[1])||0)-+(((m=o.match(f))==null?void 0:m[1])||0)});return l.length?l.reduce((s,o)=>{const f=r[o];return delete s[o],s[o]=f,s},{...r}):r}function $1(n,r){return r==="@"||r.startsWith("@")&&(n.some(l=>r.startsWith(`@${l}`))||!!r.match(/^@\d/))}function Q1(n,r){const l=r.match(/^@([^/]+)?\/?(.+)?$/);if(!l)return null;const[,s,o]=l,f=Number.isNaN(+s)?s||0:+s;return n.containerQueries(o).up(f)}function X1(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 g=r(n.breakpoints.not(...m),d);return g.includes("not all and")?g.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):g}}const s={},o=f=>(l(s,f),s);return l(o),{...n,containerQueries:o}}const K1={borderRadius:4};function Ki(n,r){return r?ia(n,r,{clone:!1}):n}const ys={xs:0,sm:600,md:900,lg:1200,xl:1536},Tm={keys:["xs","sm","md","lg","xl"],up:n=>`@media (min-width:${ys[n]}px)`},J1={containerQueries:n=>({up:r=>{let l=typeof r=="number"?r:ys[r]||r;return typeof l=="number"&&(l=`${l}px`),n?`@container ${n} (min-width:${l})`:`@container (min-width:${l})`}})};function Ia(n,r,l){const s=n.theme||{};if(Array.isArray(r)){const f=s.breakpoints||Tm;return r.reduce((d,m,g)=>(d[f.up(f.keys[g])]=l(r[g]),d),{})}if(typeof r=="object"){const f=s.breakpoints||Tm;return Object.keys(r).reduce((d,m)=>{if($1(f.keys,m)){const g=Q1(s.containerQueries?s:J1,m);g&&(d[g]=l(r[m],m))}else if(Object.keys(f.values||ys).includes(m)){const g=f.up(m);d[g]=l(r[m],m)}else{const g=m;d[g]=r[g]}return d},{})}return l(r)}function F1(n={}){var l;return((l=n.keys)==null?void 0:l.reduce((s,o)=>{const f=n.up(o);return s[f]={},s},{}))||{}}function Em(n,r){return n.reduce((l,s)=>{const o=l[s];return(!o||Object.keys(o).length===0)&&delete l[s],l},r)}function Cm(n){if(typeof n!="string")throw new Error(nr(7));return n.charAt(0).toUpperCase()+n.slice(1)}function ps(n,r,l=!0){if(!r||typeof r!="string")return null;if(n&&n.vars&&l){const s=`vars.${r}`.split(".").reduce((o,f)=>o&&o[f]?o[f]:null,n);if(s!=null)return s}return r.split(".").reduce((s,o)=>s&&s[o]!=null?s[o]:null,n)}function gs(n,r,l,s=l){let o;return typeof n=="function"?o=n(l):Array.isArray(n)?o=n[l]||s:o=ps(n,l)||s,r&&(o=r(o,s,n)),o}function yt(n){const{prop:r,cssProperty:l=n.prop,themeKey:s,transform:o}=n,f=d=>{if(d[r]==null)return null;const m=d[r],g=d.theme,p=ps(g,s)||{};return Ia(d,m,w=>{let D=gs(p,o,w);return w===D&&typeof w=="string"&&(D=gs(p,o,`${r}${w==="default"?"":Cm(w)}`,w)),l===!1?D:{[l]:D}})};return f.propTypes={},f.filterProps=[r],f}function W1(n){const r={};return l=>(r[l]===void 0&&(r[l]=n(l)),r[l])}const I1={m:"margin",p:"padding"},P1={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Om={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},e_=W1(n=>{if(n.length>2)if(Om[n])n=Om[n];else return[n];const[r,l]=n.split(""),s=I1[r],o=P1[l]||"";return Array.isArray(o)?o.map(f=>s+f):[s+o]}),Go=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],$o=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Go,...$o];function Ji(n,r,l,s){const o=ps(n,r,!0)??l;return typeof o=="number"||typeof o=="string"?f=>typeof f=="string"?f:typeof o=="string"?o.startsWith("var(")&&f===0?0:o.startsWith("var(")&&f===1?o:`calc(${f} * ${o})`:o*f:Array.isArray(o)?f=>{if(typeof f=="string")return f;const d=Math.abs(f),m=o[d];return f>=0?m:typeof m=="number"?-m:typeof m=="string"&&m.startsWith("var(")?`calc(-1 * ${m})`:`-${m}`}:typeof o=="function"?o:()=>{}}function Qo(n){return Ji(n,"spacing",8)}function Fi(n,r){return typeof r=="string"||r==null?r:n(r)}function t_(n,r){return l=>n.reduce((s,o)=>(s[o]=Fi(r,l),s),{})}function a_(n,r,l,s){if(!r.includes(l))return null;const o=e_(l),f=t_(o,s),d=n[l];return Ia(n,d,f)}function zm(n,r){const l=Qo(n.theme);return Object.keys(n).map(s=>a_(n,r,s,l)).reduce(Ki,{})}function ct(n){return zm(n,Go)}ct.propTypes={},ct.filterProps=Go;function ft(n){return zm(n,$o)}ft.propTypes={},ft.filterProps=$o;function km(n=8,r=Qo({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 vs(...n){const r=n.reduce((s,o)=>(o.filterProps.forEach(f=>{s[f]=o}),s),{}),l=s=>Object.keys(s).reduce((o,f)=>r[f]?Ki(o,r[f](s)):o,{});return l.propTypes={},l.filterProps=n.reduce((s,o)=>s.concat(o.filterProps),[]),l}function pa(n){return typeof n!="number"?n:`${n}px solid`}function ga(n,r){return yt({prop:n,themeKey:"borders",transform:r})}const n_=ga("border",pa),r_=ga("borderTop",pa),i_=ga("borderRight",pa),l_=ga("borderBottom",pa),s_=ga("borderLeft",pa),u_=ga("borderColor"),o_=ga("borderTopColor"),c_=ga("borderRightColor"),f_=ga("borderBottomColor"),d_=ga("borderLeftColor"),h_=ga("outline",pa),m_=ga("outlineColor"),bs=n=>{if(n.borderRadius!==void 0&&n.borderRadius!==null){const r=Ji(n.theme,"shape.borderRadius",4),l=s=>({borderRadius:Fi(r,s)});return Ia(n,n.borderRadius,l)}return null};bs.propTypes={},bs.filterProps=["borderRadius"],vs(n_,r_,i_,l_,s_,u_,o_,c_,f_,d_,bs,h_,m_);const _s=n=>{if(n.gap!==void 0&&n.gap!==null){const r=Ji(n.theme,"spacing",8),l=s=>({gap:Fi(r,s)});return Ia(n,n.gap,l)}return null};_s.propTypes={},_s.filterProps=["gap"];const xs=n=>{if(n.columnGap!==void 0&&n.columnGap!==null){const r=Ji(n.theme,"spacing",8),l=s=>({columnGap:Fi(r,s)});return Ia(n,n.columnGap,l)}return null};xs.propTypes={},xs.filterProps=["columnGap"];const Ss=n=>{if(n.rowGap!==void 0&&n.rowGap!==null){const r=Ji(n.theme,"spacing",8),l=s=>({rowGap:Fi(r,s)});return Ia(n,n.rowGap,l)}return null};Ss.propTypes={},Ss.filterProps=["rowGap"];const y_=yt({prop:"gridColumn"}),p_=yt({prop:"gridRow"}),g_=yt({prop:"gridAutoFlow"}),v_=yt({prop:"gridAutoColumns"}),b_=yt({prop:"gridAutoRows"}),__=yt({prop:"gridTemplateColumns"}),x_=yt({prop:"gridTemplateRows"}),S_=yt({prop:"gridTemplateAreas"}),w_=yt({prop:"gridArea"});vs(_s,xs,Ss,y_,p_,g_,v_,b_,__,x_,S_,w_);function Vr(n,r){return r==="grey"?r:n}const A_=yt({prop:"color",themeKey:"palette",transform:Vr}),T_=yt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Vr}),E_=yt({prop:"backgroundColor",themeKey:"palette",transform:Vr});vs(A_,T_,E_);function la(n){return n<=1&&n!==0?`${n*100}%`:n}const C_=yt({prop:"width",transform:la}),Xo=n=>{if(n.maxWidth!==void 0&&n.maxWidth!==null){const r=l=>{var o,f,d,m,g;const s=((d=(f=(o=n.theme)==null?void 0:o.breakpoints)==null?void 0:f.values)==null?void 0:d[l])||ys[l];return s?((g=(m=n.theme)==null?void 0:m.breakpoints)==null?void 0:g.unit)!=="px"?{maxWidth:`${s}${n.theme.breakpoints.unit}`}:{maxWidth:s}:{maxWidth:la(l)}};return Ia(n,n.maxWidth,r)}return null};Xo.filterProps=["maxWidth"];const O_=yt({prop:"minWidth",transform:la}),z_=yt({prop:"height",transform:la}),k_=yt({prop:"maxHeight",transform:la}),N_=yt({prop:"minHeight",transform:la});yt({prop:"size",cssProperty:"width",transform:la}),yt({prop:"size",cssProperty:"height",transform:la});const R_=yt({prop:"boxSizing"});vs(C_,Xo,O_,z_,k_,N_,R_);const ws={border:{themeKey:"borders",transform:pa},borderTop:{themeKey:"borders",transform:pa},borderRight:{themeKey:"borders",transform:pa},borderBottom:{themeKey:"borders",transform:pa},borderLeft:{themeKey:"borders",transform:pa},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:pa},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:bs},color:{themeKey:"palette",transform:Vr},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Vr},backgroundColor:{themeKey:"palette",transform:Vr},p:{style:ft},pt:{style:ft},pr:{style:ft},pb:{style:ft},pl:{style:ft},px:{style:ft},py:{style:ft},padding:{style:ft},paddingTop:{style:ft},paddingRight:{style:ft},paddingBottom:{style:ft},paddingLeft:{style:ft},paddingX:{style:ft},paddingY:{style:ft},paddingInline:{style:ft},paddingInlineStart:{style:ft},paddingInlineEnd:{style:ft},paddingBlock:{style:ft},paddingBlockStart:{style:ft},paddingBlockEnd:{style:ft},m:{style:ct},mt:{style:ct},mr:{style:ct},mb:{style:ct},ml:{style:ct},mx:{style:ct},my:{style:ct},margin:{style:ct},marginTop:{style:ct},marginRight:{style:ct},marginBottom:{style:ct},marginLeft:{style:ct},marginX:{style:ct},marginY:{style:ct},marginInline:{style:ct},marginInlineStart:{style:ct},marginInlineEnd:{style:ct},marginBlock:{style:ct},marginBlockStart:{style:ct},marginBlockEnd:{style:ct},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:_s},rowGap:{style:Ss},columnGap:{style:xs},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:la},maxWidth:{style:Xo},minWidth:{transform:la},height:{transform:la},maxHeight:{transform:la},minHeight:{transform:la},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 M_(...n){const r=n.reduce((s,o)=>s.concat(Object.keys(o)),[]),l=new Set(r);return n.every(s=>l.size===Object.keys(s).length)}function D_(n,r){return typeof n=="function"?n(r):n}function j_(){function n(l,s,o,f){const d={[l]:s,theme:o},m=f[l];if(!m)return{[l]:s};const{cssProperty:g=l,themeKey:p,transform:S,style:w}=m;if(s==null)return null;if(p==="typography"&&s==="inherit")return{[l]:s};const D=ps(o,p)||{};return w?w(d):Ia(d,s,B=>{let E=gs(D,S,B);return B===E&&typeof B=="string"&&(E=gs(D,S,`${l}${B==="default"?"":Cm(B)}`,B)),g===!1?E:{[g]:E}})}function r(l){const{sx:s,theme:o={},nested:f}=l||{};if(!s)return null;const d=o.unstable_sxConfig??ws;function m(g){let p=g;if(typeof g=="function")p=g(o);else if(typeof g!="object")return g;if(!p)return null;const S=F1(o.breakpoints),w=Object.keys(S);let D=S;return Object.keys(p).forEach(_=>{const B=D_(p[_],o);if(B!=null)if(typeof B=="object")if(d[_])D=Ki(D,n(_,B,o,d));else{const E=Ia({theme:o},B,Z=>({[_]:Z}));M_(E,B)?D[_]=r({sx:B,theme:o,nested:!0}):D=Ki(D,E)}else D=Ki(D,n(_,B,o,d))}),!f&&o.modularCssLayers?{"@layer sx":Am(o,Em(w,D))}:Am(o,Em(w,D))}return Array.isArray(s)?s.map(m):m(s)}return r}const Lr=j_();Lr.filterProps=["sx"];function U_(n,r){var s;const l=this;if(l.vars){if(!((s=l.colorSchemes)!=null&&s[n])||typeof l.getColorSchemeSelector!="function")return{};let o=l.getColorSchemeSelector(n);return o==="&"?r:((o.includes("data-")||o.includes("."))&&(o=`*:where(${o.replace(/\s*&$/,"")}) &`),{[o]:r})}return l.palette.mode===n?r:{}}function Nm(n={},...r){const{breakpoints:l={},palette:s={},spacing:o,shape:f={},...d}=n,m=G1(l),g=km(o);let p=ia({breakpoints:m,direction:"ltr",components:{},palette:{mode:"light",...s},spacing:g,shape:{...K1,...f}},d);return p=X1(p),p.applyStyles=U_,p=r.reduce((S,w)=>ia(S,w),p),p.unstable_sxConfig={...ws,...d==null?void 0:d.unstable_sxConfig},p.unstable_sx=function(w){return Lr({sx:w,theme:this})},p}const Rm=n=>n,B_=(()=>{let n=Rm;return{configure(r){n=r},generate(r){return n(r)},reset(){n=Rm}}})(),V_={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 Mm(n,r,l="Mui"){const s=V_[r];return s?`${l}-${s}`:`${B_.generate(n)}-${r}`}function L_(n,r,l="Mui"){const s={};return r.forEach(o=>{s[o]=Mm(n,o,l)}),s}function Dm(n){const{variants:r,...l}=n,s={variants:r,style:rr(l),isProcessed:!0};return s.style===l||r&&r.forEach(o=>{typeof o.style!="function"&&(o.style=rr(o.style))}),s}const H_=Nm();function Ko(n){return n!=="ownerState"&&n!=="theme"&&n!=="sx"&&n!=="as"}function ir(n,r){return r&&n&&typeof n=="object"&&n.styles&&!n.styles.startsWith("@layer")&&(n.styles=`@layer ${r}{${String(n.styles)}}`),n}function q_(n){return n?(r,l)=>l[n]:null}function Z_(n,r,l){n.theme=$_(n.theme)?l:n.theme[r]||n.theme}function As(n,r,l){const s=typeof r=="function"?r(n):r;if(Array.isArray(s))return s.flatMap(o=>As(n,o,l));if(Array.isArray(s==null?void 0:s.variants)){let o;if(s.isProcessed)o=l?ir(s.style,l):s.style;else{const{variants:f,...d}=s;o=l?ir(rr(d),l):d}return jm(n,s.variants,[o],l)}return s!=null&&s.isProcessed?l?ir(rr(s.style),l):s.style:l?ir(rr(s),l):s}function jm(n,r,l=[],s=void 0){var f;let o;e:for(let d=0;d<r.length;d+=1){const m=r[d];if(typeof m.props=="function"){if(o??(o={...n,...n.ownerState,ownerState:n.ownerState}),!m.props(o))continue}else for(const g in m.props)if(n[g]!==m.props[g]&&((f=n.ownerState)==null?void 0:f[g])!==m.props[g])continue e;typeof m.style=="function"?(o??(o={...n,...n.ownerState,ownerState:n.ownerState}),l.push(s?ir(rr(m.style(o)),s):m.style(o))):l.push(s?ir(rr(m.style),s):m.style)}return l}function Y_(n={}){const{themeId:r,defaultTheme:l=H_,rootShouldForwardProp:s=Ko,slotShouldForwardProp:o=Ko}=n;function f(m){Z_(m,r,l)}return(m,g={})=>{H1(m,X=>X.filter(J=>J!==Lr));const{name:p,slot:S,skipVariantsResolver:w,skipSx:D,overridesResolver:_=q_(X_(S)),...B}=g,E=p&&p.startsWith("Mui")||S?"components":"custom",Z=w!==void 0?w:S&&S!=="Root"&&S!=="root"||!1,P=D||!1;let F=Ko;S==="Root"||S==="root"?F=s:S?F=o:Q_(m)&&(F=void 0);const re=L1(m,{shouldForwardProp:F,label:G_(),...B}),te=X=>{if(X.__emotion_real===X)return X;if(typeof X=="function")return function(we){return As(we,X,we.theme.modularCssLayers?E:void 0)};if(Wa(X)){const J=Dm(X);return function(De){return J.variants?As(De,J,De.theme.modularCssLayers?E:void 0):De.theme.modularCssLayers?ir(J.style,E):J.style}}return X},L=(...X)=>{const J=[],we=X.map(te),De=[];if(J.push(f),p&&_&&De.push(function($){var K,se;const le=(se=(K=$.theme.components)==null?void 0:K[p])==null?void 0:se.styleOverrides;if(!le)return null;const O={};for(const ze in le)O[ze]=As($,le[ze],$.theme.modularCssLayers?"theme":void 0);return _($,O)}),p&&!Z&&De.push(function($){var O,K;const Q=$.theme,le=(K=(O=Q==null?void 0:Q.components)==null?void 0:O[p])==null?void 0:K.variants;return le?jm($,le,[],$.theme.modularCssLayers?"theme":void 0):null}),P||De.push(Lr),Array.isArray(we[0])){const v=we.shift(),$=new Array(J.length).fill(""),Q=new Array(De.length).fill("");let le;le=[...$,...v,...Q],le.raw=[...$,...v.raw,...Q],J.unshift(le)}const at=[...J,...we,...De],ve=re(...at);return m.muiName&&(ve.muiName=m.muiName),ve};return re.withConfig&&(L.withConfig=re.withConfig),L}}function G_(n,r){return void 0}function $_(n){for(const r in n)return!1;return!0}function Q_(n){return typeof n=="string"&&n.charCodeAt(0)>96}function X_(n){return n&&n.charAt(0).toLowerCase()+n.slice(1)}function Jo(n,r,l=!1){const s={...r};for(const o in n)if(Object.prototype.hasOwnProperty.call(n,o)){const f=o;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 g in d)if(Object.prototype.hasOwnProperty.call(d,g)){const p=g;s[f][p]=Jo(d[p],m[p],l)}}}else f==="className"&&l&&r.className?s.className=Gh(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 K_(n,r=Number.MIN_SAFE_INTEGER,l=Number.MAX_SAFE_INTEGER){return Math.max(r,Math.min(n,l))}function Fo(n,r=0,l=1){return K_(n,r,l)}function J_(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,o)=>o<3?parseInt(s,16):Math.round(parseInt(s,16)/255*1e3)/1e3).join(", ")})`:""}function Tn(n){if(n.type)return n;if(n.charAt(0)==="#")return Tn(J_(n));const r=n.indexOf("("),l=n.substring(0,r);if(!["rgb","rgba","hsl","hsla","color"].includes(l))throw new Error(nr(9,n));let s=n.substring(r+1,n.length-1),o;if(l==="color"){if(s=s.split(" "),o=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(o))throw new Error(nr(10,o))}else s=s.split(",");return s=s.map(f=>parseFloat(f)),{type:l,values:s,colorSpace:o}}const F_=n=>{const r=Tn(n);return r.values.slice(0,3).map((l,s)=>r.type.includes("hsl")&&s!==0?`${l}%`:l).join(" ")},Wi=(n,r)=>{try{return F_(n)}catch{return n}};function Ts(n){const{type:r,colorSpace:l}=n;let{values:s}=n;return r.includes("rgb")?s=s.map((o,f)=>f<3?parseInt(o,10):o):r.includes("hsl")&&(s[1]=`${s[1]}%`,s[2]=`${s[2]}%`),r.includes("color")?s=`${l} ${s.join(" ")}`:s=`${s.join(", ")}`,`${r}(${s})`}function Um(n){n=Tn(n);const{values:r}=n,l=r[0],s=r[1]/100,o=r[2]/100,f=s*Math.min(o,1-o),d=(p,S=(p+l/30)%12)=>o-f*Math.max(Math.min(S-3,9-S,1),-1);let m="rgb";const g=[Math.round(d(0)*255),Math.round(d(8)*255),Math.round(d(4)*255)];return n.type==="hsla"&&(m+="a",g.push(r[3])),Ts({type:m,values:g})}function Wo(n){n=Tn(n);let r=n.type==="hsl"||n.type==="hsla"?Tn(Um(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=Wo(n),s=Wo(r);return(Math.max(l,s)+.05)/(Math.min(l,s)+.05)}function Bm(n,r){return n=Tn(n),r=Fo(r),(n.type==="rgb"||n.type==="hsl")&&(n.type+="a"),n.type==="color"?n.values[3]=`/${r}`:n.values[3]=r,Ts(n)}function lr(n,r,l){try{return Bm(n,r)}catch{return n}}function Es(n,r){if(n=Tn(n),r=Fo(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 Ts(n)}function Xe(n,r,l){try{return Es(n,r)}catch{return n}}function Cs(n,r){if(n=Tn(n),r=Fo(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 Ts(n)}function Ke(n,r,l){try{return Cs(n,r)}catch{return n}}function I_(n,r=.15){return Wo(n)>.5?Es(n,r):Cs(n,r)}function Os(n,r,l){try{return I_(n,r)}catch{return n}}const P_=Se.createContext(void 0);function ex(n){const{theme:r,name:l,props:s}=n;if(!r||!r.components||!r.components[l])return s;const o=r.components[l];return o.defaultProps?Jo(o.defaultProps,s,r.components.mergeClassNameAndStyle):!o.styleOverrides&&!o.variants?Jo(o,s,r.components.mergeClassNameAndStyle):s}function tx({props:n,name:r}){const l=Se.useContext(P_);return ex({props:n,name:r,theme:{components:l}})}const Vm={theme:void 0};function ax(n){let r,l;return function(o){let f=r;return(f===void 0||o.theme!==l)&&(Vm.theme=o.theme,f=Dm(n(Vm)),r=f,l=o.theme),f}}function nx(n=""){function r(...s){if(!s.length)return"";const o=s[0];return typeof o=="string"&&!o.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}-`:""}${o}${r(...s.slice(1))})`:`, ${o}`}return(s,...o)=>`var(--${n?`${n}-`:""}${s}${r(...o)})`}const Lm=(n,r,l,s=[])=>{let o=n;r.forEach((f,d)=>{d===r.length-1?Array.isArray(o)?o[Number(f)]=l:o&&typeof o=="object"&&(o[f]=l):o&&typeof o=="object"&&(o[f]||(o[f]=s.includes(f)?[]:{}),o=o[f])})},rx=(n,r,l)=>{function s(o,f=[],d=[]){Object.entries(o).forEach(([m,g])=>{(!l||l&&!l([...f,m]))&&g!=null&&(typeof g=="object"&&Object.keys(g).length>0?s(g,[...f,m],Array.isArray(g)?[...d,m]:d):r([...f,m],g,d))})}s(n)},ix=(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 Io(n,r){const{prefix:l,shouldSkipGeneratingVar:s}=r||{},o={},f={},d={};return rx(n,(m,g,p)=>{if((typeof g=="string"||typeof g=="number")&&(!s||!s(m,g))){const S=`--${l?`${l}-`:""}${m.join("-")}`,w=ix(m,g);Object.assign(o,{[S]:w}),Lm(f,m,`var(${S})`,p),Lm(d,m,`var(${S}, ${w})`,p)}},m=>m[0]==="vars"),{css:o,vars:f,varsWithDefaults:d}}function lx(n,r={}){const{getSelector:l=P,disableCssColorScheme:s,colorSchemeSelector:o,enableContrastVars:f}=r,{colorSchemes:d={},components:m,defaultColorScheme:g="light",...p}=n,{vars:S,css:w,varsWithDefaults:D}=Io(p,r);let _=D;const B={},{[g]:E,...Z}=d;if(Object.entries(Z||{}).forEach(([te,L])=>{const{vars:X,css:J,varsWithDefaults:we}=Io(L,r);_=ia(_,we),B[te]={css:J,vars:X}}),E){const{css:te,vars:L,varsWithDefaults:X}=Io(E,r);_=ia(_,X),B[g]={css:te,vars:L}}function P(te,L){var J,we;let X=o;if(o==="class"&&(X=".%s"),o==="data"&&(X="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(X=`[${o}="%s"]`),te){if(X==="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(X)return n.defaultColorScheme===te?`:root, ${X.replace("%s",String(te))}`:X.replace("%s",String(te))}return":root"}return{vars:_,generateThemeVars:()=>{let te={...S};return Object.entries(B).forEach(([,{vars:L}])=>{te=ia(te,L)}),te},generateStyleSheets:()=>{var De,at;const te=[],L=n.defaultColorScheme||"light";function X(ve,v){Object.keys(v).length&&te.push(typeof ve=="string"?{[ve]:{...v}}:ve)}X(l(void 0,{...w}),w);const{[L]:J,...we}=B;if(J){const{css:ve}=J,v=(at=(De=d[L])==null?void 0:De.palette)==null?void 0:at.mode,$=!s&&v?{colorScheme:v,...ve}:{...ve};X(l(L,{...$}),$)}return Object.entries(we).forEach(([ve,{css:v}])=>{var le,O;const $=(O=(le=d[ve])==null?void 0:le.palette)==null?void 0:O.mode,Q=!s&&$?{colorScheme:$,...v}:{...v};X(l(ve,{...Q}),Q)}),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 sx(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 Ii={black:"#000",white:"#fff"},ux={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"},Hr={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},qr={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Pi={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},Zr={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},Yr={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Gr={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function Hm(){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:Ii.white,default:Ii.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 qm=Hm();function Zm(){return{text:{primary:Ii.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:Ii.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 Po=Zm();function Ym(n,r,l,s){const o=s.light||s,f=s.dark||s*1.5;n[r]||(n.hasOwnProperty(l)?n[r]=n[l]:r==="light"?n.light=Cs(n.main,o):r==="dark"&&(n.dark=Es(n.main,f)))}function Gm(n,r,l,s,o){const f=o.light||o,d=o.dark||o*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 ox(n="light"){return n==="dark"?{main:Zr[200],light:Zr[50],dark:Zr[400]}:{main:Zr[700],light:Zr[400],dark:Zr[800]}}function cx(n="light"){return n==="dark"?{main:Hr[200],light:Hr[50],dark:Hr[400]}:{main:Hr[500],light:Hr[300],dark:Hr[700]}}function fx(n="light"){return n==="dark"?{main:qr[500],light:qr[300],dark:qr[700]}:{main:qr[700],light:qr[400],dark:qr[800]}}function dx(n="light"){return n==="dark"?{main:Yr[400],light:Yr[300],dark:Yr[700]}:{main:Yr[700],light:Yr[500],dark:Yr[900]}}function hx(n="light"){return n==="dark"?{main:Gr[400],light:Gr[300],dark:Gr[700]}:{main:Gr[800],light:Gr[500],dark:Gr[900]}}function mx(n="light"){return n==="dark"?{main:Pi[400],light:Pi[300],dark:Pi[700]}:{main:"#ed6c02",light:Pi[500],dark:Pi[900]}}function yx(n){return`oklch(from ${n} var(--__l) 0 h / var(--__a))`}function ec(n){const{mode:r="light",contrastThreshold:l=3,tonalOffset:s=.2,colorSpace:o,...f}=n,d=n.primary||ox(r),m=n.secondary||cx(r),g=n.error||fx(r),p=n.info||dx(r),S=n.success||hx(r),w=n.warning||mx(r);function D(Z){return o?yx(Z):W_(Z,Po.text.primary)>=l?Po.text.primary:qm.text.primary}const _=({color:Z,name:P,mainShade:F=500,lightShade:re=300,darkShade:te=700})=>{if(Z={...Z},!Z.main&&Z[F]&&(Z.main=Z[F]),!Z.hasOwnProperty("main"))throw new Error(nr(11,P?` (${P})`:"",F));if(typeof Z.main!="string")throw new Error(nr(12,P?` (${P})`:"",JSON.stringify(Z.main)));return o?(Gm(o,Z,"light",re,s),Gm(o,Z,"dark",te,s)):(Ym(Z,"light",re,s),Ym(Z,"dark",te,s)),Z.contrastText||(Z.contrastText=D(Z.main)),Z};let B;return r==="light"?B=Hm():r==="dark"&&(B=Zm()),ia({common:{...Ii},mode:r,primary:_({color:d,name:"primary"}),secondary:_({color:m,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:_({color:g,name:"error"}),warning:_({color:w,name:"warning"}),info:_({color:p,name:"info"}),success:_({color:S,name:"success"}),grey:ux,contrastThreshold:l,getContrastText:D,augmentColor:_,tonalOffset:s,...B},f)}function px(n){const r={};return Object.entries(n).forEach(s=>{const[o,f]=s;typeof f=="object"&&(r[o]=`${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 gx(n,r){return{toolbar:{minHeight:56,[n.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[n.up("sm")]:{minHeight:64}},...r}}function vx(n){return Math.round(n*1e5)/1e5}const $m={textTransform:"uppercase"},Qm='"Roboto", "Helvetica", "Arial", sans-serif';function bx(n,r){const{fontFamily:l=Qm,fontSize:s=14,fontWeightLight:o=300,fontWeightRegular:f=400,fontWeightMedium:d=500,fontWeightBold:m=700,htmlFontSize:g=16,allVariants:p,pxToRem:S,...w}=typeof r=="function"?r(n):r,D=s/14,_=S||(Z=>`${Z/g*D}rem`),B=(Z,P,F,re,te)=>({fontFamily:l,fontWeight:Z,fontSize:_(P),lineHeight:F,...l===Qm?{letterSpacing:`${vx(re/P)}em`}:{},...te,...p}),E={h1:B(o,96,1.167,-1.5),h2:B(o,60,1.2,-.5),h3:B(f,48,1.167,0),h4:B(f,34,1.235,.25),h5:B(f,24,1.334,0),h6:B(d,20,1.6,.15),subtitle1:B(f,16,1.75,.15),subtitle2:B(d,14,1.57,.1),body1:B(f,16,1.5,.15),body2:B(f,14,1.43,.15),button:B(d,14,1.75,.4,$m),caption:B(f,12,1.66,.4),overline:B(f,12,2.66,1,$m),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return ia({htmlFontSize:g,pxToRem:_,fontFamily:l,fontSize:s,fontWeightLight:o,fontWeightRegular:f,fontWeightMedium:d,fontWeightBold:m,...E},w,{clone:!1})}const _x=.2,xx=.14,Sx=.12;function st(...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,${xx})`,`${n[8]}px ${n[9]}px ${n[10]}px ${n[11]}px rgba(0,0,0,${Sx})`].join(",")}const wx=["none",st(0,2,1,-1,0,1,1,0,0,1,3,0),st(0,3,1,-2,0,2,2,0,0,1,5,0),st(0,3,3,-2,0,3,4,0,0,1,8,0),st(0,2,4,-1,0,4,5,0,0,1,10,0),st(0,3,5,-1,0,5,8,0,0,1,14,0),st(0,3,5,-1,0,6,10,0,0,1,18,0),st(0,4,5,-2,0,7,10,1,0,2,16,1),st(0,5,5,-3,0,8,10,1,0,3,14,2),st(0,5,6,-3,0,9,12,1,0,3,16,2),st(0,6,6,-3,0,10,14,1,0,4,18,3),st(0,6,7,-4,0,11,15,1,0,4,20,3),st(0,7,8,-4,0,12,17,2,0,5,22,4),st(0,7,8,-4,0,13,19,2,0,5,24,4),st(0,7,9,-4,0,14,21,2,0,5,26,4),st(0,8,9,-5,0,15,22,2,0,6,28,5),st(0,8,10,-5,0,16,24,2,0,6,30,5),st(0,8,11,-5,0,17,26,2,0,6,32,5),st(0,9,11,-5,0,18,28,2,0,7,34,6),st(0,9,12,-6,0,19,29,2,0,7,36,6),st(0,10,13,-6,0,20,31,3,0,8,38,7),st(0,10,13,-6,0,21,33,3,0,8,40,7),st(0,10,14,-6,0,22,35,3,0,8,42,7),st(0,11,14,-7,0,23,36,3,0,9,44,8),st(0,11,15,-7,0,24,38,3,0,9,46,8)],Ax={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)"},Tx={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Xm(n){return`${Math.round(n)}ms`}function Ex(n){if(!n)return 0;const r=n/36;return Math.min(Math.round((4+15*r**.25+r/5)*10),3e3)}function Cx(n){const r={...Ax,...n.easing},l={...Tx,...n.duration};return{getAutoHeightDuration:Ex,create:(o=["all"],f={})=>{const{duration:d=l.standard,easing:m=r.easeInOut,delay:g=0,...p}=f;return(Array.isArray(o)?o:[o]).map(S=>`${S} ${typeof d=="string"?d:Xm(d)} ${m} ${typeof g=="string"?g:Xm(g)}`).join(",")},...n,easing:r,duration:l}}const Ox={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function zx(n){return Wa(n)||typeof n>"u"||typeof n=="string"||typeof n=="boolean"||typeof n=="number"||Array.isArray(n)}function Km(n={}){const r={...n};function l(s){const o=Object.entries(s);for(let f=0;f<o.length;f++){const[d,m]=o[f];!zx(m)||d.startsWith("unstable_")?delete s[d]:Wa(m)&&(s[d]={...m},l(s[d]))}}return l(r),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
109
+
110
+ const theme = ${JSON.stringify(r,null,2)};
111
+
112
+ theme.breakpoints = createBreakpoints(theme.breakpoints || {});
113
+ theme.transitions = createTransitions(theme.transitions || {});
114
+
115
+ export default theme;`}function Jm(n){return typeof n=="number"?`${(n*100).toFixed(0)}%`:`calc((${n}) * 100%)`}const kx=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 Nx(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})`:Bm(r,kx(l))},lighten(r,l){const s=this||n;return s.colorSpace?`color-mix(in ${s.colorSpace}, ${r}, #fff ${Jm(l)})`:Cs(r,l)},darken(r,l){const s=this||n;return s.colorSpace?`color-mix(in ${s.colorSpace}, ${r}, #000 ${Jm(l)})`:Es(r,l)}})}function tc(n={},...r){const{breakpoints:l,mixins:s={},spacing:o,palette:f={},transitions:d={},typography:m={},shape:g,colorSpace:p,...S}=n;if(n.vars&&n.generateThemeVars===void 0)throw new Error(nr(20));const w=ec({...f,colorSpace:p}),D=Nm(n);let _=ia(D,{mixins:gx(D.breakpoints,s),palette:w,shadows:wx.slice(),typography:bx(w,m),transitions:Cx(d),zIndex:{...Ox}});return _=ia(_,S),_=r.reduce((B,E)=>ia(B,E),_),_.unstable_sxConfig={...ws,...S==null?void 0:S.unstable_sxConfig},_.unstable_sx=function(E){return Lr({sx:E,theme:this})},_.toRuntimeSource=Km,Nx(_),_}function Rx(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 Mx=[...Array(25)].map((n,r)=>{if(r===0)return"none";const l=Rx(r);return`linear-gradient(rgba(255 255 255 / ${l}), rgba(255 255 255 / ${l}))`});function Fm(n){return{inputPlaceholder:n==="dark"?.5:.42,inputUnderline:n==="dark"?.7:.42,switchTrackDisabled:n==="dark"?.2:.12,switchTrack:n==="dark"?.3:.38}}function Wm(n){return n==="dark"?Mx:[]}function Dx(n){const{palette:r={mode:"light"},opacity:l,overlays:s,colorSpace:o,...f}=n,d=ec({...r,colorSpace:o});return{palette:d,opacity:{...Fm(d.mode),...l},overlays:s||Wm(d.mode),...f}}function jx(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 Ux=n=>[...[...Array(25)].map((r,l)=>`--${n?`${n}-`:""}overlays-${l}`),`--${n?`${n}-`:""}palette-AppBar-darkBg`,`--${n?`${n}-`:""}palette-AppBar-darkColor`],Bx=n=>(r,l)=>{const s=n.rootSelector||":root",o=n.colorSchemeSelector;let f=o;if(o==="class"&&(f=".%s"),o==="data"&&(f="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(f=`[${o}="%s"]`),n.defaultColorScheme===r){if(r==="dark"){const d={};return Ux(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 Vx(n,r){r.forEach(l=>{n[l]||(n[l]={})})}function V(n,r,l){!n[r]&&l&&(n[r]=l)}function el(n){return typeof n!="string"||!n.startsWith("hsl")?n:Um(n)}function Pa(n,r){`${r}Channel`in n||(n[`${r}Channel`]=Wi(el(n[r])))}function Lx(n){return typeof n=="number"?`${n}px`:typeof n=="string"||typeof n=="function"||Array.isArray(n)?n:"8px"}const Za=n=>{try{return n()}catch{}},Hx=(n="mui")=>nx(n);function ac(n,r,l,s,o){if(!l)return;l=l===!0?{}:l;const f=o==="dark"?"dark":"light";if(!s){r[o]=Dx({...l,palette:{mode:f,...l==null?void 0:l.palette},colorSpace:n});return}const{palette:d,...m}=tc({...s,palette:{mode:f,...l==null?void 0:l.palette},colorSpace:n});return r[o]={...l,palette:d,opacity:{...Fm(f),...l==null?void 0:l.opacity},overlays:(l==null?void 0:l.overlays)||Wm(f)},m}function qx(n={},...r){const{colorSchemes:l={light:!0},defaultColorScheme:s,disableCssColorScheme:o=!1,cssVarPrefix:f="mui",nativeColor:d=!1,shouldSkipGeneratingVar:m=jx,colorSchemeSelector:g=l.light&&l.dark?"media":void 0,rootSelector:p=":root",...S}=n,w=Object.keys(l)[0],D=s||(l.light&&w!=="light"?"light":w),_=Hx(f),{[D]:B,light:E,dark:Z,...P}=l,F={...P};let re=B;if((D==="dark"&&!("dark"in l)||D==="light"&&!("light"in l))&&(re=!0),!re)throw new Error(nr(21,D));let te;d&&(te="oklch");const L=ac(te,F,re,S,D);E&&!F.light&&ac(te,F,E,void 0,"light"),Z&&!F.dark&&ac(te,F,Z,void 0,"dark");let X={defaultColorScheme:D,...L,cssVarPrefix:f,colorSchemeSelector:g,rootSelector:p,getCssVar:_,colorSchemes:F,font:{...px(L.typography),...L.font},spacing:Lx(S.spacing)};Object.keys(X.colorSchemes).forEach(ve=>{const v=X.colorSchemes[ve].palette,$=le=>{const O=le.split("-"),K=O[1],se=O[2];return _(le,v[K][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 Q(le,O,K){if(te){let se;return le===lr&&(se=`transparent ${((1-K)*100).toFixed(0)}%`),le===Xe&&(se=`#000 ${(K*100).toFixed(0)}%`),le===Ke&&(se=`#fff ${(K*100).toFixed(0)}%`),`color-mix(in ${te}, ${O}, ${se})`}return le(O,K)}if(Vx(v,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),v.mode==="light"){V(v.Alert,"errorColor",Q(Xe,d?_("palette-error-light"):v.error.light,.6)),V(v.Alert,"infoColor",Q(Xe,d?_("palette-info-light"):v.info.light,.6)),V(v.Alert,"successColor",Q(Xe,d?_("palette-success-light"):v.success.light,.6)),V(v.Alert,"warningColor",Q(Xe,d?_("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",Za(()=>v.getContrastText(v.error.main))),V(v.Alert,"infoFilledColor",Za(()=>v.getContrastText(v.info.main))),V(v.Alert,"successFilledColor",Za(()=>v.getContrastText(v.success.main))),V(v.Alert,"warningFilledColor",Za(()=>v.getContrastText(v.warning.main))),V(v.Alert,"errorStandardBg",Q(Ke,d?_("palette-error-light"):v.error.light,.9)),V(v.Alert,"infoStandardBg",Q(Ke,d?_("palette-info-light"):v.info.light,.9)),V(v.Alert,"successStandardBg",Q(Ke,d?_("palette-success-light"):v.success.light,.9)),V(v.Alert,"warningStandardBg",Q(Ke,d?_("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",Q(Ke,d?_("palette-primary-main"):v.primary.main,.62)),V(v.LinearProgress,"secondaryBg",Q(Ke,d?_("palette-secondary-main"):v.secondary.main,.62)),V(v.LinearProgress,"errorBg",Q(Ke,d?_("palette-error-main"):v.error.main,.62)),V(v.LinearProgress,"infoBg",Q(Ke,d?_("palette-info-main"):v.info.main,.62)),V(v.LinearProgress,"successBg",Q(Ke,d?_("palette-success-main"):v.success.main,.62)),V(v.LinearProgress,"warningBg",Q(Ke,d?_("palette-warning-light"):v.warning.main,.62)),V(v.Skeleton,"bg",te?Q(lr,d?_("palette-text-primary"):v.text.primary,.11):`rgba(${$("palette-text-primaryChannel")} / 0.11)`),V(v.Slider,"primaryTrack",Q(Ke,d?_("palette-primary-main"):v.primary.main,.62)),V(v.Slider,"secondaryTrack",Q(Ke,d?_("palette-secondary-main"):v.secondary.main,.62)),V(v.Slider,"errorTrack",Q(Ke,d?_("palette-error-main"):v.error.main,.62)),V(v.Slider,"infoTrack",Q(Ke,d?_("palette-info-main"):v.info.main,.62)),V(v.Slider,"successTrack",Q(Ke,d?_("palette-success-main"):v.success.main,.62)),V(v.Slider,"warningTrack",Q(Ke,d?_("palette-warning-main"):v.warning.main,.62));const le=te?Q(Xe,d?_("palette-background-default"):v.background.default,.6825):Os(v.background.default,.8);V(v.SnackbarContent,"bg",le),V(v.SnackbarContent,"color",Za(()=>te?Po.text.primary:v.getContrastText(le))),V(v.SpeedDialAction,"fabHoverBg",Os(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",Q(Ke,d?_("palette-primary-main"):v.primary.main,.62)),V(v.Switch,"secondaryDisabledColor",Q(Ke,d?_("palette-secondary-main"):v.secondary.main,.62)),V(v.Switch,"errorDisabledColor",Q(Ke,d?_("palette-error-main"):v.error.main,.62)),V(v.Switch,"infoDisabledColor",Q(Ke,d?_("palette-info-main"):v.info.main,.62)),V(v.Switch,"successDisabledColor",Q(Ke,d?_("palette-success-main"):v.success.main,.62)),V(v.Switch,"warningDisabledColor",Q(Ke,d?_("palette-warning-main"):v.warning.main,.62)),V(v.TableCell,"border",Q(Ke,lr(d?_("palette-divider"):v.divider,1),.88)),V(v.Tooltip,"bg",Q(lr,d?_("palette-grey-700"):v.grey[700],.92))}if(v.mode==="dark"){V(v.Alert,"errorColor",Q(Ke,d?_("palette-error-light"):v.error.light,.6)),V(v.Alert,"infoColor",Q(Ke,d?_("palette-info-light"):v.info.light,.6)),V(v.Alert,"successColor",Q(Ke,d?_("palette-success-light"):v.success.light,.6)),V(v.Alert,"warningColor",Q(Ke,d?_("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",Za(()=>v.getContrastText(v.error.dark))),V(v.Alert,"infoFilledColor",Za(()=>v.getContrastText(v.info.dark))),V(v.Alert,"successFilledColor",Za(()=>v.getContrastText(v.success.dark))),V(v.Alert,"warningFilledColor",Za(()=>v.getContrastText(v.warning.dark))),V(v.Alert,"errorStandardBg",Q(Xe,d?_("palette-error-light"):v.error.light,.9)),V(v.Alert,"infoStandardBg",Q(Xe,d?_("palette-info-light"):v.info.light,.9)),V(v.Alert,"successStandardBg",Q(Xe,d?_("palette-success-light"):v.success.light,.9)),V(v.Alert,"warningStandardBg",Q(Xe,d?_("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",Q(Xe,d?_("palette-primary-main"):v.primary.main,.5)),V(v.LinearProgress,"secondaryBg",Q(Xe,d?_("palette-secondary-main"):v.secondary.main,.5)),V(v.LinearProgress,"errorBg",Q(Xe,d?_("palette-error-main"):v.error.main,.5)),V(v.LinearProgress,"infoBg",Q(Xe,d?_("palette-info-main"):v.info.main,.5)),V(v.LinearProgress,"successBg",Q(Xe,d?_("palette-success-main"):v.success.main,.5)),V(v.LinearProgress,"warningBg",Q(Xe,d?_("palette-warning-main"):v.warning.main,.5)),V(v.Skeleton,"bg",te?Q(lr,d?_("palette-text-primary"):v.text.primary,.13):`rgba(${$("palette-text-primaryChannel")} / 0.13)`),V(v.Slider,"primaryTrack",Q(Xe,d?_("palette-primary-main"):v.primary.main,.5)),V(v.Slider,"secondaryTrack",Q(Xe,d?_("palette-secondary-main"):v.secondary.main,.5)),V(v.Slider,"errorTrack",Q(Xe,d?_("palette-error-main"):v.error.main,.5)),V(v.Slider,"infoTrack",Q(Xe,d?_("palette-info-main"):v.info.main,.5)),V(v.Slider,"successTrack",Q(Xe,d?_("palette-success-main"):v.success.main,.5)),V(v.Slider,"warningTrack",Q(Xe,d?_("palette-warning-light"):v.warning.main,.5));const le=te?Q(Ke,d?_("palette-background-default"):v.background.default,.985):Os(v.background.default,.98);V(v.SnackbarContent,"bg",le),V(v.SnackbarContent,"color",Za(()=>te?qm.text.primary:v.getContrastText(le))),V(v.SpeedDialAction,"fabHoverBg",Os(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",Q(Xe,d?_("palette-primary-main"):v.primary.main,.55)),V(v.Switch,"secondaryDisabledColor",Q(Xe,d?_("palette-secondary-main"):v.secondary.main,.55)),V(v.Switch,"errorDisabledColor",Q(Xe,d?_("palette-error-main"):v.error.main,.55)),V(v.Switch,"infoDisabledColor",Q(Xe,d?_("palette-info-main"):v.info.main,.55)),V(v.Switch,"successDisabledColor",Q(Xe,d?_("palette-success-main"):v.success.main,.55)),V(v.Switch,"warningDisabledColor",Q(Xe,d?_("palette-warning-light"):v.warning.main,.55)),V(v.TableCell,"border",Q(Xe,lr(d?_("palette-divider"):v.divider,1),.68)),V(v.Tooltip,"bg",Q(lr,d?_("palette-grey-700"):v.grey[700],.92))}Pa(v.background,"default"),Pa(v.background,"paper"),Pa(v.common,"background"),Pa(v.common,"onBackground"),Pa(v,"divider"),Object.keys(v).forEach(le=>{const O=v[le];le!=="tonalOffset"&&O&&typeof O=="object"&&(O.main&&V(v[le],"mainChannel",Wi(el(O.main))),O.light&&V(v[le],"lightChannel",Wi(el(O.light))),O.dark&&V(v[le],"darkChannel",Wi(el(O.dark))),O.contrastText&&V(v[le],"contrastTextChannel",Wi(el(O.contrastText))),le==="text"&&(Pa(v[le],"primary"),Pa(v[le],"secondary")),le==="action"&&(O.active&&Pa(v[le],"active"),O.selected&&Pa(v[le],"selected")))})}),X=r.reduce((ve,v)=>ia(ve,v),X);const J={prefix:f,disableCssColorScheme:o,shouldSkipGeneratingVar:m,getSelector:Bx(X),enableContrastVars:d},{vars:we,generateThemeVars:De,generateStyleSheets:at}=lx(X,J);return X.vars=we,Object.entries(X.colorSchemes[X.defaultColorScheme]).forEach(([ve,v])=>{X[ve]=v}),X.generateThemeVars=De,X.generateStyleSheets=at,X.generateSpacing=function(){return km(S.spacing,Qo(this))},X.getColorSchemeSelector=sx(g),X.spacing=X.generateSpacing(),X.shouldSkipGeneratingVar=m,X.unstable_sxConfig={...ws,...S==null?void 0:S.unstable_sxConfig},X.unstable_sx=function(v){return Lr({sx:v,theme:this})},X.toRuntimeSource=Km,X}function Im(n,r,l){n.colorSchemes&&l&&(n.colorSchemes[r]={...l!==!0&&l,palette:ec({...l===!0?{}:l.palette,mode:r})})}function Zx(n={},...r){const{palette:l,cssVariables:s=!1,colorSchemes:o=l?void 0:{light:!0},defaultColorScheme:f=l==null?void 0:l.mode,...d}=n,m=f||"light",g=o==null?void 0:o[m],p={...o,...l?{[m]:{...typeof g!="boolean"&&g,palette:l}}:void 0};if(s===!1){if(!("colorSchemes"in n))return tc(n,...r);let S=l;"palette"in n||p[m]&&(p[m]!==!0?S=p[m].palette:m==="dark"&&(S={mode:"dark"}));const w=tc({...n,palette:S},...r);return w.defaultColorScheme=m,w.colorSchemes=p,w.palette.mode==="light"&&(w.colorSchemes.light={...p.light!==!0&&p.light,palette:w.palette},Im(w,"dark",p.dark)),w.palette.mode==="dark"&&(w.colorSchemes.dark={...p.dark!==!0&&p.dark,palette:w.palette},Im(w,"light",p.light)),w}return!l&&!("light"in p)&&m==="light"&&(p.light=!0),qx({...d,colorSchemes:p,defaultColorScheme:m,...typeof s!="boolean"&&s},...r)}function Yx(n){return String(n).match(/[\d.\-+]*\s*(.*)/)[1]||""}function Gx(n){return parseFloat(n)}const $x=Zx();function Qx(n){return n!=="ownerState"&&n!=="theme"&&n!=="sx"&&n!=="as"}const Xx=Y_({themeId:qb,defaultTheme:$x,rootShouldForwardProp:n=>Qx(n)&&n!=="classes"}),Kx=ax;function Jx(n){return tx(n)}function Fx(n){return Mm("MuiSkeleton",n)}L_("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const Wx=n=>{const{classes:r,variant:l,animation:s,hasChildren:o,width:f,height:d}=n;return Hb({root:["root",l,s,o&&"withChildren",o&&!f&&"fitContent",o&&!d&&"heightAuto"]},Fx,r)},nc=pm`
116
+ 0% {
117
+ opacity: 1;
118
+ }
119
+
120
+ 50% {
121
+ opacity: 0.4;
122
+ }
123
+
124
+ 100% {
125
+ opacity: 1;
126
+ }
127
+ `,rc=pm`
128
+ 0% {
129
+ transform: translateX(-100%);
130
+ }
131
+
132
+ 50% {
133
+ /* +0.5s of delay between each loop */
134
+ transform: translateX(100%);
135
+ }
136
+
137
+ 100% {
138
+ transform: translateX(100%);
139
+ }
140
+ `,Ix=typeof nc!="string"?qo`
141
+ animation: ${nc} 2s ease-in-out 0.5s infinite;
142
+ `:null,Px=typeof rc!="string"?qo`
143
+ &::after {
144
+ animation: ${rc} 2s linear 0.5s infinite;
145
+ }
146
+ `:null,eS=Xx("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]}})(Kx(({theme:n})=>{const r=Yx(n.shape.borderRadius)||"px",l=Gx(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:Ix||{animation:`${nc} 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(
147
+ 90deg,
148
+ transparent,
149
+ ${(n.vars||n).palette.action.hover},
150
+ transparent
151
+ )`,content:'""',position:"absolute",transform:"translateX(-100%)",bottom:0,left:0,right:0,top:0}}},{props:{animation:"wave"},style:Px||{"&::after":{animation:`${rc} 2s linear 0.5s infinite`}}}]}})),tS=Se.forwardRef(function(r,l){const s=Jx({props:r,name:"MuiSkeleton"}),{animation:o="pulse",className:f,component:d="span",height:m,style:g,variant:p="text",width:S,...w}=s,D={...s,animation:o,component:d,variant:p,hasChildren:!!w.children},_=Wx(D);return U.jsx(eS,{as:d,ref:l,className:Gh(_.root,f),ownerState:D,...w,style:{width:S,height:m,...g}})}),aS=n=>Number(String(n).replace(",",".")),ic={santo_remedio:{client_id:ka("VITE_KEYCLOAK_CLIENTID_SANTOREMEDIO"),client_secret:ka("VITE_KEYCLOAK_SECRET_SANTOREMEDIO"),client_realm:ka("VITE_KEYCLOAK_REALM_SANTOREMEDIO")}},nS=async({tenant_id:n})=>{var f,d,m;const r=new URLSearchParams({grant_type:ka("VITE_KEYCLOAK_GRANT_TYPE")||"",client_id:((f=ic[n])==null?void 0:f.client_id)||"",client_secret:((d=ic[n])==null?void 0:d.client_secret)||"",scope:ka("VITE_KEYCLOAK_SCOPE")||"",accessToken:ka("VITE_KEYCLOAK_ACCESSTOKEN")||""}),s=await(await fetch(`${ka("VITE_KEYCLOAK_BASEURL")}/realms/${(m=ic[n])==null?void 0:m.client_realm}/protocol/openid-connect/token`,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},credentials:"include",body:r.toString()})).json();if(!s.access_token)throw new Error("Authorization failed");return Bi.set("pbm-token",s.access_token,{secure:!0,sameSite:"Strict",expires:s.expires_in/86400}),s},rS=async({PRODUCT_EAN:n})=>{const r=ka("VITE_API_URL"),l=Bi.get("pbm-token");if(!l)throw new Error("Token is not defined in cookies or is expired");const o=await(await fetch(`${r}/products/ean/${n}`,{method:"GET",headers:{Authorization:`Bearer ${l}`,"Content-Type":"application/json"}})).json();if(!o.success)throw new Error(o.message||"Failed to fetch authorization");return o},iS=async n=>{const r=ka("VITE_API_URL"),l=Bi.get("pbm-token");if(!l)throw new Error("Token is not defined in cookies or is expired");const o=await(await fetch(`${r}/products/program-verification/${n}`,{method:"GET",headers:{Authorization:`Bearer ${l}`,"Content-Type":"application/json"}})).json();if(!o.success)throw new Error(o.message||"Failed to fetch authorization");return o},lS={primaryColor:"#44c2c0",secondaryColor:"#339c9b",backgroundColor:"#ffffff",textColor:"#52525b",borderColor:"#44c2c0"},sS=ao(n=>({...lS,setTheme:r=>n(l=>({...l,...r}))}));function Pm(n){return no(sS,(r=>r))}const uS=n=>{const{setTargetProduct:r,targetProduct:l,setIsAuthenticatedShopper:s,setCustomLoginUrl:o}=aa(),{setTheme:f}=Pm(),[d,m]=Se.useState(!1),[g,p]=Se.useState(!1),[S,w]=Se.useState(!0),D=async()=>{try{const E=await nS({tenant_id:n.tenant_id});return E.access_token||console.error("PBMLOG: Authorization failed!"),E.access_token!==void 0}catch(E){return console.error("Error fetching authorization:",E),!1}},_=async()=>{if(!n.ean_product)return console.error("PBMLOG: Ean is not defined."),w(!1),!1;try{const E=await iS(n.ean_product);if(E.success){const Z=E.data,P=Z.ean==n.ean_product&&Z.showModule;return p(P),P}}catch(E){console.error(E)}return!1},B=async()=>{try{if(!n.ean_product){console.error("PBMLOG: Ean is not defined."),w(!1);return}const E=await rS({PRODUCT_EAN:n.ean_product});if(E.success&&E.data){w(!0);const{pbm:Z,sku:P,...F}=E.data;r({...l,...F,productId:Number(F.productId),informativeMessage:Z.informativeMessage??"",discountMax:Z.discountMax??0,industryLogo:Z.imageLink??void 0,ean:n.ean_product}),s(n.is_authenticated_shopper),o(n.custom_login_url)}else w(!1)}catch(E){console.error(E),w(!1)}};return Se.useEffect(()=>{let E=!0;return(async()=>{n.theme&&f(n.theme),!(!await D()||!E||!await _()||!E)&&(await B(),E&&m(!0))})(),()=>{E=!1}},[n.ean_product,n.tenant_id]),{IsReady:d,IsValid:g,EanProductExist:S}};function oS(){const[n,r]=Se.useState(!1),{setState:l}=aa(),{resetModal:s,modal:o}=Zi(),f=o.open&&o.id==="iframe_pbm";Se.useEffect(()=>{f&&r(!1)},[f,o.url]);const d=()=>{o.url&&window.open(o.url,"_blank","noopener,noreferrer")},m=()=>{l("isEmpty"),s()};if(o.url)return U.jsxs("main",{className:Qt("fixed inset-0 flex items-center justify-center z-50 flex-col transition-all duration-300 pt-[10%]",f?"opacity-100 pointer-events-auto":"opacity-0 pointer-events-none"),id:"iframe_pbm",children:[U.jsx("div",{className:"bg-black/40 inset-0 absolute backdrop-blur-sm",onClick:m}),U.jsxs("section",{className:"w-[90%] md:w-4/5 gap-4 h-auto bg-zinc-900 py-3 px-6 flex items-center justify-end rounded-t-2xl border-b border-white/10 z-10 shadow-2xl",children:[U.jsx(ya,{onClick:m,className:"bg-red-500 hover:bg-red-400 w-auto px-6 h-9 transition-all active:scale-95 shadow-lg text-xs md:text-sm",children:"Cancelar"}),U.jsx(ya,{onClick:m,className:"bg-blue-600 hover:bg-blue-500 w-auto px-6 h-9 transition-all active:scale-95 shadow-lg text-xs md:text-sm",children:"Finalizei o formulário"})]}),U.jsx("div",{className:"w-[90%] md:w-4/5 h-[60vh] bg-zinc-900 z-10 overflow-hidden relative shadow-2xl",children:n?U.jsxs("div",{className:"absolute inset-0 flex flex-col items-center justify-center p-8 text-center bg-zinc-900",children:[U.jsx("div",{className:"bg-yellow-500/10 p-4 rounded-full mb-4 animate-pulse",children:U.jsx(Bh,{size:48,className:"text-yellow-500"})}),U.jsx(Pn,{textColor:"white",textSize:"20px",textAlign:"center",className:"mb-2",children:"Não foi possível carregar o conteúdo"}),U.jsx(er,{textColor:"#a1a1aa",textAlign:"center",className:"mb-8 max-w-md",children:"Este conteúdo não permite exibição integrada por segurança. Clique no botão abaixo para concluir em uma nova aba."}),U.jsxs(ya,{onClick:d,className:"flex items-center gap-2 w-auto px-8 h-12 shadow-xl shadow-emerald-500/20",children:[U.jsx(Uh,{size:18}),"Abrir em nova janela"]})]}):U.jsx("iframe",{src:o.url,title:o.label??"Conteúdo PBM",className:"w-full h-full border-none bg-white animate-fade-in",allowFullScreen:!0,onError:()=>r(!0)})}),U.jsxs("section",{className:"w-[90%] md:w-4/5 flex flex-col md:flex-row items-center justify-between gap-3 bg-zinc-900 py-4 px-6 rounded-b-2xl border-t border-white/5 z-10 shadow-2xl",children:[U.jsxs("div",{className:"flex items-center gap-2",children:[U.jsx(Bh,{size:18,className:"text-yellow-500 shrink-0"}),U.jsxs(er,{textColor:"white",className:"text-[10px] md:text-xs",children:[U.jsx("span",{className:"text-yellow-500 font-bold mr-1",children:"Importante:"}),"Se a página não carregar, tente abrir em tela cheia usando o botão ao lado."]})]}),U.jsxs("button",{onClick:d,className:"text-white/60 hover:text-white text-[11px] underline flex items-center gap-1 transition-colors cursor-pointer",children:[U.jsx(Uh,{size:14})," Abrir em nova aba"]})]})]})}function cS(n){const{state:r}=aa(),{IsReady:l,EanProductExist:s,IsValid:o}=uS(n),{setErrorMessage:f}=Oo(),d=Pm(),[m,g]=Se.useTransition(),p=aS(n.original_product_price);if(o)return l?s?U.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},children:[U.jsxs(io,{variant:"main",children:[U.jsx(ov,{originalProductPrice:p||0}),U.jsx(io,{variant:"simple",children:m?U.jsx(Lh,{}):U.jsxs(U.Fragment,{children:[r==="isEmpty"&&U.jsx(zb,{startTransition:g}),r==="isInvalid"&&U.jsx(jb,{}),r==="isRegistered"&&U.jsx(Ub,{}),(r==="isActivated"||r==="isPreview")&&U.jsx(Db,{}),r==="isError"&&U.jsx(Zh,{})]})}),U.jsx(dv,{})]}),U.jsx(Lb,{ID:"ShopperIsNotAuthenticated"}),U.jsx(oS,{})]}):(f("O produto não foi encontrado no sistema. Por favor, tente novamente mais tarde ou contate o suporte."),U.jsx("div",{id:"pbm-library-root",children:U.jsx(Zh,{})})):U.jsx(tS,{variant:"rectangular",style:{borderRadius:"12px"},width:460,height:358})}const fS='/*! 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-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-border-style:solid;--tw-font-weight: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-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--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-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-yellow-500:oklch(79.5% .184 86.047);--color-green-400:oklch(79.2% .209 151.711);--color-green-500:oklch(72.3% .219 149.579);--color-emerald-500:oklch(69.6% .17 162.48);--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-blue-600:oklch(54.6% .245 262.881);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-600:oklch(44.6% .03 256.802);--color-zinc-300:oklch(87.1% .006 286.286);--color-zinc-400:oklch(70.5% .015 286.067);--color-zinc-600:oklch(44.2% .017 285.786);--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;--container-md:28rem;--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;--radius-lg:.5rem;--radius-xl:.75rem;--radius-2xl:1rem;--animate-spin:spin 1s linear infinite;--animate-pulse:pulse 2s cubic-bezier(.4, 0, .6, 1) infinite;--blur-sm:8px;--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}.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-6{top:calc(var(--spacing) * -6)}.-right-3{right:calc(var(--spacing) * -3)}.-bottom-3{bottom:calc(var(--spacing) * -3)}.left-2{left:calc(var(--spacing) * 2)}.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}}.mt-5{margin-top:calc(var(--spacing) * 5)}.mr-1{margin-right:calc(var(--spacing) * 1)}.mb-0{margin-bottom:calc(var(--spacing) * 0)}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.mb-8{margin-bottom:calc(var(--spacing) * 8)}.ml-auto{margin-left:auto}.block{display:block}.flex{display:flex}.hidden{display:none}.inline{display:inline}.table{display:table}.aspect-auto{aspect-ratio:auto}.h-8{height:calc(var(--spacing) * 8)}.h-9{height:calc(var(--spacing) * 9)}.h-10{height:calc(var(--spacing) * 10)}.h-12{height:calc(var(--spacing) * 12)}.h-\\[60vh\\]{height:60vh}.h-auto{height:auto}.h-full{height:100%}.w-1\\/5{width:20%}.w-3xs{width:var(--container-3xs)}.w-4\\/5{width:80%}.w-8{width:calc(var(--spacing) * 8)}.w-11\\/12{width:91.6667%}.w-\\[90\\%\\]{width:90%}.w-auto{width:auto}.w-full{width:100%}.max-w-\\(--max-container\\),.max-w-\\[var\\(--max-container\\)\\]{max-width:var(--max-container)}.max-w-md{max-width:var(--container-md)}.min-w-\\(--min-container\\){min-width:var(--min-container)}.min-w-20{min-width:calc(var(--spacing) * 20)}.min-w-\\[var\\(--min-container\\)\\]{min-width:var(--min-container)}.shrink-0{flex-shrink:0}.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-pulse{animation:var(--animate-pulse)}.animate-spin{animation:var(--animate-spin)}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.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)}.overflow-hidden{overflow:hidden}.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)}.rounded-e-lg{border-start-end-radius:var(--radius-lg);border-end-end-radius:var(--radius-lg)}.rounded-t-2xl{border-top-left-radius:var(--radius-2xl);border-top-right-radius:var(--radius-2xl)}.rounded-b-2xl{border-bottom-right-radius:var(--radius-2xl);border-bottom-left-radius:var(--radius-2xl)}.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-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-none{--tw-border-style:none;border-style:none}.border-\\(--pbm-border\\){border-color:var(--pbm-border)}.border-emerald-700{border-color:var(--color-emerald-700)}.border-gray-300{border-color:var(--color-gray-300)}.border-white\\/5{border-color:#ffffff0d}@supports (color:color-mix(in lab,red,red)){.border-white\\/5{border-color:color-mix(in oklab,var(--color-white) 5%,transparent)}}.border-white\\/10{border-color:#ffffff1a}@supports (color:color-mix(in lab,red,red)){.border-white\\/10{border-color:color-mix(in oklab,var(--color-white) 10%,transparent)}}.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-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-blue-600{background-color:var(--color-blue-600)}.bg-emerald-500{background-color:var(--color-emerald-500)}.bg-gray-100{background-color:var(--color-gray-100)}.bg-gray-600{background-color:var(--color-gray-600)}.bg-green-500{background-color:var(--color-green-500)}.bg-red-500{background-color:var(--color-red-500)}.bg-transparent{background-color:#0000}.bg-white{background-color:var(--color-white)}.bg-yellow-500\\/10{background-color:#edb2001a}@supports (color:color-mix(in lab,red,red)){.bg-yellow-500\\/10{background-color:color-mix(in oklab,var(--color-yellow-500) 10%,transparent)}}.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)}}.bg-zinc-900{background-color:var(--color-zinc-900)}.p-0{padding:calc(var(--spacing) * 0)}.p-0\\.5{padding:calc(var(--spacing) * .5)}.p-4{padding:calc(var(--spacing) * 4)}.p-8{padding:calc(var(--spacing) * 8)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-6{padding-inline:calc(var(--spacing) * 6)}.px-8{padding-inline:calc(var(--spacing) * 8)}.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-3{padding-block:calc(var(--spacing) * 3)}.py-4{padding-block:calc(var(--spacing) * 4)}.py-6{padding-block:calc(var(--spacing) * 6)}.pt-\\[10\\%\\]{padding-top:10%}.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}.text-\\[11px\\]{font-size:11px}.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)}.text-nowrap{text-wrap:nowrap}.text-red-400{color:var(--color-red-400)}.text-white{color:var(--color-white)}.text-white\\/60{color:#fff9}@supports (color:color-mix(in lab,red,red)){.text-white\\/60{color:color-mix(in oklab,var(--color-white) 60%,transparent)}}.text-yellow-500{color:var(--color-yellow-500)}.text-zinc-600{color:var(--color-zinc-600)}.text-zinc-800{color:var(--color-zinc-800)}.text-zinc-900{color:var(--color-zinc-900)}.line-through{text-decoration-line:line-through}.underline{text-decoration-line:underline}.opacity-0{opacity:0}.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-2xl{--tw-shadow:0 25px 50px -12px var(--tw-shadow-color,#00000040);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a), 0 4px 6px -4px 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)}.shadow-emerald-500\\/20{--tw-shadow-color:#00bb7f33}@supports (color:color-mix(in lab,red,red)){.shadow-emerald-500\\/20{--tw-shadow-color:color-mix(in oklab, color-mix(in oklab, var(--color-emerald-500) 20%, transparent) var(--tw-shadow-alpha), transparent)}}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.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,)}.backdrop-blur-sm{--tw-backdrop-blur:blur(var(--blur-sm));-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.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-150{--tw-duration:.15s;transition-duration:.15s}.duration-300{--tw-duration:.3s;transition-duration:.3s}.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)}@media(hover:hover){.hover\\:bg-blue-400:hover{background-color:var(--color-blue-400)}.hover\\:bg-blue-500:hover{background-color:var(--color-blue-500)}.hover\\:bg-gray-500:hover{background-color:var(--color-gray-500)}.hover\\:bg-green-400:hover{background-color:var(--color-green-400)}.hover\\:bg-red-400:hover{background-color:var(--color-red-400)}.hover\\:bg-transparent:hover{background-color:#0000}.hover\\:text-white:hover{color:var(--color-white)}.hover\\:text-zinc-400:hover{color:var(--color-zinc-400)}.hover\\:text-zinc-900:hover{color:var(--color-zinc-900)}}.focus\\:bg-white:focus{background-color:var(--color-white)}.focus\\:outline:focus{outline-style:var(--tw-outline-style);outline-width:1px}.active\\:scale-95:active{--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x) var(--tw-scale-y)}@media(min-width:48rem){.md\\:w-4\\/5{width:80%}.md\\:flex-row{flex-direction:row}.md\\:text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.md\\:text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}}}:root{--max-container:556px;--min-container:350px}@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-font-weight{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-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";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)}}@keyframes pulse{50%{opacity:.5}}';window.pbm=uv();class dS extends HTMLElement{constructor(){super();xd(this,"root",null);xd(this,"props",{original_product_price:0,tenant_id:"",ean_product:"",is_authenticated_shopper:!1,custom_login_url:"/login"});this.attachShadow({mode:"open"})}static get observedAttributes(){return["original_product_price","tenant_id","ean_product","is_authenticated_shopper","custom_login_url","theme"]}updatePropsFromAttributes(){const l=this.getAttribute("original_product_price"),s=this.getAttribute("tenant_id"),o=this.getAttribute("ean_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),o!==null&&(this.props.ean_product=o,o&&Kl.getState().setTargetProduct({ean:o,quantity:1})),m!==null)try{this.props.theme=JSON.parse(m)}catch(g){console.error("PBMLOG: Error parsing theme attribute -",g)}}connectedCallback(){this.updatePropsFromAttributes(),this.mount()}attributeChangedCallback(l,s,o){if(l==="original_product_price"&&(this.props.original_product_price=parseFloat(o)),l==="tenant_id"&&(this.props.tenant_id=o),l==="ean_product"&&(this.props.ean_product=o,o&&Kl.getState().setTargetProduct({ean:o,quantity:1})),l==="is_authenticated_shopper"&&(this.props.is_authenticated_shopper=o==="true"),l==="custom_login_url"&&(this.props.custom_login_url=o===""?"/login":o),l==="theme")try{this.props.theme=o?JSON.parse(o):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 o=document.createElement("style");o.textContent=fS,l.appendChild(o),l.appendChild(s),this.root=iv.createRoot(s)}this.root&&this.root.render(U.jsx(cS,{...this.props}))}}}customElements.define("pbm-component",dS)})();